| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using Microsoft.VisualBasic; |
| | | |
| | | namespace WarM.æ¡ç æå° |
| | | { |
| | |
| | | return true; |
| | | }catch(Exception ex) |
| | | { |
| | | string sql = "exec h_p_WMS_PackBarCodeBill_dealDataWhenError '" + textBox_HPackBarCode + "'"; |
| | | oCn.RunProc(sql); |
| | | throw new Exception(ex.Message); |
| | | } |
| | | |
| | |
| | | { |
| | | if (grdMain.SelectedRows != null && grdMain.SelectedRows.Count==1) |
| | | { |
| | | if (MessageBox.Show("ç¡®å®è¦å é¤ï¼", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Cancel) |
| | | //if (MessageBox.Show("ç¡®å®è¦å é¤ï¼", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Cancel) |
| | | //{ |
| | | // return; |
| | | //} |
| | | //if (MessageBox.Show("å é¤åå°ä¸å¯æ¢å¤ï¼ç¡®å®è¦ç»§ç»æä½ï¼", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Cancel) |
| | | //{ |
| | | // return; |
| | | //} |
| | | |
| | | string pwd = Interaction.InputBox("请è¾å
¥å¯ç ", "å é¤ç¡®è®¤ï¼", "", 100, 100); |
| | | |
| | | //ç¹å»åæ¶ |
| | | if(pwd == "") |
| | | { |
| | | return; |
| | | } |
| | | if (MessageBox.Show("å é¤åå°ä¸å¯æ¢å¤ï¼ç¡®å®è¦ç»§ç»æä½ï¼", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Cancel) |
| | | |
| | | if(pwd != "123456") |
| | | { |
| | | MessageBox.Show("å¯ç é误ï¼"); |
| | | return; |
| | | } |
| | | |
| | | Delete(); |
| | | } |
| | | else |
| | |
| | | |
| | | //è·åç¼ååè¡¨ä¸ ææ¡ç 对åºç ç»æè®°å½ |
| | | sql = "select top(1) a.* from Sc_PackUnionBill_Temp as a inner join Gy_BarCodeBill as b on a.HBarCode = b.HBarCode where a.HBarCode_Pack = '" + HPackBarCode + "' and b.HSourceID = " + HSourceID + " and a.HStockorgID = " + HOrgID; |
| | | //sql = "select top(1) a.* from Sc_PackUnionBill_Temp as a where a.HBarCode_Pack = '" + HPackBarCode + "' and a.HStockorgID = " + HOrgID; |
| | | ds = oCn.RunProcReturn(sql, "Sc_PackUnionBill_Temp"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | |
| | | HSourceEntryID_ICMO = 0; |
| | | |
| | | textBox_PackQty.Text = ""; |
| | | return; |
| | | } |
| | | |
| | | HSourceInterID_ICMO = int.Parse(ds_getPackQty.Tables[0].Rows[0]["HSourceInterID"].ToString()); |
| | | HSourceEntryID_ICMO = int.Parse(ds_getPackQty.Tables[0].Rows[0]["HSourceEntryID"].ToString()); |
| | | textBox_PackQty.Text = ds_getPackQty.Tables[0].Rows[0]["ç»ææ°é"].ToString(); |
| | | textBox_PackQty.Text = Double.Parse(ds_getPackQty.Tables[0].Rows[0]["ç»ææ°é"].ToString()).ToString(); |
| | | } |
| | | #endregion |
| | | |