From 2cde3b2e3e174300fdf94106e8200c1c443f992d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E6=99=94?= Date: Thu, 29 Dec 2022 08:56:21 +0800 Subject: [PATCH] =?UTF-8?q?U9=E6=8E=A5=E5=8F=A3=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ICSSoft.APIApproveIssue/ApproveIssue.cs | 207 ++ .../ApproveIssueDoc4ExternalSrvStub.cs | 1113 +++++++ .../ICSSoft.APIApproveIssue.csproj | 82 + .../Properties/AssemblyInfo.cs | 37 + .../ICSSoft.APIApproveIssue/output.config | 29 + .../ICSSoft.APIApproveRCV/ApproveRCV.cs | 219 ++ .../ICSSoft.APIApproveRCV.csproj | 82 + .../Properties/AssemblyInfo.cs | 37 + .../RcvApprovedSVStub.cs | 889 ++++++ .../ICSSoft.APIApproveRCV/output.config | 29 + .../CreatRecedeIssueDocSVStub.cs | 1349 +++++++++ .../ICSSoft.APICreateIssue/CreateIssue.cs | 342 +++ .../ICSSoft.APICreateIssue.csproj | 98 + .../Properties/AssemblyInfo.cs | 37 + .../ICSSoft.APICreateIssue/output.config | 29 + .../CommonCreateLotMasterSRVStub.cs | 2585 +++++++++++++++++ .../CreateLotMaster.cs | 186 ++ .../ICSSoft.APICreateLotMaster.csproj | 82 + .../Properties/AssemblyInfo.cs | 37 + .../ICSSoft.APICreateLotMaster/output.config | 29 + .../ICSSoft.APIDeleteIssue/DeleteIssue.cs | 159 + .../DeleteIssue4ExternalStub.cs | 1081 +++++++ .../ICSSoft.APIDeleteIssue.csproj | 82 + .../Properties/AssemblyInfo.cs | 37 + .../ICSSoft.APIDeleteIssue/output.config | 29 + .../ICSSoft.Common/DBHelper.cs | 24 +- .../ICSSoft.DataProject/CreateAppVouch.cs | 314 +- ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI.sln | 34 +- .../Controllers/ValuesController.cs | 1405 +++++---- .../ICSSoft.ERP.WebAPI.csproj | 8 + .../Properties/PublishProfiles/FYN.pubxml | 6 +- .../ICSSoft.ERP.WebAPI/Web.config | 39 +- 32 files changed, 10034 insertions(+), 682 deletions(-) create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ApproveIssue.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ApproveIssueDoc4ExternalSrvStub.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ICSSoft.APIApproveIssue.csproj create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/Properties/AssemblyInfo.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/output.config create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/ApproveRCV.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/ICSSoft.APIApproveRCV.csproj create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/Properties/AssemblyInfo.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/RcvApprovedSVStub.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/output.config create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/CreatRecedeIssueDocSVStub.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/CreateIssue.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/ICSSoft.APICreateIssue.csproj create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/Properties/AssemblyInfo.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/output.config create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/CommonCreateLotMasterSRVStub.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/CreateLotMaster.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/ICSSoft.APICreateLotMaster.csproj create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/Properties/AssemblyInfo.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/output.config create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/DeleteIssue.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/DeleteIssue4ExternalStub.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/ICSSoft.APIDeleteIssue.csproj create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/Properties/AssemblyInfo.cs create mode 100644 ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/output.config diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ApproveIssue.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ApproveIssue.cs new file mode 100644 index 0000000..0d273eb --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ApproveIssue.cs @@ -0,0 +1,207 @@ +using ICSSoft.Common; +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ICSSoft.Entity; +using UFSoft.UBF.Util.Context; +using System.ServiceModel; +using www.ufida.org.EntityData; +using UFSoft.UBF.Exceptions1; + +namespace ICSSoft.APIApproveIssue +{ + public class ApproveIssue + { + private static log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static string connString = System.Configuration.ConfigurationManager.AppSettings["ERPConnStr"]; + private static string ERPDB = System.Configuration.ConfigurationManager.AppSettings["ERPDB"]; + /// + /// 审核领料单(外部通过API调用) + /// + /// + /// + public bool Approve(List infos) + { + bool ResultFlag = false; + ThreadContext context; + try + { + StringBuilder strHead = new StringBuilder(); + string _MOCode = string.Empty; + UFIDAU9ISVMOIApproveIssueDoc4ExternalSrvClient client = new UFIDAU9ISVMOIApproveIssueDoc4ExternalSrvClient(); + MessageBase[] message = null; + List LLlist = new List(); + UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData LL = new UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData(); + UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData[] resultList = new UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData[] { }; + string OrgID = ""; + string orgsql = @"select ID from Base_Organization + where Code='{0}'"; + orgsql = string.Format(orgsql, infos[0].WorkPoint); + DataTable orgdt = DBHelper.Query(orgsql, connString); + if (orgdt.Rows.Count != 0) + { + OrgID = orgdt.Rows[0]["ID"].ToString(); + } + else + { + throw new Exception("传入组织编码错误!"); + } + foreach (ICSRdrecord11 info in infos) + { + string checksql = @"select * from MO_IssueDoc + where DocNo='" + info.IssueCode + "' AND Org='" + OrgID + "'"; + checksql = string.Format(checksql); + DataTable dtcheck = DBHelper.Query(checksql, connString); + if (dtcheck.Rows.Count == 0) + { + throw new Exception("领料单号:'" + info.IssueCode + "'不存在!!"); + } + else + { + LL = new UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData(); + LL.m_docNo = info.IssueCode; + LL.m_operateType = true; + LLlist.Add(LL); + } + } + context = CreateContextObj(OrgID); + resultList = client.Do(out message, context, LLlist.ToArray(), false, false); + if (resultList != null && resultList.Count() > 0) + { + foreach (var item in resultList) + { + if (item.m_isSucceed == false) + { + throw new Exception(item.m_errorMsg); + } + } + ResultFlag = true; + } + else + { + ResultFlag = true; + } + } + catch (Exception ex) + { + log.Error(ex.Message); + throw new Exception(ex.Message); + } + return ResultFlag; + } + /// + /// 审核领料单(接口内部调用,如:创建退料单后调用审核单据) + /// + /// + /// + /// + public bool Approve(List DocNOList,string OrgCode) + { + bool ResultFlag = false; + ThreadContext context; + try + { + StringBuilder strHead = new StringBuilder(); + string _MOCode = string.Empty; + UFIDAU9ISVMOIApproveIssueDoc4ExternalSrvClient client = new UFIDAU9ISVMOIApproveIssueDoc4ExternalSrvClient(); + MessageBase[] message = null; + List LLlist = new List(); + UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData LL = new UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData(); + UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData[] resultList = new UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData[] { }; + string OrgID = ""; + string orgsql = @"select ID from Base_Organization + where Code='{0}'"; + orgsql = string.Format(orgsql, OrgCode); + DataTable orgdt = DBHelper.Query(orgsql, connString); + if (orgdt.Rows.Count != 0) + { + OrgID = orgdt.Rows[0]["ID"].ToString(); + } + else + { + throw new Exception("传入组织编码错误!"); + } + foreach (string DocNO in DocNOList) + { + string checksql = @"select * from MO_IssueDoc + where DocNo='" + DocNO + "' AND Org='" + OrgID + "'"; + checksql = string.Format(checksql); + DataTable dtcheck = DBHelper.Query(checksql, connString); + if (dtcheck.Rows.Count == 0) + { + throw new Exception("领料单号:'" + DocNO + "'不存在!!"); + } + else + { + LL = new UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData(); + LL.m_docNo = DocNO; + LL.m_operateType = true; + LLlist.Add(LL); + } + } + context = CreateContextObj(OrgID); + resultList = client.Do(out message, context, LLlist.ToArray(), false, false); + if (resultList != null && resultList.Count() > 0) + { + foreach (var item in resultList) + { + if (item.m_isSucceed == false) + { + throw new Exception(item.m_errorMsg); + } + } + ResultFlag = true; + } + else + { + ResultFlag = true; + } + } + catch (Exception ex) + { + log.Error(ex.Message); + throw new Exception(ex.Message); + } + return ResultFlag; + } + #region 给上下文信息赋值 + /// + /// 给上下文信息赋值 + /// + /// + private static ThreadContext CreateContextObj(string OrgID) + { + // 实例化应用上下文对象 + ThreadContext thContext = new ThreadContext(); + + + System.Collections.Generic.Dictionary ns = new Dictionary(); + ns.Add("OrgID", OrgID); + ns.Add("UserID", ConfigurationManager.AppSettings["userID"].ToString()); + ns.Add("UserCode", ConfigurationManager.AppSettings["userCode"].ToString()); + ns.Add("Datetime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); + ns.Add("CultureName", ConfigurationManager.AppSettings["cultureName"].ToString()); + ns.Add("EnterpriseID", ConfigurationManager.AppSettings["enterpriseID"].ToString()); + ns.Add("DefaultCultureName", ConfigurationManager.AppSettings["cultureName"].ToString()); + thContext.nameValueHas = ns; + + return thContext; + } + #endregion + + private static DataTable GetData(string DocCode, string OrgID) + { + string sql = @" select A.ID,A1.[Code] as [Receivement_RcvDocType_Code],A.Status + from PM_Receivement as A + left join [PM_RcvDocType] as A1 on (A.[RcvDocType] = A1.[ID]) + left join [PM_RcvDocType_Trl] as A2 on (A2.SysMlFlag = 'zh-CN') and (A1.[ID] = A2.[ID]) + where A.DocNo='" + DocCode + "' AND A.Org='" + OrgID + "'"; + return DBHelper.Query(sql, connString); + } + } +} diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ApproveIssueDoc4ExternalSrvStub.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ApproveIssueDoc4ExternalSrvStub.cs new file mode 100644 index 0000000..4299498 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ApproveIssueDoc4ExternalSrvStub.cs @@ -0,0 +1,1113 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:2.0.50727.9148 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("http://www.UFIDA.org/EntityData", ClrNamespace="www.ufida.org.EntityData")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("UFSoft.UBF.Util.Data", ClrNamespace="UFSoft.UBF.Util.Data")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("UFSoft.UBF.Exceptions", ClrNamespace="UFSoft.UBF.Exceptions1")] + +namespace UFSoft.UBF.Business +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class EntityNotExistException : UFSoft.UBF.Business.BusinessException + { + + public EntityNotExistException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + public partial class BusinessException : UFSoft.UBF.ExceptionBase + { + + public BusinessException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class AttrsContainerException : UFSoft.UBF.Business.BusinessException + { + + public AttrsContainerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class AttributeInValidException : UFSoft.UBF.Business.BusinessException + { + + public AttributeInValidException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } +} +namespace UFSoft.UBF +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + public partial class ExceptionBase : System.Exception + { + + public ExceptionBase(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ExceptionBase.FormatState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public enum FormatState : uint + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatting = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatted = 2, + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class UnknownException : UFSoft.UBF.ExceptionBase + { + + public UnknownException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorMessage", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public partial class ErrorMessage : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.ErrorDescriptor errDescriptorField; + + private string errorTypeField; + + private UFSoft.UBF.ErrorMessage[] innerMessagesField; + + private string messageField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public UFSoft.UBF.ErrorDescriptor errDescriptor + { + get + { + return this.errDescriptorField; + } + set + { + this.errDescriptorField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public string errorType + { + get + { + return this.errorTypeField; + } + set + { + this.errorTypeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ErrorMessage[] innerMessages + { + get + { + return this.innerMessagesField; + } + set + { + this.innerMessagesField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string message + { + get + { + return this.messageField; + } + set + { + this.messageField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorDescriptor", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public partial class ErrorDescriptor : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string categoryField; + + private string erroridField; + + private UFSoft.UBF.ErrorLevel levelField; + + private string ownerField; + + private System.DateTime timeStampField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string category + { + get + { + return this.categoryField; + } + set + { + this.categoryField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public string errorid + { + get + { + return this.erroridField; + } + set + { + this.erroridField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ErrorLevel level + { + get + { + return this.levelField; + } + set + { + this.levelField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string owner + { + get + { + return this.ownerField; + } + set + { + this.ownerField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.DateTime timeStamp + { + get + { + return this.timeStampField; + } + set + { + this.timeStampField = value; + } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorLevel", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public enum ErrorLevel : short + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Debug = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Info = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Warn = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Error = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Fatal = 4, + } +} +namespace UFSoft.UBF.Service +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class ServiceLostException : UFSoft.UBF.ExceptionBase + { + + public ServiceLostException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class ServiceException : UFSoft.UBF.ExceptionBase + { + + public ServiceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ServiceExceptionDetail", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + public partial class ServiceExceptionDetail : System.ServiceModel.ExceptionDetail, System.Runtime.Serialization.IExtensibleDataObject + { + public ServiceExceptionDetail(Exception exception) : base(exception) { } + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.ExceptionBase ExceptionField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ExceptionBase Exception + { + get + { + return this.ExceptionField; + } + set + { + this.ExceptionField = value; + } + } + } +} +namespace www.ufida.org.EntityData +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFIDA.U9.ISV.MO.ApproveIssueDoc4ExternalDTOData", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + public partial class UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData : www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase + { + + private string m_docNoField; + + private string m_errorMsgField; + + private bool m_isSucceedField; + + private bool m_operateTypeField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_docNo + { + get + { + return this.m_docNoField; + } + set + { + this.m_docNoField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_errorMsg + { + get + { + return this.m_errorMsgField; + } + set + { + this.m_errorMsgField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public bool m_isSucceed + { + get + { + return this.m_isSucceedField; + } + set + { + this.m_isSucceedField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public bool m_operateType + { + get + { + return this.m_operateTypeField; + } + set + { + this.m_operateTypeField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFSoft.UBF.Business.DataTransObjectBase", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData))] + public partial class UFSoftUBFBusinessDataTransObjectBase : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.PL.Engine.ObjectState sysStateField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.PL.Engine.ObjectState sysState + { + get + { + return this.sysStateField; + } + set + { + this.sysStateField = value; + } + } + } +} +namespace UFSoft.UBF.PL.Engine +{ + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ObjectState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.PL.Engine")] + public enum ObjectState : int + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + NotExist = -1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unchanged = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unknown = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inserted = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Updated = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Deleted = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Operating = 9, + + [System.Runtime.Serialization.EnumMemberAttribute()] + NeedLoad = 10, + } +} +namespace UFSoft.UBF.Util.Data +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MultiLangDataDict", Namespace="UFSoft.UBF.Util.Data")] + public partial class MultiLangDataDict : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.Util.Data.MultiLangData[] _langsField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Util.Data.MultiLangData[] _langs + { + get + { + return this._langsField; + } + set + { + this._langsField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MultiLangData", Namespace="UFSoft.UBF.Util.Data")] + public partial class MultiLangData : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string LangTypeField; + + private string LangValueField; + + private System.Data.DataRowState StateField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string LangType + { + get + { + return this.LangTypeField; + } + set + { + this.LangTypeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string LangValue + { + get + { + return this.LangValueField; + } + set + { + this.LangValueField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.Data.DataRowState State + { + get + { + return this.StateField; + } + set + { + this.StateField = value; + } + } + } +} +namespace System.Data +{ + using System; + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.FlagsAttribute()] + [System.Runtime.Serialization.DataContractAttribute(Name="DataRowState", Namespace="http://schemas.datacontract.org/2004/07/System.Data")] + public enum DataRowState : int + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Detached = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unchanged = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Added = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Deleted = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Modified = 16, + } +} +namespace UFSoft.UBF.Exceptions +{ + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MessageBase.FormatState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Exceptions")] + public enum MessageBaseFormatState : uint + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatting = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatted = 2, + } +} +namespace UFSoft.UBF.Util.Context +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ThreadContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + public partial class ThreadContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private System.Collections.Generic.Dictionary nameValueHasField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public System.Collections.Generic.Dictionary nameValueHas + { + get + { + return this.nameValueHasField; + } + set + { + this.nameValueHasField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ApplicationContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + public partial class ApplicationContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private System.Collections.Generic.Dictionary nameValueHasField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public System.Collections.Generic.Dictionary nameValueHas + { + get + { + return this.nameValueHasField; + } + set + { + this.nameValueHasField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="PlatformContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorDescriptor))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorLevel))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase.FormatState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.PL.Engine.ObjectState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBaseFormatState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Data.DataRowState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ThreadContext))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ApplicationContext))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Collections.Generic.Dictionary))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Exception))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Exception[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.ServiceModel.ExceptionDetail))] + public partial class PlatformContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private object ctxField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public object ctx + { + get + { + return this.ctxField; + } + set + { + this.ctxField = value; + } + } + } +} +namespace UFSoft.UBF.Exceptions1 +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MessageBase", Namespace="UFSoft.UBF.Exceptions")] + public partial class MessageBase : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string attributeMetadataIDField; + + private string attributeNameField; + + private string entityFullNameField; + + private long entityIDField; + + private string entityMetadataIDField; + + private short errorLevelField; + + private UFSoft.UBF.Exceptions.MessageBaseFormatState formatedField; + + private UFSoft.UBF.Exceptions1.MessageBase[] innerMessagesField; + + private bool isValidEntityIDField; + + private string localMessageField; + + private string orginalEntityFullNameField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string attributeMetadataID + { + get + { + return this.attributeMetadataIDField; + } + set + { + this.attributeMetadataIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string attributeName + { + get + { + return this.attributeNameField; + } + set + { + this.attributeNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string entityFullName + { + get + { + return this.entityFullNameField; + } + set + { + this.entityFullNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long entityID + { + get + { + return this.entityIDField; + } + set + { + this.entityIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string entityMetadataID + { + get + { + return this.entityMetadataIDField; + } + set + { + this.entityMetadataIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public short errorLevel + { + get + { + return this.errorLevelField; + } + set + { + this.errorLevelField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Exceptions.MessageBaseFormatState formated + { + get + { + return this.formatedField; + } + set + { + this.formatedField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Exceptions1.MessageBase[] innerMessages + { + get + { + return this.innerMessagesField; + } + set + { + this.innerMessagesField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public bool isValidEntityID + { + get + { + return this.isValidEntityIDField; + } + set + { + this.isValidEntityIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string localMessage + { + get + { + return this.localMessageField; + } + set + { + this.localMessageField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string orginalEntityFullName + { + get + { + return this.orginalEntityFullNameField; + } + set + { + this.orginalEntityFullNameField = value; + } + } + } +} + + +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +[System.ServiceModel.ServiceContractAttribute(Name="UFIDA.U9.ISV.MO.IApproveIssueDoc4ExternalSrv", Namespace="http://www.UFIDA.org", ConfigurationName="UFIDAU9ISVMOIApproveIssueDoc4ExternalSrv")] +public interface UFIDAU9ISVMOIApproveIssueDoc4ExternalSrv +{ + + [System.ServiceModel.OperationContractAttribute(Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IApproveIssueDoc4ExternalSrv/Do", ReplyAction="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IApproveIssueDoc4ExternalSrv/DoResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IApproveIssueDoc4ExternalSrv/DoServiceExcept" + + "ionDetailFault", Name="ServiceExceptionDetail", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.ExceptionBase), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IApproveIssueDoc4ExternalSrv/DoExceptionBase" + + "Fault", Name="ExceptionBase", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceLostException), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IApproveIssueDoc4ExternalSrv/DoServiceLostEx" + + "ceptionFault", Name="ServiceLostException", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceException), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IApproveIssueDoc4ExternalSrv/DoServiceExcept" + + "ionFault", Name="ServiceException", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(System.Exception), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IApproveIssueDoc4ExternalSrv/DoExceptionFaul" + + "t", Name="Exception", Namespace="http://schemas.datacontract.org/2004/07/System")] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorDescriptor))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorLevel))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase.FormatState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.PL.Engine.ObjectState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBaseFormatState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Data.DataRowState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ThreadContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ApplicationContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.PlatformContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Exception))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Exception[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.ServiceModel.ExceptionDetail))] + www.ufida.org.EntityData.UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData[] Do(out UFSoft.UBF.Exceptions1.MessageBase[] outMessages, object context, www.ufida.org.EntityData.UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData[] docNoList, bool isNotNewTransaction, bool isAutoApp); +} + +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +public interface UFIDAU9ISVMOIApproveIssueDoc4ExternalSrvChannel : UFIDAU9ISVMOIApproveIssueDoc4ExternalSrv, System.ServiceModel.IClientChannel +{ +} + +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +public partial class UFIDAU9ISVMOIApproveIssueDoc4ExternalSrvClient : System.ServiceModel.ClientBase, UFIDAU9ISVMOIApproveIssueDoc4ExternalSrv +{ + + public UFIDAU9ISVMOIApproveIssueDoc4ExternalSrvClient() + { + } + + public UFIDAU9ISVMOIApproveIssueDoc4ExternalSrvClient(string endpointConfigurationName) : + base(endpointConfigurationName) + { + } + + public UFIDAU9ISVMOIApproveIssueDoc4ExternalSrvClient(string endpointConfigurationName, string remoteAddress) : + base(endpointConfigurationName, remoteAddress) + { + } + + public UFIDAU9ISVMOIApproveIssueDoc4ExternalSrvClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : + base(endpointConfigurationName, remoteAddress) + { + } + + public UFIDAU9ISVMOIApproveIssueDoc4ExternalSrvClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : + base(binding, remoteAddress) + { + } + + public www.ufida.org.EntityData.UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData[] Do(out UFSoft.UBF.Exceptions1.MessageBase[] outMessages, object context, www.ufida.org.EntityData.UFIDAU9ISVMOApproveIssueDoc4ExternalDTOData[] docNoList, bool isNotNewTransaction, bool isAutoApp) + { + return base.Channel.Do(out outMessages, context, docNoList, isNotNewTransaction, isAutoApp); + } +} diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ICSSoft.APIApproveIssue.csproj b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ICSSoft.APIApproveIssue.csproj new file mode 100644 index 0000000..0cb5b50 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/ICSSoft.APIApproveIssue.csproj @@ -0,0 +1,82 @@ + + + + + Debug + AnyCPU + {8666C3EA-95F9-4E97-A899-60ECC3FFDDAE} + Library + Properties + ICSSoft.APIApproveIssue + ICSSoft.APIApproveIssue + v4.8 + 512 + true + + + + + + + + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\ICSSoft.ERP.WebAPI\bin\log4net.dll + + + False + bin\Debug\Newtonsoft.Json.dll + + + + + + + + + + + + + + + + + + + + + {ee45f7a5-17ee-4707-a617-8c00dd36fc01} + ICSSoft.Common + + + {834E9A76-1D9E-4EBD-9321-0B362A06A367} + ICSSoft.Entity + + + + + + + \ No newline at end of file diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/Properties/AssemblyInfo.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5e48269 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/Properties/AssemblyInfo.cs @@ -0,0 +1,37 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("ICSSoft.Common")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ICSSoft.Common")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("ee45f7a5-17ee-4707-a617-8c00dd36fc01")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4.xml", Watch = true)] diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/output.config b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/output.config new file mode 100644 index 0000000..005f57c --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveIssue/output.config @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/ApproveRCV.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/ApproveRCV.cs new file mode 100644 index 0000000..636fab3 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/ApproveRCV.cs @@ -0,0 +1,219 @@ +using ICSSoft.Common; +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ICSSoft.Entity; +using UFSoft.UBF.Util.Context; +using System.ServiceModel; + +namespace ICSSoft.APIApproveRCV +{ + public class ApproveRCV + { + private static log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static string connString = System.Configuration.ConfigurationManager.AppSettings["ERPConnStr"]; + private static string ERPDB = System.Configuration.ConfigurationManager.AppSettings["ERPDB"]; + + public bool Approve(List infos) + { + bool ResultFlag = false; + if (infos.Count <= 0) + { + throw new Exception("传送数据为空!"); + } + string res = string.Empty; + string sql = string.Empty; + + foreach (ICSPurchaseReceiveDoc Info in infos) + { + try + { + long DocID = 0; + string EntityType = ""; + //实例化代理类 + UFIDAU9PMRcvIRcvApprovedSVClient client = new UFIDAU9PMRcvIRcvApprovedSVClient(); + //服务返回结果 + //UFIDAU9PMPOPurchaseOrderData[] returnItems; + //返回异常信息,目前还没有使用此属性 + UFSoft.UBF.Exceptions.MessageBase[] returnMsg; + //上下文信息 + object context; + //传入 参数 + //UFIDAU9PMDTOsOBAPurchaseOrderDTOData[] pOList; + UFSoft.UBF.Business.BusinessEntity.EntityKey docHead = new UFSoft.UBF.Business.BusinessEntity.EntityKey(); + string OrgID = ""; + string orgsql = @"select ID from Base_Organization + where Code='{0}'"; + orgsql = string.Format(orgsql, Info.WorkPoint); + DataTable orgdt = DBHelper.Query(orgsql, connString); + if (orgdt.Rows.Count != 0) + { + OrgID = orgdt.Rows[0]["ID"].ToString(); + } + else + { + throw new Exception("传入组织编码错误!"); + } + DataTable dt = GetData(Info.RCVTCode, OrgID); + if (!string.IsNullOrEmpty(dt.Rows[0][0].ToString()) || !string.IsNullOrEmpty(dt.Rows[0][1].ToString())) + { + DocID = long.Parse(dt.Rows[0][0].ToString()); + EntityType = dt.Rows[0][1].ToString(); + } + else + { + throw new Exception("传入的单据号不正确!"); + } + int acttype = int.Parse(ConfigurationManager.AppSettings["acttype"].ToString()); + //给上下文信息赋值 + context = CreateContextObj(OrgID); + //给传入参数赋值 + docHead.EntityType = EntityType; + docHead.ID = DocID; + + //pOList = SetPoDtos(U9Info, poInfoList); + //服务调用 + (client.Endpoint.Binding as BasicHttpBinding).MaxReceivedMessageSize = int.MaxValue; + (client.Endpoint.Binding as BasicHttpBinding).MaxBufferSize = int.MaxValue; + + returnMsg = client.Do(context, acttype, docHead); + if (returnMsg != null) + { + if (!string.IsNullOrWhiteSpace(returnMsg[0].localMessage)) + { + throw new Exception(returnMsg[0].localMessage); + } + } + } + catch (Exception ex) + { + log.Error(ex.Message); + throw new Exception(ex.Message); + } + } + ResultFlag = true; + return ResultFlag; + } + + public bool Approve(List infos) + { + bool ResultFlag = false; + if (infos.Count <= 0) + { + throw new Exception("传送数据为空!"); + } + string res = string.Empty; + string sql = string.Empty; + + foreach (ICSSalesShipmentDocNegative Info in infos) + { + try + { + long DocID = 0; + string EntityType = ""; + //实例化代理类 + UFIDAU9PMRcvIRcvApprovedSVClient client = new UFIDAU9PMRcvIRcvApprovedSVClient(); + //服务返回结果 + //UFIDAU9PMPOPurchaseOrderData[] returnItems; + //返回异常信息,目前还没有使用此属性 + UFSoft.UBF.Exceptions.MessageBase[] returnMsg; + //上下文信息 + object context; + //传入 参数 + //UFIDAU9PMDTOsOBAPurchaseOrderDTOData[] pOList; + UFSoft.UBF.Business.BusinessEntity.EntityKey docHead = new UFSoft.UBF.Business.BusinessEntity.EntityKey(); + string OrgID = ""; + string orgsql = @"select ID from Base_Organization + where Code='{0}'"; + orgsql = string.Format(orgsql, Info.WorkPoint); + DataTable orgdt = DBHelper.Query(orgsql, connString); + if (orgdt.Rows.Count != 0) + { + OrgID = orgdt.Rows[0]["ID"].ToString(); + } + else + { + throw new Exception("传入组织编码错误!"); + } + DataTable dt = GetData(Info.SDNNEGCode, OrgID); + if (!string.IsNullOrEmpty(dt.Rows[0][0].ToString()) || !string.IsNullOrEmpty(dt.Rows[0][1].ToString())) + { + DocID = long.Parse(dt.Rows[0][0].ToString()); + EntityType = dt.Rows[0][1].ToString(); + } + else + { + throw new Exception("传入的单据号不正确!"); + } + int acttype = int.Parse(ConfigurationManager.AppSettings["acttype"].ToString()); + //给上下文信息赋值 + context = CreateContextObj(OrgID); + //给传入参数赋值 + docHead.EntityType = EntityType; + docHead.ID = DocID; + + //pOList = SetPoDtos(U9Info, poInfoList); + //服务调用 + (client.Endpoint.Binding as BasicHttpBinding).MaxReceivedMessageSize = int.MaxValue; + (client.Endpoint.Binding as BasicHttpBinding).MaxBufferSize = int.MaxValue; + + returnMsg = client.Do(context, acttype, docHead); + if (returnMsg != null) + { + if (!string.IsNullOrWhiteSpace(returnMsg[0].localMessage)) + { + throw new Exception(returnMsg[0].localMessage); + } + } + } + catch (Exception ex) + { + log.Error(ex.Message); + throw new Exception(ex.Message); + } + } + ResultFlag = true; + return ResultFlag; + } + + #region 给上下文信息赋值 + /// + /// 给上下文信息赋值 + /// + /// + private static ThreadContext CreateContextObj(string OrgID) + { + // 实例化应用上下文对象 + ThreadContext thContext = new ThreadContext(); + + + System.Collections.Generic.Dictionary ns = new Dictionary(); + ns.Add("OrgID", OrgID); + ns.Add("UserID", ConfigurationManager.AppSettings["userID"].ToString()); + ns.Add("UserCode", ConfigurationManager.AppSettings["userCode"].ToString()); + ns.Add("Datetime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); + ns.Add("CultureName", ConfigurationManager.AppSettings["cultureName"].ToString()); + ns.Add("EnterpriseID", ConfigurationManager.AppSettings["enterpriseID"].ToString()); + ns.Add("DefaultCultureName", ConfigurationManager.AppSettings["cultureName"].ToString()); + thContext.nameValueHas = ns; + + return thContext; + } + #endregion + + private static DataTable GetData(string DocCode, string OrgID) + { + string sql = @" select A.ID,A1.[Code] as [Receivement_RcvDocType_Code],A.Status + from PM_Receivement as A + left join [PM_RcvDocType] as A1 on (A.[RcvDocType] = A1.[ID]) + left join [PM_RcvDocType_Trl] as A2 on (A2.SysMlFlag = 'zh-CN') and (A1.[ID] = A2.[ID]) + where A.DocNo='" + DocCode + "' AND A.Org='" + OrgID + "'"; + return DBHelper.Query(sql, connString); + } + } +} diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/ICSSoft.APIApproveRCV.csproj b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/ICSSoft.APIApproveRCV.csproj new file mode 100644 index 0000000..b75df7c --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/ICSSoft.APIApproveRCV.csproj @@ -0,0 +1,82 @@ + + + + + Debug + AnyCPU + {9E8EFDBA-62EC-4479-BB51-03A520EE51CD} + Library + Properties + ICSSoft.APIApproveRCV + ICSSoft.APIApproveRCV + v4.8 + 512 + true + + + + + + + + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\ICSSoft.ERP.WebAPI\bin\log4net.dll + + + False + bin\Debug\Newtonsoft.Json.dll + + + + + + + + + + + + + + + + + + + + + {ee45f7a5-17ee-4707-a617-8c00dd36fc01} + ICSSoft.Common + + + {834E9A76-1D9E-4EBD-9321-0B362A06A367} + ICSSoft.Entity + + + + + + + \ No newline at end of file diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/Properties/AssemblyInfo.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5e48269 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/Properties/AssemblyInfo.cs @@ -0,0 +1,37 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("ICSSoft.Common")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ICSSoft.Common")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("ee45f7a5-17ee-4707-a617-8c00dd36fc01")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4.xml", Watch = true)] diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/RcvApprovedSVStub.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/RcvApprovedSVStub.cs new file mode 100644 index 0000000..32805b0 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/RcvApprovedSVStub.cs @@ -0,0 +1,889 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:2.0.50727.9148 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("UFSoft.UBF.PL", ClrNamespace="UFSoft.UBF.PL")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("UFSoft.UBF.Business.BusinessEntity", ClrNamespace="UFSoft.UBF.Business.BusinessEntity")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("UFSoft.UBF.Exceptions", ClrNamespace="UFSoft.UBF.Exceptions")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("http://schemas.datacontract.org/2004/07/UFSoft.UBF.Exceptions", ClrNamespace="UFSoft.UBF.Exceptions1")] + +namespace UFSoft.UBF.PL +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ObjectKeyX", Namespace="UFSoft.UBF.PL")] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessEntity.EntityKey))] + public partial class ObjectKeyX : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string EntityTypeField; + + private long IDField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string EntityType + { + get + { + return this.EntityTypeField; + } + set + { + this.EntityTypeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long ID + { + get + { + return this.IDField; + } + set + { + this.IDField = value; + } + } + } +} +namespace UFSoft.UBF.Business.BusinessEntity +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="EntityKey", Namespace="UFSoft.UBF.Business.BusinessEntity")] + public partial class EntityKey : UFSoft.UBF.PL.ObjectKeyX + { + } +} +namespace UFSoft.UBF.Service +{ + using System.Runtime.Serialization; + using System; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ServiceExceptionDetail", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + public partial class ServiceExceptionDetail : System.ServiceModel.ExceptionDetail, System.Runtime.Serialization.IExtensibleDataObject + { + public ServiceExceptionDetail(Exception exception) : base(exception) { } + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.ExceptionBase ExceptionField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ExceptionBase Exception + { + get + { + return this.ExceptionField; + } + set + { + this.ExceptionField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class ServiceLostException : UFSoft.UBF.ExceptionBase + { + + public ServiceLostException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class ServiceException : UFSoft.UBF.ExceptionBase + { + + public ServiceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } +} +namespace UFSoft.UBF +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + public partial class ExceptionBase : System.Exception + { + + public ExceptionBase(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ExceptionBase.FormatState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public enum FormatState : uint + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatting = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatted = 2, + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class UnknownException : UFSoft.UBF.ExceptionBase + { + + public UnknownException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorMessage", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public partial class ErrorMessage : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.ErrorDescriptor errDescriptorField; + + private string errorTypeField; + + private UFSoft.UBF.ErrorMessage[] innerMessagesField; + + private string messageField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public UFSoft.UBF.ErrorDescriptor errDescriptor + { + get + { + return this.errDescriptorField; + } + set + { + this.errDescriptorField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public string errorType + { + get + { + return this.errorTypeField; + } + set + { + this.errorTypeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ErrorMessage[] innerMessages + { + get + { + return this.innerMessagesField; + } + set + { + this.innerMessagesField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string message + { + get + { + return this.messageField; + } + set + { + this.messageField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorDescriptor", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public partial class ErrorDescriptor : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string categoryField; + + private string erroridField; + + private UFSoft.UBF.ErrorLevel levelField; + + private string ownerField; + + private System.DateTime timeStampField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string category + { + get + { + return this.categoryField; + } + set + { + this.categoryField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public string errorid + { + get + { + return this.erroridField; + } + set + { + this.erroridField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ErrorLevel level + { + get + { + return this.levelField; + } + set + { + this.levelField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string owner + { + get + { + return this.ownerField; + } + set + { + this.ownerField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.DateTime timeStamp + { + get + { + return this.timeStampField; + } + set + { + this.timeStampField = value; + } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorLevel", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public enum ErrorLevel : short + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Debug = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Info = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Warn = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Error = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Fatal = 4, + } +} +namespace UFSoft.UBF.Business +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + public partial class BusinessException : UFSoft.UBF.ExceptionBase + { + + public BusinessException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class AttrsContainerException : UFSoft.UBF.Business.BusinessException + { + + public AttrsContainerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class AttributeInValidException : UFSoft.UBF.Business.BusinessException + { + + public AttributeInValidException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class EntityNotExistException : UFSoft.UBF.Business.BusinessException + { + + public EntityNotExistException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } +} +namespace UFSoft.UBF.Util.Context +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="PlatformContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.PL.ObjectKeyX))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.ServiceModel.ExceptionDetail))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorDescriptor))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorLevel))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase.FormatState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ApplicationContext))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ThreadContext))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Collections.Generic.Dictionary))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Exception))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Exception[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBase[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBaseFormatState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessEntity.EntityKey))] + public partial class PlatformContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private object ctxField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public object ctx + { + get + { + return this.ctxField; + } + set + { + this.ctxField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ApplicationContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + public partial class ApplicationContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private System.Collections.Generic.Dictionary nameValueHasField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public System.Collections.Generic.Dictionary nameValueHas + { + get + { + return this.nameValueHasField; + } + set + { + this.nameValueHasField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ThreadContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + public partial class ThreadContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private System.Collections.Generic.Dictionary nameValueHasField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public System.Collections.Generic.Dictionary nameValueHas + { + get + { + return this.nameValueHasField; + } + set + { + this.nameValueHasField = value; + } + } + } +} +namespace UFSoft.UBF.Exceptions +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MessageBase", Namespace="UFSoft.UBF.Exceptions")] + public partial class MessageBase : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string attributeMetadataIDField; + + private string attributeNameField; + + private string entityFullNameField; + + private long entityIDField; + + private string entityMetadataIDField; + + private short errorLevelField; + + private UFSoft.UBF.Exceptions1.MessageBaseFormatState formatedField; + + private UFSoft.UBF.Exceptions.MessageBase[] innerMessagesField; + + private bool isValidEntityIDField; + + private string localMessageField; + + private string orginalEntityFullNameField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string attributeMetadataID + { + get + { + return this.attributeMetadataIDField; + } + set + { + this.attributeMetadataIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string attributeName + { + get + { + return this.attributeNameField; + } + set + { + this.attributeNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string entityFullName + { + get + { + return this.entityFullNameField; + } + set + { + this.entityFullNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long entityID + { + get + { + return this.entityIDField; + } + set + { + this.entityIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string entityMetadataID + { + get + { + return this.entityMetadataIDField; + } + set + { + this.entityMetadataIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public short errorLevel + { + get + { + return this.errorLevelField; + } + set + { + this.errorLevelField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Exceptions1.MessageBaseFormatState formated + { + get + { + return this.formatedField; + } + set + { + this.formatedField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Exceptions.MessageBase[] innerMessages + { + get + { + return this.innerMessagesField; + } + set + { + this.innerMessagesField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public bool isValidEntityID + { + get + { + return this.isValidEntityIDField; + } + set + { + this.isValidEntityIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string localMessage + { + get + { + return this.localMessageField; + } + set + { + this.localMessageField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string orginalEntityFullName + { + get + { + return this.orginalEntityFullNameField; + } + set + { + this.orginalEntityFullNameField = value; + } + } + } +} +namespace UFSoft.UBF.Exceptions1 +{ + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MessageBase.FormatState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Exceptions")] + public enum MessageBaseFormatState : uint + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatting = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatted = 2, + } +} + + +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +[System.ServiceModel.ServiceContractAttribute(Name="UFIDA.U9.PM.Rcv.IRcvApprovedSV", Namespace="http://www.UFIDA.org", ConfigurationName="UFIDAU9PMRcvIRcvApprovedSV")] +public interface UFIDAU9PMRcvIRcvApprovedSV +{ + + [System.ServiceModel.OperationContractAttribute(Action="http://www.UFIDA.org/UFIDA.U9.PM.Rcv.IRcvApprovedSV/Do", ReplyAction="http://www.UFIDA.org/UFIDA.U9.PM.Rcv.IRcvApprovedSV/DoResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceLostException), Action="http://www.UFIDA.org/UFIDA.U9.PM.Rcv.IRcvApprovedSV/DoServiceLostExceptionFault", Name="ServiceLostException", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceException), Action="http://www.UFIDA.org/UFIDA.U9.PM.Rcv.IRcvApprovedSV/DoServiceExceptionFault", Name="ServiceException", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail), Action="http://www.UFIDA.org/UFIDA.U9.PM.Rcv.IRcvApprovedSV/DoServiceExceptionDetailFault" + + "", Name="ServiceExceptionDetail", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.ExceptionBase), Action="http://www.UFIDA.org/UFIDA.U9.PM.Rcv.IRcvApprovedSV/DoExceptionBaseFault", Name="ExceptionBase", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + [System.ServiceModel.FaultContractAttribute(typeof(System.Exception), Action="http://www.UFIDA.org/UFIDA.U9.PM.Rcv.IRcvApprovedSV/DoExceptionFault", Name="Exception", Namespace="http://schemas.datacontract.org/2004/07/System")] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.PL.ObjectKeyX))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.ServiceModel.ExceptionDetail))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorDescriptor))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorLevel))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase.FormatState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.PlatformContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ApplicationContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ThreadContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Exception))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Exception[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBase[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBaseFormatState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessEntity.EntityKey))] + [return: System.ServiceModel.MessageParameterAttribute(Name="outMessages")] + UFSoft.UBF.Exceptions.MessageBase[] Do(object context, int actType, UFSoft.UBF.Business.BusinessEntity.EntityKey docHead); +} + +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +public interface UFIDAU9PMRcvIRcvApprovedSVChannel : UFIDAU9PMRcvIRcvApprovedSV, System.ServiceModel.IClientChannel +{ +} + +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +public partial class UFIDAU9PMRcvIRcvApprovedSVClient : System.ServiceModel.ClientBase, UFIDAU9PMRcvIRcvApprovedSV +{ + + public UFIDAU9PMRcvIRcvApprovedSVClient() + { + } + + public UFIDAU9PMRcvIRcvApprovedSVClient(string endpointConfigurationName) : + base(endpointConfigurationName) + { + } + + public UFIDAU9PMRcvIRcvApprovedSVClient(string endpointConfigurationName, string remoteAddress) : + base(endpointConfigurationName, remoteAddress) + { + } + + public UFIDAU9PMRcvIRcvApprovedSVClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : + base(endpointConfigurationName, remoteAddress) + { + } + + public UFIDAU9PMRcvIRcvApprovedSVClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : + base(binding, remoteAddress) + { + } + + public UFSoft.UBF.Exceptions.MessageBase[] Do(object context, int actType, UFSoft.UBF.Business.BusinessEntity.EntityKey docHead) + { + return base.Channel.Do(context, actType, docHead); + } +} diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/output.config b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/output.config new file mode 100644 index 0000000..3042b86 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIApproveRCV/output.config @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/CreatRecedeIssueDocSVStub.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/CreatRecedeIssueDocSVStub.cs new file mode 100644 index 0000000..31bea31 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/CreatRecedeIssueDocSVStub.cs @@ -0,0 +1,1349 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:2.0.50727.9151 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("http://www.UFIDA.org/EntityData", ClrNamespace="www.ufida.org.EntityData")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("UFSoft.UBF.Exceptions", ClrNamespace="UFSoft.UBF.Exceptions")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("http://schemas.datacontract.org/2004/07/UFSoft.UBF.Exceptions", ClrNamespace="UFSoft.UBF.Exceptions1")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("UFSoft.UBF.Util.Data", ClrNamespace="UFSoft.UBF.Util.Data")] + +namespace System.Data +{ + using System; + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.FlagsAttribute()] + [System.Runtime.Serialization.DataContractAttribute(Name="DataRowState", Namespace="http://schemas.datacontract.org/2004/07/System.Data")] + public enum DataRowState : int + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Detached = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unchanged = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Added = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Deleted = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Modified = 16, + } +} +namespace www.ufida.org.EntityData +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFIDA.U9.ISV.MO.RecedeItemAndSnDTOData", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + public partial class UFIDAU9ISVMORecedeItemAndSnDTOData : www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase + { + + private long m_issueDocLineField; + + private long m_itemField; + + private string m_itemCodeField; + + private string m_itemNameField; + + private long m_lotMasterField; + + private string m_lotNoField; + + private string m_newSnCodeField; + + private long m_newSnIDField; + + private long m_pickIDField; + + private decimal m_recedeQtyField; + + private int m_recedeReasonField; + + private string m_snCodeField; + + private long m_snIDField; + + private long m_whField; + + private string m_whCodeField; + + private string m_whNameField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public long m_issueDocLine + { + get + { + return this.m_issueDocLineField; + } + set + { + this.m_issueDocLineField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long m_item + { + get + { + return this.m_itemField; + } + set + { + this.m_itemField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_itemCode + { + get + { + return this.m_itemCodeField; + } + set + { + this.m_itemCodeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_itemName + { + get + { + return this.m_itemNameField; + } + set + { + this.m_itemNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long m_lotMaster + { + get + { + return this.m_lotMasterField; + } + set + { + this.m_lotMasterField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_lotNo + { + get + { + return this.m_lotNoField; + } + set + { + this.m_lotNoField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_newSnCode + { + get + { + return this.m_newSnCodeField; + } + set + { + this.m_newSnCodeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long m_newSnID + { + get + { + return this.m_newSnIDField; + } + set + { + this.m_newSnIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long m_pickID + { + get + { + return this.m_pickIDField; + } + set + { + this.m_pickIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public decimal m_recedeQty + { + get + { + return this.m_recedeQtyField; + } + set + { + this.m_recedeQtyField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int m_recedeReason + { + get + { + return this.m_recedeReasonField; + } + set + { + this.m_recedeReasonField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_snCode + { + get + { + return this.m_snCodeField; + } + set + { + this.m_snCodeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long m_snID + { + get + { + return this.m_snIDField; + } + set + { + this.m_snIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long m_wh + { + get + { + return this.m_whField; + } + set + { + this.m_whField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_whCode + { + get + { + return this.m_whCodeField; + } + set + { + this.m_whCodeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_whName + { + get + { + return this.m_whNameField; + } + set + { + this.m_whNameField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFSoft.UBF.Business.DataTransObjectBase", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMORecedeItemAndSnDTOData))] + public partial class UFSoftUBFBusinessDataTransObjectBase : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.PL.Engine.ObjectState sysStateField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.PL.Engine.ObjectState sysState + { + get + { + return this.sysStateField; + } + set + { + this.sysStateField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTOData", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + public partial class UFIDAU9CBOPubControllerCommonArchiveDataDTOData : www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase + { + + private string m_codeField; + + private long m_iDField; + + private string m_nameField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_code + { + get + { + return this.m_codeField; + } + set + { + this.m_codeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long m_iD + { + get + { + return this.m_iDField; + } + set + { + this.m_iDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_name + { + get + { + return this.m_nameField; + } + set + { + this.m_nameField = value; + } + } + } +} +namespace UFSoft.UBF.PL.Engine +{ + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ObjectState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.PL.Engine")] + public enum ObjectState : int + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + NotExist = -1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unchanged = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unknown = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inserted = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Updated = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Deleted = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Operating = 9, + + [System.Runtime.Serialization.EnumMemberAttribute()] + NeedLoad = 10, + } +} +namespace UFSoft.UBF.Exceptions +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MessageBase", Namespace="UFSoft.UBF.Exceptions")] + public partial class MessageBase : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string attributeMetadataIDField; + + private string attributeNameField; + + private string entityFullNameField; + + private long entityIDField; + + private string entityMetadataIDField; + + private short errorLevelField; + + private UFSoft.UBF.Exceptions1.MessageBaseFormatState formatedField; + + private UFSoft.UBF.Exceptions.MessageBase[] innerMessagesField; + + private bool isValidEntityIDField; + + private string localMessageField; + + private string orginalEntityFullNameField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string attributeMetadataID + { + get + { + return this.attributeMetadataIDField; + } + set + { + this.attributeMetadataIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string attributeName + { + get + { + return this.attributeNameField; + } + set + { + this.attributeNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string entityFullName + { + get + { + return this.entityFullNameField; + } + set + { + this.entityFullNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long entityID + { + get + { + return this.entityIDField; + } + set + { + this.entityIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string entityMetadataID + { + get + { + return this.entityMetadataIDField; + } + set + { + this.entityMetadataIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public short errorLevel + { + get + { + return this.errorLevelField; + } + set + { + this.errorLevelField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Exceptions1.MessageBaseFormatState formated + { + get + { + return this.formatedField; + } + set + { + this.formatedField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Exceptions.MessageBase[] innerMessages + { + get + { + return this.innerMessagesField; + } + set + { + this.innerMessagesField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public bool isValidEntityID + { + get + { + return this.isValidEntityIDField; + } + set + { + this.isValidEntityIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string localMessage + { + get + { + return this.localMessageField; + } + set + { + this.localMessageField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string orginalEntityFullName + { + get + { + return this.orginalEntityFullNameField; + } + set + { + this.orginalEntityFullNameField = value; + } + } + } +} +namespace UFSoft.UBF.Exceptions1 +{ + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MessageBase.FormatState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Exceptions")] + public enum MessageBaseFormatState : uint + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatting = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatted = 2, + } +} +namespace UFSoft.UBF.Util.Context +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ThreadContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + public partial class ThreadContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private System.Collections.Generic.Dictionary nameValueHasField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public System.Collections.Generic.Dictionary nameValueHas + { + get + { + return this.nameValueHasField; + } + set + { + this.nameValueHasField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ApplicationContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + public partial class ApplicationContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private System.Collections.Generic.Dictionary nameValueHasField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public System.Collections.Generic.Dictionary nameValueHas + { + get + { + return this.nameValueHasField; + } + set + { + this.nameValueHasField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="PlatformContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Data.DataRowState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMORecedeItemAndSnDTOData[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMORecedeItemAndSnDTOData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.PL.Engine.ObjectState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Collections.Generic.Dictionary))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(string[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBase[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBaseFormatState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ThreadContext))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ApplicationContext))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorDescriptor))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorLevel))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase.FormatState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Exception))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Exception[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.ServiceModel.ExceptionDetail))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + public partial class PlatformContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private object ctxField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public object ctx + { + get + { + return this.ctxField; + } + set + { + this.ctxField = value; + } + } + } +} +namespace UFSoft.UBF.Business +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class AttrsContainerException : UFSoft.UBF.Business.BusinessException + { + + public AttrsContainerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + public partial class BusinessException : UFSoft.UBF.ExceptionBase + { + + public BusinessException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class AttributeInValidException : UFSoft.UBF.Business.BusinessException + { + + public AttributeInValidException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class EntityNotExistException : UFSoft.UBF.Business.BusinessException + { + + public EntityNotExistException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } +} +namespace UFSoft.UBF +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + public partial class ExceptionBase : System.Exception + { + + public ExceptionBase(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ExceptionBase.FormatState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public enum FormatState : uint + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatting = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatted = 2, + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorMessage", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public partial class ErrorMessage : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.ErrorDescriptor errDescriptorField; + + private string errorTypeField; + + private UFSoft.UBF.ErrorMessage[] innerMessagesField; + + private string messageField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public UFSoft.UBF.ErrorDescriptor errDescriptor + { + get + { + return this.errDescriptorField; + } + set + { + this.errDescriptorField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public string errorType + { + get + { + return this.errorTypeField; + } + set + { + this.errorTypeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ErrorMessage[] innerMessages + { + get + { + return this.innerMessagesField; + } + set + { + this.innerMessagesField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string message + { + get + { + return this.messageField; + } + set + { + this.messageField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorDescriptor", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public partial class ErrorDescriptor : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string categoryField; + + private string erroridField; + + private UFSoft.UBF.ErrorLevel levelField; + + private string ownerField; + + private System.DateTime timeStampField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string category + { + get + { + return this.categoryField; + } + set + { + this.categoryField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public string errorid + { + get + { + return this.erroridField; + } + set + { + this.erroridField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ErrorLevel level + { + get + { + return this.levelField; + } + set + { + this.levelField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string owner + { + get + { + return this.ownerField; + } + set + { + this.ownerField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.DateTime timeStamp + { + get + { + return this.timeStampField; + } + set + { + this.timeStampField = value; + } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorLevel", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public enum ErrorLevel : short + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Debug = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Info = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Warn = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Error = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Fatal = 4, + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class UnknownException : UFSoft.UBF.ExceptionBase + { + + public UnknownException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } +} +namespace UFSoft.UBF.Util.Data +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MultiLangDataDict", Namespace="UFSoft.UBF.Util.Data")] + public partial class MultiLangDataDict : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.Util.Data.MultiLangData[] _langsField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Util.Data.MultiLangData[] _langs + { + get + { + return this._langsField; + } + set + { + this._langsField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MultiLangData", Namespace="UFSoft.UBF.Util.Data")] + public partial class MultiLangData : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string LangTypeField; + + private string LangValueField; + + private System.Data.DataRowState StateField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string LangType + { + get + { + return this.LangTypeField; + } + set + { + this.LangTypeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string LangValue + { + get + { + return this.LangValueField; + } + set + { + this.LangValueField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.Data.DataRowState State + { + get + { + return this.StateField; + } + set + { + this.StateField = value; + } + } + } +} +namespace UFSoft.UBF.Service +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ServiceExceptionDetail", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + public partial class ServiceExceptionDetail : System.ServiceModel.ExceptionDetail, System.Runtime.Serialization.IExtensibleDataObject + { + public ServiceExceptionDetail(Exception exception) : base(exception) { } + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.ExceptionBase ExceptionField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ExceptionBase Exception + { + get + { + return this.ExceptionField; + } + set + { + this.ExceptionField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class ServiceLostException : UFSoft.UBF.ExceptionBase + { + + public ServiceLostException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class ServiceException : UFSoft.UBF.ExceptionBase + { + + public ServiceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } +} + + +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +[System.ServiceModel.ServiceContractAttribute(Name="UFIDA.U9.ISV.MO.ICreatRecedeIssueDocSV", Namespace="http://www.UFIDA.org", ConfigurationName="UFIDAU9ISVMOICreatRecedeIssueDocSV")] +public interface UFIDAU9ISVMOICreatRecedeIssueDocSV +{ + + [System.ServiceModel.OperationContractAttribute(Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.ICreatRecedeIssueDocSV/Do", ReplyAction="http://www.UFIDA.org/UFIDA.U9.ISV.MO.ICreatRecedeIssueDocSV/DoResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.ICreatRecedeIssueDocSV/DoServiceExceptionDet" + + "ailFault", Name="ServiceExceptionDetail", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceLostException), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.ICreatRecedeIssueDocSV/DoServiceLostExceptio" + + "nFault", Name="ServiceLostException", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.ExceptionBase), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.ICreatRecedeIssueDocSV/DoExceptionBaseFault", Name="ExceptionBase", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceException), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.ICreatRecedeIssueDocSV/DoServiceExceptionFau" + + "lt", Name="ServiceException", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(System.Exception), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.ICreatRecedeIssueDocSV/DoExceptionFault", Name="Exception", Namespace="http://schemas.datacontract.org/2004/07/System")] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Data.DataRowState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMORecedeItemAndSnDTOData[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMORecedeItemAndSnDTOData))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.PL.Engine.ObjectState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(string[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBase[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBaseFormatState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ThreadContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ApplicationContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.PlatformContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorDescriptor))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorLevel))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase.FormatState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Exception))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Exception[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.ServiceModel.ExceptionDetail))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + string[] Do(out UFSoft.UBF.Exceptions.MessageBase[] outMessages, object context, www.ufida.org.EntityData.UFIDAU9ISVMORecedeItemAndSnDTOData[] recedeItemAndSnDTOList, bool isAutoIssued, www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData issueDocType); +} + +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +public interface UFIDAU9ISVMOICreatRecedeIssueDocSVChannel : UFIDAU9ISVMOICreatRecedeIssueDocSV, System.ServiceModel.IClientChannel +{ +} + +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +public partial class UFIDAU9ISVMOICreatRecedeIssueDocSVClient : System.ServiceModel.ClientBase, UFIDAU9ISVMOICreatRecedeIssueDocSV +{ + + public UFIDAU9ISVMOICreatRecedeIssueDocSVClient() + { + } + + public UFIDAU9ISVMOICreatRecedeIssueDocSVClient(string endpointConfigurationName) : + base(endpointConfigurationName) + { + } + + public UFIDAU9ISVMOICreatRecedeIssueDocSVClient(string endpointConfigurationName, string remoteAddress) : + base(endpointConfigurationName, remoteAddress) + { + } + + public UFIDAU9ISVMOICreatRecedeIssueDocSVClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : + base(endpointConfigurationName, remoteAddress) + { + } + + public UFIDAU9ISVMOICreatRecedeIssueDocSVClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : + base(binding, remoteAddress) + { + } + + public string[] Do(out UFSoft.UBF.Exceptions.MessageBase[] outMessages, object context, www.ufida.org.EntityData.UFIDAU9ISVMORecedeItemAndSnDTOData[] recedeItemAndSnDTOList, bool isAutoIssued, www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData issueDocType) + { + return base.Channel.Do(out outMessages, context, recedeItemAndSnDTOList, isAutoIssued, issueDocType); + } +} diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/CreateIssue.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/CreateIssue.cs new file mode 100644 index 0000000..f1bbd17 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/CreateIssue.cs @@ -0,0 +1,342 @@ +using ICSSoft.Common; +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ICSSoft.Entity; +using UFSoft.UBF.Util.Context; +using System.ServiceModel; +using UFSoft.UBF.Service; +using UFSoft.UBF.Exceptions; +using www.ufida.org.EntityData; +using ICSSoft.APICreateLotMaster; +using ICSSoft.APIApproveIssue; +using ICSSoft.APIDeleteIssue; +using ICSSoft.ASKDataProject; + +namespace ICSSoft.APICreateIssue +{ + public class CreateIssue + { + private static log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static string connString = System.Configuration.ConfigurationManager.AppSettings["ERPConnStr"]; + private static string ERPDB = System.Configuration.ConfigurationManager.AppSettings["ERPDB"]; + + public string Create(List infos) + { + DataSet ds = null; + string msg = ""; + ThreadContext context = new ThreadContext(); + try + { + string _MOCode = string.Empty; + UFIDAU9ISVMOICreatRecedeIssueDocSVClient client = new UFIDAU9ISVMOICreatRecedeIssueDocSVClient(); + MessageBase[] message = null; + List molist = new List(); + UFIDAU9ISVMORecedeItemAndSnDTOData mo = new UFIDAU9ISVMORecedeItemAndSnDTOData(); + + UFIDAU9CBOPubControllerCommonArchiveDataDTOData docType = new UFIDAU9CBOPubControllerCommonArchiveDataDTOData(); + + string OrgID = ""; + string orgsql = @"select ID from Base_Organization + where Code='{0}'"; + orgsql = string.Format(orgsql, infos[0].WorkPoint); + DataTable orgdt = DBHelper.Query(orgsql, connString); + if (orgdt.Rows.Count != 0) + { + OrgID = orgdt.Rows[0]["ID"].ToString(); + } + else + { + throw new Exception("组织编码:" + infos[0].WorkPoint + "不存在!"); + } + foreach (ICSMOIssueDocNegative model in infos) + { + if (!string.IsNullOrWhiteSpace(model.SourceCode)) + { + string LLID = ""; + string llsql = @"select ID from MO_IssueDoc + where DocNo='{0}' And Org='{1}'"; + llsql = string.Format(llsql, model.SourceCode, OrgID); + DataTable lldt = DBHelper.Query(llsql, connString); + if (lldt.Rows.Count > 0) + { + LLID = lldt.Rows[0]["ID"].ToString(); + } + else + { + throw new Exception("领料单:" + model.SourceCode + "不存在!"); + } + #region 遍历入参LL单行 + foreach (var item in model.details) + { + mo = new UFIDAU9ISVMORecedeItemAndSnDTOData(); + long lllineID = 0; + llsql = @"select ID,IsIssued from MO_IssueDocLine + where ID='{0}'"; + llsql = string.Format(llsql, item.SourceDetailID); + lldt = DBHelper.Query(llsql, connString); + if (lldt.Rows.Count > 0) + { + if (lldt.Rows[0]["IsIssued"].ToString() != "True" && lldt.Rows[0]["IsIssued"].ToString() != "true") + { + throw new Exception("领料单:'" + model.SourceCode + "'对应领料单行:'" + item.Sequence + "'未进行发料确认,不能退料!"); + } + else + { + lllineID = long.Parse(lldt.Rows[0]["ID"].ToString()); + } + } + else + { + throw new Exception("领料单:'" + model.SourceCode + "'对应领料单行:'" + item.Sequence + "'不存在!"); + } + + mo.m_issueDocLine = lllineID; + string strCcode = item.InvCode; //子料 + + string strWhCode = string.Empty; //仓库 + string _strWhID = string.Empty;//仓库ID + + if (!string.IsNullOrWhiteSpace(strCcode)) + { + string sqlWH = @"select ID,Code from CBO_Wh + WHERE Code='" + model.WHCode + "' AND Org='" + OrgID + "'"; + sqlWH = string.Format(sqlWH); + DataTable _dtWH = DBHelper.Query(sqlWH, connString); + if (_dtWH.Rows.Count == 0) + { + throw new Exception("没有仓库信:" + model.WHCode + "信息!"); + } + else + { + strWhCode = _dtWH.Rows[0]["Code"].ToString(); + _strWhID = _dtWH.Rows[0]["ID"].ToString(); + mo.m_whCode = strWhCode; + mo.m_wh = long.Parse(_strWhID); + } + } + else + { + throw new Exception("没有子料信息"); + } + string sqlINV = @"select ID,Code from CBO_ItemMaster + WHERE Code='" + item.InvCode + "' AND Org='" + OrgID + "'"; + sqlINV = string.Format(sqlINV); + DataTable _dtINV = DBHelper.Query(sqlINV, connString); + if (_dtINV.Rows.Count == 0) + { + throw new Exception("料品编码:" + item.InvCode + "不存在!"); + } + + mo.m_recedeQty = item.Quantity; + mo.m_itemCode = item.InvCode; + mo.m_recedeReason = 3; + #region 创建批号接口调用 + string LotID = ""; + if (item.BatchCode != "") + { + CreateLotMaster LotMasterCreate = new CreateLotMaster(); + string lotWHCode = model.WHCode; + string lotItemCode = item.InvCode; + string LotCode = item.BatchCode; + LotMasterCreate.Create(lotWHCode, lotItemCode, LotCode, OrgID, ref LotID); + if (LotID != "") + { + mo.m_lotMaster = long.Parse(LotID); + mo.m_lotNo = item.BatchCode; + } + } + else + { + mo.m_lotNo = ""; + } + #endregion + molist.Add(mo); + } + + #endregion + } + else + { + throw new Exception("传入领料单号为空!"); + } + docType.m_code = "2"; + } + context = CreateContextObj(OrgID); + string[] _result = null; + _result = client.Do(out message, context, molist.ToArray(), false, docType); + List LLCodeList = new List(); + string DocNOList = ""; + if (_result != null && _result.Count() > 0) + { + for (int i = 0; i < _result.Count(); i++) + { + LLCodeList.Add(_result[i].ToString()); + if (DocNOList == "") + { + DocNOList = "'" + _result[i].ToString() + "'"; + } + else + { + DocNOList += ",'" + _result[i].ToString() + "'"; + } + } + } + if (LLCodeList != null) + { + ApproveIssue sh = new ApproveIssue(); + bool approveresult = sh.Approve(LLCodeList, infos[0].WorkPoint); + if (approveresult == true) + { + #region 查询 + string sql = @"select DISTINCT a.ID as ID,a.ID as IDs,e.DocNo as SourceCode, + a.DocNo as IssueNEGCode,f.Code AS cDepCode,g.Name AS cDepName,h.Code AS cWhCode + ,i.Name AS cWhName,'' as SourceType,a.CreatedBy as CreateUser,a.CreatedOn as CreateDateTime, + a.ApproveBy as Checker,a.ApproveOn as CheckDateTime + from MO_IssueDoc a + left join MO_IssueDocLine c on c.IssueDoc=a.ID + left join MO_IssueDocLine d on d.ID=c.SourceIssueDocLine + left join MO_IssueDoc e on e.ID=d.IssueDoc + left join CBO_Department f on f.ID=c.IssueDept + left join CBO_Department_Trl g on g.ID=f.ID + left join CBO_Wh h on h.ID=c.Wh + left join CBO_Wh_Trl i on i.ID=h.ID + WHERE a.DocNo in ({0}) AND a.Org='{1}'"; + sql = string.Format(sql, DocNOList, OrgID); + DataTable mdt= DBHelper.Query(sql, connString); + + sql = @"select DISTINCT a.ID as IDs,b.ID as DetailID,b.LineNum as Sequence,c.Code as InvCode + ,b.IssuedQty as Quantity,b.SourceIssueDocLine as SourceDetailID,0 as Amount + ,isnull(d.Code,'') ProjectCode,isnull(e.Code,'') cBatch,'' version ,'' brand, + '' as cFree1, + '' as cFree2, + '' as cFree3, + '' as cFree4, + '' as cFree5, + '' as cFree6, + '' as cFree7, + '' as cFree8, + '' as cFree9, + '' as cFree10 + from MO_IssueDoc a + left join MO_IssueDocLine b on b.IssueDoc=a.ID + left join CBO_ItemMaster c on c.ID=b.Item + left join CBO_Project d on d.ID=b.Project + left join Lot_LotMaster e on e.ID=b.LotMaster + WHERE a.DocNo in ({0}) AND a.Org='{1}'"; + sql = string.Format(sql, DocNOList, OrgID); + DataTable cdt = DBHelper.Query(sql, connString); + DataTable tempdt1 = mdt.Copy(); + tempdt1.TableName = "tempdt1"; + ds.Tables.Add(tempdt1); + + DataTable tempdt2 = cdt.Copy(); + tempdt2.TableName = "tempdt2"; + ds.Tables.Add(tempdt2); + + #endregion + } + else + { + DeleteIssue issuedel = new DeleteIssue(); + issuedel.Delete(LLCodeList, OrgID); + throw new Exception("退料单审核失败,创建的退料单已删除!"); + } + } + + } + catch (Exception ex) + { + throw new Exception(GetExceptionMessage(ex)); + } + msg = JSON.DataSetToJson(ds, "details", "IDs"); + return msg; + } + #region 给上下文信息赋值 + /// + /// 给上下文信息赋值 + /// + /// + private static ThreadContext CreateContextObj(string OrgID) + { + // 实例化应用上下文对象 + ThreadContext thContext = new ThreadContext(); + + + System.Collections.Generic.Dictionary ns = new Dictionary(); + ns.Add("OrgID", OrgID); + ns.Add("UserID", ConfigurationManager.AppSettings["userID"].ToString()); + ns.Add("UserCode", ConfigurationManager.AppSettings["userCode"].ToString()); + ns.Add("Datetime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); + ns.Add("CultureName", ConfigurationManager.AppSettings["cultureName"].ToString()); + ns.Add("EnterpriseID", ConfigurationManager.AppSettings["enterpriseID"].ToString()); + ns.Add("DefaultCultureName", ConfigurationManager.AppSettings["cultureName"].ToString()); + thContext.nameValueHas = ns; + + return thContext; + } + #endregion + + private static DataTable GetData(string DocCode, string OrgID) + { + string sql = @" select A.ID,A1.[Code] as [Receivement_RcvDocType_Code],A.Status + from PM_Receivement as A + left join [PM_RcvDocType] as A1 on (A.[RcvDocType] = A1.[ID]) + left join [PM_RcvDocType_Trl] as A2 on (A2.SysMlFlag = 'zh-CN') and (A1.[ID] = A2.[ID]) + where A.DocNo='" + DocCode + "' AND A.Org='" + OrgID + "'"; + return DBHelper.Query(sql, connString); + } + #region 提取异常信息 + /// + /// 提取异常信息 + /// + /// + private static string GetExceptionMessage(Exception ex) + { + string faultMessage = "未知错误,请查看ERP日志!"; + + System.TimeoutException timeoutEx = ex as System.TimeoutException; + if (timeoutEx != null) + { + faultMessage = "访问服务超时,请修改配置信息!"; + } + else + { + FaultException faultEx = ex as FaultException; + if (faultEx == null) + { + faultMessage = ex.Message; + } + else + { + ServiceException serviceEx = faultEx.Detail; + if (serviceEx != null && !string.IsNullOrEmpty(serviceEx.Message) + && !serviceEx.Message.Equals("fault", StringComparison.OrdinalIgnoreCase)) + { + // 错误信息在faultEx.Message中,请提取, + // 格式为"Fault:料品不能为空,请录入\n 在....." + int startIndex = serviceEx.Message.IndexOf(":"); + int endIndex = serviceEx.Message.IndexOf("\n"); + if (endIndex == -1) + endIndex = serviceEx.Message.Length; + if (endIndex > 0 && endIndex > startIndex + 1) + { + faultMessage = serviceEx.Message.Substring(startIndex + 1, endIndex - startIndex - 1); + } + else + { + faultMessage = serviceEx.Message; + } + } + } + } + return faultMessage; + } + #endregion + } +} diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/ICSSoft.APICreateIssue.csproj b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/ICSSoft.APICreateIssue.csproj new file mode 100644 index 0000000..8bf5918 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/ICSSoft.APICreateIssue.csproj @@ -0,0 +1,98 @@ + + + + + Debug + AnyCPU + {9EEEC30C-0BC8-4875-B094-9B373CA330D3} + Library + Properties + ICSSoft.APICreateIssue + ICSSoft.APICreateIssue + v4.8 + 512 + true + + + + + + + + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\ICSSoft.ERP.WebAPI\bin\log4net.dll + + + False + bin\Debug\Newtonsoft.Json.dll + + + + + + + + + + + + + + + + + + + + + {8666c3ea-95f9-4e97-a899-60ecc3ffddae} + ICSSoft.APIApproveIssue + + + {e043ee69-8524-4ea5-861e-44fa9a64b410} + ICSSoft.APICreateLotMaster + + + {147fca78-535b-4f46-9049-19842e903e78} + ICSSoft.APIDeleteIssue + + + {b7b41ddb-e04c-4b09-82c5-e458d188294f} + ICSSoft.ASKDataProject + + + {ee45f7a5-17ee-4707-a617-8c00dd36fc01} + ICSSoft.Common + + + {834E9A76-1D9E-4EBD-9321-0B362A06A367} + ICSSoft.Entity + + + + + + + \ No newline at end of file diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/Properties/AssemblyInfo.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5e48269 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/Properties/AssemblyInfo.cs @@ -0,0 +1,37 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("ICSSoft.Common")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ICSSoft.Common")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("ee45f7a5-17ee-4707-a617-8c00dd36fc01")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4.xml", Watch = true)] diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/output.config b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/output.config new file mode 100644 index 0000000..0582044 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateIssue/output.config @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/CommonCreateLotMasterSRVStub.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/CommonCreateLotMasterSRVStub.cs new file mode 100644 index 0000000..950a7b5 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/CommonCreateLotMasterSRVStub.cs @@ -0,0 +1,2585 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:2.0.50727.9151 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("UFSoft.UBF.Exceptions", ClrNamespace="UFSoft.UBF.Exceptions1")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("http://www.UFIDA.org/EntityData", ClrNamespace="www.ufida.org.EntityData")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("UFSoft.UBF.Util.Data", ClrNamespace="UFSoft.UBF.Util.Data")] + +namespace UFSoft.UBF.Service +{ + using System.Runtime.Serialization; + using System; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ServiceExceptionDetail", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + public partial class ServiceExceptionDetail : System.ServiceModel.ExceptionDetail, System.Runtime.Serialization.IExtensibleDataObject + { + public ServiceExceptionDetail(Exception exception) : base(exception) { } + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.ExceptionBase ExceptionField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ExceptionBase Exception + { + get + { + return this.ExceptionField; + } + set + { + this.ExceptionField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class ServiceLostException : UFSoft.UBF.ExceptionBase + { + + public ServiceLostException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class ServiceException : UFSoft.UBF.ExceptionBase + { + + public ServiceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } +} +namespace UFSoft.UBF +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + public partial class ExceptionBase : System.Exception + { + + public ExceptionBase(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ExceptionBase.FormatState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public enum FormatState : uint + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatting = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatted = 2, + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class UnknownException : UFSoft.UBF.ExceptionBase + { + + public UnknownException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorMessage", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public partial class ErrorMessage : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.ErrorDescriptor errDescriptorField; + + private string errorTypeField; + + private UFSoft.UBF.ErrorMessage[] innerMessagesField; + + private string messageField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public UFSoft.UBF.ErrorDescriptor errDescriptor + { + get + { + return this.errDescriptorField; + } + set + { + this.errDescriptorField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public string errorType + { + get + { + return this.errorTypeField; + } + set + { + this.errorTypeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ErrorMessage[] innerMessages + { + get + { + return this.innerMessagesField; + } + set + { + this.innerMessagesField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string message + { + get + { + return this.messageField; + } + set + { + this.messageField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorDescriptor", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public partial class ErrorDescriptor : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string categoryField; + + private string erroridField; + + private UFSoft.UBF.ErrorLevel levelField; + + private string ownerField; + + private System.DateTime timeStampField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string category + { + get + { + return this.categoryField; + } + set + { + this.categoryField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public string errorid + { + get + { + return this.erroridField; + } + set + { + this.erroridField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ErrorLevel level + { + get + { + return this.levelField; + } + set + { + this.levelField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string owner + { + get + { + return this.ownerField; + } + set + { + this.ownerField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.DateTime timeStamp + { + get + { + return this.timeStampField; + } + set + { + this.timeStampField = value; + } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorLevel", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public enum ErrorLevel : short + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Debug = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Info = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Warn = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Error = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Fatal = 4, + } +} +namespace UFSoft.UBF.Business +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + public partial class BusinessException : UFSoft.UBF.ExceptionBase + { + + public BusinessException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class AttrsContainerException : UFSoft.UBF.Business.BusinessException + { + + public AttrsContainerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class AttributeInValidException : UFSoft.UBF.Business.BusinessException + { + + public AttributeInValidException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class EntityNotExistException : UFSoft.UBF.Business.BusinessException + { + + public EntityNotExistException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } +} +namespace UFSoft.UBF.PL.Engine +{ + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ObjectState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.PL.Engine")] + public enum ObjectState : int + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + NotExist = -1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unchanged = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unknown = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inserted = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Updated = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Deleted = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Operating = 9, + + [System.Runtime.Serialization.EnumMemberAttribute()] + NeedLoad = 10, + } +} +namespace System.Data +{ + using System; + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.FlagsAttribute()] + [System.Runtime.Serialization.DataContractAttribute(Name="DataRowState", Namespace="http://schemas.datacontract.org/2004/07/System.Data")] + public enum DataRowState : int + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Detached = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unchanged = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Added = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Deleted = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Modified = 16, + } +} +namespace UFSoft.UBF.Exceptions +{ + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MessageBase.FormatState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Exceptions")] + public enum MessageBaseFormatState : uint + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatting = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatted = 2, + } +} +namespace UFSoft.UBF.Exceptions1 +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MessageBase", Namespace="UFSoft.UBF.Exceptions")] + public partial class MessageBase : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string attributeMetadataIDField; + + private string attributeNameField; + + private string entityFullNameField; + + private long entityIDField; + + private string entityMetadataIDField; + + private short errorLevelField; + + private UFSoft.UBF.Exceptions.MessageBaseFormatState formatedField; + + private UFSoft.UBF.Exceptions1.MessageBase[] innerMessagesField; + + private bool isValidEntityIDField; + + private string localMessageField; + + private string orginalEntityFullNameField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string attributeMetadataID + { + get + { + return this.attributeMetadataIDField; + } + set + { + this.attributeMetadataIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string attributeName + { + get + { + return this.attributeNameField; + } + set + { + this.attributeNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string entityFullName + { + get + { + return this.entityFullNameField; + } + set + { + this.entityFullNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long entityID + { + get + { + return this.entityIDField; + } + set + { + this.entityIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string entityMetadataID + { + get + { + return this.entityMetadataIDField; + } + set + { + this.entityMetadataIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public short errorLevel + { + get + { + return this.errorLevelField; + } + set + { + this.errorLevelField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Exceptions.MessageBaseFormatState formated + { + get + { + return this.formatedField; + } + set + { + this.formatedField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Exceptions1.MessageBase[] innerMessages + { + get + { + return this.innerMessagesField; + } + set + { + this.innerMessagesField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public bool isValidEntityID + { + get + { + return this.isValidEntityIDField; + } + set + { + this.isValidEntityIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string localMessage + { + get + { + return this.localMessageField; + } + set + { + this.localMessageField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string orginalEntityFullName + { + get + { + return this.orginalEntityFullNameField; + } + set + { + this.orginalEntityFullNameField = value; + } + } + } +} +namespace UFSoft.UBF.Util.Context +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ApplicationContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + public partial class ApplicationContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private System.Collections.Generic.Dictionary nameValueHasField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public System.Collections.Generic.Dictionary nameValueHas + { + get + { + return this.nameValueHasField; + } + set + { + this.nameValueHasField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="PlatformContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.PL.Engine.ObjectState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Data.DataRowState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Exception))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Exception[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorDescriptor))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorLevel))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase.FormatState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBaseFormatState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Collections.Generic.Dictionary))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ApplicationContext))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ThreadContext))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.ServiceModel.ExceptionDetail))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVCBOLotCreateLotMasterDTOData[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVCBOLotCreateLotMasterDTOData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9BaseFlexFieldDescFlexFieldDescFlexSegmentsData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9BaseDTOsIDCodeNameDTOData[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9BaseDTOsIDCodeNameDTOData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData))] + public partial class PlatformContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private object ctxField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public object ctx + { + get + { + return this.ctxField; + } + set + { + this.ctxField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ThreadContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + public partial class ThreadContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private System.Collections.Generic.Dictionary nameValueHasField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public System.Collections.Generic.Dictionary nameValueHas + { + get + { + return this.nameValueHasField; + } + set + { + this.nameValueHasField = value; + } + } + } +} +namespace www.ufida.org.EntityData +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFIDA.U9.ISV.CBO.Lot.CreateLotMasterDTOData", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + public partial class UFIDAU9ISVCBOLotCreateLotMasterDTOData : www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase + { + + private int m_availableDateField; + + private www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData m_customerField; + + private www.ufida.org.EntityData.UFIDAU9BaseFlexFieldDescFlexFieldDescFlexSegmentsData m_descFlexSegmentsField; + + private System.DateTime m_disabledTimeField; + + private www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData m_itemField; + + private string m_lotCodeField; + + private System.DateTime m_lotDisabledTimeField; + + private System.DateTime m_lotEnableTimeField; + + private www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData m_supplierField; + + private www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData m_usedToOrgField; + + private www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData m_usedToWhField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public int m_availableDate + { + get + { + return this.m_availableDateField; + } + set + { + this.m_availableDateField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData m_customer + { + get + { + return this.m_customerField; + } + set + { + this.m_customerField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public www.ufida.org.EntityData.UFIDAU9BaseFlexFieldDescFlexFieldDescFlexSegmentsData m_descFlexSegments + { + get + { + return this.m_descFlexSegmentsField; + } + set + { + this.m_descFlexSegmentsField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.DateTime m_disabledTime + { + get + { + return this.m_disabledTimeField; + } + set + { + this.m_disabledTimeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData m_item + { + get + { + return this.m_itemField; + } + set + { + this.m_itemField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_lotCode + { + get + { + return this.m_lotCodeField; + } + set + { + this.m_lotCodeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.DateTime m_lotDisabledTime + { + get + { + return this.m_lotDisabledTimeField; + } + set + { + this.m_lotDisabledTimeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.DateTime m_lotEnableTime + { + get + { + return this.m_lotEnableTimeField; + } + set + { + this.m_lotEnableTimeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData m_supplier + { + get + { + return this.m_supplierField; + } + set + { + this.m_supplierField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData m_usedToOrg + { + get + { + return this.m_usedToOrgField; + } + set + { + this.m_usedToOrgField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData m_usedToWh + { + get + { + return this.m_usedToWhField; + } + set + { + this.m_usedToWhField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFSoft.UBF.Business.DataTransObjectBase", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9BaseFlexFieldDescFlexFieldDescFlexSegmentsData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9BaseDTOsIDCodeNameDTOData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVCBOLotCreateLotMasterDTOData))] + public partial class UFSoftUBFBusinessDataTransObjectBase : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.PL.Engine.ObjectState sysStateField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.PL.Engine.ObjectState sysState + { + get + { + return this.sysStateField; + } + set + { + this.sysStateField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTOData", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + public partial class UFIDAU9CBOPubControllerCommonArchiveDataDTOData : www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase + { + + private string m_codeField; + + private long m_iDField; + + private string m_nameField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_code + { + get + { + return this.m_codeField; + } + set + { + this.m_codeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long m_iD + { + get + { + return this.m_iDField; + } + set + { + this.m_iDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_name + { + get + { + return this.m_nameField; + } + set + { + this.m_nameField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFIDA.U9.Base.FlexField.DescFlexField.DescFlexSegmentsData", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + public partial class UFIDAU9BaseFlexFieldDescFlexFieldDescFlexSegmentsData : www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase + { + + private string CombineNameField; + + private UFSoft.UBF.Util.Data.MultiLangDataDict Multi_CombineNameField; + + private string m_contextValueField; + + private string m_privateDescSeg1Field; + + private string m_privateDescSeg10Field; + + private string m_privateDescSeg11Field; + + private string m_privateDescSeg12Field; + + private string m_privateDescSeg13Field; + + private string m_privateDescSeg14Field; + + private string m_privateDescSeg15Field; + + private string m_privateDescSeg16Field; + + private string m_privateDescSeg17Field; + + private string m_privateDescSeg18Field; + + private string m_privateDescSeg19Field; + + private string m_privateDescSeg2Field; + + private string m_privateDescSeg20Field; + + private string m_privateDescSeg21Field; + + private string m_privateDescSeg22Field; + + private string m_privateDescSeg23Field; + + private string m_privateDescSeg24Field; + + private string m_privateDescSeg25Field; + + private string m_privateDescSeg26Field; + + private string m_privateDescSeg27Field; + + private string m_privateDescSeg28Field; + + private string m_privateDescSeg29Field; + + private string m_privateDescSeg3Field; + + private string m_privateDescSeg30Field; + + private string m_privateDescSeg4Field; + + private string m_privateDescSeg5Field; + + private string m_privateDescSeg6Field; + + private string m_privateDescSeg7Field; + + private string m_privateDescSeg8Field; + + private string m_privateDescSeg9Field; + + private string m_pubDescSeg1Field; + + private string m_pubDescSeg10Field; + + private string m_pubDescSeg11Field; + + private string m_pubDescSeg12Field; + + private string m_pubDescSeg13Field; + + private string m_pubDescSeg14Field; + + private string m_pubDescSeg15Field; + + private string m_pubDescSeg16Field; + + private string m_pubDescSeg17Field; + + private string m_pubDescSeg18Field; + + private string m_pubDescSeg19Field; + + private string m_pubDescSeg2Field; + + private string m_pubDescSeg20Field; + + private string m_pubDescSeg21Field; + + private string m_pubDescSeg22Field; + + private string m_pubDescSeg23Field; + + private string m_pubDescSeg24Field; + + private string m_pubDescSeg25Field; + + private string m_pubDescSeg26Field; + + private string m_pubDescSeg27Field; + + private string m_pubDescSeg28Field; + + private string m_pubDescSeg29Field; + + private string m_pubDescSeg3Field; + + private string m_pubDescSeg30Field; + + private string m_pubDescSeg31Field; + + private string m_pubDescSeg32Field; + + private string m_pubDescSeg33Field; + + private string m_pubDescSeg34Field; + + private string m_pubDescSeg35Field; + + private string m_pubDescSeg36Field; + + private string m_pubDescSeg37Field; + + private string m_pubDescSeg38Field; + + private string m_pubDescSeg39Field; + + private string m_pubDescSeg4Field; + + private string m_pubDescSeg40Field; + + private string m_pubDescSeg41Field; + + private string m_pubDescSeg42Field; + + private string m_pubDescSeg43Field; + + private string m_pubDescSeg44Field; + + private string m_pubDescSeg45Field; + + private string m_pubDescSeg46Field; + + private string m_pubDescSeg47Field; + + private string m_pubDescSeg48Field; + + private string m_pubDescSeg49Field; + + private string m_pubDescSeg5Field; + + private string m_pubDescSeg50Field; + + private string m_pubDescSeg6Field; + + private string m_pubDescSeg7Field; + + private string m_pubDescSeg8Field; + + private string m_pubDescSeg9Field; + + [System.Runtime.Serialization.DataMemberAttribute()] + public string CombineName + { + get + { + return this.CombineNameField; + } + set + { + this.CombineNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Util.Data.MultiLangDataDict Multi_CombineName + { + get + { + return this.Multi_CombineNameField; + } + set + { + this.Multi_CombineNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_contextValue + { + get + { + return this.m_contextValueField; + } + set + { + this.m_contextValueField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg1 + { + get + { + return this.m_privateDescSeg1Field; + } + set + { + this.m_privateDescSeg1Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg10 + { + get + { + return this.m_privateDescSeg10Field; + } + set + { + this.m_privateDescSeg10Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg11 + { + get + { + return this.m_privateDescSeg11Field; + } + set + { + this.m_privateDescSeg11Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg12 + { + get + { + return this.m_privateDescSeg12Field; + } + set + { + this.m_privateDescSeg12Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg13 + { + get + { + return this.m_privateDescSeg13Field; + } + set + { + this.m_privateDescSeg13Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg14 + { + get + { + return this.m_privateDescSeg14Field; + } + set + { + this.m_privateDescSeg14Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg15 + { + get + { + return this.m_privateDescSeg15Field; + } + set + { + this.m_privateDescSeg15Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg16 + { + get + { + return this.m_privateDescSeg16Field; + } + set + { + this.m_privateDescSeg16Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg17 + { + get + { + return this.m_privateDescSeg17Field; + } + set + { + this.m_privateDescSeg17Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg18 + { + get + { + return this.m_privateDescSeg18Field; + } + set + { + this.m_privateDescSeg18Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg19 + { + get + { + return this.m_privateDescSeg19Field; + } + set + { + this.m_privateDescSeg19Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg2 + { + get + { + return this.m_privateDescSeg2Field; + } + set + { + this.m_privateDescSeg2Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg20 + { + get + { + return this.m_privateDescSeg20Field; + } + set + { + this.m_privateDescSeg20Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg21 + { + get + { + return this.m_privateDescSeg21Field; + } + set + { + this.m_privateDescSeg21Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg22 + { + get + { + return this.m_privateDescSeg22Field; + } + set + { + this.m_privateDescSeg22Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg23 + { + get + { + return this.m_privateDescSeg23Field; + } + set + { + this.m_privateDescSeg23Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg24 + { + get + { + return this.m_privateDescSeg24Field; + } + set + { + this.m_privateDescSeg24Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg25 + { + get + { + return this.m_privateDescSeg25Field; + } + set + { + this.m_privateDescSeg25Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg26 + { + get + { + return this.m_privateDescSeg26Field; + } + set + { + this.m_privateDescSeg26Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg27 + { + get + { + return this.m_privateDescSeg27Field; + } + set + { + this.m_privateDescSeg27Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg28 + { + get + { + return this.m_privateDescSeg28Field; + } + set + { + this.m_privateDescSeg28Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg29 + { + get + { + return this.m_privateDescSeg29Field; + } + set + { + this.m_privateDescSeg29Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg3 + { + get + { + return this.m_privateDescSeg3Field; + } + set + { + this.m_privateDescSeg3Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg30 + { + get + { + return this.m_privateDescSeg30Field; + } + set + { + this.m_privateDescSeg30Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg4 + { + get + { + return this.m_privateDescSeg4Field; + } + set + { + this.m_privateDescSeg4Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg5 + { + get + { + return this.m_privateDescSeg5Field; + } + set + { + this.m_privateDescSeg5Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg6 + { + get + { + return this.m_privateDescSeg6Field; + } + set + { + this.m_privateDescSeg6Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg7 + { + get + { + return this.m_privateDescSeg7Field; + } + set + { + this.m_privateDescSeg7Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg8 + { + get + { + return this.m_privateDescSeg8Field; + } + set + { + this.m_privateDescSeg8Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_privateDescSeg9 + { + get + { + return this.m_privateDescSeg9Field; + } + set + { + this.m_privateDescSeg9Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg1 + { + get + { + return this.m_pubDescSeg1Field; + } + set + { + this.m_pubDescSeg1Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg10 + { + get + { + return this.m_pubDescSeg10Field; + } + set + { + this.m_pubDescSeg10Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg11 + { + get + { + return this.m_pubDescSeg11Field; + } + set + { + this.m_pubDescSeg11Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg12 + { + get + { + return this.m_pubDescSeg12Field; + } + set + { + this.m_pubDescSeg12Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg13 + { + get + { + return this.m_pubDescSeg13Field; + } + set + { + this.m_pubDescSeg13Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg14 + { + get + { + return this.m_pubDescSeg14Field; + } + set + { + this.m_pubDescSeg14Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg15 + { + get + { + return this.m_pubDescSeg15Field; + } + set + { + this.m_pubDescSeg15Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg16 + { + get + { + return this.m_pubDescSeg16Field; + } + set + { + this.m_pubDescSeg16Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg17 + { + get + { + return this.m_pubDescSeg17Field; + } + set + { + this.m_pubDescSeg17Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg18 + { + get + { + return this.m_pubDescSeg18Field; + } + set + { + this.m_pubDescSeg18Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg19 + { + get + { + return this.m_pubDescSeg19Field; + } + set + { + this.m_pubDescSeg19Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg2 + { + get + { + return this.m_pubDescSeg2Field; + } + set + { + this.m_pubDescSeg2Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg20 + { + get + { + return this.m_pubDescSeg20Field; + } + set + { + this.m_pubDescSeg20Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg21 + { + get + { + return this.m_pubDescSeg21Field; + } + set + { + this.m_pubDescSeg21Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg22 + { + get + { + return this.m_pubDescSeg22Field; + } + set + { + this.m_pubDescSeg22Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg23 + { + get + { + return this.m_pubDescSeg23Field; + } + set + { + this.m_pubDescSeg23Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg24 + { + get + { + return this.m_pubDescSeg24Field; + } + set + { + this.m_pubDescSeg24Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg25 + { + get + { + return this.m_pubDescSeg25Field; + } + set + { + this.m_pubDescSeg25Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg26 + { + get + { + return this.m_pubDescSeg26Field; + } + set + { + this.m_pubDescSeg26Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg27 + { + get + { + return this.m_pubDescSeg27Field; + } + set + { + this.m_pubDescSeg27Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg28 + { + get + { + return this.m_pubDescSeg28Field; + } + set + { + this.m_pubDescSeg28Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg29 + { + get + { + return this.m_pubDescSeg29Field; + } + set + { + this.m_pubDescSeg29Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg3 + { + get + { + return this.m_pubDescSeg3Field; + } + set + { + this.m_pubDescSeg3Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg30 + { + get + { + return this.m_pubDescSeg30Field; + } + set + { + this.m_pubDescSeg30Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg31 + { + get + { + return this.m_pubDescSeg31Field; + } + set + { + this.m_pubDescSeg31Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg32 + { + get + { + return this.m_pubDescSeg32Field; + } + set + { + this.m_pubDescSeg32Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg33 + { + get + { + return this.m_pubDescSeg33Field; + } + set + { + this.m_pubDescSeg33Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg34 + { + get + { + return this.m_pubDescSeg34Field; + } + set + { + this.m_pubDescSeg34Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg35 + { + get + { + return this.m_pubDescSeg35Field; + } + set + { + this.m_pubDescSeg35Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg36 + { + get + { + return this.m_pubDescSeg36Field; + } + set + { + this.m_pubDescSeg36Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg37 + { + get + { + return this.m_pubDescSeg37Field; + } + set + { + this.m_pubDescSeg37Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg38 + { + get + { + return this.m_pubDescSeg38Field; + } + set + { + this.m_pubDescSeg38Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg39 + { + get + { + return this.m_pubDescSeg39Field; + } + set + { + this.m_pubDescSeg39Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg4 + { + get + { + return this.m_pubDescSeg4Field; + } + set + { + this.m_pubDescSeg4Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg40 + { + get + { + return this.m_pubDescSeg40Field; + } + set + { + this.m_pubDescSeg40Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg41 + { + get + { + return this.m_pubDescSeg41Field; + } + set + { + this.m_pubDescSeg41Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg42 + { + get + { + return this.m_pubDescSeg42Field; + } + set + { + this.m_pubDescSeg42Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg43 + { + get + { + return this.m_pubDescSeg43Field; + } + set + { + this.m_pubDescSeg43Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg44 + { + get + { + return this.m_pubDescSeg44Field; + } + set + { + this.m_pubDescSeg44Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg45 + { + get + { + return this.m_pubDescSeg45Field; + } + set + { + this.m_pubDescSeg45Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg46 + { + get + { + return this.m_pubDescSeg46Field; + } + set + { + this.m_pubDescSeg46Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg47 + { + get + { + return this.m_pubDescSeg47Field; + } + set + { + this.m_pubDescSeg47Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg48 + { + get + { + return this.m_pubDescSeg48Field; + } + set + { + this.m_pubDescSeg48Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg49 + { + get + { + return this.m_pubDescSeg49Field; + } + set + { + this.m_pubDescSeg49Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg5 + { + get + { + return this.m_pubDescSeg5Field; + } + set + { + this.m_pubDescSeg5Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg50 + { + get + { + return this.m_pubDescSeg50Field; + } + set + { + this.m_pubDescSeg50Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg6 + { + get + { + return this.m_pubDescSeg6Field; + } + set + { + this.m_pubDescSeg6Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg7 + { + get + { + return this.m_pubDescSeg7Field; + } + set + { + this.m_pubDescSeg7Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg8 + { + get + { + return this.m_pubDescSeg8Field; + } + set + { + this.m_pubDescSeg8Field = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_pubDescSeg9 + { + get + { + return this.m_pubDescSeg9Field; + } + set + { + this.m_pubDescSeg9Field = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFIDA.U9.Base.DTOs.IDCodeNameDTOData", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + public partial class UFIDAU9BaseDTOsIDCodeNameDTOData : www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase + { + + private string m_codeField; + + private long m_iDField; + + private string m_nameField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_code + { + get + { + return this.m_codeField; + } + set + { + this.m_codeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long m_iD + { + get + { + return this.m_iDField; + } + set + { + this.m_iDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_name + { + get + { + return this.m_nameField; + } + set + { + this.m_nameField = value; + } + } + } +} +namespace UFSoft.UBF.Util.Data +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MultiLangDataDict", Namespace="UFSoft.UBF.Util.Data")] + public partial class MultiLangDataDict : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.Util.Data.MultiLangData[] _langsField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Util.Data.MultiLangData[] _langs + { + get + { + return this._langsField; + } + set + { + this._langsField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MultiLangData", Namespace="UFSoft.UBF.Util.Data")] + public partial class MultiLangData : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string LangTypeField; + + private string LangValueField; + + private System.Data.DataRowState StateField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string LangType + { + get + { + return this.LangTypeField; + } + set + { + this.LangTypeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string LangValue + { + get + { + return this.LangValueField; + } + set + { + this.LangValueField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.Data.DataRowState State + { + get + { + return this.StateField; + } + set + { + this.StateField = value; + } + } + } +} + + +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +[System.ServiceModel.ServiceContractAttribute(Name="UFIDA.U9.ISV.CBO.Lot.ICommonCreateLotMasterSRV", Namespace="http://www.UFIDA.org", ConfigurationName="UFIDAU9ISVCBOLotICommonCreateLotMasterSRV")] +public interface UFIDAU9ISVCBOLotICommonCreateLotMasterSRV +{ + + [System.ServiceModel.OperationContractAttribute(Action="http://www.UFIDA.org/UFIDA.U9.ISV.CBO.Lot.ICommonCreateLotMasterSRV/Do", ReplyAction="http://www.UFIDA.org/UFIDA.U9.ISV.CBO.Lot.ICommonCreateLotMasterSRV/DoResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail), Action="http://www.UFIDA.org/UFIDA.U9.ISV.CBO.Lot.ICommonCreateLotMasterSRV/DoServiceExce" + + "ptionDetailFault", Name="ServiceExceptionDetail", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(System.Exception), Action="http://www.UFIDA.org/UFIDA.U9.ISV.CBO.Lot.ICommonCreateLotMasterSRV/DoExceptionFa" + + "ult", Name="Exception", Namespace="http://schemas.datacontract.org/2004/07/System")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.ExceptionBase), Action="http://www.UFIDA.org/UFIDA.U9.ISV.CBO.Lot.ICommonCreateLotMasterSRV/DoExceptionBa" + + "seFault", Name="ExceptionBase", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceLostException), Action="http://www.UFIDA.org/UFIDA.U9.ISV.CBO.Lot.ICommonCreateLotMasterSRV/DoServiceLost" + + "ExceptionFault", Name="ServiceLostException", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceException), Action="http://www.UFIDA.org/UFIDA.U9.ISV.CBO.Lot.ICommonCreateLotMasterSRV/DoServiceExce" + + "ptionFault", Name="ServiceException", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.PL.Engine.ObjectState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Data.DataRowState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Exception))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Exception[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorDescriptor))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorLevel))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase.FormatState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBaseFormatState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ApplicationContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.PlatformContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ThreadContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.ServiceModel.ExceptionDetail))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVCBOLotCreateLotMasterDTOData[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVCBOLotCreateLotMasterDTOData))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9CBOPubControllerCommonArchiveDataDTOData))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9BaseFlexFieldDescFlexFieldDescFlexSegmentsData))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9BaseDTOsIDCodeNameDTOData[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9BaseDTOsIDCodeNameDTOData))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData))] + www.ufida.org.EntityData.UFIDAU9BaseDTOsIDCodeNameDTOData[] Do(out UFSoft.UBF.Exceptions1.MessageBase[] outMessages, object context, www.ufida.org.EntityData.UFIDAU9ISVCBOLotCreateLotMasterDTOData[] createLotMasterDTOList); +} + +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +public interface UFIDAU9ISVCBOLotICommonCreateLotMasterSRVChannel : UFIDAU9ISVCBOLotICommonCreateLotMasterSRV, System.ServiceModel.IClientChannel +{ +} + +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +public partial class UFIDAU9ISVCBOLotICommonCreateLotMasterSRVClient : System.ServiceModel.ClientBase, UFIDAU9ISVCBOLotICommonCreateLotMasterSRV +{ + + public UFIDAU9ISVCBOLotICommonCreateLotMasterSRVClient() + { + } + + public UFIDAU9ISVCBOLotICommonCreateLotMasterSRVClient(string endpointConfigurationName) : + base(endpointConfigurationName) + { + } + + public UFIDAU9ISVCBOLotICommonCreateLotMasterSRVClient(string endpointConfigurationName, string remoteAddress) : + base(endpointConfigurationName, remoteAddress) + { + } + + public UFIDAU9ISVCBOLotICommonCreateLotMasterSRVClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : + base(endpointConfigurationName, remoteAddress) + { + } + + public UFIDAU9ISVCBOLotICommonCreateLotMasterSRVClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : + base(binding, remoteAddress) + { + } + + public www.ufida.org.EntityData.UFIDAU9BaseDTOsIDCodeNameDTOData[] Do(out UFSoft.UBF.Exceptions1.MessageBase[] outMessages, object context, www.ufida.org.EntityData.UFIDAU9ISVCBOLotCreateLotMasterDTOData[] createLotMasterDTOList) + { + return base.Channel.Do(out outMessages, context, createLotMasterDTOList); + } +} diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/CreateLotMaster.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/CreateLotMaster.cs new file mode 100644 index 0000000..025d023 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/CreateLotMaster.cs @@ -0,0 +1,186 @@ +using ICSSoft.Common; +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ICSSoft.Entity; +using UFSoft.UBF.Util.Context; +using System.ServiceModel; +using www.ufida.org.EntityData; +using UFSoft.UBF.Exceptions1; +using UFSoft.UBF.Service; + +namespace ICSSoft.APICreateLotMaster +{ + public class CreateLotMaster + { + private static log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static string connString = System.Configuration.ConfigurationManager.AppSettings["ERPConnStr"]; + private static string ERPDB = System.Configuration.ConfigurationManager.AppSettings["ERPDB"]; + + public OperationResule Create(string WHCode, string ItemCode, string LotNo, string OrgID, ref string LotID) + { + //U9.PM.PO.POShipLine.CreatePOShipLineDefault(); + #region 服务调用框架结构 + //实例化代理类 UFIDAU9ISVItemIBatchCreateItemByDTOSRVClient + + UFIDAU9ISVCBOLotICommonCreateLotMasterSRVClient client = new UFIDAU9ISVCBOLotICommonCreateLotMasterSRVClient(); + //服务返回结果 + UFIDAU9BaseDTOsIDCodeNameDTOData[] returnItems; + //返回异常信息,目前还没有使用此属性 + UFSoft.UBF.Exceptions1.MessageBase[] returnMsg; + //上下文信息 + object context; + //传入 参数 + //; + OperationResule result = new OperationResule(); + string[] splitBy = new string[] { }; + UFIDAU9ISVCBOLotCreateLotMasterDTOData[] createLotMasterDTOList = new UFIDAU9ISVCBOLotCreateLotMasterDTOData[] { }; + List list = new List(); + + UFIDAU9ISVCBOLotCreateLotMasterDTOData _model = new UFIDAU9ISVCBOLotCreateLotMasterDTOData(); + _model.m_lotCode = LotNo;//批号 + _model.m_item = new UFIDAU9CBOPubControllerCommonArchiveDataDTOData(); + _model.m_item.m_code = ItemCode;//料品 + _model.m_usedToOrg = new UFIDAU9CBOPubControllerCommonArchiveDataDTOData(); + _model.m_usedToOrg.m_iD = long.Parse(OrgID); + //_model.m_lotDisabledTime = Convert.ToDateTime("9999.12.31"); + + list.Add(_model); + createLotMasterDTOList = list.ToArray(); + + try + { + //给上下文信息赋值 + context = CreateContextObj(OrgID); + //给传入参数赋值 + //pOList = SetrCVDtos( rCVInfoList); + //服务调用 + + (client.Endpoint.Binding as BasicHttpBinding).MaxReceivedMessageSize = int.MaxValue; + (client.Endpoint.Binding as BasicHttpBinding).MaxBufferSize = int.MaxValue; + returnItems = client.Do(out returnMsg, context, createLotMasterDTOList); + foreach (var item in returnItems) + { + long id = item.m_iD; + string sql = @"SELECT lotcode from Lot_LotMaster WHERE ID={0}"; + sql = string.Format(sql, id); + DataTable _dtlotcode = DBHelper.Query(sql, connString); + string lotcode = string.Empty; + if (_dtlotcode != null && _dtlotcode.Rows.Count > 0) + { + lotcode = _dtlotcode.Rows[0][0].ToString(); + } + result.DocNo = lotcode; + result.IsSuccess = true; + LotID = id.ToString(); + result.Message = "创建库存批号成功"; + } + + return result; + } + catch (Exception ex) + { + //异常信息捕获 + + string Message = GetExceptionMessage(ex); + result.DocNo = ""; + result.IsSuccess = false; + result.Message = Message; + return result; + } + #endregion + } + #region 给上下文信息赋值 + /// + /// 给上下文信息赋值 + /// + /// + private static ThreadContext CreateContextObj(string OrgID) + { + // 实例化应用上下文对象 + ThreadContext thContext = new ThreadContext(); + + + System.Collections.Generic.Dictionary ns = new Dictionary(); + ns.Add("OrgID", OrgID); + ns.Add("UserID", ConfigurationManager.AppSettings["userID"].ToString()); + ns.Add("UserCode", ConfigurationManager.AppSettings["userCode"].ToString()); + ns.Add("Datetime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); + ns.Add("CultureName", ConfigurationManager.AppSettings["cultureName"].ToString()); + ns.Add("EnterpriseID", ConfigurationManager.AppSettings["enterpriseID"].ToString()); + ns.Add("DefaultCultureName", ConfigurationManager.AppSettings["cultureName"].ToString()); + thContext.nameValueHas = ns; + + return thContext; + } + #endregion + + private static DataTable GetData(string DocCode, string OrgID) + { + string sql = @" select ID,DocNo + from MO_IssueDoc + where DocNo='" + DocCode + "' AND Org='" + OrgID + "'"; + return DBHelper.Query(sql, connString); + } + + #region 提取异常信息 + /// + /// 提取异常信息 + /// + /// + private static string GetExceptionMessage(Exception ex) + { + string faultMessage = "未知错误,请查看ERP日志!"; + + System.TimeoutException timeoutEx = ex as System.TimeoutException; + if (timeoutEx != null) + { + faultMessage = "访问服务超时,请修改配置信息!"; + } + else + { + FaultException faultEx = ex as FaultException; + if (faultEx == null) + { + faultMessage = ex.Message; + } + else + { + ServiceException serviceEx = faultEx.Detail; + if (serviceEx != null && !string.IsNullOrEmpty(serviceEx.Message) + && !serviceEx.Message.Equals("fault", StringComparison.OrdinalIgnoreCase)) + { + // 错误信息在faultEx.Message中,请提取, + // 格式为"Fault:料品不能为空,请录入\n 在....." + int startIndex = serviceEx.Message.IndexOf(":"); + int endIndex = serviceEx.Message.IndexOf("\n"); + if (endIndex == -1) + endIndex = serviceEx.Message.Length; + if (endIndex > 0 && endIndex > startIndex + 1) + { + faultMessage = serviceEx.Message.Substring(startIndex + 1, endIndex - startIndex - 1); + } + else + { + faultMessage = serviceEx.Message; + } + } + } + } + return faultMessage; + } + #endregion + + public class OperationResule + { + public string DocNo { get; set; } + public bool IsSuccess { get; set; } + public string Message { get; set; } + } + } +} diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/ICSSoft.APICreateLotMaster.csproj b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/ICSSoft.APICreateLotMaster.csproj new file mode 100644 index 0000000..1b88ec3 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/ICSSoft.APICreateLotMaster.csproj @@ -0,0 +1,82 @@ + + + + + Debug + AnyCPU + {E043EE69-8524-4EA5-861E-44FA9A64B410} + Library + Properties + ICSSoft.APICreateLotMaster + ICSSoft.APICreateLotMaster + v4.8 + 512 + true + + + + + + + + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\ICSSoft.ERP.WebAPI\bin\log4net.dll + + + False + bin\Debug\Newtonsoft.Json.dll + + + + + + + + + + + + + + + + + + + + + {ee45f7a5-17ee-4707-a617-8c00dd36fc01} + ICSSoft.Common + + + {834E9A76-1D9E-4EBD-9321-0B362A06A367} + ICSSoft.Entity + + + + + + + \ No newline at end of file diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/Properties/AssemblyInfo.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5e48269 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/Properties/AssemblyInfo.cs @@ -0,0 +1,37 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("ICSSoft.Common")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ICSSoft.Common")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("ee45f7a5-17ee-4707-a617-8c00dd36fc01")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4.xml", Watch = true)] diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/output.config b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/output.config new file mode 100644 index 0000000..4bc47d0 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APICreateLotMaster/output.config @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/DeleteIssue.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/DeleteIssue.cs new file mode 100644 index 0000000..ca13570 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/DeleteIssue.cs @@ -0,0 +1,159 @@ +using ICSSoft.Common; +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ICSSoft.Entity; +using UFSoft.UBF.Util.Context; +using System.ServiceModel; +using www.ufida.org.EntityData; +using UFSoft.UBF.Exceptions1; +using UFSoft.UBF.Service; + +namespace ICSSoft.APIDeleteIssue +{ + public class DeleteIssue + { + private static log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static string connString = System.Configuration.ConfigurationManager.AppSettings["ERPConnStr"]; + private static string ERPDB = System.Configuration.ConfigurationManager.AppSettings["ERPDB"]; + + public bool Delete(List DocList, string OrgID) + { + long DocID = 0; + #region 服务调用框架结构 + //实例化代理类 + UFIDAU9ISVMOIDeleteIssue4ExternalClient client = new UFIDAU9ISVMOIDeleteIssue4ExternalClient(); + //服务返回结果 + //UFIDAU9PMPOPurchaseOrderData[] returnItems; + //返回异常信息,目前还没有使用此属性 + UFSoft.UBF.Exceptions1.MessageBase[] returnMsg; + //上下文信息 + object context; + bool IsSuccess = false; + //传入 参数 + //UFIDAU9PMDTOsOBAPurchaseOrderDTOData[] pOList; + www.ufida.org.EntityData.UFIDAU9ISVMOIssueKeyDTOData[] docArray = new www.ufida.org.EntityData.UFIDAU9ISVMOIssueKeyDTOData[] { }; + List docList = new List(); + try + { + StringBuilder str = new StringBuilder(); + foreach (string DocCode in DocList) + { + DataTable dt = GetData(DocCode, OrgID); + if (!string.IsNullOrEmpty(dt.Rows[0][0].ToString()) || !string.IsNullOrEmpty(dt.Rows[0][1].ToString())) + { + DocID = long.Parse(dt.Rows[0][0].ToString()); + } + else + { + throw new Exception("需要删除的单据号不正确!"); + } + + www.ufida.org.EntityData.UFIDAU9ISVMOIssueKeyDTOData docinfo = new www.ufida.org.EntityData.UFIDAU9ISVMOIssueKeyDTOData(); + //给传入参数赋值 + docinfo.m_iD = DocID; + docList.Add(docinfo); + docArray = docList.ToArray(); + } + //给上下文信息赋值 + context = CreateContextObj(OrgID); + //pOList = SetPoDtos(U9Info, poInfoList); + //服务调用 + (client.Endpoint.Binding as BasicHttpBinding).MaxReceivedMessageSize = int.MaxValue; + (client.Endpoint.Binding as BasicHttpBinding).MaxBufferSize = int.MaxValue; + IsSuccess = client.Do(out returnMsg, context, docArray); + } + catch (Exception ex) + { + throw new Exception(GetExceptionMessage(ex)); + } + return IsSuccess; + #endregion + } + #region 给上下文信息赋值 + /// + /// 给上下文信息赋值 + /// + /// + private static ThreadContext CreateContextObj(string OrgID) + { + // 实例化应用上下文对象 + ThreadContext thContext = new ThreadContext(); + + + System.Collections.Generic.Dictionary ns = new Dictionary(); + ns.Add("OrgID", OrgID); + ns.Add("UserID", ConfigurationManager.AppSettings["userID"].ToString()); + ns.Add("UserCode", ConfigurationManager.AppSettings["userCode"].ToString()); + ns.Add("Datetime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); + ns.Add("CultureName", ConfigurationManager.AppSettings["cultureName"].ToString()); + ns.Add("EnterpriseID", ConfigurationManager.AppSettings["enterpriseID"].ToString()); + ns.Add("DefaultCultureName", ConfigurationManager.AppSettings["cultureName"].ToString()); + thContext.nameValueHas = ns; + + return thContext; + } + #endregion + + private static DataTable GetData(string DocCode, string OrgID) + { + string sql = @" select ID,DocNo + from MO_IssueDoc + where DocNo='" + DocCode + "' AND Org='" + OrgID + "'"; + return DBHelper.Query(sql, connString); + } + + #region 提取异常信息 + /// + /// 提取异常信息 + /// + /// + private static string GetExceptionMessage(Exception ex) + { + string faultMessage = "未知错误,请查看ERP日志!"; + + System.TimeoutException timeoutEx = ex as System.TimeoutException; + if (timeoutEx != null) + { + faultMessage = "访问服务超时,请修改配置信息!"; + } + else + { + FaultException faultEx = ex as FaultException; + if (faultEx == null) + { + faultMessage = ex.Message; + } + else + { + ServiceException serviceEx = faultEx.Detail; + if (serviceEx != null && !string.IsNullOrEmpty(serviceEx.Message) + && !serviceEx.Message.Equals("fault", StringComparison.OrdinalIgnoreCase)) + { + // 错误信息在faultEx.Message中,请提取, + // 格式为"Fault:料品不能为空,请录入\n 在....." + int startIndex = serviceEx.Message.IndexOf(":"); + int endIndex = serviceEx.Message.IndexOf("\n"); + if (endIndex == -1) + endIndex = serviceEx.Message.Length; + if (endIndex > 0 && endIndex > startIndex + 1) + { + faultMessage = serviceEx.Message.Substring(startIndex + 1, endIndex - startIndex - 1); + } + else + { + faultMessage = serviceEx.Message; + } + } + } + } + return faultMessage; + } + #endregion + } +} diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/DeleteIssue4ExternalStub.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/DeleteIssue4ExternalStub.cs new file mode 100644 index 0000000..c7766b0 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/DeleteIssue4ExternalStub.cs @@ -0,0 +1,1081 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:2.0.50727.9148 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("http://www.UFIDA.org/EntityData", ClrNamespace="www.ufida.org.EntityData")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("UFSoft.UBF.Exceptions", ClrNamespace="UFSoft.UBF.Exceptions1")] +[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("UFSoft.UBF.Util.Data", ClrNamespace="UFSoft.UBF.Util.Data")] + +namespace www.ufida.org.EntityData +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFIDA.U9.ISV.MO.IssueKeyDTOData", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + public partial class UFIDAU9ISVMOIssueKeyDTOData : www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase + { + + private string m_docNoField; + + private long m_iDField; + + [System.Runtime.Serialization.DataMemberAttribute()] + public string m_docNo + { + get + { + return this.m_docNoField; + } + set + { + this.m_docNoField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long m_iD + { + get + { + return this.m_iDField; + } + set + { + this.m_iDField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="UFSoft.UBF.Business.DataTransObjectBase", Namespace="http://www.UFIDA.org/EntityData", IsReference=true)] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMOIssueKeyDTOData))] + public partial class UFSoftUBFBusinessDataTransObjectBase : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.PL.Engine.ObjectState sysStateField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.PL.Engine.ObjectState sysState + { + get + { + return this.sysStateField; + } + set + { + this.sysStateField = value; + } + } + } +} +namespace UFSoft.UBF.PL.Engine +{ + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ObjectState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.PL.Engine")] + public enum ObjectState : int + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + NotExist = -1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unchanged = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unknown = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inserted = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Updated = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Deleted = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Operating = 9, + + [System.Runtime.Serialization.EnumMemberAttribute()] + NeedLoad = 10, + } +} +namespace UFSoft.UBF.Exceptions +{ + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MessageBase.FormatState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Exceptions")] + public enum MessageBaseFormatState : uint + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatting = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatted = 2, + } +} +namespace UFSoft.UBF.Business +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class AttributeInValidException : UFSoft.UBF.Business.BusinessException + { + + public AttributeInValidException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + public partial class BusinessException : UFSoft.UBF.ExceptionBase + { + + public BusinessException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class AttrsContainerException : UFSoft.UBF.Business.BusinessException + { + + public AttrsContainerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class EntityNotExistException : UFSoft.UBF.Business.BusinessException + { + + public EntityNotExistException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } +} +namespace UFSoft.UBF +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + public partial class ExceptionBase : System.Exception + { + + public ExceptionBase(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ExceptionBase.FormatState", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public enum FormatState : uint + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + None = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatting = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Formatted = 2, + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class UnknownException : UFSoft.UBF.ExceptionBase + { + + public UnknownException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorMessage", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public partial class ErrorMessage : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.ErrorDescriptor errDescriptorField; + + private string errorTypeField; + + private UFSoft.UBF.ErrorMessage[] innerMessagesField; + + private string messageField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public UFSoft.UBF.ErrorDescriptor errDescriptor + { + get + { + return this.errDescriptorField; + } + set + { + this.errDescriptorField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public string errorType + { + get + { + return this.errorTypeField; + } + set + { + this.errorTypeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ErrorMessage[] innerMessages + { + get + { + return this.innerMessagesField; + } + set + { + this.innerMessagesField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string message + { + get + { + return this.messageField; + } + set + { + this.messageField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorDescriptor", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public partial class ErrorDescriptor : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string categoryField; + + private string erroridField; + + private UFSoft.UBF.ErrorLevel levelField; + + private string ownerField; + + private System.DateTime timeStampField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string category + { + get + { + return this.categoryField; + } + set + { + this.categoryField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public string errorid + { + get + { + return this.erroridField; + } + set + { + this.erroridField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ErrorLevel level + { + get + { + return this.levelField; + } + set + { + this.levelField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string owner + { + get + { + return this.ownerField; + } + set + { + this.ownerField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.DateTime timeStamp + { + get + { + return this.timeStampField; + } + set + { + this.timeStampField = value; + } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ErrorLevel", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + public enum ErrorLevel : short + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Debug = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Info = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Warn = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Error = 3, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Fatal = 4, + } +} +namespace UFSoft.UBF.Service +{ + using System; + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class ServiceLostException : UFSoft.UBF.ExceptionBase + { + + public ServiceLostException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.SerializableAttribute()] + public partial class ServiceException : UFSoft.UBF.ExceptionBase + { + + public ServiceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) + { + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ServiceExceptionDetail", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + public partial class ServiceExceptionDetail : System.ServiceModel.ExceptionDetail, System.Runtime.Serialization.IExtensibleDataObject + { + public ServiceExceptionDetail(Exception exception) : base(exception) { } + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.ExceptionBase ExceptionField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.ExceptionBase Exception + { + get + { + return this.ExceptionField; + } + set + { + this.ExceptionField = value; + } + } + } +} +namespace UFSoft.UBF.Exceptions1 +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MessageBase", Namespace="UFSoft.UBF.Exceptions")] + public partial class MessageBase : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string attributeMetadataIDField; + + private string attributeNameField; + + private string entityFullNameField; + + private long entityIDField; + + private string entityMetadataIDField; + + private short errorLevelField; + + private UFSoft.UBF.Exceptions.MessageBaseFormatState formatedField; + + private UFSoft.UBF.Exceptions1.MessageBase[] innerMessagesField; + + private bool isValidEntityIDField; + + private string localMessageField; + + private string orginalEntityFullNameField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string attributeMetadataID + { + get + { + return this.attributeMetadataIDField; + } + set + { + this.attributeMetadataIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string attributeName + { + get + { + return this.attributeNameField; + } + set + { + this.attributeNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string entityFullName + { + get + { + return this.entityFullNameField; + } + set + { + this.entityFullNameField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public long entityID + { + get + { + return this.entityIDField; + } + set + { + this.entityIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string entityMetadataID + { + get + { + return this.entityMetadataIDField; + } + set + { + this.entityMetadataIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public short errorLevel + { + get + { + return this.errorLevelField; + } + set + { + this.errorLevelField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Exceptions.MessageBaseFormatState formated + { + get + { + return this.formatedField; + } + set + { + this.formatedField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Exceptions1.MessageBase[] innerMessages + { + get + { + return this.innerMessagesField; + } + set + { + this.innerMessagesField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public bool isValidEntityID + { + get + { + return this.isValidEntityIDField; + } + set + { + this.isValidEntityIDField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string localMessage + { + get + { + return this.localMessageField; + } + set + { + this.localMessageField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string orginalEntityFullName + { + get + { + return this.orginalEntityFullNameField; + } + set + { + this.orginalEntityFullNameField = value; + } + } + } +} +namespace System.Data +{ + using System; + using System.Runtime.Serialization; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.FlagsAttribute()] + [System.Runtime.Serialization.DataContractAttribute(Name="DataRowState", Namespace="http://schemas.datacontract.org/2004/07/System.Data")] + public enum DataRowState : int + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Detached = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Unchanged = 2, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Added = 4, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Deleted = 8, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Modified = 16, + } +} +namespace UFSoft.UBF.Util.Data +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MultiLangDataDict", Namespace="UFSoft.UBF.Util.Data")] + public partial class MultiLangDataDict : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private UFSoft.UBF.Util.Data.MultiLangData[] _langsField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public UFSoft.UBF.Util.Data.MultiLangData[] _langs + { + get + { + return this._langsField; + } + set + { + this._langsField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="MultiLangData", Namespace="UFSoft.UBF.Util.Data")] + public partial class MultiLangData : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private string LangTypeField; + + private string LangValueField; + + private System.Data.DataRowState StateField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string LangType + { + get + { + return this.LangTypeField; + } + set + { + this.LangTypeField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string LangValue + { + get + { + return this.LangValueField; + } + set + { + this.LangValueField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public System.Data.DataRowState State + { + get + { + return this.StateField; + } + set + { + this.StateField = value; + } + } + } +} +namespace UFSoft.UBF.Util.Context +{ + using System.Runtime.Serialization; + + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ThreadContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + public partial class ThreadContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private System.Collections.Generic.Dictionary nameValueHasField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public System.Collections.Generic.Dictionary nameValueHas + { + get + { + return this.nameValueHasField; + } + set + { + this.nameValueHasField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="ApplicationContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + public partial class ApplicationContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private System.Collections.Generic.Dictionary nameValueHasField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public System.Collections.Generic.Dictionary nameValueHas + { + get + { + return this.nameValueHasField; + } + set + { + this.nameValueHasField = value; + } + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] + [System.Runtime.Serialization.DataContractAttribute(Name="PlatformContext", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Util.Context")] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMOIssueKeyDTOData[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMOIssueKeyDTOData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Collections.Generic.Dictionary))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBaseFormatState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.ServiceModel.ExceptionDetail))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Data.DataRowState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.PL.Engine.ObjectState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Exception))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Exception[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorDescriptor))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorLevel))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage[]))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase.FormatState))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ThreadContext))] + [System.Runtime.Serialization.KnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ApplicationContext))] + public partial class PlatformContext : object, System.Runtime.Serialization.IExtensibleDataObject + { + + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + private object ctxField; + + public System.Runtime.Serialization.ExtensionDataObject ExtensionData + { + get + { + return this.extensionDataField; + } + set + { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] + public object ctx + { + get + { + return this.ctxField; + } + set + { + this.ctxField = value; + } + } + } +} + + +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +[System.ServiceModel.ServiceContractAttribute(Name="UFIDA.U9.ISV.MO.IDeleteIssue4External", Namespace="http://www.UFIDA.org", ConfigurationName="UFIDAU9ISVMOIDeleteIssue4External")] +public interface UFIDAU9ISVMOIDeleteIssue4External +{ + + [System.ServiceModel.OperationContractAttribute(Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IDeleteIssue4External/Do", ReplyAction="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IDeleteIssue4External/DoResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceLostException), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IDeleteIssue4External/DoServiceLostException" + + "Fault", Name="ServiceLostException", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceException), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IDeleteIssue4External/DoServiceExceptionFaul" + + "t", Name="ServiceException", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IDeleteIssue4External/DoServiceExceptionDeta" + + "ilFault", Name="ServiceExceptionDetail", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF.Service")] + [System.ServiceModel.FaultContractAttribute(typeof(UFSoft.UBF.ExceptionBase), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IDeleteIssue4External/DoExceptionBaseFault", Name="ExceptionBase", Namespace="http://schemas.datacontract.org/2004/07/UFSoft.UBF")] + [System.ServiceModel.FaultContractAttribute(typeof(System.Exception), Action="http://www.UFIDA.org/UFIDA.U9.ISV.MO.IDeleteIssue4External/DoExceptionFault", Name="Exception", Namespace="http://schemas.datacontract.org/2004/07/System")] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMOIssueKeyDTOData[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFIDAU9ISVMOIssueKeyDTOData))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(www.ufida.org.EntityData.UFSoftUBFBusinessDataTransObjectBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions.MessageBaseFormatState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.AttributeInValidException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.BusinessException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.AttrsContainerException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Business.EntityNotExistException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Exceptions1.MessageBase[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.ServiceModel.ExceptionDetail))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Data.DataRowState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceLostException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Service.ServiceExceptionDetail))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.PL.Engine.ObjectState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Data.MultiLangData))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Exception))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Exception[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorDescriptor))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorLevel))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ErrorMessage[]))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.UnknownException))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.ExceptionBase.FormatState))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ThreadContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.ApplicationContext))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(UFSoft.UBF.Util.Context.PlatformContext))] + bool Do(out UFSoft.UBF.Exceptions1.MessageBase[] outMessages, object context, www.ufida.org.EntityData.UFIDAU9ISVMOIssueKeyDTOData[] issueKeyDTOs); +} + +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +public interface UFIDAU9ISVMOIDeleteIssue4ExternalChannel : UFIDAU9ISVMOIDeleteIssue4External, System.ServiceModel.IClientChannel +{ +} + +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] +public partial class UFIDAU9ISVMOIDeleteIssue4ExternalClient : System.ServiceModel.ClientBase, UFIDAU9ISVMOIDeleteIssue4External +{ + + public UFIDAU9ISVMOIDeleteIssue4ExternalClient() + { + } + + public UFIDAU9ISVMOIDeleteIssue4ExternalClient(string endpointConfigurationName) : + base(endpointConfigurationName) + { + } + + public UFIDAU9ISVMOIDeleteIssue4ExternalClient(string endpointConfigurationName, string remoteAddress) : + base(endpointConfigurationName, remoteAddress) + { + } + + public UFIDAU9ISVMOIDeleteIssue4ExternalClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : + base(endpointConfigurationName, remoteAddress) + { + } + + public UFIDAU9ISVMOIDeleteIssue4ExternalClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : + base(binding, remoteAddress) + { + } + + public bool Do(out UFSoft.UBF.Exceptions1.MessageBase[] outMessages, object context, www.ufida.org.EntityData.UFIDAU9ISVMOIssueKeyDTOData[] issueKeyDTOs) + { + return base.Channel.Do(out outMessages, context, issueKeyDTOs); + } +} diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/ICSSoft.APIDeleteIssue.csproj b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/ICSSoft.APIDeleteIssue.csproj new file mode 100644 index 0000000..3b386d1 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/ICSSoft.APIDeleteIssue.csproj @@ -0,0 +1,82 @@ + + + + + Debug + AnyCPU + {147FCA78-535B-4F46-9049-19842E903E78} + Library + Properties + ICSSoft.APIDeleteIssue + ICSSoft.APIDeleteIssue + v4.8 + 512 + true + + + + + + + + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\ICSSoft.ERP.WebAPI\bin\log4net.dll + + + False + bin\Debug\Newtonsoft.Json.dll + + + + + + + + + + + + + + + + + + + + + {ee45f7a5-17ee-4707-a617-8c00dd36fc01} + ICSSoft.Common + + + {834E9A76-1D9E-4EBD-9321-0B362A06A367} + ICSSoft.Entity + + + + + + + \ No newline at end of file diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/Properties/AssemblyInfo.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5e48269 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/Properties/AssemblyInfo.cs @@ -0,0 +1,37 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("ICSSoft.Common")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ICSSoft.Common")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("ee45f7a5-17ee-4707-a617-8c00dd36fc01")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4.xml", Watch = true)] diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/output.config b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/output.config new file mode 100644 index 0000000..9c6ed16 --- /dev/null +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.APIDeleteIssue/output.config @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.Common/DBHelper.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.Common/DBHelper.cs index ebc86b8..96edc44 100644 --- a/ICSSoft.U9ERP.WebAPI/ICSSoft.Common/DBHelper.cs +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.Common/DBHelper.cs @@ -3068,7 +3068,29 @@ WHERE (cAuth_Name = N'整理现存量'))"; throw new Exception("ERP人员不存在,编码:" + cPer_Num); return person; } - + + public static DataTable Query(string sql, string sqlconn) + { + try + { + if (sqlconn == "") + { + throw new Exception("连接U9字符串取得失败"); + } + SqlConnection conn = new SqlConnection(sqlconn); + + SqlDataAdapter da = new SqlDataAdapter(sql, conn); + DataTable dt = new DataTable(); + da.Fill(dt); + return dt; + } + catch (Exception ex) + { + throw ex; + } + + } + } } diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.DataProject/CreateAppVouch.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.DataProject/CreateAppVouch.cs index f52382f..1e5038d 100644 --- a/ICSSoft.U9ERP.WebAPI/ICSSoft.DataProject/CreateAppVouch.cs +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.DataProject/CreateAppVouch.cs @@ -35,72 +35,72 @@ namespace ICSSoft.DataProject string sql = string.Empty; - List result = infos.Select(t => t.WorkPoint).Distinct().ToList(); - foreach (string WorkPoint in result) - { - try - { - connS = string.Format(connString, WorkPoint); - conn = new System.Data.SqlClient.SqlConnection(connS); - conn.Open(); - SqlTransaction sqlTran = conn.BeginTransaction(); - cmd = new SqlCommand(); - cmd.Transaction = sqlTran; - cmd.Connection = conn; - - - foreach (AppVouch info in infos) - { - - if (WorkPoint != info.WorkPoint) - { - continue; - } - ICSUserInfo userInfo = new ICSUserInfo(); - userInfo = DBHelper.GetPersonInfo(info.User, cmd); - if (info.MTime < new DateTime(2000, 01, 01)) - throw new Exception("请输入正确的操作时间:" + info.MTime); - sql = @"select a.cCode,a.cDepCode,a.cMaker,a.cMakeTime,a.cVerifier,cAuditTime,b.irowno,b.cUnitID,b.fQuantity,b.cInvCode,b.dRequirDate,b.dArriveDate,b.cexch_name,b.iOriCost + List result = infos.Select(t => t.WorkPoint).Distinct().ToList(); + foreach (string WorkPoint in result) + { + try + { + connS = string.Format(connString, WorkPoint); + conn = new System.Data.SqlClient.SqlConnection(connS); + conn.Open(); + SqlTransaction sqlTran = conn.BeginTransaction(); + cmd = new SqlCommand(); + cmd.Transaction = sqlTran; + cmd.Connection = conn; + + + foreach (AppVouch info in infos) + { + + if (WorkPoint != info.WorkPoint) + { + continue; + } + ICSUserInfo userInfo = new ICSUserInfo(); + userInfo = DBHelper.GetPersonInfo(info.User, cmd); + if (info.MTime < new DateTime(2000, 01, 01)) + throw new Exception("请输入正确的操作时间:" + info.MTime); + sql = @"select a.cCode,a.cDepCode,a.cMaker,a.cMakeTime,a.cVerifier,cAuditTime,b.irowno,b.cUnitID,b.fQuantity,b.cInvCode,b.dRequirDate,b.dArriveDate,b.cexch_name,b.iOriCost from dbo.PU_AppVouch a left join dbo.PU_AppVouchs b on a.ID=b.ID where 1=1"; - if (!string.IsNullOrWhiteSpace(info.PRCode)) - { - sql += " and a.cCode='{0}'"; - } - if (!string.IsNullOrWhiteSpace(info.MTime.ToString())) - { - sql += " and ISNULL(b.cbCloseTime,ISNULL(a.cChangAuditTime,ISNULL(a.cAuditTime, ISNULL(a.cModifyTime, a.cmaketime))))>='{2}'"; - } - if (!string.IsNullOrWhiteSpace(info.User)) - { - sql += "and a.CMAKER='{3}'"; - } - sql = string.Format(sql, info.PRCode, ERPDB, userInfo.UserName); - dt = DBHelper.SQlReturnData(sql, cmd); - if (dtNew == null) - dtNew = dt; - else - dtNew.Merge(dt); - //List szJson = JsonConvert.DeserializeObject>(json); - //szJson = JsonConvert.DeserializeObject>(json); - - } - cmd.Transaction.Commit(); - } - catch (Exception ex) - { - cmd.Transaction.Rollback(); - log.Error(ex.Message); - throw new Exception(ex.Message); - } - finally - { - if (conn.State == ConnectionState.Open) - { - conn.Close(); - } - conn.Dispose(); - } - } + if (!string.IsNullOrWhiteSpace(info.PRCode)) + { + sql += " and a.cCode='{0}'"; + } + if (!string.IsNullOrWhiteSpace(info.MTime.ToString())) + { + sql += " and ISNULL(b.cbCloseTime,ISNULL(a.cChangAuditTime,ISNULL(a.cAuditTime, ISNULL(a.cModifyTime, a.cmaketime))))>='{2}'"; + } + if (!string.IsNullOrWhiteSpace(info.User)) + { + sql += "and a.CMAKER='{3}'"; + } + sql = string.Format(sql, info.PRCode, ERPDB, userInfo.UserName); + dt = DBHelper.SQlReturnData(sql, cmd); + if (dtNew == null) + dtNew = dt; + else + dtNew.Merge(dt); + //List szJson = JsonConvert.DeserializeObject>(json); + //szJson = JsonConvert.DeserializeObject>(json); + + } + cmd.Transaction.Commit(); + } + catch (Exception ex) + { + cmd.Transaction.Rollback(); + log.Error(ex.Message); + throw new Exception(ex.Message); + } + finally + { + if (conn.State == ConnectionState.Open) + { + conn.Close(); + } + conn.Dispose(); + } + } json = JsonConvert.SerializeObject(dtNew); return json; @@ -302,54 +302,54 @@ namespace ICSSoft.DataProject string sql = string.Empty; - List result = infos.Select(t => t.WorkPoint).Distinct().ToList(); - - - foreach (string WorkPoint in result) - { - try - { - connS = string.Format(connString, WorkPoint); - conn = new System.Data.SqlClient.SqlConnection(connS); - conn.Open(); - SqlTransaction sqlTran = conn.BeginTransaction(); - cmd = new SqlCommand(); - cmd.Transaction = sqlTran; - cmd.Connection = conn; - - foreach (AppVouch info in infos) - { - if (WorkPoint!=info.WorkPoint) - { - continue; - } - ICSUserInfo userInfo = new ICSUserInfo(); - userInfo = DBHelper.GetPersonInfo(info.User, cmd); - if (info.MTime < new DateTime(2000, 01, 01)) - throw new Exception("请输入正确的操作时间:" + info.MTime); - sql = @"UPDATE dbo.PU_AppVouch SET cVerifier ='" + userInfo.UserName + @"' , + List result = infos.Select(t => t.WorkPoint).Distinct().ToList(); + + + foreach (string WorkPoint in result) + { + try + { + connS = string.Format(connString, WorkPoint); + conn = new System.Data.SqlClient.SqlConnection(connS); + conn.Open(); + SqlTransaction sqlTran = conn.BeginTransaction(); + cmd = new SqlCommand(); + cmd.Transaction = sqlTran; + cmd.Connection = conn; + + foreach (AppVouch info in infos) + { + if (WorkPoint != info.WorkPoint) + { + continue; + } + ICSUserInfo userInfo = new ICSUserInfo(); + userInfo = DBHelper.GetPersonInfo(info.User, cmd); + if (info.MTime < new DateTime(2000, 01, 01)) + throw new Exception("请输入正确的操作时间:" + info.MTime); + sql = @"UPDATE dbo.PU_AppVouch SET cVerifier ='" + userInfo.UserName + @"' , cAuditTime=CONVERT(VARCHAR(50),GETDATE(),112),cAuditDate=GETDATE() WHERE ID='" + info.ID + "'"; - sql = string.Format(sql, ERPDB); - DBHelper.CmdExecuteNonQuery(sql, cmd, "未查询到对应数据!"); - - } - cmd.Transaction.Commit(); - } - catch (Exception ex) - { - cmd.Transaction.Rollback(); - log.Error(ex.Message); - throw new Exception(ex.Message); - } - finally - { - if (conn.State == ConnectionState.Open) - { - conn.Close(); - } - conn.Dispose(); - } - } + sql = string.Format(sql, ERPDB); + DBHelper.CmdExecuteNonQuery(sql, cmd, "未查询到对应数据!"); + + } + cmd.Transaction.Commit(); + } + catch (Exception ex) + { + cmd.Transaction.Rollback(); + log.Error(ex.Message); + throw new Exception(ex.Message); + } + finally + { + if (conn.State == ConnectionState.Open) + { + conn.Close(); + } + conn.Dispose(); + } + } return res; } @@ -372,51 +372,51 @@ namespace ICSSoft.DataProject string sql = string.Empty; - List result = infos.Select(t => t.WorkPoint).Distinct().ToList(); - - - foreach (string WorkPoint in result) - { - try - { - connS = string.Format(connString, WorkPoint); - conn = new System.Data.SqlClient.SqlConnection(connS); - conn.Open(); - SqlTransaction sqlTran = conn.BeginTransaction(); - cmd = new SqlCommand(); - cmd.Transaction = sqlTran; - cmd.Connection = conn; - - foreach (AppVouch info in infos) - { - if (WorkPoint != info.WorkPoint) - { - continue; - } - if (info.MTime < new DateTime(2000, 01, 01)) - throw new Exception("请输入正确的操作时间:" + info.MTime); - sql = @" DELETE dbo.PU_AppVouch WHERE ID={0}"; - sql = string.Format(sql, info.ID, ERPDB); - DBHelper.CmdExecuteNonQuery(sql, cmd, "未查询到对应数据!"); - - } - cmd.Transaction.Commit(); - } - catch (Exception ex) - { - cmd.Transaction.Rollback(); - log.Error(ex.Message); - throw new Exception(ex.Message); - } - finally - { - if (conn.State == ConnectionState.Open) - { - conn.Close(); - } - conn.Dispose(); - } - } + List result = infos.Select(t => t.WorkPoint).Distinct().ToList(); + + + foreach (string WorkPoint in result) + { + try + { + connS = string.Format(connString, WorkPoint); + conn = new System.Data.SqlClient.SqlConnection(connS); + conn.Open(); + SqlTransaction sqlTran = conn.BeginTransaction(); + cmd = new SqlCommand(); + cmd.Transaction = sqlTran; + cmd.Connection = conn; + + foreach (AppVouch info in infos) + { + if (WorkPoint != info.WorkPoint) + { + continue; + } + if (info.MTime < new DateTime(2000, 01, 01)) + throw new Exception("请输入正确的操作时间:" + info.MTime); + sql = @" DELETE dbo.PU_AppVouch WHERE ID={0}"; + sql = string.Format(sql, info.ID, ERPDB); + DBHelper.CmdExecuteNonQuery(sql, cmd, "未查询到对应数据!"); + + } + cmd.Transaction.Commit(); + } + catch (Exception ex) + { + cmd.Transaction.Rollback(); + log.Error(ex.Message); + throw new Exception(ex.Message); + } + finally + { + if (conn.State == ConnectionState.Open) + { + conn.Close(); + } + conn.Dispose(); + } + } return res; diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI.sln b/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI.sln index 2609f0d..f23e3ba 100644 --- a/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI.sln +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI.sln @@ -1,6 +1,8 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31911.196 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSSoft.Entity", "ICSSoft.Entity\ICSSoft.Entity.csproj", "{834E9A76-1D9E-4EBD-9321-0B362A06A367}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSSoft.DataProject", "ICSSoft.DataProject\ICSSoft.DataProject.csproj", "{9D26A712-D243-4E25-A473-61C5C2D9ED6A}" @@ -15,6 +17,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSSoft.ASKDataProject", "I EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSSoft.ASKCommon", "ICSSoft.ASKCommon\ICSSoft.ASKCommon.csproj", "{1624DFB7-0CE0-492B-928E-5A547E2CA558}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSSoft.APIApproveRCV", "ICSSoft.APIApproveRCV\ICSSoft.APIApproveRCV.csproj", "{9E8EFDBA-62EC-4479-BB51-03A520EE51CD}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSSoft.APIApproveIssue", "ICSSoft.APIApproveIssue\ICSSoft.APIApproveIssue.csproj", "{8666C3EA-95F9-4E97-A899-60ECC3FFDDAE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSSoft.APIDeleteIssue", "ICSSoft.APIDeleteIssue\ICSSoft.APIDeleteIssue.csproj", "{147FCA78-535B-4F46-9049-19842E903E78}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSSoft.APICreateLotMaster", "ICSSoft.APICreateLotMaster\ICSSoft.APICreateLotMaster.csproj", "{E043EE69-8524-4EA5-861E-44FA9A64B410}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSSoft.APICreateIssue", "ICSSoft.APICreateIssue\ICSSoft.APICreateIssue.csproj", "{9EEEC30C-0BC8-4875-B094-9B373CA330D3}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -49,6 +61,26 @@ Global {1624DFB7-0CE0-492B-928E-5A547E2CA558}.Debug|Any CPU.Build.0 = Debug|Any CPU {1624DFB7-0CE0-492B-928E-5A547E2CA558}.Release|Any CPU.ActiveCfg = Release|Any CPU {1624DFB7-0CE0-492B-928E-5A547E2CA558}.Release|Any CPU.Build.0 = Release|Any CPU + {9E8EFDBA-62EC-4479-BB51-03A520EE51CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9E8EFDBA-62EC-4479-BB51-03A520EE51CD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9E8EFDBA-62EC-4479-BB51-03A520EE51CD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9E8EFDBA-62EC-4479-BB51-03A520EE51CD}.Release|Any CPU.Build.0 = Release|Any CPU + {8666C3EA-95F9-4E97-A899-60ECC3FFDDAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8666C3EA-95F9-4E97-A899-60ECC3FFDDAE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8666C3EA-95F9-4E97-A899-60ECC3FFDDAE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8666C3EA-95F9-4E97-A899-60ECC3FFDDAE}.Release|Any CPU.Build.0 = Release|Any CPU + {147FCA78-535B-4F46-9049-19842E903E78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {147FCA78-535B-4F46-9049-19842E903E78}.Debug|Any CPU.Build.0 = Debug|Any CPU + {147FCA78-535B-4F46-9049-19842E903E78}.Release|Any CPU.ActiveCfg = Release|Any CPU + {147FCA78-535B-4F46-9049-19842E903E78}.Release|Any CPU.Build.0 = Release|Any CPU + {E043EE69-8524-4EA5-861E-44FA9A64B410}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E043EE69-8524-4EA5-861E-44FA9A64B410}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E043EE69-8524-4EA5-861E-44FA9A64B410}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E043EE69-8524-4EA5-861E-44FA9A64B410}.Release|Any CPU.Build.0 = Release|Any CPU + {9EEEC30C-0BC8-4875-B094-9B373CA330D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9EEEC30C-0BC8-4875-B094-9B373CA330D3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9EEEC30C-0BC8-4875-B094-9B373CA330D3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9EEEC30C-0BC8-4875-B094-9B373CA330D3}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Controllers/ValuesController.cs b/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Controllers/ValuesController.cs index 538b5f9..530fa14 100644 --- a/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Controllers/ValuesController.cs +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Controllers/ValuesController.cs @@ -12,6 +12,9 @@ using System.Text; using System.Web.Http; using System.Web.Http.Description; using ICSSoft.Common; +using ICSSoft.APIApproveRCV; +using ICSSoft.APIApproveIssue; +using ICSSoft.APICreateIssue; namespace ICSSoft.WebAPI.Controllers { @@ -27,7 +30,7 @@ namespace ICSSoft.WebAPI.Controllers [Route("api/PurchaseRequisition/Get")] [HttpPost] - public HttpResponseMessage GetPurchaseRequisition([FromBody]object JsonData) + public HttpResponseMessage GetPurchaseRequisition([FromBody] object JsonData) { log.Info("接口:api/PurchaseRequisition/Get "); log.Info("获取请购单传入值:" + JsonData); @@ -99,7 +102,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseRequisition/Create")] [HttpPost] - public HttpResponseMessage CreatePurchaseRequisition([FromBody]object JsonData) + public HttpResponseMessage CreatePurchaseRequisition([FromBody] object JsonData) { log.Info("接口:api/PurchaseRequisition/Create "); log.Info("创建请购单传入值:" + JsonData); @@ -174,7 +177,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseRequisition/Approve")] [HttpPost] - public HttpResponseMessage ApprovePurchaseRequisition([FromBody]object JsonData) + public HttpResponseMessage ApprovePurchaseRequisition([FromBody] object JsonData) { log.Info("接口:api/PurchaseRequisition/Approve"); log.Info("审核请购单传入值:" + JsonData); @@ -246,7 +249,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseRequisition/Delete")] [HttpPost] - public HttpResponseMessage DeletePurchaseRequisition([FromBody]object JsonData) + public HttpResponseMessage DeletePurchaseRequisition([FromBody] object JsonData) { log.Info("接口:api/PurchaseRequisition/Delete"); log.Info("删除到货单传入值:" + JsonData); @@ -321,7 +324,7 @@ namespace ICSSoft.WebAPI.Controllers [Route("api/PurchaseOrder/Get")] [HttpPost] - public HttpResponseMessage GetPurchaseOrder([FromBody]object JsonData) + public HttpResponseMessage GetPurchaseOrder([FromBody] object JsonData) { log.Info("接口:api/PurchaseOrder/Get"); log.Info("获取采购订单传入值:" + JsonData); @@ -393,7 +396,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseOrder/Create")] [HttpPost] - public HttpResponseMessage CreatePurchaseOrder([FromBody]object JsonData) + public HttpResponseMessage CreatePurchaseOrder([FromBody] object JsonData) { log.Info("接口:api/PurchaseOrder/Create"); log.Info("创建采购订单传入值:" + JsonData); @@ -468,7 +471,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseOrder/Approve")] [HttpPost] - public HttpResponseMessage ApprovePurchaseOrder([FromBody]object JsonData) + public HttpResponseMessage ApprovePurchaseOrder([FromBody] object JsonData) { log.Info("接口:api/PurchaseOrder/Approve"); log.Info("审核采购订单传入值:" + JsonData); @@ -540,7 +543,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseOrder/Delete")] [HttpPost] - public HttpResponseMessage DeletePurchaseOrder([FromBody]object JsonData) + public HttpResponseMessage DeletePurchaseOrder([FromBody] object JsonData) { log.Info("接口:api/PurchaseOrder/Delete"); log.Info("删除采购订单传入值:" + JsonData); @@ -615,7 +618,7 @@ namespace ICSSoft.WebAPI.Controllers [Route("api/CreatePOArrive/Get")] [HttpPost] - public HttpResponseMessage Get([FromBody]object JsonData) + public HttpResponseMessage Get([FromBody] object JsonData) { log.Info("接口:api/CreatePOArrive/Get"); log.Info("获取到货单传入值:" + JsonData); @@ -687,7 +690,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/CreatePOArrive/Create")] [HttpPost] - public HttpResponseMessage Create([FromBody]object JsonData) + public HttpResponseMessage Create([FromBody] object JsonData) { log.Info("接口:api/CreatePOArrive/Create"); log.Info("创建到货单传入值:" + JsonData); @@ -762,7 +765,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/CreatePOArrive/Approve")] [HttpPost] - public HttpResponseMessage Approve([FromBody]object JsonData) + public HttpResponseMessage Approve([FromBody] object JsonData) { log.Info("接口:api/CreatePOArrive/Approve"); log.Info("审核到货单传入值:" + JsonData); @@ -834,7 +837,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/CreatePOArrive/Delete")] [HttpPost] - public HttpResponseMessage Delete([FromBody]object JsonData) + public HttpResponseMessage Delete([FromBody] object JsonData) { log.Info("接口:api/CreatePOArrive/Delete"); log.Info("删除到货单传入值:" + JsonData); @@ -908,7 +911,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/CreatePuArrivalVouch/Get")] [HttpPost] - public HttpResponseMessage GetPuArrivalVouch([FromBody]object JsonData) + public HttpResponseMessage GetPuArrivalVouch([FromBody] object JsonData) { log.Info("接口:api/CreatePuArrivalVouch/Get"); log.Info("获取拒收单传入值:" + JsonData); @@ -980,7 +983,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/CreatePuArrivalVouch/Create")] [HttpPost] - public HttpResponseMessage CreatePuArrivalVouch([FromBody]object JsonData) + public HttpResponseMessage CreatePuArrivalVouch([FromBody] object JsonData) { log.Info("接口:api/CreatePuArrivalVouch/Create"); log.Info("创建拒收单传入值:" + JsonData); @@ -1054,7 +1057,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/CreateWPuArrivalVouch/CreateNew")] [HttpPost] - public HttpResponseMessage CreatePuArrivalVouchNEW([FromBody]object JsonData) + public HttpResponseMessage CreatePuArrivalVouchNEW([FromBody] object JsonData) { log.Info("接口:api/CreateWPuArrivalVouch/CreateNew"); log.Info("创建委外拒收单传入值:" + JsonData); @@ -1128,7 +1131,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/CreatePuArrivalVouch/Approve")] [HttpPost] - public HttpResponseMessage ApprovePuArrivalVouch([FromBody]object JsonData) + public HttpResponseMessage ApprovePuArrivalVouch([FromBody] object JsonData) { log.Info("接口:api/CreatePuArrivalVouch/Approve"); log.Info("审核拒收单传入值:" + JsonData); @@ -1200,7 +1203,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/CreatePuArrivalVouch/Delete")] [HttpPost] - public HttpResponseMessage DeletePuArrivalVouch([FromBody]object JsonData) + public HttpResponseMessage DeletePuArrivalVouch([FromBody] object JsonData) { log.Info("接口:api/CreatePuArrivalVouch/Delete"); log.Info("删除拒收单传入值:" + JsonData); @@ -1274,7 +1277,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseReceiveDoc/Get")] [HttpPost] - public HttpResponseMessage GetRdRecord01([FromBody]object JsonData) + public HttpResponseMessage GetRdRecord01([FromBody] object JsonData) { log.Info("接口:api/PurchaseReceiveDoc/Get"); log.Info("获取采购入库单传入值:" + JsonData); @@ -1339,80 +1342,80 @@ namespace ICSSoft.WebAPI.Controllers log.Debug("获取采购入库单返回值:" + str); return result; } - /// - /// 创建采购入库单(源头单据采购订单) - /// - /// - /// - [Route("api/PurchaseReceiveDoc/Create")] - [HttpPost] - public HttpResponseMessage CreateRdRecord01([FromBody]object JsonData) - { - log.Info("接口:api/PurchaseReceiveDoc/Create"); - log.Info("创建采购入库单(源头单据采购订单)传入值:" + JsonData); - HttpResponseMessage result = new HttpResponseMessage(); - Result res = new Result(); - string str = string.Empty; - try - { - if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") - { - try - { - List infos = new List(); - try - { - infos = JsonConvert.DeserializeObject>(JsonData.ToString()); - } - catch (Exception ex) - { - log.Error("转换失败:" + ex.ToString()); + ///// + ///// 创建采购入库单(源头单据采购订单) + ///// + ///// + ///// + //[Route("api/PurchaseReceiveDoc/Create")] + //[HttpPost] + //public HttpResponseMessage CreateRdRecord01([FromBody] object JsonData) + //{ + // log.Info("接口:api/PurchaseReceiveDoc/Create"); + // log.Info("创建采购入库单(源头单据采购订单)传入值:" + JsonData); + // HttpResponseMessage result = new HttpResponseMessage(); + // Result res = new Result(); + // string str = string.Empty; + // try + // { + // if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") + // { + // try + // { + // List infos = new List(); + // try + // { + // infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + // } + // catch (Exception ex) + // { + // log.Error("转换失败:" + ex.ToString()); - res.Success = false; - res.Message = "JSON格式不正确!"; - throw new Exception(res.Message); - } - PurchaseReceiveDoc action = new PurchaseReceiveDoc(); - string resultStr = action.CreateRdRecord01sByPO(infos); - if (!string.IsNullOrWhiteSpace(resultStr)) - { - res.Success = true; - res.Message = "接口调用成功!"; - res.Data = resultStr; - } - else - { - res.Success = false; - res.Data = resultStr; - } - } - catch (Exception ex) - { - log.Error("调用后台失败:" + ex.ToString()); - res.Success = false; - res.Message = ex.Message; - } - } - else - { - res.Success = false; - res.Message = "请传入参数"; - } - } - catch (Exception ex) - { - log.Error("参数检验失败:" + ex.ToString()); - res.Success = false; - res.Message = ex.Message; - } - finally - { - str = JsonConvert.SerializeObject(res); - result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); - } - log.Debug("创建采购入库单(源头单据采购订单)返回值:" + str); - return result; - } + // res.Success = false; + // res.Message = "JSON格式不正确!"; + // throw new Exception(res.Message); + // } + // PurchaseReceiveDoc action = new PurchaseReceiveDoc(); + // string resultStr = action.CreateRdRecord01sByPO(infos); + // if (!string.IsNullOrWhiteSpace(resultStr)) + // { + // res.Success = true; + // res.Message = "接口调用成功!"; + // res.Data = resultStr; + // } + // else + // { + // res.Success = false; + // res.Data = resultStr; + // } + // } + // catch (Exception ex) + // { + // log.Error("调用后台失败:" + ex.ToString()); + // res.Success = false; + // res.Message = ex.Message; + // } + // } + // else + // { + // res.Success = false; + // res.Message = "请传入参数"; + // } + // } + // catch (Exception ex) + // { + // log.Error("参数检验失败:" + ex.ToString()); + // res.Success = false; + // res.Message = ex.Message; + // } + // finally + // { + // str = JsonConvert.SerializeObject(res); + // result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); + // } + // log.Debug("创建采购入库单(源头单据采购订单)返回值:" + str); + // return result; + //} /// /// 创建采购入库单(源头单据到货单) /// @@ -1420,7 +1423,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseReceiveDocPOArrive/Create")] [HttpPost] - public HttpResponseMessage CreateRdRecord01ByPOArrive([FromBody]object JsonData) + public HttpResponseMessage CreateRdRecord01ByPOArrive([FromBody] object JsonData) { log.Info("接口:api/PurchaseReceiveDocPOArrive/Create"); log.Info("创建采购入库单(源头单据到货单)传入值:" + JsonData); @@ -1494,7 +1497,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseReceiveDoc/Approve")] [HttpPost] - public HttpResponseMessage ApproveRdRecord01([FromBody]object JsonData) + public HttpResponseMessage ApproveRdRecord01([FromBody] object JsonData) { log.Info("接口:api/PurchaseReceiveDoc/Approve"); log.Info("审核采购入库单传入值:" + JsonData); @@ -1566,7 +1569,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseReceiveDoc/Delete")] [HttpPost] - public HttpResponseMessage DeleteRdRecord01([FromBody]object JsonData) + public HttpResponseMessage DeleteRdRecord01([FromBody] object JsonData) { log.Info("接口:api/PurchaseReceiveDoc/Delete"); log.Info("删除采购入库单传入值:" + JsonData); @@ -1641,7 +1644,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseReturnBack/Get")] [HttpPost] - public HttpResponseMessage GETPurchaseReturnBack([FromBody]object JsonData) + public HttpResponseMessage GETPurchaseReturnBack([FromBody] object JsonData) { log.Info("接口:api/PurchaseReturnBack/Get"); log.Info("创建物料检验单传入值:" + JsonData); @@ -1715,7 +1718,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseReceiveDoctNegative/Get")] [HttpPost] - public HttpResponseMessage GetPurchaseReceiveDoctNegative([FromBody]object JsonData) + public HttpResponseMessage GetPurchaseReceiveDoctNegative([FromBody] object JsonData) { log.Info("接口:api/PurchaseReceiveDoctNegative/Get"); log.Info("获取采购红字入库单传入值:" + JsonData); @@ -1780,80 +1783,80 @@ namespace ICSSoft.WebAPI.Controllers log.Debug("获取采购红字入库单返回值:" + str); return result; } - /// - /// 创建采购红字入库单 - /// - /// - /// - [Route("api/PurchaseReceiveDoctNegative/Create")] - [HttpPost] - public HttpResponseMessage CreatePurchaseReceiveDoctNegative([FromBody]object JsonData) - { - log.Info("接口:api/PurchaseReceiveDoctNegative/Create"); - log.Info("创建采购红字入库单传入值:" + JsonData); - HttpResponseMessage result = new HttpResponseMessage(); - Result res = new Result(); - string str = string.Empty; - try - { - if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") - { - try - { - List infos = new List(); - try - { - infos = JsonConvert.DeserializeObject>(JsonData.ToString()); - } - catch (Exception ex) - { - log.Error("转换失败:" + ex.ToString()); + ///// + ///// 创建采购红字入库单 + ///// + ///// + ///// + //[Route("api/PurchaseReceiveDoctNegative/Create")] + //[HttpPost] + //public HttpResponseMessage CreatePurchaseReceiveDoctNegative([FromBody] object JsonData) + //{ + // log.Info("接口:api/PurchaseReceiveDoctNegative/Create"); + // log.Info("创建采购红字入库单传入值:" + JsonData); + // HttpResponseMessage result = new HttpResponseMessage(); + // Result res = new Result(); + // string str = string.Empty; + // try + // { + // if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") + // { + // try + // { + // List infos = new List(); + // try + // { + // infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + // } + // catch (Exception ex) + // { + // log.Error("转换失败:" + ex.ToString()); - res.Success = false; - res.Message = "JSON格式不正确!"; - throw new Exception(res.Message); - } - PurchaseReceiveDoctNegative action = new PurchaseReceiveDoctNegative(); - string resultStr = action.CreatePurchaseReceiveDoctNegative(infos); - if (!string.IsNullOrWhiteSpace(resultStr)) - { - res.Success = true; - res.Message = "接口调用成功!"; - res.Data = resultStr; - } - else - { - res.Success = false; - res.Data = resultStr; - } - } - catch (Exception ex) - { - log.Error("调用后台失败:" + ex.ToString()); - res.Success = false; - res.Message = ex.Message; - } - } - else - { - res.Success = false; - res.Message = "请传入参数"; - } - } - catch (Exception ex) - { - log.Error("参数检验失败:" + ex.ToString()); - res.Success = false; - res.Message = ex.Message; - } - finally - { - str = JsonConvert.SerializeObject(res); - result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); - } - log.Debug("创建采购红字入库单返回值:" + str); - return result; - } + // res.Success = false; + // res.Message = "JSON格式不正确!"; + // throw new Exception(res.Message); + // } + // PurchaseReceiveDoctNegative action = new PurchaseReceiveDoctNegative(); + // string resultStr = action.CreatePurchaseReceiveDoctNegative(infos); + // if (!string.IsNullOrWhiteSpace(resultStr)) + // { + // res.Success = true; + // res.Message = "接口调用成功!"; + // res.Data = resultStr; + // } + // else + // { + // res.Success = false; + // res.Data = resultStr; + // } + // } + // catch (Exception ex) + // { + // log.Error("调用后台失败:" + ex.ToString()); + // res.Success = false; + // res.Message = ex.Message; + // } + // } + // else + // { + // res.Success = false; + // res.Message = "请传入参数"; + // } + // } + // catch (Exception ex) + // { + // log.Error("参数检验失败:" + ex.ToString()); + // res.Success = false; + // res.Message = ex.Message; + // } + // finally + // { + // str = JsonConvert.SerializeObject(res); + // result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); + // } + // log.Debug("创建采购红字入库单返回值:" + str); + // return result; + //} /// /// 审核采购红字入库单 /// @@ -1861,7 +1864,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseReceiveDoctNegative/Approve")] [HttpPost] - public HttpResponseMessage ApprovePurchaseReceiveDoctNegative([FromBody]object JsonData) + public HttpResponseMessage ApprovePurchaseReceiveDoctNegative([FromBody] object JsonData) { log.Info("接口:api/PurchaseReceiveDoctNegative/Approve"); log.Info("审核采购红字入库单传入值:" + JsonData); @@ -1887,7 +1890,7 @@ namespace ICSSoft.WebAPI.Controllers } PurchaseReceiveDoctNegative action = new PurchaseReceiveDoctNegative(); bool resultStr = action.Approve(infos); - if (resultStr==true) + if (resultStr == true) { res.Success = true; res.Message = "接口调用成功!"; @@ -1932,7 +1935,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseReceiveDoctNegative/Delete")] [HttpPost] - public HttpResponseMessage DeletePurchaseReceiveDoctNegative([FromBody]object JsonData) + public HttpResponseMessage DeletePurchaseReceiveDoctNegative([FromBody] object JsonData) { log.Info("接口:api/PurchaseReceiveDoctNegative/Delete"); log.Info("删除采购红字入库单传入值:" + JsonData); @@ -2007,7 +2010,7 @@ namespace ICSSoft.WebAPI.Controllers [Route("api/ManufactureOrder/Get")] [HttpPost] - public HttpResponseMessage GetManufactureOrder([FromBody]object JsonData) + public HttpResponseMessage GetManufactureOrder([FromBody] object JsonData) { log.Info("接口:api/ManufactureOrder/Get"); log.Info("获取采购订单传入值:" + JsonData); @@ -2079,7 +2082,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/ManufactureOrder/Create")] [HttpPost] - public HttpResponseMessage CreateManufactureOrder([FromBody]object JsonData) + public HttpResponseMessage CreateManufactureOrder([FromBody] object JsonData) { log.Info("接口:api/ManufactureOrder/Create"); log.Info("创建生产订单传入值:" + JsonData); @@ -2155,7 +2158,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/ManufactureOrder/Delete")] [HttpPost] - public HttpResponseMessage DeleteManufactureOrder([FromBody]object JsonData) + public HttpResponseMessage DeleteManufactureOrder([FromBody] object JsonData) { log.Info("接口:api/ManufactureOrder/Delete"); log.Info("删除生产订单传入值:" + JsonData); @@ -2232,7 +2235,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/MOIssueApplyDoc/Get")] [HttpPost] - public HttpResponseMessage GetMOIssueApplyDoc([FromBody]object JsonData) + public HttpResponseMessage GetMOIssueApplyDoc([FromBody] object JsonData) { log.Info("接口:api/MOIssueApplyDoc/Get"); log.Info("创建入库单传入值:" + JsonData); @@ -2306,7 +2309,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/MOIssueDoc/Get")] [HttpPost] - public HttpResponseMessage GetMOIssueDoc([FromBody]object JsonData) + public HttpResponseMessage GetMOIssueDoc([FromBody] object JsonData) { log.Info("接口:api/MOIssueDoc/Get"); log.Info("获取材料出库传入值:" + JsonData); @@ -2378,7 +2381,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/MOIssueDoc/Create")] [HttpPost] - public HttpResponseMessage CreateMOIssueDoc([FromBody]object JsonData) + public HttpResponseMessage CreateMOIssueDoc([FromBody] object JsonData) { log.Info("接口:api/MOIssueDoc/Create"); log.Info("创建材料出库(生产订单)传入值:" + JsonData); @@ -2450,7 +2453,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/MOIssueDocByPU/Create")] [HttpPost] - public HttpResponseMessage CreateMOIssueDocBYPU([FromBody]object JsonData) + public HttpResponseMessage CreateMOIssueDocBYPU([FromBody] object JsonData) { log.Info("接口:api/MOIssueDocByPU/Create"); log.Info("创建材料出库(领料申请)传入值:" + JsonData); @@ -2520,12 +2523,83 @@ namespace ICSSoft.WebAPI.Controllers /// /// /// - [Route("api/MOIssueDoc/Approve")] + //[Route("api/MOIssueDoc/Approve")] + //[HttpPost] + //public HttpResponseMessage ApproveMOIssueDoc([FromBody] object JsonData) + //{ + // log.Info("接口:api/MOIssueDoc/Approve"); + // log.Info("审核材料出库(生产订单)传入值:" + JsonData); + // HttpResponseMessage result = new HttpResponseMessage(); + // Result res = new Result(); + // string str = string.Empty; + // try + // { + // if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") + // { + // try + // { + // List infos = new List(); + // try + // { + // infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + // } + // catch (Exception ex) + // { + // log.Error("转换失败:" + ex.ToString()); + // res.Success = false; + // res.Message = "JSON格式不正确!"; + // } + // MOIssueDoc action = new MOIssueDoc(); + // string resultStr = action.Approve(infos); + // if (string.IsNullOrWhiteSpace(resultStr)) + // { + // res.Success = true; + // res.Message = "接口调用成功!"; + // } + // else + // { + // res.Success = false; + // res.Message = resultStr; + // } + // } + // catch (Exception ex) + // { + // log.Error("调用后台失败:" + ex.ToString()); + // res.Success = false; + // res.Message = ex.Message; + // } + // } + // else + // { + // res.Success = false; + // res.Message = "请传入参数"; + // } + // } + // catch (Exception ex) + // { + // log.Error("参数检验失败:" + ex.ToString()); + // res.Success = false; + // res.Message = ex.Message; + // } + // finally + // { + // str = JsonConvert.SerializeObject(res); + // result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); + // } + // log.Debug("审核材料出库(生产订单)返回值:" + str); + // return result; + //} + /// + /// 删除材料出库(备料表) + /// + /// + /// + [Route("api/MOIssueDoc/Delete")] [HttpPost] - public HttpResponseMessage ApproveMOIssueDoc([FromBody]object JsonData) + public HttpResponseMessage DeleteMOIssueDoc([FromBody] object JsonData) { - log.Info("接口:api/MOIssueDoc/Approve"); - log.Info("审核材料出库(生产订单)传入值:" + JsonData); + log.Info("接口:api/MOIssueDoc/Delete"); + log.Info("删除材料出库(备料表)传入值:" + JsonData); HttpResponseMessage result = new HttpResponseMessage(); Result res = new Result(); string str = string.Empty; @@ -2547,11 +2621,12 @@ namespace ICSSoft.WebAPI.Controllers res.Message = "JSON格式不正确!"; } MOIssueDoc action = new MOIssueDoc(); - string resultStr = action.Approve(infos); + string resultStr = action.Delete(infos); if (string.IsNullOrWhiteSpace(resultStr)) { res.Success = true; res.Message = "接口调用成功!"; + res.Data = resultStr; } else { @@ -2583,20 +2658,22 @@ namespace ICSSoft.WebAPI.Controllers str = JsonConvert.SerializeObject(res); result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); } - log.Debug("审核材料出库(生产订单)返回值:" + str); + log.Debug("删除材料出库(备料表)返回值:" + str); return result; } + #endregion + #region 生产退料单(红字材料出库) /// - /// 删除材料出库(备料表) + /// 获取生产退料单 /// /// /// - [Route("api/MOIssueDoc/Delete")] + [Route("api/MOIssueDocNegative/Get")] [HttpPost] - public HttpResponseMessage DeleteMOIssueDoc([FromBody]object JsonData) + public HttpResponseMessage GetMOIssueDocNegatives([FromBody] object JsonData) { - log.Info("接口:api/MOIssueDoc/Delete"); - log.Info("删除材料出库(备料表)传入值:" + JsonData); + log.Info("接口:api/MOIssueDocNegative/Get"); + log.Info("获取生产退料单传入值:" + JsonData); HttpResponseMessage result = new HttpResponseMessage(); Result res = new Result(); string str = string.Empty; @@ -2606,10 +2683,10 @@ namespace ICSSoft.WebAPI.Controllers { try { - List infos = new List(); + List infos = new List(); try { - infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + infos = JsonConvert.DeserializeObject>(JsonData.ToString()); } catch (Exception ex) { @@ -2617,9 +2694,9 @@ namespace ICSSoft.WebAPI.Controllers res.Success = false; res.Message = "JSON格式不正确!"; } - MOIssueDoc action = new MOIssueDoc(); - string resultStr = action.Delete(infos); - if (string.IsNullOrWhiteSpace(resultStr)) + MOIssueDocNegatives action = new MOIssueDocNegatives(); + string resultStr = action.Get(infos); + if (!string.IsNullOrWhiteSpace(resultStr)) { res.Success = true; res.Message = "接口调用成功!"; @@ -2655,22 +2732,93 @@ namespace ICSSoft.WebAPI.Controllers str = JsonConvert.SerializeObject(res); result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); } - log.Debug("删除材料出库(备料表)返回值:" + str); + log.Debug("获取生产退料单返回值:" + str); return result; } - #endregion - #region 生产退料单(红字材料出库) + ///// + ///// 创建生产退料单 + ///// + ///// + ///// + //[Route("api/MOIssueDocNegative/Create")] + //[HttpPost] + //public HttpResponseMessage CreateMOIssueDocNegatives([FromBody] object JsonData) + //{ + // log.Info("接口:api/MOIssueDocNegative/Create"); + // log.Info("创建生产退料单传入值:" + JsonData); + // HttpResponseMessage result = new HttpResponseMessage(); + // Result res = new Result(); + // string str = string.Empty; + // try + // { + // if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") + // { + // try + // { + // List infos = new List(); + // try + // { + // infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + // } + // catch (Exception ex) + // { + // log.Error("转换失败:" + ex.ToString()); + // res.Success = false; + // res.Message = "JSON格式不正确!"; + // } + // MOIssueDocNegatives action = new MOIssueDocNegatives(); + // string resultStr = action.CreateRd11(infos); + // if (!string.IsNullOrWhiteSpace(resultStr)) + // { + // res.Success = true; + // res.Message = "接口调用成功!"; + // res.Data = resultStr; + // } + // else + // { + // res.Success = false; + // res.Message = resultStr; + // } + // } + // catch (Exception ex) + // { + // log.Error("调用后台失败:" + ex.ToString()); + // res.Success = false; + // res.Message = ex.Message; + // } + // } + // else + // { + // res.Success = false; + // res.Message = "请传入参数"; + // } + // } + // catch (Exception ex) + // { + // log.Error("参数检验失败:" + ex.ToString()); + // res.Success = false; + // res.Message = ex.Message; + // } + // finally + // { + // str = JsonConvert.SerializeObject(res); + // result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); + // } + // log.Debug("创建生产退料单返回值:" + str); + // return result; + //} + /// - /// 获取生产退料单 + /// 审核生产退料单 /// /// /// - [Route("api/MOIssueDocNegative/Get")] + [Route("api/MOIssueDocNegative/Approve")] [HttpPost] - public HttpResponseMessage GetMOIssueDocNegatives([FromBody]object JsonData) + public HttpResponseMessage ApproveMOIssueDocNegatives([FromBody] object JsonData) { - log.Info("接口:api/MOIssueDocNegative/Get"); - log.Info("获取生产退料单传入值:" + JsonData); + log.Info("接口:api/MOIssueDocNegative/Approve"); + log.Info("审核生产退料单传入值:" + JsonData); HttpResponseMessage result = new HttpResponseMessage(); Result res = new Result(); string str = string.Empty; @@ -2692,12 +2840,11 @@ namespace ICSSoft.WebAPI.Controllers res.Message = "JSON格式不正确!"; } MOIssueDocNegatives action = new MOIssueDocNegatives(); - string resultStr = action.Get(infos); - if (!string.IsNullOrWhiteSpace(resultStr)) + string resultStr = action.Approve(infos); + if (string.IsNullOrWhiteSpace(resultStr)) { res.Success = true; res.Message = "接口调用成功!"; - res.Data = resultStr; } else { @@ -2729,20 +2876,20 @@ namespace ICSSoft.WebAPI.Controllers str = JsonConvert.SerializeObject(res); result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); } - log.Debug("获取生产退料单返回值:" + str); + log.Debug("审核生产退料单返回值:" + str); return result; } /// - /// 创建生产退料单 + /// 删除生产退料单 /// /// /// - [Route("api/MOIssueDocNegative/Create")] + [Route("api/MOIssueDocNegative/Delete")] [HttpPost] - public HttpResponseMessage CreateMOIssueDocNegatives([FromBody]object JsonData) + public HttpResponseMessage DeleteMOIssueDocNegatives([FromBody] object JsonData) { - log.Info("接口:api/MOIssueDocNegative/Create"); - log.Info("创建生产退料单传入值:" + JsonData); + log.Info("接口:api/MOIssueDocNegative/Delete"); + log.Info("删除生产退料单传入值:" + JsonData); HttpResponseMessage result = new HttpResponseMessage(); Result res = new Result(); string str = string.Empty; @@ -2764,12 +2911,11 @@ namespace ICSSoft.WebAPI.Controllers res.Message = "JSON格式不正确!"; } MOIssueDocNegatives action = new MOIssueDocNegatives(); - string resultStr = action.CreateRd11(infos); - if (!string.IsNullOrWhiteSpace(resultStr)) + string resultStr = action.Delete(infos); + if (string.IsNullOrWhiteSpace(resultStr)) { res.Success = true; res.Message = "接口调用成功!"; - res.Data = resultStr; } else { @@ -2801,21 +2947,22 @@ namespace ICSSoft.WebAPI.Controllers str = JsonConvert.SerializeObject(res); result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); } - log.Debug("创建生产退料单返回值:" + str); + log.Debug("删除生产退料单返回值:" + str); return result; } - + #endregion + #region 委外订单 /// - /// 审核生产退料单 + /// 获取委外订单 /// /// /// - [Route("api/MOIssueDocNegative/Approve")] + [Route("api/OutsourcingOrder/Get")] [HttpPost] - public HttpResponseMessage ApproveMOIssueDocNegatives([FromBody]object JsonData) + public HttpResponseMessage GetOutsourcingOrder([FromBody] object JsonData) { - log.Info("接口:api/MOIssueDocNegative/Approve"); - log.Info("审核生产退料单传入值:" + JsonData); + log.Info("接口:api/OutsourcingOrder/Get"); + log.Info("获取委外订单传入值:" + JsonData); HttpResponseMessage result = new HttpResponseMessage(); Result res = new Result(); string str = string.Empty; @@ -2825,10 +2972,10 @@ namespace ICSSoft.WebAPI.Controllers { try { - List infos = new List(); + List infos = new List(); try { - infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + infos = JsonConvert.DeserializeObject>(JsonData.ToString()); } catch (Exception ex) { @@ -2836,12 +2983,13 @@ namespace ICSSoft.WebAPI.Controllers res.Success = false; res.Message = "JSON格式不正确!"; } - MOIssueDocNegatives action = new MOIssueDocNegatives(); - string resultStr = action.Approve(infos); - if (string.IsNullOrWhiteSpace(resultStr)) + OutsourcingOrder action = new OutsourcingOrder(); + string resultStr = action.Get(infos); + if (!string.IsNullOrWhiteSpace(resultStr)) { res.Success = true; res.Message = "接口调用成功!"; + res.Data = resultStr; } else { @@ -2873,20 +3021,22 @@ namespace ICSSoft.WebAPI.Controllers str = JsonConvert.SerializeObject(res); result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); } - log.Debug("审核生产退料单返回值:" + str); + log.Debug("获取委外订单返回值:" + str); return result; } + #endregion + #region 委外订单备料表 /// - /// 删除生产退料单 + /// 获取委外订单备料表 /// /// /// - [Route("api/MOIssueDocNegative/Delete")] + [Route("api/OutsourcingOrderPick/Get")] [HttpPost] - public HttpResponseMessage DeleteMOIssueDocNegatives([FromBody]object JsonData) + public HttpResponseMessage GetOutsourcingOrderPick([FromBody] object JsonData) { - log.Info("接口:api/MOIssueDocNegative/Delete"); - log.Info("删除生产退料单传入值:" + JsonData); + log.Info("接口:api/OutsourcingOrderPick/Get"); + log.Info("获取委外订单备料表传入值:" + JsonData); HttpResponseMessage result = new HttpResponseMessage(); Result res = new Result(); string str = string.Empty; @@ -2896,10 +3046,10 @@ namespace ICSSoft.WebAPI.Controllers { try { - List infos = new List(); + List infos = new List(); try { - infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + infos = JsonConvert.DeserializeObject>(JsonData.ToString()); } catch (Exception ex) { @@ -2907,12 +3057,13 @@ namespace ICSSoft.WebAPI.Controllers res.Success = false; res.Message = "JSON格式不正确!"; } - MOIssueDocNegatives action = new MOIssueDocNegatives(); - string resultStr = action.Delete(infos); - if (string.IsNullOrWhiteSpace(resultStr)) + OutsourcingOrderPick action = new OutsourcingOrderPick(); + string resultStr = action.Get(infos); + if (!string.IsNullOrWhiteSpace(resultStr)) { res.Success = true; res.Message = "接口调用成功!"; + res.Data = resultStr; } else { @@ -2944,155 +3095,7 @@ namespace ICSSoft.WebAPI.Controllers str = JsonConvert.SerializeObject(res); result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); } - log.Debug("删除生产退料单返回值:" + str); - return result; - } - #endregion - #region 委外订单 - /// - /// 获取委外订单 - /// - /// - /// - [Route("api/OutsourcingOrder/Get")] - [HttpPost] - public HttpResponseMessage GetOutsourcingOrder([FromBody]object JsonData) - { - log.Info("接口:api/OutsourcingOrder/Get"); - log.Info("获取委外订单传入值:" + JsonData); - HttpResponseMessage result = new HttpResponseMessage(); - Result res = new Result(); - string str = string.Empty; - try - { - if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") - { - try - { - List infos = new List(); - try - { - infos = JsonConvert.DeserializeObject>(JsonData.ToString()); - } - catch (Exception ex) - { - log.Error("转换失败:" + ex.ToString()); - res.Success = false; - res.Message = "JSON格式不正确!"; - } - OutsourcingOrder action = new OutsourcingOrder(); - string resultStr = action.Get(infos); - if (!string.IsNullOrWhiteSpace(resultStr)) - { - res.Success = true; - res.Message = "接口调用成功!"; - res.Data = resultStr; - } - else - { - res.Success = false; - res.Message = resultStr; - } - } - catch (Exception ex) - { - log.Error("调用后台失败:" + ex.ToString()); - res.Success = false; - res.Message = ex.Message; - } - } - else - { - res.Success = false; - res.Message = "请传入参数"; - } - } - catch (Exception ex) - { - log.Error("参数检验失败:" + ex.ToString()); - res.Success = false; - res.Message = ex.Message; - } - finally - { - str = JsonConvert.SerializeObject(res); - result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); - } - log.Debug("获取委外订单返回值:" + str); - return result; - } - #endregion - #region 委外订单备料表 - /// - /// 获取委外订单备料表 - /// - /// - /// - [Route("api/OutsourcingOrderPick/Get")] - [HttpPost] - public HttpResponseMessage GetOutsourcingOrderPick([FromBody]object JsonData) - { - log.Info("接口:api/OutsourcingOrderPick/Get"); - log.Info("获取委外订单备料表传入值:" + JsonData); - HttpResponseMessage result = new HttpResponseMessage(); - Result res = new Result(); - string str = string.Empty; - try - { - if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") - { - try - { - List infos = new List(); - try - { - infos = JsonConvert.DeserializeObject>(JsonData.ToString()); - } - catch (Exception ex) - { - log.Error("转换失败:" + ex.ToString()); - res.Success = false; - res.Message = "JSON格式不正确!"; - } - OutsourcingOrderPick action = new OutsourcingOrderPick(); - string resultStr = action.Get(infos); - if (!string.IsNullOrWhiteSpace(resultStr)) - { - res.Success = true; - res.Message = "接口调用成功!"; - res.Data = resultStr; - } - else - { - res.Success = false; - res.Message = resultStr; - } - } - catch (Exception ex) - { - log.Error("调用后台失败:" + ex.ToString()); - res.Success = false; - res.Message = ex.Message; - } - } - else - { - res.Success = false; - res.Message = "请传入参数"; - } - } - catch (Exception ex) - { - log.Error("参数检验失败:" + ex.ToString()); - res.Success = false; - res.Message = ex.Message; - } - finally - { - str = JsonConvert.SerializeObject(res); - result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); - } - log.Debug("获取委外订单备料表返回值:" + str); + log.Debug("获取委外订单备料表返回值:" + str); return result; } #endregion @@ -3104,7 +3107,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingIssueDoc/Get")] [HttpPost] - public HttpResponseMessage GetOutsourcingIssueDoc([FromBody]object JsonData) + public HttpResponseMessage GetOutsourcingIssueDoc([FromBody] object JsonData) { log.Info("接口:api/OutsourcingIssueDoc/Get"); log.Info("获取委外发料传入值:" + JsonData); @@ -3176,7 +3179,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingIssueDoc/Create")] [HttpPost] - public HttpResponseMessage CreateOutsourcingIssueDoc([FromBody]object JsonData) + public HttpResponseMessage CreateOutsourcingIssueDoc([FromBody] object JsonData) { log.Info("接口:api/OutsourcingIssueDoc/Create"); log.Info("创建委外发料单传入值:" + JsonData); @@ -3249,7 +3252,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingIssueDoc/Approve")] [HttpPost] - public HttpResponseMessage ApproveOutsourcingIssueDoc([FromBody]object JsonData) + public HttpResponseMessage ApproveOutsourcingIssueDoc([FromBody] object JsonData) { log.Info("接口:api/OutsourcingIssueDoc/Approve"); log.Info("审核委外发料单传入值:" + JsonData); @@ -3320,7 +3323,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingIssueDoc/Delete")] [HttpPost] - public HttpResponseMessage DeleteOutsourcingIssueDoc([FromBody]object JsonData) + public HttpResponseMessage DeleteOutsourcingIssueDoc([FromBody] object JsonData) { log.Info("接口:api/OutsourcingIssueDoc/Delete"); log.Info("删除委外发料单传入值:" + JsonData); @@ -3393,7 +3396,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingIssueDoNegative/Get")] [HttpPost] - public HttpResponseMessage GetOutsourcingIssueDoNegative([FromBody]object JsonData) + public HttpResponseMessage GetOutsourcingIssueDoNegative([FromBody] object JsonData) { log.Info("接口:api/OutsourcingIssueDoNegative/Get"); log.Info("获取委外退料传入值:" + JsonData); @@ -3465,7 +3468,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingIssueDoNegative/Create")] [HttpPost] - public HttpResponseMessage CreateOutsourcingIssueDoNegative([FromBody]object JsonData) + public HttpResponseMessage CreateOutsourcingIssueDoNegative([FromBody] object JsonData) { log.Info("接口:api/OutsourcingIssueDoNegative/Create"); log.Info("创建委外退料传入值:" + JsonData); @@ -3537,7 +3540,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingIssueDoNegative/Approve")] [HttpPost] - public HttpResponseMessage ApproveOutsourcingIssueDoNegative([FromBody]object JsonData) + public HttpResponseMessage ApproveOutsourcingIssueDoNegative([FromBody] object JsonData) { log.Info("接口:api/OutsourcingIssueDoNegative/Approve"); log.Info("审核委外退料传入值:" + JsonData); @@ -3608,7 +3611,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingIssueDoNegative/Delete")] [HttpPost] - public HttpResponseMessage DeleteOutsourcingIssueDoNegative([FromBody]object JsonData) + public HttpResponseMessage DeleteOutsourcingIssueDoNegative([FromBody] object JsonData) { log.Info("接口:api/OutsourcingIssueDoNegative/Delete"); log.Info("删除委外退料传入值:" + JsonData); @@ -3681,7 +3684,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/DeliveryNotice/Get")] [HttpPost] - public HttpResponseMessage GetDeliveryNotice([FromBody]object JsonData) + public HttpResponseMessage GetDeliveryNotice([FromBody] object JsonData) { log.Info("接口:api/DeliveryNotice/Get"); log.Info("获取委外到货单传入值:" + JsonData); @@ -3753,7 +3756,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/DeliveryNotice/Create")] [HttpPost] - public HttpResponseMessage CreateDeliveryNotice([FromBody]object JsonData) + public HttpResponseMessage CreateDeliveryNotice([FromBody] object JsonData) { log.Info("接口:api/DeliveryNotice/Create"); log.Info("创建委外到货单传入值:" + JsonData); @@ -3826,7 +3829,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/DeliveryNotice/Approve")] [HttpPost] - public HttpResponseMessage ApproveDeliveryNotice([FromBody]object JsonData) + public HttpResponseMessage ApproveDeliveryNotice([FromBody] object JsonData) { log.Info("接口:api/DeliveryNotice/Approve"); log.Info("审核委外到货传入值:" + JsonData); @@ -3897,7 +3900,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/DeliveryNotice/Delete")] [HttpPost] - public HttpResponseMessage DeleteDeliveryNotice([FromBody]object JsonData) + public HttpResponseMessage DeleteDeliveryNotice([FromBody] object JsonData) { log.Info("接口:api/DeliveryNotice/Delete"); log.Info("删除委外到货单传入值:" + JsonData); @@ -3970,7 +3973,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingReceiveDoc/Get")] [HttpPost] - public HttpResponseMessage GetOutsourcingReceiveDoc([FromBody]object JsonData) + public HttpResponseMessage GetOutsourcingReceiveDoc([FromBody] object JsonData) { log.Info("接口:api/OutsourcingReceiveDoc/Get"); log.Info("获取委外采购入库单传入值:" + JsonData); @@ -4042,7 +4045,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingReceiveDocPOArrive/Create")] [HttpPost] - public HttpResponseMessage CreateOutsourcingReceiveDoc([FromBody]object JsonData) + public HttpResponseMessage CreateOutsourcingReceiveDoc([FromBody] object JsonData) { log.Info("接口:api/OutsourcingReceiveDocPOArrive/Create"); log.Info("创建委外采购入库单传入值:" + JsonData); @@ -4111,7 +4114,7 @@ namespace ICSSoft.WebAPI.Controllers } [Route("api/OutsourcingReceiveDoc/Create")] [HttpPost] - public HttpResponseMessage CreateOutsourcingReceiveDocPO([FromBody]object JsonData) + public HttpResponseMessage CreateOutsourcingReceiveDocPO([FromBody] object JsonData) { log.Info("接口:api/OutsourcingReceiveDoc/Create"); log.Info("创建委外采购入(委外到货单)传入值:" + JsonData); @@ -4185,7 +4188,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingReceiveDoc/Approve")] [HttpPost] - public HttpResponseMessage ApproveOutsourcingReceiveDoc([FromBody]object JsonData) + public HttpResponseMessage ApproveOutsourcingReceiveDoc([FromBody] object JsonData) { log.Info("接口:api/OutsourcingReceiveDoc/Approve"); log.Info("审核委外采购入库单传入值:" + JsonData); @@ -4257,7 +4260,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/PurchaseReceiveDoc/Delete")] [HttpPost] - public HttpResponseMessage DeleteOutsourcingReceiveDoc([FromBody]object JsonData) + public HttpResponseMessage DeleteOutsourcingReceiveDoc([FromBody] object JsonData) { log.Info("接口:api/PurchaseReceiveDoc/Delete"); log.Info("删除采购入库单传入值:" + JsonData); @@ -4331,7 +4334,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingReturnBack/Get")] [HttpPost] - public HttpResponseMessage GETOutsourcingReturnBack([FromBody]object JsonData) + public HttpResponseMessage GETOutsourcingReturnBack([FromBody] object JsonData) { log.Info("接口:api/OutsourcingReturnBack/Get"); log.Info("获取委外采购退货单传入值:" + JsonData); @@ -4405,7 +4408,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingReceiveDocNegative/Get")] [HttpPost] - public HttpResponseMessage GetOutsourcingReceiveDocNegative([FromBody]object JsonData) + public HttpResponseMessage GetOutsourcingReceiveDocNegative([FromBody] object JsonData) { log.Info("接口:api/OutsourcingReceiveDocNegative/Get"); log.Info("获取委外采购入库单传入值:" + JsonData); @@ -4477,7 +4480,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingReceiveDocNegative/Create")] [HttpPost] - public HttpResponseMessage CreateOutsourcingReceiveDocNegative([FromBody]object JsonData) + public HttpResponseMessage CreateOutsourcingReceiveDocNegative([FromBody] object JsonData) { log.Info("接口:api/OutsourcingReceiveDocNegative/Create"); log.Info("创建委外采购入库单传入值:" + JsonData); @@ -4551,7 +4554,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingReceiveDocNegative/Approve")] [HttpPost] - public HttpResponseMessage ApproveOutsourcingReceiveDocNegative([FromBody]object JsonData) + public HttpResponseMessage ApproveOutsourcingReceiveDocNegative([FromBody] object JsonData) { log.Info("接口:api/OutsourcingReceiveDocNegative/Approve"); log.Info("审核委外采购入库单传入值:" + JsonData); @@ -4622,7 +4625,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OutsourcingReceiveDocNegative/Delete")] [HttpPost] - public HttpResponseMessage DeleteOutsourcingReceiveDocNegative([FromBody]object JsonData) + public HttpResponseMessage DeleteOutsourcingReceiveDocNegative([FromBody] object JsonData) { log.Info("接口:api/OutsourcingReceiveDocNegative/Delete"); log.Info("删除采购入库单传入值:" + JsonData); @@ -4696,7 +4699,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/ManufactureReceiveDoc/Get")] [HttpPost] - public HttpResponseMessage GetManufactureReceiveDoc([FromBody]object JsonData) + public HttpResponseMessage GetManufactureReceiveDoc([FromBody] object JsonData) { log.Info("接口:api/ManufactureReceiveDoc/Get"); log.Info("获取成品入库单传入值:" + JsonData); @@ -4769,7 +4772,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/ManufactureReceiveDoc/Create")] [HttpPost] - public HttpResponseMessage CreateManufactureReceiveDoc([FromBody]object JsonData) + public HttpResponseMessage CreateManufactureReceiveDoc([FromBody] object JsonData) { log.Info("接口:api/ManufactureReceiveDoc/Create"); log.Info("创建成品入库单传入值:" + JsonData); @@ -4843,7 +4846,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/ManufactureLFReceiveDoc/Create")] [HttpPost] - public HttpResponseMessage CreateManufactureLFReceiveDoc([FromBody]object JsonData) + public HttpResponseMessage CreateManufactureLFReceiveDoc([FromBody] object JsonData) { log.Info("接口:api/ManufactureLFReceiveDoc/Create"); log.Info("创建连副产品入库单传入值:" + JsonData); @@ -4915,7 +4918,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/ManufactureReceiveDoc/Approve")] [HttpPost] - public HttpResponseMessage ApproveManufactureReceiveDoc([FromBody]object JsonData) + public HttpResponseMessage ApproveManufactureReceiveDoc([FromBody] object JsonData) { log.Info("接口:api/ManufactureReceiveDoc/Approve"); log.Info("审核委外退料单传入值:" + JsonData); @@ -4986,7 +4989,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/ManufactureReceiveDoc/Delete")] [HttpPost] - public HttpResponseMessage DeleteManufactureReceiveDoc([FromBody]object JsonData) + public HttpResponseMessage DeleteManufactureReceiveDoc([FromBody] object JsonData) { log.Info("接口:api/ManufactureReceiveDoc/Delete"); log.Info("删除委外退料单传入值:" + JsonData); @@ -5061,7 +5064,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesShipmentDoc/Get")] [HttpPost] - public HttpResponseMessage GetSalesShipmentDoc([FromBody]object JsonData) + public HttpResponseMessage GetSalesShipmentDoc([FromBody] object JsonData) { log.Info("接口:api/SalesShipmentDoc/Get"); log.Info("获取销售出库单传入值:" + JsonData); @@ -5134,7 +5137,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesShipmentDoc/Create")] [HttpPost] - public HttpResponseMessage CreateSalesShipmentDoc([FromBody]object JsonData) + public HttpResponseMessage CreateSalesShipmentDoc([FromBody] object JsonData) { log.Info("接口:api/SalesShipmentDoc/Create"); log.Info("创建销售出库单传入值:" + JsonData); @@ -5206,7 +5209,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesShipmentDoc/Approve")] [HttpPost] - public HttpResponseMessage ApproveSalesShipmentDoc([FromBody]object JsonData) + public HttpResponseMessage ApproveSalesShipmentDoc([FromBody] object JsonData) { log.Info("接口:api/SalesShipmentDoc/Approve"); log.Info("审核销售出库单传入值:" + JsonData); @@ -5277,7 +5280,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesShipmentDoc/Delete")] [HttpPost] - public HttpResponseMessage DeleteSalesShipmentDoc([FromBody]object JsonData) + public HttpResponseMessage DeleteSalesShipmentDoc([FromBody] object JsonData) { log.Info("接口:api/SalesShipmentDoc/Delete"); log.Info("删除销售出库单传入值:" + JsonData); @@ -5352,7 +5355,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesShipmentDocNegative/Get")] [HttpPost] - public HttpResponseMessage GetSalesShipmentDocNegative([FromBody]object JsonData) + public HttpResponseMessage GetSalesShipmentDocNegative([FromBody] object JsonData) { log.Info("接口:api/SalesShipmentDocNegative/Get"); log.Info("获取销售出库单红字传入值:" + JsonData); @@ -5418,78 +5421,78 @@ namespace ICSSoft.WebAPI.Controllers return result; } - /// - /// 创建销售出库单 - /// - /// - /// - [Route("api/SalesShipmentDocNegative/Create")] - [HttpPost] - public HttpResponseMessage CreateSalesShipmentDocNegative([FromBody]object JsonData) - { - log.Info("接口:api/SalesShipmentDocNegative/Create,"); - log.Info("创建销售出库单传入值:" + JsonData); - HttpResponseMessage result = new HttpResponseMessage(); - Result res = new Result(); - string str = string.Empty; - try - { - if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") - { - try - { - List infos = new List(); - try - { - infos = JsonConvert.DeserializeObject>(JsonData.ToString()); - } - catch (Exception ex) - { - log.Error("转换失败:" + ex.ToString()); - res.Success = false; - res.Message = "JSON格式不正确!"; - } - SalesShipmentDocNegative action = new SalesShipmentDocNegative(); - string resultStr = action.CreateSalesShipmentDocNegative(infos); - if (!string.IsNullOrWhiteSpace(resultStr)) - { - res.Success = true; - res.Message = "接口调用成功!"; - res.Data = resultStr; - } - else - { - res.Success = false; - res.Message = resultStr; - } - } - catch (Exception ex) - { - log.Error("调用后台失败:" + ex.ToString()); - res.Success = false; - res.Message = ex.Message; - } - } - else - { - res.Success = false; - res.Message = "请传入参数"; - } - } - catch (Exception ex) - { - log.Error("参数检验失败:" + ex.ToString()); - res.Success = false; - res.Message = ex.Message; - } - finally - { - str = JsonConvert.SerializeObject(res); - result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); - } - log.Debug("创建销售出库单返回值:" + str); - return result; - } + ///// + ///// 创建销售出库单 + ///// + ///// + ///// + //[Route("api/SalesShipmentDocNegative/Create")] + //[HttpPost] + //public HttpResponseMessage CreateSalesShipmentDocNegative([FromBody] object JsonData) + //{ + // log.Info("接口:api/SalesShipmentDocNegative/Create,"); + // log.Info("创建销售出库单传入值:" + JsonData); + // HttpResponseMessage result = new HttpResponseMessage(); + // Result res = new Result(); + // string str = string.Empty; + // try + // { + // if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") + // { + // try + // { + // List infos = new List(); + // try + // { + // infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + // } + // catch (Exception ex) + // { + // log.Error("转换失败:" + ex.ToString()); + // res.Success = false; + // res.Message = "JSON格式不正确!"; + // } + // SalesShipmentDocNegative action = new SalesShipmentDocNegative(); + // string resultStr = action.CreateSalesShipmentDocNegative(infos); + // if (!string.IsNullOrWhiteSpace(resultStr)) + // { + // res.Success = true; + // res.Message = "接口调用成功!"; + // res.Data = resultStr; + // } + // else + // { + // res.Success = false; + // res.Message = resultStr; + // } + // } + // catch (Exception ex) + // { + // log.Error("调用后台失败:" + ex.ToString()); + // res.Success = false; + // res.Message = ex.Message; + // } + // } + // else + // { + // res.Success = false; + // res.Message = "请传入参数"; + // } + // } + // catch (Exception ex) + // { + // log.Error("参数检验失败:" + ex.ToString()); + // res.Success = false; + // res.Message = ex.Message; + // } + // finally + // { + // str = JsonConvert.SerializeObject(res); + // result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); + // } + // log.Debug("创建销售出库单返回值:" + str); + // return result; + //} /// /// 审核销售出库单红字 /// @@ -5497,7 +5500,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesShipmentDocNegative/Approve")] [HttpPost] - public HttpResponseMessage ApproveSalesShipmentDocNegative([FromBody]object JsonData) + public HttpResponseMessage ApproveSalesShipmentDocNegative([FromBody] object JsonData) { log.Info("接口:api/SalesShipmentDocNegative/Approve"); log.Info("审核销售出库单红字传入值:" + JsonData); @@ -5568,7 +5571,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesShipmentDocNegative/Delete")] [HttpPost] - public HttpResponseMessage DeleteSalesShipmentDocNegative([FromBody]object JsonData) + public HttpResponseMessage DeleteSalesShipmentDocNegative([FromBody] object JsonData) { log.Info("接口:api/SalesShipmentDocNegative/Delete"); log.Info("删除销售出库单红字传入值:" + JsonData); @@ -5643,7 +5646,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesOrder/Get")] [HttpPost] - public HttpResponseMessage GetSalesOrder([FromBody]object JsonData) + public HttpResponseMessage GetSalesOrder([FromBody] object JsonData) { log.Info("接口:api/SalesOrder/Get"); log.Info("获取销售订单传入值:" + JsonData); @@ -5716,7 +5719,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesOrder/Create")] [HttpPost] - public HttpResponseMessage CreateSalesOrder([FromBody]object JsonData) + public HttpResponseMessage CreateSalesOrder([FromBody] object JsonData) { log.Info("接口:api/SalesOrder/Create"); log.Info("创建销售订单传入值:" + JsonData); @@ -5788,7 +5791,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesOrder/Approve")] [HttpPost] - public HttpResponseMessage ApproveSalesOrder([FromBody]object JsonData) + public HttpResponseMessage ApproveSalesOrder([FromBody] object JsonData) { log.Info("接口:api/SalesOrder/Approve"); log.Info("审核销售订单传入值:" + JsonData); @@ -5859,7 +5862,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesOrder/Delete")] [HttpPost] - public HttpResponseMessage DeleteSalesOrder([FromBody]object JsonData) + public HttpResponseMessage DeleteSalesOrder([FromBody] object JsonData) { log.Info("接口:api/SalesOrder/Delete"); log.Info("删除销售订单传入值:" + JsonData); @@ -5934,7 +5937,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesDeliveryNotice/Get")] [HttpPost] - public HttpResponseMessage GetSalesDeliveryNotice([FromBody]object JsonData) + public HttpResponseMessage GetSalesDeliveryNotice([FromBody] object JsonData) { log.Info("接口:api/SalesDeliveryNotice/Get"); log.Info("获取销售发货传入值:" + JsonData); @@ -6007,7 +6010,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesDeliveryNotice/Create")] [HttpPost] - public HttpResponseMessage CreateSalesDeliveryNotice([FromBody]object JsonData) + public HttpResponseMessage CreateSalesDeliveryNotice([FromBody] object JsonData) { log.Info("接口:api/SalesDeliveryNotice/Create"); log.Info("创建销售发货传入值:" + JsonData); @@ -6079,7 +6082,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesDeliveryNotice/Approve")] [HttpPost] - public HttpResponseMessage ApproveSalesDeliveryNotice([FromBody]object JsonData) + public HttpResponseMessage ApproveSalesDeliveryNotice([FromBody] object JsonData) { log.Info("接口:api/SalesDeliveryNotice/Approve"); log.Info("审核销售发货传入值:" + JsonData); @@ -6150,7 +6153,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesDeliveryNotice/Delete")] [HttpPost] - public HttpResponseMessage DeleteSalesDeliveryNotice([FromBody]object JsonData) + public HttpResponseMessage DeleteSalesDeliveryNotice([FromBody] object JsonData) { log.Info("接口:api/SalesDeliveryNotice/Delete"); log.Info("删除销售发货传入值:" + JsonData); @@ -6224,7 +6227,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/SalesReturnBack/Get")] [HttpPost] - public HttpResponseMessage GetSalesReturnBack([FromBody]object JsonData) + public HttpResponseMessage GetSalesReturnBack([FromBody] object JsonData) { log.Info("接口:api/SalesReturnBack/Get"); log.Info("获取销售退货传入值:" + JsonData); @@ -6298,7 +6301,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OneStepTransferDocIn/Approve")] [HttpPost] - public HttpResponseMessage TransferDoc([FromBody]object JsonData) + public HttpResponseMessage TransferDoc([FromBody] object JsonData) { log.Info("接口:api/OneStepTransferDocIn/Approve"); HttpResponseMessage result = new HttpResponseMessage(); @@ -6373,7 +6376,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OneStepTransferDocIn/Create")] [HttpPost] - public HttpResponseMessage TransferDocIn([FromBody]object JsonData) + public HttpResponseMessage TransferDocIn([FromBody] object JsonData) { log.Info("接口:api/OneStepTransferDocIn/Create"); HttpResponseMessage result = new HttpResponseMessage(); @@ -6413,7 +6416,7 @@ namespace ICSSoft.WebAPI.Controllers res.Data = resultStr; } - + } catch (Exception ex) { @@ -6443,8 +6446,8 @@ namespace ICSSoft.WebAPI.Controllers return result; } } - - + + #region 审核其他入库单(杂收) /// /// 其他入库单 @@ -6453,7 +6456,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OtherInDoc/Approve")] [HttpPost] - public HttpResponseMessage APIConfirmRdrecord08([FromBody]object JsonData) + public HttpResponseMessage APIConfirmRdrecord08([FromBody] object JsonData) { log.Info("接口:api/OtherInDoc/Approve"); HttpResponseMessage result = new HttpResponseMessage(); @@ -6527,7 +6530,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OtherOutDoc/Approve")] [HttpPost] - public HttpResponseMessage APIConfirmRdrecord09([FromBody]object JsonData) + public HttpResponseMessage APIConfirmRdrecord09([FromBody] object JsonData) { log.Info("接口:api/OtherOutDoc/Approve"); HttpResponseMessage result = new HttpResponseMessage(); @@ -6604,7 +6607,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/DisassemblyDoc/Approve")] [HttpPost] - public HttpResponseMessage APIConfirmDismrecord01([FromBody]object JsonData) + public HttpResponseMessage APIConfirmDismrecord01([FromBody] object JsonData) { log.Info("接口:api/DisassemblyDoc/Approve"); HttpResponseMessage result = new HttpResponseMessage(); @@ -6678,7 +6681,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/TwoStepTransferDocIn/Approve")] [HttpPost] - public HttpResponseMessage APIConfirmRdrecord08Two([FromBody]object JsonData) + public HttpResponseMessage APIConfirmRdrecord08Two([FromBody] object JsonData) { log.Info("接口:api/TwoStepTransferDocIn/Approve"); HttpResponseMessage result = new HttpResponseMessage(); @@ -6752,7 +6755,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/TwoStepTransferDocOut/Approve")] [HttpPost] - public HttpResponseMessage APIConfirmRdrecord09Two([FromBody]object JsonData) + public HttpResponseMessage APIConfirmRdrecord09Two([FromBody] object JsonData) { log.Info("接口:api/TwoStepTransferDocOut/Approve"); HttpResponseMessage result = new HttpResponseMessage(); @@ -6821,7 +6824,7 @@ namespace ICSSoft.WebAPI.Controllers #region 委外材料出库(领料单) [Route("api/OOIssueDocByPU/Create")] [HttpPost] - public HttpResponseMessage CreateOOIssueDocBYPU([FromBody]object JsonData) + public HttpResponseMessage CreateOOIssueDocBYPU([FromBody] object JsonData) { log.Info("接口:api/OOIssueDocByPU/Create"); log.Info("委外材料出库(领料单)传入值:" + JsonData); @@ -6895,7 +6898,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OOIssueDoc/Approve")] [HttpPost] - public HttpResponseMessage MOIssueDocApprove([FromBody]object JsonData) + public HttpResponseMessage MOIssueDocApprove([FromBody] object JsonData) { log.Info("接口:api/OOIssueDoc/Approve"); log.Info("审核材料出库传入值:" + JsonData); @@ -6969,7 +6972,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/BrrowDoc/Create")] [HttpPost] - public HttpResponseMessage BrrowDocCreate([FromBody]object JsonData) + public HttpResponseMessage BrrowDocCreate([FromBody] object JsonData) { log.Info("接口:api/BrrowDoc/Create"); log.Info("借用(生成其他出库)传入值:" + JsonData); @@ -7044,7 +7047,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/ReturnDoc/Create")] [HttpPost] - public HttpResponseMessage ReturnDocCreate([FromBody]object JsonData) + public HttpResponseMessage ReturnDocCreate([FromBody] object JsonData) { log.Info("接口:api/ReturnDoc/Create"); log.Info("归还(生成其他入库)传入值:" + JsonData); @@ -7119,7 +7122,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/MorphologicalTransformationDoc/Create")] [HttpPost] - public HttpResponseMessage MorphologicalTransformationDocCreate([FromBody]object JsonData) + public HttpResponseMessage MorphologicalTransformationDocCreate([FromBody] object JsonData) { log.Info("接口:api/MorphologicalTransformationDoc/Create"); log.Info("形态转换单传入值:" + JsonData); @@ -7195,7 +7198,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/Complete/Approve")] [HttpPost] - public HttpResponseMessage CompleteCreate([FromBody]object JsonData) + public HttpResponseMessage CompleteCreate([FromBody] object JsonData) { log.Info("接口:api/ReturnDoc/Approve"); log.Info("齐套检验接口传入值:" + JsonData); @@ -7272,7 +7275,7 @@ namespace ICSSoft.WebAPI.Controllers /// [Route("api/OneStepTransferDoc/Create")] [HttpPost] - public HttpResponseMessage TransferDocSIn([FromBody]object JsonData) + public HttpResponseMessage TransferDocSIn([FromBody] object JsonData) { log.Info("接口:api/OneStepTransferDoc/Create"); HttpResponseMessage result = new HttpResponseMessage(); @@ -7312,7 +7315,7 @@ namespace ICSSoft.WebAPI.Controllers res.Message = "接口调用失败!"; res.Data = resultStr; } - + } catch (Exception ex) { @@ -7343,6 +7346,368 @@ namespace ICSSoft.WebAPI.Controllers } } + #region U9入库单相关 + /// + /// 审核入库单 + /// + /// + /// + [Route("api/PurchaseReceiveDoc/Create")] + [HttpPost] + public HttpResponseMessage ApproveRCV([FromBody] object JsonData) + { + log.Info("接口:api/ApproveRCV/Approve"); + log.Info("审核入库单传入值:" + JsonData); + HttpResponseMessage result = new HttpResponseMessage(); + Result res = new Result(); + string str = string.Empty; + try + { + if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") + { + try + { + List infos = new List(); + try + { + infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + } + catch (Exception ex) + { + log.Error("转换失败:" + ex.ToString()); + res.Success = false; + res.Message = "JSON格式不正确!"; + } + ApproveRCV action = new ApproveRCV(); + bool approveresult = action.Approve(infos); + if (approveresult == true) + { + res.Success = true; + res.Message = "接口调用成功!"; + } + else + { + res.Success = false; + res.Message = "接口调用失败"; + } + } + catch (Exception ex) + { + log.Error("调用后台失败:" + ex.ToString()); + res.Success = false; + res.Message = ex.Message; + } + } + else + { + res.Success = false; + res.Message = "请传入参数"; + } + } + catch (Exception ex) + { + log.Error("参数检验失败:" + ex.ToString()); + res.Success = false; + res.Message = ex.Message; + } + finally + { + str = JsonConvert.SerializeObject(res); + result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); + } + log.Debug("审核采购入库单返回值:" + str); + return result; + } + /// + /// 创建采购红字入库单 + /// + /// + /// + [Route("api/PurchaseReceiveDoctNegative/Create")] + [HttpPost] + public HttpResponseMessage CreatePurchaseReceiveDoctNegative([FromBody] object JsonData) + { + log.Info("接口:api/PurchaseReceiveDoctNegative/Create"); + log.Info("创建采购红字入库单传入值:" + JsonData); + HttpResponseMessage result = new HttpResponseMessage(); + Result res = new Result(); + string str = string.Empty; + try + { + if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") + { + try + { + List infos = new List(); + try + { + infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + } + catch (Exception ex) + { + log.Error("转换失败:" + ex.ToString()); + + res.Success = false; + res.Message = "JSON格式不正确!"; + throw new Exception(res.Message); + } + ApproveRCV action = new ApproveRCV(); + bool approveresult = action.Approve(infos); + if (approveresult == true) + { + res.Success = true; + res.Message = "接口调用成功!"; + } + else + { + res.Success = false; + res.Message = "接口调用失败"; + } + } + catch (Exception ex) + { + log.Error("调用后台失败:" + ex.ToString()); + res.Success = false; + res.Message = ex.Message; + } + } + else + { + res.Success = false; + res.Message = "请传入参数"; + } + } + catch (Exception ex) + { + log.Error("参数检验失败:" + ex.ToString()); + res.Success = false; + res.Message = ex.Message; + } + finally + { + str = JsonConvert.SerializeObject(res); + result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); + } + log.Debug("创建采购红字入库单返回值:" + str); + return result; + } + /// + /// 审核销售退货单(对应U8红字销售出库单) + /// + /// + /// + [Route("api/SalesShipmentDocNegative/Create")] + [HttpPost] + public HttpResponseMessage CreateSalesShipmentDocNegative([FromBody] object JsonData) + { + log.Info("接口:api/SalesShipmentDocNegative/Create,"); + log.Info("创建销售出库单传入值:" + JsonData); + HttpResponseMessage result = new HttpResponseMessage(); + Result res = new Result(); + string str = string.Empty; + try + { + if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") + { + try + { + List infos = new List(); + try + { + infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + } + catch (Exception ex) + { + log.Error("转换失败:" + ex.ToString()); + res.Success = false; + res.Message = "JSON格式不正确!"; + } + ApproveRCV action = new ApproveRCV(); + bool approveresult = action.Approve(infos); + if (approveresult == true) + { + res.Success = true; + res.Message = "接口调用成功!"; + } + else + { + res.Success = false; + res.Message = "接口调用失败"; + } + } + catch (Exception ex) + { + log.Error("调用后台失败:" + ex.ToString()); + res.Success = false; + res.Message = ex.Message; + } + } + else + { + res.Success = false; + res.Message = "请传入参数"; + } + } + catch (Exception ex) + { + log.Error("参数检验失败:" + ex.ToString()); + res.Success = false; + res.Message = ex.Message; + } + finally + { + str = JsonConvert.SerializeObject(res); + result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); + } + log.Debug("创建销售出库单返回值:" + str); + return result; + } + #endregion + #region U9领料相关 + /// + /// 审核领料单 + /// + /// + /// + [Route("api/MOIssueDoc/Approve")] + [HttpPost] + public HttpResponseMessage ApproveIssue([FromBody] object JsonData) + { + log.Info("接口:api/MOIssueDoc/Approve"); + log.Info("审核入库单传入值:" + JsonData); + HttpResponseMessage result = new HttpResponseMessage(); + Result res = new Result(); + string str = string.Empty; + try + { + if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") + { + try + { + List infos = new List(); + try + { + infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + } + catch (Exception ex) + { + log.Error("转换失败:" + ex.ToString()); + res.Success = false; + res.Message = "JSON格式不正确!"; + } + ApproveIssue action = new ApproveIssue(); + bool approveresult = action.Approve(infos); + if (approveresult == true) + { + res.Success = true; + res.Message = "接口调用成功!"; + } + else + { + res.Success = false; + res.Message = "接口调用失败"; + } + } + catch (Exception ex) + { + log.Error("调用后台失败:" + ex.ToString()); + res.Success = false; + res.Message = ex.Message; + } + } + else + { + res.Success = false; + res.Message = "请传入参数"; + } + } + catch (Exception ex) + { + log.Error("参数检验失败:" + ex.ToString()); + res.Success = false; + res.Message = ex.Message; + } + finally + { + str = JsonConvert.SerializeObject(res); + result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); + } + log.Debug("审核生产领料单返回值:" + str); + return result; + } + /// + /// 创建生产退料单 + /// + /// + /// + [Route("api/MOIssueDocNegative/Create")] + [HttpPost] + public HttpResponseMessage CreateMOIssueDocNegatives([FromBody] object JsonData) + { + log.Info("接口:api/MOIssueDocNegative/Create"); + log.Info("创建生产退料单传入值:" + JsonData); + HttpResponseMessage result = new HttpResponseMessage(); + Result res = new Result(); + string str = string.Empty; + try + { + if (JsonData != null && !string.IsNullOrWhiteSpace(JsonData.ToString()) && JsonData.ToString() != "[]") + { + try + { + List infos = new List(); + try + { + infos = JsonConvert.DeserializeObject>(JsonData.ToString()); + } + catch (Exception ex) + { + log.Error("转换失败:" + ex.ToString()); + res.Success = false; + res.Message = "JSON格式不正确!"; + } + CreateIssue action = new CreateIssue(); + string resultStr = action.Create(infos); + if (!string.IsNullOrWhiteSpace(resultStr)) + { + res.Success = true; + res.Message = "接口调用成功!"; + res.Data = resultStr; + } + else + { + res.Success = false; + res.Message = resultStr; + } + } + catch (Exception ex) + { + log.Error("调用后台失败:" + ex.ToString()); + res.Success = false; + res.Message = ex.Message; + } + } + else + { + res.Success = false; + res.Message = "请传入参数"; + } + } + catch (Exception ex) + { + log.Error("参数检验失败:" + ex.ToString()); + res.Success = false; + res.Message = ex.Message; + } + finally + { + str = JsonConvert.SerializeObject(res); + result.Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json"); + } + log.Debug("创建生产退料单返回值:" + str); + return result; + } + #endregion } diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/ICSSoft.ERP.WebAPI.csproj b/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/ICSSoft.ERP.WebAPI.csproj index 34a2618..b789ba9 100644 --- a/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/ICSSoft.ERP.WebAPI.csproj +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/ICSSoft.ERP.WebAPI.csproj @@ -267,6 +267,14 @@ + + {8666c3ea-95f9-4e97-a899-60ecc3ffddae} + ICSSoft.APIApproveIssue + + + {9e8efdba-62ec-4479-bb51-03a520ee51cd} + ICSSoft.APIApproveRCV + {1624dfb7-0ce0-492b-928e-5a547e2ca558} ICSSoft.ASKCommon diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Properties/PublishProfiles/FYN.pubxml b/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Properties/PublishProfiles/FYN.pubxml index c70d7a3..985b90e 100644 --- a/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Properties/PublishProfiles/FYN.pubxml +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Properties/PublishProfiles/FYN.pubxml @@ -7,7 +7,11 @@ FileSystem - E:\发布1 + D:\维卓\U9接口发布 True + Debug + Any CPU + True + False \ No newline at end of file diff --git a/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Web.config b/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Web.config index 2756299..742307c 100644 --- a/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Web.config +++ b/ICSSoft.U9ERP.WebAPI/ICSSoft.ERP.WebAPI/Web.config @@ -5,18 +5,27 @@ --> - - + + + + + + + + + + +