|
|
@ -103,12 +103,40 @@ func ImportCustomer() { |
|
|
|
serviceOfCustomer.ImportCustomer(response) |
|
|
|
} |
|
|
|
|
|
|
|
func ImportQichu(){ |
|
|
|
impl := implments.NewBalanceServiceImplement() |
|
|
|
alldata_Article := impl.GetGlobalArticleData() |
|
|
|
erp.GetQiChuQty(model.PlantNr,"system", &alldata_Article) |
|
|
|
} |
|
|
|
|
|
|
|
func ImportZhaizhi(){ |
|
|
|
impl := implments.NewBalanceServiceImplement() |
|
|
|
alldata_Article := impl.GetGlobalArticleData() |
|
|
|
erp.GetZhaizhiQty(model.PlantNr,"system", &alldata_Article) |
|
|
|
erp.GetZhaizhiWeekQty(model.PlantNr,"system", &alldata_Article) |
|
|
|
} |
|
|
|
|
|
|
|
func ImportChaigou(){ |
|
|
|
impl := implments.NewBalanceServiceImplement() |
|
|
|
alldata_Article := impl.GetGlobalArticleData() |
|
|
|
erp.GetChaigouQty(model.PlantNr,"system", &alldata_Article) |
|
|
|
} |
|
|
|
|
|
|
|
//销售订单
|
|
|
|
func ImportSaleOrder() { |
|
|
|
response := utilService.SaleOrderInit().SaleOrderSearch("", "") |
|
|
|
serviceOfSaleOrder.ImportSalesOrder(response) |
|
|
|
//response := utilService.SaleOrderInit().SaleOrderSearch("", "")
|
|
|
|
//serviceOfSaleOrder.ImportSalesOrder(response)
|
|
|
|
impl := implments.NewBalanceServiceImplement() |
|
|
|
alldata_Article := impl.GetGlobalArticleData() |
|
|
|
erp.GetOrderQty(model.PlantNr,"system", &alldata_Article) |
|
|
|
} |
|
|
|
|
|
|
|
func ImportDuli(){ |
|
|
|
// 独立需求
|
|
|
|
impl := implments.NewBalanceServiceImplement() |
|
|
|
alldata_Article := impl.GetGlobalArticleData() |
|
|
|
erp.GetDuliQty(model.PlantNr, "system", &alldata_Article) |
|
|
|
} |
|
|
|
//物料分组
|
|
|
|
func ImportMaterialGroupSearch() string { |
|
|
|
response := utilService.MaterialGroupInit().MaterialGroupSearch("", "") |
|
|
@ -234,11 +262,11 @@ func ImportEmpinfo() []Empinfo { |
|
|
|
|
|
|
|
//导入库存
|
|
|
|
func ImportBalance() { |
|
|
|
impl_Balance := implments.NewBalanceServiceImplement() |
|
|
|
alldata_Article := impl_Balance.GetGlobalArticleDataNew() |
|
|
|
erp.GetQiChuQty(model.PlantNr, "system", &alldata_Article) |
|
|
|
erp.GetZhaizhiQty(model.PlantNr, "system", &alldata_Article) |
|
|
|
erp.GetChaigouiQty(model.PlantNr, "system", &alldata_Article) |
|
|
|
//impl_Balance := implments.NewBalanceServiceImplement()
|
|
|
|
//alldata_Article := impl_Balance.GetGlobalArticleDataNew()
|
|
|
|
//erp.GetQiChuQty(model.PlantNr, "system", &alldata_Article)
|
|
|
|
//erp.GetZhaizhiQty(model.PlantNr, "system", &alldata_Article)
|
|
|
|
//erp.GetChaigouiQty(model.PlantNr, "system", &alldata_Article)
|
|
|
|
} |
|
|
|
|
|
|
|
type Empinfo struct { |
|
|
|