| | |
| | | |
| | | //忮宿´æ§å¤æ æªå®æ |
| | | private bool Sub_AllowSave() |
| | | { |
| | | { |
| | | //å¤æè¯¥ç¨æ·åæ¯å¦æè¯¥å·¥ç«æé |
| | | //if (BillNew.CheckCenterIDByUser(DBUtility.ClsPub.isLong(txtHCenterID.Tag)) == false) |
| | | //{ |
| | |
| | | // return false; |
| | | // } |
| | | //} |
| | | |
| | | |
| | | //æ¨¡ç©´å·æ§å¶ |
| | | //if (DBUtility.ClsPub.isStrNull(txtHMaterID.Text) == "13000001197") |
| | | //{ |
| | | // string HMXH = ""; |
| | | // string HZM = ""; |
| | | // HMXH = DBUtility.ClsPub.isStrNull(txtHMouldNum.Text); |
| | | // HZM = HMXH.Substring(0, 1); |
| | | // if (HZM != "G") |
| | | // { |
| | | // MessageBox.Show("模穴å·é误第ä¸ä½è¯·éæ°è¾å
¥G"); |
| | | // return false; |
| | | // } |
| | | //} |
| | | |
| | | |
| | | if (DBUtility.ClsPub.isStrNull(txtHMaterID.Text) == "3.01.0207" && DBUtility.ClsPub.isStrNull(txtHProcID.Text) == "æåæ£éª") |
| | | { |
| | | string HMXH = ""; |
| | | string HZM = ""; |
| | | HMXH = DBUtility.ClsPub.isStrNull(txtHMouldNum.Text); |
| | | HZM = HMXH.Substring(0, 1); |
| | | if (HZM != "G") |
| | | { |
| | | MessageBox.Show("模穴å·é误第ä¸ä½è¯·éæ°è¾å
¥G"); |
| | | return false; |
| | | } |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(txtHMaterID.Text) == "3.01.0268" && DBUtility.ClsPub.isStrNull(txtHProcID.Text) == "æåæ£éª") |
| | | { |
| | | string HMXH = ""; |
| | | string HZM = ""; |
| | | HMXH = DBUtility.ClsPub.isStrNull(txtHMouldNum.Text); |
| | | HZM = HMXH.Substring(0, 1); |
| | | if (HZM != "X") |
| | | { |
| | | MessageBox.Show("模穴å·é误第ä¸ä½è¯·éæ°è¾å
¥X"); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | //å¿
è¾é¡¹ç®æ¯å¦ä¸ºç©º |
| | | |
| | | if (DBUtility.ClsPub.isLong(lngBillKey) <= 0) |
| | |
| | | MessageBox.Show("æä½å没æéæ©ï¼", "æç¤º"); |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isLong(txtHQCCheckID.Tag) == 0) |
| | | { |
| | | MessageBox.Show("æ£éªå没æéæ©ï¼", "æç¤º"); |
| | | return false; |
| | | } |
| | | //if (DBUtility.ClsPub.isLong(txtHQCCheckID.Tag) == 0) |
| | | //{ |
| | | // MessageBox.Show("æ£éªå没æéæ©ï¼", "æç¤º"); |
| | | // return false; |
| | | //} |
| | | if (DBUtility.ClsPub.isLong(txtHSourceID.Tag) == 0) |
| | | { |
| | | MessageBox.Show("çäº§èµæºæ²¡æéæ©ï¼", "æç¤º"); |