cnf
2025-05-12 96b22db20a74963e39e490e94bf969cc60ef1b04
最新
已添加1个文件
已修改3个文件
55 ■■■■■ 文件已修改
.vs/HM-C#/v17/.wsuo 补丁 | 查看 | 原始文档 | blame | 历史
.vs/HM-C#/v17/DocumentLayout.backup.json 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.vs/HM-C#/v17/DocumentLayout.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardInterface/MESApplication/Controllers/PLM/PLMController.cs 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.vs/HM-C#/v17/.wsuo
Binary files differ
.vs/HM-C#/v17/DocumentLayout.backup.json
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
{
  "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}"
            }
          ]
        }
      ]
    }
  ]
}
.vs/HM-C#/v17/DocumentLayout.json
@@ -1,6 +1,6 @@
{
  "Version": 1,
  "WorkspaceRootPath": "D:\\VISUAL STUDIOS JOB\\HM\\HM-C#\\",
  "WorkspaceRootPath": "D:\\VISUAL STUDIOS JOB\\HM\\HM-c#\\",
  "Documents": [],
  "DocumentGroupContainers": [
    {
StandardInterface/MESApplication/Controllers/PLM/PLMController.cs
@@ -4,6 +4,7 @@
using Microsoft.AspNetCore.Mvc;
using System.Dynamic;
using System.IO;
using System.Net.Http.Headers;
namespace MESApplication.Controllers.PLM;
@@ -122,4 +123,33 @@
            });
        }
    }
    //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
            });
        }
    }
}