/// <summary> /// 双击查看明细事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gvPurchasePlanOrderList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用 { string plan_Id = Convert.ToString(this.gvPurchasePlanOrderList.CurrentRow.Cells[0].Value.ToString()); UCPurchasePlanOrderView UCPurchasePlanOrderView = new UCPurchasePlanOrderView(plan_Id, this); base.addUserControl(UCPurchasePlanOrderView, "采购计划单-查看", "UCPurchasePlanOrderView" + plan_Id + "", this.Tag.ToString(), this.Name); } }
/// <summary> /// 双击查看明细事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gvPurchasePlanOrderList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用 { string plan_Id = Convert.ToString(this.gvPurchasePlanOrderList.CurrentRow.Cells["plan_id"].Value.ToString()); UCPurchasePlanOrderView UCPurchasePlanOrderView = new UCPurchasePlanOrderView(plan_Id, this); base.addUserControl(UCPurchasePlanOrderView, "采购计划单-查看", "UCPurchasePlanOrderView" + plan_Id + "", this.Tag.ToString(), this.Name); } }
/// <summary> /// 打开采购计划单 /// </summary> void OpenDocument() { if (dgvReport.CurrentRow == null) { return; } string plan_Id = Convert.ToString(dgvReport.CurrentRow.Cells[colID.Name].Value); if (plan_Id.Length == 0) { return; } UCPurchasePlanOrderView UCPurchasePlanOrderView = new UCPurchasePlanOrderView(plan_Id, null); base.addUserControl(UCPurchasePlanOrderView, "采购计划单-查看", "UCPurchasePlanOrderView" + plan_Id + "", this.Tag.ToString(), this.Name); }