Example #1
0
 private void gvSalePlanList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用
     {
         string         sale_plan_id   = Convert.ToString(this.gvSalePlanList.CurrentRow.Cells["sale_plan_id"].Value.ToString());
         UCSalePlanView UCSalePlanView = new UCSalePlanView(sale_plan_id, this);
         base.addUserControl(UCSalePlanView, "销售计划单-查看", "UCSalePlanView" + sale_plan_id + "", this.Tag.ToString(), this.Name);
     }
 }
 private void gvSalePlanList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用   
     {
         string sale_plan_id = Convert.ToString(this.gvSalePlanList.CurrentRow.Cells["sale_plan_id"].Value.ToString());
         UCSalePlanView UCSalePlanView = new UCSalePlanView(sale_plan_id, this);
         base.addUserControl(UCSalePlanView, "销售计划单-查看", "UCSalePlanView" + sale_plan_id + "", this.Tag.ToString(), this.Name);
     }
 }
 /// <summary>
 /// 打开销售计划单
 /// </summary>
 void OpenDocumnet()
 {
     if (dgvReport.CurrentRow == null)
     {
         return;
     }
     string plan_Id = Convert.ToString(dgvReport.CurrentRow.Cells[colID.Name].Value);
     if (plan_Id.Length == 0)
     {
         return;
     }
     UCSalePlanView view = new UCSalePlanView(plan_Id, null);
     base.addUserControl(view, "销售计划单-查看", "UCSalePlanView" + plan_Id + "", this.Tag.ToString(), this.Name);
 }