예제 #1
0
 public FrmWorkstationItem(FrmWorkstation frmWorkstation,int workstationId,bool update)
 {
     InitializeComponent();
     this.frmWorkstation = frmWorkstation;
     this.workstationId = workstationId;
     this.update = update;
 }
예제 #2
0
        public FrmWorkstationItem(FrmWorkstation frmWorkstation,int workstationId,bool update)
        {
            InitializeComponent();
            this.frmWorkstation = frmWorkstation;
            this.workstationId = workstationId;
            this.update = update;

            // Set default Button
            AcceptButton = cmdSave;
            CancelButton = cmdExit;
            // Load Area
            DataView dv = BArea.RetrieveAll().Tables[0].DefaultView;
            cboArea.DataSource = dv;
            cboArea.ValueMember = "AREA_ID";
            cboArea.DisplayMember = "NAME";
        }
예제 #3
0
        /// <summary>
        /// @author:khoaht
        /// @createdate:5/2008
        /// </summary>
        /// <param name="formId"></param>
        /// <returns></returns>
        private CommonForm GetFormObject(int formId)
        {
            CommonForm frm = null;
            switch (formId)
            {
                case CONFIG.FORM_CUSTOMER:
                    frm = new FrmCustomer();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_CLIP:
                    frm = new FrmClip();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_WORKSTATION:
                    frm = new FrmWorkstation();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_WORKSTATION_STATUS:
                    frm = new FrmListWorkstationStatus();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_AREA:
                    frm = new FrmArea();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_SCHEDULE:
                    frm = new FrmSchedule();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_CSDL:
                    frm = new FrmDBConfigServer();
                    break;
                case CONFIG.FORM_ABOUT:
                    frm = new AboutAdvertise();
                    break;
                case CONFIG.FORM_CONFIG_PROPERTIES:
                    frm = new FrmConfigProperties();
                    break;
                    // REPORT FORM
                case   CONFIG.FORM_REPORT_CURRENCY:
                    frm = new FrmCurrencyReport();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_REPORT_WORKSTATION:
                    frm = new FrmRptWorkstatoinFree();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_REPORT_CUSTOMER:
                    frm = new FrmRptScheduleBillDetail();
                    frm.MdiParent = this;
                    break;

                     // Admin tool
                case CONFIG.FORM_ADMIN_GROUPS:
                    frm = new FrmGroup();
                    frm.MdiParent = this;
                    break;
                case CONFIG.FORM_ADMIN_USERS:
                    frm = new FrmUser();
                    frm.MdiParent = this;
                    break;
            }

            return frm;
        }