| | |
| | | { |
| | | [RoutePrefix(prefix: "api/SystemSetting")] |
| | | [ControllerGroup("系统设置", "在线接口")] |
| | | [ChannelActionFilter] |
| | | public class SystemSettingController : ApiController |
| | | { |
| | | //定义全局信息返回变量 |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region[获取规则生成的编码] |
| | | #region[获取规则生成的编码(固定)] |
| | | /// <summary> |
| | | /// 获取规则生成的编码 |
| | | /// </summary> |
| | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[生成系统条码(自定义)] |
| | | /// <summary> |
| | | /// 生成系统条码(自定义) |
| | | /// </summary> |
| | | /// <param name="rightcode">功能编码</param> |
| | | /// <param name="partcode">物料编码</param> |
| | | /// <param name="qty">数量</param> |
| | | /// <param name="onelabqty">单标签数量</param> |
| | | /// <returns></returns> |
| | | [Route(template: "LabelBarCode")] |
| | | [HttpGet] |
| | | public HttpResponseMessage LabelBarCode(string rightcode, string partcode, string qty, string onelabqty) |
| | | { |
| | | mes = SystemSettingBLL.LabelBarCode(rightcode, partcode, qty, onelabqty); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[车间公告列表] |
| | |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[获取单据号] |
| | | /// <summary> |
| | | /// 获取单据号 |
| | | /// </summary> |
| | | /// <param name="rightcode">功能编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "NewOrderCodeSearch")] |
| | | [HttpPost] |
| | | public HttpResponseMessage NewOrderCodeSearch(string rightcode) |
| | | { |
| | | mes = ProductionManagementBLL.ProductInHouseOrderCodeSearch(rightcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[App版本升级接口] |
| | | /// <summary> |
| | | /// App版本升级接口 |
| | | /// </summary> |
| | | /// <param name="rid">设备id</param> |
| | | /// <param name="vision">App当前使用版本号</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AppUpgrade")] |
| | | [HttpPost] |
| | | public HttpResponseMessage AppUpgrade(string rid, string vision) |
| | | { |
| | | mes = SystemSettingBLL.AppUpgrade(rid, vision); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | } |
| | | } |