Esempio n. 1
0
        private void dgvDatos_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            try
            {
                Int32 docEntry = Convert.ToInt32(dgvDatos.Rows[e.Cell.Row.Index].Cells[(int)Columnas.Docnum].Value);

                SDK.Documentos.frmDocumentos formulario = new SDK.Documentos.frmDocumentos(1);
                formulario.MdiParent     = this.MdiParent;
                formulario.txtFolio.Text = docEntry.ToString();
                var kea = new KeyPressEventArgs(Convert.ToChar(13));
                formulario.txtFolio_KeyPress(sender, kea);
                formulario.Show();
            }
            catch (Exception)
            {
            }
        }
Esempio n. 2
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            if (this.btnCrear.Text == "Crear")
            {
                SDK.Documentos.frmDocumentos formulario = new SDK.Documentos.frmDocumentos(1);
                formulario.MdiParent = this.MdiParent;
                formulario.Show();
                return;
            }

            txtCardCode.ReadOnly = false;
            txtCardCode.Enabled  = true;

            txtCardName.ReadOnly = false;
            txtCardName.Enabled  = true;
            this.CleanScreen();
            txtFolio.Focus();

            cerrarLíneaToolStripMenuItem.Enabled = true;
        }
Esempio n. 3
0
        private void CrearOC(string Zona)
        {
            DataTable tbl = new DataTable();

            tbl.Columns.Add("CardCode", typeof(string));
            tbl.Columns.Add("Autorizado", typeof(decimal));
            tbl.Columns.Add("Artículo", typeof(string));
            tbl.Columns.Add("Descripción", typeof(string));
            tbl.Columns.Add("WhsCode", typeof(string));
            tbl.Columns.Add("Almacén", typeof(string));
            tbl.Columns.Add("Price", typeof(decimal));
            tbl.Columns.Add("Currency", typeof(string));
            tbl.Columns.Add("Rate", typeof(decimal));
            tbl.Columns.Add("Volumen", typeof(decimal));
            tbl.Columns.Add("BWeight1", typeof(decimal));

            foreach (DataRow item in Tbl_Volumen.Rows)
            {
                if (item.Field <string>("Zona").Equals(Zona))
                {
                    DataRow r = tbl.NewRow();
                    r["CardCode"]    = item["CardCode"];
                    r["Autorizado"]  = item["ComprarM"];
                    r["Artículo"]    = item["ItemCode"];
                    r["Descripción"] = item["ItemName"];
                    r["WhsCode"]     = item["WhsCode"];
                    r["Almacén"]     = item["WhsName"];
                    r["Price"]       = item["Price"];
                    r["Currency"]    = item["Currency"];
                    r["Rate"]        = item["Rate"];
                    r["Volumen"]     = item["Volumen"];
                    r["BWeight1"]    = item["BWeight1"];
                    tbl.Rows.Add(r);
                }
            }

            SDK.Documentos.frmDocumentos formulario = new SDK.Documentos.frmDocumentos(tbl, 1, cbProveedor.SelectedValue.ToString());
            formulario.MdiParent = this.MdiParent;
            formulario.Show();
        }
Esempio n. 4
0
        private void dgvStock_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (ClasesSGUV.Login.Rol == (int)ClasesSGUV.Propiedades.RolesHalcoNET.Administrador
                    | ClasesSGUV.Login.Rol == (int)ClasesSGUV.Propiedades.RolesHalcoNET.GerenteCompras
                    | ClasesSGUV.Login.Rol == (int)ClasesSGUV.Propiedades.RolesHalcoNET.Zulma)
                {
                    Int32 docEntry = Convert.ToInt32(dgvStock.Rows[e.RowIndex].Cells[0].Value);

                    SDK.Documentos.frmDocumentos formulario = new SDK.Documentos.frmDocumentos(1);
                    formulario.typeDocument  = "OC";
                    formulario.MdiParent     = this.MdiParent;
                    formulario.txtFolio.Text = docEntry.ToString();
                    var kea = new KeyPressEventArgs(Convert.ToChar(13));
                    formulario.txtFolio_KeyPress(sender, kea);
                    formulario.Show();
                }
            }
            catch (Exception)
            {
            }
        }