| | |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | public static string BillType = "4610"; |
| | | Sc_WorkBillSortBillMain omdelMian = new Sc_WorkBillSortBillMain(); |
| | | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); |
| | | |
| | | |
| | | #region ç产æ¥è®¡å æä»¶ä¸ä¼ |
| | | [Route("JIT_DayPlanPlatFormImport/JIT_DayPlanPlatFormImport_DR")] |
| | |
| | | tb2.Columns.Add("ICMOBillHInterID", typeof(Int32));//ç产订å主id |
| | | tb2.Columns.Add("ICMOBillHEntryID", typeof(Int32));//ç产订ååid |
| | | tb2.Columns.Add("HProdORGID", typeof(Int32));//ç»ç»id |
| | | tb2.Columns.Add("HSeOrderBillNo", typeof(string));//éå®è®¢åå· |
| | | tb2.Columns.Add("HSeOrderBillNo", typeof(string));//éå®è®¢åå· |
| | | |
| | | //è·åç³»ç»åæ° |
| | | string Ret = ""; |
| | | oSystemParameter.ShowBill(ref Ret); |
| | | |
| | | LogService.Write("excelå¼ï¼" + ExcelDs.Tables[0].Rows[1][15].ToString());//2024-11-26 |
| | | //æ·»å æ°æ® |
| | | for (int i = 1; i < ExcelDs.Tables[0].Rows.Count; i++) |
| | | { |
| | | { |
| | | DataRow row = tb2.NewRow(); |
| | | for (int j = 0; j < ExcelDs.Tables[0].Columns.Count; j++) |
| | | { |
| | |
| | | if (ExcelDs.Tables[0].Rows[i][0].ToString() == "" && ExcelDs.Tables[0].Rows[i][1].ToString() == "") |
| | | { |
| | | continue; |
| | | } |
| | | else if (oSystemParameter.omodel.JIT_DayPlan_TimeFrame != "0" && oSystemParameter.omodel.JIT_DayPlan_TimeFrame != "") |
| | | { |
| | | Int32 HDays = Convert.ToInt32(oSystemParameter.omodel.JIT_DayPlan_TimeFrame) * 7; |
| | | |
| | | |
| | | |
| | | |
| | | for (int j = 0; j < ExcelDs.Tables[0].Columns.Count; j++) |
| | | { |
| | | if (Convert.ToInt32(ExcelDs.Tables[0].Rows[i][j].ToString()) > 0 ) |
| | | { |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |