yl
2022-08-23 0dd2c49c7123f177338985686fe5a0a00a851fbc
VueWebApi/Controllers/ProductModelController.cs
@@ -15,6 +15,7 @@
    [RoutePrefix(prefix: "api/ProductModel")]
    [ControllerGroup("制造模型", "在线接口")]
    [ChannelActionFilter]
    public class ProductModelController : ApiController
    {
        //定义全局信息返回变量
@@ -282,14 +283,15 @@
        /// 存货档案关联工艺路线提交
        /// </summary>
        /// <param name="partcode">物料编码</param>
        /// <param name="defaultroute_code">默认工艺路线编码</param>
        /// <param name="json">提交数据对象</param>
        /// <returns></returns>
        [Route(template: "SaveInventoryFile")]
        [HttpPost]
        public HttpResponseMessage SaveInventoryFile(string partcode, List<ObjectData> json)
        public HttpResponseMessage SaveInventoryFile(string partcode, List<ObjectData> json, string defaultroute_code = null)
        {
            var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员
            mes = ProductModelBLL.SaveInventoryFile(partcode, username, json);
            mes = ProductModelBLL.SaveInventoryFile(partcode, defaultroute_code, username, json);
            return TJson.toJson(mes);
        }
        #endregion
@@ -361,8 +363,7 @@
        [HttpPost]
        public HttpResponseMessage AddUpdateRoute(string opertype, RoutEdit json,string id=null)
        {
            //var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员
            var username = "Admin";
            var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员
            mes = ProductModelBLL.AddUpdateRoute(id, opertype, username, json);
            return TJson.toJson(mes);
        }