| | |
| | | using DBUtility; |
| | | using DAL; |
| | | using DBUtility; |
| | | using DLL; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | |
| | | using System.Linq; |
| | | using System.Net; |
| | | using System.Net.Http; |
| | | using System.Timers; |
| | | using System.Threading.Tasks; |
| | | using System.Web.Http; |
| | | using WebAPI.Models; |
| | | using System.Threading; |
| | | |
| | | namespace WebAPI.Controllers.SCGL |
| | | { |
| | |
| | | /// <returns></returns> |
| | | [Route("Sc_MESTransFerWorkBill/SaveGetMESTransFerWorkFrom")] |
| | | [HttpPost] |
| | | public object SaveGetMESTransFerWorkFrom([FromBody] JObject msg) |
| | | public object SaveGetMESTransFerWorkFromAsync([FromBody] JObject msg) |
| | | { |
| | | |
| | | var _value = msg["msg"].ToString(); |
| | |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | //string[] arrStr = oItem.HSendMan.Split(','); //发送人 |
| | | //arrStr = oItem.HReceiveMan.Split(','); //接收人 |
| | | string[] arrStr = oItem.HCopyMan.Split(','); //抄送人 |
| | | string[] arrStr; |
| | | |
| | | if (string.IsNullOrEmpty(oItem.HCopyMan)) |
| | | { |
| | | arrStr = new string[0]; // 如果 oItem.HCopyMan 为空,则赋值为空数组 |
| | | } |
| | | else |
| | | { |
| | | arrStr = oItem.HCopyMan.Split(','); // 否则,使用 Split(',') 方法拆分字符串 |
| | | } |
| | | List<string> b = new List<string>(arrStr); |
| | | b.Add(oItem.HSendMan); |
| | | b.Add(oItem.HReceiveMan); |
| | |
| | | Models.ClsOA_ErrMsgBackBillSub2 sb = new Models.ClsOA_ErrMsgBackBillSub2(); |
| | | sb.HEntryID = i; |
| | | sb.HReceiveMan = arrStr[i - 1]; |
| | | if (arrStr[i-1].ToString() == oItem.HSendMan) |
| | | if (arrStr[i - 1].ToString() == oItem.HSendMan) |
| | | { |
| | | sb.HReadFlag = true; |
| | | } |
| | | oBill.DetailColl2.Add(sb); |
| | | } |
| | | |
| | | oBill.omodel = oItem; |
| | | } |
| | | |
| | |
| | | bool bResult; |
| | | if (refSav == "Add") |
| | | { |
| | | bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); |
| | | bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); |
| | | if (bResult) |
| | | { |
| | | objJsonResult.HInterID = DBUtility.ClsPub.sExeReturnInfo; //返回主ID |
| | |
| | | { |
| | | objJsonResult.Verify = "N"; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | else |
| | |
| | | A.HQty,A.HSendType, |
| | | A.HDeptID,D.HName HDeptName, A.HSendMan, |
| | | A.HReceiveMan,A.HCopyMan,A.HHasten, |
| | | A.HLevel,A.HMaterName,A.HMaterModel, |
| | | A.HLevel,A.HMaterNumber,A.HMaterName,A.HMaterModel, |
| | | B.HReadFlag, A.HMaker,A.HMakeDate,A.HUpDater,A.HUpDateDate,A.HChecker,A.HCheckDate,A.HCloseMan,A.HCloseDate,A.HDeleteMan,A.HDeleteDate, |
| | | A.HSourceInterID,A.HSourceEntryID,A.HSourceBillNo,A.HSourceBillType, |
| | | A.HHandleEmpID,f.HName HHandleEmpName |
| | |
| | | #endregion |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region 异常反馈单查询(接收的,发送的,抄送的) |
| | | |
| | | [Route("Sc_MESTransFerWorkBill/GetSc_MESTransFerWorkBillQuery")] |
| | | [HttpGet] |
| | | public object GetSc_MESTransFerWorkBillQuery(string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | ds = oCN.RunProcReturn("exec h_p_OA_ErrMsgBackSelfQuery " + user, "h_p_OA_ErrMsgBackSelfQuery"); |
| | | |
| | | if (ds.Tables[0].Rows.Count != 0 || ds != null) |
| | | { |
| | | //添加列名 |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//获取到DataColumn列对象的列名 |
| | | } |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucess!"; |
| | | objJsonResult.data = ds; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无数据"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exception!" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | } |