| | |
| | | public Int64 HInterID = 0; |
| | | public string HBillNo = ""; |
| | | public string HBillType = "1202"; |
| | | public Int64 HMaterID = 0; |
| | | public string HBatchNo = ""; |
| | | public Int64 HAuxPropID = 0; |
| | | public Int64 HUnitID = 0; |
| | | public Int64 HWhID = 0; |
| | |
| | | public string PrintQtyCtl = ""; //æ¡ç æå°æ¬¡æ°æ§å¶ |
| | | public string UpdatePrintQtyCtl = ""; //æ¡ç æå°æ¬¡æ°æ´æ° |
| | | public string sBarCodeItemID = ""; //æ¡ç èªå¢å |
| | | public string HBarCode_Pack = ""; //ææ¡ç |
| | | public long HSNo = 0; //ç»æè®¡æ°ç¨ |
| | | public DAL.ClsGy_BarCodeBill_Ctl oBar = new DAL.ClsGy_BarCodeBill_Ctl(); |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | |
| | | { |
| | | HInterID = DBUtility.ClsPub.CreateBillID_Prod(HBillType, ref DBUtility.ClsPub.sExeReturnInfo); //å¾å°æ°åæ®ID |
| | | HBillNo = DBUtility.ClsPub.CreateBillCode_Prod(HBillType, ref DBUtility.ClsPub.sExeReturnInfo, true); //å¾å°æ°åæ®å· |
| | | HSNo = 0; |
| | | this.lblSNo.Text = ""; |
| | | } |
| | | else if (DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HBack"]) == 1) |
| | | { |
| | | HInterID = DBUtility.ClsPub.CreateBillID_Prod(HBillType, ref DBUtility.ClsPub.sExeReturnInfo); //å¾å°æ°åæ®ID |
| | | HBillNo = DBUtility.ClsPub.CreateBillCode_Prod(HBillType, ref DBUtility.ClsPub.sExeReturnInfo, true); //å¾å°æ°åæ®å· |
| | | HSNo = 0; |
| | | this.lblSNo.Text = ""; |
| | | } |
| | | else |
| | | { |
| | |
| | | if (grdSub.Rows.Count > 0) |
| | | { |
| | | grdSub.Rows[0].Selected = true; |
| | | SourceBill(); |
| | | SourceBill(1); |
| | | txtHQty.Focus(); |
| | | } |
| | | else |
| | |
| | | return false; |
| | | } |
| | | |
| | | if (DBUtility.ClsPub.isStrNull(txtHBarCode_Pack.Text) != "") |
| | | { |
| | | MessageBox.Show("å½åç»ææªç»æï¼è¯·ç»æç»æååç¹å»æ¢çï¼", "æç¤º"); |
| | | return false; |
| | | } |
| | | |
| | | //夿ä¼è®¡ææ¯å¦åç |
| | | string s = ""; |
| | | int sYear = 0; |
| | |
| | | } |
| | | Source_Display(); |
| | | grdSub.Rows[0].Selected = true; |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill(gbUp); |
| | | SourceBill(); |
| | | SourceBill(2); |
| | | txtHBarCode.Text = ""; |
| | | txtHQty.Focus(); |
| | | } |
| | |
| | | } |
| | | Source_Display(); |
| | | grdSub.Rows[0].Selected = true; |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill(gbUp); |
| | | SourceBill(); |
| | | SourceBill(2); |
| | | txtHBarCode.Text = ""; |
| | | txtHQty.Focus(); |
| | | } |
| | |
| | | |
| | | private void cmdSourceBillNo_Click(object sender, EventArgs e) |
| | | { |
| | | //åå§åå³è¾¹è¡¨å¤´ä¿¡æ¯ |
| | | cmbHBarCodeType.Items.Clear(); |
| | | cmbHBarCodeType.Items.Add("å¯ä¸æ¡ç "); |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill(gbUp); |
| | | |
| | | if (grdSub.CurrentRow == null) |
| | | { |
| | | MessageBox.Show("请å¨å·¦è¾¹åæ®å表ä¸éæ©ä¸è¡åæ®ï¼", "æç¤º"); |
| | |
| | | } |
| | | else |
| | | { |
| | | SourceBill(); |
| | | SourceBill(3); |
| | | txtHQty.Focus(); |
| | | } |
| | | } |
| | |
| | | } |
| | | SaveBarCode(); |
| | | BarCode_Display(); |
| | | if (DBUtility.ClsPub.isStrNull(txtHBarCode_Pack.Text) != "") |
| | | { |
| | | this.lblSNo.Text = "å½åå·²ç» " + HSNo + " ä»¶"; |
| | | } |
| | | grdMain.Rows[0].Selected = true; |
| | | |
| | | sBarCodeItemID = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.SelectedRows[0].Index].Cells[Fun_GetCol("HItemID")].Value).ToString(); |
| | |
| | | Int64 HBadReasonID = 0; //ä¸è¯åå ID |
| | | string HCusMaterName = ""; //客æ·ç©æåç§° |
| | | string HCusModel = ""; //客æ·è§æ ¼åå· |
| | | string HBarCode_Pack = ""; //æçæ¡ç |
| | | |
| | | HBarCode = TM; |
| | | HBarCodeType = DBUtility.ClsPub.isStrNull(cmbHBarCodeType.Text); |
| | |
| | | HBadReasonID = DBUtility.ClsPub.isLong(txtHRemark.Tag); |
| | | HCusMaterName = DBUtility.ClsPub.isStrNull(txtHCusMaterName.Text); |
| | | HCusModel = DBUtility.ClsPub.isStrNull(txtHCusModel.Text); |
| | | HBarCode_Pack = DBUtility.ClsPub.isStrNull(txtHBarCode_Pack.Text); |
| | | if (HBarCode_Pack != "") |
| | | { |
| | | HSNo = HSNo + 1; |
| | | } |
| | | |
| | | try |
| | | { |
| | |
| | | ",HCusID,HCusType,HEndDate,HWorkLineName,HBarCodeDate,HMaterialJQty,HMaterialMQty,HNowQty " + |
| | | ",HSTOCKORGID,HOWNERID,HSeOrderBillNo,HInterID,HGiveAwayFlag,HBarCode_Pack " + |
| | | ",HOrderInterID,HOrderEntryID,HOrderBillNo,HCustomQty1,HMaterialModel,HCusModel " + |
| | | ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo,HLogo " + |
| | | ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo,HLogo,HPackflag " + |
| | | ") Values (" |
| | | + "'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID.ToString() + "," + HUnitID.ToString() + "," + HQty.ToString() |
| | | + ",'" + HBatchNo + "'," + HSupID.ToString() + ",0,'" + HMaker + "',getdate(),0," + HQty.ToString() |
| | |
| | | + ", 0,'',getdate(),'','" + sDate + "'," + HMaterialJQty.ToString() + "," + HMaterialMQty.ToString() + "," + HNowQty.ToString() |
| | | + ", " + HStockOrgID.ToString() + "," + HStockOrgID.ToString() + ",''," + HInterID.ToString() + ",0,'" + HBarCode_Pack + "'" |
| | | + ", " + HProcessExchangeInterID.ToString() + ",0,'" + HProcessExchangeBillNo + "'," + HBadReasonID.ToString() + ",'" + HCusMaterName + "','" + HCusModel + "'" |
| | | + ",'" + HMaterName + "','" + HMaterModel + "',''," + HAuxPropID.ToString() + ",'','','1')"); |
| | | + ",'" + HMaterName + "','" + HMaterModel + "',''," + HAuxPropID.ToString() + ",'','','1',0)"); |
| | | |
| | | //åå¡«æå¤§æµæ°´å· |
| | | oCn.RunProc("exec h_p_WMS_SetMaxNo_QTY '" + sTMNumber + "',1 "); |
| | |
| | | |
| | | #region //è¿åä¿¡æ¯ |
| | | |
| | | //è¿åæºååè¡¨ä¿¡æ¯ |
| | | private void SourceBill() |
| | | //è¿åæºåå表信æ¯(num=1ï¼æå¼æ¨¡åæ¶å è½½æ¾ç¤ºï¼num=2ï¼æ«æµè½¬å¡æ¾ç¤ºï¼num=3ï¼éåæé®æ¾ç¤º) |
| | | private void SourceBill(int num) |
| | | { |
| | | //æå¼æ¨¡åæ¶å è½½æ¾ç¤º |
| | | if (num == 1) |
| | | { |
| | | txtHBarCode_Pack.Text = DBUtility.ClsPub.isStrNull(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HBarCode_Pack")].Value); |
| | | HBarCode_Pack = DBUtility.ClsPub.isStrNull(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HBarCode_Pack")].Value); |
| | | HSNo = DBUtility.ClsPub.isLong(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HSNo")].Value); |
| | | if (HBarCode_Pack == "") |
| | | { |
| | | this.lblSNo.Text = ""; |
| | | } |
| | | else |
| | | { |
| | | this.lblSNo.Text = "å½åå·²ç» " + HSNo + " ä»¶"; |
| | | cmdHBPack.Enabled = false; |
| | | } |
| | | } |
| | | //æ«æµè½¬å¡æ¾ç¤º |
| | | if (num == 2) |
| | | { |
| | | //åå§åå³è¾¹è¡¨å¤´ä¿¡æ¯ |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill(gbUp); |
| | | if (HBarCode_Pack != "") |
| | | { |
| | | txtHBarCode_Pack.Text = HBarCode_Pack; |
| | | this.lblSNo.Text = "å½åå·²ç» " + HSNo + " ä»¶"; |
| | | } |
| | | } |
| | | //éåæé®æ¾ç¤º |
| | | if (num == 3) |
| | | { |
| | | if (HSNo != 0 && (HMaterID != DBUtility.ClsPub.isLong(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HMaterID")].Value) |
| | | || HBatchNo != DBUtility.ClsPub.isStrNull(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("æ¹å·")].Value))) |
| | | { |
| | | MessageBox.Show("ææ«ææµè½¬å¡å¯¹åºç©æãæ¹å·ä¸å½åæ£å¨ç»æç©æãæ¹å·ä¸ä¸è´ï¼ä¸åç©æãæ¹å·ä¸å
è®¸ç»æå¨å䏿ä¸ï¼å¦éæ¢ç©æçææ¡ç 请å
ç»æå½åç»æï¼", "æç¤º"); |
| | | return; |
| | | } |
| | | //åå§åå³è¾¹è¡¨å¤´ä¿¡æ¯ |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill(gbUp); |
| | | if (HBarCode_Pack != "") |
| | | { |
| | | txtHBarCode_Pack.Text = HBarCode_Pack; |
| | | this.lblSNo.Text = "å½åå·²ç» " + HSNo + " ä»¶"; |
| | | } |
| | | } |
| | | txtHBillNo.Text = DBUtility.ClsPub.isStrNull(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("åæ®å·")].Value); |
| | | txtHDeptName.Tag = DBUtility.ClsPub.isLong(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HDeptID")].Value); |
| | | txtHDeptName.Text = DBUtility.ClsPub.isStrNull(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("车é´")].Value); |
| | |
| | | txtHBatchNo.Text = DBUtility.ClsPub.isStrNull(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("æ¹å·")].Value); |
| | | txtHCusMaterName.Text = DBUtility.ClsPub.isStrNull(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HCusMaterName")].Value); |
| | | txtHCusModel.Text = DBUtility.ClsPub.isStrNull(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HCusModel")].Value); |
| | | HMaterID = DBUtility.ClsPub.isLong(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HMaterID")].Value); |
| | | HBatchNo = DBUtility.ClsPub.isStrNull(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("æ¹å·")].Value); |
| | | HAuxPropID = DBUtility.ClsPub.isLong(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HAuxPropID")].Value); |
| | | HUnitID = DBUtility.ClsPub.isLong(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HUnitID")].Value); |
| | | HWhID = DBUtility.ClsPub.isLong(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HWhID")].Value); |
| | |
| | | string HItemID = ""; |
| | | string HBarCode = ""; |
| | | string HBarCode2 = ""; |
| | | long HSNo_Temp = HSNo; |
| | | for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | { |
| | | HItemID = HItemID + "," + DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("hmainid")].Value.ToString()); |
| | |
| | | { |
| | | HRemark = HRemark + "ã" + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value); |
| | | } |
| | | //æ´æ°å½åå·²ç»æä»¶æ° |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("HBarCode_Pack")].Value) != "" |
| | | && DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("HBarCode_Pack")].Value) == HBarCode_Pack |
| | | && DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç±»å")].Value) != "æçæ¡ç ") |
| | | { |
| | | HSNo = HSNo - 1; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç±»å")].Value) == "æçæ¡ç ") |
| | | { |
| | | MessageBox.Show("æéæ¡ç ç¼å·ï¼" + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value) + " 为æçæ¡ç ï¼ä¸å
许ä½åºï¼", "æç¤º"); |
| | | return; |
| | | if (DBUtility.ClsPub.isBool(grdMain.SelectedRows[i].Cells[Fun_GetCol("HPackflag")].Value)) |
| | | { |
| | | MessageBox.Show("æéæ¡ç ç¼å·ï¼" + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value) + " 为æçæ¡ç ï¼ä¸å·²ç»æçæå¯¹åºç»æåï¼ä¸å
许ä½åºï¼", "æç¤º"); |
| | | return; |
| | | } |
| | | else if (HSNo > 0) |
| | | { |
| | | MessageBox.Show("æéæ¡ç ç¼å·ï¼" + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value) + " 为æçæ¡ç ï¼ä¸å½åæçæ¡ç ä¸å·²çæå¯¹åºæ¡ç ï¼ä¸å
许ä½åºï¼", "æç¤º"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | HBarCode_Pack = ""; |
| | | } |
| | | } |
| | | } |
| | | if (HRemark != "") |
| | | { |
| | | HSNo = HSNo_Temp; |
| | | HBarCode_Pack = DBUtility.ClsPub.isStrNull(txtHBarCode_Pack.Text); |
| | | MessageBox.Show("æéæ¡ç ç¼å·ï¼"+ HRemark.Remove(0, 1)+" å·²ä½åºï¼ä¸å
许éå¤ä½åºï¼", "æç¤º"); |
| | | return; |
| | | } |
| | |
| | | catch (Exception e2) |
| | | { |
| | | oCn.RollBack(); |
| | | HSNo = HSNo_Temp; |
| | | HBarCode_Pack = DBUtility.ClsPub.isStrNull(txtHBarCode_Pack.Text); |
| | | MessageBox.Show("ä½åºæ¡ç 失败ï¼" + e2.Message, "æç¤º"); |
| | | return; |
| | | } |
| | | //å·æ°ç§°éè®°å½åè¡¨ä¿¡æ¯ |
| | | BarCode_Display(); |
| | | if (HBarCode_Pack != "") |
| | | { |
| | | this.lblSNo.Text = "å½åå·²ç» " + HSNo + " ä»¶"; |
| | | } |
| | | else |
| | | { |
| | | txtHBarCode_Pack.Text = ""; |
| | | this.lblSNo.Text = ""; |
| | | cmdHBPack.Enabled = true; |
| | | } |
| | | MessageBox.Show("æéæ¡ç ç¼å·ï¼" + HBarCode.Remove(0, 1) + " ä½åºæåï¼", "æç¤º"); |
| | | } |
| | | } |
| | |
| | | string HItemID = ""; |
| | | string HBarCode = ""; |
| | | string HBarCode2 = ""; |
| | | string HBarCode_Pack = DBUtility.ClsPub.isStrNull(txtHBarCode_Pack.Text); |
| | | long HSNo_Temp = HSNo; |
| | | bool HFlag = false; |
| | | |
| | | //çé¢ä¸ä¸ºæªå¯ç¨ç»æç¶æ |
| | | if (HBarCode_Pack == "") |
| | | { |
| | | for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | { |
| | | //夿æ¡ç æ¯å¦ä¸ºæçæ¡ç ï¼æªçæç»æåï¼å·²ä½åºç¶æï¼çé¢ä¸ä¸ºæªç»æç¶æ |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç±»å")].Value) == "æçæ¡ç " |
| | | && DBUtility.ClsPub.isBool(grdMain.SelectedRows[i].Cells[Fun_GetCol("HPackflag")].Value) == false |
| | | && DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("ä½åºæ è®°")].Value) != "" |
| | | ) |
| | | { |
| | | HFlag = true; |
| | | HBarCode_Pack = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("HBarCode_Pack")].Value); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | |
| | | for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++) |
| | | { |
| | | HItemID = HItemID + "," + DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("hmainid")].Value.ToString()); |
| | |
| | | { |
| | | HRemark = HRemark + "ã" + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value); |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç±»å")].Value) == "æçæ¡ç ") |
| | | |
| | | //æ¡ç ä¸ºç»ææ¡ç |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("HBarCode_Pack")].Value) != "") |
| | | { |
| | | MessageBox.Show("æéæ¡ç ç¼å·ï¼" + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value) + " 为æçæ¡ç ï¼ä¸å
许åä½åºï¼", "æç¤º"); |
| | | return; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("HBarCode_Pack")].Value) != "" |
| | | && DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("HBarCode_Pack")].Value) != HBarCode_Pack) |
| | | { |
| | | MessageBox.Show("æéæ¡ç ç¼å·ï¼" + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value) + " å·²çæå¯¹åºç»æåï¼ä¸å
许åä½åºï¼", "æç¤º"); |
| | | return; |
| | | //å·²ä¸ä¼ çæç»æå |
| | | if (DBUtility.ClsPub.isBool(grdMain.SelectedRows[i].Cells[Fun_GetCol("HPackflag")].Value)) |
| | | { |
| | | |
| | | } |
| | | //æªä¸ä¼ çæç»æå |
| | | else |
| | | { |
| | | //æ¡ç å¯¹åºææ¡ç åçé¢ä¸çææ¡ç ä¸è´ |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("HBarCode_Pack")].Value) == HBarCode_Pack) |
| | | { |
| | | //æ´æ°å½åå·²ç»æä»¶æ° |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç±»å")].Value) != "æçæ¡ç ") |
| | | { |
| | | HSNo = HSNo + 1; |
| | | } |
| | | |
| | | } |
| | | //æ¡ç å¯¹åºææ¡ç åçé¢ä¸çææ¡ç ä¸ä¸è´ |
| | | else |
| | | { |
| | | MessageBox.Show("æéæ¡ç ç¼å·ï¼" + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value) + " å¯¹åºææ¡ç ï¼" + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("HBarCode_Pack")].Value) + " å·²çæç»æåï¼æå·²ä½åºï¼ä¸å
许åä½åºï¼", "æç¤º"); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if (HRemark != "") |
| | | { |
| | | HSNo = HSNo_Temp; |
| | | if(HFlag) |
| | | { |
| | | HBarCode_Pack = ""; |
| | | } |
| | | MessageBox.Show("æéæ¡ç ç¼å·ï¼" + HRemark.Remove(0, 1) + " æªä½åºï¼ä¸å
许åä½åºï¼", "æç¤º"); |
| | | return; |
| | | } |
| | |
| | | ",0,0,'',0,'',0" + |
| | | ",HSTOCKORGID,HSTOCKORGID,HSTOCKORGID,'','ç§°éå
¥åºçæ-åä½åº','2'" + |
| | | ",0,0,'',0" + |
| | | "from Gy_BarCodeBill with(nolock) where HItemID in (" + HItemID + ")" |
| | | "from Gy_BarCodeBill with(nolock) where HItemID in (" + HItemID + ") and HBarCodeType='å¯ä¸æ¡ç ' " |
| | | ); |
| | | |
| | | //åå
¥ç³»ç»æ¥å¿ |
| | |
| | | catch (Exception e2) |
| | | { |
| | | oCn.RollBack(); |
| | | HSNo = HSNo_Temp; |
| | | if (HFlag) |
| | | { |
| | | HBarCode_Pack = ""; |
| | | } |
| | | MessageBox.Show("åä½åºæ¡ç 失败ï¼" + e2.Message, "æç¤º"); |
| | | return; |
| | | } |
| | | //å·æ°ç§°éè®°å½åè¡¨ä¿¡æ¯ |
| | | BarCode_Display(); |
| | | if (HBarCode_Pack != "") |
| | | { |
| | | txtHBarCode_Pack.Text = HBarCode_Pack; |
| | | this.lblSNo.Text = "å½åå·²ç» " + HSNo + " ä»¶"; |
| | | cmdHBPack.Enabled = false; |
| | | } |
| | | else |
| | | { |
| | | txtHBarCode_Pack.Text = ""; |
| | | this.lblSNo.Text = ""; |
| | | cmdHBPack.Enabled = true; |
| | | } |
| | | MessageBox.Show("æéæ¡ç ç¼å·ï¼" + HBarCode.Remove(0, 1) + " åä½åºæåï¼", "æç¤º"); |
| | | } |
| | | } |
| | |
| | | { |
| | | return; |
| | | } |
| | | HSNo = 0; |
| | | SavePackBarCode(); |
| | | BarCode_Display(); |
| | | this.lblSNo.Text = "å½åå·²ç» " + HSNo + " ä»¶"; |
| | | grdMain.Rows[0].Selected = true; |
| | | |
| | | txtHBarCode_Pack.Text = DBUtility.ClsPub.isStrNull(grdMain.Rows[grdMain.SelectedRows[0].Index].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value); |
| | | HBarCode_Pack = DBUtility.ClsPub.isStrNull(grdMain.Rows[grdMain.SelectedRows[0].Index].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value); |
| | | cmdHBPack.Enabled = false; |
| | | |
| | | sBarCodeItemID = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.SelectedRows[0].Index].Cells[Fun_GetCol("HItemID")].Value).ToString(); |
| | | //èªå¨æå° |
| | | if (chkHDYFlag.Checked == true) |
| | | { |
| | | //æå°æ¡ç |
| | | Sub_SetReport("æçæ¡ç "); |
| | | Report.Print(false); |
| | | Thread.Sleep(1000); |
| | | } |
| | | else |
| | | //if (chkHDYFlag.Checked == true) |
| | | //{ |
| | | // //æå°æ¡ç |
| | | // Sub_SetReport("æçæ¡ç "); |
| | | // Report.Print(false); |
| | | // Thread.Sleep(1000); |
| | | //} |
| | | //else |
| | | { |
| | | //éæ©æå°æ¨¡æ¿ |
| | | BLL.Gy_OpenTmp oFrm = new BLL.Gy_OpenTmp(); |
| | |
| | | if (HInterID == 0 || HBillNo == "") |
| | | { |
| | | MessageBox.Show("è·åæ¡ç 对åºåæ®IDæåæ®å·å¤±è´¥ï¼è¯·éæ°å·æ°çé¢ï¼", "æç¤º"); |
| | | return false; |
| | | } |
| | | if (HProcessExchangeInterID == 0) |
| | | { |
| | | MessageBox.Show("请å
æ«ææµè½¬å¡å·ï¼", "æç¤º"); |
| | | return false; |
| | | } |
| | | return true; |
| | |
| | | TM = sTMNumber + LSH2; |
| | | |
| | | string HBarCode = ""; |
| | | string HBarCodeType = "æçæ¡ç "; |
| | | string HBarCodeType = ""; |
| | | string HMaterID = ""; //ç©æå
ç |
| | | string HBatchNo = ""; //æ¹æ¬¡ |
| | | string HMaterName = ""; |
| | | string HMaterModel = ""; |
| | | string HProcessExchangeBillNo = ""; |
| | | string HCusMaterName = ""; //客æ·ç©æåç§° |
| | | string HCusModel = ""; //客æ·è§æ ¼åå· |
| | | |
| | | HBarCode = TM; |
| | | HBarCodeType = ""; |
| | | HBarCodeType = "æçæ¡ç "; |
| | | HMaterID = DBUtility.ClsPub.isStrNull(txtHMaterNumber.Tag); |
| | | HBatchNo = DBUtility.ClsPub.isStrNull(txtHBatchNo.Text); |
| | | HMaterName = DBUtility.ClsPub.isStrNull(txtHMaterName.Text); |
| | | HMaterModel = DBUtility.ClsPub.isStrNull(txtHMaterModel.Text); |
| | | HProcessExchangeBillNo = DBUtility.ClsPub.isStrNull(txtHBillNo.Text); |
| | | HCusMaterName = DBUtility.ClsPub.isStrNull(txtHCusMaterName.Text); |
| | | HCusModel = DBUtility.ClsPub.isStrNull(txtHCusModel.Text); |
| | | |
| | | try |
| | | { |
| | |
| | | ",HCusID,HCusType,HEndDate,HWorkLineName,HBarCodeDate,HMaterialJQty,HMaterialMQty,HNowQty " + |
| | | ",HSTOCKORGID,HOWNERID,HSeOrderBillNo,HInterID,HGiveAwayFlag " + |
| | | ",HOrderInterID,HOrderEntryID,HOrderBillNo,HCustomQty1,HMaterialModel,HCusModel " + |
| | | ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo,HLogo " + |
| | | ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo,HLogo,HPackflag " + |
| | | ") Values (" |
| | | + "'" + HBarCode + "','" + HBarCodeType + "',0,0,1,'" + HBarCode + "'" |
| | | + ",'',0,0,'" + HMaker + "',getdate(),0,1" |
| | | + ",0,0,'','',''" |
| | | + "'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID.ToString() + "," + HUnitID.ToString() + ",1,'" + HBarCode + "'" |
| | | + ",'" + HBatchNo + "'," + HSupID.ToString() + ",0,'" + HMaker + "',getdate(),0,1" |
| | | + ", " + HSourceInterID.ToString() + "," + HSourceEntryID.ToString() + ",'" + HSourceBillNo + "','" + HSourceBillType + "',''" |
| | | + ",1,0,0,0,0,''" |
| | | + ", 0,'',getdate(),'','" + sDate + "',0,0,0" |
| | | + ", " + HStockOrgID.ToString() + "," + HStockOrgID.ToString() + ",''," + HInterID.ToString() + ",0" |
| | | + ", " + HProcessExchangeInterID.ToString() + ",0,'',0,'',''" |
| | | + ",'','','',0,'','','1')"); |
| | | + ", " + HProcessExchangeInterID.ToString() + ",0,'" + HProcessExchangeBillNo + "',0,'" + HCusMaterName + "','" + HCusModel + "'" |
| | | + ",'" + HMaterName + "','" + HMaterModel + "',''," + HAuxPropID.ToString() + ",'','','1',0)"); |
| | | |
| | | //åå¡«æå¤§æµæ°´å· |
| | | oCn.RunProc("exec h_p_WMS_SetMaxNo_QTY '" + sTMNumber + "',1 "); |
| | |
| | | #region //ç»æç»æ |
| | | private void cmdHEPack_Click(object sender, EventArgs e) |
| | | { |
| | | string HBarCode_Pack = DBUtility.ClsPub.isStrNull(txtHBarCode_Pack.Text); |
| | | |
| | | //çæç»æåå夿 |
| | | if(HBarCode_Pack=="") |
| | | { |
| | |
| | | ",HAuxPropID,HBatchNo,HMTONo" + |
| | | ",HSourceID,HEquipID,HGroupID,HWorkerID,HStatus" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType) " + |
| | | " select " + HPUInterID.ToString() + ",HItemID,'0,0,''" + |
| | | " select " + HPUInterID.ToString() + ",HItemID,0,0,''" + |
| | | ",HMaterID,HUnitID,HQty,HBarCode,HBarCode_Pack,getdate()" + |
| | | ",HAuxPropID,HBatchNo,HMTONo" + |
| | | ",0,0,0,0,0" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" + |
| | | "from Gy_BarCodeBill with(nolock) where HInterID=" + HInterID.ToString() + " and HBarCode_Pack='" + HBarCode_Pack + "' and HStopflag=0" |
| | | " from Gy_BarCodeBill with(nolock) where HInterID=" + HInterID.ToString() + " and HBarCode_Pack='" + HBarCode_Pack + "' and HStopflag=0 and HBarCodeType='å¯ä¸æ¡ç ' " |
| | | ); |
| | | |
| | | //åå¡«æ¡ç æ¡£æ¡ç»ææ è®° |
| | | oCn.RunProc("update Gy_BarCodeBill set HPackflag=1 where HInterID=" + HInterID.ToString() + " and HBarCode_Pack='" + HBarCode_Pack + "' and HStopflag=0", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | |
| | | MessageBox.Show("çæçäº§ç»æåï¼" + HPUBillNo + " æåï¼", "æç¤º"); |
| | | |
| | | txtHBarCode_Pack.Text = ""; |
| | | HBarCode_Pack = ""; |
| | | cmdHBPack.Enabled = true; |
| | | HSNo = 0; |
| | | this.lblSNo.Text = ""; |
| | | BarCode_Display(); |
| | | oCn.Commit(); |
| | | return; |
| | | } |
| | |
| | | { |
| | | this.components = new System.ComponentModel.Container(); |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Kf_WeighToBarCode)); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | this.Tool = new System.Windows.Forms.ToolStrip(); |
| | | this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.mrlk = new System.Windows.Forms.ToolStripButton(); |
| | |
| | | this.label4 = new System.Windows.Forms.Label(); |
| | | this.txtHMaterNumber = new System.Windows.Forms.TextBox(); |
| | | this.gbUp = new System.Windows.Forms.GroupBox(); |
| | | this.lblSNo = new System.Windows.Forms.Label(); |
| | | this.label18 = new System.Windows.Forms.Label(); |
| | | this.txtHBarCode_Pack = new System.Windows.Forms.TextBox(); |
| | | this.cmdHEPack = new System.Windows.Forms.Button(); |
| | | this.cmdHBPack = new System.Windows.Forms.Button(); |
| | | this.textBox_COM = new System.Windows.Forms.TextBox(); |
| | | this.label_COM = new System.Windows.Forms.Label(); |
| | | this.button_OpenCom = new System.Windows.Forms.Button(); |
| | |
| | | this.å³ä¾§ = new System.Windows.Forms.Panel(); |
| | | this.timer2 = new System.Windows.Forms.Timer(this.components); |
| | | this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker(); |
| | | this.cmdHBPack = new System.Windows.Forms.Button(); |
| | | this.cmdHEPack = new System.Windows.Forms.Button(); |
| | | this.label18 = new System.Windows.Forms.Label(); |
| | | this.txtHBarCode_Pack = new System.Windows.Forms.TextBox(); |
| | | this.Tool.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdMain)).BeginInit(); |
| | | this.gbUp.SuspendLayout(); |
| | |
| | | this.grdMain.AllowUserToDeleteRows = false; |
| | | this.grdMain.BackgroundColor = System.Drawing.SystemColors.ControlLightLight; |
| | | this.grdMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
| | | dataGridViewCellStyle3.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; |
| | | dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
| | | dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
| | | this.grdMain.DefaultCellStyle = dataGridViewCellStyle3; |
| | | dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window; |
| | | dataGridViewCellStyle1.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText; |
| | | dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
| | | dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
| | | this.grdMain.DefaultCellStyle = dataGridViewCellStyle1; |
| | | this.grdMain.Dock = System.Windows.Forms.DockStyle.Fill; |
| | | this.grdMain.Location = new System.Drawing.Point(3, 3); |
| | | this.grdMain.Margin = new System.Windows.Forms.Padding(0); |
| | |
| | | // gbUp |
| | | // |
| | | this.gbUp.BackColor = System.Drawing.Color.Transparent; |
| | | this.gbUp.Controls.Add(this.lblSNo); |
| | | this.gbUp.Controls.Add(this.label18); |
| | | this.gbUp.Controls.Add(this.txtHBarCode_Pack); |
| | | this.gbUp.Controls.Add(this.cmdHEPack); |
| | |
| | | this.gbUp.TabIndex = 58; |
| | | this.gbUp.TabStop = false; |
| | | // |
| | | // lblSNo |
| | | // |
| | | this.lblSNo.AutoSize = true; |
| | | this.lblSNo.Font = new System.Drawing.Font("å®ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.lblSNo.ForeColor = System.Drawing.Color.Red; |
| | | this.lblSNo.Location = new System.Drawing.Point(843, 158); |
| | | this.lblSNo.Name = "lblSNo"; |
| | | this.lblSNo.Size = new System.Drawing.Size(20, 19); |
| | | this.lblSNo.TabIndex = 334; |
| | | this.lblSNo.Text = "."; |
| | | // |
| | | // label18 |
| | | // |
| | | this.label18.AutoSize = true; |
| | | this.label18.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label18.ForeColor = System.Drawing.Color.Black; |
| | | this.label18.Location = new System.Drawing.Point(638, 116); |
| | | this.label18.Name = "label18"; |
| | | this.label18.Size = new System.Drawing.Size(53, 12); |
| | | this.label18.TabIndex = 332; |
| | | this.label18.Text = "æçæ¡ç "; |
| | | // |
| | | // txtHBarCode_Pack |
| | | // |
| | | this.txtHBarCode_Pack.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.txtHBarCode_Pack.ImeMode = System.Windows.Forms.ImeMode.NoControl; |
| | | this.txtHBarCode_Pack.Location = new System.Drawing.Point(693, 112); |
| | | this.txtHBarCode_Pack.Name = "txtHBarCode_Pack"; |
| | | this.txtHBarCode_Pack.ReadOnly = true; |
| | | this.txtHBarCode_Pack.Size = new System.Drawing.Size(128, 21); |
| | | this.txtHBarCode_Pack.TabIndex = 333; |
| | | // |
| | | // cmdHEPack |
| | | // |
| | | this.cmdHEPack.BackColor = System.Drawing.Color.White; |
| | | this.cmdHEPack.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdHEPack.Location = new System.Drawing.Point(847, 89); |
| | | this.cmdHEPack.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmdHEPack.Name = "cmdHEPack"; |
| | | this.cmdHEPack.Size = new System.Drawing.Size(86, 44); |
| | | this.cmdHEPack.TabIndex = 331; |
| | | this.cmdHEPack.Text = "ç»æç»æ"; |
| | | this.cmdHEPack.UseVisualStyleBackColor = false; |
| | | this.cmdHEPack.Click += new System.EventHandler(this.cmdHEPack_Click); |
| | | // |
| | | // cmdHBPack |
| | | // |
| | | this.cmdHBPack.BackColor = System.Drawing.Color.White; |
| | | this.cmdHBPack.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdHBPack.Location = new System.Drawing.Point(847, 28); |
| | | this.cmdHBPack.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmdHBPack.Name = "cmdHBPack"; |
| | | this.cmdHBPack.Size = new System.Drawing.Size(86, 44); |
| | | this.cmdHBPack.TabIndex = 330; |
| | | this.cmdHBPack.Text = "å¼å§ç»æ"; |
| | | this.cmdHBPack.UseVisualStyleBackColor = false; |
| | | this.cmdHBPack.Click += new System.EventHandler(this.cmdHBPack_Click); |
| | | // |
| | | // textBox_COM |
| | | // |
| | | this.textBox_COM.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | |
| | | this.button_OpenCom.BackColor = System.Drawing.Color.White; |
| | | this.button_OpenCom.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.button_OpenCom.Location = new System.Drawing.Point(429, 222); |
| | | this.button_OpenCom.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); |
| | | this.button_OpenCom.Margin = new System.Windows.Forms.Padding(2); |
| | | this.button_OpenCom.Name = "button_OpenCom"; |
| | | this.button_OpenCom.Size = new System.Drawing.Size(86, 32); |
| | | this.button_OpenCom.TabIndex = 327; |
| | |
| | | this.button_getHWeight.BackColor = System.Drawing.Color.White; |
| | | this.button_getHWeight.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.button_getHWeight.Location = new System.Drawing.Point(322, 222); |
| | | this.button_getHWeight.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); |
| | | this.button_getHWeight.Margin = new System.Windows.Forms.Padding(2); |
| | | this.button_getHWeight.Name = "button_getHWeight"; |
| | | this.button_getHWeight.Size = new System.Drawing.Size(86, 32); |
| | | this.button_getHWeight.TabIndex = 326; |
| | |
| | | // |
| | | this.chkHDYFlag.AutoSize = true; |
| | | this.chkHDYFlag.Location = new System.Drawing.Point(558, 236); |
| | | this.chkHDYFlag.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); |
| | | this.chkHDYFlag.Margin = new System.Windows.Forms.Padding(2); |
| | | this.chkHDYFlag.Name = "chkHDYFlag"; |
| | | this.chkHDYFlag.Size = new System.Drawing.Size(72, 16); |
| | | this.chkHDYFlag.TabIndex = 316; |
| | |
| | | this.cmdFZF.BackColor = System.Drawing.Color.White; |
| | | this.cmdFZF.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdFZF.Location = new System.Drawing.Point(729, 222); |
| | | this.cmdFZF.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); |
| | | this.cmdFZF.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmdFZF.Name = "cmdFZF"; |
| | | this.cmdFZF.Size = new System.Drawing.Size(86, 32); |
| | | this.cmdFZF.TabIndex = 157; |
| | |
| | | this.cmdZF.BackColor = System.Drawing.Color.White; |
| | | this.cmdZF.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdZF.Location = new System.Drawing.Point(635, 222); |
| | | this.cmdZF.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); |
| | | this.cmdZF.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmdZF.Name = "cmdZF"; |
| | | this.cmdZF.Size = new System.Drawing.Size(86, 32); |
| | | this.cmdZF.TabIndex = 156; |
| | |
| | | this.cmdSave.BackColor = System.Drawing.Color.White; |
| | | this.cmdSave.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdSave.Location = new System.Drawing.Point(209, 222); |
| | | this.cmdSave.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); |
| | | this.cmdSave.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmdSave.Name = "cmdSave"; |
| | | this.cmdSave.Size = new System.Drawing.Size(86, 32); |
| | | this.cmdSave.TabIndex = 139; |
| | |
| | | this.cmdSourceBillNo.BackColor = System.Drawing.Color.White; |
| | | this.cmdSourceBillNo.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdSourceBillNo.Location = new System.Drawing.Point(102, 222); |
| | | this.cmdSourceBillNo.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); |
| | | this.cmdSourceBillNo.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmdSourceBillNo.Name = "cmdSourceBillNo"; |
| | | this.cmdSourceBillNo.Size = new System.Drawing.Size(86, 32); |
| | | this.cmdSourceBillNo.TabIndex = 138; |
| | |
| | | this.cmbHBarCodeType.Items.AddRange(new object[] { |
| | | "å¯ä¸æ¡ç "}); |
| | | this.cmbHBarCodeType.Location = new System.Drawing.Point(693, 28); |
| | | this.cmbHBarCodeType.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); |
| | | this.cmbHBarCodeType.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmbHBarCodeType.Name = "cmbHBarCodeType"; |
| | | this.cmbHBarCodeType.Size = new System.Drawing.Size(128, 20); |
| | | this.cmbHBarCodeType.TabIndex = 139; |
| | |
| | | this.dtpHDate.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.dtpHDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; |
| | | this.dtpHDate.Location = new System.Drawing.Point(303, 28); |
| | | this.dtpHDate.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); |
| | | this.dtpHDate.Margin = new System.Windows.Forms.Padding(2); |
| | | this.dtpHDate.Name = "dtpHDate"; |
| | | this.dtpHDate.Size = new System.Drawing.Size(128, 21); |
| | | this.dtpHDate.TabIndex = 100; |
| | |
| | | this.grdSub.AllowUserToDeleteRows = false; |
| | | this.grdSub.BackgroundColor = System.Drawing.SystemColors.ControlLightLight; |
| | | this.grdSub.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window; |
| | | dataGridViewCellStyle4.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText; |
| | | dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
| | | dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
| | | this.grdSub.DefaultCellStyle = dataGridViewCellStyle4; |
| | | dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
| | | dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; |
| | | dataGridViewCellStyle2.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; |
| | | dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
| | | dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
| | | this.grdSub.DefaultCellStyle = dataGridViewCellStyle2; |
| | | this.grdSub.Dock = System.Windows.Forms.DockStyle.Fill; |
| | | this.grdSub.Location = new System.Drawing.Point(0, 73); |
| | | this.grdSub.Margin = new System.Windows.Forms.Padding(0); |
| | |
| | | this.tabPage1.Controls.Add(this.grdMain); |
| | | this.tabPage1.Location = new System.Drawing.Point(4, 22); |
| | | this.tabPage1.Name = "tabPage1"; |
| | | this.tabPage1.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3); |
| | | this.tabPage1.Padding = new System.Windows.Forms.Padding(3); |
| | | this.tabPage1.Size = new System.Drawing.Size(984, 340); |
| | | this.tabPage1.TabIndex = 0; |
| | | this.tabPage1.Text = "ç§°éè®°å½"; |
| | |
| | | this.cmdOK.Cursor = System.Windows.Forms.Cursors.Default; |
| | | this.cmdOK.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdOK.Location = new System.Drawing.Point(189, 33); |
| | | this.cmdOK.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); |
| | | this.cmdOK.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmdOK.Name = "cmdOK"; |
| | | this.cmdOK.Size = new System.Drawing.Size(55, 27); |
| | | this.cmdOK.TabIndex = 150; |
| | |
| | | // timer2 |
| | | // |
| | | this.timer2.Tick += new System.EventHandler(this.timer2_Tick); |
| | | // |
| | | // cmdHBPack |
| | | // |
| | | this.cmdHBPack.BackColor = System.Drawing.Color.White; |
| | | this.cmdHBPack.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdHBPack.Location = new System.Drawing.Point(847, 40); |
| | | this.cmdHBPack.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmdHBPack.Name = "cmdHBPack"; |
| | | this.cmdHBPack.Size = new System.Drawing.Size(86, 32); |
| | | this.cmdHBPack.TabIndex = 330; |
| | | this.cmdHBPack.Text = "å¼å§ç»æ"; |
| | | this.cmdHBPack.UseVisualStyleBackColor = false; |
| | | this.cmdHBPack.Click += new System.EventHandler(this.cmdHBPack_Click); |
| | | // |
| | | // cmdHEPack |
| | | // |
| | | this.cmdHEPack.BackColor = System.Drawing.Color.White; |
| | | this.cmdHEPack.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdHEPack.Location = new System.Drawing.Point(847, 94); |
| | | this.cmdHEPack.Margin = new System.Windows.Forms.Padding(2); |
| | | this.cmdHEPack.Name = "cmdHEPack"; |
| | | this.cmdHEPack.Size = new System.Drawing.Size(86, 32); |
| | | this.cmdHEPack.TabIndex = 331; |
| | | this.cmdHEPack.Text = "ç»æç»æ"; |
| | | this.cmdHEPack.UseVisualStyleBackColor = false; |
| | | this.cmdHEPack.Click += new System.EventHandler(this.cmdHEPack_Click); |
| | | // |
| | | // label18 |
| | | // |
| | | this.label18.AutoSize = true; |
| | | this.label18.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label18.ForeColor = System.Drawing.Color.Black; |
| | | this.label18.Location = new System.Drawing.Point(638, 116); |
| | | this.label18.Name = "label18"; |
| | | this.label18.Size = new System.Drawing.Size(53, 12); |
| | | this.label18.TabIndex = 332; |
| | | this.label18.Text = "æçæ¡ç "; |
| | | // |
| | | // txtHBarCode_Pack |
| | | // |
| | | this.txtHBarCode_Pack.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.txtHBarCode_Pack.ImeMode = System.Windows.Forms.ImeMode.NoControl; |
| | | this.txtHBarCode_Pack.Location = new System.Drawing.Point(693, 112); |
| | | this.txtHBarCode_Pack.Name = "txtHBarCode_Pack"; |
| | | this.txtHBarCode_Pack.ReadOnly = true; |
| | | this.txtHBarCode_Pack.Size = new System.Drawing.Size(128, 21); |
| | | this.txtHBarCode_Pack.TabIndex = 333; |
| | | // |
| | | // Kf_WeighToBarCode |
| | | // |
| | |
| | | private System.Windows.Forms.Button cmdHBPack; |
| | | private System.Windows.Forms.Label label18; |
| | | private System.Windows.Forms.TextBox txtHBarCode_Pack; |
| | | private System.Windows.Forms.Label lblSNo; |
| | | } |
| | | } |