| | |
| | | this.Text = "批量操作【" + this.aboutType + "】,【" + this.aboutGuid + "】"; |
| | | switch (aboutType) |
| | | { |
| | | case "采购入库": |
| | | btnDelete.Visible = false; |
| | | break; |
| | | case "后盖码": |
| | | btnDelete.Visible = true; |
| | | colT1.Caption = "绑定托板码"; |
| | | colT2.Caption = "绑定追溯码"; |
| | | break; |
| | |
| | | } |
| | | if (sb.Length <= 0) |
| | | { |
| | | MsgHelper.Warning("请勾选你要删除的条码!"); |
| | | MsgHelper.ShowError("请勾选你要删除的条码!"); |
| | | return; |
| | | } |
| | | var _obj = new |
| | |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | return; |
| | | } |
| | | UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = strMsg }); Close(); |
| | | UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = strMsg, Data="delete" }); Close(); |
| | | }; |
| | | btnPrint.Click += (s, e) => |
| | | { |
| | |
| | | } |
| | | if (sb.Length <= 0) |
| | | { |
| | | MsgHelper.Warning("请勾选你要打印的条码!"); |
| | | MsgHelper.ShowError("请勾选你要打印的条码!"); |
| | | return; |
| | | } |
| | | |
| | | UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString() }); Close(); |
| | | UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString() ,Data = "print" }); Close(); |
| | | }; |
| | | } |
| | | |