Exemplo n.º 1
0
        protected void ddlEmpresa_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddlEmpresa.SelectedValue == null)
            {
                return;
            }

            if (ddlEmpresa.SelectedValue.ToString() == "-1")
            {
                ddlProtocolo.SelectedValue = "-1";
                ddlProtocolo.Enabled       = false;
                return;
            }

            ddlProtocolo.Enabled = true;

            OperationResult objOperationResult = new OperationResult();

            var id3 = ddlEmpresa.SelectedValue.ToString().Split('|');

            //Utils.LoadDropDownList(ddlEsoType, "Value1", "Id", BLL.Utils.GetSystemParameterForCombo(ref objOperationResult, 118, null), DropDownListAction.All);
            //Utils.LoadDropDownList(ddlProtocolId, "Value1", "Id", BLL.Utils.GetProtocolsByOrganizationForCombo(ref objOperationResult, id3[0], id3[1], null), DropDownListAction.All);
            Utils.LoadDropDownList(ddlProtocolo, "Value1", "Id", _objSystemParameterBL.GetProtocolsByOrganizationForCombo(ref objOperationResult, id3[0], id3[1], null), DropDownListAction.All);
        }