public RInvResguardoForm()
 {
     InitializeComponent();
     dbPrendasal = new DBPRENDASAL();
     dbInventario = new InventarioController();
     dbCatalogo = new DBCatalogo();
 }
 public ClientesForm()
 {
     InitializeComponent();
     dbUser = new DBUsuario();
     dbCliente = new DBCliente();
     dbPrendasal = new DBPRENDASAL();
 }
Exemple #3
0
 public LoginForm()
 {
     InitializeComponent();
     dbPrendaSAL = new DBPRENDASAL();
     dbUser = new DBUsuario();
     dbSucursal = new DBSucursal();
 }
 public ClienteAmigoForm()
 {
     InitializeComponent();
     dbUser = new DBUsuario();
     dbTarjeta = new DBTarjeta();
     dbCliente = new DBCliente();
     dbPrendasal = new DBPRENDASAL();
 }
 public AgregarSucursal()
 {
     InitializeComponent();
     ACCION = eOperacion.INSERT;
     dbPrendasal = new DBPRENDASAL();
     dbUser = new DBUsuario();
     dbSucursal = new DBSucursal();
 }
 public ItemInicial()
 {
     InitializeComponent();
     ACCION = eOperacion.INSERT;
     dbPrendasal = new DBPRENDASAL();
     dbUser = new DBUsuario();
     dbInventario = new InventarioController();
     dbCatalogo = new DBCatalogo();
 }
Exemple #7
0
 public PACForm()
 {
     InitializeComponent();
     this.PerformAutoScale();
     dbUser = new DBUsuario();
     dbPrendasal = new DBPRENDASAL();
     dbPrestamo = new DBPrestamo();
     dbPAC = new DBPac();
 }
 public AgregarSucursal(Sucursal SUCURSAL)
 {
     InitializeComponent();
     ACCION = eOperacion.UPDATE;
     dbPrendasal = new DBPRENDASAL();
     dbUser = new DBUsuario();
     dbSucursal = new DBSucursal();
     SELECTED = SUCURSAL;
 }
 public ComprasForm()
 {
     InitializeComponent();
     dbPrendasal = new DBPRENDASAL();
     dbUser = new DBUsuario();
     dbCliente = new DBCliente();
     dbCompra= new DBCompra();
     dbCatalogo = new DBCatalogo();
     COMPRA = new Compra();
 }
 public ContratosForm()
 {
     InitializeComponent();
     dbPrendasal = new DBPRENDASAL();
     dbUser = new DBUsuario();
     dbCliente = new DBCliente();
     dbPrestamo = new DBPrestamo ();
     dbCatalogo = new DBCatalogo();
     PRESTAMO = new Prestamo();
 }
 public ItemInicial(Inventario item)
 {
     InitializeComponent();
     ACCION = eOperacion.UPDATE;
     dbPrendasal = new DBPRENDASAL();
     SELECTED = item;
     dbUser = new DBUsuario();
     dbInventario = new InventarioController();
     dbCatalogo = new DBCatalogo();
 }
Exemple #12
0
 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;
 }
Exemple #13
0
        public VentasForm()
        {
            InitializeComponent();
            dbPrendasal = new DBPRENDASAL();
            dbUser = new DBUsuario();
            dbCliente = new DBCliente();
            dbVenta= new VentaController();
            dbCatalogo = new DBCatalogo();

            ITEMS_VENTA = new DataTable();
            ITEMS_VENTA.Columns.Add("CATEGORIA").DataType = System.Type.GetType("System.String");
            ITEMS_VENTA.Columns.Add("COD_ITEM").DataType = System.Type.GetType("System.String");
            ITEMS_VENTA.Columns.Add("CANTIDAD").DataType = System.Type.GetType("System.Double");
            ITEMS_VENTA.Columns.Add("DESCRIPCION").DataType = System.Type.GetType("System.String");
            ITEMS_VENTA.Columns.Add("PRECIO_UNIT").DataType = System.Type.GetType("System.Decimal");
            ITEMS_VENTA.Columns.Add("MONTO").DataType = System.Type.GetType("System.Decimal");
            ITEMS_VENTA.Columns.Add("CUENTA").DataType = System.Type.GetType("System.String");
            ITEMS_VENTA.Columns.Add("TAX").DataType = System.Type.GetType("System.Int32");
            ITEMS_VENTA.Columns.Add("PRECIO_IMP").DataType = System.Type.GetType("System.Decimal");
            ITEMS_VENTA.Columns.Add("MONTO_IMP").DataType = System.Type.GetType("System.Decimal");
            ITEMS_VENTA.Columns.Add("INV").DataType = System.Type.GetType("System.Int32");
            ITEMS_VENTA.Columns.Add("VALUO_UNIT").DataType = System.Type.GetType("System.Decimal");
        }
 public AgregarUser()
 {
     InitializeComponent();
     dbPrendasal = new DBPRENDASAL();
     dbUser = new DBUsuario();
 }
 public PreciosForm()
 {
     InitializeComponent();
     dbUser = new DBUsuario();
     dbPrendasal = new DBPRENDASAL();
 }
 public ReglasNegocioForm()
 {
     InitializeComponent();
     dbUser = new DBUsuario();
     dbPrendasal = new DBPRENDASAL();
 }
        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;
            }
        }