lu
2 天以前 f7289e89b6293e92271ad0673ba6abf36604ef4c
DevApp/Gs.DevApp/DevFrm/Rpt/WomShjh.cs
@@ -1,20 +1,12 @@
using 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();
        }
    }
}