Esempio n. 1
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmQuotationInfo_History_Load(object sender, EventArgs e)
        {
            try
            {
                ControlHandler.DevExpressStyle_ChangeControlLocation(btnListAdd.LookAndFeel.ActiveSkinName, new List <Control> {
                    btnListAdd
                });

                DataTable bussBaseTable     = commonDAO.QueryBussinessBaseInfo(false);
                DataTable currencyCateTable = commonDAO.QueryCurrencyCate(false);

                searchBussinessBaseNo.Properties.DataSource = bussBaseTable;

                repLookUpCurrencyCate.DataSource = currencyCateTable;

                repItemCORBussinessBaseNo.DataSource = bussBaseTable;
                repItemCORCurrencyCate.DataSource    = currencyCateTable;

                DateTime nowDate = BaseSQL.GetServerDateTime();
                dateRecordDateBegin.DateTime = nowDate.Date.AddDays(-SystemInfo.OrderQueryDate_DefaultDays);
                dateRecordDateEnd.DateTime   = nowDate.Date;

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

                repSearchLookUpBussinessBaseNo.DataSource = bussBaseTable;
                repLookUpQState.DataSource = CommonHandler.GetQuotationInfoStateTable(false);

                Set_ButtonEditGrid_State(true);
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmQuotationApply_Load(object sender, EventArgs e)
        {
            try
            {
                DateTime nowDate = BaseSQL.GetServerDateTime();
                dateRecordDateBegin.DateTime = nowDate.Date.AddDays(-SystemInfo.OrderQueryDate_DateIntervalDays);
                dateRecordDateEnd.DateTime   = nowDate.Date;

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

                ControlCommonInit ctlInit = new ControlCommonInit();
                ctlInit.SearchLookUpEdit_UserInfo_ValueMember_AutoId(searchLookUpCreator);
                searchLookUpCreator.EditValue = 0;

                repSearchBussinessBaseNo.DataSource = commonDAO.QueryBussinessBaseInfo(false);
                repLookUpCreator.DataSource         = searchLookUpCreator.Properties.DataSource;

                repLookUpCurrencyCate.DataSource = commonDAO.QueryCurrencyCate(false);

                btnQuery_Click(null, null);
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Esempio n. 3
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);
                lookUpProjectLeader.Properties.DataSource    = commonDAO.QueryUserInfo(false);

                DateTime nowDate = BaseSQL.GetServerDateTime();

                repSearchBussinessBaseNo.DataSource = bussBaseTable;

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

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

                repSearchLookUpBussinessBaseNo.DataSource = bussBaseTable;

                Set_ButtonEditGrid_State(true);
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Esempio n. 4
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmPriceInfo_Load(object sender, EventArgs e)
        {
            try
            {
                searchLookUpBussinessBaseNo.Properties.DataSource = commonDAO.QueryBussinessBaseInfo(false);
                lookUpCurrencyCate.Properties.DataSource          = commonDAO.QueryCurrencyCate(false);

                repLookUpBussinessBaseNo.DataSource = searchLookUpBussinessBaseNo.Properties.DataSource;
                repLookUpCurrencyCate.DataSource    = lookUpCurrencyCate.Properties.DataSource;
                repLookUpCreator.DataSource         = commonDAO.QueryUserInfo(false);
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Esempio n. 5
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmSettleAccounts_Load(object sender, EventArgs e)
        {
            try
            {
                //ControlHandler.DevExpressStyle_ChangeControlLocation(checkAll.LookAndFeel.ActiveSkinName, new List<Control> { checkAll });

                DateTime nowDate = BaseSQL.GetServerDateTime();
                dateSADateBegin.DateTime = nowDate.Date.AddDays(-SystemInfo.OrderQueryDate_DateIntervalDays);
                dateSADateEnd.DateTime   = nowDate.Date;

                DataTable bussBaseTable       = commonDAO.QueryBussinessBaseInfo(false);
                DataTable bussBaseAddAllTable = commonDAO.QueryBussinessBaseInfo(true);

                searchLookUpBussinessBaseNo.Properties.DataSource = bussBaseAddAllTable;
                searchLookUpBussinessBaseNo.Text   = "全部";
                lookUpReqDep.Properties.DataSource = commonDAO.QueryDepartment(true);
                lookUpReqDep.ItemIndex             = 0;

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

                repSearchBussinessBaseNo.DataSource = bussBaseTable;
                repLookUpReqDep.DataSource          = commonDAO.QueryDepartment(false);
                repLookUpCreator.DataSource         = searchLookUpCreator.Properties.DataSource;

                repLookUpCurrencyCate.DataSource = commonDAO.QueryCurrencyCate(false);

                dateSODateBegin.DateTime = dateSADateBegin.DateTime;
                dateSODateEnd.DateTime   = dateSADateEnd.DateTime;
                searchBussinessBaseNo.Properties.DataSource = bussBaseAddAllTable;
                searchBussinessBaseNo.Text = "全部";

                repSearchLookUpBussinessBaseNo.DataSource = bussBaseTable;
                repLookUpProjectLeaderId.DataSource       = searchLookUpCreator.Properties.DataSource;

                if (querySettleAccountNo == "")
                {
                    saDAO.QuerySettleAccountsHead(dataSet_SettleAccounts.Tables[0], "", "", "", "", 0, "", true);
                    saDAO.QuerySettlementList(dataSet_SettleAccounts.Tables[1], "", true);
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Esempio n. 6
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);
            }
        }
Esempio n. 7
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmQuotationInfo_Load(object sender, EventArgs e)
        {
            try
            {
                ControlHandler.DevExpressStyle_ChangeControlLocation(btnListAdd.LookAndFeel.ActiveSkinName, new List <Control> {
                    btnListAdd
                });

                searchBussinessBaseNo.Properties.DataSource = commonDAO.QueryBussinessBaseInfo(false);

                repLookUpCurrencyCate.DataSource = commonDAO.QueryCurrencyCate(false);

                btnRefresh_Click(null, null);
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Esempio n. 8
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmQuotationApply_Load(object sender, EventArgs e)
        {
            try
            {
                DateTime nowDate = BaseSQL.GetServerDateTime();
                dateRecordDateBegin.DateTime = nowDate.Date.AddDays(-SystemInfo.OrderQueryDate_DefaultDays);
                dateRecordDateEnd.DateTime   = nowDate.Date;

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

                repSearchBussinessBaseNo.DataSource = commonDAO.QueryBussinessBaseInfo(false);

                repLookUpCurrencyCate.DataSource = commonDAO.QueryCurrencyCate(false);

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