| | |
| | | using System.Linq; |
| | | using System.Web; |
| | | using VueWebApi.DLL.DAL; |
| | | using VueWebApi.Models; |
| | | using VueWebApi.Tools; |
| | | |
| | | namespace VueWebApi.DLL.BLL |
| | |
| | | #endregion |
| | | |
| | | #region[设备类型新增] |
| | | public static ToMessage AddUpdateDeviceType(string devicetypecode, string devicetypename, string devicetypedescipt, string usercode) |
| | | public static ToMessage AddUpdateDeviceType(List<ObjectDataCont> json,string username) |
| | | { |
| | | return DeviceManagerDAL.AddUpdateDeviceType(devicetypecode, devicetypename, devicetypedescipt, usercode); |
| | | return DeviceManagerDAL.AddUpdateDeviceType(json, username); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备类型删除] |
| | | public static ToMessage DeleteDeviceType(string devicetypeid) |
| | | public static ToMessage DeleteDeviceType(string devicetypecode) |
| | | { |
| | | return DeviceManagerDAL.DeleteDeviceType(devicetypeid); |
| | | return DeviceManagerDAL.DeleteDeviceType(devicetypecode); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[设备类型下拉框接口] |
| | | public static ToMessage DeviceTypeSelect() |
| | | { |
| | | return DeviceManagerDAL.DeviceTypeSelect(); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备组查询] |
| | | public static ToMessage DeviceGroupSearch(int startNum, int endNum, string prop, string order) |
| | | { |
| | | return DeviceManagerDAL.DeviceGroupSearch(startNum, endNum, prop, order); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备组新增] |
| | | public static ToMessage AddUpdateDeviceGroup(List<ObjectDataCont> json, string username) |
| | | { |
| | | return DeviceManagerDAL.AddUpdateDeviceGroup(json, username); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备组删除] |
| | | public static ToMessage DeleteDeviceGroup(string devicegroupcode) |
| | | { |
| | | return DeviceManagerDAL.DeleteDeviceGroup(devicegroupcode); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[设备类型查找设备组] |
| | | public static ToMessage DeviceTypeSelectGroup(string eqptypecode) |
| | | { |
| | | return DeviceManagerDAL.DeviceTypeSelectGroup(eqptypecode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[所属车间下拉接口] |
| | | public static ToMessage WorkShopSelect() |
| | | { |
| | | return DeviceManagerDAL.WorkShopSelect(); |
| | | } |
| | | #endregion |
| | | |
| | | #region [设备清单查询] |
| | | public static ToMessage DeviceMangerSearch(string deviceCode, string deviceName, string status, string workShop, string deviceType, string deviceGroup, int startNum, int endNum, string prop, string order) |
| | |
| | | #endregion |
| | | |
| | | #region[设备清单新增编辑] |
| | | public static ToMessage AddUpdateDeviceManger(string deviceid, string devicecode, string devicename, string devicetype, string devicegroup, string importdate, string workshop, string status, string ratio, string usercode, string operType) |
| | | public static ToMessage AddUpdateDeviceManger(string deviceid, string devicecode, string devicename, string devicetype, string devicegroup, string importdate, string workshop,string linecode, string status, string ratio, string usercode, string operType) |
| | | { |
| | | return DeviceManagerDAL.AddUpdateDeviceManger(deviceid, devicecode, devicename, devicetype, devicegroup, importdate, workshop, status, ratio, usercode, operType); |
| | | return DeviceManagerDAL.AddUpdateDeviceManger(deviceid, devicecode, devicename, devicetype, devicegroup, importdate, workshop, linecode, status, ratio, usercode, operType); |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备清单删除] |
| | | public static ToMessage DeleteDeviceManger(string deviceid) |
| | | public static ToMessage DeleteDeviceManger(string devicecode) |
| | | { |
| | | return DeviceManagerDAL.DeleteDeviceManger(deviceid); |
| | | return DeviceManagerDAL.DeleteDeviceManger(devicecode); |
| | | } |
| | | #endregion |
| | | } |