public LoginForm() { InitializeComponent(); dbPrendaSAL = new DBPRENDASAL(); dbUser = new DBUsuario(); dbSucursal = new DBSucursal(); }
public ConfirmarFinanc() { InitializeComponent(); dbUser = new DBUsuario(); dbFinanc = new MovCashController(); dbSucursal = new DBSucursal(); ACCION = eOperacion.INSERT; }
public AgregarSucursal() { InitializeComponent(); ACCION = eOperacion.INSERT; dbPrendasal = new DBPRENDASAL(); dbUser = new DBUsuario(); dbSucursal = new DBSucursal(); }
public ConfirmarFinanc(MovCash m) { InitializeComponent(); dbUser = new DBUsuario(); dbFinanc = new MovCashController(); dbSucursal = new DBSucursal(); ACCION = eOperacion.UPDATE; SELECTED = m; }
public SucursalesForm() { InitializeComponent(); dbUser = new DBUsuario(); dbSucursal = new DBSucursal(); tblSUCURSALES.AutoGenerateColumns = false; cargarSucursales(); permisos(); }
public AgregarSucursal(Sucursal SUCURSAL) { InitializeComponent(); ACCION = eOperacion.UPDATE; dbPrendasal = new DBPRENDASAL(); dbUser = new DBUsuario(); dbSucursal = new DBSucursal(); SELECTED = SUCURSAL; }
public HOME() { InitializeComponent(); this.Font = SystemFonts.IconTitleFont; SystemEvents.UserPreferenceChanged += new UserPreferenceChangedEventHandler(SystemEvents_UserPreferenceChanged); this.FormClosing += new FormClosingEventHandler(Form1_FormClosing); this.PerformAutoScale(); dbPrendaSAL = new DBPRENDASAL(); dbCatalogo = new DBCatalogo(); dbSucursal = new DBSucursal(); dbUser = new DBUsuario(); SISTEMA = Properties.Settings.Default.SISTEMA; }
public ConfigForm(bool init) { InitializeComponent(); dbSucursal = new DBSucursal(); INIT = init; }
private void RegistrarClienteForm_Load(object sender, EventArgs e) { dbPredasal = new DBPRENDASAL(); dbSucursal = new DBSucursal(); dbUser = new DBUsuario(); dbCliente = new DBCliente(); permisos_FORM(); dateINICIO.Enabled = false; cbxTIPODOC.DataSource = Enum.GetValues(new eTipoDocCliente().GetType()); DataTable deptos = dbPredasal.getDeptos(); if (deptos.Rows.Count > 0) { DataRow rowD = deptos.NewRow(); rowD.SetField<string>("DEPTO", "Seleccione Depto"); deptos.Rows.InsertAt(rowD, 0); } else { deptos.Columns.Add("DEPTO"); deptos.Rows.Add("Seleccione Depto"); } cbxDEPTO.DataSource = deptos; if (deptos.Rows.Count > 0) { cbxDEPTO.DisplayMember = "DEPTO"; cbxDEPTO.SelectedIndex = 0; } DataTable MUNI = dbPredasal.getMunicipios(null); if (MUNI.Rows.Count > 0) { DataRow rowM = MUNI.NewRow(); rowM.SetField<string>("COD_MUNICIPIO", "XXXX"); rowM.SetField<string>("MUNICIPIO", "-------"); MUNI.Rows.InsertAt(rowM, 0); } cbxEXT.DataSource = MUNI; if (MUNI.Rows.Count > 0) { cbxEXT.DisplayMember = "MUNICIPIO"; cbxEXT.ValueMember = "COD_MUNICIPIO"; cbxEXT.SelectedIndex = 0; } switch (ACCION) { case eOperacion.INSERT: txtCODIGO.Text = "N/A"; dateINICIO.Value = HOME.Instance().FECHA_SISTEMA; dateNAC.Value = HOME.Instance().FECHA_SISTEMA.AddYears(-18); break; case eOperacion.UPDATE: cargarCLIENTE(); break; } }