1c400eb5a73bcb138f5b9cc210f040d7f442af73..1cc3df41303aab8216e211e81b4582791e469e90
2025-07-26 kyy
工序维护更新
1cc3df 对比 | 目录
2025-07-26 kyy
Merge branch 'master' of http://git.gs-mes.com:8080/r/~kyy/LW_MesService
cc9078 对比 | 目录
2025-07-26 kyy
039bd6 对比 | 目录
已修改9个文件
已添加4个文件
165 ■■■■ 文件已修改
.gitignore 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/.vs/GsMesSolution/CopilotIndices/17.14.786.1071/CodeChunks.db-shm 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/.vs/GsMesSolution/CopilotIndices/17.14.786.1071/CodeChunks.db-wal 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/.vs/GsMesSolution/CopilotIndices/17.14.786.1071/SemanticSymbols.db-shm 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/.vs/GsMesSolution/CopilotIndices/17.14.786.1071/SemanticSymbols.db-wal 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/.vs/GsMesSolution/DesignTimeBuild/.dtbcache.v2 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/.vs/GsMesSolution/v17/.futdcache.v2 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/.vs/GsMesSolution/v17/DocumentLayout.backup.json 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/.vs/GsMesSolution/v17/DocumentLayout.json 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/.vs/ProjectEvaluation/gsmessolution.metadata.v9.bin 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/.vs/ProjectEvaluation/gsmessolution.projects.v9.bin 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/.vs/ProjectEvaluation/gsmessolution.strings.v9.bin 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/Gs.Wom/WorkService/WorkTechniqueController.cs 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.gitignore
@@ -185,3 +185,5 @@
# Microsoft Fakes
FakesAssemblies/
/WebApi/.vs/GsMesSolution/FileContentIndex
/WebApi/.idea/.idea.GsMesSolution/.idea
/WebApi/.vs/GsMesSolution/v17
WebApi/.vs/GsMesSolution/CopilotIndices/17.14.786.1071/CodeChunks.db-shm
Binary files differ
WebApi/.vs/GsMesSolution/CopilotIndices/17.14.786.1071/CodeChunks.db-wal
Binary files differ
WebApi/.vs/GsMesSolution/CopilotIndices/17.14.786.1071/SemanticSymbols.db-shm
Binary files differ
WebApi/.vs/GsMesSolution/CopilotIndices/17.14.786.1071/SemanticSymbols.db-wal
Binary files differ
WebApi/.vs/GsMesSolution/DesignTimeBuild/.dtbcache.v2
Binary files differ
WebApi/.vs/GsMesSolution/v17/.futdcache.v2
Binary files differ
WebApi/.vs/GsMesSolution/v17/DocumentLayout.backup.json
@@ -3,16 +3,20 @@
  "WorkspaceRootPath": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\",
  "Documents": [
    {
      "AbsoluteMoniker": "D:0:0:{63823BC6-6242-4EBC-8B15-B72B89E8CEDA}|Gs.Wom\\Gs.Wom.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.wom\\workservice\\worktechniquecontroller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
      "RelativeMoniker": "D:0:0:{63823BC6-6242-4EBC-8B15-B72B89E8CEDA}|Gs.Wom\\Gs.Wom.csproj|solutionrelative:gs.wom\\workservice\\worktechniquecontroller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{D13D1BCC-6110-4943-BC98-FC6F3E28CE43}|Gs.Warehouse\\Gs.Warehouse.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.warehouse\\services\\mesdepotsmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
      "RelativeMoniker": "D:0:0:{D13D1BCC-6110-4943-BC98-FC6F3E28CE43}|Gs.Warehouse\\Gs.Warehouse.csproj|solutionrelative:gs.warehouse\\services\\mesdepotsmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{FC3259F8-ED36-4118-BF3F-0B59FF6BA2A6}|Gs.Entity\\Gs.Entity.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.entity\\baseinfo\\mesdepotsections.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
      "RelativeMoniker": "D:0:0:{FC3259F8-ED36-4118-BF3F-0B59FF6BA2A6}|Gs.Entity\\Gs.Entity.csproj|solutionrelative:gs.entity\\baseinfo\\mesdepotsections.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{D13D1BCC-6110-4943-BC98-FC6F3E28CE43}|Gs.Warehouse\\Gs.Warehouse.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.warehouse\\services\\mesinvitemarnmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
      "RelativeMoniker": "D:0:0:{D13D1BCC-6110-4943-BC98-FC6F3E28CE43}|Gs.Warehouse\\Gs.Warehouse.csproj|solutionrelative:gs.warehouse\\services\\mesinvitemarnmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{FC3259F8-ED36-4118-BF3F-0B59FF6BA2A6}|Gs.Entity\\Gs.Entity.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.entity\\baseinfo\\mesdepotsections.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
      "RelativeMoniker": "D:0:0:{FC3259F8-ED36-4118-BF3F-0B59FF6BA2A6}|Gs.Entity\\Gs.Entity.csproj|solutionrelative:gs.entity\\baseinfo\\mesdepotsections.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{D13D1BCC-6110-4943-BC98-FC6F3E28CE43}|Gs.Warehouse\\Gs.Warehouse.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.warehouse\\services\\varrivalbarcodemanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
@@ -34,11 +38,24 @@
      "DocumentGroups": [
        {
          "DockedWidth": 681,
          "SelectedChildIndex": 1,
          "SelectedChildIndex": 0,
          "Children": [
            {
              "$type": "Document",
              "DocumentIndex": 1,
              "DocumentIndex": 0,
              "Title": "WorkTechniqueController.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Wom\\WorkService\\WorkTechniqueController.cs",
              "RelativeDocumentMoniker": "Gs.Wom\\WorkService\\WorkTechniqueController.cs",
              "ToolTip": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Wom\\WorkService\\WorkTechniqueController.cs",
              "RelativeToolTip": "Gs.Wom\\WorkService\\WorkTechniqueController.cs",
              "ViewState": "AgIAAC4BAAAAAAAAAAAAAC4BAAAyAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-26T08:17:09.487Z",
              "EditorCaption": ""
            },
            {
              "$type": "Document",
              "DocumentIndex": 3,
              "Title": "MesDepotSections.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Entity\\BaseInfo\\MesDepotSections.cs",
              "RelativeDocumentMoniker": "Gs.Entity\\BaseInfo\\MesDepotSections.cs",
@@ -46,18 +63,17 @@
              "RelativeToolTip": "Gs.Entity\\BaseInfo\\MesDepotSections.cs",
              "ViewState": "AgIAAA4AAAAAAAAAAAAuwB8AAAAiAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-24T10:44:32.171Z",
              "EditorCaption": ""
              "WhenOpened": "2025-07-24T10:44:32.171Z"
            },
            {
              "$type": "Document",
              "DocumentIndex": 0,
              "DocumentIndex": 1,
              "Title": "MesDepotsManager.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Warehouse\\Services\\MesDepotsManager.cs",
              "RelativeDocumentMoniker": "Gs.Warehouse\\Services\\MesDepotsManager.cs",
              "ToolTip": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Warehouse\\Services\\MesDepotsManager.cs",
              "RelativeToolTip": "Gs.Warehouse\\Services\\MesDepotsManager.cs",
              "ViewState": "AgIAAKgAAAAAAAAAAAAcwLgAAAA+AAAAAAAAAA==",
              "ViewState": "AgIAALsAAAAAAAAAAAAgwLgAAAA+AAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-24T07:07:07.204Z",
              "EditorCaption": ""
@@ -77,7 +93,7 @@
            },
            {
              "$type": "Document",
              "DocumentIndex": 3,
              "DocumentIndex": 4,
              "Title": "VArrivalBarcodeManager.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Warehouse\\Services\\VArrivalBarcodeManager.cs",
              "RelativeDocumentMoniker": "Gs.Warehouse\\Services\\VArrivalBarcodeManager.cs",
@@ -85,12 +101,11 @@
              "RelativeToolTip": "Gs.Warehouse\\Services\\VArrivalBarcodeManager.cs",
              "ViewState": "AgIAAAAAAAAAAAAAAAAAAEMAAAAiAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-24T04:42:14.961Z",
              "EditorCaption": ""
              "WhenOpened": "2025-07-24T04:42:14.961Z"
            },
            {
              "$type": "Document",
              "DocumentIndex": 4,
              "DocumentIndex": 5,
              "Title": "MesSysPageviewManager.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Sys\\Services\\MesSysPageviewManager.cs",
              "RelativeDocumentMoniker": "Gs.Sys\\Services\\MesSysPageviewManager.cs",
@@ -98,12 +113,11 @@
              "RelativeToolTip": "Gs.Sys\\Services\\MesSysPageviewManager.cs",
              "ViewState": "AgIAACwAAAAAAAAAAAAewEMAAAAtAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-24T02:48:45.457Z",
              "EditorCaption": ""
              "WhenOpened": "2025-07-24T02:48:45.457Z"
            },
            {
              "$type": "Document",
              "DocumentIndex": 5,
              "DocumentIndex": 6,
              "Title": "OrganizationController.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Sys\\Services\\OrganizationController.cs",
              "RelativeDocumentMoniker": "Gs.Sys\\Services\\OrganizationController.cs",
@@ -111,8 +125,7 @@
              "RelativeToolTip": "Gs.Sys\\Services\\OrganizationController.cs",
              "ViewState": "AgIAACEAAAAAAAAAAAAtwCwAAABGAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-24T02:18:44.035Z",
              "EditorCaption": ""
              "WhenOpened": "2025-07-24T02:18:44.035Z"
            }
          ]
        },
WebApi/.vs/GsMesSolution/v17/DocumentLayout.json
@@ -3,16 +3,20 @@
  "WorkspaceRootPath": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\",
  "Documents": [
    {
      "AbsoluteMoniker": "D:0:0:{63823BC6-6242-4EBC-8B15-B72B89E8CEDA}|Gs.Wom\\Gs.Wom.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.wom\\workservice\\worktechniquecontroller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
      "RelativeMoniker": "D:0:0:{63823BC6-6242-4EBC-8B15-B72B89E8CEDA}|Gs.Wom\\Gs.Wom.csproj|solutionrelative:gs.wom\\workservice\\worktechniquecontroller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{D13D1BCC-6110-4943-BC98-FC6F3E28CE43}|Gs.Warehouse\\Gs.Warehouse.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.warehouse\\services\\mesdepotsmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
      "RelativeMoniker": "D:0:0:{D13D1BCC-6110-4943-BC98-FC6F3E28CE43}|Gs.Warehouse\\Gs.Warehouse.csproj|solutionrelative:gs.warehouse\\services\\mesdepotsmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{FC3259F8-ED36-4118-BF3F-0B59FF6BA2A6}|Gs.Entity\\Gs.Entity.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.entity\\baseinfo\\mesdepotsections.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
      "RelativeMoniker": "D:0:0:{FC3259F8-ED36-4118-BF3F-0B59FF6BA2A6}|Gs.Entity\\Gs.Entity.csproj|solutionrelative:gs.entity\\baseinfo\\mesdepotsections.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{D13D1BCC-6110-4943-BC98-FC6F3E28CE43}|Gs.Warehouse\\Gs.Warehouse.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.warehouse\\services\\mesinvitemarnmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
      "RelativeMoniker": "D:0:0:{D13D1BCC-6110-4943-BC98-FC6F3E28CE43}|Gs.Warehouse\\Gs.Warehouse.csproj|solutionrelative:gs.warehouse\\services\\mesinvitemarnmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{FC3259F8-ED36-4118-BF3F-0B59FF6BA2A6}|Gs.Entity\\Gs.Entity.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.entity\\baseinfo\\mesdepotsections.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
      "RelativeMoniker": "D:0:0:{FC3259F8-ED36-4118-BF3F-0B59FF6BA2A6}|Gs.Entity\\Gs.Entity.csproj|solutionrelative:gs.entity\\baseinfo\\mesdepotsections.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{D13D1BCC-6110-4943-BC98-FC6F3E28CE43}|Gs.Warehouse\\Gs.Warehouse.csproj|e:\\messourcecode\\pc_cshap\\webapi\\gs.warehouse\\services\\varrivalbarcodemanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
@@ -34,11 +38,24 @@
      "DocumentGroups": [
        {
          "DockedWidth": 681,
          "SelectedChildIndex": 1,
          "SelectedChildIndex": 0,
          "Children": [
            {
              "$type": "Document",
              "DocumentIndex": 1,
              "DocumentIndex": 0,
              "Title": "WorkTechniqueController.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Wom\\WorkService\\WorkTechniqueController.cs",
              "RelativeDocumentMoniker": "Gs.Wom\\WorkService\\WorkTechniqueController.cs",
              "ToolTip": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Wom\\WorkService\\WorkTechniqueController.cs",
              "RelativeToolTip": "Gs.Wom\\WorkService\\WorkTechniqueController.cs",
              "ViewState": "AgIAAC4BAAAAAAAAAAAAAEIBAAAmAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-26T08:17:09.487Z",
              "EditorCaption": ""
            },
            {
              "$type": "Document",
              "DocumentIndex": 3,
              "Title": "MesDepotSections.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Entity\\BaseInfo\\MesDepotSections.cs",
              "RelativeDocumentMoniker": "Gs.Entity\\BaseInfo\\MesDepotSections.cs",
@@ -46,18 +63,17 @@
              "RelativeToolTip": "Gs.Entity\\BaseInfo\\MesDepotSections.cs",
              "ViewState": "AgIAAA4AAAAAAAAAAAAuwB8AAAAiAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-24T10:44:32.171Z",
              "EditorCaption": ""
              "WhenOpened": "2025-07-24T10:44:32.171Z"
            },
            {
              "$type": "Document",
              "DocumentIndex": 0,
              "DocumentIndex": 1,
              "Title": "MesDepotsManager.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Warehouse\\Services\\MesDepotsManager.cs",
              "RelativeDocumentMoniker": "Gs.Warehouse\\Services\\MesDepotsManager.cs",
              "ToolTip": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Warehouse\\Services\\MesDepotsManager.cs",
              "RelativeToolTip": "Gs.Warehouse\\Services\\MesDepotsManager.cs",
              "ViewState": "AgIAAKgAAAAAAAAAAAAcwLgAAAA+AAAAAAAAAA==",
              "ViewState": "AgIAALsAAAAAAAAAAAAgwLgAAAA+AAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-24T07:07:07.204Z",
              "EditorCaption": ""
@@ -77,7 +93,7 @@
            },
            {
              "$type": "Document",
              "DocumentIndex": 3,
              "DocumentIndex": 4,
              "Title": "VArrivalBarcodeManager.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Warehouse\\Services\\VArrivalBarcodeManager.cs",
              "RelativeDocumentMoniker": "Gs.Warehouse\\Services\\VArrivalBarcodeManager.cs",
@@ -85,12 +101,11 @@
              "RelativeToolTip": "Gs.Warehouse\\Services\\VArrivalBarcodeManager.cs",
              "ViewState": "AgIAAAAAAAAAAAAAAAAAAEMAAAAiAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-24T04:42:14.961Z",
              "EditorCaption": ""
              "WhenOpened": "2025-07-24T04:42:14.961Z"
            },
            {
              "$type": "Document",
              "DocumentIndex": 4,
              "DocumentIndex": 5,
              "Title": "MesSysPageviewManager.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Sys\\Services\\MesSysPageviewManager.cs",
              "RelativeDocumentMoniker": "Gs.Sys\\Services\\MesSysPageviewManager.cs",
@@ -98,12 +113,11 @@
              "RelativeToolTip": "Gs.Sys\\Services\\MesSysPageviewManager.cs",
              "ViewState": "AgIAACwAAAAAAAAAAAAewEMAAAAtAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-24T02:48:45.457Z",
              "EditorCaption": ""
              "WhenOpened": "2025-07-24T02:48:45.457Z"
            },
            {
              "$type": "Document",
              "DocumentIndex": 5,
              "DocumentIndex": 6,
              "Title": "OrganizationController.cs",
              "DocumentMoniker": "E:\\MesSourceCode\\PC_Cshap\\WebApi\\Gs.Sys\\Services\\OrganizationController.cs",
              "RelativeDocumentMoniker": "Gs.Sys\\Services\\OrganizationController.cs",
@@ -111,8 +125,7 @@
              "RelativeToolTip": "Gs.Sys\\Services\\OrganizationController.cs",
              "ViewState": "AgIAACEAAAAAAAAAAAAtwCwAAABGAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
              "WhenOpened": "2025-07-24T02:18:44.035Z",
              "EditorCaption": ""
              "WhenOpened": "2025-07-24T02:18:44.035Z"
            }
          ]
        },
WebApi/.vs/ProjectEvaluation/gsmessolution.metadata.v9.bin
Binary files differ
WebApi/.vs/ProjectEvaluation/gsmessolution.projects.v9.bin
Binary files differ
WebApi/.vs/ProjectEvaluation/gsmessolution.strings.v9.bin
Binary files differ
WebApi/Gs.Wom/WorkService/WorkTechniqueController.cs
@@ -292,6 +292,67 @@
            return ReturnDto<int>.QuickReturn(rtnInt, ReturnCode.Success, _outMsg);
        }
        /// <summary>
        ///     删除主表或明细
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        [RequestMethod(RequestMethods.POST)]
        public ReturnDto<int?> DeleteMode2OrMx([FromBody] dynamic model)
        {
            int? rtnInt = (int)ReturnCode.Default;
            Guid? guid = model.guid;
            string mxGuid2 = model.mxGuid2;
            var _outMsg = "";
            var _outSum = -1;
            using (var conn = new SqlConnection(DbHelperSQL.strConn))
            {
                //using (var cmd = new SqlCommand("[work_technique_del]", conn))
                using (var cmd = new SqlCommand("[mes_prod_gx_del2]", conn))
                {
                    try
                    {
                        conn.Open();
                        cmd.CommandType = CommandType.StoredProcedure;
                        SqlParameter[] parameters =
                        {
                        new("@outMsg", SqlDbType.NVarChar, 300),
                        new("@outSum", SqlDbType.Int),
                        new("@inOrderGuid",
                            CheckGuid(guid)
                                ? guid
                                : DBNull.Value),
                        new("@inEdtUserGuid", _userGuid),
                        new("@inMxGuid", mxGuid2)
                    };
                        parameters[0].Direction = ParameterDirection.Output;
                        parameters[1].Direction = ParameterDirection.Output;
                        foreach (var parameter in parameters)
                            cmd.Parameters.Add(parameter);
                        cmd.ExecuteNonQuery();
                        _outMsg = parameters[0].Value.ToString();
                        _outSum = int.Parse(parameters[1].Value.ToString());
                    }
                    catch (Exception ex)
                    {
                        LogHelper.Debug(ToString(),
                            "work_technique error:" + ex.Message);
                        _outMsg = ex.Message;
                        _outSum = -1;
                    }
                    finally
                    {
                        conn.Close();
                    }
                }
            }
            if (_outSum <= 0)
                return ReturnDto<int>.QuickReturn(rtnInt, ReturnCode.Exception,
                    _outMsg);
            return ReturnDto<int>.QuickReturn(rtnInt, ReturnCode.Success, _outMsg);
        }
        /// <summary>
        ///  复制物料项目