Changeset 1062 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
- Timestamp:
- Jan 9, 2011, 7:13:00 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r1027 r1062 1941 1941 private void AppointmentCheckIn() 1942 1942 { 1943 bool bDeleted = false;1943 1944 1944 int nApptID = this.calendarGrid1.SelectedAppointment; 1945 1945 Debug.Assert(nApptID != 0); … … 1949 1949 try 1950 1950 { 1951 1952 1951 bool bAlreadyCheckedIn = false; 1953 1952 if (a.CheckInTime.Ticks > 0) … … 1978 1977 Debug.Write("CGView.AppointmentCheckIn Error: " + ex.Message); 1979 1978 } 1980 1981 1979 1982 1980 string sProv = ""; 1983 string sProvReqd = "NO"; 1984 string sPCC = "NO"; 1985 string sMultCodes = "NO"; 1986 string sStopCode = ""; 1987 bool bProvReqd = false; 1988 bool bPCC = false; 1989 bool bMultCodes = false; 1981 1990 1982 if (nHospLoc > 0) 1991 1983 { … … 1993 1985 DataRow drHL = dr.GetParentRow(m_DocManager.GlobalDataSet.Relations["HospitalLocationResource"]); 1994 1986 sProv = drHL["DEFAULT_PROVIDER"].ToString(); 1995 sStopCode = drHL["STOP_CODE_NUMBER"].ToString();1996 1997 1998 //TODO: Remove this. This doesn't exist in VISTA.1999 /*2000 DataRow[] draCS = drHL.GetChildRows(m_DocManager.GlobalDataSet.Relations["HospitalLocationClinic"]);2001 if (draCS.GetLength(0) > 0)2002 {2003 DataRow drCS = draCS[0];2004 sProvReqd = drCS["VISIT_PROVIDER_REQUIRED"].ToString();2005 sPCC = drCS["GENERATE_PCCPLUS_FORMS?"].ToString();2006 sMultCodes = drCS["MULTIPLE_CLINIC_CODES_USED?"].ToString();2007 }2008 bProvReqd = (sProvReqd == "YES")?true:false;2009 bPCC = (sPCC == "YES")?true:false;2010 bMultCodes = (sMultCodes == "YES")?true:false;2011 */2012 1987 } 2013 1988 2014 1989 DCheckIn dlgCheckin = new DCheckIn(); 2015 dlgCheckin.InitializePage(a, this.m_DocManager, sProv, bProvReqd, bPCC, bMultCodes, sStopCode,nHospLoc);1990 dlgCheckin.InitializePage(a, this.m_DocManager, sProv, nHospLoc); 2016 1991 calendarGrid1.CGToolTip.Active = false; 2017 1992 if (dlgCheckin.ShowDialog(this) != DialogResult.OK) … … 2027 2002 DateTime dtCheckIn = dlgCheckin.CheckInTime; 2028 2003 2029 /* 2030 * Need to pass Provider, ClinicStop, PrintRouteSlip, 2031 * PCC Clinic, PCC Form, Print OutGuide 2032 */ 2033 2034 this.Document.CheckInAppointment(nApptID, dtCheckIn, 2035 dlgCheckin.ClinicStopIEN, 2036 dlgCheckin.ProviderIEN, 2037 dlgCheckin.PrintRouteSlip, 2038 dlgCheckin.PCCClinicIEN, 2039 dlgCheckin.PCCFormIEN, 2040 dlgCheckin.PCCOutGuide 2041 ); 2004 this.Document.CheckInAppointment(nApptID, dtCheckIn); 2042 2005 //smh new code 2043 if (dlgCheckin.PrintRouteSlip == "true") //TODO: strange that we use a string for a boolean value??2006 if (dlgCheckin.PrintRouteSlip) 2044 2007 this.printRoutingSlip.Print(); 2045 2008 // end new code … … 2052 2015 } 2053 2016 2054 if (bDeleted == true)2055 {2056 try2057 {2058 RaiseRPMSEvent("BSDX SCHEDULE" , m_Document.DocName);2059 }2060 catch (Exception ex)2061 {2062 Debug.Write(ex.Message);2063 }2064 this.calendarGrid1.Invalidate();2065 }2066 2017 } 2067 2018
Note:
See TracChangeset
for help on using the changeset viewer.