Пример #1
0
        public YellowstonePathology.YpiConnect.Contract.MethodResult Download()
        {
            YellowstonePathology.YpiConnect.Contract.RemoteFile   remoteFile   = new Contract.RemoteFile(this.m_ReportNo, this.m_CaseDocumentType);
            YellowstonePathology.YpiConnect.Contract.MethodResult methodResult = this.m_FileTransferServiceProxy.Download(ref remoteFile, YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount);

            if (methodResult.Success == true)
            {
                this.m_XpsDocument  = XpsDocumentHelper.FromMemoryStream(remoteFile.MemoryStream);
                this.m_IsDownloaded = true;
            }

            return(methodResult);
        }
Пример #2
0
        public YellowstonePathology.YpiConnect.Contract.MethodResult Download()
        {
            YellowstonePathology.YpiConnect.Contract.RemoteFile remoteFile = new Contract.RemoteFile(this.m_ReportNo, this.m_CaseDocumentType);
            YellowstonePathology.YpiConnect.Contract.MethodResult methodResult = this.m_FileTransferServiceProxy.Download(ref remoteFile, YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount);

            if (methodResult.Success == true)
            {
                this.m_XpsDocument = XpsDocumentHelper.FromMemoryStream(remoteFile.MemoryStream);
                this.m_IsDownloaded = true;
            }

            return methodResult;
        }
Пример #3
0
        public YellowstonePathology.YpiConnect.Contract.MethodResult Save()
        {
            YellowstonePathology.YpiConnect.Contract.MethodResult result = new Contract.MethodResult();
            result.Success = false;
            if (this.m_IsDownloaded == false)
            {
                YellowstonePathology.YpiConnect.Contract.RemoteFile   remoteFile   = new Contract.RemoteFile(this.m_ReportNo, this.m_CaseDocumentType);
                YellowstonePathology.YpiConnect.Contract.MethodResult methodResult = this.m_FileTransferServiceProxy.Download(ref remoteFile, YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount);

                if (methodResult.Success == true)
                {
                    YellowstonePathology.YpiConnect.Contract.LocalFile localFile = new Contract.LocalFile(remoteFile, YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount);
                    localFile.Save();
                    result.Success = methodResult.Success;
                }
            }
            return(result);
        }
Пример #4
0
        public YellowstonePathology.YpiConnect.Contract.MethodResult Save()
        {
            YellowstonePathology.YpiConnect.Contract.MethodResult result = new Contract.MethodResult();
            result.Success = false;
            if (this.m_IsDownloaded == false)
            {
                YellowstonePathology.YpiConnect.Contract.RemoteFile remoteFile = new Contract.RemoteFile(this.m_ReportNo, this.m_CaseDocumentType);
                YellowstonePathology.YpiConnect.Contract.MethodResult methodResult = this.m_FileTransferServiceProxy.Download(ref remoteFile, YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount);

                if (methodResult.Success == true)
                {
                    YellowstonePathology.YpiConnect.Contract.LocalFile localFile = new Contract.LocalFile(remoteFile, YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount);
                    localFile.Save();
                    result.Success = methodResult.Success;
                }
            }
            return result;
        }
Пример #5
0
 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);
 }
Пример #6
0
 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;
 }