Changeset 913 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGAVView.cs
- Timestamp:
- Aug 17, 2010, 8:50:19 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGAVView.cs
r908 r913 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();62 61 this.ctxCalendarGrid = new System.Windows.Forms.ContextMenu(); 63 62 this.ctxCalGridAdd = new System.Windows.Forms.MenuItem(); … … 91 90 this.mnuHelpAbout = new System.Windows.Forms.MenuItem(); 92 91 this.splitter1 = new System.Windows.Forms.Splitter(); 92 this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid(); 93 93 this.panelRight.SuspendLayout(); 94 94 this.panelClip.SuspendLayout(); … … 104 104 this.panelRight.Location = new System.Drawing.Point(728, 0); 105 105 this.panelRight.Name = "panelRight"; 106 this.panelRight.Size = new System.Drawing.Size(120, 450);106 this.panelRight.Size = new System.Drawing.Size(120, 517); 107 107 this.panelRight.TabIndex = 1; 108 108 // … … 165 165 this.panelBottom.Controls.Add(this.statusBar1); 166 166 this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom; 167 this.panelBottom.Location = new System.Drawing.Point(8, 4 26);167 this.panelBottom.Location = new System.Drawing.Point(8, 493); 168 168 this.panelBottom.Name = "panelBottom"; 169 169 this.panelBottom.Size = new System.Drawing.Size(720, 24); … … 217 217 this.panelCenter.Location = new System.Drawing.Point(8, 24); 218 218 this.panelCenter.Name = "panelCenter"; 219 this.panelCenter.Size = new System.Drawing.Size(712, 4 02);219 this.panelCenter.Size = new System.Drawing.Size(712, 469); 220 220 this.panelCenter.TabIndex = 4; 221 // 222 // ctxCalendarGrid 223 // 224 this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 225 this.ctxCalGridAdd, 226 this.ctxCalGridEdit, 227 this.ctxCalGridDelete}); 228 this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup); 229 // 230 // ctxCalGridAdd 231 // 232 this.ctxCalGridAdd.Index = 0; 233 this.ctxCalGridAdd.Text = "Add New Access Block"; 234 this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click); 235 // 236 // ctxCalGridEdit 237 // 238 this.ctxCalGridEdit.Index = 1; 239 this.ctxCalGridEdit.Text = "Edit Access Block"; 240 this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click); 241 // 242 // ctxCalGridDelete 243 // 244 this.ctxCalGridDelete.Index = 2; 245 this.ctxCalGridDelete.Text = "Delete Access Block"; 246 this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click); 247 // 248 // tvSchedules 249 // 250 this.tvSchedules.BackColor = System.Drawing.SystemColors.ControlLight; 251 this.tvSchedules.Dock = System.Windows.Forms.DockStyle.Left; 252 this.tvSchedules.HotTracking = true; 253 this.tvSchedules.Location = new System.Drawing.Point(0, 0); 254 this.tvSchedules.Name = "tvSchedules"; 255 this.tvSchedules.Size = new System.Drawing.Size(8, 517); 256 this.tvSchedules.Sorted = true; 257 this.tvSchedules.TabIndex = 5; 258 // 259 // mainMenu1 260 // 261 this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 262 this.menuItem1, 263 this.mnuAvailability, 264 this.mnuCalendar, 265 this.mnuHelp}); 266 // 267 // menuItem1 268 // 269 this.menuItem1.Index = 0; 270 this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 271 this.mnuLoadTemplate, 272 this.mnuSaveTemplate, 273 this.menuItem6, 274 this.mnuSchedulingManagment, 275 this.menuItem5, 276 this.mnuClose}); 277 this.menuItem1.Text = "&File"; 278 // 279 // mnuLoadTemplate 280 // 281 this.mnuLoadTemplate.Index = 0; 282 this.mnuLoadTemplate.Shortcut = System.Windows.Forms.Shortcut.CtrlA; 283 this.mnuLoadTemplate.Text = "&Apply Template"; 284 this.mnuLoadTemplate.Click += new System.EventHandler(this.mnuLoadTemplate_Click); 285 // 286 // mnuSaveTemplate 287 // 288 this.mnuSaveTemplate.Index = 1; 289 this.mnuSaveTemplate.Shortcut = System.Windows.Forms.Shortcut.CtrlS; 290 this.mnuSaveTemplate.Text = "&Save Template"; 291 this.mnuSaveTemplate.Click += new System.EventHandler(this.mnuSaveTemplate_Click); 292 // 293 // menuItem6 294 // 295 this.menuItem6.Index = 2; 296 this.menuItem6.Text = "-"; 297 // 298 // mnuSchedulingManagment 299 // 300 this.mnuSchedulingManagment.Index = 3; 301 this.mnuSchedulingManagment.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftM; 302 this.mnuSchedulingManagment.Text = "Scheduling &Management"; 303 this.mnuSchedulingManagment.Click += new System.EventHandler(this.mnuSchedulingManagment_Click); 304 // 305 // menuItem5 306 // 307 this.menuItem5.Index = 4; 308 this.menuItem5.Text = "-"; 309 // 310 // mnuClose 311 // 312 this.mnuClose.Index = 5; 313 this.mnuClose.Shortcut = System.Windows.Forms.Shortcut.CtrlW; 314 this.mnuClose.Text = "&Close"; 315 this.mnuClose.Click += new System.EventHandler(this.mnuClose_Click); 316 // 317 // mnuAvailability 318 // 319 this.mnuAvailability.Index = 1; 320 this.mnuAvailability.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 321 this.mnuAddNewAV, 322 this.mnuRemoveAV, 323 this.mnuEditAV}); 324 this.mnuAvailability.Text = "&Access Blocks"; 325 this.mnuAvailability.Popup += new System.EventHandler(this.mnuAvailability_Popup); 326 // 327 // mnuAddNewAV 328 // 329 this.mnuAddNewAV.Index = 0; 330 this.mnuAddNewAV.Shortcut = System.Windows.Forms.Shortcut.CtrlN; 331 this.mnuAddNewAV.Text = "Add &New Block"; 332 this.mnuAddNewAV.Click += new System.EventHandler(this.mnuAddNewAV_Click); 333 // 334 // mnuRemoveAV 335 // 336 this.mnuRemoveAV.Index = 1; 337 this.mnuRemoveAV.Shortcut = System.Windows.Forms.Shortcut.CtrlR; 338 this.mnuRemoveAV.Text = "&Remove Block"; 339 this.mnuRemoveAV.Click += new System.EventHandler(this.mnuRemoveAV_Click); 340 // 341 // mnuEditAV 342 // 343 this.mnuEditAV.Index = 2; 344 this.mnuEditAV.Shortcut = System.Windows.Forms.Shortcut.CtrlE; 345 this.mnuEditAV.Text = "&Edit Block"; 346 this.mnuEditAV.Click += new System.EventHandler(this.mnuEditAV_Click); 347 // 348 // mnuCalendar 349 // 350 this.mnuCalendar.Index = 2; 351 this.mnuCalendar.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 352 this.mnu1Day, 353 this.mnu5Day, 354 this.mnu7Day, 355 this.menuItem7, 356 this.mnuTimeScale, 357 this.mnuViewRightPanel}); 358 this.mnuCalendar.Text = "&View"; 359 // 360 // mnu1Day 361 // 362 this.mnu1Day.Index = 0; 363 this.mnu1Day.Shortcut = System.Windows.Forms.Shortcut.Ctrl1; 364 this.mnu1Day.Text = "&1-Day View"; 365 this.mnu1Day.Click += new System.EventHandler(this.mnu1Day_Click); 366 // 367 // mnu5Day 368 // 369 this.mnu5Day.Index = 1; 370 this.mnu5Day.Shortcut = System.Windows.Forms.Shortcut.Ctrl5; 371 this.mnu5Day.Text = "&5-Day View"; 372 this.mnu5Day.Click += new System.EventHandler(this.mnu5Day_Click); 373 // 374 // mnu7Day 375 // 376 this.mnu7Day.Index = 2; 377 this.mnu7Day.Shortcut = System.Windows.Forms.Shortcut.Ctrl7; 378 this.mnu7Day.Text = "&7-Day View"; 379 this.mnu7Day.Click += new System.EventHandler(this.mnu7Day_Click); 380 // 381 // menuItem7 382 // 383 this.menuItem7.Index = 3; 384 this.menuItem7.Text = "-"; 385 // 386 // mnuTimeScale 387 // 388 this.mnuTimeScale.Index = 4; 389 this.mnuTimeScale.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 390 this.mnu10Minute, 391 this.mnu15Minute, 392 this.mnu20Minute, 393 this.mnu30Minute}); 394 this.mnuTimeScale.Text = "&Time Scale"; 395 // 396 // mnu10Minute 397 // 398 this.mnu10Minute.Index = 0; 399 this.mnu10Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl0; 400 this.mnu10Minute.Text = "&10-Minute"; 401 this.mnu10Minute.Click += new System.EventHandler(this.mnu10Minute_Click); 402 // 403 // mnu15Minute 404 // 405 this.mnu15Minute.Index = 1; 406 this.mnu15Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl4; 407 this.mnu15Minute.Text = "&15-Minute"; 408 this.mnu15Minute.Click += new System.EventHandler(this.mnu15Minute_Click); 409 // 410 // mnu20Minute 411 // 412 this.mnu20Minute.Index = 2; 413 this.mnu20Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl3; 414 this.mnu20Minute.Text = "&20-Minute"; 415 this.mnu20Minute.Click += new System.EventHandler(this.mnu20Minute_Click); 416 // 417 // mnu30Minute 418 // 419 this.mnu30Minute.Index = 3; 420 this.mnu30Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl2; 421 this.mnu30Minute.Text = "&30-Minute"; 422 this.mnu30Minute.Click += new System.EventHandler(this.mnu30Minute_Click); 423 // 424 // mnuViewRightPanel 425 // 426 this.mnuViewRightPanel.Index = 5; 427 this.mnuViewRightPanel.Text = "&Access Block Clipboard"; 428 this.mnuViewRightPanel.Click += new System.EventHandler(this.mnuViewRightPanel_Click); 429 // 430 // mnuHelp 431 // 432 this.mnuHelp.Index = 3; 433 this.mnuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 434 this.mnuHelpAbout}); 435 this.mnuHelp.Text = "&Help"; 436 // 437 // mnuHelpAbout 438 // 439 this.mnuHelpAbout.Index = 0; 440 this.mnuHelpAbout.Text = "&About"; 441 this.mnuHelpAbout.Click += new System.EventHandler(this.mnuHelpAbout_Click); 442 // 443 // splitter1 444 // 445 this.splitter1.Dock = System.Windows.Forms.DockStyle.Right; 446 this.splitter1.Location = new System.Drawing.Point(720, 24); 447 this.splitter1.Name = "splitter1"; 448 this.splitter1.Size = new System.Drawing.Size(8, 469); 449 this.splitter1.TabIndex = 6; 450 this.splitter1.TabStop = false; 221 451 // 222 452 // calendarGrid1 … … 239 469 this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources"))); 240 470 this.calendarGrid1.SelectedAppointment = 0; 241 this.calendarGrid1.Size = new System.Drawing.Size(712, 4 02);471 this.calendarGrid1.Size = new System.Drawing.Size(712, 469); 242 472 this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0); 243 473 this.calendarGrid1.TabIndex = 2; … … 248 478 this.calendarGrid1.CGAppointmentAdded += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentAdded); 249 479 // 250 // ctxCalendarGrid251 //252 this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {253 this.ctxCalGridAdd,254 this.ctxCalGridEdit,255 this.ctxCalGridDelete});256 this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup);257 //258 // ctxCalGridAdd259 //260 this.ctxCalGridAdd.Index = 0;261 this.ctxCalGridAdd.Text = "Add New Access Block";262 this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click);263 //264 // ctxCalGridEdit265 //266 this.ctxCalGridEdit.Index = 1;267 this.ctxCalGridEdit.Text = "Edit Access Block";268 this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click);269 //270 // ctxCalGridDelete271 //272 this.ctxCalGridDelete.Index = 2;273 this.ctxCalGridDelete.Text = "Delete Access Block";274 this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click);275 //276 // tvSchedules277 //278 this.tvSchedules.BackColor = System.Drawing.SystemColors.ControlLight;279 this.tvSchedules.Dock = System.Windows.Forms.DockStyle.Left;280 this.tvSchedules.HotTracking = true;281 this.tvSchedules.Location = new System.Drawing.Point(0, 0);282 this.tvSchedules.Name = "tvSchedules";283 this.tvSchedules.Size = new System.Drawing.Size(8, 450);284 this.tvSchedules.Sorted = true;285 this.tvSchedules.TabIndex = 5;286 //287 // mainMenu1288 //289 this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {290 this.menuItem1,291 this.mnuAvailability,292 this.mnuCalendar,293 this.mnuHelp});294 //295 // menuItem1296 //297 this.menuItem1.Index = 0;298 this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {299 this.mnuLoadTemplate,300 this.mnuSaveTemplate,301 this.menuItem6,302 this.mnuSchedulingManagment,303 this.menuItem5,304 this.mnuClose});305 this.menuItem1.Text = "&File";306 //307 // mnuLoadTemplate308 //309 this.mnuLoadTemplate.Index = 0;310 this.mnuLoadTemplate.Text = "&Apply Template";311 this.mnuLoadTemplate.Click += new System.EventHandler(this.mnuLoadTemplate_Click);312 //313 // mnuSaveTemplate314 //315 this.mnuSaveTemplate.Index = 1;316 this.mnuSaveTemplate.Text = "&Save Template";317 this.mnuSaveTemplate.Click += new System.EventHandler(this.mnuSaveTemplate_Click);318 //319 // menuItem6320 //321 this.menuItem6.Index = 2;322 this.menuItem6.Text = "-";323 //324 // mnuSchedulingManagment325 //326 this.mnuSchedulingManagment.Index = 3;327 this.mnuSchedulingManagment.Text = "Scheduling &Management";328 this.mnuSchedulingManagment.Click += new System.EventHandler(this.mnuSchedulingManagment_Click);329 //330 // menuItem5331 //332 this.menuItem5.Index = 4;333 this.menuItem5.Text = "-";334 //335 // mnuClose336 //337 this.mnuClose.Index = 5;338 this.mnuClose.Text = "&Close";339 this.mnuClose.Click += new System.EventHandler(this.mnuClose_Click);340 //341 // mnuAvailability342 //343 this.mnuAvailability.Index = 1;344 this.mnuAvailability.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {345 this.mnuAddNewAV,346 this.mnuRemoveAV,347 this.mnuEditAV});348 this.mnuAvailability.Text = "&Access Blocks";349 this.mnuAvailability.Popup += new System.EventHandler(this.mnuAvailability_Popup);350 //351 // mnuAddNewAV352 //353 this.mnuAddNewAV.Index = 0;354 this.mnuAddNewAV.Text = "&Add New Block";355 this.mnuAddNewAV.Click += new System.EventHandler(this.mnuAddNewAV_Click);356 //357 // mnuRemoveAV358 //359 this.mnuRemoveAV.Index = 1;360 this.mnuRemoveAV.Text = "&Remove Block";361 this.mnuRemoveAV.Click += new System.EventHandler(this.mnuRemoveAV_Click);362 //363 // mnuEditAV364 //365 this.mnuEditAV.Index = 2;366 this.mnuEditAV.Text = "&Edit Block";367 this.mnuEditAV.Click += new System.EventHandler(this.mnuEditAV_Click);368 //369 // mnuCalendar370 //371 this.mnuCalendar.Index = 2;372 this.mnuCalendar.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {373 this.mnu1Day,374 this.mnu5Day,375 this.mnu7Day,376 this.menuItem7,377 this.mnuTimeScale,378 this.mnuViewRightPanel});379 this.mnuCalendar.Text = "&View";380 //381 // mnu1Day382 //383 this.mnu1Day.Index = 0;384 this.mnu1Day.Text = "&1-Day View";385 this.mnu1Day.Click += new System.EventHandler(this.mnu1Day_Click);386 //387 // mnu5Day388 //389 this.mnu5Day.Index = 1;390 this.mnu5Day.Text = "&5-Day View";391 this.mnu5Day.Click += new System.EventHandler(this.mnu5Day_Click);392 //393 // mnu7Day394 //395 this.mnu7Day.Index = 2;396 this.mnu7Day.Text = "&7-Day View";397 this.mnu7Day.Click += new System.EventHandler(this.mnu7Day_Click);398 //399 // menuItem7400 //401 this.menuItem7.Index = 3;402 this.menuItem7.Text = "-";403 //404 // mnuTimeScale405 //406 this.mnuTimeScale.Index = 4;407 this.mnuTimeScale.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {408 this.mnu10Minute,409 this.mnu15Minute,410 this.mnu20Minute,411 this.mnu30Minute});412 this.mnuTimeScale.Text = "&Time Scale";413 //414 // mnu10Minute415 //416 this.mnu10Minute.Index = 0;417 this.mnu10Minute.Text = "&10-Minute";418 this.mnu10Minute.Click += new System.EventHandler(this.mnu10Minute_Click);419 //420 // mnu15Minute421 //422 this.mnu15Minute.Index = 1;423 this.mnu15Minute.Text = "&15-Minute";424 this.mnu15Minute.Click += new System.EventHandler(this.mnu15Minute_Click);425 //426 // mnu20Minute427 //428 this.mnu20Minute.Index = 2;429 this.mnu20Minute.Text = "&20-Minute";430 this.mnu20Minute.Click += new System.EventHandler(this.mnu20Minute_Click);431 //432 // mnu30Minute433 //434 this.mnu30Minute.Index = 3;435 this.mnu30Minute.Text = "&30-Minute";436 this.mnu30Minute.Click += new System.EventHandler(this.mnu30Minute_Click);437 //438 // mnuViewRightPanel439 //440 this.mnuViewRightPanel.Index = 5;441 this.mnuViewRightPanel.Text = "&Access Block Clipboard";442 this.mnuViewRightPanel.Click += new System.EventHandler(this.mnuViewRightPanel_Click);443 //444 // mnuHelp445 //446 this.mnuHelp.Index = 3;447 this.mnuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {448 this.mnuHelpAbout});449 this.mnuHelp.Text = "&Help";450 //451 // mnuHelpAbout452 //453 this.mnuHelpAbout.Index = 0;454 this.mnuHelpAbout.Text = "&About";455 this.mnuHelpAbout.Click += new System.EventHandler(this.mnuHelpAbout_Click);456 //457 // splitter1458 //459 this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;460 this.splitter1.Location = new System.Drawing.Point(720, 24);461 this.splitter1.Name = "splitter1";462 this.splitter1.Size = new System.Drawing.Size(8, 402);463 this.splitter1.TabIndex = 6;464 this.splitter1.TabStop = false;465 //466 480 // CGAVView 467 481 // 468 482 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 469 this.ClientSize = new System.Drawing.Size(848, 450);483 this.ClientSize = new System.Drawing.Size(848, 517); 470 484 this.Controls.Add(this.panelCenter); 471 485 this.Controls.Add(this.splitter1); … … 1009 1023 1010 1024 DateTime dtStart = dlg.StartDate; 1025 DateTime newStartDate, newEndDate; 1026 this.Document.WeekNeedsRefresh(1,dtStart, out newStartDate, out newEndDate); 1027 dtStart = newStartDate; 1011 1028 int nWeeksToApply = dlg.WeeksToApply; 1012 1029 DateTime dtEnd = dtStart.AddDays(6); // or 7? 1030 1013 1031 string sResourceID = this.m_Document.ResourceID.ToString(); 1014 1032 DataTable dt; … … 1384 1402 private void mnu5Day_Click(object sender, System.EventArgs e) 1385 1403 { 1386 if (this.calendarGrid1.Columns == 1)1387 {1388 this.StartDate = this.Document.StartDate;1389 }1390 1391 1404 this.calendarGrid1.Columns = 5; 1392 this.Document.UpdateAllViews(); 1405 this.Document.m_nColumnCount = 5; //TODO: redundant but now needed 1393 1406 } 1394 1407 … … 1396 1409 { 1397 1410 this.calendarGrid1.Columns = 7; 1411 this.Document.m_nColumnCount = 7; //TODO: redundant but now needed 1398 1412 } 1399 1413
Note:
See TracChangeset
for help on using the changeset viewer.