| | |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraGrid.Views.Base.ViewInfo; |
| | | using DevExpress.XtraLayout.Customization; |
| | | using Gs.DevApp.DevFrm.BasicData; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Gs.DevApp.UserControl; |
| | |
| | | }, lbGuid); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | btnCopy.Click += (s, e) => |
| | | { |
| | | if (!MsgHelper.AskQuestion("确定把该供应商加入SRM名单吗?")) |
| | | return; |
| | | var _obj = new |
| | | { |
| | | suppId = txt_id.Text.Trim(), |
| | | joinType = 1, |
| | | }; |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", _webServiceName + "SrmJoin",JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | Frm_SupplierSrm frm = new Frm_SupplierSrm(); |
| | | frm.ShowDialog(); |
| | | } |
| | | else |
| | | MsgHelper.ShowError("提示:" + _rtn.rtnMsg); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | }; |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |