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(); } }
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; } } }
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("请先保存拜访计划!"); } }