Beispiel #1
0
        protected void InitControls()
        {
            if (mvMainContent.ActiveViewIndex == 0)
            {
                VPBLL.Company.CompanyHelper helper = new VPBLL.Company.CompanyHelper();
                var companies = helper.getAllCompany();

                ddlCompanies.Items.Add(new ListItem("--", "-1"));
                foreach (var c in companies)
                {
                    ddlCompanies.Items.Add(new ListItem(String.Format("{0} {1}", c.CompanyCode, c.CompanyName), c.CompanyCode));
                }
            }
            else if (mvMainContent.ActiveViewIndex == 2)
            {
                btnDVDeactive.Enabled = false;
                lblDVErrorMessage.Visible = false;
                tabDVResult.Visible = false;
            }
            else if (mvMainContent.ActiveViewIndex == 3)
            {
                txtCOCompanies.Text = VPBLL.Config.getInstance().POFilterCompany;
            }
        }