From eddeff0b81ea84c3b66ab1b8b7943146f953b0e1 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期一, 13 二月 2023 17:17:05 +0800
Subject: [PATCH] 1.往来单位同步修改(客户、供应商、客户/供应商) 2.往来单位新增/编修 :单位属性改为(客户、供应商、客户/供应商) 3.生产开报工PC端、APP端:外协工序时外协供应商(供应商、客户/供应商) 4.委外工序明细报表:(供应商、客户/供应商) 5.工序定义关联工作站(供应商、客户/供应商) 6.综合看板右上角字段(供应商、客户/供应商) 7.采购订单看板(供应商、客户/供应商) 8.采购订单关闭接口开发
---
VueWebApi/Controllers/BasicSettingController.cs | 156 ++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 152 insertions(+), 4 deletions(-)
diff --git a/VueWebApi/Controllers/BasicSettingController.cs b/VueWebApi/Controllers/BasicSettingController.cs
index 8be5193..3fe5bdc 100644
--- a/VueWebApi/Controllers/BasicSettingController.cs
+++ b/VueWebApi/Controllers/BasicSettingController.cs
@@ -2,6 +2,7 @@
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
+using System.Data;
using System.IO;
using System.Linq;
using System.Net;
@@ -17,6 +18,7 @@
{
[RoutePrefix(prefix: "api/BasicSetting")]
[ControllerGroup("鍩虹璁剧疆","鍦ㄧ嚎鎺ュ彛")]
+ [ChannelActionFilter]
public class BasicSettingController : ApiController
{
//瀹氫箟鍏ㄥ眬淇℃伅杩斿洖鍙橀噺
@@ -614,15 +616,13 @@
string unitid = obj["id"].ToString(); //寰�鏉ュ崟浣峣d(涓婚敭)
string unitcode = obj["unitcode"].ToString(); //寰�鏉ュ崟浣嶇紪鐮佺紪鐮�
string unitname = obj["unitname"].ToString(); //寰�鏉ュ崟浣嶅悕绉�
- string mtypecode = obj["mtypecode"].ToString(); //澶栬喘渚涙柟缂栫爜
- string btypecode = obj["btypecode"].ToString(); //澶栧崗渚涙柟缂栫爜
- string htypecode = obj["htypecode"].ToString(); //瀹㈡埛缂栫爜
+ string typecode = obj["typecode"].ToString(); //鍗曚綅灞炴�х紪鐮�
string person = obj["person"].ToString(); //鑱旂郴浜�
string contact = obj["contact"].ToString(); //鑱旂郴鏂瑰紡
string description = obj["description"].ToString(); //琛ュ厖鎻忚堪
var usercode = HttpContext.Current.Request.Cookies["admin"].Value.ToString();
string OperType = obj["OperType"].ToString(); //鎿嶄綔绫诲瀷
- mes = BasicSettingBLL.AddUpdateCurrentUnit(unitid, unitcode, unitname, mtypecode, btypecode,htypecode, person, contact, description, usercode, OperType);
+ mes = BasicSettingBLL.AddUpdateCurrentUnit(unitid, unitcode, unitname, typecode, person, contact, description, usercode, OperType);
return TJson.toJson(mes);
}
#endregion
@@ -641,5 +641,153 @@
return TJson.toJson(mes);
}
#endregion
+
+
+ #region[瀹夌伅绯荤粺/鑷畾涔夊畨鐏懠鍙被鍨嬫煡璇
+ /// <summary>
+ /// 瀹夌伅绯荤粺/鑷畾涔夊畨鐏懠鍙被鍨嬫煡璇�
+ /// </summary>
+ /// <returns></returns>
+ [Route(template: "AnDengTypeSearch")]
+ [HttpGet]
+ public HttpResponseMessage AnDengTypeSearch()
+ {
+ mes = BasicSettingBLL.AnDengTypeSearch();
+ return TJson.toJson(mes);
+ }
+ #endregion
+
+ #region[瀹夌伅绯荤粺/鑷畾涔夊畨鐏懠鍙被鍨嬫柊澧瀅
+ /// <summary>
+ /// 瀹夌伅绯荤粺/鑷畾涔夊畨鐏懠鍙被鍨嬫柊澧�
+ /// </summary>
+ /// <param name="json">鎻愪氦鏁版嵁瀵硅薄</param>
+ /// <returns></returns>
+ [Route(template: "AddUpdateAnDengType")]
+ [HttpPost]
+ public HttpResponseMessage AddUpdateAnDengType(List<ObjectData> json)
+ {
+ var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString();
+ mes = BasicSettingBLL.AddUpdateAnDengType(json, username);
+ return TJson.toJson(mes);
+ }
+ #endregion
+
+ #region[瀹夌伅绯荤粺/鑷畾涔夊畨鐏懠鍙被鍨嬪垹闄
+ /// <summary>
+ /// 瀹夌伅绯荤粺/鑷畾涔夊畨鐏懠鍙被鍨嬪垹闄�
+ /// </summary>
+ /// <param name="andengtypecode">瀹夌伅鍛煎彨绫诲瀷缂栫爜</param>
+ /// <returns></returns>
+ [Route(template: "DeleteAnDengType")]
+ [HttpPost]
+ public HttpResponseMessage DeleteAnDengType(string andengtypecode)
+ {
+ mes = BasicSettingBLL.DeleteAnDengType(andengtypecode);
+ return TJson.toJson(mes);
+ }
+ #endregion
+
+ #region[瀹夌伅绯荤粺/鏌ヨ缁戝畾鐨勫搷搴斾汉鍛榏
+ /// <summary>
+ /// 瀹夌伅绯荤粺/鏌ヨ缁戝畾鐨勫搷搴斾汉鍛�
+ /// </summary>
+ /// <param name="wkshopcode">閫変腑鐨勮溅闂寸紪鐮�</param>
+ /// <param name="calltypecode">閫変腑鐨勫懠鍙被鍨嬬紪鐮�</param>
+ /// <returns></returns>
+ [Route(template: "AnDengResponUserSearch")]
+ [HttpGet]
+ public HttpResponseMessage AnDengResponUserSearch(string wkshopcode,string calltypecode)
+ {
+ mes = BasicSettingBLL.AnDengResponUserSearch(wkshopcode, calltypecode);
+ return TJson.toJson(mes);
+ }
+ #endregion
+
+ #region[瀹夌伅绯荤粺/鏂板鍝嶅簲浜哄憳鏌ヨ宸茬粦瀹氱殑鍝嶅簲浜哄憳]
+ /// <summary>
+ /// 瀹夌伅绯荤粺/鏂板鍝嶅簲浜哄憳鏌ヨ宸茬粦瀹氱殑鍝嶅簲浜哄憳
+ /// </summary>
+ /// <param name="wkshopcode">閫変腑鐨勮溅闂寸紪鐮�</param>
+ /// <param name="calltypecode">閫変腑鐨勫懠鍙被鍨嬬紪鐮�</param>
+ /// <returns></returns>
+ [Route(template: "AnDengDigoResponUserSearch")]
+ [HttpGet]
+ public HttpResponseMessage AnDengDialogResponUserSearch(string wkshopcode, string calltypecode)
+ {
+ mes = BasicSettingBLL.AnDengDialogResponUserSearch(wkshopcode, calltypecode);
+ return TJson.toJson(mes);
+ }
+ #endregion
+
+ #region[瀹夌伅绯荤粺/鏂板鍝嶅簲浜哄憳鎻愪氦]
+ /// <summary>
+ /// 瀹夌伅绯荤粺/鏂板鍝嶅簲浜哄憳鎻愪氦
+ /// </summary>
+ /// <param name="wkshopcode">閫変腑鐨勮溅闂寸紪鐮�</param>
+ /// <param name="calltypecode">閫変腑鐨勫懠鍙被鍨嬬紪鐮�</param>
+ /// <param name="enable">鍏佽鍏抽棴</param>
+ /// <param name="json">鍝嶅簲浜哄憳鏁版嵁</param>
+ /// <returns></returns>
+ [Route(template: "AnDengDigoResponUserSeave")]
+ [HttpPost]
+ public HttpResponseMessage AnDengDigoResponUserSeave(string wkshopcode, string calltypecode,string enable,DataTable json)
+ {
+ var usercode = HttpContext.Current.Request.Cookies["admin"].Value.ToString();
+ mes = BasicSettingBLL.AnDengDigoResponUserSeave(wkshopcode, calltypecode, enable, usercode,json);
+ return TJson.toJson(mes);
+ }
+ #endregion
+
+ #region[瀹夌伅绯荤粺/鍝嶅簲浜哄憳鍏佽鍏抽棴]
+ /// <summary>
+ /// 瀹夌伅绯荤粺/鍝嶅簲浜哄憳鍏佽鍏抽棴
+ /// </summary>
+ /// <param name="wkshopcode">閫変腑鐨勮溅闂寸紪鐮�</param>
+ /// <param name="calltypecode">閫変腑鐨勫懠鍙被鍨嬬紪鐮�</param>
+ /// <param name="enable">鍏佽鍏抽棴</param>
+ /// <returns></returns>
+ [Route(template: "AnDengResponUserCloseSeave")]
+ [HttpPost]
+ public HttpResponseMessage AnDengResponUserCloseSeave(string wkshopcode, string calltypecode, string enable)
+ {
+ var usercode = HttpContext.Current.Request.Cookies["admin"].Value.ToString();
+ mes = BasicSettingBLL.AnDengResponUserCloseSeave(wkshopcode, calltypecode, enable, usercode);
+ return TJson.toJson(mes);
+ }
+ #endregion
+
+ #region[瀹夌伅绯荤粺/鍝嶅簲浜哄憳鍒犻櫎]
+ /// <summary>
+ /// 瀹夌伅绯荤粺/鍝嶅簲浜哄憳鍒犻櫎
+ /// </summary>
+ /// <param name="id">瀛恑d</param>
+ /// <param name="ando_cogfigid">涓籭d</param>
+ /// <returns></returns>
+ [Route(template: "AnDengResponUserDeleteSeave")]
+ [HttpPost]
+ public HttpResponseMessage AnDengResponUserDeleteSeave(string id, string ando_cogfigid)
+ {
+ mes = BasicSettingBLL.AnDengResponUserDeleteSeave(id, ando_cogfigid);
+ return TJson.toJson(mes);
+ }
+ #endregion
+
+
+
+ #region[閫氳繃杞﹂棿缂栫爜鏌ユ壘璁惧淇℃伅]
+ /// <summary>
+ /// 閫氳繃杞﹂棿缂栫爜鏌ユ壘璁惧淇℃伅
+ /// </summary>
+ /// <param name="wkshpcode">杞﹂棿缂栫爜</param>
+ /// <returns></returns>
+ [Route(template: "WhkspIsEqpSearch")]
+ [HttpGet]
+ public HttpResponseMessage WhkspIsEqpSearch(string wkshpcode)
+ {
+ mes = BasicSettingBLL.WhkspIsEqpSearch(wkshpcode);
+ return TJson.toJson(mes);
+ }
+ #endregion
}
}
\ No newline at end of file
--
Gitblit v1.9.3