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 btnAdd_Click(object sender, EventArgs e) { UserRightManage urm = new UserRightManage(); if (urm.IsOperateRight(SysParams.UserID, "ckdxz") == false) { this.ShowAlertMessage("对不起,你没有该功能的操作权限,请与管理员联系!"); return; } frmBillAdd frmBillAdd = new frmBillAdd(); frmBillAdd.BillAdd("E", 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; } } }