From f7289e89b6293e92271ad0673ba6abf36604ef4c Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期四, 17 七月 2025 16:12:06 +0800 Subject: [PATCH] 采购计划表 --- DevApp/Gs.DevApp/DevFrm/Rpt/WomShjh.cs | 35 ++++++++++++++++++++++++++--------- 1 files changed, 26 insertions(+), 9 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/WomShjh.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/WomShjh.cs index 90ade0c..9363aa2 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/WomShjh.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/WomShjh.cs @@ -1,20 +1,12 @@ 锘縰sing DevExpress.Utils; -using DevExpress.XtraEditors; -using DevExpress.XtraGrid.Columns; using DevExpress.XtraGrid.Views.Grid.ViewInfo; -using DevExpress.XtraRichEdit.Model; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Newtonsoft.Json; using Newtonsoft.Json.Linq; 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.Rpt @@ -25,6 +17,10 @@ public WomShjh() { InitializeComponent(); + //澧炲姞鏃讹紝榛樿缁勭粐 + string deftOrg = UtilityHelper.GetFirstOrg(ucLookOrg1); + dateEdit1.DateTime = DateTime.Now; + dateEdit2.DateTime = DateTime.Now.AddDays(30); this.gridView1.OptionsView.ShowGroupPanel = false; tips.Appearance.BackColor = Color.LightBlue; // 璁剧疆鑳屾櫙棰滆壊 tips.Appearance.ForeColor = Color.Black; // 璁剧疆鍓嶆櫙鑹诧紙鏂囧瓧棰滆壊锛� @@ -65,6 +61,7 @@ gridView1.OptionsFind.ShowClearButton = true; // 鏄剧ず娓呴櫎鎸夐挳 gridView1.OptionsFind.ShowCloseButton = true; // 鏄剧ず鍏抽棴鎸夐挳 gridView1.IndicatorWidth = 60; + gridView1.OptionsView.ColumnAutoWidth = false;//鑷姩璋冩暣鍒楀 gridView1.CustomDrawRowIndicator += (s, e) => { if (e.Info.IsRowIndicator && e.RowHandle >= 0) @@ -80,6 +77,10 @@ }; gridView1.ShowFindPanel(); // 鏄剧ず鏌ユ壘闈㈡澘 getPageList(); + btnQuery.Click += (s, e) => + { + getPageList(); + }; } /// <summary> @@ -99,7 +100,7 @@ try { var strReturn = UtilityHelper.HttpPost("", - _webServiceName + "GetQLList", JsonConvert.SerializeObject(_obj)); + _webServiceName + "GetShjhList", JsonConvert.SerializeObject(_obj)); ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strReturn); if (_rtn.rtnCode > 0) { @@ -129,5 +130,21 @@ MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } + + /// <summary> + /// 鏌ョ湅璇︾粏 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void rptBtnView_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) + { + string itemId = ""; + string orgId = ucLookOrg1.GetId(); + string beginDate = dateEdit1.DateTime.ToString(); + string endDate = dateEdit2.DateTime.ToString(); + Form frm = new WomShjhShow(orgId, beginDate, endDate, itemId); + frm.ShowDialog(); + } + } } \ No newline at end of file -- Gitblit v1.9.3