private void gridControl1_DoubleClick(object sender, EventArgs e) { //int intRow = gridView1.GetSelectedRows()[0]; string guid = ((DataRowView)(gridView1.GetFocusedRow())).Row[0].ToString(); frmBillAdd frmBillAdd = new frmBillAdd(); frmBillAdd.BillEdit(guid, "E", this); }
private void tsbedit_Click(object sender, EventArgs e) { if (gridView1.RowCount > 0) { //int intRow = gridView1.GetSelectedRows()[0]; string guid = ((DataRowView)(gridView1.GetFocusedRow())).Row[0].ToString(); frmBillAdd frmBillAdd = new frmBillAdd(); frmBillAdd.BillEdit(guid, "I", this); } }
private void gridControl1_DoubleClick(object sender, EventArgs e) { if (gridView1.RowCount > 0) { //int intRow = gridView1.GetSelectedRows()[0]; string guid = ((DataRowView)(gridView1.GetFocusedRow())).Row[0].ToString().Trim(); string flag = ((DataRowView)(gridView1.GetFocusedRow())).Row[23].ToString().Trim(); frmBillAdd frmBillAdd = new frmBillAdd(); frmBillAdd.SendFlag = 1;//从部门收发明细表中进入(那边新增窗口保存时不刷新父窗口) frmBillAdd.BillEdit(guid, flag, this); } }
private void gridControl1_DoubleClick(object sender, EventArgs e) { if (bandedGridView1.RowCount > 0) { //int intRow = gridView1.GetSelectedRows()[0]; string guid = ((DataRowView)(bandedGridView1.GetFocusedRow())).Row[0].ToString().Trim(); string flag = ((DataRowView)(bandedGridView1.GetFocusedRow())).Row[3].ToString().Trim(); switch (flag) { case "I": //入库 frmBillAdd frmBillAdd = new frmBillAdd(); frmBillAdd.SendFlag = 1; frmBillAdd.BillEdit(guid, "I", this); break; case "E": //出库 frmBillAdd frmBillAdd2 = new frmBillAdd(); frmBillAdd2.SendFlag = 1; frmBillAdd2.BillEdit(guid, "E", this); break; case "RI": //调拨入 frmRemoveBillAdd frmRemoveBillAdd = new frmRemoveBillAdd(); frmRemoveBillAdd.SendFlag = 1; frmRemoveBillAdd.BillEdit(guid, this); break; case "RE": //调拨出 frmRemoveBillAdd frmRemoveBillAdd2 = new frmRemoveBillAdd(); frmRemoveBillAdd2.SendFlag = 1; frmRemoveBillAdd2.BillEdit(guid, this); break; case "SI": //盘盈 frmCheckBillAdd frmCheckBillAdd = new frmCheckBillAdd(); frmCheckBillAdd.SendFlag = 1; frmCheckBillAdd.BillEdit(guid, this); break; case "SE": //盘亏 frmCheckBillAdd frmCheckBillAdd2 = new frmCheckBillAdd(); frmCheckBillAdd2.SendFlag = 1; frmCheckBillAdd2.BillEdit(guid, this); break; } } }