Ejemplo n.º 1
0
        private void PopulateControls()
        {
            CommonBLL commonBll = new CommonBLL();

            GeneralFunctions.PopulateDropDownList <IGroupCompany>(ddlGroup, commonBll.GetActiveGroupCompany(), "Id", "Name", true);
            GeneralFunctions.PopulateDropDownList <ILocation>(ddlLoc, commonBll.GetActiveLocation(), "Id", "Name", true);
            GeneralFunctions.PopulateDropDownList <ICustomerType>(ddlCustType, commonBll.GetActiveCustomerType(), "Id", "Name", true);

            GeneralFunctions.PopulateDropDownList <ILocation>(ddlLoc, commonBll.GetLocationByUser(_userId), "Id", "Name", true);
            GeneralFunctions.PopulateDropDownList <IUser>(ddlExecutive, commonBll.GetSalesExecutiveNew(_userId), "Id", "UserFullName", true);
            PopulateArea(0, string.Empty);
        }