Ejemplo n.º 1
0
        private void LoadCombos()
        {
            // Llenado de combos
            // Tipos de eso
            OperationResult objOperationResult = new OperationResult();

            Utils.LoadDropDownList(cbGeso, "Value1", "Id", _oSystemParameterBL.GetGESO(ref objOperationResult, null), DropDownListAction.Select);
            Utils.LoadDropDownList(cbEsoType, "Value1", "Id", _oSystemParameterBL.GetSystemParameterForCombo(ref objOperationResult, 118), DropDownListAction.Select);

            // Lista de empresas por nodo
            int             nodeId = 10;
            OperationResult objOperationResult1   = new OperationResult();
            var             dataListOrganization  = _oSystemParameterBL.GetJoinOrganizationAndLocation(ref objOperationResult1, nodeId);
            var             dataListOrganization1 = _oSystemParameterBL.GetJoinOrganizationAndLocation(ref objOperationResult1, nodeId);
            var             dataListOrganization2 = _oSystemParameterBL.GetJoinOrganizationAndLocation(ref objOperationResult1, nodeId);

            Utils.LoadDropDownList(cbOrganization,
                                   "Value1",
                                   "Id",
                                   dataListOrganization,
                                   DropDownListAction.Select);

            Utils.LoadDropDownList(cbIntermediaryOrganization,
                                   "Value1",
                                   "Id",
                                   dataListOrganization1,
                                   DropDownListAction.Select);

            Utils.LoadDropDownList(cbOrganizationInvoice,
                                   "Value1",
                                   "Id",
                                   dataListOrganization2,
                                   DropDownListAction.Select);

            //Llenado de los tipos de servicios [Emp/Part]
            Utils.LoadDropDownList(cbServiceType, "Value1", "Id", _oSystemParameterBL.GetSystemParameterByParentIdForCombo(ref objOperationResult, 119, -1, null), DropDownListAction.Select);
            // combo servicio
            Utils.LoadDropDownList(cbService, "Value1", "Id", _oSystemParameterBL.GetSystemParameterForCombo(ref objOperationResult, -1), DropDownListAction.Select);
        }