| | |
| | | namespace VueWebApi.Controllers |
| | | { |
| | | |
| | | [RoutePrefix(prefix: "api/BasicSetting")] |
| | | [RoutePrefix(prefix: "api/ProductModel")] |
| | | [ControllerGroup("制造模型", "在线接口")] |
| | | public class ProductModelController : ApiController |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | #region[工艺路线下拉查询接口] |
| | | #region[工序下拉查询接口] |
| | | /// <summary> |
| | | /// 工艺路线下拉查询接口 |
| | | /// 工序下拉查询接口 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route(template: "RouteSelect")] |
| | | [Route(template: "StepSelect")] |
| | | [HttpGet] |
| | | public HttpResponseMessage RouteSelect() |
| | | public HttpResponseMessage StepSelect() |
| | | { |
| | | mes = ProductModelBLL.RouteSelect(); |
| | | mes = ProductModelBLL.StepSelect(); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | |
| | | #region[工艺路线新增] |
| | | /// <summary> |
| | | /// 工艺路线新增编辑 |
| | | /// 工艺路线新增 |
| | | /// </summary> |
| | | /// <param name="id">工艺路线id</param> |
| | | /// <param name="opertype">操作类型(新增)</param> |
| | |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateRoute")] |
| | | [HttpPost] |
| | | public HttpResponseMessage AddUpdateRoute(string id, string opertype, RoutEdit json) |
| | | public HttpResponseMessage AddUpdateRoute(string opertype, RoutEdit json,string id=null) |
| | | { |
| | | var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员 |
| | | //var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员 |
| | | var username = "Admin"; |
| | | mes = ProductModelBLL.AddUpdateRoute(id, opertype, username, json); |
| | | return TJson.toJson(mes); |
| | | } |
| | |
| | | #endregion |
| | | |
| | | #region[节拍工价删除] |
| | | /// <summary> |
| | | /// 节拍工价删除 |
| | | /// </summary> |
| | | /// <param name="partcode">产品编码</param> |
| | | /// <param name="routecode">工艺路线编码</param> |
| | | /// <param name="stepcode">工序编码</param> |
| | | /// <param name="eqpcode">设备编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeleteBeatRate")] |
| | | [HttpPost] |
| | | public HttpResponseMessage DeleteBeatRate(string partcode,string routecode,string stepcode,string eqpcode) |