first commit

main
李建辉 1 month ago
commit 0896c50f69

@ -0,0 +1,134 @@
{
"Version": 1,
"WorkspaceRootPath": "E:\\\u6052\u5E05\\oa9.26\\IntegrationService\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{851E2848-6303-41B1-8AA8-B93A4D0172C2}|..\\SyncTaskStatus\\SyncTaskStatus\\SyncTaskStatus.csproj|e:\\\u6052\u5E05\\oa9.26\\synctaskstatus\\synctaskstatus\\util.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{851E2848-6303-41B1-8AA8-B93A4D0172C2}|..\\SyncTaskStatus\\SyncTaskStatus\\SyncTaskStatus.csproj|e:\\\u6052\u5E05\\oa9.26\\synctaskstatus\\synctaskstatus\\serverdata.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}|IntegrationService\\IntegrationService.csproj|E:\\\u6052\u5E05\\oa9.26\\IntegrationService\\integrationservice\\erpwebservice.asmx.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}|IntegrationService\\IntegrationService.csproj|solutionrelative:integrationservice\\erpwebservice.asmx.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{851E2848-6303-41B1-8AA8-B93A4D0172C2}|..\\SyncTaskStatus\\SyncTaskStatus\\SyncTaskStatus.csproj|e:\\\u6052\u5E05\\oa9.26\\synctaskstatus\\synctaskstatus\\oracleutil.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{851E2848-6303-41B1-8AA8-B93A4D0172C2}|..\\SyncTaskStatus\\SyncTaskStatus\\SyncTaskStatus.csproj|e:\\\u6052\u5E05\\oa9.26\\synctaskstatus\\synctaskstatus\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{851E2848-6303-41B1-8AA8-B93A4D0172C2}|..\\SyncTaskStatus\\SyncTaskStatus\\SyncTaskStatus.csproj|e:\\\u6052\u5E05\\oa9.26\\synctaskstatus\\synctaskstatus\\log_util.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 5,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
},
{
"$type": "Bookmark",
"Name": "ST:129:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
},
{
"$type": "Bookmark",
"Name": "ST:130:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:131:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Util.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\Util.cs",
"RelativeDocumentMoniker": "..\\SyncTaskStatus\\SyncTaskStatus\\Util.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\Util.cs",
"RelativeToolTip": "..\\SyncTaskStatus\\SyncTaskStatus\\Util.cs",
"ViewState": "AgIAANADAAAAAAAAAAAgwKUDAAAXAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-27T01:50:52.268Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "OracleUtil.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\OracleUtil.cs",
"RelativeDocumentMoniker": "..\\SyncTaskStatus\\SyncTaskStatus\\OracleUtil.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\OracleUtil.cs",
"RelativeToolTip": "..\\SyncTaskStatus\\SyncTaskStatus\\OracleUtil.cs",
"ViewState": "AgIAAAwAAAAAAAAAAADwvx0AAAAwAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-26T03:55:44.829Z"
},
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "Program.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\Program.cs",
"RelativeDocumentMoniker": "..\\SyncTaskStatus\\SyncTaskStatus\\Program.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\Program.cs",
"RelativeToolTip": "..\\SyncTaskStatus\\SyncTaskStatus\\Program.cs",
"ViewState": "AgIAAAAAAAAAAAAAAADwvw4AAAAYAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-26T03:55:14.934Z"
},
{
"$type": "Document",
"DocumentIndex": 5,
"Title": "LOG_Util.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\LOG_Util.cs",
"RelativeDocumentMoniker": "..\\SyncTaskStatus\\SyncTaskStatus\\LOG_Util.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\LOG_Util.cs",
"RelativeToolTip": "..\\SyncTaskStatus\\SyncTaskStatus\\LOG_Util.cs",
"ViewState": "AgIAADgAAAAAAAAAAAAxwE0AAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-26T03:54:23.348Z"
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "ServerData.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\ServerData.cs",
"RelativeDocumentMoniker": "..\\SyncTaskStatus\\SyncTaskStatus\\ServerData.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\ServerData.cs",
"RelativeToolTip": "..\\SyncTaskStatus\\SyncTaskStatus\\ServerData.cs",
"ViewState": "AgIAABUFAAAAAAAAAAAgwCkFAAApAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-26T03:54:07.196Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "ErpWebService.asmx.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\IntegrationService\\IntegrationService\\ErpWebService.asmx.cs",
"RelativeDocumentMoniker": "IntegrationService\\ErpWebService.asmx.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\IntegrationService\\IntegrationService\\ErpWebService.asmx.cs",
"RelativeToolTip": "IntegrationService\\ErpWebService.asmx.cs",
"ViewState": "AgIAANQAAAAAAAAAAAAgwNwAAABGAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-19T07:48:01.19Z",
"EditorCaption": ""
}
]
}
]
}
]
}

@ -0,0 +1,132 @@
{
"Version": 1,
"WorkspaceRootPath": "E:\\\u6052\u5E05\\oa9.26\\IntegrationService\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{851E2848-6303-41B1-8AA8-B93A4D0172C2}|..\\SyncTaskStatus\\SyncTaskStatus\\SyncTaskStatus.csproj|e:\\\u6052\u5E05\\oa9.26\\synctaskstatus\\synctaskstatus\\util.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{851E2848-6303-41B1-8AA8-B93A4D0172C2}|..\\SyncTaskStatus\\SyncTaskStatus\\SyncTaskStatus.csproj|e:\\\u6052\u5E05\\oa9.26\\synctaskstatus\\synctaskstatus\\serverdata.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}|IntegrationService\\IntegrationService.csproj|E:\\\u6052\u5E05\\oa9.26\\IntegrationService\\integrationservice\\erpwebservice.asmx.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}|IntegrationService\\IntegrationService.csproj|solutionrelative:integrationservice\\erpwebservice.asmx.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{851E2848-6303-41B1-8AA8-B93A4D0172C2}|..\\SyncTaskStatus\\SyncTaskStatus\\SyncTaskStatus.csproj|e:\\\u6052\u5E05\\oa9.26\\synctaskstatus\\synctaskstatus\\oracleutil.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{851E2848-6303-41B1-8AA8-B93A4D0172C2}|..\\SyncTaskStatus\\SyncTaskStatus\\SyncTaskStatus.csproj|e:\\\u6052\u5E05\\oa9.26\\synctaskstatus\\synctaskstatus\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{851E2848-6303-41B1-8AA8-B93A4D0172C2}|..\\SyncTaskStatus\\SyncTaskStatus\\SyncTaskStatus.csproj|e:\\\u6052\u5E05\\oa9.26\\synctaskstatus\\synctaskstatus\\log_util.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 5,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
},
{
"$type": "Bookmark",
"Name": "ST:129:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
},
{
"$type": "Bookmark",
"Name": "ST:130:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:131:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Util.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\Util.cs",
"RelativeDocumentMoniker": "..\\SyncTaskStatus\\SyncTaskStatus\\Util.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\Util.cs",
"RelativeToolTip": "..\\SyncTaskStatus\\SyncTaskStatus\\Util.cs",
"ViewState": "AgIAANADAAAAAAAAAAAgwKUDAAAXAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-27T01:50:52.268Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "OracleUtil.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\OracleUtil.cs",
"RelativeDocumentMoniker": "..\\SyncTaskStatus\\SyncTaskStatus\\OracleUtil.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\OracleUtil.cs",
"RelativeToolTip": "..\\SyncTaskStatus\\SyncTaskStatus\\OracleUtil.cs",
"ViewState": "AgIAAAwAAAAAAAAAAADwvx0AAAAwAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-26T03:55:44.829Z"
},
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "Program.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\Program.cs",
"RelativeDocumentMoniker": "..\\SyncTaskStatus\\SyncTaskStatus\\Program.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\Program.cs",
"RelativeToolTip": "..\\SyncTaskStatus\\SyncTaskStatus\\Program.cs",
"ViewState": "AgIAAAAAAAAAAAAAAADwvw4AAAAYAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-26T03:55:14.934Z"
},
{
"$type": "Document",
"DocumentIndex": 5,
"Title": "LOG_Util.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\LOG_Util.cs",
"RelativeDocumentMoniker": "..\\SyncTaskStatus\\SyncTaskStatus\\LOG_Util.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\LOG_Util.cs",
"RelativeToolTip": "..\\SyncTaskStatus\\SyncTaskStatus\\LOG_Util.cs",
"ViewState": "AgIAADgAAAAAAAAAAAAxwE0AAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-26T03:54:23.348Z"
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "ServerData.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\ServerData.cs",
"RelativeDocumentMoniker": "..\\SyncTaskStatus\\SyncTaskStatus\\ServerData.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\SyncTaskStatus\\SyncTaskStatus\\ServerData.cs",
"RelativeToolTip": "..\\SyncTaskStatus\\SyncTaskStatus\\ServerData.cs",
"ViewState": "AgIAABUFAAAAAAAAAAAgwCkFAAApAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-26T03:54:07.196Z"
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "ErpWebService.asmx.cs",
"DocumentMoniker": "E:\\\u6052\u5E05\\oa9.26\\IntegrationService\\IntegrationService\\ErpWebService.asmx.cs",
"RelativeDocumentMoniker": "IntegrationService\\ErpWebService.asmx.cs",
"ToolTip": "E:\\\u6052\u5E05\\oa9.26\\IntegrationService\\IntegrationService\\ErpWebService.asmx.cs",
"RelativeToolTip": "IntegrationService\\ErpWebService.asmx.cs",
"ViewState": "AgIAANQAAAAAAAAAAAAgwNwAAABGAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-19T07:48:01.19Z"
}
]
}
]
}
]
}

@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IntegrationService", "IntegrationService\IntegrationService.csproj", "{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}.Debug|Any CPU.Build.0 = Debug|Any CPU
{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}.Release|Any CPU.ActiveCfg = Release|Any CPU
{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

@ -0,0 +1,228 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace IntegrationService.CAPP
{
public class CAPPLogic
{
private static string connStr = string.Empty;
public static DataTable GetCAPPCardTableByDwgCode(string strDwgCode)
{
return GetTableBySQL("SELECT PackageID, FileName, FileType, WorkStatus, CreateTime FROM ProcessFileTable WHERE DwgCode ='" + strDwgCode + "'", "ProcessFileTable");
}
private static void GetConnStr()
{
}
private static int GetFileWorkState(string StrWorkState)
{
switch (StrWorkState)
{
case "临时状态":
return 1;
case "提交状态":
return 2;
case "评审状态":
return 3;
case "评审更改":
return 4;
case "正式状态":
return 5;
}
return 1;
}
private static Hashtable GetObjectTableName(string packageID, string type)
{
Hashtable hashtable = new Hashtable();
Hashtable hashtable2;
string str2;
System.Exception exception;
string connectionString = connStr;
SqlConnection connection = new SqlConnection
{
ConnectionString = connectionString
};
try
{
connection.Open();
using (connection)
{
SqlCommand command = new SqlCommand
{
Connection = connection
};
List<string> list = new List<string>();
command.CommandText = "SELECT CardInterID,CardName, DwgCode,ProcessNo FROM ProcessCardTable where PackageID='" + packageID + "'";
SqlDataReader reader = command.ExecuteReader();
List<string> list2 = new List<string>();
hashtable2 = new Hashtable();
while (reader.Read())
{
hashtable2.Add(reader.GetString(reader.GetOrdinal("CardInterID")), reader.GetString(reader.GetOrdinal("DwgCode")));
}
reader.Dispose();
reader.Close();
foreach (DictionaryEntry entry in hashtable2)
{
if (type == "title")
{
command.CommandText = "SELECT distinct FieldHostID FROM CardFieldInfoTable where CardInterID='" + entry.Key + "' and fieldType='标题'";
}
else
{
command.CommandText = "SELECT distinct FieldHostID FROM CardFieldInfoTable where CardInterID='" + entry.Key + "' and fieldType='明细'";
}
reader = command.ExecuteReader();
str2 = string.Empty;
while (reader.Read())
{
str2 = reader.GetString(reader.GetOrdinal("FieldHostID"));
if (type == "title")
{
str2 = str2.ToUpper() + "_TITLE";
}
else
{
str2 = entry.Key.ToString().ToUpper() + "_" + str2 + "_DETAIL";
}
hashtable.Add(str2, entry.Value);
}
reader.Dispose();
reader.Close();
}
}
return hashtable;
}
catch (System.Exception exception1)
{
exception = exception1;
throw exception;
}
finally
{
if (connection.State == ConnectionState.Open)
{
connection.Close();
}
}
}
private static DataTable GetTableBySQL(string sql, string tabelName)
{
DataTable table;
DataSet set;
SqlConnection connection = new SqlConnection
{
ConnectionString = connStr
};
table = new DataTable();
try
{
connection.Open();
using (connection)
{
SqlDataAdapter adapter = new SqlDataAdapter(sql, connection);
SqlCommandBuilder builder = new SqlCommandBuilder(adapter);
set = new DataSet();
adapter.Fill(set, tabelName);
table = set.Tables[0];
}
connection.Close();
}
catch (System.Exception ex)
{
throw ex;
}
finally
{
if (connection.State == ConnectionState.Open)
{
connection.Close();
}
}
return table;
}
public static void Log(string LogStr)
{
Trace.WriteLine(LogStr);
}
public static void OnModifyCompleted(IAsyncResult ar)
{
}
public static void RealSetTblState(string packageID, string state, string user, SqlConnection conn)
{
Log(user + " Begin " + packageID + state);
//int fileWorkState = GetFileWorkState(state);
int fileWorkState = int.Parse(state);
System.Exception exception;
SqlConnection connection = conn;
try
{
SqlCommand command = new SqlCommand
{
Connection = connection,
CommandText = string.Concat(new object[] { "update ProcessFileTable set WorkStatus = ", fileWorkState, " where PackageID='", packageID, "'" })
};
command.ExecuteNonQuery();
if ((fileWorkState == 1) || (fileWorkState == 4))
{
command.CommandText = "update ProcessFileTable set LockUser = -1 ,LockState = 0 where PackageID='" + packageID + "'";
}
else
{
command.CommandText = "update ProcessFileTable set LockUser = (select serial from UserInfo where user_id = '" + user + "') , LockState = 1 where PackageID='" + packageID + "'";
}
command.ExecuteNonQuery();
connection.Close();
}
catch (System.Exception exception1)
{
exception = exception1;
throw exception;
}
finally
{
if (connection.State == ConnectionState.Open)
{
connection.Close();
}
}
}
public static void SetTblState(string packageID, string state, string user, SqlConnection conn)
{
new SetTblStateDelegate(CAPPLogic.RealSetTblState).BeginInvoke(packageID, state, user, conn, new AsyncCallback(CAPPLogic.OnModifyCompleted), null);
}
private delegate void SetTblStateDelegate(string packageID, string state, string user, SqlConnection conn);
}
}

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>IntegrationService</RootNamespace>
<AssemblyName>IntegrationService</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Data.OracleClient" />
<Reference Include="System.Drawing" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
</ItemGroup>
<ItemGroup>
<Content Include="PLMToXTCAPPWebService.asmx" />
<Content Include="Web.config" />
<Content Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
<Content Include="Web.Release.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
</ItemGroup>
<ItemGroup>
<Compile Include="CAPPLogic.cs" />
<Compile Include="PLMToXTCAPPWebService.asmx.cs">
<DependentUpon>PLMToXTCAPPWebService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>2764</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>
</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<PropertyGroup>
<PostBuildEvent>IF "$(ConfigurationName)" == "Debug" copy "$(TargetPath)" "C:\Program Files\Extech\Foundation 2013\Server\PLMToCAPP\bin\$(TargetFileName)" /y</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ReferencePath>
</ReferencePath>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<StartPageUrl>
</StartPageUrl>
<StartAction>CurrentPage</StartAction>
<AspNetDebugging>True</AspNetDebugging>
<SilverlightDebugging>False</SilverlightDebugging>
<NativeDebugging>False</NativeDebugging>
<SQLDebugging>False</SQLDebugging>
<ExternalProgram>
</ExternalProgram>
<StartExternalURL>
</StartExternalURL>
<StartCmdLineArguments>
</StartCmdLineArguments>
<StartWorkingDirectory>
</StartWorkingDirectory>
<EnableENC>False</EnableENC>
<AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>

@ -0,0 +1 @@
<%@ WebService Language="C#" CodeBehind="PLMToXTCAPPWebService.asmx.cs" Class="IntegrationService.Service1" %>

@ -0,0 +1,550 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.ComponentModel;
using System.Data;
using System.Data.OracleClient;
using System.Data.SqlClient;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml;
namespace IntegrationService.CAPP
{
[ToolboxItem(false), WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1), WebService(Namespace = "http://tempuri.org/")]
public class CAPPWebService : WebService
{
private SqlCommand cmd;
private SqlConnection conn;
private int DBType;
private OracleCommand orlcmd;
private OracleConnection orlconn;
private string strConnection;
[WebMethod]
public void SetCappCardStatus(string packageId,string state,string user)
{
if (ConnectDB())
{
CAPPLogic.SetTblState(packageId, state, user,conn);
}
}
[WebMethod]
public bool IsExistCAPPBOM(string strProductCode)
{
if (ConnectDB())
{
string strSql = "SELECT 1 FROM Product WHERE ProductDwgCode = '{0}'";
cmd = new SqlCommand();
cmd.Connection = conn;
///CAPP
cmd.CommandText = string.Format(strSql, strProductCode);
object obj = cmd.ExecuteScalar();
if (obj != null)
return true;
else
return false;
}
return false;
}
private bool ConnectDB()
{
try
{
string filePath = base.Context.Request.PhysicalApplicationPath + "xtcapp.ini";
byte[] retVal = new byte[0xffff];
int length = GetPrivateProfileString("服务器参数配置", "服务器名", "", retVal, retVal.GetUpperBound(0), filePath);
string str2 = Encoding.GetEncoding(0).GetString(retVal).Substring(0, length).Trim();
length = GetPrivateProfileString("服务器参数配置", "登录用户", "", retVal, retVal.GetUpperBound(0), filePath);
string str3 = Encoding.GetEncoding(0).GetString(retVal).Substring(0, length).Trim();
length = GetPrivateProfileString("服务器参数配置", "数据库密码", "", retVal, retVal.GetUpperBound(0), filePath);
string str4 = Encoding.GetEncoding(0).GetString(retVal).Substring(0, length).Trim();
length = GetPrivateProfileString("服务器参数配置", "工艺数据库名", "", retVal, retVal.GetUpperBound(0), filePath);
string str5 = Encoding.GetEncoding(0).GetString(retVal).Substring(0, length).Trim();
length = GetPrivateProfileString("服务器参数配置", "数据库类型", "", retVal, retVal.GetUpperBound(0), filePath);
string str6 = Encoding.GetEncoding(0).GetString(retVal).Substring(0, length).Trim();
this.DBType = Convert.ToInt32(str6);
if (this.DBType == 1)
{
this.strConnection = "Data Source=" + str2 + "; User Id=" + str3 + " ; Password==" + str4 + " ; Integrated Security=No;";
this.orlconn = new OracleConnection(this.strConnection);
this.orlconn.Open();
}
else
{
this.strConnection = "server=" + str2 + "; uid=" + str3 + " ; pwd=" + str4 + " ; database=" + str5;
this.conn = new SqlConnection(this.strConnection);
this.conn.Open();
}
return true;
}
catch (Exception exception)
{
this.Log(exception.Message);
return false;
}
}
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section, string key, string def, byte[] retVal, int size, string filePath);
[WebMethod]
public bool ImportEBomFromFile(string strFileName)
{
string strXmlData = string.Empty;
strXmlData = File.ReadAllText(strFileName);
return this.ImportProductTreeFromBOM(strXmlData);
}
private static int GetFileWorkState(string StrWorkState)
{
switch (StrWorkState)
{
case "临时状态":
return 1;
case "提交状态":
return 2;
case "评审状态":
return 3;
case "评审更改":
return 4;
case "正式状态":
return 5;
}
return 1;
}
[WebMethod]
public bool ImportFileStateFromBOM(string strPackageID, string StrWorkState)
{
int fileWorkState = GetFileWorkState(StrWorkState);
try
{
if (!this.ConnectDB())
{
return false;
}
if (this.DBType == 1)
{
this.orlcmd = new OracleCommand();
this.orlcmd.Connection = this.orlconn;
this.orlcmd.CommandText = string.Concat(new object[] { "update ProcessFileTable set WorkStatus = ", fileWorkState, " where PackageID='", strPackageID, "'" });
this.orlcmd.ExecuteNonQuery();
this.orlconn.Close();
}
else
{
this.cmd = new SqlCommand();
this.cmd.Connection = this.conn;
this.cmd.CommandText = string.Concat(new object[] { "update ProcessFileTable set WorkStatus = ", fileWorkState, " where PackageID='", strPackageID, "'" });
this.cmd.ExecuteNonQuery();
this.conn.Close();
}
return true;
}
catch (Exception)
{
return false;
}
}
[WebMethod]
public bool ImportProductTreeFromBOM(string strXmlData)
{
XmlDocument document = new XmlDocument();
document.LoadXml(strXmlData);
string path = @"C:\Extechplm\tempfile\";
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
document.Save(path + @"\PLMBOM.xml");
try
{
DataSet set = new DataSet();
set.ReadXml(new MemoryStream(Encoding.UTF8.GetBytes(strXmlData)));
if (!this.ConnectDB())
{
this.Log("连接数据库失败");
return false;
}
bool flag = false;
DataTable table = set.Tables["PRODUCT"];
string str4 = "";
if (table != null)
{
if (this.DBType == 1)
{
this.orlcmd = new OracleCommand();
this.orlcmd.Connection = this.orlconn;
}
else
{
this.cmd = new SqlCommand();
this.cmd.Connection = this.conn;
}
for (int j = 0; j < table.Rows.Count; j++)
{
string str2 = "";
string str3 = "";
DataRow row = table.Rows[j];
for (int k = 0; k < table.Columns.Count; k++)
{
string columnName = table.Columns[k].ColumnName;
string number = (string)row[columnName];
str2 = str2 + columnName + ",";
if (columnName == "ProductDwgCode")
{
str4 = (string)row[columnName];
}
if (this.IsNumeric(number))
{
str3 = str3 + number + ",";
}
else
{
str3 = str3 + "'" + number + "',";
}
}
if (str2.Length > 1)
{
str2 = str2.Substring(0, str2.Length - 1);
}
else
{
return false;
}
if (str3.Length > 1)
{
str3 = str3.Substring(0, str3.Length - 1);
}
else
{
return false;
}
if (this.DBType == 1)
{
this.orlcmd.CommandText = "delete from Product where ProductDwgCode='" + str4 + "'";
this.orlcmd.ExecuteNonQuery();
this.orlcmd.CommandText = "insert into Product (" + str2 + ") values (" + str3 + ")";
this.orlcmd.ExecuteNonQuery();
}
else
{
this.cmd.CommandText = "delete from Product where ProductDwgCode='" + str4 + "'";
this.cmd.ExecuteNonQuery();
this.cmd.CommandText = "insert into Product (" + str2 + ") values (" + str3 + ")";
this.cmd.ExecuteNonQuery();
}
flag = true;
}
}
DataTable table2 = set.Tables["PART"];
string str9 = "";
string str10 = "";
string str11 = "";
string str12 = "";
if (table2 == null)
{
return false;
}
if (this.DBType == 1)
{
this.orlcmd = new OracleCommand();
this.orlcmd.Connection = this.orlconn;
}
else
{
this.cmd = new SqlCommand();
this.cmd.Connection = this.conn;
}
for (int i = 0; i < table2.Rows.Count; i++)
{
DataRow row2 = table2.Rows[i];
string str7 = "";
string str8 = "";
str10 = "";
for (int m = 0; m < table2.Columns.Count; m++)
{
string str13 = table2.Columns[m].ColumnName;
string str14 = (string)row2[str13];
str7 = str7 + str13 + ",";
switch (str13)
{
case "Tcode":
str9 = (string)row2[str13];
break;
case "Tname":
str11 = (string)row2[str13];
break;
case "Ttime":
str12 = (string)row2[str13];
break;
case "Tother5":
str10 = (string)row2[str13];
break;
}
if (this.IsNumeric(str14))
{
str8 = str8 + str14 + ",";
}
else
{
str8 = str8 + "'" + str14 + "',";
}
}
if (str7.Length > 1)
{
str7 = str7.Substring(0, str7.Length - 1);
}
else
{
return false;
}
if (str8.Length > 1)
{
str8 = str8.Substring(0, str8.Length - 1);
}
else
{
return false;
}
if (this.DBType == 1)
{
this.orlcmd.CommandText = "delete from XtdetamsAll_Title where Tcode='" + str9 + "'";
this.orlcmd.ExecuteNonQuery();
this.orlcmd.CommandText = "delete from XtdetamsAll_detail where UpCode='" + str9 + "' AND DCode in (Select TCode FROM XtdetamsAll_title WHERE TOther3 IS NOT NULL AND TOther3 <> '')";
this.orlcmd.ExecuteNonQuery();
this.orlcmd.CommandText = "insert into XtdetamsAll_Title (" + str7 + ") values (" + str8 + ")";
this.orlcmd.ExecuteNonQuery();
if ((str10 == "1") && !flag)
{
this.orlcmd.CommandText = "delete from Product where ProductDwgCode='" + str9 + "'";
this.orlcmd.ExecuteNonQuery();
this.orlcmd.CommandText = "insert into Product (ProductName,ProductDwgCode,ProductTime) values ('" + str11 + "','" + str9 + "','" + str12 + "')";
this.orlcmd.ExecuteNonQuery();
}
}
else
{
this.cmd.CommandText = "delete from XtdetamsAll_Title where Tcode='" + str9 + "'";
this.cmd.ExecuteNonQuery();
this.cmd.CommandText = "delete from XtdetamsAll_detail where UpCode='" + str9 + "' AND DCode in (Select TCode FROM XtdetamsAll_title WHERE TOther3 IS NOT NULL AND TOther3 <> '')";
this.cmd.ExecuteNonQuery();
this.cmd.CommandText = "insert into XtdetamsAll_Title (" + str7 + ") values (" + str8 + ")";
this.cmd.ExecuteNonQuery();
if ((str10 == "1") && !flag)
{
this.cmd.CommandText = "delete from Product where ProductDwgCode='" + str9 + "'";
this.cmd.ExecuteNonQuery();
this.cmd.CommandText = "insert into Product (ProductName,ProductDwgCode,ProductTime) values ('" + str11 + "','" + str9 + "','" + str12 + "')";
this.cmd.ExecuteNonQuery();
}
}
}
DataTable table3 = set.Tables["BOM"];
string str17 = "";
string item = "";
string str19 = "";
string str20 = "";
int num5 = 0;
DataTable table4 = set.Tables["REMOVEDBOM"];
List<string> list = new List<string>();
list.Clear();
List<string> list2 = new List<string>();
list2.Clear();
if (table3 != null)
{
if (this.DBType == 1)
{
this.orlcmd = new OracleCommand();
this.orlcmd.Connection = this.orlconn;
}
else
{
this.cmd = new SqlCommand();
this.cmd.Connection = this.conn;
}
if (table4 != null)
{
foreach (DataRow row4 in table4.Rows)
{
string str21 = string.Format("DELETE FROM XtdetamsAll_detail WHERE UpCode='{0}' AND Dcode='{1}'", row4["UpCode"], row4["Dcode"]);
if (this.DBType == 1)
{
this.orlcmd.CommandText = str21;
this.orlcmd.ExecuteNonQuery();
}
else
{
this.cmd.CommandText = str21;
this.cmd.ExecuteNonQuery();
}
}
}
for (int n = 0; n < table3.Rows.Count; n++)
{
DataRow row3 = table3.Rows[n];
string str15 = "";
string str16 = "";
bool flag2 = false;
for (int num7 = 0; num7 < table3.Columns.Count; num7++)
{
string str22 = table3.Columns[num7].ColumnName;
string str23 = (string)row3[str22];
str15 = str15 + str22 + ",";
switch (str22)
{
case "UpCode":
item = (string)row3[str22];
break;
case "Dcode":
str17 = (string)row3[str22];
break;
case "Ditem":
str19 = (string)row3[str22];
flag2 = true;
break;
}
if (this.IsNumeric(str23))
{
str16 = str16 + str23 + ",";
}
else
{
str16 = str16 + "'" + str23 + "',";
}
}
if (!flag2)
{
if (item != str20)
{
num5 = 1;
}
else
{
num5++;
}
str19 = num5.ToString();
str20 = item;
str15 = str15 + "Ditem ,";
str16 = str16 + str19 + ",";
}
if (str15.Length > 1)
{
str15 = str15.Substring(0, str15.Length - 1);
}
else
{
return false;
}
if (str16.Length > 1)
{
str16 = str16.Substring(0, str16.Length - 1);
}
else
{
return false;
}
if (!list.Contains(item))
{
if (this.DBType == 1)
{
this.orlcmd.CommandText = "delete from XtdetamsAll_detail where UpCode='" + item + "'";
this.orlcmd.ExecuteNonQuery();
}
else
{
this.cmd.CommandText = "delete from XtdetamsAll_detail where UpCode='" + item + "'";
this.cmd.ExecuteNonQuery();
}
list.Add(item);
}
if (!list2.Contains(item + "@@" + str17 + "@@" + str19))
{
if (this.DBType == 1)
{
this.orlcmd.CommandText = "insert into XtdetamsAll_detail (" + str15 + ") values (" + str16 + ")";
this.orlcmd.ExecuteNonQuery();
}
else
{
this.cmd.CommandText = "insert into XtdetamsAll_detail (" + str15 + ") values (" + str16 + ")";
this.cmd.ExecuteNonQuery();
}
}
list2.Add(item + "@@" + str17 + "@@" + str19);
}
}
if (this.DBType == 1)
{
this.orlconn.Close();
}
else
{
this.conn.Close();
}
return true;
}
catch (Exception exception)
{
this.Log(exception.Message + " SQL: " + cmd.CommandText);
return false;
}
}
private bool IsNumeric(string number)
{
string pattern = "^[1-9][0-9]+$";
try
{
return Regex.IsMatch(number, pattern);
}
catch
{
return false;
}
}
private void Log(string LogStr)
{
StreamWriter writer = null;
try
{
LogStr = DateTime.Now.ToLocalTime().ToString() + "\n" + LogStr;
writer = new StreamWriter(@"C:\Extechplm\tempfile\CAPPSQLLog.txt", true);
writer.WriteLine(LogStr);
}
catch
{
}
finally
{
if (writer != null)
{
writer.Close();
}
}
}
[DllImport("kernel32")]
private static extern bool WritePrivateProfileString(string section, string key, string val, string filePath);
}
}

@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("IntegrationService")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("IntegrationService")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("4232e456-9459-40cd-9241-cbbc7bb08001")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an atrribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>

@ -0,0 +1,31 @@
<?xml version="1.0"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an atrribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>

@ -0,0 +1,107 @@
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="true" >
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule" />
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory" />
<remove name="ScriptHandlerFactoryAppServices" />
<remove name="ScriptResource" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IntegrationService", "IntegrationService\IntegrationService.csproj", "{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SyncTaskStatus", "..\SyncTaskStatus\SyncTaskStatus\SyncTaskStatus.csproj", "{851E2848-6303-41B1-8AA8-B93A4D0172C2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}.Debug|Any CPU.Build.0 = Debug|Any CPU
{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}.Release|Any CPU.ActiveCfg = Release|Any CPU
{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}.Release|Any CPU.Build.0 = Release|Any CPU
{851E2848-6303-41B1-8AA8-B93A4D0172C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{851E2848-6303-41B1-8AA8-B93A4D0172C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{851E2848-6303-41B1-8AA8-B93A4D0172C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{851E2848-6303-41B1-8AA8-B93A4D0172C2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/Housekeeping/SolutionSettingsUpgraded/IsUpgraded/@EntryValue">True</s:Boolean></wpf:ResourceDictionary>

File diff suppressed because one or more lines are too long

@ -0,0 +1,61 @@

/************************************************************************************
* Copyright (c) 2017 All Rights Reserved.
* CLR 4.0.30319.36366
*HUBING
*
*IntegrationService
* CNIcoProperty
* V1.0.0.0
*f5590410-8fa0-4a1a-9482-a4f4303388d3
*HUBING
* hub
*hub@connor.net.cn
*2017/7/3 16:31:37
*
*
*=====================================================================
*
*2017/7/3 16:31:37
* hub
* V1.0.0.0
*
*
/************************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace IntegrationService.ERP
{
public class CNIcoProperty
{
public string value;
public int propertyID;
}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,726 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
//
// This source code was auto-generated by wsdl, Version=4.0.30319.17929.
//
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="ErpWebServiceSoap", Namespace="http://tempuri.org/")]
public partial class ErpWebService : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback UpdateTcTaskStatusOperationCompleted;
private System.Threading.SendOrPostCallback UpdateTcTaskStatus2OperationCompleted;
private System.Threading.SendOrPostCallback LoginTCTestOperationCompleted;
private System.Threading.SendOrPostCallback QuerySingleTaskInfoOperationCompleted;
private System.Threading.SendOrPostCallback QueryPhaseTaskInfosOperationCompleted;
private System.Threading.SendOrPostCallback UpdateRemarkOperationCompleted;
private System.Threading.SendOrPostCallback LoadArrayRemarkOperationCompleted;
private System.Threading.SendOrPostCallback UpdateArrayRemarkOperationCompleted;
private System.Threading.SendOrPostCallback LoadRemarkOperationCompleted;
/// <remarks/>
public ErpWebService() {
this.Url = "http://192.168.1.37:21980/IntegrationService/ErpWebService.asmx";
}
/// <remarks/>
public event UpdateTcTaskStatusCompletedEventHandler UpdateTcTaskStatusCompleted;
/// <remarks/>
public event UpdateTcTaskStatus2CompletedEventHandler UpdateTcTaskStatus2Completed;
/// <remarks/>
public event LoginTCTestCompletedEventHandler LoginTCTestCompleted;
/// <remarks/>
public event QuerySingleTaskInfoCompletedEventHandler QuerySingleTaskInfoCompleted;
/// <remarks/>
public event QueryPhaseTaskInfosCompletedEventHandler QueryPhaseTaskInfosCompleted;
/// <remarks/>
public event UpdateRemarkCompletedEventHandler UpdateRemarkCompleted;
/// <remarks/>
public event LoadArrayRemarkCompletedEventHandler LoadArrayRemarkCompleted;
/// <remarks/>
public event UpdateArrayRemarkCompletedEventHandler UpdateArrayRemarkCompleted;
/// <remarks/>
public event LoadRemarkCompletedEventHandler LoadRemarkCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/UpdateTcTaskStatus", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string UpdateTcTaskStatus(string JsonContainer) {
object[] results = this.Invoke("UpdateTcTaskStatus", new object[] {
JsonContainer});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginUpdateTcTaskStatus(string JsonContainer, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("UpdateTcTaskStatus", new object[] {
JsonContainer}, callback, asyncState);
}
/// <remarks/>
public string EndUpdateTcTaskStatus(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void UpdateTcTaskStatusAsync(string JsonContainer) {
this.UpdateTcTaskStatusAsync(JsonContainer, null);
}
/// <remarks/>
public void UpdateTcTaskStatusAsync(string JsonContainer, object userState) {
if ((this.UpdateTcTaskStatusOperationCompleted == null)) {
this.UpdateTcTaskStatusOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateTcTaskStatusOperationCompleted);
}
this.InvokeAsync("UpdateTcTaskStatus", new object[] {
JsonContainer}, this.UpdateTcTaskStatusOperationCompleted, userState);
}
private void OnUpdateTcTaskStatusOperationCompleted(object arg) {
if ((this.UpdateTcTaskStatusCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.UpdateTcTaskStatusCompleted(this, new UpdateTcTaskStatusCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/UpdateTcTaskStatus2", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string UpdateTcTaskStatus2(string JsonContainer) {
object[] results = this.Invoke("UpdateTcTaskStatus2", new object[] {
JsonContainer});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginUpdateTcTaskStatus2(string JsonContainer, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("UpdateTcTaskStatus2", new object[] {
JsonContainer}, callback, asyncState);
}
/// <remarks/>
public string EndUpdateTcTaskStatus2(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void UpdateTcTaskStatus2Async(string JsonContainer) {
this.UpdateTcTaskStatus2Async(JsonContainer, null);
}
/// <remarks/>
public void UpdateTcTaskStatus2Async(string JsonContainer, object userState) {
if ((this.UpdateTcTaskStatus2OperationCompleted == null)) {
this.UpdateTcTaskStatus2OperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateTcTaskStatus2OperationCompleted);
}
this.InvokeAsync("UpdateTcTaskStatus2", new object[] {
JsonContainer}, this.UpdateTcTaskStatus2OperationCompleted, userState);
}
private void OnUpdateTcTaskStatus2OperationCompleted(object arg) {
if ((this.UpdateTcTaskStatus2Completed != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.UpdateTcTaskStatus2Completed(this, new UpdateTcTaskStatus2CompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LoginTCTest", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string LoginTCTest(string User, string Password, string Invokeurl) {
object[] results = this.Invoke("LoginTCTest", new object[] {
User,
Password,
Invokeurl});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginLoginTCTest(string User, string Password, string Invokeurl, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("LoginTCTest", new object[] {
User,
Password,
Invokeurl}, callback, asyncState);
}
/// <remarks/>
public string EndLoginTCTest(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void LoginTCTestAsync(string User, string Password, string Invokeurl) {
this.LoginTCTestAsync(User, Password, Invokeurl, null);
}
/// <remarks/>
public void LoginTCTestAsync(string User, string Password, string Invokeurl, object userState) {
if ((this.LoginTCTestOperationCompleted == null)) {
this.LoginTCTestOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLoginTCTestOperationCompleted);
}
this.InvokeAsync("LoginTCTest", new object[] {
User,
Password,
Invokeurl}, this.LoginTCTestOperationCompleted, userState);
}
private void OnLoginTCTestOperationCompleted(object arg) {
if ((this.LoginTCTestCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.LoginTCTestCompleted(this, new LoginTCTestCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/QuerySingleTaskInfo", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string QuerySingleTaskInfo(string ProjectCode, string EquipmentCode, string TaskLov) {
object[] results = this.Invoke("QuerySingleTaskInfo", new object[] {
ProjectCode,
EquipmentCode,
TaskLov});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginQuerySingleTaskInfo(string ProjectCode, string EquipmentCode, string TaskLov, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("QuerySingleTaskInfo", new object[] {
ProjectCode,
EquipmentCode,
TaskLov}, callback, asyncState);
}
/// <remarks/>
public string EndQuerySingleTaskInfo(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void QuerySingleTaskInfoAsync(string ProjectCode, string EquipmentCode, string TaskLov) {
this.QuerySingleTaskInfoAsync(ProjectCode, EquipmentCode, TaskLov, null);
}
/// <remarks/>
public void QuerySingleTaskInfoAsync(string ProjectCode, string EquipmentCode, string TaskLov, object userState) {
if ((this.QuerySingleTaskInfoOperationCompleted == null)) {
this.QuerySingleTaskInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnQuerySingleTaskInfoOperationCompleted);
}
this.InvokeAsync("QuerySingleTaskInfo", new object[] {
ProjectCode,
EquipmentCode,
TaskLov}, this.QuerySingleTaskInfoOperationCompleted, userState);
}
private void OnQuerySingleTaskInfoOperationCompleted(object arg) {
if ((this.QuerySingleTaskInfoCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.QuerySingleTaskInfoCompleted(this, new QuerySingleTaskInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/QueryPhaseTaskInfos", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string QueryPhaseTaskInfos(string ProjectCode, string EquipmentCode, string TaskLov, string StartTime, string EndTime) {
object[] results = this.Invoke("QueryPhaseTaskInfos", new object[] {
ProjectCode,
EquipmentCode,
TaskLov,
StartTime,
EndTime});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginQueryPhaseTaskInfos(string ProjectCode, string EquipmentCode, string TaskLov, string StartTime, string EndTime, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("QueryPhaseTaskInfos", new object[] {
ProjectCode,
EquipmentCode,
TaskLov,
StartTime,
EndTime}, callback, asyncState);
}
/// <remarks/>
public string EndQueryPhaseTaskInfos(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void QueryPhaseTaskInfosAsync(string ProjectCode, string EquipmentCode, string TaskLov, string StartTime, string EndTime) {
this.QueryPhaseTaskInfosAsync(ProjectCode, EquipmentCode, TaskLov, StartTime, EndTime, null);
}
/// <remarks/>
public void QueryPhaseTaskInfosAsync(string ProjectCode, string EquipmentCode, string TaskLov, string StartTime, string EndTime, object userState) {
if ((this.QueryPhaseTaskInfosOperationCompleted == null)) {
this.QueryPhaseTaskInfosOperationCompleted = new System.Threading.SendOrPostCallback(this.OnQueryPhaseTaskInfosOperationCompleted);
}
this.InvokeAsync("QueryPhaseTaskInfos", new object[] {
ProjectCode,
EquipmentCode,
TaskLov,
StartTime,
EndTime}, this.QueryPhaseTaskInfosOperationCompleted, userState);
}
private void OnQueryPhaseTaskInfosOperationCompleted(object arg) {
if ((this.QueryPhaseTaskInfosCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.QueryPhaseTaskInfosCompleted(this, new QueryPhaseTaskInfosCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/UpdateRemark", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string UpdateRemark(int iType, string objectid, string remark) {
object[] results = this.Invoke("UpdateRemark", new object[] {
iType,
objectid,
remark});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginUpdateRemark(int iType, string objectid, string remark, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("UpdateRemark", new object[] {
iType,
objectid,
remark}, callback, asyncState);
}
/// <remarks/>
public string EndUpdateRemark(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void UpdateRemarkAsync(int iType, string objectid, string remark) {
this.UpdateRemarkAsync(iType, objectid, remark, null);
}
/// <remarks/>
public void UpdateRemarkAsync(int iType, string objectid, string remark, object userState) {
if ((this.UpdateRemarkOperationCompleted == null)) {
this.UpdateRemarkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateRemarkOperationCompleted);
}
this.InvokeAsync("UpdateRemark", new object[] {
iType,
objectid,
remark}, this.UpdateRemarkOperationCompleted, userState);
}
private void OnUpdateRemarkOperationCompleted(object arg) {
if ((this.UpdateRemarkCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.UpdateRemarkCompleted(this, new UpdateRemarkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LoadArrayRemark", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string LoadArrayRemark(string objectId) {
object[] results = this.Invoke("LoadArrayRemark", new object[] {
objectId});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginLoadArrayRemark(string objectId, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("LoadArrayRemark", new object[] {
objectId}, callback, asyncState);
}
/// <remarks/>
public string EndLoadArrayRemark(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void LoadArrayRemarkAsync(string objectId) {
this.LoadArrayRemarkAsync(objectId, null);
}
/// <remarks/>
public void LoadArrayRemarkAsync(string objectId, object userState) {
if ((this.LoadArrayRemarkOperationCompleted == null)) {
this.LoadArrayRemarkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLoadArrayRemarkOperationCompleted);
}
this.InvokeAsync("LoadArrayRemark", new object[] {
objectId}, this.LoadArrayRemarkOperationCompleted, userState);
}
private void OnLoadArrayRemarkOperationCompleted(object arg) {
if ((this.LoadArrayRemarkCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.LoadArrayRemarkCompleted(this, new LoadArrayRemarkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/UpdateArrayRemark", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string UpdateArrayRemark(string ObjectId, string[] values) {
object[] results = this.Invoke("UpdateArrayRemark", new object[] {
ObjectId,
values});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginUpdateArrayRemark(string ObjectId, string[] values, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("UpdateArrayRemark", new object[] {
ObjectId,
values}, callback, asyncState);
}
/// <remarks/>
public string EndUpdateArrayRemark(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void UpdateArrayRemarkAsync(string ObjectId, string[] values) {
this.UpdateArrayRemarkAsync(ObjectId, values, null);
}
/// <remarks/>
public void UpdateArrayRemarkAsync(string ObjectId, string[] values, object userState) {
if ((this.UpdateArrayRemarkOperationCompleted == null)) {
this.UpdateArrayRemarkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateArrayRemarkOperationCompleted);
}
this.InvokeAsync("UpdateArrayRemark", new object[] {
ObjectId,
values}, this.UpdateArrayRemarkOperationCompleted, userState);
}
private void OnUpdateArrayRemarkOperationCompleted(object arg) {
if ((this.UpdateArrayRemarkCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.UpdateArrayRemarkCompleted(this, new UpdateArrayRemarkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LoadRemark", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string LoadRemark(int iType, string objectid, string remark) {
object[] results = this.Invoke("LoadRemark", new object[] {
iType,
objectid,
remark});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginLoadRemark(int iType, string objectid, string remark, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("LoadRemark", new object[] {
iType,
objectid,
remark}, callback, asyncState);
}
/// <remarks/>
public string EndLoadRemark(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void LoadRemarkAsync(int iType, string objectid, string remark) {
this.LoadRemarkAsync(iType, objectid, remark, null);
}
/// <remarks/>
public void LoadRemarkAsync(int iType, string objectid, string remark, object userState) {
if ((this.LoadRemarkOperationCompleted == null)) {
this.LoadRemarkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLoadRemarkOperationCompleted);
}
this.InvokeAsync("LoadRemark", new object[] {
iType,
objectid,
remark}, this.LoadRemarkOperationCompleted, userState);
}
private void OnLoadRemarkOperationCompleted(object arg) {
if ((this.LoadRemarkCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.LoadRemarkCompleted(this, new LoadRemarkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void UpdateTcTaskStatusCompletedEventHandler(object sender, UpdateTcTaskStatusCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class UpdateTcTaskStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal UpdateTcTaskStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void UpdateTcTaskStatus2CompletedEventHandler(object sender, UpdateTcTaskStatus2CompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class UpdateTcTaskStatus2CompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal UpdateTcTaskStatus2CompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void LoginTCTestCompletedEventHandler(object sender, LoginTCTestCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class LoginTCTestCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal LoginTCTestCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void QuerySingleTaskInfoCompletedEventHandler(object sender, QuerySingleTaskInfoCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class QuerySingleTaskInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal QuerySingleTaskInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void QueryPhaseTaskInfosCompletedEventHandler(object sender, QueryPhaseTaskInfosCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class QueryPhaseTaskInfosCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal QueryPhaseTaskInfosCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void UpdateRemarkCompletedEventHandler(object sender, UpdateRemarkCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class UpdateRemarkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal UpdateRemarkCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void LoadArrayRemarkCompletedEventHandler(object sender, LoadArrayRemarkCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class LoadArrayRemarkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal LoadArrayRemarkCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void UpdateArrayRemarkCompletedEventHandler(object sender, UpdateArrayRemarkCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class UpdateArrayRemarkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal UpdateArrayRemarkCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
public delegate void LoadRemarkCompletedEventHandler(object sender, LoadRemarkCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class LoadRemarkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal LoadRemarkCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}

@ -0,0 +1,575 @@
/**
* CopyRight Hand-Origin
* Date2014.10.20
*
**/
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Net;
using System.Windows.Forms;
using System.Globalization;
using LOG_UTIL;
namespace FtpLib
{
public class FtpWeb
{
string ftpServerIP;
string ftpRemotePath;
string ftpUserID;
string ftpPassword;
string ftpURI;
/// <summary>
/// 连接FTP
/// </summary>
/// <param name="FtpServerIP">FTP连接地址</param>
/// <param name="FtpRemotePath">指定FTP连接成功后的当前目录, 如果不指定即默认为根目录</param>
/// <param name="FtpUserID">用户名</param>
/// <param name="FtpPassword">密码</param>
public FtpWeb(string FtpServerIP, string FtpRemotePath, string FtpUserID, string FtpPassword)
{
ftpServerIP = FtpServerIP;
ftpRemotePath = FtpRemotePath;
ftpUserID = FtpUserID;
ftpPassword = FtpPassword;
ftpURI = "ftp://" + ftpServerIP + "/" + ftpRemotePath + "/";
}
/// <summary>
/// 连接FTP
/// </summary>
/// <param name="FtpRemotePath">指定更目录</param>
public FtpWeb(string FtpRemotePath)
{
ftpServerIP = "10.8.9.21"; //131.107.12.20
ftpRemotePath = FtpRemotePath;//"/ROOT_SHARE_SPACES/";
ftpUserID = "tcpdm";
ftpPassword = "tcpdm";
ftpURI = "ftp://" + ftpServerIP + "/" + ftpRemotePath + "/";
}
/// <summary>
/// 上传
/// </summary>
/// <param name="filename"></param>
public void Upload(string filename)
{
FileInfo fileInf = new FileInfo(filename);
string uri = ftpURI + fileInf.Name;
FtpWebRequest reqFTP;
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(uri));
reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
reqFTP.KeepAlive = false;
reqFTP.Method = WebRequestMethods.Ftp.UploadFile;
reqFTP.UseBinary = true;
reqFTP.ContentLength = fileInf.Length;
int buffLength = 2048;
byte[] buff = new byte[buffLength];
int contentLen;
FileStream fs = fileInf.OpenRead();
try
{
Stream strm = reqFTP.GetRequestStream();
contentLen = fs.Read(buff, 0, buffLength);
while (contentLen != 0)
{
strm.Write(buff, 0, contentLen);
contentLen = fs.Read(buff, 0, buffLength);
}
strm.Close();
fs.Close();
}
catch (Exception ex)
{
Insert_Standard_ErrorLog.Insert("FtpWeb", "Upload Error --> " + ex.Message);
}
}
/// <summary>
/// 下载
/// </summary>
/// <param name="filePath"></param>
/// <param name="fileName"></param>
public void Download(string filePath, string fileName)
{
FtpWebRequest reqFTP;
try
{
FileStream outputStream = new FileStream(filePath + "\\" + fileName, FileMode.Create);
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpURI + fileName));
reqFTP.Method = WebRequestMethods.Ftp.DownloadFile;
reqFTP.UseBinary = true;
reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
FtpWebResponse response = (FtpWebResponse)reqFTP.GetResponse();
Stream ftpStream = response.GetResponseStream();
long cl = response.ContentLength;
int bufferSize = 2048;
int readCount;
byte[] buffer = new byte[bufferSize];
readCount = ftpStream.Read(buffer, 0, bufferSize);
while (readCount > 0)
{
outputStream.Write(buffer, 0, readCount);
readCount = ftpStream.Read(buffer, 0, bufferSize);
}
ftpStream.Close();
outputStream.Close();
response.Close();
}
catch (Exception ex)
{
Insert_Standard_ErrorLog.Insert("FtpWeb", "Download Error --> " + ex.Message);
}
}
/// <summary>
/// 删除文件
/// </summary>
/// <param name="fileName"></param>
public void Delete(string fileName)
{
try
{
string uri = ftpURI + fileName;
FtpWebRequest reqFTP;
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(uri));
reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
reqFTP.KeepAlive = false;
reqFTP.Method = WebRequestMethods.Ftp.DeleteFile;
string result = String.Empty;
FtpWebResponse response = (FtpWebResponse)reqFTP.GetResponse();
long size = response.ContentLength;
Stream datastream = response.GetResponseStream();
StreamReader sr = new StreamReader(datastream);
result = sr.ReadToEnd();
sr.Close();
datastream.Close();
response.Close();
}
catch (Exception ex)
{
Insert_Standard_ErrorLog.Insert("FtpWeb", "Delete Error --> " + ex.Message + " 文件名:" + fileName);
}
}
/// <summary>
/// 删除文件夹
/// </summary>
/// <param name="folderName"></param>
public void RemoveDirectory(string folderName)
{
try
{
string uri = ftpURI + folderName;
FtpWebRequest reqFTP;
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(uri));
reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
reqFTP.KeepAlive = false;
reqFTP.Method = WebRequestMethods.Ftp.RemoveDirectory;
string result = String.Empty;
FtpWebResponse response = (FtpWebResponse)reqFTP.GetResponse();
long size = response.ContentLength;
Stream datastream = response.GetResponseStream();
StreamReader sr = new StreamReader(datastream);
result = sr.ReadToEnd();
sr.Close();
datastream.Close();
response.Close();
}
catch (Exception ex)
{
Insert_Standard_ErrorLog.Insert("FtpWeb", "Delete Error --> " + ex.Message + " 文件名:" + folderName);
}
}
/// <summary>
/// 获取当前目录下明细(包含文件和文件夹)
/// </summary>
/// <returns></returns>
public string[] GetFilesDetailList()
{
string[] downloadFiles;
try
{
StringBuilder result = new StringBuilder();
FtpWebRequest ftp;
ftp = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpURI));
ftp.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
ftp.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
WebResponse response = ftp.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.Default);
//while (reader.Read() > 0)
//{
//}
string line = reader.ReadLine();
//line = reader.ReadLine();
//line = reader.ReadLine();
while (line != null)
{
result.Append(line);
result.Append("\n");
line = reader.ReadLine();
}
result.Remove(result.ToString().LastIndexOf("\n"), 1);
reader.Close();
response.Close();
return result.ToString().Split('\n');
}
catch (Exception ex)
{
downloadFiles = null;
Insert_Standard_ErrorLog.Insert("FtpWeb", "GetFilesDetailList Error --> " + ex.Message);
return downloadFiles;
}
}
/// <summary>
/// 上传文件到TEMP目录下面
/// </summary>
/// <param name="ftpfilepath"></param>
/// <param name="filename"></param>
public void UploadTempFile(string ftpfilepath, string filename)
{
FileInfo fileInf = new FileInfo(filename);
string uri = "ftp://" + ftpServerIP + "/" + ftpfilepath + "/" + fileInf.Name;
FtpWebRequest reqFTP;
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(uri));
reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
reqFTP.KeepAlive = false;
reqFTP.Method = WebRequestMethods.Ftp.UploadFile;
reqFTP.UseBinary = true;
reqFTP.ContentLength = fileInf.Length;
int buffLength = 2048;
byte[] buff = new byte[buffLength];
int contentLen;
FileStream fs = fileInf.OpenRead();
try
{
Stream strm = reqFTP.GetRequestStream();
contentLen = fs.Read(buff, 0, buffLength);
while (contentLen != 0)
{
strm.Write(buff, 0, contentLen);
contentLen = fs.Read(buff, 0, buffLength);
}
strm.Close();
fs.Close();
}
catch (Exception ex)
{
Insert_Standard_ErrorLog.Insert("FtpWeb", "Upload Error --> " + ex.Message);
}
}
/// <summary>
/// 获取当前目录下文件列表(仅文件)
/// </summary>
/// <returns></returns>
public string[] GetFileList(string mask)
{
string[] downloadFiles;
StringBuilder result = new StringBuilder();
FtpWebRequest reqFTP;
try
{
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpURI));
reqFTP.UseBinary = true;
reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
reqFTP.Method = WebRequestMethods.Ftp.ListDirectory;
WebResponse response = reqFTP.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.Default);
string line = reader.ReadLine();
while (line != null)
{
if (mask.Trim() != string.Empty && mask.Trim() != "*.*")
{
string mask_ = mask.Substring(0, mask.IndexOf("*"));
if (line.Substring(0, mask_.Length) == mask_)
{
result.Append(line);
result.Append("\n");
}
}
else
{
result.Append(line);
result.Append("\n");
}
line = reader.ReadLine();
}
result.Remove(result.ToString().LastIndexOf('\n'), 1);
reader.Close();
response.Close();
return result.ToString().Split('\n');
}
catch (Exception ex)
{
downloadFiles = null;
if (ex.Message.Trim() != "远程服务器返回错误: (550) 文件不可用(例如,未找到文件,无法访问文件)。")
{
Insert_Standard_ErrorLog.Insert("FtpWeb", "GetFileList Error --> " + ex.Message.ToString());
}
return downloadFiles;
}
}
/// <summary>
/// 获取当前目录下所有的文件夹列表(仅文件夹)
/// </summary>
/// <returns></returns>
public string[] GetDirectoryList()
{
string[] drectory = GetFilesDetailList();
string m = string.Empty;
foreach (string str in drectory)
{
int dirPos = str.IndexOf("<DIR>");
if (dirPos > 0)
{
/*判断 Windows 风格*/
m += str.Substring(dirPos + 5).Trim() + "\n";
}
else if (str.Trim().Substring(0, 1).ToUpper() == "D")
{
/*判断 Unix 风格*/
string dir = str.Substring(54).Trim();
if (dir != "." && dir != "..")
{
m += dir + "\n";
}
}
}
char[] n = new char[] { '\n' };
return m.Split(n);
}
/// <summary>
/// 判断当前目录下指定的子目录是否存在
/// </summary>
/// <param name="RemoteDirectoryName">指定的目录名</param>
public bool DirectoryExist(string RemoteDirectoryName)
{
string[] dirList = GetDirectoryList();
foreach (string str in dirList)
{
if (str.Trim() == RemoteDirectoryName.Trim())
{
return true;
}
}
return false;
}
/// <summary>
/// 判断当前目录下指定的文件是否存在
/// </summary>
/// <param name="RemoteFileName">远程文件名</param>
public bool FileExist(string RemoteFileName)
{
string[] fileList = GetFileList("*.*");
foreach (string str in fileList)
{
if (str.Trim() == RemoteFileName.Trim())
{
return true;
}
}
return false;
}
/// <summary>
/// 创建文件夹
/// </summary>
/// <param name="dirName"></param>
public void MakeDir(string dirName)
{
FtpWebRequest reqFTP;
try
{
// dirName = name of the directory to create.
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpURI + dirName));
reqFTP.Method = WebRequestMethods.Ftp.MakeDirectory;
reqFTP.UseBinary = true;
reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
FtpWebResponse response = (FtpWebResponse)reqFTP.GetResponse();
Stream ftpStream = response.GetResponseStream();
ftpStream.Close();
response.Close();
}
catch (Exception ex)
{
Insert_Standard_ErrorLog.Insert("FtpWeb", "MakeDir Error --> " + ex.Message);
}
}
/// <summary>
/// 获取指定文件大小
/// </summary>
/// <param name="filename"></param>
/// <returns></returns>
public long GetFileSize(string filename)
{
FtpWebRequest reqFTP;
long fileSize = 0;
try
{
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpURI + filename));
reqFTP.Method = WebRequestMethods.Ftp.GetFileSize;
reqFTP.UseBinary = true;
reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
FtpWebResponse response = (FtpWebResponse)reqFTP.GetResponse();
Stream ftpStream = response.GetResponseStream();
fileSize = response.ContentLength;
ftpStream.Close();
response.Close();
}
catch (Exception ex)
{
Insert_Standard_ErrorLog.Insert("FtpWeb", "GetFileSize Error --> " + ex.Message);
}
return fileSize;
}
/// <summary>
/// 改名
/// </summary>
/// <param name="currentFilename"></param>
/// <param name="newFilename"></param>
public void ReName(string currentFilename, string newFilename)
{
FtpWebRequest reqFTP;
try
{
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpURI + currentFilename));
reqFTP.Method = WebRequestMethods.Ftp.Rename;
reqFTP.RenameTo = newFilename + "/" + currentFilename;
reqFTP.UseBinary = true;
reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
FtpWebResponse response = (FtpWebResponse)reqFTP.GetResponse();
Stream ftpStream = response.GetResponseStream();
ftpStream.Close();
response.Close();
}
catch (Exception ex)
{
Insert_Standard_ErrorLog.Insert("FtpWeb", "ReName Error --> " + ex.Message);
}
}
/// <summary>
/// 移动文件
/// </summary>
/// <param name="currentFilename"></param>
/// <param name="newFilename"></param>
public void MovieFile(string currentFilename, string newDirectory)
{
ReName(currentFilename, newDirectory);
}
/// <summary>
/// 切换当前目录
/// </summary>
/// <param name="DirectoryName"></param>
/// <param name="IsRoot">true 绝对路径 false 相对路径</param>
public void GotoDirectory(string DirectoryName, bool IsRoot)
{
if (IsRoot)
{
ftpRemotePath = DirectoryName;
}
else
{
ftpRemotePath += DirectoryName + "/";
}
ftpURI = "ftp://" + ftpServerIP + "/" + ftpRemotePath + "/";
}
/// <summary>
/// 删除订单目录
/// </summary>
/// <param name="ftpServerIP">FTP 主机地址</param>
/// <param name="folderToDelete">FTP 用户名</param>
/// <param name="ftpUserID">FTP 用户名</param>
/// <param name="ftpPassword">FTP 密码</param>
public static void DeleteOrderDirectory(string ftpServerIP, string folderToDelete, string ftpUserID, string ftpPassword)
{
try
{
if (!string.IsNullOrEmpty(ftpServerIP) && !string.IsNullOrEmpty(folderToDelete) && !string.IsNullOrEmpty(ftpUserID) && !string.IsNullOrEmpty(ftpPassword))
{
FtpWeb fw = new FtpWeb(ftpServerIP, folderToDelete, ftpUserID, ftpPassword);
//进入订单目录
fw.GotoDirectory(folderToDelete, true);
//获取规格目录
string[] folders = fw.GetDirectoryList();
foreach (string folder in folders)
{
if (!string.IsNullOrEmpty(folder) || folder != "")
{
//进入订单目录
string subFolder = folderToDelete + "/" + folder;
fw.GotoDirectory(subFolder, true);
//获取文件列表
string[] files = fw.GetFileList("*.*");
if (files != null)
{
//删除文件
foreach (string file in files)
{
fw.Delete(file);
}
}
//删除冲印规格文件夹
fw.GotoDirectory(folderToDelete, true);
fw.RemoveDirectory(folder);
}
}
//删除订单文件夹
string parentFolder = folderToDelete.Remove(folderToDelete.LastIndexOf('/'));
string orderFolder = folderToDelete.Substring(folderToDelete.LastIndexOf('/') + 1);
fw.GotoDirectory(parentFolder, true);
fw.RemoveDirectory(orderFolder);
}
else
{
throw new Exception("FTP 及路径不能为空!");
}
}
catch (Exception ex)
{
throw new Exception("删除订单时发生错误,错误信息为:" + ex.Message);
}
}
}
}

@ -0,0 +1 @@
<%@ Application Codebehind="Global.asax.cs" Inherits="IntegrationService.Global" Language="C#" %>

@ -0,0 +1,49 @@
using log4net.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
namespace IntegrationService
{
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
XmlConfigurator.Configure();
}
protected void Session_Start(object sender, EventArgs e)
{
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
}
protected void Application_Error(object sender, EventArgs e)
{
}
protected void Session_End(object sender, EventArgs e)
{
}
protected void Application_End(object sender, EventArgs e)
{
}
}
}

@ -0,0 +1,388 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{56C783B3-E17B-4EBB-ADC1-78F3DD6C1780}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>IntegrationService</RootNamespace>
<AssemblyName>IntegrationService</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>4.0</OldToolsVersion>
<UseIISExpress>false</UseIISExpress>
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<TargetFrameworkProfile />
<UseGlobalApplicationHostFile />
<Use64BitIISExpress />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x64</PlatformTarget>
<FilesToIncludeForPublish>AllFilesInTheProject</FilesToIncludeForPublish>
<ExcludeGeneratedDebugSymbol>false</ExcludeGeneratedDebugSymbol>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net">
<HintPath>..\..\SyncTaskStatus\SyncTaskStatus\bin\Debug\log4net.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=1.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>bin\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\app\client\Administrator\product\12.1.0\client_1\odp.net\managed\common\Oracle.ManagedDataAccess.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data.OracleClient" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
<Reference Include="System.Xml.Linq" />
<Reference Include="TcSoaAdministrationStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAdministrationStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaAdministrationTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAdministrationTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaAiStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAiStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaAiTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAiTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaAllocationsStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAllocationsStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaAllocationsTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAllocationsTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaAsbAsmAlignmentStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAsbAsmAlignmentStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaAsbAsmAlignmentTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAsbAsmAlignmentTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaAsBuiltStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAsBuiltStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaAsBuiltTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAsBuiltTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaAsMaintainedStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAsMaintainedStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaAsMaintainedTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAsMaintainedTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaAuthorizedDataAccessStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAuthorizedDataAccessStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaAuthorizedDataAccessTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaAuthorizedDataAccessTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaBomStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaBomStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaBomTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaBomTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaBusinessModelerStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaBusinessModelerStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaBusinessModelerTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaBusinessModelerTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaCadBomAlignmentStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaCadBomAlignmentStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaCadBomAlignmentTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaCadBomAlignmentTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaCadStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaCadStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaCadTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaCadTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaCaeStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaCaeStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaCaeTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaCaeTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaCalendarManagementStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaCalendarManagementStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaCalendarManagementTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaCalendarManagementTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaChangeManagementStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaChangeManagementStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaChangeManagementTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaChangeManagementTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaClassificationStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaClassificationStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaClassificationTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaClassificationTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaClient, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaClient.dll</HintPath>
</Reference>
<Reference Include="TcSoaCommon, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaCommon.dll</HintPath>
</Reference>
<Reference Include="TcSoaConfigurationStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaConfigurationStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaConfigurationTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaConfigurationTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaContMgmtBaseStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaContMgmtBaseStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaContMgmtBaseTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaContMgmtBaseTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaCoreTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaCoreTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaDocumentManagementStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaDocumentManagementStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaDocumentManagementTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaDocumentManagementTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaManufacturingStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaManufacturingStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaProductionManagementStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaProductionManagementStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaProductionManagementTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaProductionManagementTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaProjectManagementStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaProjectManagementStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaProjectManagementTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaProjectManagementTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaQueryStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaQueryStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaQueryTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaQueryTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaStrongModel, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaStrongModel.dll</HintPath>
</Reference>
<Reference Include="TcSoaStructureManagementStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaStructureManagementStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaStructureManagementTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaStructureManagementTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaSystemsEngineeringStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaSystemsEngineeringStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaSystemsEngineeringTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaSystemsEngineeringTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaTranslationStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaTranslationStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaTranslationTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaTranslationTypes.dll</HintPath>
</Reference>
<Reference Include="TcSoaWorkflowStrong, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaWorkflowStrong.dll</HintPath>
</Reference>
<Reference Include="TcSoaWorkflowTypes, Version=12000.0.0.0, Culture=neutral, PublicKeyToken=0edd5b5ddd601444, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\11.2\TcSoaWorkflowTypes.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="ErpWebService.asmx" />
<Content Include="Global.asax" />
<Content Include="Web.config">
<SubType>Designer</SubType>
</Content>
<Content Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
<Content Include="Web.Release.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
</ItemGroup>
<ItemGroup>
<Compile Include="CNIcoProperty.cs" />
<Compile Include="ErpWebService.asmx.cs">
<DependentUpon>ErpWebService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="OracleQuery.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="QueryServerData.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
</ItemGroup>
<ItemGroup>
<Content Include="log4net.config">
<SubType>Designer</SubType>
</Content>
<Content Include="packages.config" />
<None Include="Properties\PublishProfiles\CONFIG_1.pubxml" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\SyncTaskStatus\SyncTaskStatus\SyncTaskStatus.csproj">
<Project>{851e2848-6303-41b1-8aa8-b93a4d0172c2}</Project>
<Name>SyncTaskStatus</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>2764</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>
</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/Housekeeping/ProjectSettingsUpgraded/IsUpgraded/@EntryValue">True</s:Boolean></wpf:ResourceDictionary>

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ReferencePath>E:\康勒资源\TC12\soa\12.0\soa_client\net\libs\</ReferencePath>
<NameOfLastUsedPublishProfile>C:\Users\wangc\Desktop\东富龙最新代码\IntegrationService\IntegrationService\Properties\PublishProfiles\CONFIG_1.pubxml</NameOfLastUsedPublishProfile>
<UseIISExpress>false</UseIISExpress>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<Use64BitIISExpress />
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<StartPageUrl>
</StartPageUrl>
<StartAction>CurrentPage</StartAction>
<AspNetDebugging>True</AspNetDebugging>
<SilverlightDebugging>False</SilverlightDebugging>
<NativeDebugging>False</NativeDebugging>
<SQLDebugging>False</SQLDebugging>
<ExternalProgram>
</ExternalProgram>
<StartExternalURL>
</StartExternalURL>
<StartCmdLineArguments>
</StartCmdLineArguments>
<StartWorkingDirectory>
</StartWorkingDirectory>
<EnableENC>False</EnableENC>
<AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>

@ -0,0 +1,142 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.OracleClient;
using System.Data;
using SyncTaskStatus;
namespace IntegrationService.ERP
{
public class OracleQuery
{
public static string connString = "Data Source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.221)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = TC10)));Persist security Info=True;User ID=tc10;Password=infodba;";
/// <summary>
/// 获取设备PUID
/// </summary>
/// <param name="equipItemID"></param>
/// <returns></returns>
public static string getEquipPUID(string equipItemID){
string result = null;
string sqlString = String.Format("SELECT PUID FROM PITEM WHERE PITEM_ID ='{0}'", equipItemID);
OracleConnection conn = new OracleConnection(connString);
try
{
conn.Open();
OracleCommand cmd = new OracleCommand(sqlString, conn);
OracleDataAdapter adap = new OracleDataAdapter(cmd);
DataSet ds = new DataSet();
adap.Fill(ds);
DataTable dt = ds.Tables[0];
if(dt != null){
foreach (DataRow row in dt.Rows) {
result = row["PUID"].ToString();
}
}
conn.Close();
}catch(Exception ex){
result = null;
if (conn.State == ConnectionState.Open)
conn.Close();
}
return result;
}
/// <summary>
/// 获取任务puid
/// </summary>
/// <param name="projID"></param>
/// <param name="equipID"></param>
/// <param name="taskCode"></param>
/// <returns></returns>
public static string getTaskPUID(string projID,string equipID ,string taskCode)
{
string result = null;
string sqlString = String.Format("select T2.T_TASK_PUID AS PUID from ADMIN.equiptmentinfo t1 left join TC10.rt4_task_table t2 on t1.rt4schedule_tag = t2.schedule_puid and t2.t_task_rt4code ='{0}' where t1.f08='{1}' and t1.f01 ='{2}'", taskCode, projID, equipID);
OracleConnection conn = new OracleConnection(connString);
try
{
conn.Open();
OracleCommand cmd = new OracleCommand(sqlString, conn);
OracleDataAdapter adap = new OracleDataAdapter(cmd);
DataSet ds = new DataSet();
adap.Fill(ds);
DataTable dt = ds.Tables[0];
if (dt != null)
{
foreach (DataRow row in dt.Rows)
{
result = row["PUID"].ToString();
}
}
conn.Close();
}
catch (Exception ex)
{
result = sqlString;
if (conn.State == ConnectionState.Open)
conn.Close();
}
return result;
}
/// <summary>
/// 获取任务puid
/// </summary>
/// <param name="projID"></param>
/// <param name="equipID"></param>
/// <param name="taskCode"></param>
/// <returns></returns>
public static ServerData getProjectInfo(string projID, string equipID)
{
ServerData da = new ServerData();
da.ProjectCode = projID;
da.EquipmentCode = equipID;
string sqlString = String.Format("select localization(PFND0STATUS) AS PROJINFO ,PRT4JSFZR ,PRT4SCFZR from projectinfoviews_new where pitem_id = '{0}-{1}'", projID, equipID);
OracleConnection conn = new OracleConnection(connString);
try
{
conn.Open();
OracleCommand cmd = new OracleCommand(sqlString, conn);
OracleDataAdapter adap = new OracleDataAdapter(cmd);
DataSet ds = new DataSet();
adap.Fill(ds);
DataTable dt = ds.Tables[0];
if (dt != null)
{
da.Status = true;
if(dt.Rows.Count ==0)
{
da.Status = false;
da.Message = string.Format("没有获取到项目信息");
}
foreach (DataRow row in dt.Rows)
{
da.ProjStatus = row["PROJINFO"].ToString();
da.SJFZR = row["PRT4JSFZR"].ToString();
da.SCFZR = row["PRT4SCFZR"].ToString();
}
}
else {
da.Status = false;
da.Message = string.Format("没有获取到项目信息");
}
conn.Close();
}
catch (Exception ex)
{
da.Status = false;
da.Message = string.Format("获取项目信息失败");
if (conn.State == ConnectionState.Open)
conn.Close();
}
return da;
}
}
}

@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("IntegrationService")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("IntegrationService")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("4232e456-9459-40cd-9241-cbbc7bb08001")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<SiteUrlToLaunchAfterPublish />
<publishUrl>F:\PUBLISH</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
</Project>

@ -0,0 +1,259 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<TimeStampOfAssociatedLegacyPublishXmlFile />
<_PublishTargetUrl>F:\PUBLISH</_PublishTargetUrl>
<History>False|2021-05-26T02:15:32.3487256Z;False|2021-03-10T14:40:12.5107778+08:00;</History>
</PropertyGroup>
<ItemGroup>
<File Include="bin/FCCNetClientProxy40.dll">
<publishTime>07/13/2015 11:40:10</publishTime>
</File>
<File Include="bin/FCCNetClientProxy4064.dll">
<publishTime>07/01/2020 10:55:44</publishTime>
</File>
<File Include="bin/IntegrationService.dll">
<publishTime>07/15/2020 09:21:30</publishTime>
</File>
<File Include="bin/IntegrationService.pdb">
<publishTime>06/28/2017 14:31:00</publishTime>
</File>
<File Include="bin/log4net.dll">
<publishTime>04/30/2008 06:45:56</publishTime>
</File>
<File Include="bin/Newtonsoft.Json.dll">
<publishTime>02/06/2013 17:16:43</publishTime>
</File>
<File Include="bin/Oracle.ManagedDataAccess.dll">
<publishTime>09/26/2015 10:19:20</publishTime>
</File>
<File Include="bin/S8SoaBypassStrong.dll">
<publishTime>07/12/2017 21:53:56</publishTime>
</File>
<File Include="bin/S8SoaBypassTypes.dll">
<publishTime>07/12/2017 21:53:52</publishTime>
</File>
<File Include="bin/SyncTaskStatus.dll">
<publishTime>07/15/2020 09:21:28</publishTime>
</File>
<File Include="bin/SyncTaskStatus.pdb">
<publishTime>06/28/2017 14:31:00</publishTime>
</File>
<File Include="bin/TcMemNetBinding40.dll">
<publishTime>07/13/2015 11:40:44</publishTime>
</File>
<File Include="bin/TcMemNetBindingInterface40.dll">
<publishTime>07/13/2015 11:40:12</publishTime>
</File>
<File Include="bin/TcServerNetBinding40.dll">
<publishTime>07/13/2015 11:40:34</publishTime>
</File>
<File Include="bin/TcServerNetBinding4064.dll">
<publishTime>07/13/2015 11:40:16</publishTime>
</File>
<File Include="bin/TcServerNetBindingInterface40.dll">
<publishTime>07/13/2015 11:40:02</publishTime>
</File>
<File Include="bin/TcSoaAdministrationStrong.dll">
<publishTime>07/16/2015 09:41:58</publishTime>
</File>
<File Include="bin/TcSoaAdministrationTypes.dll">
<publishTime>07/16/2015 09:41:58</publishTime>
</File>
<File Include="bin/TcSoaAiStrong.dll">
<publishTime>07/16/2015 09:46:32</publishTime>
</File>
<File Include="bin/TcSoaAiTypes.dll">
<publishTime>07/16/2015 09:46:32</publishTime>
</File>
<File Include="bin/TcSoaAllocationsStrong.dll">
<publishTime>07/16/2015 09:45:40</publishTime>
</File>
<File Include="bin/TcSoaAllocationsTypes.dll">
<publishTime>07/16/2015 09:45:40</publishTime>
</File>
<File Include="bin/TcSoaAsbAsmAlignmentStrong.dll">
<publishTime>07/16/2015 09:46:34</publishTime>
</File>
<File Include="bin/TcSoaAsbAsmAlignmentTypes.dll">
<publishTime>07/10/2018 15:47:16</publishTime>
</File>
<File Include="bin/TcSoaAsBuiltStrong.dll">
<publishTime>07/16/2015 09:47:00</publishTime>
</File>
<File Include="bin/TcSoaAsBuiltTypes.dll">
<publishTime>07/16/2015 09:47:00</publishTime>
</File>
<File Include="bin/TcSoaAsMaintainedStrong.dll">
<publishTime>07/16/2015 09:47:00</publishTime>
</File>
<File Include="bin/TcSoaAsMaintainedTypes.dll">
<publishTime>07/16/2015 09:47:00</publishTime>
</File>
<File Include="bin/TcSoaAuthorizedDataAccessStrong.dll">
<publishTime>07/16/2015 09:47:16</publishTime>
</File>
<File Include="bin/TcSoaAuthorizedDataAccessTypes.dll">
<publishTime>07/16/2015 09:47:16</publishTime>
</File>
<File Include="bin/TcSoaBomStrong.dll">
<publishTime>07/16/2015 09:47:12</publishTime>
</File>
<File Include="bin/TcSoaBomTypes.dll">
<publishTime>07/16/2015 09:47:12</publishTime>
</File>
<File Include="bin/TcSoaBusinessModelerStrong.dll">
<publishTime>07/16/2015 09:47:59</publishTime>
</File>
<File Include="bin/TcSoaBusinessModelerTypes.dll">
<publishTime>07/16/2015 09:47:59</publishTime>
</File>
<File Include="bin/TcSoaCadBomAlignmentStrong.dll">
<publishTime>07/16/2015 09:48:29</publishTime>
</File>
<File Include="bin/TcSoaCadBomAlignmentTypes.dll">
<publishTime>07/16/2015 09:48:29</publishTime>
</File>
<File Include="bin/TcSoaCadStrong.dll">
<publishTime>07/16/2015 09:41:45</publishTime>
</File>
<File Include="bin/TcSoaCadTypes.dll">
<publishTime>07/16/2015 09:41:45</publishTime>
</File>
<File Include="bin/TcSoaCaeStrong.dll">
<publishTime>07/16/2015 09:42:58</publishTime>
</File>
<File Include="bin/TcSoaCaeTypes.dll">
<publishTime>07/16/2015 09:42:58</publishTime>
</File>
<File Include="bin/TcSoaCalendarManagementStrong.dll">
<publishTime>07/16/2015 09:47:43</publishTime>
</File>
<File Include="bin/TcSoaCalendarManagementTypes.dll">
<publishTime>07/16/2015 09:47:43</publishTime>
</File>
<File Include="bin/TcSoaChangeManagementStrong.dll">
<publishTime>07/16/2015 09:48:24</publishTime>
</File>
<File Include="bin/TcSoaChangeManagementTypes.dll">
<publishTime>07/16/2015 09:48:24</publishTime>
</File>
<File Include="bin/TcSoaClassificationStrong.dll">
<publishTime>07/16/2015 09:49:39</publishTime>
</File>
<File Include="bin/TcSoaClassificationTypes.dll">
<publishTime>07/16/2015 09:49:39</publishTime>
</File>
<File Include="bin/TcSoaClient.dll">
<publishTime>07/16/2015 09:30:55</publishTime>
</File>
<File Include="bin/TcSoaCommon.dll">
<publishTime>07/16/2015 09:30:15</publishTime>
</File>
<File Include="bin/TcSoaConfigurationStrong.dll">
<publishTime>07/16/2015 09:49:14</publishTime>
</File>
<File Include="bin/TcSoaConfigurationTypes.dll">
<publishTime>07/16/2015 09:49:14</publishTime>
</File>
<File Include="bin/TcSoaContMgmtBaseStrong.dll">
<publishTime>07/16/2015 09:43:07</publishTime>
</File>
<File Include="bin/TcSoaContMgmtBaseTypes.dll">
<publishTime>07/16/2015 09:43:07</publishTime>
</File>
<File Include="bin/TcSoaCoreStrong.dll">
<publishTime>07/16/2015 09:39:10</publishTime>
</File>
<File Include="bin/TcSoaCoreTypes.dll">
<publishTime>07/16/2015 09:39:10</publishTime>
</File>
<File Include="bin/TcSoaDocumentManagementStrong.dll">
<publishTime>07/16/2015 09:44:06</publishTime>
</File>
<File Include="bin/TcSoaDocumentManagementTypes.dll">
<publishTime>07/16/2015 09:44:06</publishTime>
</File>
<File Include="bin/TcSoaFMS.dll">
<publishTime>07/16/2015 10:14:16</publishTime>
</File>
<File Include="bin/TcSoaFMS64.dll">
<publishTime>07/10/2018 16:09:30</publishTime>
</File>
<File Include="bin/TcSoaManufacturingStrong.dll">
<publishTime>07/16/2015 09:54:15</publishTime>
</File>
<File Include="bin/TcSoaProductionManagementStrong.dll">
<publishTime>07/16/2015 09:51:26</publishTime>
</File>
<File Include="bin/TcSoaProductionManagementTypes.dll">
<publishTime>07/16/2015 09:51:26</publishTime>
</File>
<File Include="bin/TcSoaProjectManagementStrong.dll">
<publishTime>07/16/2015 09:52:33</publishTime>
</File>
<File Include="bin/TcSoaProjectManagementTypes.dll">
<publishTime>07/16/2015 09:52:33</publishTime>
</File>
<File Include="bin/TcSoaQueryStrong.dll">
<publishTime>07/16/2015 09:33:32</publishTime>
</File>
<File Include="bin/TcSoaQueryTypes.dll">
<publishTime>07/16/2015 09:33:32</publishTime>
</File>
<File Include="bin/TcSoaStrongModel.dll">
<publishTime>07/16/2015 09:32:09</publishTime>
</File>
<File Include="bin/TcSoaStructureManagementStrong.dll">
<publishTime>07/16/2015 09:55:44</publishTime>
</File>
<File Include="bin/TcSoaStructureManagementTypes.dll">
<publishTime>07/16/2015 09:55:44</publishTime>
</File>
<File Include="bin/TcSoaSystemsEngineeringStrong.dll">
<publishTime>07/16/2015 09:52:27</publishTime>
</File>
<File Include="bin/TcSoaSystemsEngineeringTypes.dll">
<publishTime>07/16/2015 09:52:27</publishTime>
</File>
<File Include="bin/TcSoaTranslationStrong.dll">
<publishTime>07/16/2015 09:53:07</publishTime>
</File>
<File Include="bin/TcSoaTranslationTypes.dll">
<publishTime>07/16/2015 09:53:07</publishTime>
</File>
<File Include="bin/TcSoaWorkflowStrong.dll">
<publishTime>07/16/2015 09:34:40</publishTime>
</File>
<File Include="bin/TcSoaWorkflowTypes.dll">
<publishTime>07/16/2015 09:34:40</publishTime>
</File>
<File Include="bin/Teamcenter_SSO.dll">
<publishTime>05/29/2015 05:36:25</publishTime>
</File>
<File Include="bin/Teamcenter_SSO64.dll">
<publishTime>05/29/2015 05:36:25</publishTime>
</File>
<File Include="bin/Teamcenter_SSOloader.dll">
<publishTime>05/29/2015 05:36:25</publishTime>
</File>
<File Include="ErpWebService.asmx">
<publishTime>10/19/2016 14:13:15</publishTime>
</File>
<File Include="Global.asax">
<publishTime>07/09/2020 14:45:56</publishTime>
</File>
<File Include="log4net.config">
<publishTime>07/09/2020 13:46:32</publishTime>
</File>
<File Include="Web.config">
<publishTime>07/15/2020 09:21:31</publishTime>
</File>
</ItemGroup>
</Project>

@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace IntegrationService
{
/*查询数据返回结构*/
public class QueryServerDataInfo
{
public bool Status {get;set;}
public string Message { get; set; }
public List<TaskInfo> result { get; set; }
}
public class QueryServerDataInfos
{
public bool Status {get;set;}
public string Message { get; set; }
public List<TaskInfos> result { get; set; }
}
public class TaskInfo
{
public string pstart_date {get;set;}
public string pfinish_date {get;set;}
public string pactual_start_date {get;set;}
public string pactual_finish_date {get;set;}
public double pwork_complete {get;set;}
public string presource {get;set;}
public double pactual_time { get; set; }
public double pcomplete_percent { get; set; }
public string passign_date {get;set;}
public double passign_price{get;set;}
public string pmaingroup {get;set;}
public string premark {get;set;}
public string accounttime { get; set;}
}
public class TaskInfos
{
public string projectitemid { get; set; }
public string equipmentitemid { get; set; }
public string tasklov { get; set; }
public double hours { get; set; }
}
}

@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an atrribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>

@ -0,0 +1,31 @@
<?xml version="1.0"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an atrribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>

@ -0,0 +1,656 @@
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</sectionGroup>
</sectionGroup>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<log4net configSource="log4net.config"/>
<!--
2018-12-18 增加配置
DateFormat 获取生产配置清单服务传入的日期格式
SCPZ_XML_DATASET_NAME 匹配配置集XML数据集名称的正则表达式
SCPZ_TYPES 生产配置对象的类型,用英文分号分割
SCPZ_DS_REL 生产配置XML数据集关系用英文分号分割
SCPZ_DS_TYPE 生产配置XML数据集类型用英文分号分割
SCPZ_FILE_DS_REL 生产配置数据集关系,用英文分号分割
SCPZ_PROC_DS_REL 生产配置工艺数据集关系,用英文分号分割
SCPZ_FORM_TYPE 创建的表单类型
SCPZ_FORM_PROPNAME 需要填写的表单属性
SCPZ_FORM_REL 表单和目标对象之间的关系
SCPZ_FORM_NAME 创建配置表单名称
FMS_URL FMS服务地址
FMS_CACHE 下载文件临时文件夹(此文件夹必须存在于系统)
ProdCfgType_<对象类型> 获取生产配置信息时的对象类型属性默认取object_type
T5_Webservice_Bop_Pref 保存BOP配置数据集UID的首选项名称
BOP_SMASTER_TYPE BOP配置中SMASTER配置对应的版本下的表单类型
BOP_SMASTER_REL BOP配置中SMASTER配置对应的版本下的表单和所在版本之间的关系名称
如果通过以上生产配置对象信息查询到多个XML数据集或引用文件将作为异常处理
-->
<appSettings>
<add key="TCUrl" value="http://127.0.0.1:7001/tc"/>
<add key="TCUser" value="admin"/>
<add key="TCPassword" value="admin"/>
<add key="KKUser" value="plmuser"/>
<add key="KKPassword" value="Tofflon@2020"/>
<add key="LoggerState" value="ON"/>
<add key="LogPath" value="C:/PLM/"/>
<add key="CMSUrl" value="http://localhost/ErpWebService.asmx"/>
<add key="CMSRelation" value="T5_EDAComp_rel"/>
<add key="DateFormat" value="yyyy-M-d"/>
<add key="ProdCfgCollectionDateFormat" value="yyyy-MM-dd HH:mm:ss"/>
<add key="SCPZ_XML_DATASET_NAME" value="^\S*配置_[0-9]{14}.xml$"/>
<add key="SCPZ_TYPES" value="Item;T5_Element;T5_ElementRevision"/>
<add key="SCPZ_DS_REL" value="TC_Attaches;IMAN_specification;IMAN_reference"/>
<add key="SCPZ_DS_TYPE" value="Text;MSWordX"/>
<add key="SCPZ_FILE_DS_REL" value="TC_Attaches;IMAN_specification;IMAN_reference"/>
<add key="SCPZ_PROC_DS_REL" value="TC_Attaches;IMAN_specification;IMAN_reference"/>
<add key="SCPZ_FORM_TYPE" value="T5_ChangeForm"/>
<add key="SCPZ_FORM_PROPNAME" value="t5_pComment"/>
<add key="SCPZ_FORM_REL" value="IMAN_reference"/>
<add key="SCPZ_FORM_NAME" value="配置表单名称"/>
<add key="FMS_URL" value="http://127.0.0.1:4544"/>
<add key="FMS_CACHE" value="c:\\tc\\PLM\\FMS_CACHE\\"/>
<add key="ADMIN_UID" value="AGQ5brXP5gRCGA"/>
<add key="爱瑞思F" value="wvjBRGnR58CTrD"/>
<add key="FCJ" value="wvjBRGnR58CTrD"/>
<add key="DCA" value="wvjBRGnR58CTrD"/>
<!-- 爱瑞思 -->
<add key="包装技术-灯检机F" value="wvoBRGnR58CTrD"/>
<!-- 包装技术 -->
<add key="包装技术-自动包装线F" value="wvoBRGnR58CTrD"/>
<!-- 包装技术 -->
<add key="检查包装事业部F" value="xcsB8WQZ58CTrD"/>
<!-- 包装技术 -->
<add key="冻干机-冻融机F" value="wvsBRGnR58CTrD"/>
<!-- 冻干机 -->
<add key="冻干机-冻干机F" value="wvsBRGnR58CTrD"/>
<!-- 冻干机 -->
<add key="冻干机-灭菌柜F" value="wvsBRGnR58CTrD"/>
<!-- 冻干机 -->
<add key="冻干机-清洗机F" value="wvsBRGnR58CTrD"/>
<!-- 冻干机 -->
<add key="分装机-西林瓶联动线F" value="wzgBRGnR58CTrD"/>
<!-- 分装机 -->
<add key="分装机-安瓿瓶联动线F" value="wzgBRGnR58CTrD"/>
<!-- 分装机 -->
<add key="分装机-粉末分装F" value="wzgBRGnR58CTrD"/>
<!-- 分装机 -->
<add key="分装机-口服液联动线F" value="wzgBRGnR58CTrD"/>
<!-- 分装机 -->
<add key="分装机-预灌封F" value="wzgBRGnR58CTrD"/>
<!-- 分装机 -->
<add key="分装机-西林安瓿瓶两用机联动线F" value="wzgBRGnR58CTrD"/>
<!-- 分装机 -->
<add key="涵欧F" value="wzkBRGnR58CTrD"/>
<!-- 固体制剂 -->
<add key="固体制剂事业部F" value="xgjB8WQZ58CTrD"/>
<!-- 固体制剂 -->
<add key="生物工程F" value="wzoBRGnR58CTrD"/>
<!-- 生物工程 -->
<add key="生物工程事业部F" value="xgqB8WQZ58CTrD"/>
<!-- 生物工程 -->
<add key="塑料包装产品部F" value="wzsBRGnR58CTrD"/>
<!-- 塑料包装 -->
<add key="特需产品部F" value="w3gBRGnR58CTrD"/>
<!-- 特需 -->
<add key="拓溥F" value="w3kBRGnR58CTrD"/>
<!-- 拓溥 -->
<add key="医疗装备F" value="w3oBRGnR58CTrD"/>
<!-- 医疗装备 -->
<add key="东富龙医疗F" value="xkhB8WQZ58CTrD"/>
<!-- 医疗装备 -->
<add key="制药设备工程F" value="w3sBRGnR58CTrD"/>
<!-- 原料药 -->
<add key="原料药事业部F" value="xklB8WQZ58CTrD"/>
<!-- 原料药 -->
<add key="自动机械产品部F" value="w7gBRGnR58CTrD"/>
<!-- 自动机械 -->
<add key="上海共和F" value="w7kBRGnR58CTrD"/>
<!-- 共和 -->
<add key="注射剂事业部F" value="w7oBRGnR58CTrD"/>
<!-- 注射剂系统部 -->
<add key="国际销售事业部F" value="xclB8WQZ58CTrD"/>
<!-- 注射剂系统部 -->
<add key="ProdCfgType_T5_ElementRevision" value="item_revision_id"/>
<add key="T5_Webservice_Bop_Pref" value="T5_Webservice_BOP_Config"/>
<add key="BOP_SMASTER_TYPE" value="xxx"/>
<add key="BOP_SMASTER_REL" value="xxx"/>
<add key="LOGICAL_PROPS" value="t5_zhuanjian;t5_isKeyCheck;t5_isForceCheck;t5_isKey;t5_has_HR_info"/>
<!-- 方案人员 账号配置 -->
<add key="00282" value="00282"/>
<!-- 陈学龙 00282 -->
<add key="00875" value="00875-00282"/>
<!-- 吴凯 00875 -->
<add key="01639" value="01639-00282"/>
<!-- 李春超 01639 -->
<add key="00838" value="00838-00282"/>
<!-- 陶远 00838 -->
<add key="01397" value="01397"/>
<!-- 谢宇飞 01397 -->
<add key="USR3_USR" value="00571"/>
<!-- 邵启彬 00571 -->
<add key="01239" value="01239-00571"/>
<!-- 苏琦 01239 -->
<add key="USR4_USR" value="00954"/>
<!-- 何桃勇 00954 -->
<add key="00725" value="00725-00954"/>
<!-- 王永真 00725 -->
<add key="02480" value="02480-00954"/>
<!-- 罗汪海赟 02480 -->
<add key="00575" value="00575"/>
<!-- 曹振生 00575 -->
<add key="00445" value="00445"/>
<!-- 刘超 00445 -->
<add key="00305" value="00305"/>
<!-- 张勇 00305 -->
<add key="01184" value="01184-00305"/>
<!-- 李成良 01184 -->
<add key="01352" value="01352-00305"/>
<!-- 王仁新 01352 -->
<add key="01404" value="01404-00305"/>
<!-- 刘斌羽 01404 -->
<add key="00149" value="00149"/>
<!-- 苗永春 00149 -->
<add key="00776" value="00776"/>
<!-- 王君健 00776 -->
<add key="04012" value="04012"/>
<!-- 高健飞 04012 -->
<add key="04070" value="04070"/>
<!-- 廖喜清 04070 -->
<add key="01742" value="01742"/>
<!-- 齐云云 01742 -->
<add key="01663" value="01663"/>
<!-- 朱国庆 01404 -->
<add key="01107" value="01107"/>
<!-- 顾彬 01107 -->
<add key="00240" value="00240"/>
<!-- 刘军鹏 00240 -->
<add key="00642" value="00642"/>
<!-- 王启明 00642 -->
<add key="00763" value="00763"/>
<!-- 王舟波 00763 -->
<add key="01445" value="01445-00763"/>
<!-- 郑暄 01445 -->
<add key="01452" value="01452-00763"/>
<!-- 庞松林 01452 -->
<add key="00317" value="00317"/>
<!-- 李连杰 00317 -->
<add key="00685" value="00685"/>
<!-- 罗小为 00685 -->
<add key="01278" value="01278"/>
<!-- 胡建军 01278 -->
<add key="02944" value="02944-01278"/>
<!--万嘉辉 02944 -->
<add key="00599" value="00599"/>
<!-- 徐丹 00599 -->
<add key="02079" value="02079-00599"/>
<!-- 杜晓林 02079 -->
<add key="01155" value="01155-00599"/>
<!-- 姚琦 01155 -->
<add key="01165" value="01165-00599"/>
<!-- 刘飘 01165 -->
<add key="02979" value="02979-00599"/>
<!-- 何小创 02979 -->
<add key="02520" value="02520-00599"/>
<!-- 朱宗利 02520 -->
<add key="01739" value="01739"/>
<!-- 周阳 01739 -->
<add key="00038" value="00038"/>
<!-- 李宁生 00038 -->
<add key="00734" value="00734"/>
<!-- 张冬雪 00734 -->
<add key="01344" value="01344-00734"/>
<!-- 徐敏 01344 -->
<add key="01772" value="01772-00734"/>
<!-- 周辉 01772 -->
<add key="01006" value="01006-00734"/>
<!-- 姜杰 01006 -->
<add key="03237" value="03237-00734"/>
<!-- 李密 03237 -->
<add key="02855" value="02855-00734"/>
<!-- 徐杰 02855 -->
<add key="02374" value="02374"/>
<!-- 唐喜乐 02374 -->
<add key="02072" value="02072"/>
<!-- 刘璞 02072 -->
<add key="00577" value="00577"/>
<!-- 蔡沈燕 00577 -->
<add key="00993" value="00993"/>
<!-- 吴岩 00993 -->
<add key="00973" value="00973"/>
<!-- 郭全举 00973 -->
<add key="02111" value="02111"/>
<!-- 王春峰 02111 -->
<add key="00149" value="00149"/>
<!-- 苗永春 00149 -->
<add key="00776" value="00776-00149"/>
<!-- 王君健 00776 -->
<add key="01663" value="01663-00149"/>
<!-- 朱国庆 01663 -->
<add key="00896" value="00896"/>
<!-- 冯健宇 00896 -->
<add key="01026" value="01026"/>
<!-- 顾捐永 01026 -->
<add key="02248" value="02248"/>
<!-- 张柏森 02248 -->
<add key="00692" value="00692"/>
<!-- 沈帅 00692 -->
<add key="00861" value="00861"/>
<!-- 林骥晗 00861 -->
<add key="01247" value="01247"/>
<!-- 冯乐 01247 -->
<add key="01378" value="01378"/>
<!-- 朱忠正 01378 -->
<add key="01759" value="01759"/>
<!-- 马亚琴 01759 -->
<add key="01764" value="01764"/>
<!-- 徐亦丰 01764 -->
<add key="00992" value="00992"/>
<!-- 邹建明 00992 -->
<add key="00939" value="00939"/>
<!-- 李浩 00939 -->
<add key="03117" value="03117-00939"/>
<!-- 高阳 03117 -->
<add key="01351" value="01351"/>
<!-- 秦兵 01351 -->
<add key="00720" value="00720"/>
<!-- 潘剑 00720 -->
<add key="01293" value="01293"/>
<!-- 冯子倚 01293 -->
<add key="02530" value="02530"/>
<!-- 丁洋 02530 -->
<add key="01908" value="01908"/>
<!-- 李万珍 01908 -->
<add key="02833" value="02833"/>
<!-- 司绍戎 02833 -->
<add key="01730" value="01730"/>
<!-- 田长安 01730 -->
<add key="00389" value="00389"/>
<!-- 严玉婷 00389 -->
<add key="02596" value="02596"/>
<!-- 蔡杰伟 02596 -->
<add key="03037" value="03037"/>
<!-- 李登科 03037 -->
<add key="02925" value="02925"/>
<!-- 谢瀚森 02925 -->
<add key="00966" value="00966"/>
<!-- 余文文 00966 -->
<add key="02416" value="02416"/>
<!-- 朱平 02416 -->
<add key="00039" value="00039"/>
<!-- 史迁 00039 -->
<add key="00756" value="00756"/>
<!-- 产皖江 00756 -->
<add key="00197" value="00197"/>
<!-- 卢木华 00197 -->
<add key="01238" value="01238-00197"/>
<!-- 郭自强 01238 -->
<add key="01281" value="01281-00197"/>
<!-- 孙宾 01281 -->
<add key="01361" value="01361-00197"/>
<!-- 张蓓花 01361 -->
<add key="00271" value="00271"/>
<!-- 孙山 00271 -->
<add key="00213" value="00213"/>
<!-- 彭鹏 00213 -->
<add key="00510" value="00510"/>
<!-- 祁小雷 00510 -->
<add key="01267" value="01267-00510"/>
<!-- 洪美华 01267 -->
<add key="03052" value="03052-00510"/>
<!-- 郭武辉 03052 -->
<add key="01170" value="01170-00510"/>
<!-- 陶丹 01170 -->
<add key="01925" value="01925"/>
<!-- 王冬 01925 -->
<add key="02455" value="02455"/>
<!-- 张文锋 02455 -->
<add key="01660" value="01660"/>
<!-- 王征 01660 -->
<add key="00075" value="00075"/>
<!-- 郑福相 00075 -->
<add key="02503" value="02503"/>
<!-- 姜伟刚 02503 -->
<add key="01005" value="01005"/>
<!-- 陈滨阳 01005 -->
<add key="01259" value="01259"/>
<!-- 廖辉祥 01259 -->
<add key="00908" value="00908"/>
<!-- 胡杰杰 00908 -->
<add key="02266" value="02266"/>
<!-- 尤晓虎 02266 -->
<add key="02341" value="02341"/>
<!-- 石徐川 02341 -->
<add key="02279" value="02279"/>
<!-- 李彦巍 02279 -->
<add key="01239" value="01239"/>
<!-- 苏琦 01239 -->
<add key="00213" value="00213"/>
<!-- 彭鹏 00213 -->
<add key="00933" value="00933-00213"/>
<!-- 徐斌 00933 -->
<add key="01507" value="01507-00213"/>
<!-- 王梅 01507 -->
<add key="04143" value="04143-00213"/>
<!-- 朱顾凡 04143 -->
<!-- 方案人员 密码配置 -->
<add key="00282_PSW" value="00282"/>
<!-- 陈学龙 00282 -->
<add key="01397_PSW" value="01397"/>
<!-- 谢宇飞 01397 -->
<add key="00571_PSW" value="00571"/>
<!-- 邵启彬 00571 -->
<add key="00954_PSW" value="00954"/>
<!-- 何桃勇 00954 -->
<add key="00575_PSW" value="00575"/>
<!-- 曹振生 00575 -->
<add key="00445_PSW" value="00445"/>
<!-- 刘超 00445 -->
<add key="00305_PSW" value="00305"/>
<!-- 张勇 00305 -->
<add key="01107_PSW" value="01107"/>
<!-- 顾彬 01107 -->
<add key="00240_PSW" value="00240"/>
<!-- 刘军鹏 00240 -->
<add key="00642_PSW" value="00642"/>
<!-- 王启明 00642 -->
<add key="00763_PSW" value="00763"/>
<!-- 王舟波 00763 -->
<add key="00317_PSW" value="00317"/>
<!-- 李连杰 00317 -->
<add key="00685_PSW" value="00685"/>
<!-- 罗小为 00685 -->
<add key="01278_PSW" value="01278"/>
<!-- 胡建军 01278 -->
<add key="00599_PSW" value="00599"/>
<!-- 徐丹 00599 -->
<add key="01739_PSW" value="01739"/>
<!-- 周阳 01739 -->
<add key="00038_PSW" value="00038"/>
<!-- 李宁生 00038 -->
<add key="00734_PSW" value="00734"/>
<!-- 张冬雪 00734 -->
<add key="02374_PSW" value="02374"/>
<!-- 唐喜乐 02374 -->
<add key="02072_PSW" value="02072"/>
<!-- 刘璞 02072 -->
<add key="00577_PSW" value="00577"/>
<!-- 蔡沈燕 00577 -->
<add key="00993_PSW" value="00993"/>
<!-- 吴岩 00993 -->
<add key="00973_PSW" value="00973"/>
<!-- 郭全举 00973 -->
<add key="02111_PSW" value="02111"/>
<!-- 王春峰 02111 -->
<add key="00149_PSW" value="00149"/>
<!-- 苗永春 00149 -->
<add key="00896_PSW" value="00896"/>
<!-- 冯健宇 00896 -->
<add key="01026_PSW" value="01026"/>
<!-- 顾捐永 01026 -->
<add key="02248_PSW" value="02248"/>
<!-- 张柏森 02248 -->
<add key="00692_PSW" value="00692"/>
<!-- 沈帅 00692 -->
<add key="00861_PSW" value="00861"/>
<!-- 林骥晗 00861 -->
<add key="01247_PSW" value="01247"/>
<!-- 冯乐 01247 -->
<add key="01378_PSW" value="01378"/>
<!-- 朱忠正 01378 -->
<add key="01759_PSW" value="01759"/>
<!-- 马亚琴 01759 -->
<add key="01764_PSW" value="01764"/>
<!-- 徐亦丰 01764 -->
<add key="00992_PSW" value="00992"/>
<!-- 邹建明 00992 -->
<add key="00939_PSW" value="00939"/>
<!-- 李浩 00939 -->
<add key="01351_PSW" value="01351"/>
<!-- 秦兵 01351 -->
<add key="00720_PSW" value="00720"/>
<!-- 潘剑 00720 -->
<add key="01293_PSW" value="01293"/>
<!-- 冯子倚 01293 -->
<add key="02530_PSW" value="02530"/>
<!-- 丁洋 02530 -->
<add key="01908_PSW" value="01908"/>
<!-- 李万珍 01908 -->
<add key="02833_PSW" value="02833"/>
<!-- 司绍戎 02833 -->
<add key="01730_PSW" value="01730"/>
<!-- 田长安 01730 -->
<add key="00389_PSW" value="00389"/>
<!-- 严玉婷 00389 -->
<add key="02596_PSW" value="02596"/>
<!-- 蔡杰伟 02596 -->
<add key="03037_PSW" value="03037"/>
<!-- 李登科 03037 -->
<add key="02925_PSW" value="02925"/>
<!-- 谢瀚森 02925 -->
<add key="00966_PSW" value="00966"/>
<!-- 余文文 00966 -->
<add key="02416_PSW" value="02416"/>
<!-- 朱平 02416 -->
<add key="00039_PSW" value="00039"/>
<!-- 史迁 00039 -->
<add key="00756_PSW" value="00756"/>
<!-- 产皖江 00756 -->
<add key="00197_PSW" value="00197"/>
<!-- 卢木华 00197 -->
<add key="00271_PSW" value="00271"/>
<!-- 孙山 00271 -->
<add key="00213_PSW" value="00213"/>
<!-- 彭鹏 00213 -->
<add key="00510_PSW" value="00510"/>
<!-- 祁小雷 00510 -->
<add key="01925_PSW" value="01925"/>
<!-- 王冬 01925 -->
<add key="02455_PSW" value="02455"/>
<!-- 张文锋 02455 -->
<add key="01660_PSW" value="01660"/>
<!-- 王征 01660 -->
<add key="00075_PSW" value="00075"/>
<!-- 郑福相 00075 -->
<add key="02503_PSW" value="02503"/>
<!-- 姜伟刚 02503 -->
<add key="01005_PSW" value="01005"/>
<!-- 陈滨阳 01005 -->
<add key="01259_PSW" value="01259"/>
<!-- 廖辉祥 01259 -->
<add key="00908_PSW" value="00908"/>
<!-- 胡杰杰 00908 -->
<add key="02266_PSW" value="02266"/>
<!-- 尤晓虎 02266 -->
<add key="02341_PSW" value="02341"/>
<!-- 石徐川 02341 -->
<add key="02279_PSW" value="02279"/>
<!-- 李彦巍 02279 -->
<add key="01239_PSW" value="01239"/>
<!-- 苏琦 01239 -->
<add key="00213_PSW" value="00213"/>
<!-- 彭鹏 00213 -->
<!-- 固定部门默认账户 -->
<add key="爱瑞思" value="00282"/>
<!-- 爱瑞思 -->
<add key="涵欧" value="01107"/>
<!-- 涵欧 -->
<add key="生物工程" value="01759"/>
<!-- 生物工程 -->
<add key="包装技术-灯检机" value="00038"/>
<!-- 包装技术 -->
<add key="包装技术-自动包装线" value="00571"/>
<!-- 包装技术 -->
<add key="冻干机-冻融机" value="00445"/>
<!-- 冻干机-冻融机 -->
<add key="冻干机-冻干机" value="00954"/>
<!-- 冻干机-冻干机 -->
<add key="冻干机-灭菌柜" value="00445"/>
<!-- 冻干机-灭菌柜 -->
<add key="冻干机-清洗机" value="00575"/>
<!-- 冻干机-清洗机 -->
<add key="分装机-西林瓶联动线" value="00305"/>
<!-- 分装机 -->
<add key="分装机-安瓿瓶联动线" value="00305"/>
<!-- 分装机 -->
<add key="分装机-粉末分装" value="00305"/>
<!-- 分装机 -->
<add key="分装机-口服液联动线" value="00305"/>
<!-- 分装机 -->
<add key="分装机-预灌封" value="00213"/>
<!-- 分装机 -->
<add key="分装机-西林安瓿瓶两用机联动线" value="00305"/>
<!-- 分装机 -->
<add key="塑料包装产品部" value="00992"/>
<!-- 塑料包装 -->
<add key="特需产品部" value="00763"/>
<!-- 特需 -->
<add key="拓溥" value="00317"/>
<!-- 拓溥 -->
<add key="医疗装备" value="00075"/>
<!-- 医疗装备 -->
<add key="制药设备工程" value="00599"/>
<!-- 原料药 -->
<add key="自动机械产品部" value="01739"/>
<!-- 自动机械 -->
<add key="上海共和" value="00038"/>
<!-- 共和 -->
<add key="注射剂事业部" value="00734"/>
<!-- 注射剂系统部 -->
<add key="国际销售事业部" value="00197"/>
<!-- 国际销售事业部 -->
<add key="检查包装事业部" value="00571"/>
<!-- 检查包装事业部 -->
<add key="固体制剂事业部" value="01107"/>
<!-- 固体制剂事业部 -->
<add key="生物工程事业部" value="01759"/>
<!-- 生物工程事业部 -->
<add key="东富龙医疗" value="00075"/>
<!-- 东富龙医疗 -->
<add key="原料药事业部" value="00599"/>
<!-- 原料药事业部 -->
<!-- 注射剂国内 -->
<add key="国内" value="00039-00734-00756-01006-03237-01344-01772-2480-02855-03693-01238-01361"/>
<!-- 注射剂国外 -->
<add key="国外" value="00039-00734-00197-01238-01361-01281"/>
<!-- 知识库 项目配置 -->
<!--Oracle则填写Oracle SqlServer则填写SqlServer 目前只支持这两种 -->
<add key="DB_Type" value="Oracle"/>
<!--中间表名称-->
<add key="DB_TABLE_NAME" value="PLM_ZSK_T"/>
<!--TC查询 通过item_id rev_id查询知识库对象-->
<add key="ZSK_Query" value="QUERY_NAME=CN_FIND_REV|ITEM_ID_ENTRY=CN_ITEMID|REV_ID_ENTRY=CN_REV|ACTIVE_ENTRY=CN_SEQ,0"/>
<add key="Preference_Name" value="CN_DB_MAPPING"/>
<!--需要创建的表单类型-->
<add key="Form_Type" value="Form"/>
<!--下挂表单的关系-->
<add key="Relation" value="IMAN_specification"/>
<!--接口参数XML和数据库字段对于匹配关系-->
<add key="DB_MAPPING" value="ITEM_ID=CN_ITEM_ID|REV_ID=CN_REV_ID|ZSID=CN_ZSID|ZSCODE=CN_ZSCODE|ZSNAME=CN_ZSNAME|ABSTRACT=CN_ABSTRACT"/>
</appSettings>
<connectionStrings>
<add name="DB_SQLSERVER" connectionString="Data Source=tc;Initial Catalog=TC;User ID=sa;Pwd=Passw0rd"/>
<!-- Oracle !-->
<add name="DB_ORACLE" connectionString="Data Source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 1.1.1.198)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = biceweb)));Persist security Info=True;User ID=infodba;Password=infodba"/>
<add name="TCDB" connectionString="Data Source=tc;Initial Catalog=TC;User ID=sa;Pwd=Passw0rd"/>
<!--<add name="TCDB" connectionString="Data Source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.221)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = TC10)));Persist security Info=True;User ID=admin;Password=admin"/>-->
</connectionStrings>
<!--
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
可在 <httpRuntime> 标记上设置以下特性。
<system.Web>
<httpRuntime targetFramework="4.6.2" />
</system.Web>
-->
<system.web>
<compilation debug="true" targetFramework="4.6.2">
<assemblies>
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages validateRequest="false" controlRenderingCompatibilityVersion="4.0">
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
<httpRuntime/>
</system.web>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>
<directoryBrowse enabled="true"/>
<defaultDocument>
<files>
<add value="ErpWebService.asmx"/>
</files>
</defaultDocument>
</system.webServer>
<runtime>
<assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="TcSoaCommon" publicKeyToken="0edd5b5ddd601444" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-12000.1.0.0" newVersion="12000.1.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save