Browse Source

发布状态问题

master
parent
commit
2c434a2ba1
  1. 4
      ICSSoft.FromERP/ICSSoft.FromERP/ICSOutsourcingOrder.cs
  2. 4
      ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs
  3. 2
      ICSSoft.FromERP/ICSSoft.Test/Program.cs

4
ICSSoft.FromERP/ICSSoft.FromERP/ICSOutsourcingOrder.cs

@ -172,7 +172,6 @@ LEFT JOIN {1}.dbo.[OM_MODetails] b With(NoLock) ON a.OODetailID= CAST(b.MODetail
values.Add("Currency", "a.CurrencyName");//币种
values.Add("Status", "a.Status");
values.Add("CreatePerson", "a.CreatePerson");//创建人
values.Add("ReleaseState", "'0'");//发布状态
values.Add("PlanArriveDate", "a.PreArriveDate");//预计到货日期
values.Add("CreateDateTime", "a.CreateDateTime");//业务员名称
values.Add("OODetailID", "a.OODetailID");
@ -195,7 +194,8 @@ LEFT JOIN {1}.dbo.[OM_MODetails] b With(NoLock) ON a.OODetailID= CAST(b.MODetail
values.Add("MUSERName", "'" + ConstWorkPoint.Musername + "'");//操作人姓名
values.Add("WorkPoint", "'" + WorkPoint + "'");//站点
values.Add("EATTRIBUTE1", "''");//站点
//插入新增数据
values.Add("ReleaseState", "'0'");//发布状态
//插入新增数据
sql += ICSHelper.InsertSQL("ICSOutsourcingOrder", values)
+ @" #TempPOWW a
LEFT JOIN ICSOutsourcingOrder b ON a.OODetailID+a.Type=b.OODetailID+b.Type and a.WorkPoint=b.WorkPoint

4
ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs

@ -176,7 +176,6 @@ LEFT JOIN {1}.dbo.[PO_Podetails] b With(NoLock) ON a.PODetailID=CAST(b.ID AS VAR
values.Add("CreateDateTime", "a.CreateDateTime");//业务员名称
values.Add("PRDetailID", "a.PRDetailID");
values.Add("PRID", "a.PRID");
values.Add("ReleaseState", "'0'");//发布状态
values.Add("ExtensionID", "c.ID");
values.Add("PODetailID", "a.PODetailID");
//values.Add("POID", "a.POID");
@ -197,7 +196,8 @@ LEFT JOIN {1}.dbo.[PO_Podetails] b With(NoLock) ON a.PODetailID=CAST(b.ID AS VAR
values.Add("MUSERName", "'" + ConstWorkPoint.Musername + "'");//操作人姓名
values.Add("WorkPoint", "'" + WorkPoint + "'");//站点
values.Add("EATTRIBUTE1", "''");//站点
//插入新增数据
values.Add("ReleaseState", "'0'");//发布状态
//插入新增数据
sql += ICSHelper.InsertSQL("ICSPurchaseOrder", values)
+ @" #TempPO a
LEFT JOIN ICSPurchaseOrder b ON a.PODetailID=b.PODetailID and a.WorkPoint=b.WorkPoint

2
ICSSoft.FromERP/ICSSoft.Test/Program.cs

@ -13,7 +13,7 @@ namespace ICSSoft.Test
//ICSVendor test = new ICSVendor();
//test.Execute();
ICSMOIssue test = new ICSMOIssue();
ICSPO test = new ICSPO();
test.Execute();
}

Loading…
Cancel
Save