Esempio n. 1
0
 /// <summary>
 /// @author : TrungMT
 /// @CreateDate:04/03/2008
 /// @Description: Constrctor to add new Customer
 /// </summary>
 public FrmCustomerItem(FrmCustomer frmCustomer)
     : this()
 {
     mfrmCustomer = frmCustomer;
     mblnUpdate = false;
     this.Text = "Them moi khach hang";
 }
Esempio n. 2
0
 /// <summary>
 /// @author : TrungMT
 /// @CreateDate:04/03/2008
 /// @Description: Constrctor to update selected Customer
 /// </summary>
 public FrmCustomerItem(FrmCustomer frmCustomer, Customer pCustomer)
     : this()
 {
     mfrmCustomer = frmCustomer;
     mCustomer = pCustomer;
     //mOldCustomer = System.Clo
     mblnUpdate = true;
     this.Text = "Cap nhat khach hang";
 }
Esempio n. 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;
        }