Example #1
0
        public void ParametrosFactura()
        {
            try
            {
                List <fa_TipoNota_Info> lstTipoNota = new List <fa_TipoNota_Info>();
                string mensaje  = "";
                var    TipoMovi = BusMovi.Get_List_movi_inven_tipo(param.IdEmpresa);
                var    tipoCbte = BusPlan.Get_list_Cbtecble_tipo(param.IdEmpresa, Info.General.Cl_Enumeradores.eTipoFiltro.todos, ref MensajeError);

                cmbMoviInvenFactura.Properties.DataSource      = TipoMovi;
                cmbMoviInvenFactura_Anul.Properties.DataSource = TipoMovi;

                DEVcmbTipoMoviInv.Properties.DataSource    = TipoMovi;
                DEVcmbTipoMoviInvAnu.Properties.DataSource = TipoMovi;

                lstTipoNota = BusTipNot.Get_List_TipoNota(param.IdEmpresa);
                DEVcmbNCxDev.Properties.DataSource     = lstTipoNota;
                cmbTipoNC_x_Fact.Properties.DataSource = lstTipoNota;

                //haac 14/03/2014
                list_caja = Bus_caja.Get_list_caja(param.IdEmpresa, ref MensajeError);
                cmbCaja.Properties.DataSource = list_caja;

                ListaPlanAntList = bus_plan.Get_List_Plancta_x_ctas_Movimiento(param.IdEmpresa, ref MensajeError);
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }
Example #2
0
        public UCCxc_Parametros()
        {
            InitializeComponent();

            try
            {
                lstTipoNota = TipoNota_B.Get_List_TipoNota(param.IdEmpresa);
                gridLookUpEdit_tipoNotaD.Properties.DataSource = lstTipoNota.FindAll(c => c.Estado == "A" && c.Tipo == "D");


                gridLookUpEdit_caja.Properties.DataSource = Caja_B.Get_list_caja(param.IdEmpresa, ref MensajeError).FindAll(c => c.Estado == "A");

                lstMoviCaja = caja_B.Get_list_Caja_Movimiento_Tipo(param.IdEmpresa, Cl_Enumeradores.eTipo_Ing_Egr.INGRESOS, ref MensajeError);
                gridLookUpEdit_tipoMovCaja.Properties.DataSource = lstMoviCaja.FindAll(c => c.Estado == "A" && c.IngEgr == "Ingreso");
                lstCbte = busTipo.Get_list_Cbtecble_tipo(param.IdEmpresa, Cl_Enumeradores.eTipoFiltro.Normal, ref MensajeError);


                repositoryItemGridLookUpEdit_sucursal.DataSource = sucursal_B.Get_List_Sucursal(param.IdEmpresa).FindAll(c => c.Estado == true);

                CobroInfo = CobroBus.Get_List_Cobro_Tipo();
                gridLookUpEdit_TipoCobroTarjeta.Properties.DataSource = CobroInfo;
                gridLookUpEdit_TipoCobroDefault.Properties.DataSource = CobroInfo;
            }
            catch (Exception ex)
            {
                string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name;
                MessageBox.Show(NameMetodo + " - " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString());
            }
        }
Example #3
0
 private void load_TipoNota()
 {
     try
     {
         fa_TipoNota_Bus         bus_tiponota = new fa_TipoNota_Bus();
         List <fa_TipoNota_Info> lm           = new List <fa_TipoNota_Info>();
         lm = bus_tiponota.Get_List_TipoNota(param.IdEmpresa);
         //this.dgTipoNota.AutoGenerateColumns = false;
         this.gridControl.DataSource = lm;
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #4
0
 private void frmFa_TipoNotaPorSucursal_Load(object sender, EventArgs e)
 {
     try
     {
         List_Det = new BindingList <fa_TipoNota_x_Empresa_x_Sucursal_Info>();
         gridControl.DataSource            = List_Det;
         cmbTipoNota.Properties.DataSource = TipoNota_B.Get_List_TipoNota(param.IdEmpresa);
         cmbCuentaContable.DataSource      = PlnCta_B.Get_List_Plancta_x_ctas_Movimiento(param.IdEmpresa, ref MensajeError);
         LoadGrid();
     }
     catch (Exception ex)
     {
         string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name;
         NameMetodo = NameMetodo + " - " + ex.ToString();
         MessageBox.Show(NameMetodo + " " + param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas)
                         , param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
         Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString());
     }
 }