| | |
| | | using System.Web.Http; |
| | | using WebAPI.Controllers.SCGL.日计划管理; |
| | | using WebAPI.Models; |
| | | using WebAPI.Utility; |
| | | |
| | | namespace WebAPI.Controllers |
| | | { |
| | | public class Xt_UserController : ApiController |
| | |
| | | #region[用户列表查询] |
| | | [Route("Xt_User/list")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Xt_User_Query")] |
| | | public object list(string sWhere,string user) |
| | | { |
| | | try |
| | |
| | | #region 用户关联仓库列表查询 |
| | | [Route("Xt_User/Gy_UserStockRelationList")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserStockRelation_Query")] |
| | | public object Gy_UserStockRelationList(string sWhere, string user) |
| | | { |
| | | try |
| | |
| | | /// </summary> |
| | | [Route("Xt_User/Gy_UserStockRelationDrop")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserStockRelation_Drop")] |
| | | public object Gy_UserStockRelationDrop(string HItemID, string user) |
| | | { |
| | | try |
| | |
| | | #region 用户关联用户列表查询 |
| | | [Route("Xt_User/Gy_UserByUserList")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserByUser_Query")] |
| | | public object Gy_UserByUserList(string sWhere, string user) |
| | | { |
| | | try |
| | |
| | | /// </summary> |
| | | [Route("Xt_User/UserByWorkStationRelationList")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserWorkStationList_Query")] |
| | | public object UserByWorkStationRelationList(string sWhere, string user) |
| | | { |
| | | try |
| | |
| | | #region 用户关联工位保存 |
| | | [Route("Xt_User/SaveUserByWorkStation")] |
| | | [HttpPost] |
| | | [Permission(HModName = "Gy_UserWorkStationList_Edit")] |
| | | public object SaveUserByWorkStation([FromBody] JObject msg) |
| | | { |
| | | var _value = msg["msg"].ToString(); |
| | |
| | | /// </summary> |
| | | [Route("Xt_User/UserByWorkStationRelationList_Drop")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserWorkStationList_Drop")] |
| | | public object UserByWorkStationRelationList_Drop(string HInterID, string user) |
| | | { |
| | | try |
| | |
| | | #region 用户关联用户保存 |
| | | [Route("Xt_User/SaveUserUser")] |
| | | [HttpPost] |
| | | [Permission(HModName = "Gy_UserByUser_Edit")] |
| | | public object SaveUserUser([FromBody] JObject msg) |
| | | { |
| | | var _value = msg["msg"].ToString(); |
| | |
| | | #region 用户关联物料列表查询 |
| | | [Route("Xt_User/Gy_UserMaterList")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserMaterList_Query")] |
| | | public object Gy_UserMaterList(string sWhere, string user) |
| | | { |
| | | try |
| | |
| | | /// </summary> |
| | | [Route("Xt_User/Gy_UserMaterRelationDrop")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserMaterList_Drop")] |
| | | public object Gy_UserMaterRelationDrop(string HItemID, string user) |
| | | { |
| | | try |
| | |
| | | #region 根据用户编码查找已分配客户列表 |
| | | [Route("Xt_User/CustomerPlaylist")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserRelationCustomer", Operate = "_Query")] |
| | | public object CustomerPlaylist(string HUserID, string CurUserName) |
| | | { |
| | | try |
| | |
| | | #region 查询指定用户所关联客户中的客户 |
| | | [Route("Xt_User/CustomerPlaylistFromUserCustomerList")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserRelationCustomer", Operate = "_Query")] |
| | | public object CustomerPlaylistFromUserCustomerList(string HUserID, string HCusNumber, string HCusName, string CurUserName) |
| | | { |
| | | try |
| | |
| | | #region 用户关联客户保存 |
| | | [Route("Xt_User/SaveUserCustomer")] |
| | | [HttpPost] |
| | | [Permission(HModName = "Gy_UserRelationCustomer", Operate = "_Edit")] |
| | | public object SaveUserCustomer([FromBody] JObject msg) |
| | | { |
| | | var _value = msg["msg"].ToString(); |
| | |
| | | #region 用户关联工序列表查询 |
| | | [Route("Xt_User/UserProcesslist")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserMaterList_Query")] |
| | | public object UserProcesslist(string sWhere, string user) |
| | | { |
| | | try |
| | |
| | | /// </summary> |
| | | [Route("Xt_User/Gy_UserProcessDrop")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserProcessList_Drop")] |
| | | public object Gy_UserProcessDrop(string HItemID, string user) |
| | | { |
| | | try |
| | |
| | | /// </summary> |
| | | [Route("Xt_User/UserSupplierRelationList_Drop")] |
| | | [HttpGet] |
| | | [Permission(HModName = "Gy_UserSupplierRelation_Delete")] |
| | | public object UserSupplierRelationList_Drop(string HInterID, string user) |
| | | { |
| | | try |