예제 #1
0
 /// <summary>
 /// 双击列表单元格事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gvProList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用
     {
         string            suppId     = Convert.ToString(this.dgvWorkList.CurrentRow.Cells[whours_id.Name].Value.ToString());
         UCWorkingTimeView UCWorkView = new UCWorkingTimeView(suppId);
         base.addUserControl(UCWorkView, "工时档案-查看", "UCWorkView" + suppId + "", this.Tag.ToString(), this.Name);
     }
 }
 /// <summary>
 /// 双击列表单元格事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gvProList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用   
     {
         string suppId = Convert.ToString(this.dgvWorkList.CurrentRow.Cells[whours_id.Name].Value.ToString());
         UCWorkingTimeView UCWorkView = new UCWorkingTimeView(suppId, this);
         base.addUserControl(UCWorkView, "工时档案-查看", "UCWorkView" + suppId + "", this.Tag.ToString(), this.Name);
     }
 }