| | |
| | | MessageBox.Show("åæ®å·éå¤ï¼", "æç¤º"); |
| | | return false; |
| | | } |
| | | |
| | | //æ ¹æ®ä¸å客æ·ï¼å¯¹å½å
¥æ»å·¥æ¶ä¸æ 忻工æ¶è¿è¡å¯¹æ¯å¤æ |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | long sMaterID = DBUtility.ClsPub.isLong(this.txtHMaterID.Tag); |
| | | long sProcID = DBUtility.ClsPub.isLong(this.txtHProcID.Tag); |
| | | double sQty = DBUtility.ClsPub.isDoule(this.txtHQty.Text); |
| | | double sBadCount = DBUtility.ClsPub.isDoule(this.txtHBadCount.Text); |
| | | double sWasterQty = DBUtility.ClsPub.isDoule(this.txtHWasterQty.Text); |
| | | double sWorkTimes = DBUtility.ClsPub.isSingle(this.txtHWorkTimes.Text); |
| | | DataSet Ds; |
| | | Ds = oCn.RunProcReturn("exec h_p_MES_StationOutBill_WorkTimesCtrl " + sMaterID.ToString() + "," + sProcID.ToString() + "," + sQty.ToString() + "," + sBadCount.ToString() + "," + sWasterQty.ToString() + "," + sWorkTimes.ToString(), "h_p_MES_StationOutBill_WorkTimesCtrl"); |
| | | if (Ds == null || Ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | MessageBox.Show("å½å
¥æ»å·¥æ¶ä¸æ 忻工æ¶å¯¹æ¯å¤æå¤±è´¥ï¼", "æç¤º"); |
| | | return false; |
| | | } |
| | | else |
| | | { |
| | | if (DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0][0]) == 1) |
| | | { |
| | | MessageBox.Show(DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"])); |
| | | return false; |
| | | } |
| | | else if (DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0][0]) == 2) |
| | | { |
| | | MessageBox.Show(DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"])); |
| | | } |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | //ä¿ååæ® |