/* * private void LookupDomainAccount() * { * this.m_ApplicationIdentity.DomainAccount = this.m_WebServiceAccount.GetDomainAccount(this.m_UserNameToValidate); * if (this.m_ApplicationIdentity.DomainAccount == null) * { * this.m_ExecutionStatus.FailureMessage = "The Username/Password combination was not recognized."; * this.m_ExecutionStatus.AddMessage("Password is not valid.", true); * } * } * * private void IsPasswordCorret() * { * if (this.m_PasswordToValidate != this.m_ApplicationIdentity.DomainAccount.Password) * { * this.m_ExecutionStatus.FailureMessage = "The Username/Password combination was not recognized."; * this.m_ExecutionStatus.AddMessage("Password is not valid.", true); * } * } * * private void ValidateWithWebService() * { * * YellowstonePathology.YpiConnect.Proxy.WebServiceAccountServiceProxy clientUserServiceProxy = new YpiConnect.Proxy.WebServiceAccountServiceProxy(); * clientUserServiceProxy.CreateChannel(this.m_ApplicationIdentity.DomainAccount); * bool result = clientUserServiceProxy.IsClientAuthenticated(this.m_ApplicationIdentity.DomainAccount.SignInName, this.m_ApplicationIdentity.DomainAccount.Password); * * if (result == false) * { * YellowstonePathology.YpiConnect.Contract.Identity.GuestDomainAccount guestDomainAccount = new YpiConnect.Contract.Identity.GuestDomainAccount(); * this.m_ExecutionStatus.FailureMessage = "Authentication with this Username/Password combination failed."; * this.m_Rule.ExecutionStatus.AddMessage("Client authentication failed: " + this.m_ApplicationIdentity.DomainAccount.UserName + " - " + this.m_ApplicationIdentity.DomainAccount.Password, true); * YellowstonePathology.YpiConnect.Proxy.ClientServicesLogServiceProxy clientServicesLogServiceProxy = new YpiConnect.Proxy.ClientServicesLogServiceProxy(); * clientServicesLogServiceProxy.CreateChannel(guestDomainAccount); * clientServicesLogServiceProxy.LogEvent(1061, this.m_ApplicationIdentity.DomainAccount.GetUserNamePasswordString()); * } * } * * private void SaveCurrentSignInfo() * { * this.m_ApplicationSettings.ClientUserName = this.m_ApplicationIdentity.DomainAccount.UserName; * this.m_ApplicationSettings.ClientPassword = this.m_ApplicationIdentity.DomainAccount.Password; * this.m_ApplicationSettings.Save(); * } */ public void Execute(string userNameToValidate, string passwordToValidate, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { this.m_UserNameToValidate = userNameToValidate; this.m_PasswordToValidate = passwordToValidate; this.m_WebServiceAccount = webServiceAccount; this.m_Rule.Execute(); }
public SavedSettings(YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { if (webServiceAccount.SaveUserNameLocal) { this.m_UserName = webServiceAccount.UserName; } else { this.m_UserName = string.Empty; } if (webServiceAccount.SavePasswordLocal) { this.m_Password = webServiceAccount.Password; } else { this.m_Password = string.Empty; } if (webServiceAccount.EnableFileDownload == true) { this.m_LocalFileDownloadDirectory = webServiceAccount.LocalFileDownloadDirectory; } else { this.m_LocalFileDownloadDirectory = string.Empty; } if (webServiceAccount.EnableFileUpload == true) { this.m_LocalFileUploadDirectory = webServiceAccount.LocalFileUploadDirectory; } else { this.m_LocalFileUploadDirectory = string.Empty; } }
public MethodResult Load(YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { this.Clear(); MethodResult methodResult = new MethodResult(); //go get the files for this reportno string path = webServiceAccount.LocalFileUploadDirectory; if (Directory.Exists(path)) { string[] files = Directory.GetFiles(path); foreach (string fileName in files) { LocalFile localFile = new LocalFile(fileName); this.Add(localFile); if (this.m_IncludeMemoryStream) { localFile.Load(); } } methodResult.Success = true; } else { methodResult.Success = false; } return(methodResult); }
public BillingDetailBuilder(SqlCommand cmd, string reportNo, bool includeMemoryStream, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { this.m_Cmd = cmd; this.m_ReportNo = reportNo; this.m_IncludeMemorystream = includeMemoryStream; this.m_WebServiceAccount = webServiceAccount; }
private void SignIn() { string userName = this.TextBoxUserName.Text; string password = this.PasswordBoxPassword.Password; YellowstonePathology.YpiConnect.Proxy.WebServiceAccountServiceProxy proxy = new YpiConnect.Proxy.WebServiceAccountServiceProxy(); YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount = proxy.GetWebServiceAccount(userName, password); YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.SignIn(webServiceAccount); if (webServiceAccount.IsKnown == true) { Page page = null; switch (YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.InitialPage) { case "PathologyDashboard": page = new PathologistSignoutPage(); break; case "OrderBrowser": page = new OrderEntry.OrderBrowserPage(); break; case "ReportBrowser": page = new ReportBrowserPage(); break; case "BillingBrowser": page = new BillingBrowserPage(); break; case "FileUpload": page = new FileUploadPage(); break; } ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(page); YellowstonePathology.YpiConnect.Client.UserInteractionMonitor.Instance.Start(); } else { this.m_SignInFailureAttempts += 1; this.PasswordBoxPassword.Password = string.Empty; this.DisplayMessage = ""; if (this.m_SignInFailureAttempts >= this.m_SignInFailureAttemptThreshold) { SignInFailurePage signInFailurePage = new SignInFailurePage(); ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(signInFailurePage); } else { this.m_FromMessageBox = true; MessageBox.Show("We could not log you in. Make sure your username and password are correct, then type your password again. Letters in passwords must be typed using the correct case.", "Logon failed"); this.PasswordBoxPassword.Focus(); } } }
public Message(string sendTo, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webSeviceAccount) { this.m_From = "*****@*****.**"; this.m_To = sendTo; this.Subject = "Message From: " + webSeviceAccount.DisplayName; if (string.IsNullOrEmpty(webSeviceAccount.Client.Telephone) == false) { this.Subject += " - " + webSeviceAccount.Client.Telephone.FormattedTelephoneNumber(); } }
private YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount BuildWebServiceAccount(SqlDataReader dr) { YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount = null; while (dr.Read()) { webServiceAccount = new Contract.Identity.WebServiceAccount(); YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter propertyWriter = new YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter(webServiceAccount, dr); propertyWriter.WriteProperties(); } if (webServiceAccount != null) { dr.NextResult(); while (dr.Read()) { YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccountClient webServiceAccountClient = new Contract.Identity.WebServiceAccountClient(); YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter propertyWriter = new YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter(webServiceAccountClient, dr); propertyWriter.WriteProperties(); webServiceAccount.WebServiceAccountClientCollection.Add(webServiceAccountClient); } dr.NextResult(); while (dr.Read()) { webServiceAccount.Client = new Business.Client.Model.Client(); int s = (int)dr["ClientId"]; //TODO this is here becuse Client.Zip should be a nullable int but is not. if (s == 0) { webServiceAccount.Client.ClientName = "Not Provided"; } else { webServiceAccount.Client = new Business.Client.Model.Client(); YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter propertyWriter = new YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter(webServiceAccount.Client, dr); propertyWriter.WriteProperties(); } } } if (webServiceAccount == null) { webServiceAccount = new Contract.Identity.WebServiceAccount(); webServiceAccount.UserName = "******"; webServiceAccount.Password = "******"; webServiceAccount.IsKnown = false; } return(webServiceAccount); }
public static void SignIn(YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { if (webServiceAccount.UserName == m_Instance.WebServiceAccount.UserName) { webServiceAccount.LocalFileDownloadDirectory = m_Instance.WebServiceAccount.LocalFileDownloadDirectory; webServiceAccount.LocalFileUploadDirectory = m_Instance.WebServiceAccount.LocalFileUploadDirectory; } m_Instance = new ApplicationIdentity(); m_Instance.WebServiceAccount = webServiceAccount; if (m_Instance.WebServiceAccount.EnableSaveSettings == false) { SavedSettings.Delete(); } else { m_Instance.Save(); } }
public YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount GetAccount(string userName, string password) { YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount result = null; SqlCommand cmd = new SqlCommand(); cmd.CommandText = "ws_GetWebServiceAccount"; cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@UserName", SqlDbType.VarChar).Value = userName; cmd.Parameters.Add("@Password", SqlDbType.VarChar).Value = password; using (SqlConnection cn = new SqlConnection(YpiConnect.Service.Properties.Settings.Default.ServerSqlConnectionString)) { cn.Open(); cmd.Connection = cn; using (SqlDataReader dr = cmd.ExecuteReader()) { result = this.BuildWebServiceAccount(dr); } } return(result); }
public YellowstonePathology.YpiConnect.Contract.MethodResult GetRemoteFileList(ref YellowstonePathology.YpiConnect.Contract.RemoteFileList remoteFileList, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { YellowstonePathology.YpiConnect.Contract.MethodResult methodResult = remoteFileList.Load(webServiceAccount.RemoteFileUploadDirectory); return(methodResult); }
public YellowstonePathology.YpiConnect.Contract.MethodResult Upload(ref YellowstonePathology.YpiConnect.Contract.LocalFile localFile, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { YellowstonePathology.YpiConnect.Contract.RemoteFile remoteFile = new Contract.RemoteFile(localFile, webServiceAccount); YellowstonePathology.YpiConnect.Contract.MethodResult methodResult = remoteFile.Save(); return(methodResult); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingDetail GetBillingDetail(string reportNo, bool includeMemoryStream, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { YellowstonePathology.YpiConnect.Contract.Billing.BillingDetail billingDetail = this.m_BillingChannel.GetBillingDetail(reportNo, includeMemoryStream, webServiceAccount); return(billingDetail); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection GetBillingAccessionsByPostDateClient(DateTime postDate, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { SqlCommand cmd = new SqlCommand(); cmd.CommandText = "ws_GetBillingAccessionsByPostDateClient_2"; cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@PostDate", SqlDbType.DateTime).Value = postDate; cmd.Parameters.Add("@ClientIdString", SqlDbType.VarChar).Value = webServiceAccount.WebServiceAccountClientCollection.ToIdString(); BillingBuilder billingBuilder = new BillingBuilder(cmd); return(billingBuilder.Build()); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection GetRecentBillingAccessions(YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { SqlCommand cmd = new SqlCommand(); cmd.CommandText = "ws_GetRecentBillingAccessions_2"; cmd.CommandType = CommandType.StoredProcedure; BillingBuilder billingBuilder = new BillingBuilder(cmd); return(billingBuilder.Build()); }
public YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount GetWebServiceAccount(string userName, string password) { YellowstonePathology.YpiConnect.Service.Log.ClientServicesLogService clientServicesLog = new Log.ClientServicesLogService(); clientServicesLog.LogEvent(1055, userName); YellowstonePathology.YpiConnect.Service.Identity.WebServiceAccountGateway webServiceAccountGateway = new WebServiceAccountGateway(); YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount = webServiceAccountGateway.GetAccount(userName, password); return(webServiceAccount); }
public YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccountCollection GetWebServiceAccountCollectionByFacilityId(string facilityId) { YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccountCollection webServiceAccountCollection = new Contract.Identity.WebServiceAccountCollection(); SqlCommand cmd = new SqlCommand(); cmd.CommandText = "ws_GetWebServiceAccountCollectionByFacilityId_New"; cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@FacilityId", SqlDbType.VarChar).Value = facilityId; using (SqlConnection cn = new SqlConnection(YpiConnect.Service.Properties.Settings.Default.ServerSqlConnectionString)) { cn.Open(); cmd.Connection = cn; using (SqlDataReader dr = cmd.ExecuteReader()) { while (dr.Read()) { int accountCount = (int)dr["AccountCount"]; for (int cnt = 0; cnt < accountCount; cnt++) { dr.NextResult(); YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount = this.BuildWebServiceAccount(dr); webServiceAccountCollection.Add(webServiceAccount); } } } } return(webServiceAccountCollection); }
public YellowstonePathology.YpiConnect.Contract.MethodResult Upload(ref YellowstonePathology.YpiConnect.Contract.LocalFile localFile, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { return(this.m_FileTransferServiceChannel.Upload(ref localFile, webServiceAccount)); }
public SignInEventArgs(YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { this.m_WebServiceAccount = webServiceAccount; }
public YellowstonePathology.YpiConnect.Contract.MethodResult GetRemoteFileList(ref YellowstonePathology.YpiConnect.Contract.RemoteFileList remoteFileList, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { return(this.m_FileTransferServiceChannel.GetRemoteFileList(ref remoteFileList, webServiceAccount)); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingDetail GetBillingDetail(string reportNo, bool getMemoryStream, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { BillingGateway gateway = new BillingGateway(); return(gateway.GetBillingDetail(reportNo, getMemoryStream, webServiceAccount)); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection GetBillingAccessionsByReportNo(string reportNo, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { SqlCommand cmd = new SqlCommand(); cmd.CommandText = "ws_GetBillingAccessionsByReportNo_2"; cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@ReportNo", SqlDbType.VarChar).Value = reportNo; BillingBuilder billingBuilder = new BillingBuilder(cmd); return(billingBuilder.Build()); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection GetBillingAccessionsByLastNameAndFirstName(string lastName, string firstName, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { BillingGateway gateway = new BillingGateway(); YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection billingAccessionCollection = null; if (webServiceAccount.PrimaryClientId == 0) { billingAccessionCollection = gateway.GetBillingAccessionsByLastNameAndFirstName(lastName, firstName, webServiceAccount); } else { billingAccessionCollection = gateway.GetBillingAccessionsByLastNameAndFirstNameClient(lastName, firstName, webServiceAccount); } return(billingAccessionCollection); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection GetRecentBillingAccessions(YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection billingAccessionCollection = this.m_BillingChannel.GetRecentBillingAccessions(webServiceAccount); return(billingAccessionCollection); }
/* private void LookupDomainAccount() { this.m_ApplicationIdentity.DomainAccount = this.m_WebServiceAccount.GetDomainAccount(this.m_UserNameToValidate); if (this.m_ApplicationIdentity.DomainAccount == null) { this.m_ExecutionStatus.FailureMessage = "The Username/Password combination was not recognized."; this.m_ExecutionStatus.AddMessage("Password is not valid.", true); } } private void IsPasswordCorret() { if (this.m_PasswordToValidate != this.m_ApplicationIdentity.DomainAccount.Password) { this.m_ExecutionStatus.FailureMessage = "The Username/Password combination was not recognized."; this.m_ExecutionStatus.AddMessage("Password is not valid.", true); } } private void ValidateWithWebService() { YellowstonePathology.YpiConnect.Proxy.WebServiceAccountServiceProxy clientUserServiceProxy = new YpiConnect.Proxy.WebServiceAccountServiceProxy(); clientUserServiceProxy.CreateChannel(this.m_ApplicationIdentity.DomainAccount); bool result = clientUserServiceProxy.IsClientAuthenticated(this.m_ApplicationIdentity.DomainAccount.SignInName, this.m_ApplicationIdentity.DomainAccount.Password); if (result == false) { YellowstonePathology.YpiConnect.Contract.Identity.GuestDomainAccount guestDomainAccount = new YpiConnect.Contract.Identity.GuestDomainAccount(); this.m_ExecutionStatus.FailureMessage = "Authentication with this Username/Password combination failed."; this.m_Rule.ExecutionStatus.AddMessage("Client authentication failed: " + this.m_ApplicationIdentity.DomainAccount.UserName + " - " + this.m_ApplicationIdentity.DomainAccount.Password, true); YellowstonePathology.YpiConnect.Proxy.ClientServicesLogServiceProxy clientServicesLogServiceProxy = new YpiConnect.Proxy.ClientServicesLogServiceProxy(); clientServicesLogServiceProxy.CreateChannel(guestDomainAccount); clientServicesLogServiceProxy.LogEvent(1061, this.m_ApplicationIdentity.DomainAccount.GetUserNamePasswordString()); } } private void SaveCurrentSignInfo() { this.m_ApplicationSettings.ClientUserName = this.m_ApplicationIdentity.DomainAccount.UserName; this.m_ApplicationSettings.ClientPassword = this.m_ApplicationIdentity.DomainAccount.Password; this.m_ApplicationSettings.Save(); } */ public void Execute(string userNameToValidate, string passwordToValidate, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { this.m_UserNameToValidate = userNameToValidate; this.m_PasswordToValidate = passwordToValidate; this.m_WebServiceAccount = webServiceAccount; this.m_Rule.Execute(); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection GetBillingAccessionsByReportNo(string reportNo, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { BillingGateway gateway = new BillingGateway(); YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection billingAccessionCollection = null; if (webServiceAccount.PrimaryClientId == 0) { billingAccessionCollection = gateway.GetBillingAccessionsByReportNo(reportNo, webServiceAccount); } else { billingAccessionCollection = gateway.GetBillingAccessionsByReportNoClient(reportNo, webServiceAccount); } return(billingAccessionCollection); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection GetBillingAccessionsByBirthdate(DateTime birthdate, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { SqlCommand cmd = new SqlCommand(); cmd.CommandText = "ws_GetBillingAccessionsByBirthdate_2"; cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@Birthdate", SqlDbType.DateTime).Value = birthdate; BillingBuilder billingBuilder = new BillingBuilder(cmd); return(billingBuilder.Build()); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection GetBillingAccessionsByBirthdate(DateTime birthdate, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { BillingGateway gateway = new BillingGateway(); YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection billingAccessionCollection = null; if (webServiceAccount.PrimaryClientId == 0) { billingAccessionCollection = gateway.GetBillingAccessionsByBirthdate(birthdate, webServiceAccount); } else { billingAccessionCollection = gateway.GetBillingAccessionsByBirthdateClient(birthdate, webServiceAccount); } return(billingAccessionCollection); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingDetail GetBillingDetail(string reportNo, bool includeMemoryStream, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { SqlCommand cmd = new SqlCommand(); cmd.CommandText = "ws_GetBillingDetailByReportNo_3"; cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@ReportNo", SqlDbType.VarChar).Value = reportNo; BillingDetailBuilder billingDetailBuilder = new BillingDetailBuilder(cmd, reportNo, includeMemoryStream, webServiceAccount); return(billingDetailBuilder.Build()); }
public YellowstonePathology.YpiConnect.Contract.MethodResult Download(ref YellowstonePathology.YpiConnect.Contract.RemoteFile remoteFile, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { if (remoteFile.UseReportNoToFindFile == true) { YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(remoteFile.ReportNo); switch (remoteFile.CaseDocumentType) { case Contract.CaseDocumentTypeEnum.TIF: remoteFile.FullPath = YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser) + remoteFile.ReportNo + ".tif"; break; case Contract.CaseDocumentTypeEnum.XPS: remoteFile.FullPath = YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser) + remoteFile.ReportNo + ".xps"; break; } } YellowstonePathology.YpiConnect.Contract.MethodResult methodResult = remoteFile.Load(); if (methodResult.Success == false) { string sendTo = "*****@*****.**"; string messageText = "Error while attempting file download, file does not exist: " + remoteFile.FileName; YellowstonePathology.YpiConnect.Contract.Message message = new Contract.Message(sendTo, webServiceAccount); message.ClientText = messageText; MessageService messageService = new MessageService(); messageService.Send(message); } return(methodResult); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection GetBillingAccessionsByLastNameAndFirstName(string lastName, string firstName, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { SqlCommand cmd = new SqlCommand(); cmd.CommandText = "ws_GetBillingAccessionsByLastNameAndFirstName_2"; cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@PLastName", SqlDbType.VarChar).Value = lastName; cmd.Parameters.Add("@PFirstName", SqlDbType.VarChar).Value = firstName; BillingBuilder billingBuilder = new BillingBuilder(cmd); return(billingBuilder.Build()); }
public YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection GetBillingAccessionsByBirthdate(DateTime birthdate, YellowstonePathology.YpiConnect.Contract.Identity.WebServiceAccount webServiceAccount) { YellowstonePathology.YpiConnect.Contract.Billing.BillingAccessionCollection billingAccessionCollection = this.m_BillingChannel.GetBillingAccessionsByBirthdate(birthdate, webServiceAccount); return(billingAccessionCollection); }