Example #1
0
        private void loadCombo()
        {
            ProtocolBL      oProtocolBL        = new ProtocolBL();
            OperationResult objOperationResult = new OperationResult();

            Utils.LoadDropDownList(ddlProtocoloId, "v_Name", "Id", oProtocolBL.DevolverProtocolosPorEmpresaOnly(Session["EmpresaClienteId"].ToString()), DropDownListAction.Select);
        }
        private void LoadComboBox()
        {
            OperationResult objOperationResult = new OperationResult();

            Utils.LoadDropDownList(ddlTipoESO, "Value1", "Id", _objSystemParameterBL.GetSystemParameterForCombo(ref objOperationResult, 118), DropDownListAction.All);

            Utils.LoadDropDownList(ddlEmpresa, "Value1", "Id", oOrganizationBL.GetAllOrganizations(ref objOperationResult), DropDownListAction.All);
            var o = _objProtocolBL.DevolverProtocolosPorEmpresaOnly("-1");

            Utils.LoadDropDownList(ddlProtocolo, "Value1", "Id", o, DropDownListAction.Select);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                OperationResult objOperationResult = new OperationResult();
                btnAgregar.OnClientClick            = winEdit.GetSaveStateReference(hfRefresh.ClientID) + winEdit.GetShowReference("FRM052.aspx");
                btnDescargarPlantilla.OnClientClick = Window1.GetSaveStateReference(hfRefresh.ClientID) + Window1.GetShowReference("FRM050B.aspx");
                dpFechaInicio.SelectedDate          = DateTime.Now;

                Utils.LoadDropDownList(ddlEmpresaCliente, "Value1", "Id", oOrganizationBL.GetAllOrganizations(ref objOperationResult), DropDownListAction.All);
                var o = oProtocolBL.DevolverProtocolosPorEmpresaOnly("-1");
                Utils.LoadDropDownList(ddlProtocoloId, "Value1", "Id", o, DropDownListAction.Select);
            }
        }