From 5b7184598c83f56080eb0a336f28d06b202a151f Mon Sep 17 00:00:00 2001 From: zzr99 <1940172413@qq.com> Date: 星期五, 17 六月 2022 11:23:49 +0800 Subject: [PATCH] nothing --- WorkM/流转卡管理/MES_StationInBill.cs | 30 ++++++++++++++++++++++++++++-- 1 files changed, 28 insertions(+), 2 deletions(-) diff --git "a/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationInBill.cs" "b/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationInBill.cs" index fcf9aa1..cadce83 100644 --- "a/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationInBill.cs" +++ "b/WorkM/\346\265\201\350\275\254\345\215\241\347\256\241\347\220\206/MES_StationInBill.cs" @@ -138,6 +138,7 @@ //鍙栨秷鎸夐挳 private void cmdCancel_Click(object sender, EventArgs e) { + ClsPub.SaveGridView(grdSub, Name+"grdSub", ClsPub.AppPath);//璁剧疆鍒楀 this.Close(); } //鎺т欢浣嶇疆 @@ -414,7 +415,8 @@ txtHProcNo.Enabled = false; //鍔犺浇 閰嶄欢缁戝畾娓呭崟 - + HInterID = BillOld.omodel.HInterID; + DisplaySub(); @@ -1510,9 +1512,13 @@ DataSet Dsplay; Dsplay = oCn.RunProcReturn("exec h_p_MES_StationInBillSub_BindDisplay " + HInterID.ToString() + " ", "h_p_MES_StationInBillSub_BindDisplay"); //鍐欏叆淇℃伅 - if (Dsplay == null || Dsplay.Tables[0].Rows.Count == 0) + if (Dsplay == null ) { MessageBox.Show("鍒锋柊澶辫触锛�"); + return; + } + else if(Dsplay.Tables[0].Rows.Count == 0) + { return; } else @@ -1536,5 +1542,25 @@ MessageBox.Show(e.Message + "DisplaySub"); } } + + private void cmdDelLine_Click(object sender, EventArgs e) + { + try + { + //鏍规嵁閫夋嫨鐨勬潯褰㈢爜 鏉ュ垹闄� + if (grdSub.CurrentRow == null) + return; + string sBarCode = DBUtility.ClsPub.isStrNull(grdSub.Rows[grdSub.CurrentRow.Index].Cells[Fun_GetCol("鏉″舰鐮�")].Value); + SQLHelper.ClsCN oCn = new ClsCN(); + oCn.RunProc(" delete from Sc_StationInBillSub_BindBarCodeTemp " + + "Where HInterID = "+ HInterID.ToString() +" and HBarCode = '"+ sBarCode + "'"); + DisplaySub(); + } + catch (Exception e1) + { + MessageBox.Show("鍒犻櫎琛屽け璐ワ紒"+e1.Message); + } + + } } } \ No newline at end of file -- Gitblit v1.9.1