| | |
| | | switch (HSouceBillType) |
| | | { |
| | | case "ç产订å": |
| | | tabname = "h_v_IFCLD_ICMOBillList_Source"; |
| | | count = new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IFCLD_ICMOBillList_Source "+sWhere+ " and 任塿°é>isnull(å
¥åºæ°é,0) and ç¶æ<>'ç»æ¡' order by åæ®å·", tabname).Tables[0].Rows.Count; |
| | | sql = string.Format(@"select * from(select row_number() over (order by åæ®å·) as HRowNumber,* from h_v_IFCLD_ICMOBillList_Source " + sWhere + " and 任塿°é>isnull(å
¥åºæ°é,0) and ç¶æ<>'ç»æ¡') as A where HRowNumber >" + pageSize + " *(" + pageNum + "-1)"); |
| | | tabname = "h_v_IFCLD_ICMOBillList_Source"; |
| | | if (oSystemParameter.omodel.WMS_CampanyName == "åè") |
| | | { |
| | | count = new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IFCLD_ICMOBillList_Source " + sWhere + " order by åæ®å·", tabname).Tables[0].Rows.Count; |
| | | sql = string.Format(@"select * from(select row_number() over (order by åæ®å·) as HRowNumber,* from h_v_IFCLD_ICMOBillList_Source " + sWhere + " ) as A where HRowNumber >" + pageSize + " *(" + pageNum + "-1)"); |
| | | } |
| | | else |
| | | { |
| | | count = new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IFCLD_ICMOBillList_Source " + sWhere + " and 任塿°é>isnull(å
¥åºæ°é,0) and ç¶æ<>'ç»æ¡' order by åæ®å·", tabname).Tables[0].Rows.Count; |
| | | sql = string.Format(@"select * from(select row_number() over (order by åæ®å·) as HRowNumber,* from h_v_IFCLD_ICMOBillList_Source " + sWhere + " and 任塿°é>isnull(å
¥åºæ°é,0) and ç¶æ<>'ç»æ¡') as A where HRowNumber >" + pageSize + " *(" + pageNum + "-1)"); |
| | | } |
| | | break; |
| | | case "çäº§æ±æ¥å": |
| | | tabname = "h_v_IF_ICMOReportBillList_Source"; |
| | |
| | | HBarCode_Temp = HPOOrderBillMTO_TMN + "|" + HMaterNumber_BarCode + "|" + HInspectionDate_BarCode + "|" + HQty_BarCode + "|" + LSH; |
| | | |
| | | HBarCodeList barcode = new HBarCodeList(); |
| | | barcode.HSourceBillSEQ = ordrlist[i].HSourceBillSEQ; // æºåè¡å· |
| | | barcode.HBarCode2 = HBarCode_Temp; |
| | | barcode.HBarCodeType2 = "å¯ä¸æ¡ç "; |
| | | barcode.HBarCodeSubType2 = ""; |
| | |
| | | string HInspectionDate = ListRows[i].HInspectionDate; |
| | | int HInspectionCycle = ClsPub.isInt(ListRows[i].HInspectionCycle); |
| | | string HReInspectionDate = ListRows[i].HInspectionDate; |
| | | int HSourceBillSEQ = ClsPub.isInt(ListRows[i].HSourceBillSEQ); |
| | | string HCustomBatchNo = ClsPub.isStrNull(ListRows[i].HInspectionDate).Replace("-",""); |
| | | string HBarCodeStatus = "æ£å¸¸"; |
| | | string HPOOrderBillNoMTO = ClsPub.isStrNull(ListRows[i].HPOOrderBillMTO); |
| | | |
| | | string sql_produceBarCode = "insert into Gy_BarCodeBill (HBarCode,HBarCodeType,HBarCodeSubType,HMaterID,HUnitID,HQty" + |
| | | ",HBatchNo,HSupID,HGroupID,HMaker,HMakeDate,HPrintQty,HinitQty" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HEndQty " + |
| | |
| | | ",HGiveAwayFlag " + |
| | | ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo" + |
| | | ",HCoilNO,HFurnaceNO,HFactory,HAuxQty,HheatNO,HProduceDate,HExpiryDate,HEmpID,HCusModel,HCusMaterName,HCheckEmpName,HCustomBatchNo,HBarCodeStatus,HOrderBillNo" + |
| | | ",HReInspectionFlag,HInspectionDate,HInspectionCycle,HReInspectionDate " + |
| | | ",HReInspectionFlag,HInspectionDate,HInspectionCycle,HReInspectionDate,HSourceBillSEQ " + |
| | | ") values (" |
| | | + "'" + HBarCode + "','" + HBarCodeType + "','" + HBarCodeSubType + "'," + HMaterID.ToString() + "," + HUnitID.ToString() + "," + HQty2.ToString() |
| | | + ",'" + HBatchNo2 + "'," + HSupID.ToString() + "," + HGroupID2.ToString() + ",'" + ClsPub.CurUserName + "',getdate()," + HPrintQty.ToString() + "," + HQty2.ToString() |
| | |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "','" + HInnerBillNo + "'" |
| | | + ",'" + HCoilNO2 + "','" + HFurnaceNO2 + "','" + HFactory2 + "'," + HAuxQty2 + ",'" + HheatNO2 + "','" + HProduceDate + "','" + HExpiryDate + "'," + HEmpID2.ToString() + ",'" + HCusModel2 + "','" + HCusMaterName2 + "','" + HCheckEmpName2 + "','" + HCustomBatchNo + "','" + HBarCodeStatus + "','" + HPOOrderBillNoMTO + "'" + |
| | | "," + HReInspectionFlag + "," + (HInspectionDate == null ? "null" : "'" + HInspectionDate + "'") + "," + HInspectionCycle + "," + (HReInspectionDate == null ? "null" : "'" + HReInspectionDate + "'") + |
| | | "," + HSourceBillSEQ + |
| | | ")"; |
| | | |
| | | oCN.RunProc(sql_produceBarCode); |