/// <summary> 双击事件,查看明细信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gvPurchaseOrderList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用 { string order_status = this.gvPurchaseOrderList.CurrentRow.Cells["order_status"].Value.ToString(); string sale_order_Id = this.gvPurchaseOrderList.CurrentRow.Cells["sale_order_id"].Value.ToString(); UCSaleOrderView UCSaleOrderView = new UCSaleOrderView(sale_order_Id, order_status, this); base.addUserControl(UCSaleOrderView, "销售订单-查看", "UCSaleOrderView" + sale_order_Id + "", this.Tag.ToString(), this.Name); } }
/// <summary> 双击事件,查看明细信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gvPurchaseOrderList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用 { string order_status = this.gvPurchaseOrderList.CurrentRow.Cells["order_status"].Value.ToString(); string sale_order_Id = this.gvPurchaseOrderList.CurrentRow.Cells[0].Value.ToString(); UCSaleOrderView UCSaleOrderView = new UCSaleOrderView(sale_order_Id, order_status, this); base.addUserControl(UCSaleOrderView, "销售订单-查看", "UCSaleOrderView" + sale_order_Id + "", this.Tag.ToString(), this.Name); } }
/// <summary> /// 打开销售订单 /// </summary> void OpenDocument() { if (dgvReport.CurrentRow == null) { return; } string order_id = dgvReport.CurrentRow.Cells[colID.Name].Value.ToString(); if (order_id.Length == 0) { return; } UCSaleOrderView view = new UCSaleOrderView(order_id, ((int)DataSources.EnumAuditStatus.SUBMIT).ToString(), null); base.addUserControl(view, "销售订单-查看", "UCPurchaseOrderView" + order_id + "", this.Tag.ToString(), this.Name); }