コード例 #1
0
        public centralVenta(Central2 central, ref usuario usuarioactual)
        {
            this.central       = central;
            this.usuarioactual = usuarioactual;

            this.initialconfigs();
        }
コード例 #2
0
 public cancelarVenta(Central2 central)
 {
     InitializeComponent();
     this.central     = central;
     this.FormClosed += (sender, args) => { central.xcancelarventa = null; };
     this.initfunc();
 }
コード例 #3
0
        private void verify() //CHECA USUARIO
        {
            if (this.DB.usrexist(this.txtuser.Text.Trim().Replace(" ", "")))
            {
                if (this.DB.usrpasscorrecto(this.txtuser.Text.Trim().Replace(" ", ""), this.txtpass.Text.Trim()))
                {
                    xfe.slide(this.firstbase, 250);

                    this.firstbase.exitFlag  = exitState.highest;
                    this.exitFlag            = exitState.highest;
                    genericDefinitions.ALIAS = this.txtuser.Text.Trim().Replace(" ", "");
                    this.firstbase.Visible   = false;
                    Central2 central = new Central2(genericDefinitions.ALIAS);
                    central.Show();
                }
                else
                {
                    genericDefinitions.dangerInfo("Password de acceso Invalido", "Aviso");
                    this.txtpass.Text = "";
                    this.txtuser.Focus();
                }
            }
            else
            {
                genericDefinitions.dangerInfo("Usuario Invalido", "Aviso");
                this.clear();
            }
        }
コード例 #4
0
 public consultas_central(Central2 central)
 {
     this.central = central;
     InitializeComponent();
     this.initialsettings();
     this.FormClosed += (sender, args) => { this.central.consultas = null; };
 }
コード例 #5
0
 public midformCustomer(Central2 origen)
 {
     InitializeComponent();
     this.Text        = "Cliente";
     this.origen      = origen;
     this.FormClosed += this.OnClose;
     this.stopBounds();
 }
コード例 #6
0
 public exportdb(Central2 central)
 {
     InitializeComponent();
     this.central = central;
     this.initialsettings();
     this.FormClosed += (a, b) => { this.central.dboperations = null; };
     this.aviso       = new inneradvice();
 }
コード例 #7
0
        public centraltienda(Central2 source)
        {
            this.source = source;

            this.global_settings();

            this.ShowInTaskbar = false;
        }
コード例 #8
0
 public midformProduct(Central2 origen)
 {
     InitializeComponent();
     this.origen      = origen;
     this.FormClosed += this.onClose;
     this.Text        = "Mercancia";
     this.stopBounds();
 }
コード例 #9
0
 public printerticketdefault(Central2 central)
 {
     InitializeComponent();
     this.db          = new dbop();
     this.FormClosed += (sender, args) =>
     {
         central.impresoras = null;
     };
     this.stopBounds();
 }
コード例 #10
0
        public printcbGui(Central2 central)
        {
            InitializeComponent();
            this.db     = new dbop();
            this.xprint = new printCbar();


            this.myload();

            this.FormClosed += (sender, args) => { central.etiquetas = null; };
        }
コード例 #11
0
        private void generalAcces(string usuario)
        {
            xfe.slide(this.firstbase, 250);
            this.firstbase.exitFlag      = exitState.highest;
            this.exitFlag                = exitState.highest;
            genericDefinitions.ALIAS     = usuario.Replace(" ", "");
            this.firstbase.Visible       = false;
            this.firstbase.ShowInTaskbar = false;
            Central2 central = new Central2(genericDefinitions.ALIAS);

            central.Show();
        }
コード例 #12
0
 public addCategory(Central2 central)
 {
     InitializeComponent();
     this.Text = "Agregar Categoria";
     this.setatribs();
     this.KeyPreview  = true;
     this.db          = new dbop();
     this.cat         = new categoria();
     this.central     = central;
     this.FormClosed += (sender, args) => { this.closed(); };
     this.stopBounds();
 }
コード例 #13
0
        public inventarioBase(Central2 central)
        {
            InitializeComponent();

            this.central = central;

            this.FormClosed += (s, a) =>
            {
                this.central.inventario = null;
            };
            this.initialsetts();
        }
コード例 #14
0
 public deleteCategory(Central2 central)
 {
     InitializeComponent();
     this.Text       = "Eliminar Categoria";
     this.KeyPreview = true;
     this.KeyDown   += (abs, det) => { if (det.KeyData == Keys.F1)
                                       {
                                           this.onAccept();
                                       }
     };
     this.central     = central;
     this.FormClosed += (sender, args) => { this.closed(); };
     this.stopBounds();
 }
コード例 #15
0
 public updatePaymode(Central2 central)
 {
     InitializeComponent();
     this.central           = central;
     this.Text              = "Actualizar Modo De Pago";
     this.txtname.KeyPress += (sender, args) =>
     {
         if (this.txtname.Text.Trim() != "" && args.KeyChar == (char)Keys.Enter)
         {
             this.check();
         }
     };
     behaviorDefinitions.txtUPPER(this.txtname);
     this.stopBounds();
     this.FormClosed += (sender, args) => { this.onclosed(); };
 }
コード例 #16
0
 public deleteModopago(Central2 central) : base(central)
 {
     InitializeComponent();
     this.central           = central;
     this.txtnombre.Enabled = false;
     this.rtb.Enabled       = false;
     this.Text       = "Eliminar Modo de pago";
     this.KeyPreview = true;
     this.KeyDown   += (x, y) =>
     {
         if (y.KeyCode == Keys.F1)
         {
             this.onaccept();
         }
     };
     this.label3.Text = "Presione F1 para Eliminar.";
     this.stopBounds();
 }
コード例 #17
0
 public updateCategory(Central2 central)
 {
     InitializeComponent();
     this.Text = "Actualizar Categoria";
     this.initvals();
     this.start.KeyPress += (send, args) => {
         if (args.KeyChar == (char)Keys.Enter && this.start.Text != "")
         {
             this.setcat();
         }
         if (this.start.Text == "" && args.KeyChar == (char)Keys.Enter)
         {
             genericDefinitions.dangerInfo("Ingrese Nombre de Categoria!", "Aviso");
             this.start.Focus();
         }
     };
     this.central     = central;
     this.FormClosed += (sender, args) => { this.closed(); };
     behaviorDefinitions.txtUPPER(this.start);
     this.stopBounds();
 }
コード例 #18
0
        public addPayMode(Central2 central)
        {
            InitializeComponent();
            this.central = central;
            this.Text    = "Agregar Modo de pago";

            this.db   = new dbop();
            this.modo = new modo_pago();

            behaviorDefinitions.txtUPPER(this.txtnombre);

            this.txtnombre.KeyPress += (sender, args) =>
            {
                if (args.KeyChar == (char)Keys.Enter && this.txtnombre.Text != "")
                {
                    this.rtb.Focus();
                }
            };

            this.rtb.PreviewKeyDown += (sender, args) =>
            {
                if (this.rtb.Text.Trim() != "" && args.KeyCode == Keys.F1)
                {
                    this.onaccept();
                }
            };

            this.bcancel.Click += (x, y) => { this.oncancel(); };
            this.baccept.Click += (x, y) => { this.onaccept(); };

            this.FormClosed += (x, y) =>
            {
                this.onclosed();
            };

            this.stopBounds();
        }
コード例 #19
0
 public seepaymodes(Central2 central) : base(central)
 {
     InitializeComponent();
     this.Text = "Ver modos de pago";
 }
コード例 #20
0
        public seecategory(Central2 central)
        {
            InitializeComponent();
            this.dgv.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;

            this.Text = "Categorias";

            this.central = central;

            this.Resize += (x, y) => {
                this.pb.Location = new Point((this.gb1.Width / 2) + this.gb1.Location.X - this.pb.Width / 2, this.pb.Location.Y);
            };

            this.FormClosed += (x, y) => { this.onClose(); };
            this.db          = new DB.dbop();
            behaviorDefinitions.txtOnlyNumbers(ref this.txtnumero);
            behaviorDefinitions.txtUPPER(this.txtname);
            behaviorDefinitions.txtUPPER(this.txtdesc);

            this.txtname.KeyUp += (x, y) =>
            {
                this.onfirst();
            };

            this.txtdesc.KeyUp += (x, y) =>
            {
                this.onsecond();
            };

            this.txtnumero.KeyUp += (x, y) =>
            {
                this.onthird();
            };


            this.txtname.GotFocus += (sender, args) => {
                this.chargeInit();
                this.txtdesc.Text   = null;
                this.txtnumero.Text = null;
            };

            this.txtdesc.GotFocus += (sender, args) => {
                this.chargeInit();
                this.txtname.Text   = null;
                this.txtnumero.Text = null;
            };

            this.txtnumero.GotFocus += (sender, args) => {
                this.chargeInit();
                this.txtdesc.Text = null;
                this.txtname.Text = null;
            };

            this.txtname.KeyDown += (e, x) => {
                if (x.KeyCode == Keys.Enter)
                {
                    this.txtdesc.Focus();
                }
            };
            this.txtdesc.KeyDown += (e, x) => {
                if (x.KeyCode == Keys.Enter)
                {
                    this.txtnumero.Focus();
                }
            };
            this.txtnumero.KeyDown += (e, x) => {
                if (x.KeyCode == Keys.Enter)
                {
                    this.txtname.Focus();
                }
            };
        }