| | |
| | | int HKeepCol = Fun_GetCol("K3ä¿ç®¡"); |
| | | int HSecManagerCol = Fun_GetCol("K3éªæ¶"); |
| | | int HDeptCol = Fun_GetCol("K3é¨é¨"); |
| | | DAL.ClsKf_ProductInBill oClsKf_ProductInBill ; |
| | | DAL.ClsKf_ProductInBill oClsKf_ProductInBill; |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | //è·åç³»ç»åæ° |
| | | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); |
| | | if (oSystemParameter.ShowBill(ref DBUtility.ClsPub.sExeReturnInfo) == false) |
| | |
| | | MessageBox.Show("ä¼è®¡æé´æéè¯¯ï¼ " + DBUtility.ClsPub.sExeReturnInfo); |
| | | return; |
| | | } |
| | | string sHInterID = ""; |
| | | for (int i = 0; i < grdMain.SelectedRows.Count; i++) |
| | | { |
| | | sHInterID = sHInterID + "," + DBUtility.ClsPub.isStrNull(grdMain.Rows[grdMain.SelectedRows[i].Index].Cells[MainIDCol].Value); |
| | | } |
| | | if (sHInterID=="") |
| | | { |
| | | MessageBox.Show("没æéä¸çåæ®æç»è¡ï¼è¯·å
éæ©è¦å
¥åºçåæ®ï¼", "æç¤º"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | DataSet DS = oCn.RunProcReturn("exec h_p_MES_StationOutBillList_Bad_PreProductIn '" + sHInterID + "'", "h_p_MES_StationOutBillList_Bad_PreProductIn", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | if (DS == null || DS.Tables[0].Rows.Count == 0) |
| | | { |
| | | MessageBox.Show("å
¥åºåå¤æå¤±è´¥ï¼", "æç¤º"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0][0]) == "1") |
| | | { |
| | | MessageBox.Show(DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"])); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | |
| | | Int64 n = 0; |
| | | //å¾ªç¯ éä¸è¡ |
| | | for (int i = 0; i < grdMain.SelectedRows.Count; i++) |