コード例 #1
0
 private void tsbEditLine_Click(object sender, EventArgs e)
 {
     if (custVstPlnLineID > 0)
     {
         frmCRMVisitPlanLine frmCRMVisitPlanLine = new frmCRMVisitPlanLine();
         frmCRMVisitPlanLine.custVstPlnGuID   = custVstPlnGuID;
         frmCRMVisitPlanLine.custVstPlnLineID = custVstPlnLineID;
         frmCRMVisitPlanLine.BringToFront();
         frmCRMVisitPlanLine.ShowDialog();
     }
 }
コード例 #2
0
 private void dgvPlan_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)
     {
         if (dgvPlan.Columns[e.ColumnIndex].Name.Contains("colRecordResult"))
         {
             frmCRMVisitPlanLine frmCRMVisitPlanLine = new frmCRMVisitPlanLine();
             frmCRMVisitPlanLine.ShowDialog();
             frmCRMVisitPlanLine.BringToFront();
             frmCRMVisitPlanLine.custVstPlnGuID = custVstPlnGuID;
         }
     }
 }
コード例 #3
0
 private void tsbAddLine_Click(object sender, EventArgs e)
 {
     if (custVstPlnGuID != Guid.Empty)
     {
         frmCRMVisitPlanLine frmCRMVisitPlanLine = new frmCRMVisitPlanLine();
         frmCRMVisitPlanLine.custVstPlnGuID = custVstPlnGuID;
         frmCRMVisitPlanLine.BringToFront();
         frmCRMVisitPlanLine.ShowDialog();
     }
     else
     {
         this.ShowMessage("请先保存拜访计划!");
     }
 }