コード例 #1
0
 /// <summary>
 /// 列表双击查看盘点单配件明细
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gvCheckBillList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex > -1 && e.ColumnIndex > -1)                                                               //双击表头或列头时不起作用
         {
             string             ChkIdValue         = gvCheckBillList.CurrentRow.Cells["ChkId"].Value.ToString();  //获取出入库单ID
             string             WHName             = gvCheckBillList.CurrentRow.Cells["WHName"].Value.ToString(); //获取当前出入库单仓库名称
             UCStockCheckDetail UCCheckBillDetails = new UCStockCheckDetail(ChkIdValue, WHName);
             base.addUserControl(UCCheckBillDetails, "盘点单-查看", "UCCheckBillDetails" + ChkIdValue + "", this.Tag.ToString(), this.Name);
         }
     }
     catch (Exception ex)
     {
         MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
     }
 }
コード例 #2
0
 /// <summary>
 /// 列表双击查看盘点单配件明细
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gvCheckBillList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用   
         {
             string ChkIdValue = gvCheckBillList.CurrentRow.Cells["ChkId"].Value.ToString();//获取出入库单ID
             string WHName = gvCheckBillList.CurrentRow.Cells["WHName"].Value.ToString();//获取当前出入库单仓库名称
             UCStockCheckDetail UCCheckBillDetails = new UCStockCheckDetail(ChkIdValue, WHName);
             base.addUserControl(UCCheckBillDetails, "盘点单-查看", "UCCheckBillDetails" + ChkIdValue + "", this.Tag.ToString(), this.Name);
         }
     }
     catch (Exception ex)
     {
         MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
     }
 }