예제 #1
0
 /// <summary>
 /// 列表双击查看调拨单配件明细
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gvAllotBillList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex > -1 && e.ColumnIndex > -1)                                              //双击表头或列头时不起作用
         {
             string AllotIdValue = gvAllotBillList.CurrentRow.Cells["AllotID"].Value.ToString(); //获取调拨单单ID
             UCRequisitionBillDetail UCAllotBillDetails = new UCRequisitionBillDetail(AllotIdValue);
             base.addUserControl(UCAllotBillDetails, "调拨单-查看", "UCAllotBillDetails" + AllotIdValue + "", 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 gvAllotBillList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用   
                {
                    string AllotIdValue = gvAllotBillList.CurrentRow.Cells["AllotID"].Value.ToString();//获取调拨单单ID
                    UCRequisitionBillDetail UCAllotBillDetails = new UCRequisitionBillDetail(AllotIdValue);
                    base.addUserControl(UCAllotBillDetails, "调拨单-查看", "UCAllotBillDetails" + AllotIdValue + "", this.Tag.ToString(), this.Name);
                }
            }
            catch (Exception ex)
            {
                MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
            }

        }