/// <summary> /// 列表双击查看其它收货单配件明细 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gvReceiptBillList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (e.RowIndex > -1 && e.ColumnIndex > -1) //双击表头或列头时不起作用 { string RecptIdValue = gvReceiptBillList.CurrentRow.Cells["RecptId"].Value.ToString(); //获取出入库单ID string WHName = gvReceiptBillList.CurrentRow.Cells["WHName"].Value.ToString(); //获取当前出入库单仓库名称 UCStockReceiptDetail UCReceiptDetails = new UCStockReceiptDetail(RecptIdValue, WHName); base.addUserControl(UCReceiptDetails, "其它收货单-查看", "UCReceiptDetails", this.Tag.ToString(), this.Name); } } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
/// <summary> /// 列表双击查看其它收货单配件明细 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gvReceiptBillList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用 { string RecptIdValue = gvReceiptBillList.CurrentRow.Cells["RecptId"].Value.ToString();//获取出入库单ID string WHName = gvReceiptBillList.CurrentRow.Cells["WHName"].Value.ToString();//获取当前出入库单仓库名称 UCStockReceiptDetail UCReceiptDetails = new UCStockReceiptDetail(RecptIdValue, WHName); base.addUserControl(UCReceiptDetails, "其它收货单-查看", "UCReceiptDetails" , this.Tag.ToString(), this.Name); } } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
/// <summary> ///按往来单位或者配件双击单据查看单据详情 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gvInOutPartList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用 { string InoutIdValue = gvInOutPartList.CurrentRow.Cells["InoutPartID"].Value.ToString();//获取其它收发货单ID string WHName = gvInOutPartList.CurrentRow.Cells["PartWHName"].Value.ToString();//获取当前其它收发单仓库名称 if (CombOrderType.SelectedValue.ToString() == InBill) { UCStockReceiptDetail UCReceiptBillDetails = new UCStockReceiptDetail(InoutIdValue, WHName); base.addUserControl(UCReceiptBillDetails, "其它收货单-查看", "UCReceiptBillDetails" + InoutIdValue + "", this.Tag.ToString(), this.Name); } else if (CombOrderType.SelectedValue.ToString() == OutBill) { UCStockShippingDetail UCShippingBillDetails = new UCStockShippingDetail(InoutIdValue, WHName); base.addUserControl(UCShippingBillDetails, "其它发货单-查看", "UCShippingBillDetails" + InoutIdValue + "", this.Tag.ToString(), this.Name); } } } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }