예제 #1
0
 /// <summary>
 /// 列表双击查看报损单配件明细
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gvLossBillList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex > -1 && e.ColumnIndex > -1)                                              //双击表头或列头时不起作用
         {
             string LossIdValue = gvLossBillList.CurrentRow.Cells["RepLossId"].Value.ToString(); //获取出入库单ID
             string WHName      = gvLossBillList.CurrentRow.Cells["WHName"].Value.ToString();    //获取当前出入库单仓库名称
             UCReportedLossBillDetail UCLossBillDetails = new UCReportedLossBillDetail(LossIdValue, WHName);
             base.addUserControl(UCLossBillDetails, "报损单-查看", "UCLossBillDetails" + LossIdValue + "", 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 gvLossQueryBillList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
          if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用   
             {
                 string LossIdValue = gvLossQueryBillList.CurrentRow.Cells["RepLossId"].Value.ToString();//获取出入库单ID
                 string WHName = gvLossQueryBillList.CurrentRow.Cells["WHName"].Value.ToString();//获取当前出入库单仓库名称
                 UCReportedLossBillDetail UCLossBillDetails = new UCReportedLossBillDetail(LossIdValue, WHName);
                 base.addUserControl(UCLossBillDetails, "报损单-查看", "UCLossBillDetails" + LossIdValue + "", this.Tag.ToString(), this.Name);
             }
     }
     catch (Exception ex)
     {
         MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
     }
 }