APSM/bin/Release/APSM.dllBinary files differ
APSM/bin/Release/APSM.pdbBinary files differ
APSM/bin/Release/BLL.dllBinary files differ
APSM/bin/Release/BLL.pdbBinary files differ
APSM/bin/Release/BaseSet.dllBinary files differ
APSM/bin/Release/BaseSet.pdbBinary files differ
APSM/bin/Release/DAL.dllBinary files differ
APSM/bin/Release/DAL.pdbBinary files differ
APSM/bin/Release/DBUtility.dllBinary files differ
APSM/bin/Release/DBUtility.pdbBinary files differ
APSM/bin/Release/Model.dllBinary files differ
APSM/bin/Release/Model.pdbBinary files differ
APSM/bin/Release/PlanM.dllBinary files differ
APSM/bin/Release/PlanM.pdbBinary files differ
APSM/bin/Release/Pub_Class.dllBinary files differ
APSM/bin/Release/Pub_Class.pdbBinary files differ
APSM/bin/Release/Pub_Control.dllBinary files differ
APSM/bin/Release/Pub_Control.pdbBinary files differ
APSM/bin/Release/SQLHelper.dllBinary files differ
APSM/bin/Release/SQLHelper.pdbBinary files differ
APSM/bin/Release/WarM.dllBinary files differ
APSM/bin/Release/WarM.pdbBinary files differ
APSM/bin/Release/WorkM.dllBinary files differ
APSM/bin/Release/WorkM.pdbBinary files differ
BaseSet/bin/Release/BLL.dllBinary files differ
BaseSet/bin/Release/BLL.pdbBinary files differ
BaseSet/bin/Release/BaseSet.dllBinary files differ
BaseSet/bin/Release/BaseSet.pdbBinary files differ
BaseSet/bin/Release/DAL.dllBinary files differ
BaseSet/bin/Release/DAL.pdbBinary files differ
BaseSet/bin/Release/DBUtility.dllBinary files differ
BaseSet/bin/Release/DBUtility.pdbBinary files differ
BaseSet/bin/Release/Model.dllBinary files differ
BaseSet/bin/Release/Model.pdbBinary files differ
BaseSet/bin/Release/Pub_Class.dllBinary files differ
BaseSet/bin/Release/Pub_Class.pdbBinary files differ
BaseSet/bin/Release/Pub_Control.dllBinary files differ
BaseSet/bin/Release/Pub_Control.pdbBinary files differ
BaseSet/bin/Release/SQLHelper.dllBinary files differ
BaseSet/bin/Release/SQLHelper.pdbBinary files differ
DBUtility/obj/Release/DBUtility.csproj.AssemblyReference.cacheBinary files differ
LMES/LMES.csproj
@@ -126,6 +126,12 @@ </Compile> <Compile Include="Program.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="XiaoZhuGe_autoGetData.cs"> <SubType>Form</SubType> </Compile> <Compile Include="XiaoZhuGe_autoGetData.Designer.cs"> <DependentUpon>XiaoZhuGe_autoGetData.cs</DependentUpon> </Compile> <Compile Include="Xt_Wait.cs"> <SubType>Form</SubType> </Compile> @@ -160,6 +166,9 @@ <DependentUpon>Resources.resx</DependentUpon> <DesignTime>True</DesignTime> </Compile> <EmbeddedResource Include="XiaoZhuGe_autoGetData.resx"> <DependentUpon>XiaoZhuGe_autoGetData.cs</DependentUpon> </EmbeddedResource> <EmbeddedResource Include="Xt_Wait.resx"> <DependentUpon>Xt_Wait.cs</DependentUpon> <SubType>Designer</SubType> LMES/Program.cs
@@ -16,6 +16,7 @@ Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new DingDing_autoGetData()); //Application.Run(new XiaoZhuGe_autoGetData()); DBUtility.ClsPub.AppPath = System.Environment.CurrentDirectory; LMES/XiaoZhuGe_autoGetData.Designer.cs
New file @@ -0,0 +1,61 @@  namespace LMES { partial class XiaoZhuGe_autoGetData { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.button1 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(35, 22); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(105, 52); this.button1.TabIndex = 0; this.button1.Text = "button1"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // XiaoZhuGe_autoGetData // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); this.Controls.Add(this.button1); this.Name = "XiaoZhuGe_autoGetData"; this.Text = "XiaoZhuGe_autoGetData"; this.ResumeLayout(false); } #endregion private System.Windows.Forms.Button button1; } } LMES/XiaoZhuGe_autoGetData.cs
New file @@ -0,0 +1,29 @@ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using WebAPI.Controllers; namespace LMES { public partial class XiaoZhuGe_autoGetData : Form { public XiaoZhuGe_autoGetData() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { XZG_DataSynchronizationController t = new XZG_DataSynchronizationController(); //t.getAddMaterAsync_1(); t.icmoInfoSyncFromERPToXZG(); } } } LMES/XiaoZhuGe_autoGetData.resx
New file @@ -0,0 +1,120 @@ <?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> </root> Model/obj/Release/Model.csproj.AssemblyReference.cacheBinary files differ
OAM/bin/Release/BLL.dllBinary files differ
OAM/bin/Release/BLL.pdbBinary files differ
OAM/bin/Release/BaseSet.dllBinary files differ
OAM/bin/Release/BaseSet.pdbBinary files differ
OAM/bin/Release/DAL.dllBinary files differ
OAM/bin/Release/DAL.pdbBinary files differ
OAM/bin/Release/DBUtility.dllBinary files differ
OAM/bin/Release/DBUtility.pdbBinary files differ
OAM/bin/Release/Model.dllBinary files differ
OAM/bin/Release/Model.pdbBinary files differ
OAM/bin/Release/OAM.dllBinary files differ
OAM/bin/Release/OAM.pdbBinary files differ
OAM/bin/Release/Pub_Class.dllBinary files differ
OAM/bin/Release/Pub_Class.pdbBinary files differ
OAM/bin/Release/Pub_Control.dllBinary files differ
OAM/bin/Release/Pub_Control.pdbBinary files differ
OAM/bin/Release/SQLHelper.dllBinary files differ
OAM/bin/Release/SQLHelper.pdbBinary files differ
PayM/bin/Debug/BLL.dllBinary files differ
PayM/bin/Debug/BLL.pdbBinary files differ
PayM/bin/Debug/DAL.dllBinary files differ
PayM/bin/Debug/DAL.pdbBinary files differ
PayM/bin/Debug/DBUtility.dllBinary files differ
PayM/bin/Debug/DBUtility.pdbBinary files differ
PayM/bin/Debug/Model.dllBinary files differ
PayM/bin/Debug/Model.pdbBinary files differ
PayM/bin/Debug/PayM.dllBinary files differ
PayM/bin/Debug/PayM.pdbBinary files differ
PayM/bin/Debug/Pub_Class.dllBinary files differ
PayM/bin/Debug/Pub_Class.pdbBinary files differ
PayM/bin/Debug/Pub_Control.dllBinary files differ
PayM/bin/Debug/Pub_Control.pdbBinary files differ
PayM/bin/Debug/SQLHelper.dllBinary files differ
PayM/bin/Debug/SQLHelper.pdbBinary files differ
PayM/bin/Release/BLL.dllBinary files differ
PayM/bin/Release/BLL.pdbBinary files differ
PayM/bin/Release/DAL.dllBinary files differ
PayM/bin/Release/DAL.pdbBinary files differ
PayM/bin/Release/DBUtility.dllBinary files differ
PayM/bin/Release/DBUtility.pdbBinary files differ
PayM/bin/Release/Model.dllBinary files differ
PayM/bin/Release/Model.pdbBinary files differ
PayM/bin/Release/PayM.dllBinary files differ
PayM/bin/Release/PayM.pdbBinary files differ
PayM/bin/Release/Pub_Class.dllBinary files differ
PayM/bin/Release/Pub_Class.pdbBinary files differ
PayM/bin/Release/Pub_Control.dllBinary files differ
PayM/bin/Release/Pub_Control.pdbBinary files differ
PayM/bin/Release/SQLHelper.dllBinary files differ
PayM/bin/Release/SQLHelper.pdbBinary files differ
PayM/obj/Debug/PayM.dllBinary files differ
PayM/obj/Debug/PayM.pdbBinary files differ
PayM/obj/Release/PayM.dllBinary files differ
PayM/obj/Release/PayM.pdbBinary files differ
PlanM/bin/Release/BLL.dllBinary files differ
PlanM/bin/Release/BLL.pdbBinary files differ
PlanM/bin/Release/DAL.dllBinary files differ
PlanM/bin/Release/DAL.pdbBinary files differ
PlanM/bin/Release/DBUtility.dllBinary files differ
PlanM/bin/Release/DBUtility.pdbBinary files differ
PlanM/bin/Release/Model.dllBinary files differ
PlanM/bin/Release/Model.pdbBinary files differ
PlanM/bin/Release/PlanM.dllBinary files differ
PlanM/bin/Release/PlanM.pdbBinary files differ
PlanM/bin/Release/Pub_Class.dllBinary files differ
PlanM/bin/Release/Pub_Class.pdbBinary files differ
PlanM/bin/Release/Pub_Control.dllBinary files differ
PlanM/bin/Release/Pub_Control.pdbBinary files differ
PlanM/bin/Release/SQLHelper.dllBinary files differ
PlanM/bin/Release/SQLHelper.pdbBinary files differ
ProM/bin/Release/BLL.dllBinary files differ
ProM/bin/Release/BLL.pdbBinary files differ
ProM/bin/Release/DAL.dllBinary files differ
ProM/bin/Release/DAL.pdbBinary files differ
ProM/bin/Release/DBUtility.dllBinary files differ
ProM/bin/Release/DBUtility.pdbBinary files differ
ProM/bin/Release/Model.dllBinary files differ
ProM/bin/Release/Model.pdbBinary files differ
ProM/bin/Release/ProM.dllBinary files differ
ProM/bin/Release/ProM.pdbBinary files differ
ProM/bin/Release/Pub_Class.dllBinary files differ
ProM/bin/Release/Pub_Class.pdbBinary files differ
ProM/bin/Release/Pub_Control.dllBinary files differ
ProM/bin/Release/Pub_Control.pdbBinary files differ
ProM/bin/Release/SQLHelper.dllBinary files differ
ProM/bin/Release/SQLHelper.pdbBinary files differ
SQLHelper/obj/Release/SQLHelper.csproj.AssemblyReference.cacheBinary files differ
SelM/bin/Release/BLL.dllBinary files differ
SelM/bin/Release/BLL.pdbBinary files differ
SelM/bin/Release/DAL.dllBinary files differ
SelM/bin/Release/DAL.pdbBinary files differ
SelM/bin/Release/DBUtility.dllBinary files differ
SelM/bin/Release/DBUtility.pdbBinary files differ
SelM/bin/Release/Model.dllBinary files differ
SelM/bin/Release/Model.pdbBinary files differ
SelM/bin/Release/Pub_Class.dllBinary files differ
SelM/bin/Release/Pub_Class.pdbBinary files differ
SelM/bin/Release/Pub_Control.dllBinary files differ
SelM/bin/Release/Pub_Control.pdbBinary files differ
SelM/bin/Release/SQLHelper.dllBinary files differ
SelM/bin/Release/SQLHelper.pdbBinary files differ
SelM/bin/Release/SelM.dllBinary files differ
SelM/bin/Release/SelM.pdbBinary files differ
SelM/bin/Release/WarM.dllBinary files differ
SelM/bin/Release/WarM.pdbBinary files differ
SelM/bin/Release/WorkM.dllBinary files differ
SelM/bin/Release/WorkM.pdbBinary files differ
SyntacticSugar/obj/Debug/SyntacticSugar.csproj.AssemblyReference.cacheBinary files differ
SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt
@@ -14,3 +14,4 @@ D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.csproj.CoreCompileInputs.cache D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.dll D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.pdb D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.csproj.AssemblyReference.cache WarM/bin/Release/BLL.dllBinary files differ
WarM/bin/Release/BLL.pdbBinary files differ
WarM/bin/Release/DAL.dllBinary files differ
WarM/bin/Release/DAL.pdbBinary files differ
WarM/bin/Release/DBUtility.dllBinary files differ
WarM/bin/Release/DBUtility.pdbBinary files differ
WarM/bin/Release/Model.dllBinary files differ
WarM/bin/Release/Model.pdbBinary files differ
WarM/bin/Release/Pub_Class.dllBinary files differ
WarM/bin/Release/Pub_Class.pdbBinary files differ
WarM/bin/Release/Pub_Control.dllBinary files differ
WarM/bin/Release/Pub_Control.pdbBinary files differ
WarM/bin/Release/SQLHelper.dllBinary files differ
WarM/bin/Release/SQLHelper.pdbBinary files differ
WarM/bin/Release/WarM.dllBinary files differ
WarM/bin/Release/WarM.pdbBinary files differ
WebAPI/Controllers/Êý¾Ýͬ²½/СÖî¸ðͬ²½/XZG_DataSynchronizationController.cs
New file @@ -0,0 +1,1195 @@ using Model; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Pub_Class; using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Web.Http; using WebAPI.Models; using Tea; using AlibabaCloud.SDK.Dingtalkyida_1_0.Models; using AlibabaCloud.SDK.Dingtalkoauth2_1_0.Models; using DingTalk.Api.Request; using DingTalk.Api; using DingTalk.Api.Response; using System.Globalization; using System.Linq; using AlibabaCloud.SDK.Dingtalkworkflow_1_0.Models; using System.Text.RegularExpressions; using System.Net.Http; using System; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using System.Text; using System.Security.Cryptography; using System.Net.Http.Headers; using System.Web; namespace WebAPI.Controllers { #region 模åç±» #region æå¡å°åè¿åç±» public class ServerAddressResponse { public string res; public string msg; public ServerAddressResponse_Data data; } public class ServerAddressResponse_Data { public string gofServerAdd; } #endregion #region éªè¯ç è¿åç±» public class VerificationCodeResponse { public string res; public string msg; public VerificationCodeResponse_Data data; } public class VerificationCodeResponse_Data { public string VerificationCode; } #endregion #region Tokenè¿åç±» public class TokenResponse { public string res; public string msg; public TokenResponse_Data data; } public class TokenResponse_Data { public string key; } #endregion #region äº§åæ¡£æ¡ #region ç©æå表 public class MaterListResponse { public string code; public string msg; public MaterListResponse_Data data; } public class MaterListResponse_Data { public MaterListResponse_Data_Product[] product; public string updateTime; public string totalNumber; public string totalPage; public string pageIndex; } public class MaterListResponse_Data_Product { public string productName; //产ååç§° public string productId; //产åID public string partnum; //产åç¼å· public string cycleTime; //循ç¯å¨æ public string spec; //è§æ ¼åå· public string weight; //产åéé public string headWeight; //æå¤´éé public string colorName; //é¢è²åç§° public string comments; // 夿³¨ public string lastUpdateTime; //ä¿®æ¹æ¥æ } #endregion #region ç©æè¯¦ç»ä¿¡æ¯ public class MaterDetailResponse { public string code; public string msg; public MaterDetailResponse_Data data; } public class MaterDetailResponse_Data { public MaterDetailResponse_Data_Detail details; public string updateTime; //æ´æ°æ¶é´ public string totalNumber; public string totalPage; public string pageIndex; } public class MaterDetailResponse_Data_Detail { public string productName; //产ååç§° public string partNum; //产åç¼å· public string weight; //产åéé public string headWeight; //æå¤´éé public string cycleTime; //循ç¯å¨æ public string comments; // 夿³¨ public string materialNo; //ææç¼å· public string cpNo; //è²ç²ç¼å· public string cpName; //è²ç²åç§° public string color; //é¢è²ID public string colorName; //é¢è²åç§° public string unit; //åä½ public string partId; //产åID public string productType; //产åç±»å public string processWay; //ç产è¿åº¦ç»è®¡æ¹å¼:0:æ°é 1:æ¶é¿ public string spec; //è§æ ¼åå· public string option1; //èªå®ä¹å段1ï¼ç¨äºè®°å½éè¶äº ä¿®æ¹æ¶é´ } #endregion #region æ°å¢äº§åä¿¡æ¯ public class MaterialResponse { public string code; public string msg; public MaterialResponse_Data data; public string productId; } public class MaterialResponse_Data { public string partId; //产åID public string productName; //产ååç§° public string partNum; //产åç¼ç public string sepc; //è§æ ¼åå· public string weight; //产åéé public string comments; //夿³¨ public string cycleTime; //卿 public string headWeight; //æå¤´éé public string createDate; //åå»ºæ¥æ public string color; //é¢è²ID public string colorName; //é¢è²åç§° public string pieceWage; //åä»· } public class Material { public string key; //å¯é¥ public string productName; //产ååç§° public string partNum; //产åç¼ç public string sepc; //è§æ ¼åå· public string weight; //产åéé public string headWeight; //æå¤´éé public string cycleTime; //卿 public string flightsPartnum; public string comments; //夿³¨ public string colorName; //é¢è²åç§° public string pieceWage; //åä»· public string unit; //åä½ public string systemType; //ç³»ç»ç±»å(IMM:æ³¨å¡ ,CNC:ç²¾å å·¥),ä¸ä¼ é»è®¤æ³¨å¡ public string tdDocNo; //å·¥èºè·¯çº¿ç¼å·,å¤ä¸ªä½¿ç¨,è¿è¡åå¼(CNC) public string progressWay; //ç产è¿åº¦ç»è®¡æ¹å¼:0:æ°é 1:æ¶é¿(CNC) public string groupId; //åç»id public string option1; //èªå®ä¹å段1ï¼ç¨äºè®°å½éè¶äº ä¿®æ¹æ¶é´ } #endregion #region ç¼è¾äº§åä¿¡æ¯ public class MaterialEditResponse { public string code; public string msg; public MaterialEditReponse_Data data; public string productId; } public class MaterialEditReponse_Data { public string partId; //产åID public string partNum; //产åç¼ç public string productName; //产ååç§° public string sepc; //è§æ ¼åå· public string weight; //产åéé public string comments; //夿³¨ public string cycleTime; //卿 public string headWeight; //æå¤´éé public string lastUpdateTime; //æåæ´æ°æ¶é´ public string productType; //产åç±»å public string createDate; //åå»ºæ¥æ public string colorName; //é¢è²åç§° public string unit; //åä½ public string systemType; //ç³»ç»ç±»å } public class MaterialEdit { public string key; //å¯é¥ public string productId; //产åID public string productName; //产ååç§° public string partNum; //产åç¼ç public string sepc; //è§æ ¼åå· public string weight; //产åéé public string headWeight; //æå¤´éé public string cycleTime; //卿 public string flightsPartnum; public string comments; //夿³¨ public string colorName; //é¢è²åç§° public string pieceWage; //åä»· public string unit; //åä½ public string systemType; //ç³»ç»ç±»å(IMM:æ³¨å¡ ,CNC:ç²¾å å·¥),ä¸ä¼ é»è®¤æ³¨å¡ public string tdDocNo; //å·¥èºè·¯çº¿ç¼å·,å¤ä¸ªä½¿ç¨,è¿è¡åå¼(CNC) public string progressWay; //ç产è¿åº¦ç»è®¡æ¹å¼:0:æ°é 1:æ¶é¿(CNC) public string groupId; //åç»id public string option1; //èªå®ä¹å段1ï¼ç¨äºè®°å½éè¶äº ä¿®æ¹æ¶é´ } #endregion #endregion #region ç产订å #region ç产订åå表 public class ICMOListResponse { public string code; public string msg; public ICMOListResponse_Data data; } public class ICMOListResponse_Data { public ICMOListResponse_Data_Plan[] plan; public string pageIndex; public string pageCount; } public class ICMOListResponse_Data_Plan { public string planId; //计ååID public string leave_qty; //å©ä½æ°é public string productName; //产ååç§° public string planNumber; //计ååå· public string planQty; //è®¡åæ°é public string taskNo; //ä»»å¡åå· public string materialId; //ææç¼å· public string materialName; //ææåç§° public string cpId; //è²ç²ç¼å· public string cpName; //è²ç²åç§° public string partId; //产åid public string partNum; //产åç¼å· public string qty; //æ°é public string allotQty; //åé æ°é public string planStartDate; //计åå¼å§æ¶é´ public string planFinishDate; //计å宿æ¶é´ public string comments; //夿³¨ public string createDate; //åå»ºæ¥æ public string spec; //è§æ ¼åå· public string urgent; //æ¯å¦ç´§æ¥ public string partnum; //产åç¼å· public string cycleTime; //循ç¯å¨æ } #endregion #region ç产订å详ç»ä¿¡æ¯ public class ICMODetailResponse { public string code; public string msg; public ICMODetailResponse_Data[] data; } public class ICMODetailResponse_Data { public string planProductName; //产ååç§° public string planNumber; //计ååå· public string planQty; //è®¡åæ°é public string planStartTime; //计åå¼å§æ¶é´ public string planEndTime; //计å宿æ¶é´ public string allottedQty; //åé æ°é public string planProductId; //产åid public string finishPercentage; //宿è¿åº¦ public string colorName; //é¢è² public string color; //é¢è²id public string levQty; //å©ä½æ°é public string planId; //计ååid public string createUserId; //å建人 public string createUserName; //å建人åç§° public string customerName; //客æ·åç§° public string comments; //夿³¨ public string productName; //产ååç§° public string partNum; //产åç¼å·(partNumæè productIdäºéä¸) public string urgent; //æ¯å¦ç´§æ¥ 1:ç´§æ¥ public string productRemark; //产å夿³¨ public string option1; //èªå®ä¹å段1ï¼ç¨äºè®°å½éè¶äº ä¿®æ¹æ¶é´ } #endregion #region æ°å¢ç产订åä¿¡æ¯ public class ICMOResponse { public string code; public string msg; public ICMOResponse_Data data; } public class ICMOResponse_Data { public string planId; //计ååid public string companyId; //å ¬å¸çid public string planNo; //计ååå· public string partId; //产åID public string qty; //è®¡åæ°é public string customerName; //客æ·åç§° public string planStartTime; //计åå¼å§æ¶é´ public string planFinishDate; //计å宿æ¶é´ public string allotQty; //åé æ°é public string finishQty; //宿æ°é public string comments; //夿³¨ public string createDate; //åå»ºæ¥æ public string createUserId; //å建人 public string createUserName; //å建人åç§° public string colorName; //é¢è² public string color; //é¢è²id public string productName; //产ååç§° public string partNum; //产åç¼å· public string status; //ç¶æ public string urgent; //æ¯å¦ç´§æ¥ 1:ç´§æ¥ public string option1; //èªå®ä¹å段1ï¼ç¨äºè®°å½éè¶äº ä¿®æ¹æ¶é´ } public class ICMO { public string key; //å¯é¥ public string planNumber; //计ååå· public string planQty; //è®¡åæ°é public string partNum; //产åç¼å· public string planStartDate; //计åå¼å§æ¶é´ public string planEndDate; //计åç»ææ¶é´ public string comments; //夿³¨ public string customerName; //客æ·åç§° public string colorName; //é¢è²åç§° public string spec; //åå·è§æ ¼ public string cpNo; //è²ç²ç¼å· public string cpName; //è²ç²åç§° public string materialNo; //ææç¼å· public string materialName; //ææåç§° public string orderNumber; //订åç¼å· public string option1; //èªå®ä¹å段1ï¼ç¨äºè®°å½éè¶äº ä¿®æ¹æ¶é´ } #endregion #region ç¼è¾ç产订åä¿¡æ¯ public class ICMOEditResponse { public string code; public string msg; public ICMOEditReponse_Data data; } public class ICMOEditReponse_Data { public string planId; //计ååid //public string companyId; //å ¬å¸çid public string planNo; //计ååå· public string partId; //产åID public string qty; //è®¡åæ°é public string customerName; //客æ·åç§° public string planStartTime; //计åå¼å§æ¶é´ public string planFinishDate; //计å宿æ¶é´ public string allotQty; //åé æ°é public string finishQty; //宿æ°é public string comments; //夿³¨ public string createDate; //åå»ºæ¥æ public string createUserId; //å建人 public string createUserName; //å建人åç§° public string colorName; //é¢è² public string color; //é¢è²id public string productName; //产ååç§° public string partNum; //产åç¼å· public string status; //ç¶æ public string urgent; //æ¯å¦ç´§æ¥ 1:ç´§æ¥ public string option1; //èªå®ä¹å段1ï¼ç¨äºè®°å½éè¶äº ä¿®æ¹æ¶é´ } public class ICMOEdit { public string key; //å¯é¥ public string planId; //计ååID public string planNumber; //计ååå· public string planQty; //è®¡åæ°é public string partNum; //产åç¼å· public string planStartDate; //计åå¼å§æ¶é´ public string planEndDate; //计åç»ææ¶é´ public string comments; //夿³¨ public string customerName; //客æ·åç§° public string colorName; //é¢è²åç§° public string spec; //åå·è§æ ¼ public string cpNo; //è²ç²ç¼å· public string cpName; //è²ç²åç§° public string materialNo; //ææç¼å· public string materialName; //ææåç§° public string orderNumber; //订åç¼å· public string option1; //èªå®ä¹å段1ï¼ç¨äºè®°å½éè¶äº ä¿®æ¹æ¶é´ } #endregion #endregion #endregion #region å°è¯¸èæ°æ®åæ¥ public class XZG_DataSynchronizationController : ApiController { //è·åç³»ç»åæ° Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); DataSet ds; #region å°è¯¸èæ°æ®åæ¥å¯é¥ string APPID = "1f2e019a-ff51-f115-ce59-205606c72853"; string APPPWD = "YYLM01A"; #endregion #region è·åæå¡å°å public async Task<string> getServerAddressAsync() { //请æ±å°å string url = "https://js1.gomake.cn/kq_highnet_gof_connect/gof1.0/authorize"; //请æ±åæ° Dictionary<string, string> queryParams = new Dictionary<string, string> { {"appid", APPID}, {"ver", "1.0"}, {"seq",DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc) + "" } }; //è¿åç»æ string responseBody = await DefinedRequestSendMethod.GetDataAsyncByGetRequest(url, queryParams); //å°å符串转æ¢ä¸ºå¯¹è±¡ ServerAddressResponse serverAddressResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<ServerAddressResponse>(responseBody); //è·å对象ä¸çæ°æ® string res = serverAddressResponse.data.gofServerAdd; return res; } #endregion #region è·åéªè¯ç public async Task<string> getVerificationCodeAsync() { //请æ±å°å string url = await getServerAddressAsync() + "/gof1.0/verify"; //请æ±åæ° Dictionary<string, string> queryParams = new Dictionary<string, string> { {"appid", APPID}, {"ver", "1.0"}, {"seq",DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc) + "" } }; //è¿åç»æ string responseBody = await DefinedRequestSendMethod.GetDataAsyncByGetRequest(url, queryParams); //å°å符串转æ¢ä¸ºå¯¹è±¡ VerificationCodeResponse verificationCodeResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<VerificationCodeResponse>(responseBody); //è·å对象ä¸çæ°æ® string res = verificationCodeResponse.data.VerificationCode; return res; } #endregion #region è·åToken public async Task<string> getTokenAsync() { //请æ±å°å string url = await getServerAddressAsync() + "/gof1.0/key"; string verificationCode = await getVerificationCodeAsync(); //请æ±åæ° Dictionary<string, string> queryParams = new Dictionary<string, string> { {"appid", APPID}, {"ver", "1.0"}, {"seq",DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc) + "" }, {"pwd", DefinedRequestSendMethod.GetMD5( DefinedRequestSendMethod.GetMD5(verificationCode) + DefinedRequestSendMethod.GetMD5(APPPWD))} }; //è¿åç»æ string responseBody = await DefinedRequestSendMethod.GetDataAsyncByGetRequest(url, queryParams); //å°å符串转æ¢ä¸ºå¯¹è±¡ TokenResponse tokenResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<TokenResponse>(responseBody); //è·å对象ä¸çæ°æ® string res = tokenResponse.data.key; return res; } #endregion #region äº§åæ¡£æ¡ #region è·å产ååè¡¨ä¿¡æ¯ public async Task<MaterListResponse> getMaterListAsync() { //请æ±å°å string url = await getServerAddressAsync() + "/v2/GET/getProductAll"; string token = await getTokenAsync(); //请æ±åæ° Dictionary<string, string> queryParams = new Dictionary<string, string> { {"key", token}, {"page", "1"}, {"sidx", "lastUpdateTime"}, {"sord", "desc"}, {"systemType","IMM" } }; //è¿åç»æ string responseBody = await DefinedRequestSendMethod.GetDataAsyncByGetRequest(url, queryParams); //å°å符串转æ¢ä¸ºå¯¹è±¡ MaterListResponse materListResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<MaterListResponse>(responseBody); return materListResponse; } #endregion #region è·å产å详ç»ä¿¡æ¯ public async Task<MaterDetailResponse> getMaterDetailAsync(string url, string key, string partNum) { //请æ±å°å url = url + "/v2/GET/getProductDetails"; //请æ±åæ° Dictionary<string, string> queryParams = new Dictionary<string, string> { {"key", key}, {"partNum",partNum } }; //è¿åç»æ string responseBody = await DefinedRequestSendMethod.GetDataAsyncByGetRequest(url, queryParams); //å°å符串转æ¢ä¸ºå¯¹è±¡ MaterDetailResponse materDetailResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<MaterDetailResponse>(responseBody); return materDetailResponse; } #endregion #region æ°å¢äº§å public async Task<MaterialResponse> getAddMaterAsync(string url, Material material) { //请æ±å°å url = url + "/v2/POST/AddProduct"; //POST请æ±åæ° Dictionary<string, string> queryParams = new Dictionary<string, string> { {"key", DBUtility.ClsPub.isStrNull(material.key)}, {"productName", DBUtility.ClsPub.isStrNull(material.productName)}, {"partNum",DBUtility.ClsPub.isStrNull(material.partNum)}, {"sepc", DBUtility.ClsPub.isStrNull(material.sepc)}, {"weight", DBUtility.ClsPub.isStrNull(material.weight)}, {"headWeight", DBUtility.ClsPub.isStrNull(material.headWeight)}, {"cycletime", DBUtility.ClsPub.isStrNull(material.cycleTime)}, {"fightsPartnum", DBUtility.ClsPub.isStrNull(material.flightsPartnum)}, {"comments", DBUtility.ClsPub.isStrNull(material.comments)}, {"colorName", DBUtility.ClsPub.isStrNull(material.colorName)}, {"pieceWage", DBUtility.ClsPub.isStrNull(material.pieceWage)}, {"unit", DBUtility.ClsPub.isStrNull(material.unit)}, {"systemType", DBUtility.ClsPub.isStrNull(material.systemType)}, {"tdDocNo", DBUtility.ClsPub.isStrNull(material.tdDocNo)}, {"progressWay", DBUtility.ClsPub.isStrNull(material.progressWay)}, {"groupId", DBUtility.ClsPub.isStrNull(material.groupId)}, {"option1", DBUtility.ClsPub.isStrNull(material.option1)} }; //POST请æ±Bodyæ°æ® var postData = new { }; string json = Newtonsoft.Json.JsonConvert.SerializeObject(postData); //è¿åç»æ string responseBody = await DefinedRequestSendMethod.GetDataAsyncByPOSTRequest(url, queryParams, json); //å°å符串转æ¢ä¸ºå¯¹è±¡ MaterialResponse materialResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<MaterialResponse>(responseBody); return materialResponse; } #endregion #region ç¼è¾äº§å public async Task<MaterialEditResponse> getAddMaterEditAsync(string url, MaterialEdit material) { //请æ±å°å url = url + "/v2/POST/UpdateProduct"; //POST请æ±åæ° Dictionary<string, string> queryParams = new Dictionary<string, string> { {"key", DBUtility.ClsPub.isStrNull(material.key)}, {"productId", DBUtility.ClsPub.isStrNull(material.productId)}, {"productName", DBUtility.ClsPub.isStrNull(material.productName)}, {"partNum",DBUtility.ClsPub.isStrNull(material.partNum)}, {"cycletime", DBUtility.ClsPub.isStrNull(material.cycleTime)}, {"sepc", DBUtility.ClsPub.isStrNull(material.sepc)}, {"weight", DBUtility.ClsPub.isStrNull(material.weight)}, {"headWeight", DBUtility.ClsPub.isStrNull(material.headWeight)}, {"fightsPartnum", DBUtility.ClsPub.isStrNull(material.flightsPartnum)}, {"comments", DBUtility.ClsPub.isStrNull(material.comments)}, {"colorName", DBUtility.ClsPub.isStrNull(material.colorName)}, {"unit", DBUtility.ClsPub.isStrNull(material.unit)}, {"systemType", DBUtility.ClsPub.isStrNull(material.systemType)}, {"tdDocNo", DBUtility.ClsPub.isStrNull(material.tdDocNo)}, {"progressWay", DBUtility.ClsPub.isStrNull(material.progressWay)}, {"groupId", DBUtility.ClsPub.isStrNull(material.groupId)}, {"option1", DBUtility.ClsPub.isStrNull(material.option1)} }; //POST请æ±Bodyæ°æ® var postData = new { }; string json = Newtonsoft.Json.JsonConvert.SerializeObject(postData); //è¿åç»æ string responseBody = await DefinedRequestSendMethod.GetDataAsyncByPOSTRequest(url, queryParams, json); //å°å符串转æ¢ä¸ºå¯¹è±¡ MaterialEditResponse materialEditResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<MaterialEditResponse>(responseBody); return materialEditResponse; } #endregion #region äº§åæ¡£æ¡å®æ¶åæ¥_ä»ERPå°å°è¯¸è public async Task<json> productInfoSyncFromERPToXZG() { try { //请æ±å°å string url = await getServerAddressAsync(); string token = await getTokenAsync(); //è·åéè¶äºç©ææ°æ® List<Material> materials = new List<Material>(); string sql = @"select a.FNUMBER HNumber ,l.FNAME HName ,isnull(l.FSPECIFICATION,'') HModel ,'CLD-ERPå¯¼å ¥' HRemark ,unit.FNAME HUnitName ,convert(varchar(100),a.FMODIFYDATE,20) HUpdateDate from AIS20210811135644..T_BD_MATERIAL a with(nolock) inner join AIS20210811135644..T_BD_MATERIAL_L l with(nolock) on a.FMATERIALID=l.FMATERIALID inner join AIS20210811135644..T_BD_MATERIALSTOCK s with(nolock) on a.FMATERIALID=s.FMATERIALID inner join AIS20210811135644..T_BD_Unit_L unit with(nolock) on isnull(s.FSTOREUNITID,0) = unit.FUNITID Where l.FLOCALEID=2052 and unit.FLOCALEID = 2052 and a.FFORBIDSTATUS='A' and ( convert(varchar(100),a.FCREATEDATE,23) >= convert(varchar(100),DATEADD(day,-7,getdate()),23) or convert(varchar(100),a.FMODIFYDATE,23) >= convert(varchar(100),DATEADD(day,-7,getdate()),23) )"; DataSet ds = oCN.RunProcReturn(sql, "AIS20210811135644..T_BD_MATERIAL"); if (ds != null && ds.Tables.Count > 0) { for(int i = 0; i < ds.Tables[0].Rows.Count; i++) { Material material = new Material(); material.key = token; material.productName = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HName"]); material.partNum = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HNumber"]); material.sepc = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HModel"]); //material.weight = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i][""]); //material.headWeight = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i][""]); material.cycleTime = "1"; //material.flightsPartnum = ""; material.comments = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HRemark"]); //material.colorName = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i][""]); //material.pieceWage = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i][""]); material.unit = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HUnitName"]); material.systemType = "IMM"; material.tdDocNo = ""; //material.progressWay = "0"; //material.groupId = ""; material.option1 = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HUpdateDate"]); materials.Add(material); } } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "éè¶äºç©ææ°æ®è·å失败!"; objJsonResult.data = null; } //å¤æç©æå表ä¸çæ°æ®æ¯å¦å¨å°è¯¸èä¸å·²ç»åå¨ä¸å·²ç»æ¯ææ°æ°æ®ã妿å°è¯¸èä¸ä¸åå¨å忥å°å°è¯¸èã妿å°è¯¸èä¸åå¨ï¼åè¦çæ°æ®ã string errMsg = ""; List<Material> materials_waitSync = new List<Material>(); for(int i = 0; i < materials.Count; i++) { string HMaterNumber = materials[i].partNum; MaterDetailResponse materDetailResponse = await getMaterDetailAsync(url, token, HMaterNumber); if (materDetailResponse.code == "1") { if (materDetailResponse.data.details.option1 != materials[i].option1) { MaterialEdit materialEdit = new MaterialEdit(); materialEdit.key = token; materialEdit.productId = materDetailResponse.data.details.partId; materialEdit.productName = DBUtility.ClsPub.isStrNull(materials[i].productName); materialEdit.partNum = DBUtility.ClsPub.isStrNull(materials[i].partNum); materialEdit.sepc = DBUtility.ClsPub.isStrNull(materials[i].sepc); //materialEdit.weight = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i][""]); //materialEdit.headWeight = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i][""]); materialEdit.cycleTime = "1"; //materialEdit.flightsPartnum = ""; materialEdit.comments = DBUtility.ClsPub.isStrNull(materials[i].comments); //materialEdit.colorName = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i][""]); //materialEdit.pieceWage = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i][""]); materialEdit.unit = DBUtility.ClsPub.isStrNull(materials[i].unit); materialEdit.systemType = "IMM"; materialEdit.tdDocNo = ""; //materialEdit.progressWay = ""; //materialEdit.groupId = ""; materialEdit.option1 = DBUtility.ClsPub.isStrNull(materials[i].option1); MaterialEditResponse materialEditResponse = await getAddMaterEditAsync(url, materialEdit); if (materialEditResponse.code == "0") { errMsg += "ã" + HMaterNumber + "ã" + materialEditResponse.msg + "ï¼"; } } } else { MaterialResponse materialResponse = await getAddMaterAsync(url, materials[i]); if (materialResponse.code == "0") { errMsg += "ã" + HMaterNumber + "ã" + materialResponse.msg + "ï¼"; } } } if (errMsg.Length > 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ¥å¤±è´¥!" + errMsg; objJsonResult.data = null; } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "忥æå!" + errMsg; objJsonResult.data = null; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ¥å¤±è´¥!" + e.Message; objJsonResult.data = null; return objJsonResult; } } #endregion #endregion #region ç产订å #region è·åç产订ååè¡¨ä¿¡æ¯ public async Task<ICMOListResponse> getICMOListAsync() { //请æ±å°å string url = await getServerAddressAsync() + "/v2/GET/getPlanOrder"; string token = await getTokenAsync(); //请æ±åæ° Dictionary<string, string> queryParams = new Dictionary<string, string> { {"key", token}, {"indexPage", "1"}, {"planStartDate", DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")}, {"planEndDate", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")} }; //è¿åç»æ string responseBody = await DefinedRequestSendMethod.GetDataAsyncByGetRequest(url, queryParams); //å°å符串转æ¢ä¸ºå¯¹è±¡ ICMOListResponse icmoListResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<ICMOListResponse>(responseBody); return icmoListResponse; } #endregion #region è·åç产订å详ç»ä¿¡æ¯ public async Task<ICMODetailResponse> getICMODetailAsync(string url, string key, string planNum) { try { //请æ±å°å url = url + "/v2/GET/getPlanOrderDetail"; //请æ±åæ° Dictionary<string, string> queryParams = new Dictionary<string, string> { {"key", key}, {"planNum",planNum } }; //è¿åç»æ string responseBody = await DefinedRequestSendMethod.GetDataAsyncByGetRequest(url, queryParams); //å°å符串转æ¢ä¸ºå¯¹è±¡ ICMODetailResponse icmoDetailResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<ICMODetailResponse>(responseBody); return icmoDetailResponse; }catch(Exception e) { return new ICMODetailResponse(); } } #endregion #region æ°å¢ç产订å public async Task<ICMOResponse> getAddICMOAsync(string url, ICMO icmo) { //请æ±å°å url = url + "/v2/POST/addPlan"; //POST请æ±åæ° Dictionary<string, string> queryParams = new Dictionary<string, string> { {"key", DBUtility.ClsPub.isStrNull(icmo.key)}, {"planNumber", DBUtility.ClsPub.isStrNull(icmo.planNumber)}, {"planQty",DBUtility.ClsPub.isStrNull(icmo.planQty)}, {"partNum", DBUtility.ClsPub.isStrNull(icmo.partNum)}, {"planStartDate", DBUtility.ClsPub.isStrNull(icmo.planStartDate)}, {"planEndDate", DBUtility.ClsPub.isStrNull(icmo.planEndDate)}, {"comments", DBUtility.ClsPub.isStrNull(icmo.comments)}, {"customerName", DBUtility.ClsPub.isStrNull(icmo.customerName)}, {"colorName", DBUtility.ClsPub.isStrNull(icmo.colorName)}, {"spec", DBUtility.ClsPub.isStrNull(icmo.spec)}, {"cpNo", DBUtility.ClsPub.isStrNull(icmo.cpNo)}, {"cpName", DBUtility.ClsPub.isStrNull(icmo.cpName)}, {"materialNo", DBUtility.ClsPub.isStrNull(icmo.materialNo)}, {"materialName", DBUtility.ClsPub.isStrNull(icmo.materialName)}, {"orderNumber", DBUtility.ClsPub.isStrNull(icmo.orderNumber)}, {"option1", DBUtility.ClsPub.isStrNull(icmo.option1)} }; //POST请æ±Bodyæ°æ® var postData = new { }; string json = Newtonsoft.Json.JsonConvert.SerializeObject(postData); //è¿åç»æ string responseBody = await DefinedRequestSendMethod.GetDataAsyncByPOSTRequest(url, queryParams, json); //å°å符串转æ¢ä¸ºå¯¹è±¡ ICMOResponse icmoResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<ICMOResponse>(responseBody); return icmoResponse; } #endregion #region ç¼è¾ç产订å public async Task<ICMOEditResponse> getAddICMOEditAsync(string url, ICMOEdit icmo) { //请æ±å°å url = url + "/v2/POST/updatePlanInfo"; //POST请æ±åæ° Dictionary<string, string> queryParams = new Dictionary<string, string> { {"key", DBUtility.ClsPub.isStrNull(icmo.key)}, {"planId", DBUtility.ClsPub.isStrNull(icmo.planId)}, {"planNumber", DBUtility.ClsPub.isStrNull(icmo.planNumber)}, {"planQty",DBUtility.ClsPub.isStrNull(icmo.planQty)}, {"partNum", DBUtility.ClsPub.isStrNull(icmo.partNum)}, {"planStartDate", DBUtility.ClsPub.isStrNull(icmo.planStartDate)}, {"planEndDate", DBUtility.ClsPub.isStrNull(icmo.planEndDate)}, {"comments", DBUtility.ClsPub.isStrNull(icmo.comments)}, {"customerName", DBUtility.ClsPub.isStrNull(icmo.customerName)}, {"colorName", DBUtility.ClsPub.isStrNull(icmo.colorName)}, {"spec", DBUtility.ClsPub.isStrNull(icmo.spec)}, {"cpNo", DBUtility.ClsPub.isStrNull(icmo.cpNo)}, {"cpName", DBUtility.ClsPub.isStrNull(icmo.cpName)}, {"materialNo", DBUtility.ClsPub.isStrNull(icmo.materialNo)}, {"materialName", DBUtility.ClsPub.isStrNull(icmo.materialName)}, {"orderNumber", DBUtility.ClsPub.isStrNull(icmo.orderNumber)}, {"option1", DBUtility.ClsPub.isStrNull(icmo.option1)} }; //POST请æ±Bodyæ°æ® var postData = new { }; string json = Newtonsoft.Json.JsonConvert.SerializeObject(postData); //è¿åç»æ string responseBody = await DefinedRequestSendMethod.GetDataAsyncByPOSTRequest(url, queryParams, json); //å°å符串转æ¢ä¸ºå¯¹è±¡ ICMOEditResponse icmoEditResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<ICMOEditResponse>(responseBody); return icmoEditResponse; } #endregion #region ç产订å宿¶åæ¥_ä»ERPå°å°è¯¸è public async Task<json> icmoInfoSyncFromERPToXZG() { try { //请æ±å°å string url = await getServerAddressAsync(); string token = await getTokenAsync(); //è·åéè¶äºçäº§è®¢åæ°æ® List<ICMO> icmos = new List<ICMO>(); string sql = @"select cast(a.FBILLNO as varchar(100)) + '_' + cast(b.FSEQ as varchar(10)) 计ååå· ,cast(b.FQTY as int) è®¡åæ°é ,m.FNUMBER 产åç¼å· ,convert(varchar(100),b.FPLANSTARTDATE,20) 计åå¼å·¥æ¥æ ,convert(varchar(100),b.FPLANFINISHDATE,20) 计åå®å·¥æ¥æ ,'ERPå¯¼å ¥' 夿³¨ ,'' 客æ·åç§° ,'' é¢è² ,isnull(m_l.FSPECIFICATION,'') åå·è§æ ¼ ,'' è²ç²ç¼å· ,'' è²ç²åç§° ,'' ææç¼å· ,'' ææåç§° ,a.FBILLNO 订åç¼å· ,ISNULL(convert(varchar(100),c.FSTARTDATE ,20),'') å¼å·¥æ¥æ ,convert(varchar(100),a.FMODIFYDATE,20) ä¿®æ¹æ¥æ from AIS20210811135644..T_PRD_MO as a inner join AIS20210811135644..T_PRD_MOENTRY as b with(nolock) on a.FID = b.FID inner join AIS20210811135644..T_PRD_MOENTRY_A as c with(nolock) on b.FID = c.FID and b.FEntryID = c.FEntryID inner join AIS20210811135644..T_BD_MATERIAL as m with(nolock) on b.FMATERIALID = m.FMATERIALID inner join AIS20210811135644..T_BD_MATERIAL_L as m_l with(nolock) on m.FMATERIALID=m_l.FMATERIALID where m_l.FLOCALEID=2052 and isnull(a.FAPPROVERID,0)<> 0 --å·²ç»å®¡æ ¸ and isnull(c.fstatus,0) in (4) --ä¸å¡ç¶æï¼1:计åï¼2:计å确认ï¼3:ä¸è¾¾ï¼4:å¼å·¥ï¼5:å®å·¥ï¼6:ç»æ¡ï¼ and ( convert(varchar(100),a.fmodifydate,23) >= convert(varchar(100),dateadd(day,-7,getdate()),23) or convert(varchar(100),c.fstartdate ,23) >= convert(varchar(100),dateadd(day,-7,getdate()),23) ) and cast(a.FBILLNO as varchar(100)) + '_' + cast(b.FSEQ as varchar(10)) = 'MO000269_1'"; DataSet ds = oCN.RunProcReturn(sql, "AIS20210811135644..T_PRD_MO"); if (ds != null && ds.Tables.Count > 0) { for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { ICMO icmo = new ICMO(); icmo.key = token; icmo.planNumber = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["计ååå·"]); icmo.planQty = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["è®¡åæ°é"]); icmo.partNum = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["产åç¼å·"]); icmo.planStartDate = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["计åå¼å·¥æ¥æ"]); icmo.planEndDate = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["计åå®å·¥æ¥æ"]); icmo.comments = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["夿³¨"]); icmo.customerName = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["客æ·åç§°"]); icmo.colorName = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["é¢è²"]); icmo.spec = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["åå·è§æ ¼"]); icmo.cpNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["è²ç²ç¼å·"]); icmo.cpName = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["è²ç²åç§°"]); icmo.materialNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["ææç¼å·"]); icmo.materialName = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["ææåç§°"]); icmo.orderNumber = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["订åç¼å·"]); icmo.option1 = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["ä¿®æ¹æ¥æ"]); icmos.Add(icmo); } } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "éè¶äºçäº§è®¢åæ°æ®è·å失败!"; objJsonResult.data = null; } //夿ç产订åå表ä¸çæ°æ®æ¯å¦å¨å°è¯¸èä¸å·²ç»åå¨ä¸å·²ç»æ¯ææ°æ°æ®ã妿å°è¯¸èä¸ä¸åå¨å忥å°å°è¯¸èã妿å°è¯¸èä¸åå¨ï¼åè¦çæ°æ®ã string errMsg = ""; for (int i = 0; i < icmos.Count; i++) { string HPlanNumber = icmos[i].planNumber; ICMODetailResponse icmoDetailResponse = await getICMODetailAsync(url, token, HPlanNumber); if (icmoDetailResponse.code == "1") { if (icmoDetailResponse.data[0].option1 != icmos[i].option1) { ICMOEdit icmoEdit = new ICMOEdit(); icmoEdit.key = token; icmoEdit.planId = icmoDetailResponse.data[0].planId; icmoEdit.planNumber = DBUtility.ClsPub.isStrNull(icmos[i].planNumber); icmoEdit.planQty = DBUtility.ClsPub.isStrNull(icmos[i].planQty); icmoEdit.partNum = DBUtility.ClsPub.isStrNull(icmos[i].partNum); icmoEdit.planStartDate = DBUtility.ClsPub.isStrNull(icmos[i].planStartDate); icmoEdit.planEndDate = DBUtility.ClsPub.isStrNull(icmos[i].planEndDate); icmoEdit.comments = DBUtility.ClsPub.isStrNull(icmos[i].comments); icmoEdit.customerName = DBUtility.ClsPub.isStrNull(icmos[i].customerName); icmoEdit.colorName = DBUtility.ClsPub.isStrNull(icmos[i].colorName); icmoEdit.spec = DBUtility.ClsPub.isStrNull(icmos[i].spec); icmoEdit.cpName = DBUtility.ClsPub.isStrNull(icmos[i].cpName); icmoEdit.materialNo = DBUtility.ClsPub.isStrNull(icmos[i].materialNo); icmoEdit.materialName = DBUtility.ClsPub.isStrNull(icmos[i].materialName); icmoEdit.orderNumber = DBUtility.ClsPub.isStrNull(icmos[i].orderNumber); icmoEdit.option1 = DBUtility.ClsPub.isStrNull(icmos[i].option1); ICMOEditResponse icmoEditResponse = await getAddICMOEditAsync(url, icmoEdit); if (icmoEditResponse.code == "0") { errMsg += "ã" + HPlanNumber + "ã" + icmoEditResponse.msg + "ï¼"; } } } else { ICMOResponse icmoResponse = await getAddICMOAsync(url, icmos[i]); if (icmoResponse.code == "0") { errMsg += "ã" + HPlanNumber + "ã" + icmoResponse.msg + "ï¼"; } } } if (errMsg.Length > 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ¥å¤±è´¥!" + errMsg; objJsonResult.data = null; } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "忥æå!" + errMsg; objJsonResult.data = null; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ¥å¤±è´¥!" + e.Message; objJsonResult.data = null; return objJsonResult; } } #endregion #endregion } #endregion } #region HTTP请æ±ç±» class DefinedRequestSendMethod { #region Getè¯·æ± public static async Task<string> GetDataAsyncByGetRequest(string url, Dictionary<string, string> queryParams) { //è¿åå符串 string responseBody = ""; using (HttpClient client = new HttpClient()) { string apiUrl = url + ToQueryString(queryParams); HttpResponseMessage response = await client.GetAsync(apiUrl); response.EnsureSuccessStatusCode(); responseBody = await response.Content.ReadAsStringAsync(); } return responseBody; } #endregion #region POSTè¯·æ± public static async Task<string> GetDataAsyncByPOSTRequest(string url, Dictionary<string, string> queryParams, string json) { //è¿åå符串 string responseBody = ""; using (HttpClient client = new HttpClient()) { //åå¤é¾æ¥ url = url + ToQueryString(queryParams); // åå¤POSTæ°æ® var content = new StringContent(json, Encoding.UTF8, "application/json"); // åéPOSTè¯·æ± HttpResponseMessage response = await client.PostAsync(url, content); response.EnsureSuccessStatusCode(); responseBody = await response.Content.ReadAsStringAsync(); } return responseBody; } #endregion #region åæ°å¤ç static string ToQueryString(Dictionary<string, string> parameters) { string paramsStr = ""; foreach (var param in parameters) { if (paramsStr.Length == 0) { paramsStr += param.Key + "=" + param.Value; } else { paramsStr += "&" + param.Key + "=" + param.Value; } } return "?" + paramsStr; //var query = System.Web.HttpUtility.ParseQueryString(string.Empty); //foreach (var param in parameters) //{ // query[param.Key] = param.Value; //} //return "?" + query.ToString(); } #endregion #region MD5å å¯ public static string GetMD5(string input) { using (MD5 md5 = MD5.Create()) { byte[] inputBytes = Encoding.UTF8.GetBytes(input); byte[] hashBytes = md5.ComputeHash(inputBytes); StringBuilder sb = new StringBuilder(); for (int i = 0; i < hashBytes.Length; i++) { sb.Append(hashBytes[i].ToString("x2")); // "x2"表示å°åç16è¿å¶æ ¼å¼ } return sb.ToString(); } } #endregion } #endregion WebAPI/Properties/PublishProfiles/FolderProfile1.pubxml.user
@@ -4,7 +4,7 @@ --> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <History>True|2025-04-18T05:54:27.4746888Z;False|2025-04-18T13:53:45.2296528+08:00;False|2025-04-18T13:53:29.7890054+08:00;False|2025-04-18T13:53:23.5770264+08:00;False|2025-04-18T13:53:18.0054565+08:00;True|2025-04-18T13:51:28.8449212+08:00;True|2025-04-18T13:24:50.1548645+08:00;True|2025-04-18T13:17:41.8781012+08:00;True|2025-04-18T13:07:11.4243777+08:00;True|2025-04-18T13:03:51.8972162+08:00;True|2025-04-18T12:59:24.3674835+08:00;True|2025-04-18T12:54:51.7546338+08:00;True|2025-04-18T12:51:54.3531129+08:00;False|2025-04-18T12:51:42.0198325+08:00;True|2025-04-18T09:11:06.5087174+08:00;False|2025-04-18T09:10:56.3178793+08:00;True|2025-04-17T11:20:10.9926709+08:00;True|2025-04-17T11:01:50.8902725+08:00;True|2025-04-17T10:53:40.1335186+08:00;True|2025-04-17T10:50:33.6109824+08:00;True|2025-04-17T10:31:35.1972930+08:00;True|2025-04-17T10:27:13.0718237+08:00;False|2025-04-17T10:27:05.4243104+08:00;True|2025-04-17T10:21:17.1039399+08:00;True|2025-04-17T10:17:30.5257362+08:00;True|2025-04-17T09:04:16.5959099+08:00;False|2025-04-17T09:04:08.5643163+08:00;True|2025-04-16T16:50:10.4001088+08:00;True|2025-04-16T16:37:30.0492166+08:00;False|2025-04-16T16:37:20.9070255+08:00;True|2025-04-15T14:55:05.4396103+08:00;True|2025-04-15T14:48:11.6729078+08:00;True|2025-04-15T14:18:53.0805178+08:00;True|2025-04-15T13:48:11.5252569+08:00;True|2025-04-15T13:37:14.4720847+08:00;True|2025-04-15T11:19:10.1766439+08:00;True|2025-04-15T11:16:15.9677953+08:00;True|2025-04-15T11:01:18.4337723+08:00;False|2025-04-15T11:01:06.9132978+08:00;True|2025-04-15T10:55:53.9650790+08:00;False|2025-04-15T10:55:45.2763971+08:00;True|2025-04-09T11:24:21.9466324+08:00;True|2025-04-09T11:14:25.0603792+08:00;True|2025-04-09T11:03:10.0252216+08:00;False|2025-04-09T11:03:01.0837419+08:00;True|2025-04-08T15:00:39.6673341+08:00;True|2025-04-08T14:55:20.5714659+08:00;True|2025-04-08T14:41:57.1855163+08:00;True|2025-04-08T13:31:03.4382266+08:00;True|2025-04-08T11:20:45.0300955+08:00;True|2025-04-08T10:59:59.6997668+08:00;False|2025-04-08T10:59:53.2827828+08:00;True|2025-04-08T10:48:17.4232977+08:00;False|2025-04-08T10:48:09.5363986+08:00;True|2025-04-03T13:53:30.6471699+08:00;False|2025-04-03T13:53:22.8762999+08:00;True|2025-04-02T12:47:31.3375226+08:00;False|2025-04-02T12:47:24.2095072+08:00;True|2025-04-01T16:29:52.7465502+08:00;False|2025-04-01T16:29:33.7844649+08:00;True|2025-03-28T16:22:29.8664470+08:00;True|2025-03-28T15:53:12.1106288+08:00;False|2025-03-28T15:53:01.4674242+08:00;True|2025-03-28T13:34:17.5506822+08:00;False|2025-03-28T13:34:09.5853308+08:00;True|2025-03-26T12:42:08.9630741+08:00;True|2025-03-26T12:40:07.7144561+08:00;True|2025-03-26T12:30:37.3503331+08:00;True|2025-03-26T12:26:47.5061658+08:00;True|2025-03-26T10:54:47.2556717+08:00;True|2025-03-26T10:49:59.7897145+08:00;True|2025-03-26T10:47:02.6195828+08:00;False|2025-03-26T10:46:54.9421244+08:00;True|2025-03-26T01:10:19.1227462+08:00;True|2025-03-26T01:00:04.3583740+08:00;True|2025-03-26T00:38:57.4757071+08:00;True|2025-03-26T00:28:24.9370188+08:00;True|2025-03-26T00:04:05.4507425+08:00;True|2025-03-25T23:06:56.2284828+08:00;False|2025-03-25T23:06:46.7023339+08:00;True|2025-03-25T22:57:08.3127897+08:00;False|2025-03-25T22:55:05.8028873+08:00;False|2025-03-25T22:54:51.2053101+08:00;False|2025-03-04T11:23:36.7757604+08:00;True|2025-02-12T14:05:06.1068587+08:00;False|2025-02-12T14:03:43.3961038+08:00;True|2025-01-18T09:42:50.3629397+08:00;True|2025-01-18T09:39:16.1773412+08:00;True|2025-01-17T11:15:39.4147082+08:00;False|2025-01-17T11:15:09.0033498+08:00;True|2025-01-14T10:20:31.1504093+08:00;False|2025-01-14T10:19:59.1429931+08:00;True|2025-01-10T16:29:54.8671377+08:00;False|2025-01-10T16:29:05.0650370+08:00;True|2025-01-04T14:30:56.5041884+08:00;True|2025-01-04T14:26:52.7448761+08:00;True|2025-01-04T14:23:27.9956967+08:00;True|2025-01-04T14:12:46.2410106+08:00;True|2025-01-04T14:09:33.1727375+08:00;True|2025-01-04T14:07:16.3373347+08:00;False|2025-01-04T14:06:33.4982458+08:00;True|2024-12-31T13:36:55.7394582+08:00;False|2024-12-31T13:35:58.6205647+08:00;True|2024-12-28T15:59:32.1394796+08:00;True|2024-12-28T13:48:20.4283118+08:00;True|2024-12-28T13:43:39.8159616+08:00;True|2024-12-28T13:23:58.4183285+08:00;True|2024-12-28T13:19:13.0583263+08:00;True|2024-12-28T13:12:03.2648502+08:00;True|2024-12-28T13:04:22.6803754+08:00;False|2024-12-28T13:03:56.5993252+08:00;True|2024-12-28T10:50:06.1597154+08:00;True|2024-12-28T10:27:58.7075320+08:00;False|2024-12-28T10:27:09.9450571+08:00;True|2024-12-24T10:52:25.3403292+08:00;False|2024-12-24T10:51:41.8017370+08:00;True|2024-12-23T15:45:21.7729300+08:00;True|2024-12-23T15:31:38.8549407+08:00;True|2024-12-23T15:20:26.2361671+08:00;True|2024-12-23T13:40:03.2774116+08:00;False|2024-12-23T13:39:39.8510770+08:00;True|2024-12-23T13:11:15.3232454+08:00;True|2024-12-23T13:05:43.3057458+08:00;True|2024-12-16T10:57:23.0694936+08:00;True|2024-12-16T10:03:48.1938775+08:00;True|2024-12-16T09:38:57.3052219+08:00;False|2024-12-16T09:38:31.7097388+08:00;True|2024-12-16T09:25:38.3751534+08:00;False|2024-12-16T09:24:19.3952981+08:00;True|2024-12-11T22:41:13.2881405+08:00;False|2024-12-11T22:40:26.3239379+08:00;True|2024-12-11T22:14:41.4392948+08:00;True|2024-12-11T22:03:03.6823866+08:00;True|2024-12-11T21:48:51.7423044+08:00;False|2024-12-11T21:47:55.6236616+08:00;True|2024-12-02T14:57:10.0773563+08:00;False|2024-12-02T14:56:35.6440156+08:00;True|2024-11-26T08:55:53.9125170+08:00;True|2024-11-26T08:24:31.3112433+08:00;False|2024-11-26T08:23:46.0894924+08:00;True|2024-11-20T10:16:03.7893118+08:00;False|2024-11-20T10:15:23.2632533+08:00;True|2024-11-20T09:06:55.2799108+08:00;False|2024-11-20T09:05:45.8751214+08:00;True|2024-11-15T10:50:02.2079520+08:00;False|2024-11-15T10:49:22.4156447+08:00;True|2024-11-11T16:53:33.6615343+08:00;False|2024-11-11T16:52:17.7499691+08:00;False|2024-11-06T11:32:23.8339166+08:00;True|2024-10-24T20:08:16.1196372+08:00;True|2024-10-24T14:53:21.0804405+08:00;False|2024-10-24T14:50:14.4659302+08:00;</History> <History>True|2025-04-23T07:11:05.1490455Z;True|2025-04-23T14:22:24.5406543+08:00;False|2025-04-23T14:21:47.8685695+08:00;True|2025-04-18T13:54:27.4746888+08:00;False|2025-04-18T13:53:45.2296528+08:00;False|2025-04-18T13:53:29.7890054+08:00;False|2025-04-18T13:53:23.5770264+08:00;False|2025-04-18T13:53:18.0054565+08:00;True|2025-04-18T13:51:28.8449212+08:00;True|2025-04-18T13:24:50.1548645+08:00;True|2025-04-18T13:17:41.8781012+08:00;True|2025-04-18T13:07:11.4243777+08:00;True|2025-04-18T13:03:51.8972162+08:00;True|2025-04-18T12:59:24.3674835+08:00;True|2025-04-18T12:54:51.7546338+08:00;True|2025-04-18T12:51:54.3531129+08:00;False|2025-04-18T12:51:42.0198325+08:00;True|2025-04-18T09:11:06.5087174+08:00;False|2025-04-18T09:10:56.3178793+08:00;True|2025-04-17T11:20:10.9926709+08:00;True|2025-04-17T11:01:50.8902725+08:00;True|2025-04-17T10:53:40.1335186+08:00;True|2025-04-17T10:50:33.6109824+08:00;True|2025-04-17T10:31:35.1972930+08:00;True|2025-04-17T10:27:13.0718237+08:00;False|2025-04-17T10:27:05.4243104+08:00;True|2025-04-17T10:21:17.1039399+08:00;True|2025-04-17T10:17:30.5257362+08:00;True|2025-04-17T09:04:16.5959099+08:00;False|2025-04-17T09:04:08.5643163+08:00;True|2025-04-16T16:50:10.4001088+08:00;True|2025-04-16T16:37:30.0492166+08:00;False|2025-04-16T16:37:20.9070255+08:00;True|2025-04-15T14:55:05.4396103+08:00;True|2025-04-15T14:48:11.6729078+08:00;True|2025-04-15T14:18:53.0805178+08:00;True|2025-04-15T13:48:11.5252569+08:00;True|2025-04-15T13:37:14.4720847+08:00;True|2025-04-15T11:19:10.1766439+08:00;True|2025-04-15T11:16:15.9677953+08:00;True|2025-04-15T11:01:18.4337723+08:00;False|2025-04-15T11:01:06.9132978+08:00;True|2025-04-15T10:55:53.9650790+08:00;False|2025-04-15T10:55:45.2763971+08:00;True|2025-04-09T11:24:21.9466324+08:00;True|2025-04-09T11:14:25.0603792+08:00;True|2025-04-09T11:03:10.0252216+08:00;False|2025-04-09T11:03:01.0837419+08:00;True|2025-04-08T15:00:39.6673341+08:00;True|2025-04-08T14:55:20.5714659+08:00;True|2025-04-08T14:41:57.1855163+08:00;True|2025-04-08T13:31:03.4382266+08:00;True|2025-04-08T11:20:45.0300955+08:00;True|2025-04-08T10:59:59.6997668+08:00;False|2025-04-08T10:59:53.2827828+08:00;True|2025-04-08T10:48:17.4232977+08:00;False|2025-04-08T10:48:09.5363986+08:00;True|2025-04-03T13:53:30.6471699+08:00;False|2025-04-03T13:53:22.8762999+08:00;True|2025-04-02T12:47:31.3375226+08:00;False|2025-04-02T12:47:24.2095072+08:00;True|2025-04-01T16:29:52.7465502+08:00;False|2025-04-01T16:29:33.7844649+08:00;True|2025-03-28T16:22:29.8664470+08:00;True|2025-03-28T15:53:12.1106288+08:00;False|2025-03-28T15:53:01.4674242+08:00;True|2025-03-28T13:34:17.5506822+08:00;False|2025-03-28T13:34:09.5853308+08:00;True|2025-03-26T12:42:08.9630741+08:00;True|2025-03-26T12:40:07.7144561+08:00;True|2025-03-26T12:30:37.3503331+08:00;True|2025-03-26T12:26:47.5061658+08:00;True|2025-03-26T10:54:47.2556717+08:00;True|2025-03-26T10:49:59.7897145+08:00;True|2025-03-26T10:47:02.6195828+08:00;False|2025-03-26T10:46:54.9421244+08:00;True|2025-03-26T01:10:19.1227462+08:00;True|2025-03-26T01:00:04.3583740+08:00;True|2025-03-26T00:38:57.4757071+08:00;True|2025-03-26T00:28:24.9370188+08:00;True|2025-03-26T00:04:05.4507425+08:00;True|2025-03-25T23:06:56.2284828+08:00;False|2025-03-25T23:06:46.7023339+08:00;True|2025-03-25T22:57:08.3127897+08:00;False|2025-03-25T22:55:05.8028873+08:00;False|2025-03-25T22:54:51.2053101+08:00;False|2025-03-04T11:23:36.7757604+08:00;True|2025-02-12T14:05:06.1068587+08:00;False|2025-02-12T14:03:43.3961038+08:00;True|2025-01-18T09:42:50.3629397+08:00;True|2025-01-18T09:39:16.1773412+08:00;True|2025-01-17T11:15:39.4147082+08:00;False|2025-01-17T11:15:09.0033498+08:00;True|2025-01-14T10:20:31.1504093+08:00;False|2025-01-14T10:19:59.1429931+08:00;True|2025-01-10T16:29:54.8671377+08:00;False|2025-01-10T16:29:05.0650370+08:00;True|2025-01-04T14:30:56.5041884+08:00;True|2025-01-04T14:26:52.7448761+08:00;True|2025-01-04T14:23:27.9956967+08:00;True|2025-01-04T14:12:46.2410106+08:00;True|2025-01-04T14:09:33.1727375+08:00;True|2025-01-04T14:07:16.3373347+08:00;False|2025-01-04T14:06:33.4982458+08:00;True|2024-12-31T13:36:55.7394582+08:00;False|2024-12-31T13:35:58.6205647+08:00;True|2024-12-28T15:59:32.1394796+08:00;True|2024-12-28T13:48:20.4283118+08:00;True|2024-12-28T13:43:39.8159616+08:00;True|2024-12-28T13:23:58.4183285+08:00;True|2024-12-28T13:19:13.0583263+08:00;True|2024-12-28T13:12:03.2648502+08:00;True|2024-12-28T13:04:22.6803754+08:00;False|2024-12-28T13:03:56.5993252+08:00;True|2024-12-28T10:50:06.1597154+08:00;True|2024-12-28T10:27:58.7075320+08:00;False|2024-12-28T10:27:09.9450571+08:00;True|2024-12-24T10:52:25.3403292+08:00;False|2024-12-24T10:51:41.8017370+08:00;True|2024-12-23T15:45:21.7729300+08:00;True|2024-12-23T15:31:38.8549407+08:00;True|2024-12-23T15:20:26.2361671+08:00;True|2024-12-23T13:40:03.2774116+08:00;False|2024-12-23T13:39:39.8510770+08:00;True|2024-12-23T13:11:15.3232454+08:00;True|2024-12-23T13:05:43.3057458+08:00;True|2024-12-16T10:57:23.0694936+08:00;True|2024-12-16T10:03:48.1938775+08:00;True|2024-12-16T09:38:57.3052219+08:00;False|2024-12-16T09:38:31.7097388+08:00;True|2024-12-16T09:25:38.3751534+08:00;False|2024-12-16T09:24:19.3952981+08:00;True|2024-12-11T22:41:13.2881405+08:00;False|2024-12-11T22:40:26.3239379+08:00;True|2024-12-11T22:14:41.4392948+08:00;True|2024-12-11T22:03:03.6823866+08:00;True|2024-12-11T21:48:51.7423044+08:00;False|2024-12-11T21:47:55.6236616+08:00;True|2024-12-02T14:57:10.0773563+08:00;False|2024-12-02T14:56:35.6440156+08:00;True|2024-11-26T08:55:53.9125170+08:00;True|2024-11-26T08:24:31.3112433+08:00;False|2024-11-26T08:23:46.0894924+08:00;True|2024-11-20T10:16:03.7893118+08:00;False|2024-11-20T10:15:23.2632533+08:00;True|2024-11-20T09:06:55.2799108+08:00;False|2024-11-20T09:05:45.8751214+08:00;True|2024-11-15T10:50:02.2079520+08:00;False|2024-11-15T10:49:22.4156447+08:00;True|2024-11-11T16:53:33.6615343+08:00;False|2024-11-11T16:52:17.7499691+08:00;False|2024-11-06T11:32:23.8339166+08:00;True|2024-10-24T20:08:16.1196372+08:00;True|2024-10-24T14:53:21.0804405+08:00;False|2024-10-24T14:50:14.4659302+08:00;</History> <_PublishTargetUrl>D:\ç½ç«åå¸\æºäºMESWMS\API</_PublishTargetUrl> </PropertyGroup> <ItemGroup> @@ -45,28 +45,28 @@ <publishTime>02/22/2013 16:43:40</publishTime> </File> <File Include="bin/BLL.dll"> <publishTime>04/18/2025 13:54:11</publishTime> <publishTime>04/21/2025 20:28:33</publishTime> </File> <File Include="bin/BLL.pdb"> <publishTime>04/18/2025 13:54:11</publishTime> <publishTime>04/21/2025 20:28:33</publishTime> </File> <File Include="bin/BouncyCastle.Crypto.dll"> <publishTime>12/18/2020 05:32:28</publishTime> </File> <File Include="bin/DAL.dll"> <publishTime>04/18/2025 13:54:09</publishTime> <publishTime>04/21/2025 20:28:30</publishTime> </File> <File Include="bin/DAL.pdb"> <publishTime>04/18/2025 13:54:09</publishTime> <publishTime>04/21/2025 20:28:30</publishTime> </File> <File Include="bin/Dapper.dll"> <publishTime>07/22/2016 22:52:40</publishTime> </File> <File Include="bin/DBUtility.dll"> <publishTime>04/18/2025 13:54:01</publishTime> <publishTime>04/21/2025 20:28:21</publishTime> </File> <File Include="bin/DBUtility.pdb"> <publishTime>04/18/2025 13:54:01</publishTime> <publishTime>04/21/2025 20:28:21</publishTime> </File> <File Include="bin/Grpc.Core.Api.dll"> <publishTime>03/22/2022 13:17:26</publishTime> @@ -111,10 +111,10 @@ <publishTime>07/25/2012 19:48:56</publishTime> </File> <File Include="bin/Model.dll"> <publishTime>04/18/2025 13:54:02</publishTime> <publishTime>04/21/2025 20:28:22</publishTime> </File> <File Include="bin/Model.pdb"> <publishTime>04/18/2025 13:54:02</publishTime> <publishTime>04/21/2025 20:28:22</publishTime> </File> <File Include="bin/Models/ClsSc_MouldScrapOutBillMain.cs"> <publishTime>04/06/2023 15:57:02</publishTime> @@ -147,34 +147,34 @@ <publishTime>10/23/2021 17:07:54</publishTime> </File> <File Include="bin/Pub_Class.dll"> <publishTime>04/18/2025 13:53:57</publishTime> <publishTime>04/21/2025 20:28:18</publishTime> </File> <File Include="bin/Pub_Class.pdb"> <publishTime>04/18/2025 13:53:57</publishTime> <publishTime>04/21/2025 20:28:18</publishTime> </File> <File Include="bin/Pub_Control.dll"> <publishTime>04/18/2025 13:54:00</publishTime> <publishTime>04/21/2025 20:28:19</publishTime> </File> <File Include="bin/Pub_Control.pdb"> <publishTime>04/18/2025 13:54:00</publishTime> <publishTime>04/21/2025 20:28:19</publishTime> </File> <File Include="bin/RestSharp.dll"> <publishTime>08/31/2012 06:22:50</publishTime> </File> <File Include="bin/SQLHelper.dll"> <publishTime>04/18/2025 13:54:00</publishTime> <publishTime>04/21/2025 20:28:20</publishTime> </File> <File Include="bin/SQLHelper.pdb"> <publishTime>04/18/2025 13:54:00</publishTime> <publishTime>04/21/2025 20:28:20</publishTime> </File> <File Include="bin/Swashbuckle.Core.dll"> <publishTime>02/16/2015 01:57:08</publishTime> </File> <File Include="bin/SyntacticSugar.dll"> <publishTime>04/18/2025 13:53:57</publishTime> <publishTime>04/21/2025 20:28:15</publishTime> </File> <File Include="bin/SyntacticSugar.pdb"> <publishTime>04/18/2025 13:53:57</publishTime> <publishTime>04/21/2025 20:28:15</publishTime> </File> <File Include="bin/System.Buffers.dll"> <publishTime>07/19/2017 18:01:28</publishTime> @@ -285,22 +285,22 @@ <publishTime>05/09/2023 10:43:40</publishTime> </File> <File Include="bin/TopSdk.dll"> <publishTime>04/18/2025 13:54:03</publishTime> <publishTime>04/21/2025 20:28:21</publishTime> </File> <File Include="bin/TopSdk.pdb"> <publishTime>04/18/2025 13:54:03</publishTime> <publishTime>04/21/2025 20:28:21</publishTime> </File> <File Include="bin/WebActivatorEx.dll"> <publishTime>11/24/2014 19:18:48</publishTime> </File> <File Include="bin/WebAPI.dll"> <publishTime>04/18/2025 13:54:17</publishTime> <publishTime>04/23/2025 15:10:55</publishTime> </File> <File Include="bin/WebAPI.pdb"> <publishTime>04/18/2025 13:54:17</publishTime> <publishTime>04/23/2025 15:10:55</publishTime> </File> <File Include="bin/WebAPI.XmlSerializers.dll"> <publishTime>04/18/2025 13:54:21</publishTime> <publishTime>04/23/2025 15:11:03</publishTime> </File> <File Include="bin/WebGrease.dll"> <publishTime>07/18/2013 01:03:52</publishTime> @@ -495,7 +495,7 @@ <publishTime>05/06/2024 13:47:57</publishTime> </File> <File Include="Web.config"> <publishTime>04/18/2025 13:54:26</publishTime> <publishTime>04/23/2025 14:22:22</publishTime> </File> </ItemGroup> </Project> WebAPI/WebAPI.csproj
@@ -719,6 +719,7 @@ <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_RepairCheckBillController.cs" /> <Compile Include="Controllers\åºç¡èµæ\å·¥èµåºç¡èµæ\Gy_ProcPriceController.cs" /> <Compile Include="Controllers\åºæ¶ç®¡ç\YS_ReceiveReportController.cs" /> <Compile Include="Controllers\æ°æ®åæ¥\å°è¯¸è忥\XZG_DataSynchronizationController.cs" /> <Compile Include="Controllers\æ°æ®åæ¥\éé忥\DD_DataSynchronizationController.cs" /> <Compile Include="Controllers\æ¡ç 管ç\MouldController.cs" /> <Compile Include="Controllers\æ¡ç 管ç\WEBSController.cs" /> WebAPI/WebAPI.csproj.user
@@ -1,9 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> <NameOfLastUsedPublishProfile>C:\Users\86130\Desktop\æºäºè¿æ\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfilewtt.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>D:\å·¥ä½ä»£ç \æºäºè¿æ\MES\MES-WEB-API\WebAPI\Properties\PublishProfiles\JFAPI.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile1.pubxml</NameOfLastUsedPublishProfile> <UseIISExpress>true</UseIISExpress> <Use64BitIISExpress /> <IISExpressSSLPort /> WorkM/bin/Release/BLL.dllBinary files differ
WorkM/bin/Release/BLL.pdbBinary files differ
WorkM/bin/Release/DAL.dllBinary files differ
WorkM/bin/Release/DAL.pdbBinary files differ
WorkM/bin/Release/DBUtility.dllBinary files differ
WorkM/bin/Release/DBUtility.pdbBinary files differ
WorkM/bin/Release/Model.dllBinary files differ
WorkM/bin/Release/Model.pdbBinary files differ
WorkM/bin/Release/Pub_Class.dllBinary files differ
WorkM/bin/Release/Pub_Class.pdbBinary files differ
WorkM/bin/Release/Pub_Control.dllBinary files differ
WorkM/bin/Release/Pub_Control.pdbBinary files differ
WorkM/bin/Release/SQLHelper.dllBinary files differ
WorkM/bin/Release/SQLHelper.pdbBinary files differ
WorkM/bin/Release/WarM.dllBinary files differ
WorkM/bin/Release/WarM.pdbBinary files differ
WorkM/bin/Release/WorkM.dllBinary files differ
WorkM/bin/Release/WorkM.pdbBinary files differ
sdk_dingding/TopSdk/bin/Debug/TopSdk.dllBinary files differ
sdk_dingding/TopSdk/bin/Debug/TopSdk.pdbBinary files differ
sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.AssemblyReference.cacheBinary files differ
sdk_dingding/TopSdk/obj/Debug/TopSdk.csproj.FileListAbsolute.txt
@@ -11,7 +11,7 @@ C:\Users\86130\Desktop\æºäºè¿æ\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.pdb D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\sdk_dingding\TopSdk\bin\Debug\TopSdk.dll D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\sdk_dingding\TopSdk\bin\Debug\TopSdk.pdb D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.csproj.AssemblyReference.cache D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.csproj.CoreCompileInputs.cache D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.dll D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.pdb D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\sdk_dingding\TopSdk\obj\Debug\TopSdk.csproj.AssemblyReference.cache sdk_dingding/TopSdk/obj/Debug/TopSdk.dllBinary files differ
sdk_dingding/TopSdk/obj/Debug/TopSdk.pdbBinary files differ