¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "Version": 1, |
| | | "WorkspaceRootPath": "D:\\VISUAL STUDIOS JOB\\HM\\HM-C#\\", |
| | | "Documents": [], |
| | | "DocumentGroupContainers": [ |
| | | { |
| | | "Orientation": 0, |
| | | "VerticalTabListWidth": 256, |
| | | "DocumentGroups": [ |
| | | { |
| | | "DockedWidth": 200, |
| | | "SelectedChildIndex": -1, |
| | | "Children": [ |
| | | { |
| | | "$type": "Bookmark", |
| | | "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | |
| | | { |
| | | "Version": 1, |
| | | "WorkspaceRootPath": "D:\\VISUAL STUDIOS JOB\\HM\\HM-C#\\", |
| | | "WorkspaceRootPath": "D:\\VISUAL STUDIOS JOB\\HM\\HM-c#\\", |
| | | "Documents": [], |
| | | "DocumentGroupContainers": [ |
| | | { |
| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System.Dynamic; |
| | | using System.IO; |
| | | using System.Net.Http.Headers; |
| | | |
| | | namespace MESApplication.Controllers.PLM; |
| | | |
| | |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //MP-Oåå-83070100066æ ·å1-83070100068æ ·å2.pdf |
| | | //e18f53b6-6615-8140-11ee-423d1dd32487 |
| | | //RetrieveDrawings è°åå¾çº¸ getæ¹å¼ |
| | | [HttpGet("OpenDrawingsGet")] |
| | | public IActionResult OpenDrawingsGet(string fileId, string fName) |
| | | { |
| | | try |
| | | { |
| | | var resultInfos = wdd.SendRequest("Download", fileId); |
| | | |
| | | // æ·»å Content-Dispositionååºå¤´ |
| | | var cd = new ContentDispositionHeaderValue("attachment"); |
| | | cd.FileNameStar = fName; // èªå¨å¤çç¼ç |
| | | Response.Headers.Add("Content-Disposition", cd.ToString()); |
| | | |
| | | return File(resultInfos, "application/octet-stream", fName); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return StatusCode(500, new ResponseResult |
| | | { |
| | | status = 1, |
| | | message = ex.Message, |
| | | data = null |
| | | }); |
| | | } |
| | | } |
| | | |
| | | } |