コード例 #1
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmStnModuleQuery_Load(object sender, EventArgs e)
        {
            try
            {
                DateTime nowDate = BaseSQL.GetServerDateTime();
                dateGetTimeBegin.DateTime = nowDate.Date.AddDays(-SystemInfo.OrderQueryDate_DateIntervalDays);
                dateGetTimeEnd.DateTime   = nowDate.Date;

                searchLookUpStnModule.Properties.DataSource = ssDAO.QueryStnModule(true);
                searchLookUpStnModule.Text = "全部";

                ControlCommonInit ctlInit = new ControlCommonInit();
                ctlInit.SearchLookUpEdit_UserInfo_ValueMember_AutoId(searchLookUpCreator);
                searchLookUpCreator.EditValue = SystemInfo.user.AutoId;

                repLookUpCreator.DataSource = searchLookUpCreator.Properties.DataSource;

                gridBottomOrderHead.pageRowCount = SystemInfo.OrderQueryGrid_PageRowCount;

                btnQuery_Click(null, null);
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
コード例 #2
0
ファイル: FrmSelectStnModule.cs プロジェクト: comborep/PSAP
        /// <summary>
        /// 查询按钮事件
        /// </summary>
        private void btnModuleQuery_Click(object sender, EventArgs e)
        {
            try
            {
                string getTimeBeginStr = "";
                string getTimeEndStr   = "";
                if (dateGetTimeBegin.EditValue != null && dateGetTimeEnd.EditValue != null)
                {
                    getTimeBeginStr = dateGetTimeBegin.DateTime.ToString("yyyy-MM-dd");
                    getTimeEndStr   = dateGetTimeEnd.DateTime.AddDays(1).ToString("yyyy-MM-dd");
                }

                string commonStr = textCommon.Text.Trim();

                TableStnModule.Rows.Clear();
                ssDAO.QueryStnModule(TableStnModule, getTimeBeginStr, getTimeEndStr, commonStr);
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--查询按钮事件错误。", ex);
            }
        }
コード例 #3
0
ファイル: FrmStnSummary_Query.cs プロジェクト: comborep/PSAP
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmStnSummary_Query_Load(object sender, EventArgs e)
        {
            try
            {
                DateTime nowDate = BaseSQL.GetServerDateTime();
                dateGetTimeBegin.DateTime = nowDate.Date.AddDays(-SystemInfo.OrderQueryDate_DefaultDays);
                dateGetTimeEnd.DateTime   = nowDate.Date;

                searchLookUpStnModule.Properties.DataSource = ssDAO.QueryStnModule(true);
                searchLookUpStnModule.Text           = "全部";
                lookUpPrepared.Properties.DataSource = commonDAO.QueryUserInfo(true);
                lookUpPrepared.EditValue             = SystemInfo.user.EmpName;

                gridBottomOrderHead.pageRowCount = SystemInfo.OrderQueryGrid_PageRowCount;

                btnQuery_Click(null, null);
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }