| | |
| | | using gregn6Lib; |
| | | using Pub_Class; |
| | | using System.Threading; |
| | | using System.Linq; |
| | | |
| | | namespace WarM |
| | | { |
| | |
| | | public string UpdatePrintQtyCtl = ""; //æ¡ç æå°æ¬¡æ°æ´æ° |
| | | public string sReturn = ""; |
| | | public string HExpiryDate = ""; |
| | | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); |
| | | |
| | | #region åºå®ä»£ç |
| | | |
| | |
| | | string HPinfan = ""; //åçª |
| | | DateTime HEndDate; //计åå®å·¥æ¥æ |
| | | |
| | | for (int j = 0; j < grdMain.Rows.Count; j++) |
| | | string Ret = ""; |
| | | if (oSystemParameter.ShowBill(ref Ret)) |
| | | { |
| | | if (ClsPub.isLong(grdMain.Rows[j].Cells[HMaterIDCol].Value) != 0 && grdMain.Rows[j].Cells[HSubjoin2Col].Value.ToString() == "") |
| | | //çæç©ææ¡ç æ¶ï¼æºåç ä¸å
许为空,å¦è¥ç©æä»£ç åç¼ä¸ä¸ºGæLçï¼å¯è·³è¿æ§å¶ |
| | | if (oSystemParameter.omodel.Gy_BarCodeBill_Rework_Ctrl != "") |
| | | { |
| | | MessageBox.Show("第" + (j+1) + "è¡ï¼æºåç æªç»´æ¤ï¼ä¸å
è®¸çææ¡ç "); |
| | | bc.Enabled = true; |
| | | return; |
| | | string[] HMaterNumberPrefix = oSystemParameter.omodel.Gy_BarCodeBill_Rework_Ctrl.Split(','); |
| | | |
| | | for (int j = 0; j < grdMain.Rows.Count; j++) |
| | | { |
| | | if (ClsPub.isLong(grdMain.Rows[j].Cells[HMaterIDCol].Value) == 0) |
| | | { |
| | | continue; |
| | | } |
| | | |
| | | char HMaterfirstChar = grdMain.Rows[j].Cells[HMaterNumberCol].Value.ToString()[0]; |
| | | |
| | | if (ClsPub.isLong(grdMain.Rows[j].Cells[HMaterIDCol].Value) != 0 && grdMain.Rows[j].Cells[HSubjoin2Col].Value.ToString() == "" && HMaterNumberPrefix.Contains(HMaterfirstChar.ToString())) |
| | | { |
| | | MessageBox.Show("第" + (j + 1) + "è¡ï¼æºåç æªç»´æ¤ï¼ä¸å
è®¸çææ¡ç "); |
| | | bc.Enabled = true; |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | oCn.BeginTran(); |
| | | Application.DoEvents(); |