Esempio n. 1
0
 private MnjTipoCuenta()
 {
     InitializeComponent();
     entities = ConnectionDB.getInstance().getEntities();
     loadAccountTypes("");
     managePermission();
 }
Esempio n. 2
0
 private MnjCuentaContable()
 {
     InitializeComponent();
     entities = ConnectionDB.getInstance().getEntities();
     loadCountablesAccounts("");
     managePermission();
 }
Esempio n. 3
0
 private MnjTipoMoneda()
 {
     InitializeComponent();
     entities = ConnectionDB.getInstance().getEntities();
     loadCurrenciesTypes("");
     managePermission();
 }
 private MnjEntradaContable()
 {
     InitializeComponent();
     entities = ConnectionDB.getInstance().getEntities();
     loadPlacements("");
     managePermission();
 }
 public Parametro()
 {
     InitializeComponent();
     entities = ConnectionDB.getInstance().getEntities();
     try
     {
         parameter = entities.parameters.First();
     } catch (Exception e) {
         parameter = null;
     }
     loadParamater();
 }
Esempio n. 6
0
        public Usuario()
        {
            InitializeComponent();
            entities   = ConnectionDB.getInstance().getEntities();
            userLevels = new List <UserLevel>()
            {
                new UserLevel {
                    name = "Administrador", value = 1
                },
                new UserLevel {
                    name = "Normal", value = 3
                }
            };
            cbLevel.DataSource = userLevels;

            cbLevel.DisplayMember = "name";
        }
Esempio n. 7
0
        public Reporte()
        {
            InitializeComponent();
            entities = ConnectionDB.getInstance().getEntities();

            List <countables_accounts> accounts = entities.countables_accounts.ToList();

            accounts.Insert(0, new countables_accounts {
                description = "---- Todas ----"
            });
            cbAccounts.DataSource    = accounts;
            cbAccounts.DisplayMember = "description";

            parameter          = entities.parameters.First();
            lblRnc.Text        = parameter.rnc;
            lblCloseMonth.Text = new DateTime(2010, parameter.month_close, 5).ToString("MMMM");
            lblMonth.Text      = new DateTime(2010, parameter.month, 5).ToString("MMMM");
            lblYear.Text       = parameter.year.ToString();
        }
        private EntradaContable()
        {
            InitializeComponent();
            entities  = ConnectionDB.getInstance().getEntities();
            movements = new List <placements_movements>();

            accounts = (from em in entities.countables_accounts
                        where em.allow_transaction == true && em.state == true
                        select em).ToList();

            cbAccount.DataSource = accounts;

            cbAccount.DisplayMember = "description";

            currencies = (from em in entities.currencies_types
                          where em.state == true
                          select em).ToList();

            cbCurrency.DataSource = currencies;

            cbCurrency.DisplayMember = "description";

            cbMovementType.DataSource = new string[] { "DB", "CR" };
        }
 private IniciarSesion()
 {
     InitializeComponent();
     entities = ConnectionDB.getInstance().getEntities();
 }
 private CuentaContable()
 {
     InitializeComponent();
     entities = ConnectionDB.getInstance().getEntities();
     initialize();
 }
Esempio n. 11
0
 private Contabilidad()
 {
     InitializeComponent();
     entities = ConnectionDB.getInstance().getEntities();
 }
Esempio n. 12
0
 public void resetConnection()
 {
     entities.Dispose();
     entities = new ContabilidadEntities();
 }
Esempio n. 13
0
 private ConnectionDB()
 {
     entities = new ContabilidadEntities();
 }
Esempio n. 14
0
 private MnjUsers()
 {
     InitializeComponent();
     entities = ConnectionDB.getInstance().getEntities();
     loadUsers("");
 }