| | |
| | | private readonly string _webServiceName = "VArrivalBarcodeManager/"; |
| | | private string aboutGuid = ""; |
| | | private string aboutType = "";//后盖码 |
| | | |
| | | /// <summary> |
| | | /// 父亲guid |
| | | /// |
| | | /// </summary> |
| | | /// <param name="_aboutGuid"></param> |
| | | public SelectDeleteBar(string _aboutGuid, string _aboutType) |
| | | /// <param name="_aboutGuid">父亲guid</param> |
| | | /// <param name="_aboutType">类别(后盖码,追溯码,受托入库等)</param> |
| | | /// <param name="_qcGuid">qcGuid,在返工重条的时候</param> |
| | | public SelectDeleteBar(string _aboutGuid, string _aboutType,string _qcGuid="") |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); }; |
| | |
| | | this.colChkInt.OptionsFilter.AllowInHeaderSearch = DevExpress.Utils.DefaultBoolean.False; |
| | | this.aboutGuid = _aboutGuid; |
| | | this.aboutType = _aboutType; |
| | | this.Text = "批量操作【" + this.aboutType + "】,【" + this.aboutGuid + "】"; |
| | | switch (aboutType) |
| | | { |
| | | case "后盖码": |
| | | btnDelete.Visible = true; |
| | | colT1.Caption = "绑定托板码"; |
| | | colT2.Caption = "绑定追溯码"; |
| | | break; |
| | | case "追溯码": |
| | | colT1.Caption = "线体编号"; |
| | | colT2.Caption = "线体名称"; |
| | | break; |
| | | default: |
| | | colT1.Caption = "入库人"; |
| | | colT2.Caption = "入库日期"; |
| | | break; |
| | | } |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", null, null, false); |
| | | getPageList(1); |
| | | btnDelete.Click += (s, e) => |
| | |
| | | MsgHelper.Warning("请勾选你要打印的条码!"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString() }); Close(); |
| | | }; |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | private bool _ckRptService(string _guidKey, string _rptParameter) |
| | | { |
| | | try |
| | | { |
| | | var _obj = new |
| | | { |
| | | guid = _guidKey, |
| | | _rptParameter, |
| | | isDesign = 1 |
| | | }; |
| | | var strJson = UtilityHelper.HttpPost("", "Report/GetRptData", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | if (_rtn.rtnCode > 0) return true; |
| | | return false; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | } |
| | | } |