Esempio n. 1
0
        //public string GetCheckListDescriptionBy(int descPk)
        //{
        //    var proxy = new ServiceReferenceCheckList.CheckListClient();
        //    var result = proxy.GetCheckListDescriptionBy(descPk);
        //    proxy.Close();
        //    if (result == null)
        //        return string.Empty;
        //    return result.DESCRIPTION;
        //}

        public int UploadCaptureFile(int captureImagePk, bool isBasemap, System.IO.Stream stream, out string errorMsg)
        {
            var proxy = new ServiceReferenceFileTransfer.FileTransferClient();

            errorMsg = string.Empty;
            proxy.UploadCaptureImage(captureImagePk, isBasemap, stream.Length, stream);
            return(0);
        }
Esempio n. 2
0
        public void DownloadCaptureImageByAsync(int captureImagePk, Action <Byte[]> OnCompleted)
        {
            var proxy = new ServiceReferenceFileTransfer.FileTransferClient();

            proxy.DownloadCaptureImageByAsync(captureImagePk);

            //object sender, ServiceReferenceFileTransfer.DownloadCaptureImageByCompletedEventArgs e
            proxy.DownloadCaptureImageByCompleted += (s, e) =>
            {
                OnCompleted.Invoke(e.Result);
            };
        }
Esempio n. 3
0
        public Byte[] DownloadCaptureImageBy(int captureImagePk)
        {
            var proxy = new ServiceReferenceFileTransfer.FileTransferClient();

            string fileName  = string.Empty;
            string childPath = string.Empty;
            long   length    = 0;

            var bytes = proxy.DownloadCaptureImageBy(captureImagePk, out childPath, out fileName, out length);

            return(bytes);
        }