Пример #1
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmPrReqDistribution_Load(object sender, EventArgs e)
        {
            try
            {
                DateTime nowDate = BaseSQL.GetServerDateTime();
                checkRequirementDate.Checked      = true;
                dateRequirementDateBegin.DateTime = nowDate.Date;
                dateRequirementDateEnd.DateTime   = nowDate.Date.AddDays(SystemInfo.OrderQueryDate_DateIntervalDays);

                //DataTable partsCodeTable_t = commonDAO.QueryPartsCode(true);

                //searchLookUpProjectNo.Properties.DataSource = commonDAO.QueryProjectList(true);
                //searchLookUpProjectNo.Text = "全部";
                //searchLookUpCodeFileName.Properties.DataSource = partsCodeTable_t;
                //searchLookUpCodeFileName.EditValue = 0;

                ControlCommonInit ctlInit = new ControlCommonInit();
                ctlInit.SearchLookUpEdit_UserInfo_ValueMember_AutoId_NoAll(searchLookUpArrangement);
                //searchLookUpCreator.EditValue = SystemInfo.user.AutoId;
                ctlInit.SearchLookUpEdit_PartsCode(searchLookUpCodeFileName, true);
                searchLookUpCodeFileName.EditValue = 0;
                ctlInit.SearchLookUpEdit_ProjectList(searchLookUpProjectNo, true);
                searchLookUpProjectNo.Text = "全部";

                repLookUpCodeName.DataSource = searchLookUpCodeFileName.Properties.DataSource;
                repLookUpOperator.DataSource = searchLookUpArrangement.Properties.DataSource;

                checkContainOk.Checked = false;

                if (SystemInfo.DisableProjectNo)
                {
                    labProjectNo.Visible          = false;
                    searchLookUpProjectNo.Visible = false;
                    colProjectNo.Visible          = false;
                    colStnNo.Visible = false;
                }

                btnQuery_Click(null, null);
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Пример #2
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmSalesOrder_History_Load(object sender, EventArgs e)
        {
            try
            {
                DataTable bussBaseTable = commonDAO.QueryBussinessBaseInfo(false);

                //searchProjectName.Properties.DataSource = commonDAO.QueryProjectList(false);
                searchBussinessBaseNo.Properties.DataSource = bussBaseTable;
                lookUpCollectionTypeNo.Properties.DataSource = commonDAO.QueryCollectionType(false);
                lookUpCurrencyCate.Properties.DataSource = commonDAO.QueryCurrencyCate(false);

                ControlCommonInit ctlInit = new ControlCommonInit();
                ctlInit.SearchLookUpEdit_UserInfo_ValueMember_AutoId_NoAll(searchLookUpProjectLeaderId);
                searchLookUpProjectLeaderId.EditValue = SystemInfo.user.AutoId;
                LookUpCreator.Properties.DataSource = searchLookUpProjectLeaderId.Properties.DataSource;
                LookUpModifierId.Properties.DataSource = searchLookUpProjectLeaderId.Properties.DataSource;
                ctlInit.SearchLookUpEdit_ProjectList(searchProjectName, false);

                DateTime nowDate = BaseSQL.GetServerDateTime();

                repSearchBussinessBaseNo.DataSource = bussBaseTable;
                repLookUpCreator.DataSource = searchLookUpProjectLeaderId.Properties.DataSource;

                dateSalesOrderDateBegin.DateTime = nowDate.Date.AddDays(-SystemInfo.OrderQueryDate_DateIntervalDays);
                dateSalesOrderDateEnd.DateTime = nowDate.Date;

                searchLookUpBussinessBaseNo.Properties.DataSource = commonDAO.QueryBussinessBaseInfo(true);
                searchLookUpBussinessBaseNo.Text = "全部";

                repSearchLookUpBussinessBaseNo.DataSource = bussBaseTable;
                repItemLookUpCreator.DataSource = searchLookUpProjectLeaderId.Properties.DataSource;

                if (queryAutoSalesOrderNoStr == "")
                {
                    dataSet_SalesOrder.Tables[0].Clear();
                    soDAO.QuerySalesOrder(dataSet_SalesOrder.Tables[0], "", "", "", "", 0, "", true);
                    Set_ButtonEditGrid_State(true);
                }                
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Пример #3
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmProjectList_Load(object sender, EventArgs e)
        {
            try
            {
                searchLookUpBussinessBaseNo.Properties.DataSource = commonDAO.QueryBussinessBaseInfo(false);
                lookUpProjectStatusId.Properties.DataSource       = statusDAO.QueryProjectStatus(false);
                //searchLookUpLeaderId.Properties.DataSource = projectDAO.QueryUserInfo(false);

                ControlCommonInit ctlInit = new ControlCommonInit();
                ctlInit.SearchLookUpEdit_UserInfo_ValueMember_AutoId_NoAll(searchLookUpLeaderId);

                repLookUpProjectStatusId.DataSource = statusDAO.QueryProjectStatus(false);
                repLookUpLeaderId.DataSource        = searchLookUpLeaderId.Properties.DataSource;

                stnList = new FrmStnList("", "");
                stnList.Show(this.PageStnInfo);
                stnList.Dock            = DockStyle.Fill;
                stnList.TopLevel        = false;
                stnList.FormBorderStyle = FormBorderStyle.None;

                //this.PageStnInfo.Text = stnList.Text;
                this.dockPanelInfo.Text    = "项目其他信息";
                this.dockPanelInfo.TabText = this.dockPanelInfo.Text;
                this.PageStnInfo.Controls.Add(stnList);

                if (!FrmMainDAO.QueryUserButtonPower(this.Name, this.Text, btnStnList, false))
                {
                    PageStnInfo.Enabled = false;
                }
            }
            catch (Exception ex)
            {
                //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
                ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
            }
        }