Example #1
0
 protected void LoadCompanyDetails()
 {
     BusinessLayer.Common.Company ObjCompany = new BusinessLayer.Common.Company();
     Entity.Common.Company        Company    = new Entity.Common.Company();
     Company = ObjCompany.GetAllById(CompanyId);
     if (Company != null)
     {
         txtCompanyName.Text          = Company.CompanyName;
         txtCompanyName.Enabled       = true;
         txtAlias.Text                = Company.CompanyAliasName;
         txtAddress.Text              = Company.CompanyAddress;
         txtPhone.Text                = Company.CompanyPhoneNo;
         txtFax.Text                  = Company.CompanyPhoneFax;
         txtEmail.Text                = Company.CompanyEmailId;
         txtPTaxNo.Text               = Company.CompanyPTax;
         txtTanNo.Text                = Company.CompanyTanNo;
         txtPFNo.Text                 = Company.CompanyPFNo;
         txtESINo.Text                = Company.CompanyESINo;
         txtCINNo.Text                = Company.CompanyCIN;
         txtVatRegnNo.Text            = Company.CompanyVATRegistrationNo;
         txtCSTRegnNo.Text            = Company.CompanyCSTRegistrationNo;
         txtSTRegnNo.Text             = Company.CompanySTRegistrationNo;
         txtWebsite.Text              = Company.CompanyWebsite;
         txtContactPerson.Text        = Company.CompanyContactPersonName;
         txtContactPersonNo.Text      = Company.CompanyContactPersonNo;
         ddlCompanyType.SelectedValue = Company.CompanyType;
         txtPANNo.Text                = Company.CompanyPANNo;
         Message.Show                 = false;
         btnSave.Text                 = "Update";
     }
 }
        private string GetCompanyType()
        {
            int CompanyId = Convert.ToInt32(Session["CompanyId"].ToString());

            BusinessLayer.Common.Company ObjCompany = new BusinessLayer.Common.Company();
            Entity.Common.Company        Company    = new Entity.Common.Company();
            Company = ObjCompany.GetAllById(CompanyId);
            if (Company != null)
            {
                return("/" + Company.CompanyType);
            }
            else
            {
                return("");
            }
        }