示例#1
0
        //Added By Rohit to insert report parameters into SystemReports table. Ref ticket #90
        public int InsertReport(System.Guid sessionId, DataTable _MedicationIds, string UserCode)
        {
            //DataTable DataTableClients;
            Streamline.DataService.UserInfo objectUser;
            try
            {
                //DataTableClients = new DataTable();
                objectUser = new Streamline.DataService.UserInfo();
                objectUser.InsertReport(sessionId, _MedicationIds, UserCode);
                //return DataTableClients;
                return(1);
            }
            catch (Exception ex)
            {
                if (ex.Data["CustomExceptionInformation"] == null)
                {
                    ex.Data["CustomExceptionInformation"] = "";
                }
                else
                {
                    ex.Data["CustomExceptionInformation"] = "";
                }
                if (ex.Data["DatasetInfo"] == null)
                {
                    ex.Data["DatasetInfo"] = null;
                }

                throw (ex);
            }
            finally
            {
                //DataTableClients = null;
                objectUser = null;
            }
        }
示例#2
0
        //Added By Rohit to populate the DataTable for System Reports. Ref ticket #90

        public DataTable GetSystemReports()
        {
            DataTable DataTableClients;

            Streamline.DataService.UserInfo objectUser;
            try
            {
                DataTableClients = new DataTable();
                objectUser       = new Streamline.DataService.UserInfo();
                DataTableClients = objectUser.GetSystemReports();
                return(DataTableClients);
            }
            catch (Exception ex)
            {
                if (ex.Data["CustomExceptionInformation"] == null)
                {
                    ex.Data["CustomExceptionInformation"] = "";
                }
                else
                {
                    ex.Data["CustomExceptionInformation"] = "";
                }
                if (ex.Data["DatasetInfo"] == null)
                {
                    ex.Data["DatasetInfo"] = null;
                }

                throw (ex);
            }
            finally
            {
                DataTableClients = null;
                objectUser       = null;
            }
        }
示例#3
0
        //Added By Sonia to populate the DataTable for Clincian's clients

        public DataTable GetSharedClients(string ClinicianRowIdentifier, int StaffId)
        {
            DataTable DataTableClients;

            Streamline.DataService.UserInfo objectUser;
            try
            {
                //CommonFunctions.Event_Trap(this);
                DataTableClients = new DataTable();
                objectUser       = new Streamline.DataService.UserInfo();
                DataTableClients = objectUser.getSharedClients(ClinicianRowIdentifier, StaffId);
                //DataRow drBlank = DataTableClients.NewRow();
                //drBlank["ClientId"] = "-1";
                //drBlank["Name"] = "View different Patients...";
                //drBlank["Status"] = 0;
                //DataTableClients.Rows.InsertAt(drBlank, 0);
                //drBlank["ClientId"] = "-2";
                //drBlank["Name"] = "Search Patients";
                //drBlank["Status"] = 0;
                //DataTableClients.Rows.InsertAt(drBlank, 1);
                return(DataTableClients);
            }
            catch (Exception ex)
            {
                if (ex.Data["CustomExceptionInformation"] == null)
                {
                    ex.Data["CustomExceptionInformation"] = "";
                }
                else
                {
                    ex.Data["CustomExceptionInformation"] = "";
                }
                if (ex.Data["DatasetInfo"] == null)
                {
                    ex.Data["DatasetInfo"] = null;
                }

                throw (ex);
            }
            finally
            {
                DataTableClients = null;
                objectUser       = null;
            }
        }
示例#4
0
 public System.Data.DataSet GetClientInfo(int ClientId)
 {
     try
     {
         Streamline.DataService.UserInfo objUser = new Streamline.DataService.UserInfo();
         return(objUser.GetClientInfo(ClientId));
     }
     catch (Exception ex)
     {
         if (ex.Data["CustomExceptionInformation"] == null)
         {
             ex.Data["CustomExceptionInformation"] = null;
         }
         else
         {
             ex.Data["CustomExceptionInformation"] = "";
         }
         if (ex.Data["DatasetInfo"] == null)
         {
             ex.Data["DatasetInfo"] = null;
         }
         throw (ex);
     }
 }
示例#5
0
 /// <summary>
 /// Validates the Token genrated through desktop (smartCare) application
 /// </summary>
 /// <param name="Token"></param>
 /// <returns></returns>
 /// <author>Piyush</author>
 /// <createdOn>24th Jan 2008</createdOn>
 public System.Data.DataSet ValidateWebToken(string Token)
 {
     try
     {
         Streamline.DataService.UserInfo objUser = new Streamline.DataService.UserInfo();
         return(objUser.ValidateWebToken(Token));
     }
     catch (Exception ex)
     {
         if (ex.Data["CustomExceptionInformation"] == null)
         {
             ex.Data["CustomExceptionInformation"] = null;
         }
         else
         {
             ex.Data["CustomExceptionInformation"] = "";
         }
         if (ex.Data["DatasetInfo"] == null)
         {
             ex.Data["DatasetInfo"] = null;
         }
         throw (ex);
     }
 }