| | |
| | | { |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill(gbUp); |
| | | //DBUtility.Xt_BaseBillFun.Sub_ClearBill(gbUp2); |
| | | txtHBarCode.Focus(); |
| | | txtHTaxRate.Text = "16"; |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill1(tabPage1); |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill1(tabPage2); |
| | | initGrid(); |
| | | initGrid_Sub(); |
| | | txtHBarCode.Text = ""; |
| | | txtHProcExchBillNo.Enabled = true; |
| | | txtHWWWorkOrderBillNo.Enabled = true; |
| | | txtHProcNO.Enabled = true; |
| | | txtHBarCode.Enabled = true; |
| | | txtHPieceQty.Enabled = true; |
| | | txtHBadPNL.Enabled = true; |
| | | tabControl1.SelectedIndex = 0; |
| | | txtHBarCode.Focus(); |
| | | lngBillKey = 0; |
| | | lngBillSubKey = 0; |
| | | txtHTaxRate.Text = "16"; |
| | | this.txtHICMOBillNo.Tag = "0"; |
| | | } |
| | | //åºç«æé® |
| | | private void cmdOK_Click(object sender, EventArgs e) |
| | |
| | | //åå§åGRID |
| | | private void initGrid() |
| | | { |
| | | DBUtility.Xt_BaseBillFun.initGridMESList(grdCardList, this.Name + "grdCardList"); |
| | | grdCardList.DataSource = null; |
| | | |
| | | // |
| | | grdMain.ColumnCount = 10; //æ»åæ° |
| | |
| | | if (Ds == null || Ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | txtHProcExchBillNo.Text = ""; |
| | | txtHBarCode.Text = ""; |
| | | MessageBox.Show("æªæ¥è¯¢å°æµè½¬å¡ä¿¡æ¯ï¼"); |
| | | return; |
| | | } |
| | |
| | | //} |
| | | } |
| | | |
| | | //æ°å¢ |
| | | private void cmdXZ_Click(object sender, EventArgs e) |
| | | { |
| | | this.Sub_AddBill(); |
| | | } |
| | | } |
| | | } |