| | |
| | | btnCaiGouChk.ItemClick += BtnCaiGouChk_ItemClick; |
| | | btnCaiGouFchk.ItemClick += BtnCaiGouFchk_ItemClick; |
| | | btnBoHui.ItemClick += BtnBoHui_ItemClick; |
| | | btnPrint.ItemClick += BtnPrint_ItemClick; |
| | | var lst = new List<string>(); |
| | | foreach (BarItem item in barManager1.Items) |
| | | if (item is BarLargeButtonItem largeButtonItem) |
| | |
| | | actions = lst; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | base.OnCreateControl(); |
| | | if (Parent != null) getNamespace(); |
| | | } |
| | | |
| | | private void BtnPrint_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | if (btnPrintClick != null) |
| | | btnPrintClick(this, e); |
| | | } |
| | | |
| | | |
| | | private void BtnBoHui_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | if (btnBoHuiClick != null) |
| | | btnBoHuiClick(this, e); |
| | | if (string.IsNullOrEmpty(guidKey)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(guidKey)) |
| | | //{ |
| | | // MsgHelper.Warning("请先选择你要操作的行!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (string.IsNullOrEmpty(chkParameter)) |
| | | { |
| | | MsgHelper.ShowError("没有指定驳回参数,请联系开发人员获取支持!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(chkParameter)) |
| | | //{ |
| | | // MsgHelper.ShowError("没有指定驳回参数,请联系开发人员获取支持!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (!MsgHelper.AskQuestion("你选择了1条数据,确定驳回重检吗?")) |
| | | return; |
| | | _ckService("5"); |
| | | //if (!MsgHelper.AskQuestion("你选择了1条数据,确定驳回重检吗?")) |
| | | // return; |
| | | //_ckService("5"); |
| | | } |
| | | private void BtnCaiGouFchk_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | if (btnCaiGouFchkClick != null) |
| | | btnCaiGouFchkClick(this, e); |
| | | if (string.IsNullOrEmpty(guidKey)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(guidKey)) |
| | | //{ |
| | | // MsgHelper.Warning("请先选择你要操作的行!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (string.IsNullOrEmpty(chkParameter)) |
| | | { |
| | | MsgHelper.ShowError("没有指定审核参数,请联系开发人员获取支持!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(chkParameter)) |
| | | //{ |
| | | // MsgHelper.ShowError("没有指定审核参数,请联系开发人员获取支持!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (!MsgHelper.AskQuestion("你选择了1条数据,确定采购反审核吗?")) |
| | | return; |
| | | _ckService("-2"); |
| | | //if (!MsgHelper.AskQuestion("你选择了1条数据,确定采购反审核吗?")) |
| | | // return; |
| | | //_ckService("-2"); |
| | | } |
| | | |
| | | private void BtnCaiGouChk_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | if (btnCaiGouChkClick != null) |
| | | btnCaiGouChkClick(this, e); |
| | | if (string.IsNullOrEmpty(guidKey)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(guidKey)) |
| | | //{ |
| | | // MsgHelper.Warning("请先选择你要操作的行!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (string.IsNullOrEmpty(chkParameter)) |
| | | { |
| | | MsgHelper.ShowError("没有指定审核参数,请联系开发人员获取支持!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(chkParameter)) |
| | | //{ |
| | | // MsgHelper.ShowError("没有指定审核参数,请联系开发人员获取支持!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (!MsgHelper.AskQuestion("你选择了1条数据,确定采购审核吗?")) |
| | | return; |
| | | _ckService("2"); |
| | | //if (!MsgHelper.AskQuestion("你选择了1条数据,确定采购审核吗?")) |
| | | // return; |
| | | //_ckService("2"); |
| | | } |
| | | |
| | | private void BtnZhiLiangFchk_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | if (btnZhiLiangFchkClick != null) |
| | | btnZhiLiangFchkClick(this, e); |
| | | if (string.IsNullOrEmpty(guidKey)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(guidKey)) |
| | | //{ |
| | | // MsgHelper.Warning("请先选择你要操作的行!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (string.IsNullOrEmpty(chkParameter)) |
| | | { |
| | | MsgHelper.ShowError("没有指定审核参数,请联系开发人员获取支持!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(chkParameter)) |
| | | //{ |
| | | // MsgHelper.ShowError("没有指定审核参数,请联系开发人员获取支持!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (!MsgHelper.AskQuestion("你选择了1条数据,确定质量反审核吗?")) |
| | | return; |
| | | _ckService("-3"); |
| | | //if (!MsgHelper.AskQuestion("你选择了1条数据,确定质量反审核吗?")) |
| | | // return; |
| | | //_ckService("-3"); |
| | | } |
| | | |
| | | private void BtnZhiLiangChk_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | if (btnZhiLiangChkClick != null) |
| | | btnZhiLiangChkClick(this, e); |
| | | if (string.IsNullOrEmpty(guidKey)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(guidKey)) |
| | | //{ |
| | | // MsgHelper.Warning("请先选择你要操作的行!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (string.IsNullOrEmpty(chkParameter)) |
| | | { |
| | | MsgHelper.ShowError("没有指定审核参数,请联系开发人员获取支持!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(chkParameter)) |
| | | //{ |
| | | // MsgHelper.ShowError("没有指定审核参数,请联系开发人员获取支持!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (!MsgHelper.AskQuestion("你选择了1条数据,确定质量审核吗?")) |
| | | return; |
| | | _ckService("3"); |
| | | //if (!MsgHelper.AskQuestion("你选择了1条数据,确定质量审核吗?")) |
| | | // return; |
| | | //_ckService("3"); |
| | | } |
| | | |
| | | private void BtnFchk_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | btnFjianYanClick(this, e); |
| | | else |
| | | return; |
| | | if (string.IsNullOrEmpty(guidKey)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(guidKey)) |
| | | //{ |
| | | // MsgHelper.Warning("请先选择你要操作的行!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (string.IsNullOrEmpty(chkParameter)) |
| | | { |
| | | MsgHelper.ShowError("没有指定检验参数,请联系开发人员获取支持!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(chkParameter)) |
| | | //{ |
| | | // MsgHelper.ShowError("没有指定检验参数,请联系开发人员获取支持!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (!MsgHelper.AskQuestion("你选择了1条数据,确定撤回检验吗?")) |
| | | return; |
| | | _ckService(0.ToString()); |
| | | //if (!MsgHelper.AskQuestion("你选择了1条数据,确定撤回检验吗?")) |
| | | // return; |
| | | //_ckService(0.ToString()); |
| | | } |
| | | |
| | | private void BtnJianYan_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | else |
| | | return; |
| | | |
| | | if (string.IsNullOrEmpty(guidKey)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(guidKey)) |
| | | //{ |
| | | // MsgHelper.Warning("请先选择你要操作的行!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (string.IsNullOrEmpty(chkParameter)) |
| | | { |
| | | MsgHelper.ShowError("没有指定检验参数,请联系开发人员获取支持!"); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(chkParameter)) |
| | | //{ |
| | | // MsgHelper.ShowError("没有指定检验参数,请联系开发人员获取支持!"); |
| | | // return; |
| | | //} |
| | | |
| | | if (!MsgHelper.AskQuestion("你选择了1条数据,确定提交检验吗?")) |
| | | return; |
| | | var _obj = new |
| | | { |
| | | guid = guidKey, |
| | | parameter = chkParameter |
| | | }; |
| | | _ckService(1.ToString()); |
| | | //if (!MsgHelper.AskQuestion("你选择了1条数据,确定提交检验吗?")) |
| | | // return; |
| | | //var _obj = new |
| | | //{ |
| | | // guid = guidKey, |
| | | // parameter = chkParameter |
| | | //}; |
| | | //_ckService(1.ToString()); |
| | | } |
| | | |
| | | private async void BtnIn_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | /// </summary> |
| | | public event EventHandler btnBoHuiClick; |
| | | |
| | | |
| | | public event EventHandler btnPrintClick; |
| | | #endregion |
| | | |
| | | #region 公共属性 |