| | |
| | | if (CampanyName == "åç»´å°") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° |
| | | { |
| | | cmbHBarCodeType.Items.Add("å¥çæ¡ç "); |
| | | cmbHBarCodeType.Items.Add("å¥çæ¡ç åç®±"); |
| | | } |
| | | //cmbHBarCodeType.Items.Add("æçæ¡ç "); |
| | | cmbHBarCodeType.SelectedIndex = 0; |
| | |
| | | MessageBox.Show(" 第" + ClsPub.isLong(grdMain.Rows[j].Cells[HSnoCol].Value) + "è¡ï¼ç©æï¼" + ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterNameCol].Value) + " ï¼æªå¯ç¨æ¹æ¬¡ç®¡çï¼ä¸å
è®¸ææ¹æ¬¡ï¼"); |
| | | return false; |
| | | } |
| | | if (cmbHBarCodeType.Text == "å¥çæ¡ç ") |
| | | if (cmbHBarCodeType.Text == "å¥çæ¡ç " || cmbHBarCodeType.Text == "å¥çæ¡ç åç®±") |
| | | { |
| | | string HCusBatchNo = ""; //å®¢æ·æ¹æ¬¡ |
| | | HCusBatchNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HCustomBatchNoCol].Value); |
| | |
| | | |
| | | #endregion |
| | | } |
| | | else if (cmbHBarCodeType.Text == "å¥çæ¡ç ") |
| | | else if (cmbHBarCodeType.Text == "å¥çæ¡ç " || cmbHBarCodeType.Text == "å¥çæ¡ç åç®±") |
| | | { |
| | | //æ¡ç åç¼ = ç»ç»ä»£ç + ç©æå
ç + å¹´ + æ + æ¥ |
| | | sTMNumber = HOrgNumber + HNumber + sYear + sPeriod + sDay; |
| | |
| | | //æ¡ç ç¼å· = æ¡ç åç¼ + æµæ°´å· |
| | | TM = sTMNumber + LSH2; |
| | | } |
| | | else if (cmbHBarCodeType.Text == "å¥çæ¡ç ") |
| | | else if (cmbHBarCodeType.Text == "å¥çæ¡ç " || cmbHBarCodeType.Text == "å¥çæ¡ç åç®±") |
| | | { |
| | | //æ¡ç ç¼å· = æ¡ç åç¼ + æµæ°´å· |
| | | TM = sTMNumber + LSH2; |
| | |
| | | grdSub.Rows[i].Cells[HSourceBillType2Col].Value = grdMain.Rows[j].Cells[HBillTypeCol].Value; |
| | | grdSub.Rows[i].Cells[HPrintCol].Value = "0"; |
| | | grdSub.Rows[i].Cells[HWeiCol].Value = WeiShu; |
| | | if (cmbHBarCodeType.Text == "å¥çæ¡ç ") |
| | | if (cmbHBarCodeType.Text == "å¥çæ¡ç " || cmbHBarCodeType.Text == "å¥çæ¡ç åç®±") |
| | | { |
| | | grdSub.Rows[i].Cells[HBarcodeNoCol].Value = CusTMLSH; |
| | | } |
| | |
| | | MessageBox.Show("æ¡ç çæå¤±è´¥,æ¹éçææµæ°´å·å¤±è´¥ï¼"); |
| | | return; |
| | | } |
| | | if (cmbHBarCodeType.Text == "å¥çæ¡ç ") |
| | | if (cmbHBarCodeType.Text == "å¥çæ¡ç " || cmbHBarCodeType.Text == "å¥çæ¡ç åç®±") |
| | | { |
| | | string[] sSQLCusNoMul = new string[1]; |
| | | sSQLCusNoMul[0] = " exec h_p_WMS_SetMaxNo_QTY '" + sCusTMNumber + "'," + nn.ToString() + " "; |
| | |
| | | HRemark = "å¥çæ¡ç "; |
| | | HBarCodeStatus = "å¾
è£
ç®±"; |
| | | } |
| | | else if (cmbHBarCodeType.Text == "å¥çæ¡ç åç®±") |
| | | { |
| | | HBarCodeType = "å¯ä¸æ¡ç "; |
| | | HRemark = "å¥çæ¡ç åç®±"; |
| | | HBarCodeStatus = ""; |
| | | } |
| | | else |
| | | { |
| | | HBarCodeType = ClsPub.isStrNull(cmbHBarCodeType.Text); |