条码异常查询模块新增删除按钮:可删除缓存中未上传条码记录
| | |
| | | //public static string WEBSURL = "http://122.227.199.62:5050/WMSWEBS/WebService1.asmx"; //é©çµ å¤ç½ ï¼ä½åºï¼ |
| | | //public static string WEBSURL = "http://192.168.10.60/WMSWEBS/WebService1.asmx"; //é©çµ å
ç½å®æ³¢ï¼è½¦é´ï¼ï¼ä½åºï¼ |
| | | |
| | | //public static string WEBSURL = "http://192.168.2.16/WEBS-WMS/WebService1.asmx"; //颿¬å°çµè |
| | | public static string WEBSURL = "http://192.168.2.16/WEBS-WMS/WebService1.asmx"; //颿¬å°çµè |
| | | //public static string WEBSURL = "http://192.168.2.56/WEBS-WMS/WebService1.asmx"; //颿¬å°çµèï¼äºç»ï¼ |
| | | //public static string WEBSURL = "http://192.168.10.61/WEB-WMS/WebService1.asmx"; //é©çµ å
ç½æµè¯ |
| | | |
| | | |
| | | public static string WEBSURL = "http://192.168.10.222/WMSWEBS/WebService1.asmx"; //é©çµ MESæå¡å¨ï¼å
ç½ï¼ |
| | | //public static string WEBSURL = "http://192.168.10.222/WMSWEBS/WebService1.asmx"; //é©çµ MESæå¡å¨ï¼å
ç½ï¼ |
| | | //public static string WEBSURL = "http://122.227.199.62:5058/WMSWEBS/WebService1.asmx"; //é©çµ MESæå¡å¨ï¼å¤ç½ï¼ |
| | | |
| | | |
| | |
| | | SCM.å
¬ç¨ç±».Xt_BaseBillFun.DataToExcel(this.Text, grdMain); |
| | | } |
| | | |
| | | private void sc_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_DeleteBill(); |
| | | } |
| | | //å é¤ |
| | | private void Sub_DeleteBill() |
| | | { |
| | | Int64 lngBillKey = 0; |
| | | string HBarCode = ""; |
| | | if (grdMain.CurrentRow == null) |
| | | return; |
| | | if (grdMain.SelectedRows.Count != 1) |
| | | { |
| | | MessageBox.Show("ä¸å
许å¤è¡å é¤ï¼è¯·éæ°éæ©ç¼åç±»å为âç¼åâçé夿¡ç ï¼"); |
| | | return; |
| | | } |
| | | |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[0].Cells[Fun_GetCol("模åç±»å")].Value) == "ç¼å" |
| | | && DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[0].Cells[Fun_GetCol("ç¶æ")].Value) == "") |
| | | { |
| | | if (MessageBox.Show("ç¡®å®è¦å 餿鿡ç è®°å½ï¼å é¤åä¸è½æ¢å¤ï¼è¯·è°¨æ
æä½ï¼", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) |
| | | { |
| | | lngBillKey = DBUtility.ClsPub.isLong(grdMain.SelectedRows[0].Cells[Fun_GetCol("HitemID")].Value); |
| | | HBarCode = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[0].Cells[Fun_GetCol("åæ®ç±»å")].Value)+ DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[0].Cells[Fun_GetCol("åæ®å·")].Value)+"ï¼æ¡ç ï¼"+ DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[0].Cells[Fun_GetCol("æ¡å½¢ç ")].Value); |
| | | if (lngBillKey == 0) |
| | | return; |
| | | |
| | | try |
| | | { |
| | | string[] sSQLMul = new string[2]; |
| | | sSQLMul[0] = "Delete from KF_PonderationBillMain_Temp where HRelationInterID=0 and HitemID =" + lngBillKey; |
| | | sSQLMul[1] = "Insert into System_log (GeginDate, userid, WorkstationName, WorkList, SystemName, NetuserName, State) select GETDATE(),'" + DBUtility.ClsPub.CurUserName + "','" + DBUtility.ClsPub.ComputerName + "','å é¤ç¼åä¸å¼å¸¸é夿¡ç ï¼" + HBarCode + "','WMSç³»ç»-æ¡ç å¼å¸¸æ¥è¯¢æ¨¡å','" + DBUtility.ClsPub.IPAddress + "','å é¤'"; |
| | | |
| | | oWeb.getRunProcByMul(sSQLMul, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | MessageBox.Show("ç¼åå表ï¼" + HBarCode + " è®°å½å 餿åï¼"); |
| | | Display(); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | throw (e); |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("åªå
许å 餿¨¡åç±»å为âç¼åâï¼ç¶æä¸ä¸ºâå·²ä¸ä¼ âæ¡ç è®°å½ï¼"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | this.dy2 = new System.Windows.Forms.ToolStripButton(); |
| | | this.yl = new System.Windows.Forms.ToolStripButton(); |
| | | this.yc = new System.Windows.Forms.ToolStripButton(); |
| | | this.dc = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.sx = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); |
| | |
| | | this.grdPrint = new System.Windows.Forms.DataGridView(); |
| | | this.groupBox1 = new System.Windows.Forms.GroupBox(); |
| | | this.grdSum = new System.Windows.Forms.DataGridView(); |
| | | this.dc = new System.Windows.Forms.ToolStripButton(); |
| | | this.sc = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.pPic.SuspendLayout(); |
| | | this.panel1.SuspendLayout(); |
| | | this.Tool.SuspendLayout(); |
| | |
| | | this.yl, |
| | | this.yc, |
| | | this.dc, |
| | | this.toolStripSeparator4, |
| | | this.sc, |
| | | this.toolStripSeparator2, |
| | | this.sx, |
| | | this.toolStripSeparator1, |
| | |
| | | this.yc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.yc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.yc.Click += new System.EventHandler(this.yc_Click); |
| | | // |
| | | // dc |
| | | // |
| | | this.dc.AutoSize = false; |
| | | this.dc.Image = ((System.Drawing.Image)(resources.GetObject("dc.Image"))); |
| | | this.dc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.dc.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.dc.Name = "dc"; |
| | | this.dc.Size = new System.Drawing.Size(36, 47); |
| | | this.dc.Text = "导åº"; |
| | | this.dc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.dc.ToolTipText = "导åº"; |
| | | this.dc.Click += new System.EventHandler(this.dc_Click); |
| | | // |
| | | // toolStripSeparator2 |
| | | // |
| | |
| | | this.grdMain.RowTemplate.Height = 23; |
| | | this.grdMain.Size = new System.Drawing.Size(1011, 397); |
| | | this.grdMain.TabIndex = 19; |
| | | this.grdMain.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.grdMain_CellMouseUp); |
| | | this.grdMain.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.grdMain_CellBeginEdit); |
| | | this.grdMain.Paint += new System.Windows.Forms.PaintEventHandler(this.grdMain_Paint); |
| | | this.grdMain.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.grdMain_CellMouseUp); |
| | | this.grdMain.ColumnWidthChanged += new System.Windows.Forms.DataGridViewColumnEventHandler(this.grdMain_ColumnWidthChanged); |
| | | this.grdMain.Paint += new System.Windows.Forms.PaintEventHandler(this.grdMain_Paint); |
| | | // |
| | | // grdPrint |
| | | // |
| | |
| | | this.grdSum.Size = new System.Drawing.Size(1011, 19); |
| | | this.grdSum.TabIndex = 52; |
| | | // |
| | | // dc |
| | | // sc |
| | | // |
| | | this.dc.AutoSize = false; |
| | | this.dc.Image = ((System.Drawing.Image)(resources.GetObject("dc.Image"))); |
| | | this.dc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.dc.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.dc.Name = "dc"; |
| | | this.dc.Size = new System.Drawing.Size(36, 47); |
| | | this.dc.Text = "导åº"; |
| | | this.dc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.dc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.dc.ToolTipText = "导åº"; |
| | | this.dc.Click += new System.EventHandler(this.dc_Click); |
| | | this.sc.AutoSize = false; |
| | | this.sc.Image = ((System.Drawing.Image)(resources.GetObject("sc.Image"))); |
| | | this.sc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.sc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.sc.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.sc.Name = "sc"; |
| | | this.sc.Size = new System.Drawing.Size(36, 47); |
| | | this.sc.Text = "å é¤"; |
| | | this.sc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.sc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; |
| | | this.sc.Click += new System.EventHandler(this.sc_Click); |
| | | // |
| | | // toolStripSeparator4 |
| | | // |
| | | this.toolStripSeparator4.Name = "toolStripSeparator4"; |
| | | this.toolStripSeparator4.Size = new System.Drawing.Size(6, 50); |
| | | // |
| | | // WMS_BarCodeStatusQuery |
| | | // |
| | |
| | | private System.Windows.Forms.ToolStripButton yc; |
| | | private System.Windows.Forms.DataGridView grdSum; |
| | | private System.Windows.Forms.ToolStripButton dc; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; |
| | | private System.Windows.Forms.ToolStripButton sc; |
| | | } |
| | | } |
| | |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <data name="pPic.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | Qk22QAMAAAAAADYAAAAoAAAAFQMAAFoAAAABABgAAAAAAAAAAADDDgAAww4AAAAAAAAAAAAA//////// |
| | |
| | | //////////////////////////////////////////////////////////////////////8A |
| | | </value> |
| | | </data> |
| | | <metadata name="Tool.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <metadata name="Tool.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>17, 17</value> |
| | | </metadata> |
| | | <data name="Tool.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | |
| | | GVBMzd06lBMH0E0aik5mFOUC7257TWMZuJgAAAAASUVORK5CYII= |
| | | </value> |
| | | </data> |
| | | <data name="sc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG5SURBVDhPlZDrK4NhGMafP8BHf4BPwkfmq8NnvhKlUHxw |
| | | iEgSIsQKqcVyPjQ2Z9mS0ooSlqElQ07RaGRib6zmeHmf27O3zSZcdbXnfp77+r33PRZKZdXN8Le4/pt4 |
| | | wO15g0vykvn5V4j/1/5iEfsSv/iPbPbjQAgvHp5ecXrlwv6ZE7bDC1h2j7BitWNpzYZ5swUG0zL6Jxag |
| | | GZxCe68+GFBe14rjkzOMjs9iSD+DPt0ktAN6dHQPQ63pR0N7N+pbtdBNL6KmRRNijVo1jWexHcLjfcbN |
| | | gwcDBhOOzp0wW+zoGpmG0bxBE1U2tAX/ocWVjQRY27JDenzClUtC39g8Dk4dcFzf0RuXw+nC+uZOMKCg |
| | | vI4avgPupUfg4wPWaEb2yVeLOGN5JVX08B3ARcFt+SBbAfnVBMgprKDmUIBOJgeaIr4sgr6avxEgK7+U |
| | | mkOuIIsgxeEBVsJcGblF1PgTgMZODQuwMj5XenYBNa5a9+CWAZe3bvTo5uhO2Zn/xgmLOwWSKSbg8r4D |
| | | 954XXNxIVNP4IszPVAtIwBrJKWmIjE1AlCoR0aokxMQnYWLGqEAoKIv3+mrGGPsEfOpdAqh7YNYAAAAA |
| | | SUVORK5CYII= |
| | | </value> |
| | | </data> |
| | | <data name="sx.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | |
| | | AAAASUVORK5CYII= |
| | | </value> |
| | | </data> |
| | | <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>102, 16</value> |
| | | </metadata> |
| | | <metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>191, 16</value> |
| | | </metadata> |
| | | <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| | | <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| | | <value>37</value> |
| | | </metadata> |
| | | </root> |