| | |
| | | <ErrorReportUrlHistory /> |
| | | <FallbackCulture>zh-CN</FallbackCulture> |
| | | <VerifyUploadedFiles>false</VerifyUploadedFiles> |
| | | <ProjectView>ShowAllFiles</ProjectView> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | public string sDlgWhere = ""; //å¤çªä½éå
¥ |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; |
| | | public Int64 HInterID = 0; |
| | | public const string ModName1 = "3783"; |
| | | public Int64 HInterID_TTM = 0; |
| | | public string HBillNo_TTM = ""; |
| | | ClsCN SubCn = new ClsCN(); |
| | | // |
| | | private void initGrid() |
| | | { |
| | |
| | | |
| | | private void Display() |
| | | { |
| | | ClsCN SubCn = new ClsCN(); |
| | | DataSet DSet; |
| | | string sSql = ""; |
| | | string sFastSQL = ""; |
| | |
| | | //{ |
| | | // sFastSQL = sFastSQL + " and æ¥æ<='" + dtpHEndDate.Value.ToShortDateString() + "'"; |
| | | //} |
| | | string HEndDate = ""; |
| | | HEndDate = dtpHEndDate.Value.ToShortDateString(); |
| | | //string HEndDate = ""; |
| | | //HEndDate = dtpHEndDate.Value.ToShortDateString(); |
| | | //if (sFastSQL.Trim() == "") |
| | | //{ |
| | | // MessageBox.Show("没æè¾å
¥æ¡ä»¶!"); |
| | |
| | | //è¿æ»¤æ¡ä»¶ |
| | | |
| | | // |
| | | DSet = SubCn.RunProcReturn("exec h_p_KSTMSC '" + HSeOrderBillNo + "' ,'" + HICMOBillNo + "' , '" + HMaterName + "' , '" + HSourceName + "' ,'" + HEmpName + "' ,'" + HBeginDate + "', '" + HEndDate + "'", "h_p_KSTMSC", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | DSet = SubCn.RunProcReturn("exec h_p_KSTMSC '" + HSeOrderBillNo + "' ,'" + HICMOBillNo + "' , '" + HMaterName + "' , '" + HSourceName + "' ,'" + HEmpName + "' ,'" + HBeginDate + "'", "h_p_KSTMSC", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //çæé¦è¡æ é¢ |
| | | if (DSet == null) |
| | | { |
| | |
| | | Display(); |
| | | } |
| | | |
| | | string TTM = ""; //ææ¡ç |
| | | string HTTMNumber = ""; |
| | | string HICMOBillNo = ""; //ç产订åå· |
| | | int TLSH = 0; |
| | | string TLSH2 = ""; |
| | | string HOrgNumber = ""; |
| | | |
| | | |
| | | |
| | | private void button4_Click(object sender, EventArgs e) |
| | | { |
| | | //1.è·åçé¢ä¸é¢æ´ç®±æ°éæ¡è¾å
¥çæ°é èµå¼ç»åé å¹¶å·æ°ç½æ ¼ |
| | |
| | | } |
| | | Display(); |
| | | //2.è·åç½æ ¼éä¸è¡ç©æID |
| | | int a = grdMain.CurrentRow.Index; |
| | | long HMaterID = 0; |
| | | HMaterID = DBUtility.ClsPub.isLong(grdMain.Rows[a].Cells[Fun_GetCol("HMaterID")].Value); |
| | | if (HMaterID == 0) |
| | | { |
| | | MessageBox.Show("没æéä¸ä»»ä½è®°å½ï¼"); |
| | | return; |
| | | } |
| | | //int a = grdMain.CurrentRow.Index; |
| | | //long HMaterID = 0; |
| | | ////HMaterID = DBUtility.ClsPub.isLong(grdMain.Rows[a].Cells[Fun_GetCol("HMaterID")].Value); |
| | | // if (HMaterID == 0) |
| | | // { |
| | | // MessageBox.Show("没æéä¸ä»»ä½è®°å½ï¼"); |
| | | // return; |
| | | // } |
| | | //3.å®ä¹æ¯å¦ç»æçåé |
| | | int Mul = 0; |
| | | //4.æ ¹æ®åæ®ç±»åè·åæ¬æ¬¡æ¡ç 主å
ç HInterID |
| | | HInterID = DBUtility.ClsPub.CreateBillID_Prod(ModName, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //5.ä»ç½æ ¼ç¬¬ä¸è¡å¾ªç¯è³æåä¸è¡ 夿Iè¡çç©æå
ç ä¸Mæ¯å¦ä¸è´ï¼å¦æä¸ä¸è´å循ç¯ä¸ä¸è¡ï¼ |
| | | for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | { |
| | | long HGrdMaterID = 0; |
| | | HGrdMaterID = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.Rows[i].Index].Cells[Fun_GetCol("HMaterID")].Value); |
| | | if (HMaterID == HGrdMaterID) |
| | | { |
| | | double HDDQty = 0; |
| | | HDDQty = DBUtility.ClsPub.isDoule(grdMain.Rows[grdMain.Rows[i].Index].Cells[Fun_GetCol("è®¢åæ°é")].Value); |
| | | |
| | | //è·åç½æ ¼é颿¯ä¸è¡è®¢å对åºçè®¢åæ°é |
| | | double HDDQty = 0; |
| | | HDDQty = DBUtility.ClsPub.isDoule(grdMain.Rows[grdMain.Rows[i].Index].Cells[Fun_GetCol("è®¢åæ°é")].Value); |
| | | |
| | | |
| | | //è·åå½åç³»ç»ç»éç»ç»ä»£ç |
| | | HOrgNumber = ClsPub.HOrgNumber; |
| | | |
| | | |
| | | |
| | | |
| | | //èªå¨å¹é
é»è¾ å¤æè®¢åæ°éæ¯å¦å¤§äºæ´ç®±æ°é å¦æè®¢åæ°éå¤§äºæ´ç®±æ°é ç´æ¥çæå¯ä¸ç |
| | | //å¦æè®¢åæ°éå°äºæ´ç®±æ°é å循ç¯çæå¯ä¸ç çæå¯¹åºçææ¡ç |
| | | if (HDDQty >= HZXQty) |
| | | { |
| | | HBarCodeQty = HZXQty; |
| | | this.Sub_SaveBill(); |
| | | this.Sub_SaveBill_TTM(); |
| | | Display(); |
| | | Mul = Mul + 1; |
| | | break; |
| | |
| | | { |
| | | HBarCodeQty = HDDQty; |
| | | HZXQty = HZXQty - HDDQty; |
| | | this.Sub_SaveBill(); |
| | | this.Sub_SaveBill_TTM(); |
| | | Mul = Mul + 1; |
| | | continue; |
| | | } |
| | | } |
| | | |
| | | //妿Mul>1 æ°å¢ç»æå主表 |
| | | |
| | | } |
| | | |
| | | if (Mul > 1) |
| | | { |
| | | //HICMOBillNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[Fun_GetCol("ç产订åå·")].Value); |
| | | DataSet DS1; |
| | | HTTMNumber = HOrgNumber + HICMOBillNo; |
| | | DS1 = oCn.RunProcReturn("exec h_p_WMS_GetMaxNo '" + HTTMNumber + "'", "h_p_WMS_GetMaxNo"); //è·åæå¤§æµæ°´å· |
| | | TLSH = ClsPub.isInt(DS1.Tables[0].Rows[0][0]); |
| | | TLSH2 = TLSH.ToString(); |
| | | TTM = HTTMNumber + TLSH2; |
| | | HInterID_TTM = DBUtility.ClsPub.CreateBillID_Prod(ModName1, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | HBillNo_TTM = DBUtility.ClsPub.CreateBillCode_Prod(ModName1, ref DBUtility.ClsPub.sExeReturnInfo, true);//å¾å°æ°åå· |
| | | |
| | | string HDate = ""; |
| | | string HYear = ""; |
| | | string HPeriod = ""; |
| | | string HDay = ""; |
| | | HDate = DateTime.Now.ToShortDateString(); |
| | | HYear = ClsPub.isDate(HDate).Year.ToString().Substring(2, 2); |
| | | HPeriod = "0" + ClsPub.isDate(HDate).Month.ToString(); |
| | | HPeriod = HPeriod.Substring(HPeriod.Length - 2, 2); |
| | | HDay = "0" + ClsPub.isDate(HDate).Day.ToString(); |
| | | HDay = HDay.Substring(HDay.Length - 2, 2); |
| | | |
| | | oCn.RunProc("insert into Sc_PackUnionBillMain (HYear,HPeriod,HBillType,HInterID,HDate" + |
| | | ",HBillNo,HBillStatus,HICMOBillNo,HBarCode_Pack,HMaterID,HUnitID,HWeight" + |
| | | ",HPWeight,HProdOrgID,HDeptID,HEmpID,HSNum,HPackNum,HBarCode_Cus,HBatchNo " + |
| | | ") values (" |
| | | + HYear + "," + HPeriod + ",'3783'," + HInterID_TTM + ",'" + HDate + "'" |
| | | + ", " + HBillNo_TTM.ToString() + ",1,''," + TTM.ToString() + ",0,0,0" |
| | | + ",0,1,0,0,0,0,'','')"); |
| | | } |
| | | |
| | | |
| | |
| | | string WeiShu = ""; //å°¾æ° |
| | | int LSHlen = 6; //æµæ°´å·é¿åº¦ |
| | | string TM = ""; //æ¡ç |
| | | for (int j = 0; j < grdMain.SelectedRows.Count; j++) |
| | | for (int j = 0; j < grdMain.Rows.Count; j++) |
| | | { |
| | | HMaterNumber = DBUtility.ClsPub.isStrNull(grdMain.Rows[grdMain.SelectedRows[j].Index].Cells[Fun_GetCol("ç©æä»£ç ")].Value); |
| | | HBatchNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[grdMain.SelectedRows[j].Index].Cells[Fun_GetCol("æ¹æ¬¡")].Value); |
| | | HMaterNumber = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("ç©æä»£ç ")].Value); |
| | | HBatchNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("æ¹æ¬¡")].Value); |
| | | HDate = DateTime.Now.ToShortDateString(); |
| | | HYear = ClsPub.isDate(HDate).Year.ToString().Substring(2, 2); |
| | | HPeriod = "0" + ClsPub.isDate(HDate).Month.ToString(); |
| | |
| | | |
| | | //HBQty = HBQty + ClsPub.isInt(txtHBQty.Text); |
| | | HZXQty = ClsPub.isDoule(txtHZXQty.Text); |
| | | HDDQty = DBUtility.ClsPub.isDoule(grdMain.Rows[grdMain.SelectedRows[j].Index].Cells[Fun_GetCol("è®¢åæ°é")].Value); |
| | | HDDQty = DBUtility.ClsPub.isDoule(grdMain.Rows[j].Cells[Fun_GetCol("è®¢åæ°é")].Value); |
| | | |
| | | |
| | | if (cmbHBarCodeType.Text == "å¯ä¸æ¡ç ") |
| | |
| | | HWei = WeiShu; |
| | | HBarCode = TM; |
| | | HBarCodeType = ClsPub.isStrNull(cmbHBarCodeType.Text); |
| | | HMaterID1 = ClsPub.isLong(grdMain.SelectedRows[j].Cells[Fun_GetCol("HMaterID")].Value); |
| | | HMaterID1 = ClsPub.isLong(grdMain.Rows[j].Cells[Fun_GetCol("HMaterID")].Value); |
| | | HAuxPropID = 0; |
| | | HUnitID = 0; |
| | | HQty2 = HZXQty; |
| | | HBatchNo2 = ClsPub.isStrNull(grdMain.SelectedRows[j].Cells[Fun_GetCol("æ¹æ¬¡")].Value); |
| | | HBatchNo2 = ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("æ¹æ¬¡")].Value); |
| | | HSourceInterID = 0; |
| | | HSourceEntryID = 0; |
| | | HSourceBillNo = ClsPub.isStrNull(grdMain.SelectedRows[j].Cells[Fun_GetCol("ç产订åå·")].Value); |
| | | HSourceBillNo = ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("ç产订åå·")].Value); |
| | | HSourceBillType = "3710"; |
| | | HBarcodeQtys = 0; |
| | | HBarcodeNo = 0; |
| | |
| | | HWhID = 0; |
| | | HSPID = 0; |
| | | HRemark = ""; |
| | | HMaterName = ClsPub.isStrNull(grdMain.SelectedRows[j].Cells[Fun_GetCol("ç©æåç§°")].Value); |
| | | HMaterModel = ClsPub.isStrNull(grdMain.SelectedRows[j].Cells[Fun_GetCol("è§æ ¼åå·")].Value); |
| | | HMaterName = ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("ç©æåç§°")].Value); |
| | | HMaterModel = ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("è§æ ¼åå·")].Value); |
| | | HPinfan = ""; |
| | | HMTONo = ""; |
| | | HCusID = 0; |
| | | HCusType = ""; |
| | | HEndDate = ClsPub.isDate(grdMain.SelectedRows[j].Cells[Fun_GetCol("æ¥æ")].Value); |
| | | HEndDate = ClsPub.isDate(grdMain.Rows[j].Cells[Fun_GetCol("æ¥æ")].Value); |
| | | HWorkLineName = ""; |
| | | HSeOrderBillNo = ""; |
| | | HInnerBillNo = ""; |
| | |
| | | oCn.RollBack(); |
| | | MessageBox.Show("æ¡ç çæå¤±è´¥ï¼" + e1.Message); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | private void Sub_SaveBill_TTM() |
| | | { |
| | | HInterID = DBUtility.ClsPub.CreateBillID_Prod(ModName, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | HInterID_TTM = DBUtility.ClsPub.CreateBillID_Prod(ModName1, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | HBillNo_TTM = DBUtility.ClsPub.CreateBillCode_Prod(ModName1, ref DBUtility.ClsPub.sExeReturnInfo, true);//å¾å°æ°åå· |
| | | string HMaterNumber = ""; |
| | | string HBatchNo = ""; |
| | | string HDate = ""; |
| | | string HYear = ""; |
| | | string HPeriod = ""; |
| | | string HDay = ""; |
| | | string HTMNumber = ""; |
| | | string HOrgNumber = ""; |
| | | DataSet Ds; |
| | | int LSH = 0; //æµæ°´å· |
| | | string LSH2 = ""; //æµæ°´å·è½¬æ¢æå符 |
| | | double HZXQty = 0; //è£
ç®±æ°é |
| | | double HDDQty = 0; //è®¢åæ°é |
| | | double HBQty = 0; //ç®±æ° |
| | | int k = 0; |
| | | int n = 0; //å䏿¹çææ¡ç ä¸çç¬¬å æ¡ |
| | | string WeiShu = ""; //å°¾æ° |
| | | int LSHlen = 6; //æµæ°´å·é¿åº¦ |
| | | string TM = ""; //æ¡ç |
| | | for (int j = 0; j < grdMain.Rows.Count; j++) |
| | | { |
| | | HMaterNumber = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("ç©æä»£ç ")].Value); |
| | | HBatchNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("æ¹æ¬¡")].Value); |
| | | HDate = DateTime.Now.ToShortDateString(); |
| | | HYear = ClsPub.isDate(HDate).Year.ToString().Substring(2, 2); |
| | | HPeriod = "0" + ClsPub.isDate(HDate).Month.ToString(); |
| | | HPeriod = HPeriod.Substring(HPeriod.Length - 2, 2); |
| | | HDay = "0" + ClsPub.isDate(HDate).Day.ToString(); |
| | | HDay = HDay.Substring(HDay.Length - 2, 2); |
| | | HOrgNumber = ClsPub.HOrgNumber; |
| | | |
| | | |
| | | //HBQty = HBQty + ClsPub.isInt(txtHBQty.Text); |
| | | HZXQty = ClsPub.isDoule(txtHZXQty.Text); |
| | | HDDQty = DBUtility.ClsPub.isDoule(grdMain.Rows[j].Cells[Fun_GetCol("è®¢åæ°é")].Value); |
| | | HICMOBillNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("ç产订åå·")].Value); |
| | | |
| | | if (cmbHBarCodeType.Text == "å¯ä¸æ¡ç ") |
| | | { |
| | | HTMNumber = HOrgNumber + HMaterNumber + HYear + HPeriod + HDay; |
| | | Ds = oCn.RunProcReturn("exec h_p_WMS_GetMaxNo '" + HTMNumber + "'", "h_p_WMS_GetMaxNo"); //è·åæå¤§æµæ°´å· |
| | | LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); |
| | | } |
| | | else if (cmbHBarCodeType.Text == "æ¹æ¬¡æ¡ç ") |
| | | { |
| | | TM = HOrgNumber + HMaterNumber + HBatchNo; |
| | | } |
| | | |
| | | |
| | | n = 0; |
| | | |
| | | LSH2 = LSH.ToString(); |
| | | while (LSH2.Length < LSHlen) //å¦ææµæ°´å·å°äº6使°åé¢è¡¥0 |
| | | { |
| | | LSH2 = "0" + LSH2; |
| | | } |
| | | if (cmbHBarCodeType.Text == "å¯ä¸æ¡ç ") |
| | | { |
| | | //æ¡ç ç¼å· = æ¡ç åç¼ + æµæ°´å· |
| | | TM = HTMNumber + LSH2; |
| | | } |
| | | if (TM.Trim() == "") |
| | | { |
| | | MessageBox.Show("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼ä¸è½çææ¡ç ï¼"); |
| | | return; |
| | | } |
| | | string HWei = ""; //å°¾æ° |
| | | string HBarCode = ""; |
| | | string HBarCodeType = ""; |
| | | Int64 HMaterID1 = 0; |
| | | Int64 HAuxPropID = 0; |
| | | Int64 HUnitID = 0; |
| | | double HQty2 = 0; |
| | | string HBatchNo2 = ""; |
| | | Int64 HSupID = 0; |
| | | Int64 HGroupID = 0; |
| | | int HPrintQty = 0; |
| | | Int64 HSourceInterID = 0; |
| | | Int64 HSourceEntryID = 0; |
| | | string HSourceBillNo = ""; |
| | | string HSourceBillType = ""; |
| | | Int64 HBarcodeNo = 0; //æå· |
| | | Int64 HBarcodeQtys = 0; //æ»ææ° |
| | | Int64 HDeptID = 0; |
| | | Int64 HWhID = 0; |
| | | Int64 HSPID = 0; |
| | | string HRemark = ""; |
| | | string HMaterName = ""; |
| | | string HMaterModel = ""; |
| | | string HPinfan = ""; |
| | | string HMTONo = ""; |
| | | Int64 HCusID = 0; |
| | | string HCusType = ""; |
| | | DateTime HEndDate; |
| | | string HWorkLineName = ""; |
| | | string HSeOrderBillNo = ""; |
| | | string HInnerBillNo = ""; |
| | | try |
| | | { |
| | | oCn.BeginTran(); |
| | | HWei = WeiShu; |
| | | HBarCode = TM; |
| | | HBarCodeType = ClsPub.isStrNull(cmbHBarCodeType.Text); |
| | | HMaterID1 = ClsPub.isLong(grdMain.Rows[j].Cells[Fun_GetCol("HMaterID")].Value); |
| | | HAuxPropID = 0; |
| | | HUnitID = 0; |
| | | HQty2 = HZXQty; |
| | | HBatchNo2 = ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("æ¹æ¬¡")].Value); |
| | | HSourceInterID = 0; |
| | | HSourceEntryID = 0; |
| | | HSourceBillNo = ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("ç产订åå·")].Value); |
| | | HSourceBillType = "3710"; |
| | | HBarcodeQtys = 0; |
| | | HBarcodeNo = 0; |
| | | HSupID = 0; |
| | | HDeptID = 0; |
| | | HWhID = 0; |
| | | HSPID = 0; |
| | | HRemark = ""; |
| | | HMaterName = ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("ç©æåç§°")].Value); |
| | | HMaterModel = ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("è§æ ¼åå·")].Value); |
| | | HPinfan = ""; |
| | | HMTONo = ""; |
| | | HCusID = 0; |
| | | HCusType = ""; |
| | | HEndDate = ClsPub.isDate(grdMain.Rows[j].Cells[Fun_GetCol("æ¥æ")].Value); |
| | | HWorkLineName = ""; |
| | | HSeOrderBillNo = ""; |
| | | HInnerBillNo = ""; |
| | | oCn.RunProc("insert into Gy_BarCodeBill (HBarCode,HBarCodeType,HMaterID,HUnitID,HQty" + |
| | | ",HBatchNo,HSupID,HGroupID,HMaker,HMakeDate,HPrintQty,HinitQty" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HEndQty " + |
| | | ",HBarcodeQtys,HBarcodeNo,HDeptID,HWhID,HSPID,HRemark " + |
| | | ",HCusID,HCusType,HEndDate,HWorkLineName,HBarCodeDate " + |
| | | ",HSTOCKORGID,HOWNERID,HSeOrderBillNo,HInterID " + |
| | | ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo " + |
| | | ") values (" |
| | | + "'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID1.ToString() + "," + HUnitID.ToString() + "," + HQty2.ToString() |
| | | + ",'" + HBatchNo2 + "'," + HSupID.ToString() + "," + HGroupID.ToString() + ",'" + ClsPub.CurUserName + "',getdate()," + HPrintQty.ToString() + "," + HQty2.ToString() |
| | | + ", " + HSourceInterID.ToString() + "," + HSourceEntryID.ToString() + ",'" + HSourceBillNo + "','" + HSourceBillType + "','" + HWei + "'" |
| | | + ", " + HBarcodeQtys.ToString() + "," + HBarcodeNo.ToString() + "," + HDeptID.ToString() + "," + HWhID.ToString() + "," + HSPID.ToString() + ",'" + HRemark + "'" |
| | | + ", " + HCusID.ToString() + ",'" + HCusType + "','" + HEndDate.ToShortDateString() + "','" + HWorkLineName + "','" + HDate + "'" |
| | | + ", " + ClsPub.HOrgID.ToString() + "," + ClsPub.HOrgID.ToString() + ",'" + HSeOrderBillNo + "'," + HInterID.ToString() |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "','" + HInnerBillNo + "')"); |
| | | oCn.RunProc("insert into Sc_PackUnionBillSub (HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo" + |
| | | ",HSourceBillType,HMaterID,HUnitID,HQty,HSourceID,HEquipID,HGroupID" + |
| | | ",HWorkerID,HScanDate,HBarCode,HBarCode_Pack,HStatus,HICMOEntryID " + |
| | | ") values (" |
| | | + HInterID_TTM + "," + j + ",0,0,''" |
| | | + ",'3710'," + HMaterID1.ToString() + "," + HUnitID.ToString() + "," + HQty2.ToString() + ",0,0,0" |
| | | + ", 0,getdate(),'" + HBarCode + "','" + TTM + "',0,0)"); |
| | | |
| | | oCn.Commit(); |
| | | MessageBox.Show("æ¡ç çæå®æ¯ï¼"); |
| | | //grdSub.RowCount = 0; |
| | | DisplayTM(); |
| | | } |
| | | catch (Exception e1) |
| | | { |
| | | oCn.RollBack(); |
| | | MessageBox.Show("æ¡ç çæå¤±è´¥ï¼" + e1.Message); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | grdSub.DataSource = null; |
| | | grdMain.DataSource = null; |
| | | } |
| | | |
| | | private void button2_Click(object sender, EventArgs e) |
| | | { |
| | | //è·åç½æ ¼ç¬¬ä¸è¡HInterIDçå¼ |
| | | Int64 HInterID = 0; |
| | | HInterID = DBUtility.ClsPub.isInt(grdMain.Rows[0].Cells[Fun_GetCol("HInterID")].Value); |
| | | DataSet DSBefore; |
| | | DSBefore = SubCn.RunProcReturn("exec h_p_PreviousMater "+ HInterID, "h_p_PreviousMater", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | grdMain.DataSource = DSBefore.Tables[0].DefaultView; |
| | | } |
| | | |
| | | private void button3_Click(object sender, EventArgs e) |
| | | { |
| | | //æ ¹æ® |
| | | Int64 HInterID = 0; |
| | | HInterID = DBUtility.ClsPub.isInt(grdMain.Rows[0].Cells[Fun_GetCol("HInterID")].Value); |
| | | DataSet DSBefore; |
| | | DSBefore = SubCn.RunProcReturn("exec h_p_NextMater " + HInterID, "h_p_NextMater", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | grdMain.DataSource = DSBefore.Tables[0].DefaultView; |
| | | } |
| | | |
| | | private void button7_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | this.txtHMaterID = new System.Windows.Forms.TextBox(); |
| | | this.cmdHMaterID = new System.Windows.Forms.Button(); |
| | | this.gbUp = new System.Windows.Forms.GroupBox(); |
| | | this.txtHSeOrderBillNo = new System.Windows.Forms.TextBox(); |
| | | this.label9 = new System.Windows.Forms.Label(); |
| | | this.cmbHBarCodeType = new System.Windows.Forms.ComboBox(); |
| | | this.label8 = new System.Windows.Forms.Label(); |
| | | this.cmdHSaveBill = new System.Windows.Forms.Button(); |
| | | this.dtpHEndDate = new System.Windows.Forms.DateTimePicker(); |
| | | this.label5 = new System.Windows.Forms.Label(); |
| | | this.dtpHBeginDate = new System.Windows.Forms.DateTimePicker(); |
| | | this.label6 = new System.Windows.Forms.Label(); |
| | | this.button4 = new System.Windows.Forms.Button(); |
| | |
| | | this.tabPage1 = new System.Windows.Forms.TabPage(); |
| | | this.tabPage2 = new System.Windows.Forms.TabPage(); |
| | | this.grdList = new System.Windows.Forms.DataGridView(); |
| | | this.txtHSeOrderBillNo = new System.Windows.Forms.TextBox(); |
| | | this.label9 = new System.Windows.Forms.Label(); |
| | | this.button2 = new System.Windows.Forms.Button(); |
| | | this.button3 = new System.Windows.Forms.Button(); |
| | | this.button7 = new System.Windows.Forms.Button(); |
| | | this.Tool.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdMain)).BeginInit(); |
| | | this.gbUp.SuspendLayout(); |
| | |
| | | this.gbUp.Controls.Add(this.cmbHBarCodeType); |
| | | this.gbUp.Controls.Add(this.label8); |
| | | this.gbUp.Controls.Add(this.cmdHSaveBill); |
| | | this.gbUp.Controls.Add(this.dtpHEndDate); |
| | | this.gbUp.Controls.Add(this.label5); |
| | | this.gbUp.Controls.Add(this.dtpHBeginDate); |
| | | this.gbUp.Controls.Add(this.label6); |
| | | this.gbUp.Controls.Add(this.label4); |
| | |
| | | this.gbUp.TabIndex = 58; |
| | | this.gbUp.TabStop = false; |
| | | // |
| | | // txtHSeOrderBillNo |
| | | // |
| | | this.txtHSeOrderBillNo.Font = new System.Drawing.Font("å®ä½", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.txtHSeOrderBillNo.ImeMode = System.Windows.Forms.ImeMode.NoControl; |
| | | this.txtHSeOrderBillNo.Location = new System.Drawing.Point(112, 79); |
| | | this.txtHSeOrderBillNo.Name = "txtHSeOrderBillNo"; |
| | | this.txtHSeOrderBillNo.ReadOnly = true; |
| | | this.txtHSeOrderBillNo.Size = new System.Drawing.Size(123, 30); |
| | | this.txtHSeOrderBillNo.TabIndex = 141; |
| | | // |
| | | // label9 |
| | | // |
| | | this.label9.AutoSize = true; |
| | | this.label9.Font = new System.Drawing.Font("å®ä½", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label9.ForeColor = System.Drawing.Color.Black; |
| | | this.label9.Location = new System.Drawing.Point(19, 85); |
| | | this.label9.Name = "label9"; |
| | | this.label9.Size = new System.Drawing.Size(88, 16); |
| | | this.label9.TabIndex = 140; |
| | | this.label9.Text = "éå®è®¢åå·"; |
| | | // |
| | | // cmbHBarCodeType |
| | | // |
| | | this.cmbHBarCodeType.Font = new System.Drawing.Font("å®ä½", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | |
| | | this.cmbHBarCodeType.Items.AddRange(new object[] { |
| | | "å¯ä¸æ¡ç ", |
| | | "æ¹æ¬¡æ¡ç "}); |
| | | this.cmbHBarCodeType.Location = new System.Drawing.Point(871, 77); |
| | | this.cmbHBarCodeType.Location = new System.Drawing.Point(642, 79); |
| | | this.cmbHBarCodeType.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmbHBarCodeType.Name = "cmbHBarCodeType"; |
| | | this.cmbHBarCodeType.Size = new System.Drawing.Size(140, 28); |
| | |
| | | this.label8.AutoSize = true; |
| | | this.label8.Font = new System.Drawing.Font("å®ä½", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label8.ForeColor = System.Drawing.Color.Black; |
| | | this.label8.Location = new System.Drawing.Point(793, 84); |
| | | this.label8.Location = new System.Drawing.Point(557, 86); |
| | | this.label8.Name = "label8"; |
| | | this.label8.Size = new System.Drawing.Size(72, 16); |
| | | this.label8.TabIndex = 138; |
| | |
| | | // |
| | | this.cmdHSaveBill.BackColor = System.Drawing.Color.White; |
| | | this.cmdHSaveBill.Font = new System.Drawing.Font("å®ä½", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdHSaveBill.Location = new System.Drawing.Point(1026, 66); |
| | | this.cmdHSaveBill.Location = new System.Drawing.Point(862, 68); |
| | | this.cmdHSaveBill.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmdHSaveBill.Name = "cmdHSaveBill"; |
| | | this.cmdHSaveBill.Size = new System.Drawing.Size(112, 50); |
| | |
| | | this.cmdHSaveBill.Text = "æ¥è¯¢"; |
| | | this.cmdHSaveBill.UseVisualStyleBackColor = false; |
| | | this.cmdHSaveBill.Click += new System.EventHandler(this.cmdHSaveBill_Click); |
| | | // |
| | | // dtpHEndDate |
| | | // |
| | | this.dtpHEndDate.Font = new System.Drawing.Font("å®ä½", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.dtpHEndDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; |
| | | this.dtpHEndDate.Location = new System.Drawing.Point(602, 76); |
| | | this.dtpHEndDate.Margin = new System.Windows.Forms.Padding(2); |
| | | this.dtpHEndDate.Name = "dtpHEndDate"; |
| | | this.dtpHEndDate.Size = new System.Drawing.Size(154, 30); |
| | | this.dtpHEndDate.TabIndex = 102; |
| | | // |
| | | // label5 |
| | | // |
| | | this.label5.AutoSize = true; |
| | | this.label5.Font = new System.Drawing.Font("å®ä½", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label5.ForeColor = System.Drawing.Color.Black; |
| | | this.label5.Location = new System.Drawing.Point(523, 84); |
| | | this.label5.Name = "label5"; |
| | | this.label5.Size = new System.Drawing.Size(72, 16); |
| | | this.label5.TabIndex = 101; |
| | | this.label5.Text = "ç»ææ¥æ"; |
| | | // |
| | | // dtpHBeginDate |
| | | // |
| | |
| | | this.label6.Name = "label6"; |
| | | this.label6.Size = new System.Drawing.Size(72, 16); |
| | | this.label6.TabIndex = 99; |
| | | this.label6.Text = "å¼å§æ¥æ"; |
| | | this.label6.Text = "æ¥ æ"; |
| | | // |
| | | // button4 |
| | | // |
| | | this.button4.BackColor = System.Drawing.Color.White; |
| | | this.button4.Font = new System.Drawing.Font("å®ä½", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.button4.Location = new System.Drawing.Point(1036, 218); |
| | | this.button4.Location = new System.Drawing.Point(1036, 189); |
| | | this.button4.Margin = new System.Windows.Forms.Padding(2); |
| | | this.button4.Name = "button4"; |
| | | this.button4.Size = new System.Drawing.Size(112, 50); |
| | |
| | | // |
| | | this.button5.BackColor = System.Drawing.Color.White; |
| | | this.button5.Font = new System.Drawing.Font("å®ä½", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.button5.Location = new System.Drawing.Point(1036, 297); |
| | | this.button5.Location = new System.Drawing.Point(1036, 247); |
| | | this.button5.Margin = new System.Windows.Forms.Padding(2); |
| | | this.button5.Name = "button5"; |
| | | this.button5.Size = new System.Drawing.Size(112, 42); |
| | |
| | | // |
| | | this.button6.BackColor = System.Drawing.Color.White; |
| | | this.button6.Font = new System.Drawing.Font("å®ä½", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.button6.Location = new System.Drawing.Point(1036, 379); |
| | | this.button6.Location = new System.Drawing.Point(1036, 296); |
| | | this.button6.Margin = new System.Windows.Forms.Padding(2); |
| | | this.button6.Name = "button6"; |
| | | this.button6.Size = new System.Drawing.Size(112, 44); |
| | |
| | | // |
| | | this.label7.AutoSize = true; |
| | | this.label7.Font = new System.Drawing.Font("å®ä½", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label7.Location = new System.Drawing.Point(877, 349); |
| | | this.label7.Location = new System.Drawing.Point(883, 349); |
| | | this.label7.Name = "label7"; |
| | | this.label7.Size = new System.Drawing.Size(174, 27); |
| | | this.label7.TabIndex = 144; |
| | |
| | | this.grdList.Size = new System.Drawing.Size(866, 269); |
| | | this.grdList.TabIndex = 20; |
| | | // |
| | | // txtHSeOrderBillNo |
| | | // button2 |
| | | // |
| | | this.txtHSeOrderBillNo.Font = new System.Drawing.Font("å®ä½", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.txtHSeOrderBillNo.ImeMode = System.Windows.Forms.ImeMode.NoControl; |
| | | this.txtHSeOrderBillNo.Location = new System.Drawing.Point(112, 79); |
| | | this.txtHSeOrderBillNo.Name = "txtHSeOrderBillNo"; |
| | | this.txtHSeOrderBillNo.ReadOnly = true; |
| | | this.txtHSeOrderBillNo.Size = new System.Drawing.Size(123, 30); |
| | | this.txtHSeOrderBillNo.TabIndex = 141; |
| | | this.button2.BackColor = System.Drawing.Color.White; |
| | | this.button2.Font = new System.Drawing.Font("å®ä½", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.button2.Location = new System.Drawing.Point(900, 436); |
| | | this.button2.Margin = new System.Windows.Forms.Padding(2); |
| | | this.button2.Name = "button2"; |
| | | this.button2.Size = new System.Drawing.Size(112, 44); |
| | | this.button2.TabIndex = 150; |
| | | this.button2.Text = "ä¸ä¸ä¸ªç©æ"; |
| | | this.button2.UseVisualStyleBackColor = false; |
| | | this.button2.Click += new System.EventHandler(this.button2_Click); |
| | | // |
| | | // label9 |
| | | // button3 |
| | | // |
| | | this.label9.AutoSize = true; |
| | | this.label9.Font = new System.Drawing.Font("å®ä½", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label9.ForeColor = System.Drawing.Color.Black; |
| | | this.label9.Location = new System.Drawing.Point(19, 85); |
| | | this.label9.Name = "label9"; |
| | | this.label9.Size = new System.Drawing.Size(88, 16); |
| | | this.label9.TabIndex = 140; |
| | | this.label9.Text = "éå®è®¢åå·"; |
| | | this.button3.BackColor = System.Drawing.Color.White; |
| | | this.button3.Font = new System.Drawing.Font("å®ä½", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.button3.Location = new System.Drawing.Point(1036, 378); |
| | | this.button3.Margin = new System.Windows.Forms.Padding(2); |
| | | this.button3.Name = "button3"; |
| | | this.button3.Size = new System.Drawing.Size(112, 44); |
| | | this.button3.TabIndex = 151; |
| | | this.button3.Text = "ä¸ä¸ä¸ªç©æ"; |
| | | this.button3.UseVisualStyleBackColor = false; |
| | | this.button3.Click += new System.EventHandler(this.button3_Click); |
| | | // |
| | | // button7 |
| | | // |
| | | this.button7.BackColor = System.Drawing.Color.White; |
| | | this.button7.Font = new System.Drawing.Font("å®ä½", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.button7.Location = new System.Drawing.Point(1036, 436); |
| | | this.button7.Margin = new System.Windows.Forms.Padding(2); |
| | | this.button7.Name = "button7"; |
| | | this.button7.Size = new System.Drawing.Size(112, 44); |
| | | this.button7.TabIndex = 152; |
| | | this.button7.Text = "è¶
é¢ç产"; |
| | | this.button7.UseVisualStyleBackColor = false; |
| | | this.button7.Click += new System.EventHandler(this.button7_Click); |
| | | // |
| | | // Sc_ICMOToBarCode |
| | | // |
| | |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.BackColor = System.Drawing.SystemColors.ActiveCaption; |
| | | this.ClientSize = new System.Drawing.Size(1172, 869); |
| | | this.Controls.Add(this.button7); |
| | | this.Controls.Add(this.button3); |
| | | this.Controls.Add(this.button2); |
| | | this.Controls.Add(this.tabControl1); |
| | | this.Controls.Add(this.æ´ç®±æ°é); |
| | | this.Controls.Add(this.txtHZXQty); |
| | |
| | | private System.Windows.Forms.Button cmdHMaterID; |
| | | private System.Windows.Forms.GroupBox gbUp; |
| | | private System.Windows.Forms.Button cmdHSaveBill; |
| | | private System.Windows.Forms.DateTimePicker dtpHEndDate; |
| | | private System.Windows.Forms.Label label5; |
| | | private System.Windows.Forms.DateTimePicker dtpHBeginDate; |
| | | private System.Windows.Forms.Label label6; |
| | | private System.Windows.Forms.Button button4; |
| | |
| | | private System.Windows.Forms.ToolStripButton cz; |
| | | private System.Windows.Forms.TextBox txtHSeOrderBillNo; |
| | | private System.Windows.Forms.Label label9; |
| | | private System.Windows.Forms.Button button2; |
| | | private System.Windows.Forms.Button button3; |
| | | private System.Windows.Forms.Button button7; |
| | | } |
| | | } |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | //å·æ°è¡¨ä½ è¿åæ¡ç åºåä¿¡æ¯ |
| | | [Route("KF_ICInventoryByMaterID/GetBillEntry_TmpList_Pack")] |
| | | [HttpGet] |
| | | public object GetBillEntry_TmpList_Pack(string HBarCode, long sHWHID, long sHSPID, long HOWNERID, string sWhere) |
| | | { |
| | | try |
| | | { |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | ds = oWebs.Get_ICInventoryByMaterIDList(HBarCode, sHWHID, sHSPID, HOWNERID, sWhere); |
| | | if (ds == null || ds.Tables[0].Rows.Count <= 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | //DBUtility.ClsPub.MessageBeep((int)DBUtility.ClsPub.BeepType.Warning); |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è·åä¿¡æ¯æåï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// çäº§æ±æ¥/æ«æ¡ç /ç´æ¥è°ç¨webservice |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("ICMOReportBill/get_CheckTypeByBarCode_Json1")] |
| | | [HttpGet] |
| | | public Object get_CheckTypeByBarCode_Json1(string sCode, Int64 sInterID, string sBillType, string sBillNo, string sMaker, Int64 WhID, Int64 SPID, Double sQty, bool sRedBlue, bool SourceFlag, string sSourceBillNo, string sSourceType, Int64 HOWNERID) |
| | | { |
| | | try |
| | | { |
| | | //if (sRedBlue == true) |
| | | //{ |
| | | // HBillType = "1239"; |
| | | //} |
| | | //oBar = webserver.get_CheckTypeByBarCode(sCode, sInterID, sBillType, sBillNo, sMaker, WhID, SPID, sQty, sRedBlue, SourceFlag, sSourceBillNo, sSourceType, HOWNERID, ref DBUtility.ClsPub.sErrInfo); |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | WebS.ClsKf_ICStockBill_WMS WebSoBar = new WebS.ClsKf_ICStockBill_WMS(); |
| | | string sExpressNumber = ""; |
| | | WebSoBar = oWebs.get_CheckTypeByBarCode_All(sCode, sInterID, HBillType, sBillNo, sMaker, WhID, SPID, sQty, sRedBlue, SourceFlag, sSourceBillNo, sSourceType, HOWNERID, sExpressNumber, ref DBUtility.ClsPub.sErrInfo); |
| | | if (WebSoBar == null) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = DBUtility.ClsPub.sErrInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = DBUtility.ClsPub.sErrInfo; |
| | | objJsonResult.data = WebSoBar; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = e.Message + ";" + e.StackTrace; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¸é®æ«ç 红å |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | /// <param name="HSourceBillNo"></param> |
| | | /// <returns></returns> |
| | | [Route("ICMOReportBill/set_SaveICMOReportBill")] |
| | | [Route("ICMOReportBill/set_SavePonderationBillMain_Temp_Source_Fast_Json_New")] |
| | | [HttpGet] |
| | | public object set_SaveICMOReportBill(string HSourceBillType, string HSourceBillNo, Int64 sInterID, string sBillNo) |
| | | public object set_SavePonderationBillMain_Temp_Source_Fast_Json_New(string HSourceBillType, string HSourceBillNo, Int64 sInterID, string sBillNo) |
| | | { |
| | | try |
| | | { |
| | |
| | | |
| | | websLsmain.HInterID = lsmain[0].HInterID; |
| | | websLsmain.HBillNo = lsmain[0].HBillNo; |
| | | websLsmain.HBillType = "1201";//åºå®å¼ |
| | | websLsmain.HBillType = "3711";//åºå®å¼ |
| | | websLsmain.HDate = lsmain[0].HDate; |
| | | websLsmain.HDeptID = lsmain[0].HDeptID; |
| | | websLsmain.HEmpID = 0; |
| | |
| | | ds = webserver.GetSPInfoByIDandHWHIDandOrg(HSpID, HWHID, HStockOrgID, ref sErrMsg); |
| | | if (ds == null || ds.Tables[0].Rows.Count <= 0) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼"; |
| | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è£
ç®±åæ«æææ¡ç /ç´æ¥è°ç¨webservice |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("PackUnionBill/SetPackBarCode_Webs1")] |
| | | [HttpGet] |
| | | public Object SetPackBarCode_Webs1(Int64 sInterID, string sBillNo, string sBillType, string HTBarCode, string sMaker, Int64 HOWNERID) |
| | | { |
| | | try |
| | | { |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | WebS.ClsKf_ICStockBill_WMS WebSoBar = new WebS.ClsKf_ICStockBill_WMS(); |
| | | //string sExpressNumber = ""; |
| | | WebSoBar = oWebs.get_CheckTypeByPackBarCode_Pack(sInterID, sBillNo, sBillType, HTBarCode, sMaker, HOWNERID, ref DBUtility.ClsPub.sErrInfo); |
| | | if (WebSoBar == null) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = DBUtility.ClsPub.sErrInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = DBUtility.ClsPub.sErrInfo; |
| | | objJsonResult.data = WebSoBar; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = e.Message + ";" + e.StackTrace; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | |
| | | [Route("PackSplitBill/GetBillEntry_TmpList_Pack")] |
| | | [HttpGet] |
| | | public object GetBillEntry_TmpList_Pack(Int64 HBillID, string HBillNo, string HBillType) |
| | | { |
| | | try |
| | | { |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | ds = oWebs.GetBillEntry_TmpList_Pack(HBillID, HBillNo, HBillType, ref DBUtility.ClsPub.sErrInfo); |
| | | if (ds == null || ds.Tables[0].Rows.Count <= 0) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | //DBUtility.ClsPub.MessageBeep((int)DBUtility.ClsPub.BeepType.Warning); |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è·åä¿¡æ¯æåï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | [Route("PackUnionBill/GetBillEntry_TmpList_Pack1")] |
| | | [HttpGet] |
| | | public object GetBillEntry_TmpList_Pack1(Int64 HBillID, string HBillNo, string HBillType) |
| | | { |
| | | try |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æç®±åæ«ææç®±æ¡ç /ç´æ¥è°ç¨webservice |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("PackUnionBill/get_CheckTypeByBarCode_Json1")] |
| | | [HttpGet] |
| | | public Object get_CheckTypeByBarCode_Json1(string HBarCode, Int64 sInterID, string HBillType, string sBillNo, string HTBarCode, string sMaker, Int64 HOWNERID) |
| | | { |
| | | try |
| | | { |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | if (oWebs.get_CheckTypeByBarCode_PackUnion(HBarCode, sInterID, HBillType, sBillNo, HTBarCode, sMaker, HOWNERID, ref DBUtility.ClsPub.sErrInfo)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "æ«ç æåï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = DBUtility.ClsPub.sErrInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = e.Message + ";" + e.StackTrace; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | [Route("PackSplit/Delete")] |
| | | [HttpGet] |
| | | public object Delete(long HInterID, string HBarCode,string HBillType) |