| | |
| | | using System; |
| | | using Kingdee.BOS.Util; |
| | | using System.Linq; |
| | | using ZD.Cloud.WebApi; |
| | | using Demo.Utility; |
| | | |
| | | namespace Demo.TimedTaskPlugIn.PRD |
| | | { |
| | |
| | | { |
| | | public void Run(Context ctx, Schedule schedule) |
| | | { |
| | | CloudClient cloudClient = new CloudClient("http://localhost/K3Cloud/"); |
| | | CloudClient cloudClient = new CloudClient("http://localhost//k3cloud/"); |
| | | try |
| | | { |
| | | string sql = string.Format(@" |
| | |
| | | ModelEnty.Add("FHPPBomInterID", DataRow[i]["FPPBOM"].ToString());//用料清单主内码FHPPBomInterID |
| | | ModelEnty.Add("FHPPBomEntryID", DataRow[i]["FENTRYID"].ToString());//用料清单子内码FHPPBomEntryID |
| | | ModelEnty.Add("FHSourceID", new JObject() { ["Fnumber"] = DataRow[i]["FHSOURCENUMBER"].ToString() });//生产资源FHSourceID |
| | | ModelEnty.Add("FNumerator", DataRow[i]["FNumerator"].ToString());//分母 |
| | | ModelEnty.Add("FDenominator", DataRow[i]["FDenominator"].ToString());//分子 |
| | | ModelEnty.Add("FNumerator", Convert.ToInt32(DataRow[i]["FNumerator"].ToString()));//分母 |
| | | ModelEnty.Add("FDenominator", Convert.ToInt32(DataRow[i]["FDenominator"].ToString()));//分子 |
| | | ModelEnty.Add("FFIXSCRAPQTY", DataRow[i]["FFIXSCRAPQTY"].ToString());//固定损耗 |
| | | ModelEnty.Add("FHQtyScrap", DataRow[i]["FSCRAPRATE"].ToString());//变动损耗率% |
| | | Entry.Add(ModelEnty); |