| | |
| | | } |
| | | else if (CampanyName == "åç»´å°") |
| | | { |
| | | if (BarCodeCheckAuxPropID(ClsPub.isLong(grdMain.Rows[j].Cells[HMaterIDCol].Value)) && ClsPub.isLong(grdMain.Rows[j].Cells[HAuxPropIDCol].Value) == 0) |
| | | long sHMaterID = 0; |
| | | sHMaterID = ClsPub.isLong(grdMain.Rows[j].Cells[HMaterIDCol].Value); |
| | | if (sHMaterID != 0) |
| | | { |
| | | MessageBox.Show(" 第" + ClsPub.isLong(grdMain.Rows[j].Cells[HSnoCol].Value) + "è¡ï¼ç©æï¼" + ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterNameCol].Value) + " ï¼å¯ç¨äºè¾
å©å±æ§ï¼è¾
å©å±æ§åä¸å
许为空ï¼è¯·å
鿩坹åºè¾
å©å±æ§ï¼"); |
| | | return false; |
| | | //夿CLOUDç©æè¾
å©å±æ§è¡¨éè¯¥ç©ææ¯å¦å¯ç¨äºç©æå±æ§ï¼1为å¯ç¨ï¼ |
| | | DataSet DS = oWeb.getDataSetBySQL("exec h_p_Gy_BarCodeCheckAuxPropID_CLD " + sHMaterID, "h_p_Gy_BarCodeCheckAuxPropID_CLD", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | // |
| | | if (DS == null || DS.Tables[0].Rows.Count == 0) |
| | | { |
| | | MessageBox.Show(" 第" + ClsPub.isLong(grdMain.Rows[j].Cells[HSnoCol].Value) + "è¡ï¼ç©æï¼" + ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterNameCol].Value) + " ï¼å¨éè¶äºä¸æªæ¥è¯¢å°è¯¥ç©æä¿¡æ¯ï¼"); |
| | | return false; |
| | | } |
| | | else if (DBUtility.ClsPub.isLong(DS.Tables[0].Rows[0]["FISENABLE"]) == 1 && ClsPub.isLong(grdMain.Rows[j].Cells[HAuxPropIDCol].Value) == 0) |
| | | { |
| | | MessageBox.Show(" 第" + ClsPub.isLong(grdMain.Rows[j].Cells[HSnoCol].Value) + "è¡ï¼ç©æï¼" + ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterNameCol].Value) + " ï¼å¯ç¨äºè¾
å©å±æ§ï¼è¾
å©å±æ§åä¸å
许为空ï¼è¯·å
鿩坹åºè¾
å©å±æ§ï¼"); |
| | | return false; |
| | | } |
| | | else if (DBUtility.ClsPub.isLong(DS.Tables[0].Rows[0]["HBatchManager"]) == 1 && DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HBatchNoCol].Value) == "") |
| | | { |
| | | MessageBox.Show(" 第" + ClsPub.isLong(grdMain.Rows[j].Cells[HSnoCol].Value) + "è¡ï¼ç©æï¼" + ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterNameCol].Value) + " ï¼å¯ç¨æ¹æ¬¡ç®¡çï¼æ¹æ¬¡ä¸å
许为空ï¼"); |
| | | return false; |
| | | } |
| | | else if (DBUtility.ClsPub.isLong(DS.Tables[0].Rows[0]["HBatchManager"]) == 0 && DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HBatchNoCol].Value) != "") |
| | | { |
| | | MessageBox.Show(" 第" + ClsPub.isLong(grdMain.Rows[j].Cells[HSnoCol].Value) + "è¡ï¼ç©æï¼" + ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterNameCol].Value) + " ï¼æªå¯ç¨æ¹æ¬¡ç®¡çï¼ä¸å
è®¸ææ¹æ¬¡ï¼"); |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | |
| | | ////åæ§å¶ |
| | | //if (BarCodeCheckAuxPropID(ClsPub.isLong(grdMain.Rows[j].Cells[HMaterIDCol].Value)) && ClsPub.isLong(grdMain.Rows[j].Cells[HAuxPropIDCol].Value) == 0) |
| | | //{ |
| | | // MessageBox.Show(" 第" + ClsPub.isLong(grdMain.Rows[j].Cells[HSnoCol].Value) + "è¡ï¼ç©æï¼" + ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterNameCol].Value) + " ï¼å¯ç¨äºè¾
å©å±æ§ï¼è¾
å©å±æ§åä¸å
许为空ï¼è¯·å
鿩坹åºè¾
å©å±æ§ï¼"); |
| | | // return false; |
| | | //} |
| | | } |
| | | } |
| | | if (CampanyName == "森楷") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° |
| | | { |