| | |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.ToolBox; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace Gs.DevApp.DevFrm.WW |
| | |
| | | public partial class UcWwBlclSelectAll : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | private readonly string _webServiceName = "WWBlManager/"; |
| | | private string _gysId = ""; |
| | | private string _orgId = ""; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public UcWwBlclSelectAll() |
| | | public UcWwBlclSelectAll(string orgId = null, string gysId = null) |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); }; |
| | |
| | | this.colChkInt.OptionsFilter.AllowFilter = false; |
| | | this.colChkInt.OptionsFilter.AllowInHeaderSearch = DevExpress.Utils.DefaultBoolean.False; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", null, null, false); |
| | | _gysId = gysId; |
| | | _orgId = orgId; |
| | | getPageList(1); |
| | | btnIn.Click += (s, e) => |
| | | { |
| | |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage) |
| | | { |
| | | var keyWhere = ""; |
| | | if (!string.IsNullOrEmpty(_orgId)) |
| | | { |
| | | keyWhere += " and i.FSubsidiary = '" + _orgId + "'"; |
| | | } |
| | | if (!string.IsNullOrEmpty(_gysId)) |
| | | { |
| | | keyWhere += " and (SUPPLIERID is null or SUPPLIERID='" + _gysId + "') "; |
| | | } |
| | | var _obj = new |
| | | { |
| | | currentPage = 1, |
| | | everyPageSize = 999999, |
| | | sortName = "", |
| | | keyWhere = "", |
| | | keyWhere = keyWhere, |
| | | }; |
| | | var json = JsonConvert.SerializeObject(_obj); |
| | | try |