| | |
| | | } |
| | | #endregion |
| | | |
| | | #region ç产æ¥è®¡åå¹³å° æ°æ®åå¤ è®¾ç½®ä»»å¡åç¸å
³ä¿¡æ¯(ä¸å) |
| | | [Route("JIT_DayPlanPlatFormBill/ReadyData_SS")] |
| | | [HttpGet] |
| | | public object ReadyData_SS(string SWhere) |
| | | { |
| | | try |
| | | { |
| | | var list = SWhere.Split(','); |
| | | DataTable dt = new DataTable("date"); |
| | | dt.Columns.Add("HICMOInterID", typeof(string)); |
| | | dt.Columns.Add("HICMOEntryID", typeof(string)); |
| | | dt.Columns.Add("å°æ¶äº§è½", typeof(string)); |
| | | dt.Columns.Add("çäº§å¨æ", typeof(decimal)); |
| | | dt.Columns.Add("å¼å·¥ä½é", typeof(decimal)); |
| | | dt.Columns.Add("æè¿å¼å·¥æ¥æ", typeof(DateTime)); |
| | | dt.Columns.Add("æè¿å®å·¥æ¥æ", typeof(DateTime)); |
| | | dt.Columns.Add("订åéæ±æ°é", typeof(decimal)); |
| | | dt.Columns.Add("订å交货æ", typeof(DateTime)); |
| | | dt.Columns.Add("HSourceID", typeof(decimal)); |
| | | dt.Columns.Add("çäº§èµæº", typeof(string)); |
| | | |
| | | for (int i = 0; i < list.Length; i++) |
| | | { |
| | | string HICMOInterID = list[i].Split(';')[0].ToString(); |
| | | string HICMOEntryID = list[i].Split(';')[1].ToString(); |
| | | string HSourceID = list[i].Split(';')[2].ToString(); |
| | | |
| | | Thread.Sleep(100); |
| | | ds = oCN.RunProcReturn("exec h_p_Sc_GetInfoByICMOBillNo " + HICMOInterID + "," + HICMOEntryID + "," + HSourceID, "h_p_Sc_GetInfoByICMOBillNo"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | |
| | | } |
| | | else |
| | | { |
| | | DataRow dr = dt.NewRow(); |
| | | dr["HSourceID"] = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[0]["HSourceID"]); |
| | | dr["çäº§èµæº"] = ds.Tables[0].Rows[0]["çäº§èµæº"].ToString(); |
| | | dr["å°æ¶äº§è½"] = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[0]["产è½"]); |
| | | dr["çäº§å¨æ"] = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[0]["çäº§å¨æ"]); |
| | | dr["å¼å·¥ä½é"] = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[0]["å¼å·¥ä½é"]); |
| | | dr["æè¿å¼å·¥æ¥æ"] = DBUtility.ClsPub.isDate(ds.Tables[0].Rows[0]["æè¿å¼å·¥æ¥æ"]); |
| | | dr["æè¿å®å·¥æ¥æ"] = DBUtility.ClsPub.isDate(ds.Tables[0].Rows[0]["æè¿å®å·¥æ¥æ"]); |
| | | dr["订åéæ±æ°é"] = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[0]["订åéæ±æ°"]); |
| | | dr["订å交货æ"] = DBUtility.ClsPub.isDate(ds.Tables[0].Rows[0]["订å交货æ"]); |
| | | dr["HICMOInterID"] = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[0]["HICMOInterID"]); |
| | | dr["HICMOEntryID"] = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[0]["HICMOEntryID"]); |
| | | dt.Rows.Add(dr); |
| | | } |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = dt; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 缺æåææ¥è¡¨ |
| | | public class MaterialShorAnalysis |
| | | { |