예제 #1
0
        private void cmdConsultarOs_Click(object sender, EventArgs e)
        {
            MFOSLicitaciones fwd = new MFOSLicitaciones();

            try
            {
                String ruc         = "";
                String contacto    = "";
                String correlativo = "";

                GridRangeInfoList range = GGCOrdenes.TableControl.Selections.GetSelectedRows(true, true);
                foreach (GridRangeInfo info in range)
                {
                    Element el = this.GGCOrdenes.TableModel.GetDisplayElementAt(info.Top);
                    ruc         = el.GetRecord().GetValue("RucCliente").ToString();
                    contacto    = el.GetRecord().GetValue("ContactoCliente").ToString();
                    correlativo = el.GetRecord().GetValue("Correlativo").ToString();
                }

                fwd.CargarOrden(ruc, contacto, correlativo);
            }
            catch (Exception ex)
            {
                MessageBoxAdv.Show("Debes seleccionar un item", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            fwd.Show();
            this.Close();
        }
예제 #2
0
        private void cmdNuevo_Click(object sender, EventArgs e)
        {
            cmdConsultarOs.Enabled = false;
            MFOSLicitaciones fwd = new MFOSLicitaciones();

            fwd.CargarOrden("", "", "0");
            fwd.Show();
            this.Close();
        }
예제 #3
0
        private void cmdConsultar_Click(object sender, EventArgs e)
        {
            MFOSLicitaciones fwd         = new MFOSLicitaciones();
            String           ruc         = "";
            String           contacto    = "";
            String           correlativo = "";

            GridRangeInfoList range = GGCOrdenes.TableControl.Selections.GetSelectedRows(true, true);

            foreach (GridRangeInfo info in range)
            {
                Element el = this.GGCOrdenes.TableModel.GetDisplayElementAt(info.Top);
                ruc         = el.GetRecord().GetValue("RucCliente").ToString();
                contacto    = el.GetRecord().GetValue("ContactoCliente").ToString();
                correlativo = el.GetRecord().GetValue("Correlativo").ToString();
            }

            fwd.CargarOrden(ruc, contacto, correlativo);
            fwd.Show();
            this.Close();
        }