private void uGridData_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e) { uGridData.ActiveRow.Selected = true; if (uGridData.ActiveRow.Index == -1) { return; } try { dteJzrq.Value = Convert.ToDateTime(uGridData.ActiveRow.Cells["FS_ACCOUNTDATE"].Text); } catch (Exception) { } strOptNo = uGridData.ActiveRow.Cells["FS_WEIGHTNO"].Text; if ((uGridData.ActiveRow.Cells["FS_RECEIVEFLAG"].Text == "1") && (uGridData.ActiveRow.Cells["FS_UPLOADFLAG"].Text == "1")) { showSapLog(uGridData.ActiveRow.Cells["FS_STOVENO"].Text); return; } txtGh.Text = uGridData.ActiveRow.Cells["FS_POTNO"].Text; cmbLzh.Text = uGridData.ActiveRow.Cells["FS_STOVESEATNO"].Text; txtLh.Text = uGridData.ActiveRow.Cells["FS_STOVENO"].Text; txtScdd.Text = uGridData.ActiveRow.Cells["FS_PRODUCTNO"].Text; txtWlbh.Text = uGridData.ActiveRow.Cells["FS_MATERIAL"].Text; txtWlmc.Text = uGridData.ActiveRow.Cells["FS_MATERIALNAME"].Text; txtGc.Text = "8000"; txtKcd.Text = uGridData.ActiveRow.Cells["FS_RECEIVESTORE"].Text; txtZl.Text = uGridData.ActiveRow.Cells["FN_NETWEIGHT"].Text; }
private void uGridRawMaterial_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e) { if (e.Cell.Row == null || e.Cell.Row.Index <= -1) { return; } URow = e.Cell.Row; DialogResult = DialogResult.Yes; }
private void uGridData_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e) { uGridData.ActiveRow.Selected = true; if (uGridData.ActiveRow.Index == -1) { return; } try { dteJzrq.Value = Convert.ToDateTime(uGridData.ActiveRow.Cells["FS_ACCOUNTDATE"].Text); } catch (Exception) { } txtScdd.Text = uGridData.ActiveRow.Cells["FS_PRODUCTNO"].Text; txtHxmh.Text = "0001"; txtGc.Text = "1100";//1100是玉钢工厂 txtKcd.Text = uGridData.ActiveRow.Cells["FS_SAPSTORE"].Text != "" ? uGridData.ActiveRow.Cells["FS_SAPSTORE"].Text : "8303"; txtZl.Text = uGridData.ActiveRow.Cells["FN_NETWEIGHT"].Text; cmbHead.Text = uGridData.ActiveRow.Cells["FS_HEADER"].Text; }
private void uGridData_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e) { uGridData.ActiveRow.Selected = true; if (uGridData.ActiveRow.Index == -1) { return; } try { dteJzrq.Value = Convert.ToDateTime(uGridData.ActiveRow.Cells["FS_ACCOUNTDATE"].Text); } catch (Exception e1) { } strOptNo = uGridData.ActiveRow.Cells["FS_STOVENO"].Text; txtLh.Text = uGridData.ActiveRow.Cells["FS_STOVENO"].Text; txtScdd.Text = uGridData.ActiveRow.Cells["FS_PRODUCTNO"].Text; txtHxmh.Text = uGridData.ActiveRow.Cells["FS_ITEMNO"].Text; txtGc.Text = "1100"; txtKcd.Text = uGridData.ActiveRow.Cells["FS_SAPSTORE"].Text != "" ? uGridData.ActiveRow.Cells["FS_SAPSTORE"].Text : ""; txtZl.Text = uGridData.ActiveRow.Cells["FN_NETWEIGHT"].Text; // txtKcd.Text = "1352"; }
/// <summary> /// 【列表】Grid的Cell的双击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gdGrid_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e) { //将Grid中选中的数据赋值给【详情】Tab内的对应控件 SetGridDataToCardCtrls(); }
private void dgvFacturas_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e) { H_Ventas.Consulta.frmFacturas form = new H_Ventas.Consulta.frmFacturas(dgvFacturas.ActiveRow.Cells["Factura"].Value.ToString()); form.MdiParent = this.MdiParent; form.Show(); }
private void grd_buscados_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e) { this.Aceptar(); }