From 795a23f95d65ab447ccfad6825f4121bed625f5b Mon Sep 17 00:00:00 2001 From: cdk <2441919651@qq.com> Date: 星期五, 05 九月 2025 09:21:13 +0800 Subject: [PATCH] 物料欠料增加组织机构的查询条件 --- DevApp/Gs.DevApp/DevFrm/Rpt/ItemQL.Designer.cs | 15 ++++++++++++++- DevApp/Gs.DevApp/DevFrm/Rpt/ItemQL.cs | 6 +++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/ItemQL.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/ItemQL.Designer.cs index 483bb3d..ef12fab 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/ItemQL.Designer.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/ItemQL.Designer.cs @@ -46,6 +46,7 @@ this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); this.pageBar1 = new UserControls.Data.UcPageBar(); + this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); this.xtraTabControl1.SuspendLayout(); this.xtraTabPage1.SuspendLayout(); @@ -144,7 +145,8 @@ this.gridColumn3, this.gridColumn4, this.gridColumn5, - this.gridColumn6}); + this.gridColumn6, + this.gridColumn7}); this.gridView1.DetailHeight = 428; this.gridView1.GridControl = this.gcMain1; this.gridView1.IndicatorWidth = 62; @@ -276,6 +278,16 @@ this.pageBar1.TabIndex = 4; this.pageBar1.TotalPages = 0; // + // gridColumn7 + // + this.gridColumn7.Caption = "缁勭粐鏈烘瀯"; + this.gridColumn7.FieldName = "orgName"; + this.gridColumn7.MinWidth = 30; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 10; + this.gridColumn7.Width = 112; + // // ItemQL // this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F); @@ -318,5 +330,6 @@ private DevExpress.XtraGrid.Columns.GridColumn gridColumn4; private DevExpress.XtraGrid.Columns.GridColumn gridColumn5; private DevExpress.XtraGrid.Columns.GridColumn gridColumn6; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn7; } } \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/ItemQL.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/ItemQL.cs index 1df1b0d..7808abd 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/ItemQL.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/ItemQL.cs @@ -89,7 +89,11 @@ /// <param name="pageSize">姣忛〉鍑犳潯</param> private void getPageList(int curPage) { - gcMain1.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); + gcMain1.DataSource = null; + System.Text.StringBuilder _sbSqlWhere = new System.Text.StringBuilder(); + _sbSqlWhere.Append(" and c.FSubsidiary in"); + _sbSqlWhere.Append(ToolBox.UtilityHelper.GetOrgWhere()); + _sbSqlWhere.Append(UtilityHelper.GetSearchWhere(_filterList)); PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.INDEP_DATE", "asc", "", _sbSqlWhere.ToString()); string json = JsonConvert.SerializeObject(pgq); try -- Gitblit v1.9.3