| | |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.Entity; |
| | | 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; |
| | | |
| | |
| | | { |
| | | public partial class Frm_CqfaItems : DevExpress.XtraEditors.XtraUserControl |
| | | { |
| | | string strType = "iqc"; |
| | | string strType = ""; |
| | | string orgId = ""; |
| | | private List<FilterEntity> _filterList = new List<FilterEntity>(); |
| | | private readonly string _webServiceName = "MesQmCheckitemManager/"; |
| | | public Frm_CqfaItems() |
| | | public Frm_CqfaItems(string _strType, string _orgId) |
| | | { |
| | | InitializeComponent(); |
| | | strType = _strType; |
| | | orgId = _orgId; |
| | | pageBar1.setBar(false); |
| | | this.gvMain.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); }; |
| | | this.gvMain.MouseUp += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomMouseUp(s, e, gcMain, gvMain); }; |
| | |
| | | this.colChkInt.OptionsFilter.AllowFilter = false; |
| | | this.colChkInt.OptionsFilter.AllowInHeaderSearch = DevExpress.Utils.DefaultBoolean.False; |
| | | this.pageBar1.setBar(false); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gvMain); |
| | | } |
| | | public void Initialize() |
| | | { |
| | | getPageList(1); |
| | | } |
| | | |
| | | #region 源物料数据绑定 |
| | |
| | | { |
| | | gcMain.DataSource = null; |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | //_sbSqlWhere += " and q.guid is null"; |
| | | _sbSqlWhere += " and org.fid=" + orgId + ""; |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "item_no", "asc", "", _sbSqlWhere.ToString(), strType); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |