protected void btnSave_Click(object sender, EventArgs e) { companyManager = new CompanyManager(this); companyConfigurationUpdated = new CompanyConfiguration(); companyConfigurationUpdated.CopyPropertiesFrom(Company.CompanyConfiguration); companyConfigurationUpdated.PrinterFooter = txtPrinterFooter.Text; companyManager.UpdateCompanyConfiguration(Company.CompanyConfiguration, companyConfigurationUpdated); }
protected void btnSave_Click(object sender, EventArgs e) { companyManager = new CompanyManager(this); companyConfigurationUpdated = new CompanyConfiguration(); companyConfigurationUpdated.CopyPropertiesFrom(Company.CompanyConfiguration); companyConfigurationUpdated.ContractAdditionalValue1Name = txtContractAdicionalValue1Name.Text; companyConfigurationUpdated.ContractAdditionalValue2Name = txtContractAdicionalValue2Name.Text; companyConfigurationUpdated.ContractAdditionalValue3Name = txtContractAdicionalValue3Name.Text; companyConfigurationUpdated.ContractAdditionalValue4Name = txtContractAdicionalValue4Name.Text; companyConfigurationUpdated.ContractAdditionalValue5Name = txtContractAdicionalValue5Name.Text; companyManager.UpdateCompanyConfiguration(Company.CompanyConfiguration, companyConfigurationUpdated); }
protected void btnSave_Click(object sender, EventArgs e) { companyConfigurationUpdated = new CompanyConfiguration(); companyManager = new CompanyManager(this); companyConfigurationUpdated.CopyPropertiesFrom(Company.CompanyConfiguration); companyConfigurationUpdated.ReportFooter = txtFooter.Value; companyConfigurationUpdated.ReportHeader = txtHeader.Value; companyConfigurationUpdated.ReportMarginTop = txtReportUp.Text; companyConfigurationUpdated.ReportMarginRight = txtReportRight.Text; companyConfigurationUpdated.ReportMarginLeft = txtReportLeft.Text; companyConfigurationUpdated.ReportMargimBottom = txtReportBottom.Text; companyManager.UpdateCompanyConfiguration(Company.CompanyConfiguration, companyConfigurationUpdated); }
protected void btnSave_Click(object sender, EventArgs e) { companyManager = new CompanyManager(this); companyConfigurationUpdated = new CompanyConfiguration(); companyConfigurationUpdated.CopyPropertiesFrom(Company.CompanyConfiguration); companyConfigurationUpdated.UnitPrice1Name = txtUnitPrice1Name.Text; companyConfigurationUpdated.UnitPrice2Name = txtUnitPrice2Name.Text; companyConfigurationUpdated.UnitPrice3Name = txtUnitPrice3Name.Text; companyConfigurationUpdated.UnitPrice4Name = txtUnitPrice4Name.Text; companyConfigurationUpdated.UnitPrice5Name = txtUnitPrice5Name.Text; companyManager.UpdateCompanyConfiguration(Company.CompanyConfiguration, companyConfigurationUpdated); }
protected void btnSave_Click(object sender, EventArgs e) { companyManager = new CompanyManager(this); companyConfigurationUpdated = new CompanyConfiguration(); companyConfigurationUpdated.CopyPropertiesFrom(Company.CompanyConfiguration); string file = txtImageUpload.PostedFile.FileName; string fileExtension = Path.GetExtension(file); companyConfigurationUpdated.WelcomeText = txtWelcomeText.Value; if (fileExtension.ToUpper() != ".GIF" && fileExtension.ToUpper() != ".JPG" && fileExtension.ToUpper() != ".PNG") companyConfigurationUpdated.Logo = Company.CompanyConfiguration.Logo; else companyConfigurationUpdated.Logo = resizeImage(txtImageUpload, 183, 51); companyManager.UpdateCompanyConfiguration(Company.CompanyConfiguration, companyConfigurationUpdated); }