| | |
| | | { |
| | | tb2.Rows[i]["hmainid"] = ds.Tables[0].Rows[0]["hmainid"].ToString(); |
| | | tb2.Rows[i]["åæ®å·"] = ds.Tables[0].Rows[0]["åæ®å·"].ToString(); |
| | | tb2.Rows[i]["ä¼å
级"] = ds.Tables[0].Rows[0]["ä¼å
级"].ToString(); |
| | | if (oSystemParameter.omodel.WMS_CampanyName != "å®å·¥") |
| | | { |
| | | tb2.Rows[i]["ä¼å
级"] = ds.Tables[0].Rows[0]["ä¼å
级"].ToString(); |
| | | } |
| | | tb2.Rows[i]["HSourceID"] = ds.Tables[0].Rows[0]["HSourceID"].ToString(); |
| | | tb2.Rows[i]["HEmpID"] = ds.Tables[0].Rows[0]["HEmpID"].ToString(); |
| | | tb2.Rows[i]["åå·¥ç¼ç "] = ds.Tables[0].Rows[0]["èå代ç "].ToString(); |
| | |
| | | var HSeOrderBillNo = list[i]["HSeOrderBillNo"].ToString(); |
| | | |
| | | string sql = $"select * from Sc_WorkBillSortBillMain where HMainSourceInterID={HMainSourceInterID}" + |
| | | $" and HMainSourceEntryID={HMainSourceEntryID} and HICMOBillNo='{HICMOBillNo}' and HICMOEntrySEQ={HICMOEntrySEQ} and HSourceID={HSourceID}"; |
| | | $" and HMainSourceEntryID={HMainSourceEntryID} and HICMOBillNo='{HICMOBillNo}' and HICMOEntrySEQ={HICMOEntrySEQ} and HSourceID={HSourceID} and ISNULL(HDeleteMan,'') = ''"; |
| | | LogService.Write("sql:" + sql); |
| | | ds = oCN.RunProcReturn(sql, "Sc_WorkBillSortBillMain"); |
| | | if (ds.Tables[0].Rows.Count > 0) |