Changeset 853 for Scheduling/trunk/cs/bsdx0200GUISourceCode
- Timestamp:
- Jul 12, 2010, 10:24:09 AM (14 years ago)
- Location:
- Scheduling/trunk/cs/bsdx0200GUISourceCode
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGSchedLib.cs
r850 r853 26 26 } 27 27 28 /// <summary> 29 /// Gets appointments from VISTA to display in Grid 30 /// </summary> 31 /// <param name="docManager"></param> 32 /// <param name="saryResNames"></param> 33 /// <param name="StartTime"></param> 34 /// <param name="EndTime"></param> 35 /// <returns></returns> 28 36 public static DataTable CreateAppointmentSchedule(CGDocumentManager docManager, ArrayList saryResNames, DateTime StartTime, DateTime EndTime) 29 37 { … … 120 128 } 121 129 130 122 131 public static DataTable CreateAssignedTypeSchedule(CGDocumentManager docManager, string sResourceName, DateTime StartTime, DateTime EndTime, ScheduleType stType) 123 132 { … … 125 134 string sStart; 126 135 string sEnd; 127 sStart = StartTime.ToString("M-d-yyyy"); 128 sEnd = EndTime.ToString("M-d-yyyy"); 136 //sStart = StartTime.ToString("M-d-yyyy"); 137 sStart = FMDateTime.Create(StartTime).DateOnly.FMDateString; 138 //sEnd = EndTime.ToString("M-d-yyyy"); 139 sEnd = FMDateTime.Create(EndTime).DateOnly.FMDateString; 129 140 // string sSource = (stType == ScheduleType.Resource ? "ST_RESOURCE" : "ST_CLINIC"); 130 141 string sSql = "BSDX TYPE BLOCKS OVERLAP^" + sStart + "^" + sEnd + "^" + sResourceName ;//+ "^" + sSource; … … 284 295 string sStart; 285 296 string sEnd; 286 sStart = StartTime.ToString("M-d-yyyy"); 287 sEnd = EndTime.ToString("M-d-yyyy@H:mm"); 297 //sStart = StartTime.ToString("M-d-yyyy"); smh 298 sStart = FMDateTime.Create(StartTime).DateOnly.FMDateString; 299 //sEnd = EndTime.ToString("M-d-yyyy@H:mm"); smh 300 sEnd = FMDateTime.Create(EndTime).FMDateString; 288 301 string sSql = "BSDX CREATE ASGND SLOT SCHED^" + sResourceName + "^" + sStart + "^" + sEnd + "^" + sApptTypeIDs + "^" + sSearchInfo; //+ "^" + sSTType ; 289 302 … … 359 372 string sStart; 360 373 string sEnd; 361 sStart = StartTime.ToString("M-d-yyyy"); 362 sEnd = EndTime.ToString("M-d-yyyy"); 374 //sStart = StartTime.ToString("M-d-yyyy"); 375 sStart = FMDateTime.Create(StartTime).DateOnly.FMDateString; 376 //sEnd = EndTime.ToString("M-d-yyyy"); 377 sEnd = FMDateTime.Create(EndTime).DateOnly.FMDateString; 363 378 364 379 string sSTType = (stType == ScheduleType.Resource ? "ST_RESOURCE" : "ST_CLINIC"); -
Scheduling/trunk/cs/bsdx0200GUISourceCode/DAccessBlock.cs
r622 r853 99 99 this.panel1.Size = new Size(0x192, 40); 100 100 this.panel1.TabIndex = 2; 101 this.cmdCancel.DialogResult = DialogResult.Cancel;102 101 this.cmdCancel.Location = new Point(0x120, 8); 103 102 this.cmdCancel.Name = "cmdCancel"; … … 105 104 this.cmdCancel.TabIndex = 1; 106 105 this.cmdCancel.Text = "Cancel"; 107 this.cmdOK.DialogResult = DialogResult.OK; 106 108 107 this.cmdOK.Location = new Point(0xd0, 8); 109 108 this.cmdOK.Name = "cmdOK"; … … 253 252 this.cboAccessTypeFilter.DisplayMember = "ACCESS_GROUP"; 254 253 this.cboAccessTypeFilter.SelectedIndex = this.cboAccessTypeFilter.Items.Count - 1; 254 this.cmdCancel.DialogResult = DialogResult.Cancel; 255 this.cmdOK.DialogResult = DialogResult.OK; 255 256 this.UpdateDialogData(true); 256 257 } … … 277 278 this.cboAccessTypeFilter.SelectedIndex = this.cboAccessTypeFilter.Items.Count - 1; 278 279 this.m_pAppt.AccessTypeID = 0; 280 this.cmdCancel.DialogResult = DialogResult.Cancel; 281 this.cmdOK.DialogResult = DialogResult.OK; 279 282 this.UpdateDialogData(true); 280 283 }
Note:
See TracChangeset
for help on using the changeset viewer.