예제 #1
0
        public void initData()
        {
            if (FrameworkParams.option == null)
            {
                FrameworkParams.option = new Option();
                FrameworkParams.option.load();
            }
            configOption = FrameworkParams.option;

            seRound.Value = HelpNumber.ParseInt32(configOption.round);
            rgSperactorThousand.SelectedIndex = (configOption.thousandSeparator.Equals(".") ? 0 : 1);
            rgSperactorDec.SelectedIndex = (configOption.decSeparator.Equals(".") ? 1 : 0);
            cbFormatDay.EditValue = configOption.dateFormat;
            cbFormatHour.EditValue = configOption.timeFormat;
            if (FrameworkParams.currentSkin!=null)
                cbSkin.Properties.Items.AddRange(FrameworkParams.currentSkin.arrSkinName);
            cbSkin.SelectedIndex = HelpNumber.ParseInt32(configOption.Skin);
            IsHomePage.EditValue = configOption._IsHomePage;
            IsMinMenu.EditValue = configOption._IsMinMenu;

            for (int i = 0; i < cbInstalledPrinters.Properties.Items.Count; i++)
            {
                if (cbInstalledPrinters.Properties.Items[i].ToString() == configOption.printerName)
                    cbInstalledPrinters.SelectedItem = configOption.printerName;
                else
                {
                    cbInstalledPrinters.Text = "";
                }
            }
        }
예제 #2
0
        public void initData()
        {
            if (FrameworkParams.option == null)
            {
                FrameworkParams.option = new Option();
                FrameworkParams.option.load();
            }
            configOption = FrameworkParams.option;

            seRound.Value = HelpNumber.ParseInt32(configOption.round);
            rgSperactorThousand.SelectedIndex = (configOption.thousandSeparator.Equals(".") ? 0 : 1);
            rgSperactorDec.SelectedIndex = (configOption.decSeparator.Equals(".") ? 1 : 0);
            cbFormatDay.EditValue = configOption.dateFormat;
            cbFormatHour.EditValue = configOption.timeFormat;
            if (FrameworkParams.currentSkin!=null)
                cbSkin.Properties.Items.AddRange(FrameworkParams.currentSkin.arrSkinName);
            cbSkin.SelectedIndex = HelpNumber.ParseInt32(configOption.Skin);

            for (int i = 0; i < cbInstalledPrinters.Properties.Items.Count; i++)
            {
                if (cbInstalledPrinters.Properties.Items[i].ToString() == configOption.printerName)
                    cbInstalledPrinters.SelectedItem = configOption.printerName;
                else
                {
                    cbInstalledPrinters.Text = "";
                }
            }

            this.suDungLanDau.Tag = typeof(frmFWRunFirst).FullName;
            if (UserForm.LoadCheckbox(typeof(frmFWRunFirst).FullName) == "Y")
                suDungLanDau.Checked = true;
            else
                suDungLanDau.Checked = false;

            this.xacNhanKhiThoat.Tag = typeof(frmFWRunExit).FullName;
            if (UserForm.LoadCheckbox(typeof(frmFWRunExit).FullName) == "Y")
                xacNhanKhiThoat.Checked = true;
            else
                xacNhanKhiThoat.Checked = false;
        }
예제 #3
0
 public void initData()
 {
     company = new CompanyInfo();
     company.load();
     this.txtCompanyName.Text = company.name;
     this.txtTradeName.Text = company.tradeName;
     this.txtRepresentative.Text = company.representative;
     this.mmeAddress.Text = company.address;
     this.txtPhone.Text = company.phone;
     this.txtFax.Text = company.fax;
     this.txtEmail.Text = company.email;
     this.txtWebsite.Text = company.website;
     this.txtAccountNo.Text = company.accountNo;
     this.txtBankName.Text = company.bankName;
     this.txtTaxCode.Text = company.taxCode;
     this.pictureEdit1.Image = CompanyInfo.displayImageLogo(company.logo);
     this.headerLetter.Image = CompanyInfo.displayImageLogo(company.headerletter);
     HelpImage.LoadImage(this.pictureEdit1, company.logo);
     HelpImage.LoadImage(this.headerLetter, company.headerletter);
     if (FrameworkParams.option==null){
         FrameworkParams.option = new Option();
         FrameworkParams.option.load();
     }
     configOption = FrameworkParams.option;
 }
예제 #4
0
        public ApplyFormatAction()
        {
            this.opt = FrameworkParams.option;

            Application.CurrentCulture = GetCultureInfo();
        }
예제 #5
0
        public void initData()
        {
            company = new CompanyInfo();
            company.load();
            this.txtCompanyName.Text = company.name;
            this.txtTradeName.Text = company.tradeName;
            this.txtRepresentative.Text = company.representative;
            this.mmeAddress.Text = company.address;
            this.txtPhone.Text = company.phone;
            this.txtFax.Text = company.fax;
            this.txtEmail.Text = company.email;
            this.txtWebsite.Text = company.website;
            this.txtAccountNo.Text = company.accountNo;
            this.txtBankName.Text = company.bankName;
            this.txtTaxCode.Text = company.taxCode;
            //this.pictureEdit1.Image = CompanyInfo.displayImageLogo(company.logo);
            HelpImage.LoadImage(this.pictureEdit1, company.logo);
            if (FrameworkParams.option==null){
                FrameworkParams.option = new Option();
                FrameworkParams.option.load();
            }
            configOption = FrameworkParams.option;

            seRound.Value = HelpNumber.ParseInt32(configOption.round);
            rgSperactorThousand.SelectedIndex = (configOption.thousandSeparator.Equals(".") ? 0 : 1);
            rgSperactorDec.SelectedIndex = (configOption.decSeparator.Equals(".") ? 1 : 0);
            cbFormatDay.EditValue = configOption.dateFormat;
            cbFormatHour.EditValue = configOption.timeFormat;
            cbSkin.SelectedIndex = HelpNumber.ParseInt32(configOption.Skin);

            for (int i = 0; i < cbInstalledPrinters.Properties.Items.Count ; i++)
            {
                if (cbInstalledPrinters.Properties.Items[i].ToString() == configOption.printerName)
                    cbInstalledPrinters.SelectedItem = configOption.printerName;
                else
                {
                    //cbInstalledPrinters.Text = "";
                }
            }
        }