private MnjTipoCuenta() { InitializeComponent(); entities = ConnectionDB.getInstance().getEntities(); loadAccountTypes(""); managePermission(); }
private MnjCuentaContable() { InitializeComponent(); entities = ConnectionDB.getInstance().getEntities(); loadCountablesAccounts(""); managePermission(); }
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(); }
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"; }
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(); }
private Contabilidad() { InitializeComponent(); entities = ConnectionDB.getInstance().getEntities(); }
public void resetConnection() { entities.Dispose(); entities = new ContabilidadEntities(); }
private ConnectionDB() { entities = new ContabilidadEntities(); }
private MnjUsers() { InitializeComponent(); entities = ConnectionDB.getInstance().getEntities(); loadUsers(""); }