Changeset 1084
- Timestamp:
- Jan 27, 2011, 2:46:45 AM (14 years ago)
- Location:
- Scheduling/trunk/cs/bsdx0200GUISourceCode
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
r1083 r1084 799 799 sErrorID = r["ERRORID"].ToString(); 800 800 if ((sErrorID != "") || (nApptID < 1)) 801 { 801 802 throw new Exception(sErrorID); 803 } 802 804 aCopy.AppointmentKey = nApptID; 803 805 this.m_appointments.AddAppointment(aCopy); … … 885 887 { 886 888 this.m_appointments.RemoveAppointment(nApptID); 887 bool bRet = RefreshAvailabilitySchedule(); 888 UpdateAllViews(); 889 890 // View responsible for deciding to redraw the grid; not the document now. 891 //bool bRet = RefreshAvailabilitySchedule(); 892 //UpdateAllViews(); 889 893 } 890 894 return ""; -
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r1083 r1084 617 617 this.tvSchedules.Location = new System.Drawing.Point(0, 0); 618 618 this.tvSchedules.Name = "tvSchedules"; 619 this.tvSchedules.Size = new System.Drawing.Size(128, 290);619 this.tvSchedules.Size = new System.Drawing.Size(128, 400); 620 620 this.tvSchedules.Sorted = true; 621 621 this.tvSchedules.TabIndex = 1; … … 664 664 this.panelRight.Location = new System.Drawing.Point(941, 0); 665 665 this.panelRight.Name = "panelRight"; 666 this.panelRight.Size = new System.Drawing.Size(128, 290);666 this.panelRight.Size = new System.Drawing.Size(128, 400); 667 667 this.panelRight.TabIndex = 3; 668 668 this.panelRight.Visible = false; … … 754 754 this.lblResource.Size = new System.Drawing.Size(456, 19); 755 755 this.lblResource.TabIndex = 2; 756 this.lblResource.Text = "lblResource";757 756 // 758 757 // panelCenter … … 762 761 this.panelCenter.Location = new System.Drawing.Point(136, 24); 763 762 this.panelCenter.Name = "panelCenter"; 764 this.panelCenter.Size = new System.Drawing.Size(802, 242);763 this.panelCenter.Size = new System.Drawing.Size(802, 352); 765 764 this.panelCenter.TabIndex = 7; 766 765 // … … 848 847 this.panelBottom.Controls.Add(this.statusBar1); 849 848 this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom; 850 this.panelBottom.Location = new System.Drawing.Point(136, 266);849 this.panelBottom.Location = new System.Drawing.Point(136, 376); 851 850 this.panelBottom.Name = "panelBottom"; 852 851 this.panelBottom.Size = new System.Drawing.Size(802, 24); … … 866 865 this.splitter1.Location = new System.Drawing.Point(128, 24); 867 866 this.splitter1.Name = "splitter1"; 868 this.splitter1.Size = new System.Drawing.Size(8, 266);867 this.splitter1.Size = new System.Drawing.Size(8, 376); 869 868 this.splitter1.TabIndex = 9; 870 869 this.splitter1.TabStop = false; … … 875 874 this.splitter2.Location = new System.Drawing.Point(938, 24); 876 875 this.splitter2.Name = "splitter2"; 877 this.splitter2.Size = new System.Drawing.Size(3, 266);876 this.splitter2.Size = new System.Drawing.Size(3, 376); 878 877 this.splitter2.TabIndex = 10; 879 878 this.splitter2.TabStop = false; … … 903 902 this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources"))); 904 903 this.calendarGrid1.SelectedAppointment = 0; 905 this.calendarGrid1.Size = new System.Drawing.Size(802, 242);904 this.calendarGrid1.Size = new System.Drawing.Size(802, 352); 906 905 this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0); 907 906 this.calendarGrid1.TabIndex = 0; … … 916 915 // 917 916 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 918 this.ClientSize = new System.Drawing.Size(1069, 290);917 this.ClientSize = new System.Drawing.Size(1069, 400); 919 918 this.Controls.Add(this.panelCenter); 920 919 this.Controls.Add(this.panelBottom); … … 1838 1837 { 1839 1838 calendarGrid1.CGToolTip.Active = false; 1840 CGAppointments 1839 CGAppointments alRebookList = new CGAppointments(); 1841 1840 1842 1841 DCancelAppt dCancel = new DCancelAppt(); … … 1902 1901 try 1903 1902 { 1903 this.UpdateArrays(); 1904 1904 RaiseRPMSEvent("BSDX SCHEDULE" , m_Document.DocName); 1905 1906 //Get the appointments and availabilities, async, from Server. Callback updates this thread's controls. 1907 OnUpdateScheduleDelegate ousd = new OnUpdateScheduleDelegate(OnUpdateSchedule); 1908 ousd.BeginInvoke(OnUpdateScheduleCallback, null); 1905 1909 } 1906 1910 catch (Exception ex) … … 2122 2126 try 2123 2127 { 2124 CGAppointment appt = new CGAppointment();2128 2125 2129 2126 2130 //Get Time and Resource from Selected Cell … … 2196 2200 } 2197 2201 2202 CGAppointment appt = new CGAppointment(); 2198 2203 appt.PatientID = Convert.ToInt32(dPat.PatientIEN); 2199 2204 appt.PatientName = dPat.PatientName; … … 2324 2329 private void OnUpdateScheduleCallback(IAsyncResult itfAR) 2325 2330 { 2331 // if the view meanwhile closed, just return 2332 if (this == null) return; 2333 2326 2334 OnUpdateScheduleDelegate d = new OnUpdateScheduleDelegate(UpdateArrays); 2327 2335 this.Invoke(d); … … 2710 2718 } 2711 2719 2720 /// <summary> 2721 /// Fired during drag and drop, on the drop action. 2722 /// </summary> 2723 /// <param name="sender"></param> 2724 /// <param name="e"></param> 2712 2725 private void calendarGrid1_CGAppointmentChanged(object sender, IndianHealthService.ClinicalScheduling.CGAppointmentChangedArgs e) 2713 2726 { … … 2727 2740 } 2728 2741 2742 //Can user edit destination resource? 2729 2743 if (EditAppointmentEnabled(e.Resource) == false) 2730 2744 return; 2745 2746 //Can user edit original schedule? 2731 2747 if (EditAppointmentEnabled(e.Appointment.Resource) == false) 2732 2748 return; … … 2772 2788 } 2773 2789 2774 e.Appointment.StartTime = e.StartTime; 2775 e.Appointment.EndTime = e.EndTime; 2776 e.Appointment.Resource = e.Resource; 2777 e.Appointment.AccessTypeID = e.AccessTypeID; 2778 m_Document.CreateAppointment(e.Appointment); 2790 //Create a new appointment using old data for patient demographics and note and new data 2791 //for StartTime, EndTime, Resource, AccessTypeID 2792 CGAppointment appt = new CGAppointment(); 2793 appt.PatientID = e.Appointment.PatientID; 2794 appt.PatientName = e.Appointment.PatientName; 2795 appt.StartTime = e.StartTime; 2796 appt.EndTime = e.EndTime; 2797 appt.Resource = e.Resource; 2798 appt.Note = e.Appointment.Note; 2799 appt.HealthRecordNumber = e.Appointment.HealthRecordNumber; 2800 appt.AccessTypeID = e.AccessTypeID; 2801 this.Document.CreateAppointment(appt); 2802 2803 //CGAppointment a = new CGAppointment(); 2804 //a.StartTime = e.StartTime; 2805 ////e.Appointment.StartTime = e.StartTime 2806 //a.EndTime = e.EndTime; 2807 ////e.Appointment.EndTime = e.EndTime; 2808 //a.Resource = e.Resource; 2809 ////e.Appointment.Resource = e.Resource; 2810 //a.AccessTypeID = e.AccessTypeID; 2811 ////e.Appointment.AccessTypeID = e.AccessTypeID; 2812 //m_Document.CreateAppointment(a); 2779 2813 2780 2814 … … 2790 2824 { 2791 2825 MessageBox.Show("Unable to change appointment " + ex.Message, "Clinical Scheduling"); 2792 this.m_DocManager.UpdateViews();2826 //this.m_DocManager.UpdateViews(); 2793 2827 return; 2794 2828 } 2795 2829 finally 2796 2830 { 2797 2831 this.UpdateArrays(); 2798 2832 } 2799 2833 try … … 2802 2836 if (e.Resource != e.OldResource) 2803 2837 RaiseRPMSEvent("BSDX SCHEDULE", e.OldResource); 2804 this.m_DocManager.UpdateViews(e.Resource, e.OldResource); 2838 2839 //That will take too long. Don't do it. Try and see what happens when you come 2840 //this.m_DocManager.UpdateViews(e.Resource, e.OldResource); 2805 2841 } 2806 2842 catch (Exception ex) -
Scheduling/trunk/cs/bsdx0200GUISourceCode/ClinicalScheduling.sln
r1065 r1084 11 11 EndGlobalSection 12 12 GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 {8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU14 {8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}.Debug|Any CPU.Build.0 = Debug|Any CPU15 {8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}.Release|Any CPU.ActiveCfg = Debug|Any CPU16 {8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}.Release|Any CPU.Build.0 = Debug|Any CPU17 {DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU18 {DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Debug|Any CPU.Build.0 = Debug|Any CPU13 {8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}.Debug|Any CPU.ActiveCfg = Release|Any CPU 14 {8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}.Debug|Any CPU.Build.0 = Release|Any CPU 15 {8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}.Release|Any CPU.ActiveCfg = Release|Any CPU 16 {8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}.Release|Any CPU.Build.0 = Release|Any CPU 17 {DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Debug|Any CPU.ActiveCfg = Release|Any CPU 18 {DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Debug|Any CPU.Build.0 = Release|Any CPU 19 19 {DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Release|Any CPU.ActiveCfg = Release|Any CPU 20 20 {DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Release|Any CPU.Build.0 = Release|Any CPU
Note:
See TracChangeset
for help on using the changeset viewer.