| | |
| | | int MainIDCol = Fun_GetCol("hmainid"); |
| | | int SubIDCol = Fun_GetCol("hsubid"); |
| | | int BillNoCol = Fun_GetCol("åæ®å·"); |
| | | int HUserK3Col = Fun_GetCol("K3ç¨æ·"); |
| | | int HKeepCol = Fun_GetCol("K3ä¿ç®¡"); |
| | | int HSecManagerCol = Fun_GetCol("K3éªæ¶"); |
| | | int HDeptCol = Fun_GetCol("K3é¨é¨"); |
| | | DAL.ClsKf_ProductInBill oClsKf_ProductInBill ; |
| | | //è·åç³»ç»åæ° |
| | | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); |
| | |
| | | oClsKf_ProductInBill.omodel.HInterID = ClsPub.isLong(grdMain.Rows[grdMain.SelectedRows[i].Index].Cells[MainIDCol].Value); |
| | | oClsKf_ProductInBill.omodel.HDate = DateTime.Today; |
| | | oClsKf_ProductInBill.omodel.HBillNo = ClsPub.isStrNull(grdMain.Rows[grdMain.SelectedRows[i].Index].Cells[BillNoCol].Value); |
| | | oClsKf_ProductInBill.omodel.HDeptID = 0; |
| | | oClsKf_ProductInBill.omodel.HEmpID = 0; |
| | | oClsKf_ProductInBill.omodel.HSecManagerID = 0; |
| | | oClsKf_ProductInBill.omodel.HKeeperID = 0; |
| | | oClsKf_ProductInBill.omodel.HDeptID = ClsPub.isLong(grdMain.Rows[grdMain.SelectedRows[i].Index].Cells[HDeptCol].Value); |
| | | oClsKf_ProductInBill.omodel.HEmpID = ClsPub.isLong(grdMain.Rows[grdMain.SelectedRows[i].Index].Cells[HKeepCol].Value); |
| | | oClsKf_ProductInBill.omodel.HSecManagerID = ClsPub.isLong(grdMain.Rows[grdMain.SelectedRows[i].Index].Cells[HSecManagerCol].Value); |
| | | oClsKf_ProductInBill.omodel.HKeeperID = ClsPub.isLong(grdMain.Rows[grdMain.SelectedRows[i].Index].Cells[HKeepCol].Value); |
| | | oClsKf_ProductInBill.omodel.HBillerID = ClsPub.isLong(grdMain.Rows[grdMain.SelectedRows[i].Index].Cells[HUserK3Col].Value); |
| | | oClsKf_ProductInBill.omodel.HRemark = "ä¸è¯å忥"; |
| | | oClsKf_ProductInBill.omodel.HMaker = DBUtility.ClsPub.CurUserName; |
| | | oClsKf_ProductInBill.omodel.HWHID = 0; |
| | | oClsKf_ProductInBill.omodel.HSupID = 0; |
| | | oClsKf_ProductInBill.omodel.HExplanation = ""; |
| | | if(oClsKf_ProductInBill.omodel.HBillerID==0 || oClsKf_ProductInBill.omodel.HKeeperID==0 |
| | | || oClsKf_ProductInBill.omodel.HEmpID==0 || oClsKf_ProductInBill.omodel.HDeptID==0 |
| | | || oClsKf_ProductInBill.omodel.HSecManagerID ==0 ) |
| | | { |
| | | MessageBox.Show("没æè®¾ç½®éè¶ç¨æ·ãé¨é¨ãä¿ç®¡ãéªæ¶åï¼ " + DBUtility.ClsPub.sExeReturnInfo); |
| | | continue; |
| | | } |
| | | if(oClsKf_ProductInBill.AddBill_StationOut_Bad("3710", oSystemParameter.omodel, ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | { |
| | | n++; |
| | |
| | | MessageBox.Show("åæ¥åæ®å¤±è´¥ï¼"+ DBUtility.ClsPub.sExeReturnInfo); |
| | | } |
| | | //ä¼ç 5ç§ |
| | | System.Threading.Thread.Sleep(5000); |
| | | System.Threading.Thread.Sleep(2000); |
| | | // |
| | | } |
| | | // |
| | | if (n > 0) |
| | | { |
| | | MessageBox.Show("忥忮宿¯ï¼ä¸å
±æ" + n.ToString() + "å¼ å
¥åºåï¼"); |
| | | initGrid(); |
| | | Display(); |
| | | } |
| | | } |
| | | |