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

                ControlCommonInit ctlInit = new ControlCommonInit();
                ctlInit.SearchLookUpEdit_PartsCode(searchPartsCodeId, false, "AutoId", "CodeFileName");
                ctlInit.SearchLookUpEdit_PartsCode(searchCodeFileName, false, "CodeFileName", "CodeFileName");
                ctlInit.RepositoryItemSearchLookUpEdit_PartsCode(repSearchCodeFileName, "CodeFileName", "CodeFileName");

                //searchPartsCodeId.Properties.DataSource = commonDAO.QueryPartsCode(false);
                lookUpMaterieState.Properties.DataSource = bomDAO.QueryBomMaterieState(false);

                //repSearchCodeFileName.DataSource = commonDAO.QueryPartsCode(false);

                //searchCodeFileName.Properties.DataSource = commonDAO.QueryPartsCode(false);
                //RefreshTreeList();
                Set_ButtonEditGrid_State(true, null);
            }
            catch (Exception ex)
            {
                //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
                ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmBomImport_Load(object sender, EventArgs e)
        {
            try
            {
                //repSearchCodeFileName.DataSource = commonDAO.QueryPartsCode(false);

                ControlCommonInit ctlInit = new ControlCommonInit();
                ctlInit.RepositoryItemSearchLookUpEdit_PartsCode(repSearchCodeFileName, "CodeFileName", "CodeFileName");
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }