protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { OperationResult objOperationResult = new OperationResult(); DataHierarchyBL _objDataHierarchyBL = new DataHierarchyBL(); dpFechaInicio.SelectedDate = DateTime.Now.AddDays(-1); //DateTime.Parse("25/07/2014"); dpFechaFin.SelectedDate = DateTime.Now; // DateTime.Parse("25/07/2014"); var TipoUsuario = ((ClientSession)Session["objClientSession"]).i_SystemUserTypeId; if (TipoUsuario == 1) { Utils.LoadDropDownList(ddlCustomerOrganization, "Value1", "Id", oOrganizationBL.GetAllOrganizations(ref objOperationResult), DropDownListAction.All); } else { var RolId = ((ClientSession)Session["objClientSession"]).i_RoleId; if (RolId == 1) { var clientOrganization = oOrganizationBL.GetJoinOrganizationAndLocationALL(ref objOperationResult); Utils.LoadDropDownList(ddlCustomerOrganization, "Value1", "Id", clientOrganization, DropDownListAction.Select); } else { var clientOrganization = oOrganizationBL.GetJoinOrganizationAndLocation(ref objOperationResult, ((ClientSession)Session["objClientSession"]).i_SystemUserId); Utils.LoadDropDownList(ddlCustomerOrganization, "Value1", "Id", clientOrganization, DropDownListAction.Select); } } Utils.LoadDropDownList(ddlProtocolo, "Value1", "Id", oOrganizationBL.GetProtocolsByOrganizationForCombo(ref objOperationResult, "-1", "-1", null), DropDownListAction.Select); Utils.LoadDropDownList(ddlConsultorio, "Description", "Description2", _objDataHierarchyBL.GetDataHierarchyForCombo(ref objOperationResult, 124), DropDownListAction.Select); Utils.LoadDropDownList(ddlGrupoEtario, "Value1", "Id", BLL.Utils.GetSystemParameterForCombo(ref objOperationResult, 224, null), DropDownListAction.Select); Utils.LoadDropDownList(ddlGESO, "Value1", "Id", BLL.Utils.GetGESO(ref objOperationResult, null), DropDownListAction.Select); Utils.LoadDropDownList(ddlTipoESO, "Value1", "Id", _objSystemParameterBL.GetSystemParameterForCombo(ref objOperationResult, 118), DropDownListAction.Select); Utils.LoadDropDownList(ddlGenero, "Value1", "Id", _objSystemParameterBL.GetSystemParameterForCombo(ref objOperationResult, 100), DropDownListAction.Select); List <Sigesoft.Node.WinClient.BE.DiagnosticsByAgeGroup> l = new List <Sigesoft.Node.WinClient.BE.DiagnosticsByAgeGroup>(); } }