Changeset 1011 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGSchedLib.cs
- Timestamp:
- Nov 18, 2010, 7:47:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGSchedLib.cs
r853 r1011 95 95 96 96 string sResName; 97 // for each resource 97 98 for (int i = 0; i < nSize; i++) 98 99 { 99 100 sResName = saryResourceNames[i].ToString(); 100 101 //Gets all the slots (or Availabities, if you like) 101 102 rsSlotSchedule = CGSchedLib.CreateAssignedSlotSchedule(docManager, sResName, StartTime, EndTime, saryApptTypes,/**/ stType, sSearchInfo); 102 103 OutputArray(rsSlotSchedule, "rsSlotSchedule"); 103 104 //if we have slots 104 105 if (rsSlotSchedule.Rows.Count > 0 ) 105 106 { 107 // Get appointment count to substract from the slots 106 108 rsApptSchedule = CGSchedLib.CreateAppointmentSlotSchedule(docManager, sResName, StartTime, EndTime, stType); 107 109 OutputArray(rsApptSchedule, "rsApptSchedule"); 110 // Perform the substraction 108 111 rsTemp1 = CGSchedLib.SubtractSlotsRS2(rsSlotSchedule, rsApptSchedule, sResName); 109 112 OutputArray(rsTemp1, "rsTemp1"); … … 114 117 OutputArray(rsTemp1, "rsTemp1"); 115 118 } 119 // if only one resource was passed in, its availablility is what we want 116 120 if (i == 0) 117 121 { … … 586 590 } 587 591 592 /// <summary> 593 /// My guess is that this calculates remaining slots 594 /// </summary> 595 /// <param name="rsBlocks1"></param> 596 /// <param name="rsBlocks2"></param> 597 /// <param name="sResource"></param> 598 /// <returns></returns> 588 599 public static DataTable SubtractSlotsRS2(DataTable rsBlocks1, DataTable rsBlocks2, string sResource) 589 600 { … … 770 781 }//end IntersectBlocks 771 782 772 783 /// <summary> 784 /// Number of minutes since Jan 1 1980 785 /// </summary> 786 /// <param name="d">Date to compare</param> 787 /// <returns>Minutes as integer</returns> 773 788 public static int MinSince80(DateTime d) 774 789 { … … 878 893 rect1.Height = CGSchedLib.MinSince80(dEnd1) - rect1.Y; 879 894 895 //for each row in the availability schedule 880 896 foreach (DataRow r in rsBlock.Rows) 881 897 {
Note:
See TracChangeset
for help on using the changeset viewer.