Example #1
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmDepartment_New()
        {
            InitializeComponent();
            PSAP.BLL.BSBLL.BSBLL.language(f);
            PSAP.BLL.BSBLL.BSBLL.language(this);

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "BS_Department";
                    editForm.TableCaption        = "部门信息";
                    editForm.Sql                 = "select Dept.*, parent.DepartmentName as ParentDepartmentName from BS_Department as Dept left join BS_Department as parent on Dept.ParentDepartmentNo = parent.DepartmentNo order by ParentDepartmentName";
                    editForm.PrimaryKeyColumn    = "DepartmentNo";
                    editForm.MasterDataSet       = dSDepartment;
                    editForm.MasterBindingSource = bSDepartment;
                    editForm.MasterEditPanel     = pnlEdit;
                    editForm.PrimaryKeyControl   = textDepartmentNo;
                    editForm.BrowseXtraGridView  = gridViewDepartment;
                    editForm.CheckControl       += CheckControl;
                    editForm.QueryDataAfter     += QueryDataAfter;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #2
0
        public FrmPriceInfo(int codeIdInt, string codeFileNameStr, string codeNameStr)
        {
            InitializeComponent();
            this.codeIdInt = codeIdInt;
            this.Text      = string.Format("【{0}-{1}】的价格信息", codeFileNameStr, codeNameStr);

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle = FormBorderStyle.None;
                    editForm.TopLevel        = false;
                    editForm.TableName       = "BS_PriceInfo";
                    editForm.TableCaption    = "供应商价格信息";
                    SetEditFormSQL();
                    editForm.PrimaryKeyColumn     = "AutoID";
                    editForm.MasterDataSet        = dSPriceInfo;
                    editForm.MasterBindingSource  = bSPriceInfo;
                    editForm.MasterEditPanel      = pnlEdit;
                    editForm.BrowseXtraGridView   = gridViewPriceInfo;
                    editForm.CheckControl        += CheckControl;
                    editForm.SaveRowBefore       += SaveRowBefore;
                    editForm.VisibleSearchControl = false;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #3
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmWorkProcess()
        {
            InitializeComponent();

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "BS_WorkProcess";
                    editForm.TableCaption        = "基本工序";
                    editForm.Sql                 = "select * from BS_WorkProcess order by AutoId";
                    editForm.PrimaryKeyColumn    = "AutoId";
                    editForm.MasterDataSet       = dSWorkProcess;
                    editForm.MasterBindingSource = bSWorkProcess;
                    editForm.MasterEditPanel     = pnlEdit;
                    editForm.PrimaryKeyControl   = textWorkProcessNo;
                    editForm.BrowseXtraGridView  = gridViewWorkProcess;
                    editForm.CheckControl       += CheckControl;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #4
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmWorkFlowModuleProper()
        {
            InitializeComponent();

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "BS_WorkFlowModuleProper";
                    editForm.TableCaption        = "审批流-模块字段";
                    editForm.Sql                 = "select BS_WorkFlowModuleProper.*, BS_WorkFlowModule.FlowModuleText from BS_WorkFlowModuleProper left join BS_WorkFlowModule on BS_WorkFlowModuleProper.FlowModuleId = BS_WorkFlowModule.FlowModuleId order by AutoId";
                    editForm.PrimaryKeyColumn    = "AutoId";
                    editForm.MasterDataSet       = dSWorkFlowModuleProper;
                    editForm.MasterBindingSource = bSWorkFlowModuleProper;
                    editForm.MasterEditPanel     = pnlEdit;
                    //editForm.PrimaryKeyControl = textFlowModuleId;
                    editForm.OtherNoChangeControl = new List <Control>()
                    {
                        searchLookUpFlowModuleId, textProperName, searchLookUplabProper
                    };
                    editForm.BrowseXtraGridView = gridViewWorkFlowModuleProper;
                    //editForm.CheckControl += CheckControl;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #5
0
 /// <summary>
 /// 窗体加载事件
 /// </summary>
 private void FrmWarehouseReceiptType_Load(object sender, EventArgs e)
 {
     try
     {
         if (editForm == null)
         {
             editForm = new FrmBaseEdit();
             editForm.FormBorderStyle     = FormBorderStyle.None;
             editForm.TopLevel            = false;
             editForm.TableName           = "BS_WarehouseReceiptType";
             editForm.TableCaption        = "出库类别";
             editForm.Sql                 = "select * from BS_WarehouseReceiptType Order by AutoId";
             editForm.PrimaryKeyColumn    = "WarehouseReceiptTypeNo";
             editForm.MasterDataSet       = dSWarehouseReceiptType;
             editForm.MasterBindingSource = bSWarehouseReceiptType;
             editForm.MasterEditPanel     = pnlEdit;
             editForm.PrimaryKeyControl   = textWarehouseReceiptTypeNo;
             editForm.BrowseXtraGridView  = gridViewWarehouseReceiptType;
             editForm.CheckControl       += CheckControl;
             editForm.SaveRowBefore      += SaveRowBefore_Handle;
             editForm.ButtonList.Add(btnSetDefault);
             this.pnlToolBar.Controls.Add(editForm);
             editForm.Dock = DockStyle.Fill;
             editForm.Show();
         }
     }
     catch (Exception ex)
     {
         //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
         ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
     }
 }
Example #6
0
 /// <summary>
 /// 窗体加载事件
 /// </summary>
 private void FrmPurCategory_Load(object sender, EventArgs e)
 {
     try
     {
         if (editForm == null)
         {
             editForm = new FrmBaseEdit();
             editForm.FormBorderStyle     = FormBorderStyle.None;
             editForm.TopLevel            = false;
             editForm.TableName           = "PUR_PurCategory";
             editForm.TableCaption        = "采购类型";
             editForm.Sql                 = "select * from PUR_PurCategory Order by AutoId";
             editForm.PrimaryKeyColumn    = "PurCategory";
             editForm.MasterDataSet       = dSPurCategory;
             editForm.MasterBindingSource = bSPurCategory;
             editForm.MasterEditPanel     = pnlEdit;
             editForm.PrimaryKeyControl   = textPurCategory;
             editForm.BrowseXtraGridView  = gridViewPurCategory;
             editForm.CheckControl       += CheckControl;
             this.pnlToolBar.Controls.Add(editForm);
             editForm.Dock = DockStyle.Fill;
             editForm.Show();
         }
     }
     catch (Exception ex)
     {
         //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
         ExceptionHandler.HandleException(this.Text + "--" + tsmiCt.Text, ex);
     }
 }
Example #7
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmDepartment_New_Load(object sender, EventArgs e)
        {
            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "BS_Department";
                    editForm.TableCaption        = "部门信息";
                    editForm.Sql                 = "select Dept.*, parent.DepartmentName as ParentDepartmentName from BS_Department as Dept left join BS_Department as parent on Dept.ParentDepartmentNo = parent.DepartmentNo order by AutoId";
                    editForm.PrimaryKeyColumn    = "DepartmentNo";
                    editForm.MasterDataSet       = dSDepartment;
                    editForm.MasterBindingSource = bSDepartment;
                    editForm.MasterEditPanel     = pnlEdit;
                    editForm.PrimaryKeyControl   = textDepartmentNo;
                    editForm.BrowseXtraGridView  = gridViewDepartment;
                    editForm.CheckControl       += CheckControl;
                    editForm.QueryDataAfter     += QueryDataAfter;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();

                    lookUpDept.Properties.DataSource = commonDAO.QueryDepartment_AllNode(false);
                }
            }
            catch (Exception ex)
            {
                //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
                ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
            }
        }
Example #8
0
 /// <summary>
 /// 窗体加载事件
 /// </summary>
 private void FrmShelfInfo_Load(object sender, EventArgs e)
 {
     try
     {
         if (editForm == null)
         {
             editForm = new FrmBaseEdit();
             editForm.FormBorderStyle     = FormBorderStyle.None;
             editForm.TopLevel            = false;
             editForm.TableName           = "BS_ShelfInfo";
             editForm.TableCaption        = "货架信息";
             editForm.Sql                 = "select * from BS_ShelfInfo order by AutoId";
             editForm.PrimaryKeyColumn    = "AutoId";
             editForm.MasterDataSet       = dSShelfInfo;
             editForm.MasterBindingSource = bSShelfInfo;
             editForm.MasterEditPanel     = pnlEdit;
             editForm.PrimaryKeyControl   = textShelfNo;
             editForm.BrowseXtraGridView  = gridViewShelfInfo;
             editForm.CheckControl       += CheckControl;
             this.pnlToolBar.Controls.Add(editForm);
             editForm.Dock = DockStyle.Fill;
             editForm.Show();
         }
     }
     catch (Exception ex)
     {
         //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
         ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
     }
 }
Example #9
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmUserInfo_New_Load(object sender, EventArgs e)
        {
            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "BS_UserInfo";
                    editForm.TableCaption        = "用户信息";
                    editForm.Sql                 = "select BS_UserInfo.*, BS_Department.DepartmentName from BS_UserInfo left join BS_Department on BS_UserInfo.DepartmentNo = BS_Department.DepartmentNo order by AutoId";
                    editForm.PrimaryKeyColumn    = "AutoId";
                    editForm.MasterDataSet       = dSUserInfo;
                    editForm.MasterBindingSource = bSUserInfo;
                    editForm.MasterEditPanel     = pnlEdit;
                    editForm.PrimaryKeyControl   = textLoginId;
                    editForm.BrowseXtraGridView  = gridViewUserInfo;
                    editForm.CheckControl       += CheckControl;
                    editForm.SaveRowBefore      += SaveRowBefore;
                    editForm.DeleteRowBefore    += DeleteRowBefore;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();

                    lookUpDept.Properties.DataSource = commonDAO.QueryDepartment_AllNode(false);
                }
            }
            catch (Exception ex)
            {
                //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
                ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
            }
        }
Example #10
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmWorkFlowModule()
        {
            InitializeComponent();

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "BS_WorkFlowModule";
                    editForm.TableCaption        = "审批流-业务模块";
                    editForm.Sql                 = "select * from BS_WorkFlowModule order by AutoId";
                    editForm.PrimaryKeyColumn    = "FlowModuleId";
                    editForm.MasterDataSet       = dSWorkFlowModule;
                    editForm.MasterBindingSource = bSWorkFlowModule;
                    editForm.MasterEditPanel     = pnlEdit;
                    editForm.PrimaryKeyControl   = textFlowModuleId;
                    //editForm.OtherNoChangeControl = new List<Control>() { textProjectName };
                    editForm.ButtonList.Add(btnModuleProper);
                    editForm.BrowseXtraGridView = gridViewWorkFlowModule;
                    editForm.CheckControl      += CheckControl;
                    editForm.SaveRowBefore     += SaveRowBefore;
                    editForm.DeleteRowBefore   += DeleteRowBefore;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #11
0
        public FrmRepertoryLocationInfo()
        {
            InitializeComponent();

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "BS_RepertoryLocationInfo";
                    editForm.TableCaption        = "仓位信息";
                    editForm.Sql                 = "select * from BS_RepertoryLocationInfo Order by AutoId";
                    editForm.PrimaryKeyColumn    = "AutoId";
                    editForm.MasterDataSet       = dSLocationInfo;
                    editForm.MasterBindingSource = bSLocationInfo;
                    editForm.MasterEditPanel     = pnlEdit;
                    //editForm.PrimaryKeyControl = textLocationNo;
                    editForm.BrowseXtraGridView = gridViewLocationInfo;
                    editForm.CheckControl      += CheckControl;
                    editForm.SaveRowBefore     += SaveRowBefore;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #12
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmPayType()
        {
            InitializeComponent();
            PSAP.BLL.BSBLL.BSBLL.language(f);
            PSAP.BLL.BSBLL.BSBLL.language(this);

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "PUR_PayType";
                    editForm.TableCaption        = "付款类型";
                    editForm.Sql                 = "select * from PUR_PayType Order by AutoId";
                    editForm.PrimaryKeyColumn    = "PayTypeNo";
                    editForm.MasterDataSet       = dSPayType;
                    editForm.MasterBindingSource = bSPayType;
                    editForm.MasterEditPanel     = pnlEdit;
                    editForm.PrimaryKeyControl   = textPayTypeNo;
                    editForm.BrowseXtraGridView  = gridViewPayType;
                    editForm.CheckControl       += CheckControl;
                    editForm.ButtonList.Add(btnPayTypeList);
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #13
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmProjectUserAndTaskType()
        {
            InitializeComponent();

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "PM_ProjectTaskType";
                    editForm.TableCaption        = "项目任务类别";
                    editForm.Sql                 = string.Format("select * from PM_ProjectTaskType where ProjectNo = '{0}' order by AutoId", "");
                    editForm.PrimaryKeyColumn    = "AutoId";
                    editForm.MasterDataSet       = dSProjectTaskType;
                    editForm.MasterBindingSource = bSProjectTaskType;
                    editForm.MasterEditPanel     = pnlEditProjectTaskType;
                    editForm.BrowseXtraGridView  = gridViewProjectTaskType;
                    editForm.CheckControl       += CheckControl;
                    editForm.NewBefore          += NewBefore;
                    this.pnlToolBarProjectTaskType.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #14
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmRight_MenuManagement_Load(object sender, EventArgs e)
        {
            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle = FormBorderStyle.None;
                    editForm.TopLevel        = false;
                    editForm.TableName       = "BS_Menu";
                    editForm.TableCaption    = "主菜单管理";
                    editForm.Sql             = "select BS_Menu.*, menu.MenuText as ParentMenuText from BS_Menu left join BS_Menu as menu on BS_Menu.ParentMenuName = menu.MenuName order by BS_Menu.MenuOrder, BS_Menu.AutoId";
                    //必须按照MenuOrder,AutoId进行排序,否则树显示的顺序不准确
                    editForm.PrimaryKeyColumn    = "MenuName";
                    editForm.MasterDataSet       = dSMenu;
                    editForm.MasterBindingSource = bSMenu;
                    editForm.MasterEditPanel     = pnlEdit;
                    //editForm.PrimaryKeyControl = textMenuText;
                    editForm.BrowseXtraGridView = gridViewMenu;
                    editForm.CheckControl      += CheckControl;
                    editForm.QueryDataAfter    += QueryDataAfter;
                    editForm.SaveRowBefore     += SaveRowBefore;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();

                    lookUpFormName.Properties.DataSource       = FrmRightBLL.InitFormNameDataTable();
                    searchParentMenuName.Properties.DataSource = FrmRightDAO.QueryMenuList();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Example #15
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmBrandCatg()
        {
            InitializeComponent();
            PSAP.BLL.BSBLL.BSBLL.language(this);

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "SW_BrandCatg";
                    editForm.TableCaption        = "品牌信息";
                    editForm.Sql                 = "select * from SW_BrandCatg order by AutoId";
                    editForm.PrimaryKeyColumn    = "BrandNo";
                    editForm.MasterDataSet       = dSBrandCatg;
                    editForm.MasterBindingSource = bSBrandCatg;
                    editForm.MasterEditPanel     = pnlEdit;
                    editForm.PrimaryKeyControl   = textBrandNo;
                    editForm.BrowseXtraGridView  = gridViewBrandCatg;
                    editForm.CheckControl       += CheckControl;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #16
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmProjectList_Load(object sender, EventArgs e)
        {
            try
            {
                searchLookUpBussinessBaseNo.Properties.DataSource = commonDAO.QueryBussinessBaseInfo(false);

                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle      = FormBorderStyle.None;
                    editForm.TopLevel             = false;
                    editForm.TableName            = "BS_ProjectList";
                    editForm.TableCaption         = "项目号";
                    editForm.Sql                  = "select BS_ProjectList.*, BS_BussinessBaseInfo.BussinessBaseText from BS_ProjectList left join BS_BussinessBaseInfo on BS_ProjectList.BussinessBaseNo=BS_BussinessBaseInfo.BussinessBaseNo order by BS_ProjectList.AutoId";
                    editForm.PrimaryKeyColumn     = "ProjectNo";
                    editForm.MasterDataSet        = dSProjectList;
                    editForm.MasterBindingSource  = bSProjectList;
                    editForm.MasterEditPanel      = pnlEdit;
                    editForm.PrimaryKeyControl    = textProjectNo;
                    editForm.OtherNoChangeControl = new List <Control>()
                    {
                        textProjectName
                    };
                    editForm.BrowseXtraGridView = gridViewProjectList;
                    editForm.CheckControl      += CheckControl;
                    editForm.ButtonList.Add(btnStnList);
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();

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

                    this.dockPanelStn.Text    = stnList.Text;
                    this.dockPanelStn.TabText = stnList.Text;
                    this.dockPanelStn.Controls.Add(stnList);
                }
            }
            catch (Exception ex)
            {
                //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
                ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
            }
        }
Example #17
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmPartsCode()
        {
            InitializeComponent();
            PSAP.BLL.BSBLL.BSBLL.language(this);

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle = FormBorderStyle.None;
                    editForm.TopLevel        = false;
                    editForm.TableName       = "SW_PartsCode";
                    editForm.TableCaption    = "物料信息";
                    //editForm.Sql = "select * from SW_PartsCode order by AutoId";

                    if (codeFileNameStr == "")
                    {
                        editForm.Sql = pcDAO.GetQueryPartsCodeSQL_Standard();
                    }
                    else
                    {
                        editForm.Sql = pcDAO.GetQueryPartsCodeSQL_CodeFileName(codeFileNameStr);
                    }
                    editForm.PrimaryKeyColumn     = "AutoId";
                    editForm.MasterDataSet        = dSPartsCode;
                    editForm.MasterBindingSource  = bSPartsCode;
                    editForm.MasterEditPanel      = pnlEdit;
                    editForm.PrimaryKeyControl    = textCodeFileName;
                    editForm.BrowseXtraGridView   = gridViewPartsCode;
                    editForm.VisibleSearchControl = false;
                    editForm.ButtonList.Add(btnFind);
                    editForm.ButtonList.Add(btnMultiUpdate);
                    editForm.CheckControl += CheckControl;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #18
0
        public FrmProjectPlanTask()
        {
            InitializeComponent();

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle      = FormBorderStyle.None;
                    editForm.VisibleSearchControl = false;
                    editForm.TopLevel             = false;
                    editForm.DeleteAfterRefresh   = true;
                    editForm.TableName            = "PM_ProjectPlanTask";
                    editForm.TableCaption         = "项目计划任务";
                    editForm.Sql = planTaskDAO.QueryProjectPlanTask_SQL("");
                    editForm.PrimaryKeyColumn    = "AutoId";
                    editForm.MasterDataSet       = dSProjectPlanTask;
                    editForm.MasterBindingSource = bSProjectPlanTask;
                    editForm.MasterEditPanel     = pnlEditPlanTask;
                    //editForm.BrowseXtraGridView = gridViewPlanTask;
                    editForm.btnSaveExcel.Click  -= editForm.btnSaveExcel_Click;
                    editForm.btnSaveExcel.Click  += btnSaveExcel_Click_New;
                    editForm.CheckControl        += CheckControl;
                    editForm.NewBefore           += NewBefore;
                    editForm.AlterBefore         += AlterBefore;
                    editForm.SaveRowBefore       += SaveRowBefore;
                    editForm.DeleteRowBefore     += DeleteRowBefore;
                    editForm.QueryDataAfter      += QueryDataAfter;
                    editForm.CancelAfter         += CancelAfter;
                    editForm.OtherNoChangeControl = new List <Control>()
                    {
                        textPlanTaskStatus, lookUpCreator, textCreateTime
                    };
                    this.pnlToolBarPlanTask.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #19
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmBussinessInfo_New()
        {
            InitializeComponent();
            PSAP.BLL.BSBLL.BSBLL.language(f);
            PSAP.BLL.BSBLL.BSBLL.language(this);

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle           = FormBorderStyle.None;
                    editForm.TopLevel                  = false;
                    editForm.TableName                 = "BS_BussinessBaseInfo";
                    editForm.TableCaption              = "往来方信息";
                    editForm.Sql                       = "select BS_BussinessBaseInfo.*, BS_BussinessCategory.BussinessCategoryText from BS_BussinessBaseInfo left join BS_BussinessCategory on BS_BussinessBaseInfo.BussinessCategory = BS_BussinessCategory.BussinessCategory Order by BS_BussinessBaseInfo.AutoId";
                    editForm.PrimaryKeyColumn          = "BussinessBaseNo";
                    editForm.MasterDataSet             = dSBussiness;
                    editForm.MasterBindingSource       = bSBaseInfo;
                    editForm.MasterEditPanel           = pnlEdit;
                    editForm.PrimaryKeyControl         = textBussinessBaseNo;
                    editForm.BrowseXtraGridView        = gridViewBaseInfo;
                    editForm.RowStateUnchangedIsSave   = true;
                    editForm.MasterEditPanelAddControl = new List <Control>()
                    {
                        textContact, textCompanyLR, textCompanyAddress, textZipCode, textPhoneNo, textFaxNo, textE_mail, textWebSite, lookUpCountryCode, textBussinessLicense, textBankAccout, textBankAddress
                    };
                    editForm.CheckControl    += CheckControl;
                    editForm.NewAfter        += NewAfter;
                    editForm.SaveRowAfter    += SaveRowAfter;
                    editForm.CancelAfter     += QueryDataAfter;
                    editForm.QueryDataAfter  += QueryDataAfter;
                    editForm.DeleteRowBefore += DeleteRowBefore;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #20
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmBussinessInfo_New_Load(object sender, EventArgs e)
        {
            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle           = FormBorderStyle.None;
                    editForm.TopLevel                  = false;
                    editForm.TableName                 = "BS_BussinessBaseInfo";
                    editForm.TableCaption              = "往来方信息";
                    editForm.Sql                       = "select BS_BussinessBaseInfo.*, BS_BussinessCategory.BussinessCategoryText from BS_BussinessBaseInfo left join BS_BussinessCategory on BS_BussinessBaseInfo.BussinessCategory = BS_BussinessCategory.BussinessCategory Order by BS_BussinessBaseInfo.AutoId";
                    editForm.PrimaryKeyColumn          = "BussinessBaseNo";
                    editForm.MasterDataSet             = dSBussiness;
                    editForm.MasterBindingSource       = bSBaseInfo;
                    editForm.MasterEditPanel           = pnlEdit;
                    editForm.PrimaryKeyControl         = textBussinessBaseNo;
                    editForm.BrowseXtraGridView        = gridViewBaseInfo;
                    editForm.RowStateUnchangedIsSave   = true;
                    editForm.MasterEditPanelAddControl = new List <Control>()
                    {
                        textContact, textCompanyLR, textCompanyAddress, textZipCode, textPhoneNo, textFaxNo, textE_mail, textWebSite, lookUpCountryCode, textBussinessLicense, textBankAccout, textBankAddress
                    };
                    editForm.CheckControl    += CheckControl;
                    editForm.NewAfter        += NewAfter;
                    editForm.SaveRowAfter    += SaveRowAfter;
                    editForm.CancelAfter     += QueryDataAfter;
                    editForm.QueryDataAfter  += QueryDataAfter;
                    editForm.DeleteRowBefore += DeleteRowBefore;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();

                    lookUpBussinessCategory.Properties.DataSource = bussDAO.QueryBussinessCategory(false);
                    lookUpCountryCode.Properties.DataSource       = bussDAO.QueryCountryCode(false);
                }
            }
            catch (Exception ex)
            {
                //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
                ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
            }
        }
Example #21
0
        public FrmStnList(string pNoStr, string pNameStr)
        {
            InitializeComponent();
            projectNoStr = pNoStr;
            PSAP.BLL.BSBLL.BSBLL.language(f);
            PSAP.BLL.BSBLL.BSBLL.language(this);
            //this.Text = string.Format("项目【{0}】的站号信息", pNameStr);
            this.Text = string.Format(tsmiXm.Text + "【{0}】" + tsmiDzhxx.Text, pNameStr);

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle = FormBorderStyle.None;
                    editForm.TopLevel        = false;
                    editForm.TableName       = "BS_StnList";
                    editForm.TableCaption    = "站号";
                    SetEditFormSQL();
                    editForm.PrimaryKeyColumn     = "AutoID";
                    editForm.MasterDataSet        = dSStnList;
                    editForm.MasterBindingSource  = bSStnList;
                    editForm.MasterEditPanel      = pnlEdit;
                    editForm.PrimaryKeyControl    = textStnNo;
                    editForm.OtherNoChangeControl = new List <Control>()
                    {
                        searchLookUpProjectNo
                    };
                    editForm.BrowseXtraGridView   = gridViewStnList;
                    editForm.CheckControl        += CheckControl;
                    editForm.VisibleSearchControl = false;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #22
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmRight_Role()
        {
            InitializeComponent();
            PSAP.BLL.BSBLL.BSBLL.language(this);
            PSAP.BLL.BSBLL.BSBLL.language(f);

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle           = FormBorderStyle.None;
                    editForm.TopLevel                  = false;
                    editForm.TableName                 = "BS_Role";
                    editForm.TableCaption              = "角色权限管理";
                    editForm.Sql                       = "select * from BS_Role Order by AutoId";
                    editForm.PrimaryKeyColumn          = "RoleNo";
                    editForm.MasterDataSet             = dSRole;
                    editForm.MasterBindingSource       = bSRole;
                    editForm.MasterEditPanel           = pnlEdit;
                    editForm.PrimaryKeyControl         = textRoleNo;
                    editForm.MasterEditPanelAddControl = new List <Control>()
                    {
                        treeListRole
                    };
                    editForm.BrowseXtraGridView      = gridViewRole;
                    editForm.RowStateUnchangedIsSave = true;
                    editForm.CheckControl           += CheckControl;
                    editForm.QueryDataAfter         += QueryDataAfter;
                    editForm.CancelAfter            += QueryDataAfter;
                    editForm.SaveRowAfter           += SaveRowAfter;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #23
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmApprovalList_Load(object sender, EventArgs e)
        {
            try
            {
                FrmCommonDAO commonDAO = new FrmCommonDAO();
                repItemLookUpTypeNo.DataSource   = commonDAO.QueryApprovalType(false);
                repItemLookUpApprover.DataSource = commonDAO.QueryUserInfo(false);

                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "PUR_ApprovalList";
                    editForm.TableCaption        = "审批信息设置";
                    editForm.Sql                 = string.Format("select * from PUR_ApprovalList where typeNo='{0}' Order by AppSequence", TypeNoStr);
                    editForm.PrimaryKeyColumn    = "AutoId";
                    editForm.MasterDataSet       = dSApprovalList;
                    editForm.MasterBindingSource = bSApprovalList;
                    //editForm.MasterEditPanel = pnlEdit;
                    editForm.BrowseXtraGridView = gridViewApprovalList;
                    editForm.CheckControl      += CheckControl;
                    editForm.SaveRowBefore     += SaveRowBefore;
                    editForm.DeleteRowBefore   += DeleteRowBefore;
                    editForm.ButtonList.Add(btnUp);
                    editForm.ButtonList.Add(btnDown);
                    editForm.DeleteAfterRefresh = true;
                    //editForm.btnSaveExcel.Visible = false;
                    editForm.VisibleSearchContrl = false;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
                ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
            }
        }
Example #24
0
        public FrmApprovalList(string typeNo, string typeNoText)
        {
            InitializeComponent();
            TypeNoStr = typeNo;
            //this.Text = string.Format("审批类型【{0}】的信息设置", typeNoText);
            this.Text = string.Format(tsmiSplx.Text + "【{0}】" + tsmiDxxsz.Text, typeNoText);

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "PUR_ApprovalList";
                    editForm.TableCaption        = "审批信息设置";
                    editForm.Sql                 = string.Format("select * from PUR_ApprovalList where typeNo='{0}' Order by AppSequence", TypeNoStr);
                    editForm.PrimaryKeyColumn    = "AutoId";
                    editForm.MasterDataSet       = dSApprovalList;
                    editForm.MasterBindingSource = bSApprovalList;
                    //editForm.MasterEditPanel = pnlEdit;
                    editForm.BrowseXtraGridView = gridViewApprovalList;
                    editForm.CheckControl      += CheckControl;
                    editForm.SaveRowBefore     += SaveRowBefore;
                    editForm.DeleteRowBefore   += DeleteRowBefore;
                    editForm.ButtonList.Add(btnUp);
                    editForm.ButtonList.Add(btnDown);
                    editForm.DeleteAfterRefresh = true;
                    //editForm.btnSaveExcel.Visible = false;
                    editForm.VisibleSearchControl = false;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #25
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmRight_Role_Load(object sender, EventArgs e)
        {
            try
            {
                if (editForm == null)
                {
                    QueryMenuTreeList();

                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle           = FormBorderStyle.None;
                    editForm.TopLevel                  = false;
                    editForm.TableName                 = "BS_Role";
                    editForm.TableCaption              = "角色权限管理";
                    editForm.Sql                       = "select * from BS_Role Order by AutoId";
                    editForm.PrimaryKeyColumn          = "RoleNo";
                    editForm.MasterDataSet             = dSRole;
                    editForm.MasterBindingSource       = bSRole;
                    editForm.MasterEditPanel           = pnlEdit;
                    editForm.PrimaryKeyControl         = textRoleNo;
                    editForm.MasterEditPanelAddControl = new List <Control>()
                    {
                        treeListRole
                    };
                    editForm.BrowseXtraGridView      = gridViewRole;
                    editForm.RowStateUnchangedIsSave = true;
                    editForm.CheckControl           += CheckControl;
                    editForm.QueryDataAfter         += QueryDataAfter;
                    editForm.CancelAfter            += QueryDataAfter;
                    editForm.SaveRowAfter           += SaveRowAfter;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
                ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
            }
        }
Example #26
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmProjectList()
        {
            InitializeComponent();
            PSAP.BLL.BSBLL.BSBLL.language(f);
            PSAP.BLL.BSBLL.BSBLL.language(this);

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.DataRowInsertBottom = false;
                    editForm.TableName           = "BS_ProjectList";
                    editForm.TableCaption        = "项目号";
                    editForm.Sql = "select BS_ProjectList.*, BS_BussinessBaseInfo.BussinessBaseText from BS_ProjectList left join BS_BussinessBaseInfo on BS_ProjectList.BussinessBaseNo=BS_BussinessBaseInfo.BussinessBaseNo order by BS_ProjectList.AutoId desc";
                    editForm.PrimaryKeyColumn     = "ProjectNo";
                    editForm.MasterDataSet        = dSProjectList;
                    editForm.MasterBindingSource  = bSProjectList;
                    editForm.MasterEditPanel      = pnlEdit;
                    editForm.PrimaryKeyControl    = textProjectNo;
                    editForm.OtherNoChangeControl = new List <Control>()
                    {
                        textProjectName
                    };
                    editForm.BrowseXtraGridView = gridViewProjectList;
                    editForm.CheckControl      += CheckControl;
                    editForm.ButtonList.Add(btnStnList);
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }
Example #27
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmPartsCode_Load(object sender, EventArgs e)
        {
            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle     = FormBorderStyle.None;
                    editForm.TopLevel            = false;
                    editForm.TableName           = "SW_PartsCode";
                    editForm.TableCaption        = "物料信息";
                    editForm.Sql                 = "select * from SW_PartsCode order by AutoId";
                    editForm.PrimaryKeyColumn    = "AutoId";
                    editForm.MasterDataSet       = dSPartsCode;
                    editForm.MasterBindingSource = bSPartsCode;
                    editForm.MasterEditPanel     = pnlEdit;
                    editForm.PrimaryKeyControl   = textCodeFileName;
                    editForm.BrowseXtraGridView  = gridViewPartsCode;
                    editForm.CheckControl       += CheckControl;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();

                    searchLookUpMaterial.Properties.DataSource = commonDAO.QueryMaterialSelectLib(false);
                    lookUpCatgName.Properties.DataSource       = commonDAO.QueryPartNoCatg(false);
                    lookUpBrand.Properties.DataSource          = commonDAO.QueryBrandCatg(false);
                    lookUpFinish.Properties.DataSource         = commonDAO.QueryFinishCatg(false);
                    lookUpMachiningLevel.Properties.DataSource = commonDAO.QueryLevelCatg(false);
                    lookUpUnit.Properties.DataSource           = commonDAO.QueryUnitCatg(false);
                }
            }
            catch (Exception ex)
            {
                //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
                ExceptionHandler.HandleException(this.Text + "--" + tsmiCtjzsj.Text, ex);
            }
        }
Example #28
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmStnList_Load(object sender, EventArgs e)
        {
            try
            {
                searchLookUpProjectNo.Properties.DataSource = commonDAO.QueryProjectList(false);

                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle = FormBorderStyle.None;
                    editForm.TopLevel        = false;
                    editForm.TableName       = "BS_StnList";
                    editForm.TableCaption    = "站号";
                    SetEditFormSQL();
                    editForm.PrimaryKeyColumn     = "AutoID";
                    editForm.MasterDataSet        = dSStnList;
                    editForm.MasterBindingSource  = bSStnList;
                    editForm.MasterEditPanel      = pnlEdit;
                    editForm.PrimaryKeyControl    = textStnNo;
                    editForm.OtherNoChangeControl = new List <Control>()
                    {
                        searchLookUpProjectNo
                    };
                    editForm.BrowseXtraGridView = gridViewStnList;
                    editForm.CheckControl      += CheckControl;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
                ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
            }
        }
Example #29
0
        /// <summary>
        /// 窗体构造函数
        /// </summary>
        public FrmRight_MenuManagement()
        {
            InitializeComponent();
            PSAP.BLL.BSBLL.BSBLL.language(this);

            try
            {
                if (editForm == null)
                {
                    editForm = new FrmBaseEdit();
                    editForm.FormBorderStyle = FormBorderStyle.None;
                    editForm.TopLevel        = false;
                    editForm.TableName       = "BS_Menu";
                    editForm.TableCaption    = "主菜单管理";
                    editForm.Sql             = "select BS_Menu.*, menu.MenuText as ParentMenuText from BS_Menu left join BS_Menu as menu on BS_Menu.ParentMenuName = menu.MenuName order by BS_Menu.MenuOrder, BS_Menu.AutoId";
                    //必须按照MenuOrder,AutoId进行排序,否则树显示的顺序不准确
                    editForm.PrimaryKeyColumn    = "MenuName";
                    editForm.MasterDataSet       = dSMenu;
                    editForm.MasterBindingSource = bSMenu;
                    editForm.MasterEditPanel     = pnlEdit;
                    //editForm.PrimaryKeyControl = textMenuText;
                    editForm.RefreshToSetPosition = true;
                    editForm.BrowseXtraGridView   = gridViewMenu;
                    editForm.CheckControl        += CheckControl;
                    editForm.QueryDataAfter      += QueryDataAfter;
                    editForm.SaveRowBefore       += SaveRowBefore;
                    this.pnlToolBar.Controls.Add(editForm);
                    editForm.Dock = DockStyle.Fill;
                    editForm.Show();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体构造函数错误。", ex);
            }
        }