Esempio n. 1
0
        private void tsbAddVisitPlan_Click(object sender, EventArgs e)
        {
            frmCRMVisitPlan frmCRMVisitPlan = new frmCRMVisitPlan();

            frmCRMVisitPlan.ShowDialog();
            frmCRMVisitPlan.BringToFront();
            //frmCRMVisitPlan.RefreshParentForm += new CRM.frmCRMVisitPlan.dlgRefreshParentForm (BindDataGridView);
            frmCRMVisitPlan.RefreshParentForm += delegate { BindDataGridView(pgPlan.PageIndex); };
        }
Esempio n. 2
0
 private void tsbEditVisitPlan_Click(object sender, EventArgs e)
 {
     if (custVstPlnID > 0)
     {
         frmCRMVisitPlan frmCRMVisitPlan = new frmCRMVisitPlan();
         frmCRMVisitPlan.custVstPlnID   = custVstPlnID;
         frmCRMVisitPlan.custVstPlnGuID = custVstPlnGuID;
         frmCRMVisitPlan.ShowDialog();
         frmCRMVisitPlan.BringToFront();
     }
     else
     {
         this.ShowMessage("请选择要编辑的拜访计划");
     }
 }