| | |
| | | |
| | | [RoutePrefix(prefix: "api/ProductModel")] |
| | | [ControllerGroup("制造模型", "在线接口")] |
| | | [ChannelActionFilter] |
| | | public class ProductModelController : ApiController |
| | | { |
| | | //定义全局信息返回变量 |
| | |
| | | /// 存货档案关联工艺路线提交 |
| | | /// </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 |