Changeset 1038
- Timestamp:
- Dec 8, 2010, 9:44:29 AM (14 years ago)
- Location:
- Scheduling/trunk/cs/bsdx0200GUISourceCode
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGAVView.cs
r1011 r1038 59 59 this.lblResource = new System.Windows.Forms.Label(); 60 60 this.panelCenter = new System.Windows.Forms.Panel(); 61 this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid(); 61 62 this.ctxCalendarGrid = new System.Windows.Forms.ContextMenu(); 62 63 this.ctxCalGridAdd = new System.Windows.Forms.MenuItem(); … … 68 69 this.mnuLoadTemplate = new System.Windows.Forms.MenuItem(); 69 70 this.mnuSaveTemplate = new System.Windows.Forms.MenuItem(); 70 this.mnuDeleteAll Appointments = new System.Windows.Forms.MenuItem();71 this.mnuDeleteAllSlots = new System.Windows.Forms.MenuItem(); 71 72 this.menuItem6 = new System.Windows.Forms.MenuItem(); 72 73 this.mnuSchedulingManagment = new System.Windows.Forms.MenuItem(); … … 92 93 this.splitter1 = new System.Windows.Forms.Splitter(); 93 94 this.saveAccessBlocksWorker = new System.ComponentModel.BackgroundWorker(); 94 this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();95 95 this.panelRight.SuspendLayout(); 96 96 this.panelClip.SuspendLayout(); … … 221 221 this.panelCenter.Size = new System.Drawing.Size(712, 345); 222 222 this.panelCenter.TabIndex = 4; 223 //224 // ctxCalendarGrid225 //226 this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {227 this.ctxCalGridAdd,228 this.ctxCalGridEdit,229 this.ctxCalGridDelete});230 this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup);231 //232 // ctxCalGridAdd233 //234 this.ctxCalGridAdd.Index = 0;235 this.ctxCalGridAdd.Text = "Add New Access Block";236 this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click);237 //238 // ctxCalGridEdit239 //240 this.ctxCalGridEdit.Index = 1;241 this.ctxCalGridEdit.Text = "Edit Access Block";242 this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click);243 //244 // ctxCalGridDelete245 //246 this.ctxCalGridDelete.Index = 2;247 this.ctxCalGridDelete.Text = "Delete Access Block";248 this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click);249 //250 // tvSchedules251 //252 this.tvSchedules.BackColor = System.Drawing.SystemColors.ControlLight;253 this.tvSchedules.Dock = System.Windows.Forms.DockStyle.Left;254 this.tvSchedules.HotTracking = true;255 this.tvSchedules.Location = new System.Drawing.Point(0, 0);256 this.tvSchedules.Name = "tvSchedules";257 this.tvSchedules.Size = new System.Drawing.Size(8, 393);258 this.tvSchedules.Sorted = true;259 this.tvSchedules.TabIndex = 5;260 //261 // mainMenu1262 //263 this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {264 this.menuItem1,265 this.mnuAvailability,266 this.mnuCalendar,267 this.mnuHelp});268 //269 // menuItem1270 //271 this.menuItem1.Index = 0;272 this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {273 this.mnuLoadTemplate,274 this.mnuSaveTemplate,275 this.mnuDeleteAllAppointments,276 this.menuItem6,277 this.mnuSchedulingManagment,278 this.menuItem5,279 this.mnuClose});280 this.menuItem1.Text = "&File";281 //282 // mnuLoadTemplate283 //284 this.mnuLoadTemplate.Index = 0;285 this.mnuLoadTemplate.Shortcut = System.Windows.Forms.Shortcut.CtrlA;286 this.mnuLoadTemplate.Text = "&Apply Template";287 this.mnuLoadTemplate.Click += new System.EventHandler(this.mnuLoadTemplate_Click);288 //289 // mnuSaveTemplate290 //291 this.mnuSaveTemplate.Index = 1;292 this.mnuSaveTemplate.Shortcut = System.Windows.Forms.Shortcut.CtrlS;293 this.mnuSaveTemplate.Text = "&Save Template";294 this.mnuSaveTemplate.Click += new System.EventHandler(this.mnuSaveTemplate_Click);295 //296 // mnuDeleteAllAppointments297 //298 this.mnuDeleteAllAppointments.Enabled = false;299 this.mnuDeleteAllAppointments.Index = 2;300 this.mnuDeleteAllAppointments.Shortcut = System.Windows.Forms.Shortcut.CtrlD;301 this.mnuDeleteAllAppointments.Text = "&Delete All Appointments";302 this.mnuDeleteAllAppointments.Click += new System.EventHandler(this.mnuDeleteAllAppointments_Click);303 //304 // menuItem6305 //306 this.menuItem6.Index = 3;307 this.menuItem6.Text = "-";308 //309 // mnuSchedulingManagment310 //311 this.mnuSchedulingManagment.Index = 4;312 this.mnuSchedulingManagment.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftM;313 this.mnuSchedulingManagment.Text = "Scheduling &Management";314 this.mnuSchedulingManagment.Click += new System.EventHandler(this.mnuSchedulingManagment_Click);315 //316 // menuItem5317 //318 this.menuItem5.Index = 5;319 this.menuItem5.Text = "-";320 //321 // mnuClose322 //323 this.mnuClose.Index = 6;324 this.mnuClose.Shortcut = System.Windows.Forms.Shortcut.CtrlW;325 this.mnuClose.Text = "&Close";326 this.mnuClose.Click += new System.EventHandler(this.mnuClose_Click);327 //328 // mnuAvailability329 //330 this.mnuAvailability.Index = 1;331 this.mnuAvailability.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {332 this.mnuAddNewAV,333 this.mnuRemoveAV,334 this.mnuEditAV});335 this.mnuAvailability.Text = "&Access Blocks";336 this.mnuAvailability.Popup += new System.EventHandler(this.mnuAvailability_Popup);337 //338 // mnuAddNewAV339 //340 this.mnuAddNewAV.Index = 0;341 this.mnuAddNewAV.Shortcut = System.Windows.Forms.Shortcut.CtrlN;342 this.mnuAddNewAV.Text = "Add &New Block";343 this.mnuAddNewAV.Click += new System.EventHandler(this.mnuAddNewAV_Click);344 //345 // mnuRemoveAV346 //347 this.mnuRemoveAV.Index = 1;348 this.mnuRemoveAV.Shortcut = System.Windows.Forms.Shortcut.CtrlR;349 this.mnuRemoveAV.Text = "&Remove Block";350 this.mnuRemoveAV.Click += new System.EventHandler(this.mnuRemoveAV_Click);351 //352 // mnuEditAV353 //354 this.mnuEditAV.Index = 2;355 this.mnuEditAV.Shortcut = System.Windows.Forms.Shortcut.CtrlE;356 this.mnuEditAV.Text = "&Edit Block";357 this.mnuEditAV.Click += new System.EventHandler(this.mnuEditAV_Click);358 //359 // mnuCalendar360 //361 this.mnuCalendar.Index = 2;362 this.mnuCalendar.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {363 this.mnu1Day,364 this.mnu5Day,365 this.mnu7Day,366 this.menuItem7,367 this.mnuTimeScale,368 this.mnuViewRightPanel});369 this.mnuCalendar.Text = "&View";370 //371 // mnu1Day372 //373 this.mnu1Day.Index = 0;374 this.mnu1Day.Shortcut = System.Windows.Forms.Shortcut.Ctrl1;375 this.mnu1Day.Text = "&1-Day View";376 this.mnu1Day.Click += new System.EventHandler(this.mnu1Day_Click);377 //378 // mnu5Day379 //380 this.mnu5Day.Index = 1;381 this.mnu5Day.Shortcut = System.Windows.Forms.Shortcut.Ctrl5;382 this.mnu5Day.Text = "&5-Day View";383 this.mnu5Day.Click += new System.EventHandler(this.mnu5Day_Click);384 //385 // mnu7Day386 //387 this.mnu7Day.Index = 2;388 this.mnu7Day.Shortcut = System.Windows.Forms.Shortcut.Ctrl7;389 this.mnu7Day.Text = "&7-Day View";390 this.mnu7Day.Click += new System.EventHandler(this.mnu7Day_Click);391 //392 // menuItem7393 //394 this.menuItem7.Index = 3;395 this.menuItem7.Text = "-";396 //397 // mnuTimeScale398 //399 this.mnuTimeScale.Index = 4;400 this.mnuTimeScale.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {401 this.mnu10Minute,402 this.mnu15Minute,403 this.mnu20Minute,404 this.mnu30Minute});405 this.mnuTimeScale.Text = "&Time Scale";406 //407 // mnu10Minute408 //409 this.mnu10Minute.Index = 0;410 this.mnu10Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl0;411 this.mnu10Minute.Text = "&10-Minute";412 this.mnu10Minute.Click += new System.EventHandler(this.mnu10Minute_Click);413 //414 // mnu15Minute415 //416 this.mnu15Minute.Index = 1;417 this.mnu15Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl4;418 this.mnu15Minute.Text = "&15-Minute";419 this.mnu15Minute.Click += new System.EventHandler(this.mnu15Minute_Click);420 //421 // mnu20Minute422 //423 this.mnu20Minute.Index = 2;424 this.mnu20Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl3;425 this.mnu20Minute.Text = "&20-Minute";426 this.mnu20Minute.Click += new System.EventHandler(this.mnu20Minute_Click);427 //428 // mnu30Minute429 //430 this.mnu30Minute.Index = 3;431 this.mnu30Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl2;432 this.mnu30Minute.Text = "&30-Minute";433 this.mnu30Minute.Click += new System.EventHandler(this.mnu30Minute_Click);434 //435 // mnuViewRightPanel436 //437 this.mnuViewRightPanel.Index = 5;438 this.mnuViewRightPanel.Text = "&Access Block Clipboard";439 this.mnuViewRightPanel.Click += new System.EventHandler(this.mnuViewRightPanel_Click);440 //441 // mnuHelp442 //443 this.mnuHelp.Index = 3;444 this.mnuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {445 this.mnuHelpAbout});446 this.mnuHelp.Text = "&Help";447 //448 // mnuHelpAbout449 //450 this.mnuHelpAbout.Index = 0;451 this.mnuHelpAbout.Text = "&About";452 this.mnuHelpAbout.Click += new System.EventHandler(this.mnuHelpAbout_Click);453 //454 // splitter1455 //456 this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;457 this.splitter1.Location = new System.Drawing.Point(720, 24);458 this.splitter1.Name = "splitter1";459 this.splitter1.Size = new System.Drawing.Size(8, 345);460 this.splitter1.TabIndex = 6;461 this.splitter1.TabStop = false;462 //463 // saveAccessBlocksWorker464 //465 this.saveAccessBlocksWorker.WorkerReportsProgress = true;466 this.saveAccessBlocksWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.saveAccessBlocksWorker_DoWork);467 this.saveAccessBlocksWorker.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.saveAccessBlocksWorker_ProgressChanged);468 this.saveAccessBlocksWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.saveAccessBlocksWorker_RunWorkerCompleted);469 223 // 470 224 // calendarGrid1 … … 495 249 this.calendarGrid1.CGSelectionChanged += new IndianHealthService.ClinicalScheduling.CGSelectionChangedHandler(this.calendarGrid1_CGSelectionChanged); 496 250 this.calendarGrid1.DoubleClick += new System.EventHandler(this.calendarGrid1_DoubleClick); 251 // 252 // ctxCalendarGrid 253 // 254 this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 255 this.ctxCalGridAdd, 256 this.ctxCalGridEdit, 257 this.ctxCalGridDelete}); 258 this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup); 259 // 260 // ctxCalGridAdd 261 // 262 this.ctxCalGridAdd.Index = 0; 263 this.ctxCalGridAdd.Text = "Add New Access Block"; 264 this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click); 265 // 266 // ctxCalGridEdit 267 // 268 this.ctxCalGridEdit.Index = 1; 269 this.ctxCalGridEdit.Text = "Edit Access Block"; 270 this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click); 271 // 272 // ctxCalGridDelete 273 // 274 this.ctxCalGridDelete.Index = 2; 275 this.ctxCalGridDelete.Text = "Delete Access Block"; 276 this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click); 277 // 278 // tvSchedules 279 // 280 this.tvSchedules.BackColor = System.Drawing.SystemColors.ControlLight; 281 this.tvSchedules.Dock = System.Windows.Forms.DockStyle.Left; 282 this.tvSchedules.HotTracking = true; 283 this.tvSchedules.Location = new System.Drawing.Point(0, 0); 284 this.tvSchedules.Name = "tvSchedules"; 285 this.tvSchedules.Size = new System.Drawing.Size(8, 393); 286 this.tvSchedules.Sorted = true; 287 this.tvSchedules.TabIndex = 5; 288 // 289 // mainMenu1 290 // 291 this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 292 this.menuItem1, 293 this.mnuAvailability, 294 this.mnuCalendar, 295 this.mnuHelp}); 296 // 297 // menuItem1 298 // 299 this.menuItem1.Index = 0; 300 this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 301 this.mnuLoadTemplate, 302 this.mnuSaveTemplate, 303 this.mnuDeleteAllSlots, 304 this.menuItem6, 305 this.mnuSchedulingManagment, 306 this.menuItem5, 307 this.mnuClose}); 308 this.menuItem1.Text = "&File"; 309 // 310 // mnuLoadTemplate 311 // 312 this.mnuLoadTemplate.Index = 0; 313 this.mnuLoadTemplate.Shortcut = System.Windows.Forms.Shortcut.CtrlA; 314 this.mnuLoadTemplate.Text = "&Apply Template"; 315 this.mnuLoadTemplate.Click += new System.EventHandler(this.mnuLoadTemplate_Click); 316 // 317 // mnuSaveTemplate 318 // 319 this.mnuSaveTemplate.Index = 1; 320 this.mnuSaveTemplate.Shortcut = System.Windows.Forms.Shortcut.CtrlS; 321 this.mnuSaveTemplate.Text = "&Save Template"; 322 this.mnuSaveTemplate.Click += new System.EventHandler(this.mnuSaveTemplate_Click); 323 // 324 // mnuDeleteAllSlots 325 // 326 this.mnuDeleteAllSlots.Index = 2; 327 this.mnuDeleteAllSlots.Shortcut = System.Windows.Forms.Shortcut.CtrlD; 328 this.mnuDeleteAllSlots.Text = "&Delete All Slots"; 329 this.mnuDeleteAllSlots.Click += new System.EventHandler(this.mnuDeleteAllSlots_Click); 330 // 331 // menuItem6 332 // 333 this.menuItem6.Index = 3; 334 this.menuItem6.Text = "-"; 335 // 336 // mnuSchedulingManagment 337 // 338 this.mnuSchedulingManagment.Index = 4; 339 this.mnuSchedulingManagment.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftM; 340 this.mnuSchedulingManagment.Text = "Scheduling &Management"; 341 this.mnuSchedulingManagment.Click += new System.EventHandler(this.mnuSchedulingManagment_Click); 342 // 343 // menuItem5 344 // 345 this.menuItem5.Index = 5; 346 this.menuItem5.Text = "-"; 347 // 348 // mnuClose 349 // 350 this.mnuClose.Index = 6; 351 this.mnuClose.Shortcut = System.Windows.Forms.Shortcut.CtrlW; 352 this.mnuClose.Text = "&Close"; 353 this.mnuClose.Click += new System.EventHandler(this.mnuClose_Click); 354 // 355 // mnuAvailability 356 // 357 this.mnuAvailability.Index = 1; 358 this.mnuAvailability.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 359 this.mnuAddNewAV, 360 this.mnuRemoveAV, 361 this.mnuEditAV}); 362 this.mnuAvailability.Text = "&Access Blocks"; 363 this.mnuAvailability.Popup += new System.EventHandler(this.mnuAvailability_Popup); 364 // 365 // mnuAddNewAV 366 // 367 this.mnuAddNewAV.Index = 0; 368 this.mnuAddNewAV.Shortcut = System.Windows.Forms.Shortcut.CtrlN; 369 this.mnuAddNewAV.Text = "Add &New Block"; 370 this.mnuAddNewAV.Click += new System.EventHandler(this.mnuAddNewAV_Click); 371 // 372 // mnuRemoveAV 373 // 374 this.mnuRemoveAV.Index = 1; 375 this.mnuRemoveAV.Shortcut = System.Windows.Forms.Shortcut.CtrlR; 376 this.mnuRemoveAV.Text = "&Remove Block"; 377 this.mnuRemoveAV.Click += new System.EventHandler(this.mnuRemoveAV_Click); 378 // 379 // mnuEditAV 380 // 381 this.mnuEditAV.Index = 2; 382 this.mnuEditAV.Shortcut = System.Windows.Forms.Shortcut.CtrlE; 383 this.mnuEditAV.Text = "&Edit Block"; 384 this.mnuEditAV.Click += new System.EventHandler(this.mnuEditAV_Click); 385 // 386 // mnuCalendar 387 // 388 this.mnuCalendar.Index = 2; 389 this.mnuCalendar.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 390 this.mnu1Day, 391 this.mnu5Day, 392 this.mnu7Day, 393 this.menuItem7, 394 this.mnuTimeScale, 395 this.mnuViewRightPanel}); 396 this.mnuCalendar.Text = "&View"; 397 // 398 // mnu1Day 399 // 400 this.mnu1Day.Index = 0; 401 this.mnu1Day.Shortcut = System.Windows.Forms.Shortcut.Ctrl1; 402 this.mnu1Day.Text = "&1-Day View"; 403 this.mnu1Day.Click += new System.EventHandler(this.mnu1Day_Click); 404 // 405 // mnu5Day 406 // 407 this.mnu5Day.Index = 1; 408 this.mnu5Day.Shortcut = System.Windows.Forms.Shortcut.Ctrl5; 409 this.mnu5Day.Text = "&5-Day View"; 410 this.mnu5Day.Click += new System.EventHandler(this.mnu5Day_Click); 411 // 412 // mnu7Day 413 // 414 this.mnu7Day.Index = 2; 415 this.mnu7Day.Shortcut = System.Windows.Forms.Shortcut.Ctrl7; 416 this.mnu7Day.Text = "&7-Day View"; 417 this.mnu7Day.Click += new System.EventHandler(this.mnu7Day_Click); 418 // 419 // menuItem7 420 // 421 this.menuItem7.Index = 3; 422 this.menuItem7.Text = "-"; 423 // 424 // mnuTimeScale 425 // 426 this.mnuTimeScale.Index = 4; 427 this.mnuTimeScale.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 428 this.mnu10Minute, 429 this.mnu15Minute, 430 this.mnu20Minute, 431 this.mnu30Minute}); 432 this.mnuTimeScale.Text = "&Time Scale"; 433 // 434 // mnu10Minute 435 // 436 this.mnu10Minute.Index = 0; 437 this.mnu10Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl0; 438 this.mnu10Minute.Text = "&10-Minute"; 439 this.mnu10Minute.Click += new System.EventHandler(this.mnu10Minute_Click); 440 // 441 // mnu15Minute 442 // 443 this.mnu15Minute.Index = 1; 444 this.mnu15Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl4; 445 this.mnu15Minute.Text = "&15-Minute"; 446 this.mnu15Minute.Click += new System.EventHandler(this.mnu15Minute_Click); 447 // 448 // mnu20Minute 449 // 450 this.mnu20Minute.Index = 2; 451 this.mnu20Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl3; 452 this.mnu20Minute.Text = "&20-Minute"; 453 this.mnu20Minute.Click += new System.EventHandler(this.mnu20Minute_Click); 454 // 455 // mnu30Minute 456 // 457 this.mnu30Minute.Index = 3; 458 this.mnu30Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl2; 459 this.mnu30Minute.Text = "&30-Minute"; 460 this.mnu30Minute.Click += new System.EventHandler(this.mnu30Minute_Click); 461 // 462 // mnuViewRightPanel 463 // 464 this.mnuViewRightPanel.Index = 5; 465 this.mnuViewRightPanel.Text = "&Access Block Clipboard"; 466 this.mnuViewRightPanel.Click += new System.EventHandler(this.mnuViewRightPanel_Click); 467 // 468 // mnuHelp 469 // 470 this.mnuHelp.Index = 3; 471 this.mnuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 472 this.mnuHelpAbout}); 473 this.mnuHelp.Text = "&Help"; 474 // 475 // mnuHelpAbout 476 // 477 this.mnuHelpAbout.Index = 0; 478 this.mnuHelpAbout.Text = "&About"; 479 this.mnuHelpAbout.Click += new System.EventHandler(this.mnuHelpAbout_Click); 480 // 481 // splitter1 482 // 483 this.splitter1.Dock = System.Windows.Forms.DockStyle.Right; 484 this.splitter1.Location = new System.Drawing.Point(720, 24); 485 this.splitter1.Name = "splitter1"; 486 this.splitter1.Size = new System.Drawing.Size(8, 345); 487 this.splitter1.TabIndex = 6; 488 this.splitter1.TabStop = false; 489 // 490 // saveAccessBlocksWorker 491 // 492 this.saveAccessBlocksWorker.WorkerReportsProgress = true; 493 this.saveAccessBlocksWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.saveAccessBlocksWorker_DoWork); 494 this.saveAccessBlocksWorker.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.saveAccessBlocksWorker_ProgressChanged); 495 this.saveAccessBlocksWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.saveAccessBlocksWorker_RunWorkerCompleted); 497 496 // 498 497 // CGAVView … … 575 574 private System.Windows.Forms.MenuItem ctxCalGridDelete; 576 575 private BackgroundWorker saveAccessBlocksWorker; 577 private MenuItem mnuDeleteAll Appointments;576 private MenuItem mnuDeleteAllSlots; 578 577 private bool m_bDragDropStart = false; 579 578 … … 769 768 }//End AvailabilityAddNew 770 769 771 private void Mass AppointmentDelete()770 private void MassSlotDelete() 772 771 { 773 772 DialogResult msgResult = MessageBox.Show("Delete all Access Slots?", "Delete Slots?",MessageBoxButtons.YesNo); … … 1557 1556 } 1558 1557 1559 private void mnuDeleteAll Appointments_Click(object sender, EventArgs e)1558 private void mnuDeleteAllSlots_Click(object sender, EventArgs e) 1560 1559 { 1561 MassAppointmentDelete(); 1560 1562 1561 } 1562 1563 1563 } 1564 1564 } -
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
r913 r1038 1031 1031 /* 1032 1032 * BSDX NOSHOW RPC Returns 1 in ERRORID if successfully sets NOSHOW flag in BSDX APPOINTMENT and, if applicable, File 2 1033 *Otherwise, returns 0 for failure and errormessage in ERRORTXT 1034 *THIS routine returns "" if success or the message in ERRORTEXT if failed 1035 *Exceptions should be caught by caller 1033 *Otherwise, returns negative numbers for failure and errormessage in ERRORTXT 1036 1034 * 1037 1035 */ -
Scheduling/trunk/cs/bsdx0200GUISourceCode/CalendarGrid.cs
r1027 r1038 667 667 int startTotalMinutesoffset = (int) startTime.TimeOfDay.TotalMinutes; 668 668 int endTotalMinutesoffset = (int) endTime.TimeOfDay.TotalMinutes; 669 670 // To fix a bug with 1 day view: if the start time of appt is before Calendar Start Date, don't draw anything. 671 if (startTime < this.m_dtStart) 672 { 673 bRet = false; 674 return rectangle; 675 } 676 669 677 // if grid has more than one reource 670 678 if (this.m_sResourcesArray.Count > 1) … … 677 685 else 678 686 { 679 //columnToPutAppt = (startTime - this.m_dtStart).Days + 1;680 //test sam681 687 columnToPutAppt = (startTime - this.m_dtStart).Days + 1; 682 688 } 683 if (columnToPutAppt < 1) 684 { 685 bRet = false; 686 return rectangle; 687 } 689 // this if should not get tripped; it did the same function as the new first if check. 690 //if (columnToPutAppt < 1) 691 //{ 692 // bRet = false; 693 // return rectangle; 694 //} 688 695 originX = col0Width + (cellWidth * (columnToPutAppt - 1)); 689 696 int num8 = startTotalMinutesoffset + this.m_nTimeScale; -
Scheduling/trunk/cs/bsdx0200GUISourceCode/UCPatientAppts.cs
r1011 r1038 32 32 catch (Exception ex) { MessageBox.Show(ex.Message); } 33 33 34 dvAppt = new DataView(dtAppt);35 dvAppt.Sort = "ApptDate ASC";36 34 SetPastFilter(false); 37 dgAppts.DataSource = dvAppt;38 35 36 // dgAppts.DataSource = dvAppt; 39 37 } 40 38 /// <summary> 41 39 /// Sets the filter for the DataView on whether to show past appointments or not 40 /// Uses LINQ. Must use .Net 3.5 or above. Hope the LINQ is self-explanatory. 42 41 /// </summary> 43 42 /// <param name="ShowPastAppts">boolean - self explanatory</param> 44 43 void SetPastFilter(bool ShowPastAppts) 45 44 { 46 if (ShowPastAppts) dvAppt.RowFilter = ""; 47 else dvAppt.RowFilter = "ApptDate > " + "'" + DateTime.Today.ToShortDateString() + "'"; 45 if (ShowPastAppts) 46 { 47 var uncancelledAppts = from appt in dtAppt.AsEnumerable() 48 orderby appt.Field<DateTime>("ApptDate") 49 select appt; 50 51 dvAppt = uncancelledAppts.AsDataView(); 52 } 53 else 54 { 55 var uncancelledAppts = from appt in dtAppt.AsEnumerable() 56 where appt.Field<DateTime>("ApptDate") > DateTime.Today 57 orderby appt.Field<DateTime>("ApptDate") 58 select appt; 59 60 dvAppt = uncancelledAppts.AsDataView(); 61 } 62 63 // It's strange that I have to bind it here; but look like dvAppt points to a new memory 64 // location when reassigned up above in the LINQ statement, so we have to rebind it. 65 dgAppts.DataSource = dvAppt; 48 66 } 49 67
Note:
See TracChangeset
for help on using the changeset viewer.