From d3a871c81b7d3fe63422af54fe53ba27dd2b1bb4 Mon Sep 17 00:00:00 2001 From: 王 垚 <1402714037@qq.com> Date: 星期五, 17 六月 2022 11:11:40 +0800 Subject: [PATCH] nothing --- WarM/条码打印/Sc_ICMOToBarCode.cs | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Sc_ICMOToBarCode.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Sc_ICMOToBarCode.cs" index 23d3fb3..07f7c53 100644 --- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Sc_ICMOToBarCode.cs" +++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Sc_ICMOToBarCode.cs" @@ -2043,5 +2043,49 @@ 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); + } + } } } \ No newline at end of file -- Gitblit v1.9.1