private void TdgDetalleHoja_MouseClick(object sender, MouseEventArgs e) { //para mostrar las guias al hacer click Cursor = Cursors.WaitCursor; int row, col; if (this.TdgDetalleHoja.CellContaining(e.X, e.Y, out row, out col)) { if (col < 7) { string Val = this.TdgDetalleHoja[row, col + 1] as string; if (col == 3 && Val != "") { FrmGuiaRemision ObjFrmGuiaRemision = new FrmGuiaRemision(); ObjFrmGuiaRemision.NumGuiaRemision = Val; ObjFrmGuiaRemision.ShowDialog(); } if (col == 4 && Val + "" != "") { FrmGuiaTransporte ObjFrmGuiaTransporte = new FrmGuiaTransporte(); ObjFrmGuiaTransporte.NumGuiaTransportista = Val; ObjFrmGuiaTransporte.ShowDialog(); } } } Cursor = Cursors.Default; }
private void BtnGuiaTransporte_Click(object sender, EventArgs e) { DataTable DT = new DataTable(); FrmGuiaTransporte ObjFrmGuiaTransporte = new FrmGuiaTransporte(); ObjFrmGuiaTransporte.DtCabecera = DT; ObjFrmGuiaTransporte.DtDetalle = DT; ObjFrmGuiaTransporte.ShowDialog(); }
private void LstTransporte_DoubleClick(object sender, EventArgs e) { if (LstTransporte.SelectedIndex > -1) { NumGuiaTransportista = LstTransporte.Columns["NumGuiaTransportista"].Value.ToString(); FrmGuiaTransporte ObjFrmGuiaTransporte = new FrmGuiaTransporte(); ObjFrmGuiaTransporte.TipoGuia = "V"; ObjFrmGuiaTransporte.NumGuiaTransportista = NumGuiaTransportista; ObjFrmGuiaTransporte.DtCabecera = DsTransporte.Tables["DtCabecera"].Copy(); ObjFrmGuiaTransporte.DtDetalle = DsTransporte.Tables["DetalleGuiaRemisionVenta"].Copy(); ObjFrmGuiaTransporte.ShowDialog(); } }
private void TdgGuias_MouseClick(object sender, MouseEventArgs e) { Cursor = Cursors.WaitCursor; //para mostrar las guias al hacer click int row, col; if (this.TdgGuias.CellContaining(e.X, e.Y, out row, out col) == true && col < 4) { string Val = this.TdgGuias[row, col + 8] as string; if (col == 1 && Val != "") { FrmGuiaRemisionPeso ObjFrmGuiaRemisionPeso = new FrmGuiaRemisionPeso(); ObjFrmGuiaRemisionPeso.NumGuiaRemision = Val; ObjFrmGuiaRemisionPeso.ShowDialog(); } if (col == 2 && Val + "" != "") { FrmGuiaTransporte ObjFrmGuiaTransporte = new FrmGuiaTransporte(); ObjFrmGuiaTransporte.NumGuiaTransportista = Val; ObjFrmGuiaTransporte.ShowDialog(); } } Cursor = Cursors.Default; }