| | |
| | | Sub_SaveBarCode(); |
| | | // |
| | | } |
| | | |
| | | private void cmdESOP_Click(object sender, EventArgs e) |
| | | { |
| | | Sc_MESNowWorkBill_Fast oSc_MESNowWorkBill_Fast = new Sc_MESNowWorkBill_Fast(); |
| | | oSc_MESNowWorkBill_Fast.txtHICMOBillNo.Text = ""; |
| | | oSc_MESNowWorkBill_Fast.txtHMaterID.Text =txtHMaterID.Text; |
| | | oSc_MESNowWorkBill_Fast.txtHName.Text = ClsPub.isStrNull(grdMain.Rows[0].Cells[Fun_GetCol("ç©æåç§°")].Value); |
| | | oSc_MESNowWorkBill_Fast.txtHModel.Text = ClsPub.isStrNull(grdMain.Rows[0].Cells[Fun_GetCol("è§æ ¼åå·")].Value); |
| | | oSc_MESNowWorkBill_Fast.Show(); |
| | | |
| | | } |
| | | |
| | | private void txtHBarCode_KeyDown(object sender, KeyEventArgs e) |
| | | { |
| | | if(e.KeyCode==Keys.Enter) |
| | | { |
| | | // |
| | | //è·å第ä¸è¡æ¡å½¢ç è¿è¡æå° |
| | | DataSet DSet = oCn.RunProcReturn("select * from h_v_IF_BarCodeBillList_CS Where æ¡ç ç¼å·='"+ txtHBarCode.Text +"' and æ¡ç ç±»å = 'æçæ¡ç '", "h_v_IF_BarCodeBillList_CS", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //çæé¦è¡æ é¢ |
| | | if (DSet == null) |
| | | { |
| | | MessageBox.Show("没æè¿åä»»ä½ç»æ,æ¡ç ä¸åå¨ï¼" + DBUtility.ClsPub.sExeReturnInfo); |
| | | return; |
| | | } |
| | | // |
| | | grdList.DataSource = DSet.Tables[0].DefaultView; |
| | | //å»ç» |
| | | int FrCol = 0; |
| | | string s = "æ¯"; |
| | | DBUtility.Xt_BaseBillFun.DisplayGrid(grdList, this.Name + "grdList", s, FrCol); |
| | | // |
| | | //夿æ¯å¦å·²ç»çææ¡ç |
| | | if (DBUtility.ClsPub.isStrNull(grdList.Rows[0].Cells[Fun_GetColList("æ¡ç ç¼å·")].Value) == "") |
| | | { |
| | | MessageBox.Show("æ¡ç æªçæï¼è¯·å
çææ¡ç ååé¢è§ï¼"); |
| | | return; |
| | | } |
| | | //éæ©æå°æ¨¡æ¿ |
| | | Sub_SetReport("注å¡ç©ææ ç¾"); |
| | | Report.Print(false); |
| | | Thread.Sleep(1000); |
| | | } |
| | | } |
| | | } |
| | | } |