コード例 #1
0
ファイル: ClienteController.cs プロジェクト: lulzzz/ERPWEB
        private void cargar_combos(fa_cliente_Info info)
        {
            fa_NivelDescuento_Bus bus_nivel = new fa_NivelDescuento_Bus();
            var lst_nivel = bus_nivel.GetList(info.IdEmpresa, false);

            ViewBag.lst_nivel = lst_nivel;

            fa_formaPago_Bus bus_formapago = new fa_formaPago_Bus();
            var lst_formapago = bus_formapago.get_list(false);

            ViewBag.lst_formapago = lst_formapago;

            fa_cliente_tipo_Bus bus_clientetipo = new fa_cliente_tipo_Bus();
            var lst_clientetipo = bus_clientetipo.get_list(info.IdEmpresa, false);

            ViewBag.lst_clientetipo = lst_clientetipo;


            fa_TerminoPago_Bus bus_termino_pago = new fa_TerminoPago_Bus();
            var lst_termino_pago = bus_termino_pago.get_list(false);

            ViewBag.lst_termino_pago = lst_termino_pago;

            ct_plancta_Bus bus_plancta = new ct_plancta_Bus();
            var            lst_ctacble = bus_plancta.get_list(info.IdEmpresa, false, true);

            ViewBag.lst_cuentas = lst_ctacble;

            tb_Catalogo_Bus bus_catalogo = new tb_Catalogo_Bus();
            var             lst_tipo_doc = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoGeneral.TIPODOC), false);

            ViewBag.lst_tipo_doc = lst_tipo_doc;

            var lst_tipo_naturaleza = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoGeneral.TIPONATPER), false);

            ViewBag.lst_tipo_naturaleza = lst_tipo_naturaleza;

            tb_ciudad_Bus bus_ciudad = new tb_ciudad_Bus();
            var           lst_ciudad = bus_ciudad.get_list("", false);

            ViewBag.lst_ciudad = lst_ciudad;
        }