| | |
| | | public void Sub_ClearBill() |
| | | { |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill(gbUp); |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill1(tabPage1); |
| | | DBUtility.Xt_BaseBillFun.Sub_ClearBill1(tabPage2); |
| | | initGrid(); |
| | | txtHBarCode.Text = ""; |
| | | txtHProcExchBillNo.Enabled = true; |
| | | txtHProcNo.Enabled = true; |
| | | txtHBarCode.Enabled = true; |
| | | tabControl1.SelectedIndex = 0; |
| | | txtHBarCode.Focus(); |
| | | //å¾å°æ¥æ¶äººä¿¡æ¯ï¼è¿ç«æ¥æ¶äººé»è®¤ä¸ºç»å½äººï¼æ ¹æ®ç»å½äººç¨æ·åï¼æ¾å°èåååçè®°å½ï¼é»è®¤åå
¥ æ¥æ¶äºº ææ¬æ¡ï¼å¦ææ²¡æ¾å°å为空ï¼ï¼ |
| | | DataSet Ds; |
| | |
| | | DBUtility.Xt_BaseBillFun.initGridMESList(grdCardList, this.Name + "grdCardList"); |
| | | DBUtility.Xt_BaseBillFun.initGridList(grdSub, this.Name); |
| | | grdSub.SelectionMode = DataGridViewSelectionMode.CellSelect; |
| | | grdCardList.DataSource = null; |
| | | } |
| | | |
| | | private void Display() |
| | |
| | | if (BillStatus == DBUtility.ClsPub.Enum_BillStatus.BillStatus_Modify) |
| | | BillNew.omodel.HInterID = BillOld.omodel.HInterID; |
| | | //主类èµå¼ |
| | | BillNew.omodel.HYear = 2011; |
| | | BillNew.omodel.HPeriod = 1; |
| | | //夿ä¼è®¡ææ¯å¦åç |
| | | string s = ""; |
| | | int sYear = 0; |
| | | int sPeriod = 0; |
| | | if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(DBUtility.ClsPub.isDate(this.txtHStationInTime.Text), ref sYear, ref sPeriod, ref s) == false) |
| | | { |
| | | MessageBox.Show(s, "æç¤º"); |
| | | return false; |
| | | } |
| | | // |
| | | BillNew.omodel.HYear = sYear; |
| | | BillNew.omodel.HPeriod = sPeriod; |
| | | BillNew.omodel.HBillNo = this.txtHBillNo.Text.Trim(); |
| | | BillNew.omodel.HICMOBillNo = this.txtHICMOBillNo.Text.Trim(); |
| | | BillNew.omodel.HICMOInterID = DBUtility.ClsPub.isLong(this.txtHICMOBillNo.Tag); |