├── .github
└── workflows
│ └── dotnet.yml
├── .gitignore
├── .vs
├── ProjectSettings.json
└── slnx.sqlite
├── Api
├── CsiClient.cs
├── CsiConnection.cs
├── CsiConstants.cs
├── CsiContainer.cs
├── CsiContainerList.cs
├── CsiDataField.cs
├── CsiDataList.cs
├── CsiDocument.cs
├── CsiField.cs
├── CsiList.cs
├── CsiMetaData.cs
├── CsiNamedObject.cs
├── CsiNamedObjectList.cs
├── CsiNamedSubentity.cs
├── CsiNamedSubentityList.cs
├── CsiObject.cs
├── CsiObjectList.cs
├── CsiParameter.cs
├── CsiParameters.cs
├── CsiParentInfo.cs
├── CsiPerform.cs
├── CsiQuery.cs
├── CsiQueryParameters.cs
├── CsiRequestData.cs
├── CsiRequestField.cs
├── CsiRequestSelectionValuesEx.cs
├── CsiResponseData.cs
├── CsiRevisionedObject.cs
├── CsiRevisionedObjectList.cs
├── CsiSelectionValue.cs
├── CsiSelectionValues.cs
├── CsiSelectionValuesEx.cs
├── CsiService.cs
├── CsiSession.cs
├── CsiSubentity.cs
├── CsiSubentityList.cs
├── CsiXMLDataFormat.cs
├── CsiXmlElement.cs
└── CsiXmlHelper.cs
├── CamstarCommon.cs
├── CamstarCommonEx.cs
├── Enum
├── CsiGenericTypes.cs
├── CsiReferenceTypes.cs
├── DataFormats.cs
├── ListActions.cs
└── SerializationModes.cs
├── Exceptions
├── CamstarException.cs
├── CsiClientException.cs
├── CsiExceptionData.cs
└── ExceptionUtil.cs
├── InSiteXmlClient4Core.csproj
├── InSiteXmlClient4Core.sln
├── InSiteXmlClient4Core.sln.DotSettings.user
├── InsiteLoginModel.cs
├── InterFace
├── ICsiCDODefinition.cs
├── ICsiCdoType.cs
├── ICsiConnection.cs
├── ICsiContainer.cs
├── ICsiContainerList.cs
├── ICsiDataField.cs
├── ICsiDataList.cs
├── ICsiDocument.cs
├── ICsiExceptionData.cs
├── ICsiField.cs
├── ICsiFieldDefinition.cs
├── ICsiFieldDefinitions.cs
├── ICsiLabel.cs
├── ICsiList.cs
├── ICsiMetaData.cs
├── ICsiNamedObject.cs
├── ICsiNamedObjectList.cs
├── ICsiNamedSubentity.cs
├── ICsiNamedSubentityList.cs
├── ICsiObject.cs
├── ICsiObjectList.cs
├── ICsiParameter.cs
├── ICsiParameters.cs
├── ICsiParentInfo.cs
├── ICsiPerform.cs
├── ICsiQuery.cs
├── ICsiQueryParameters.cs
├── ICsiRecordset.cs
├── ICsiRecordsetHeader.cs
├── ICsiRequestData.cs
├── ICsiRequestField.cs
├── ICsiRequestSelectionValuesEx.cs
├── ICsiResponseData.cs
├── ICsiRevisionedObject.cs
├── ICsiRevisionedObjectList.cs
├── ICsiSelectionValue.cs
├── ICsiSelectionValues.cs
├── ICsiSelectionValuesEx.cs
├── ICsiService.cs
├── ICsiSession.cs
├── ICsiSubentity.cs
├── ICsiSubentityList.cs
└── ICsiXMLElement.cs
├── README.md
├── Util
├── CryptUtil.cs
├── LogHelper.cs
├── RC2StringProvider.cs
├── ServiceObject.cs
└── StringUtil.cs
├── Utility
└── ServerConnection.cs
└── obj
├── Debug
├── AssemblyReference.cache
├── InSiteXmlClient4Core.1.0.0.nuspec
├── InSiteXmlClient4Core.1.0.1.nuspec
├── netcoreapp2.0
│ ├── InSiteXmlClient4Core.AssemblyInfoInputs.cache
│ ├── InSiteXmlClient4Core.assets.cache
│ ├── InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
│ └── InSiteXmlClient4Core.csproj.FileListAbsolute.txt
├── netcoreapp2.1
│ ├── InSiteXmlClient4Core.AssemblyInfo.cs
│ ├── InSiteXmlClient4Core.AssemblyInfoInputs.cache
│ ├── InSiteXmlClient4Core.assets.cache
│ ├── InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
│ ├── InSiteXmlClient4Core.csproj.FileListAbsolute.txt
│ ├── InSiteXmlClient4Core.csprojAssemblyReference.cache
│ ├── InSiteXmlClient4Core.dll
│ ├── InSiteXmlClient4Core.pdb
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
└── netcoreapp2.2
│ ├── InSiteXmlClient4Core.AssemblyInfo.cs
│ ├── InSiteXmlClient4Core.AssemblyInfoInputs.cache
│ ├── InSiteXmlClient4Core.assets.cache
│ ├── InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
│ ├── InSiteXmlClient4Core.csproj.FileListAbsolute.txt
│ ├── InSiteXmlClient4Core.csprojAssemblyReference.cache
│ ├── InSiteXmlClient4Core.dll
│ ├── InSiteXmlClient4Core.pdb
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ └── project.razor.json
├── InSiteXmlClient4Core.csproj.nuget.cache
├── InSiteXmlClient4Core.csproj.nuget.g.props
├── InSiteXmlClient4Core.csproj.nuget.g.targets
├── Release
├── InSiteXmlClient4Core.1.0.1.nuspec
├── netcoreapp2.0
│ ├── InSiteXmlClient4Core.AssemblyInfo.cs
│ ├── InSiteXmlClient4Core.AssemblyInfoInputs.cache
│ ├── InSiteXmlClient4Core.assets.cache
│ ├── InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
│ ├── InSiteXmlClient4Core.csproj.FileListAbsolute.txt
│ └── InSiteXmlClient4Core.csprojResolveAssemblyReference.cache
├── netcoreapp2.1
│ ├── InSiteXmlClient4Core.AssemblyInfo.cs
│ ├── InSiteXmlClient4Core.AssemblyInfoInputs.cache
│ ├── InSiteXmlClient4Core.assets.cache
│ ├── InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
│ ├── InSiteXmlClient4Core.csproj.FileListAbsolute.txt
│ ├── InSiteXmlClient4Core.csprojAssemblyReference.cache
│ ├── InSiteXmlClient4Core.dll
│ ├── InSiteXmlClient4Core.pdb
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
└── netcoreapp2.2
│ ├── InSiteXmlClient4Core.AssemblyInfo.cs
│ ├── InSiteXmlClient4Core.AssemblyInfoInputs.cache
│ ├── InSiteXmlClient4Core.assets.cache
│ ├── InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
│ ├── InSiteXmlClient4Core.csproj.FileListAbsolute.txt
│ ├── InSiteXmlClient4Core.csprojAssemblyReference.cache
│ ├── InSiteXmlClient4Core.dll
│ ├── InSiteXmlClient4Core.pdb
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
└── project.assets.json
/.github/workflows/dotnet.yml:
--------------------------------------------------------------------------------
1 | name: .NET
2 |
3 | on:
4 | push:
5 | branches: [ master ]
6 | pull_request:
7 | branches: [ master ]
8 |
9 | jobs:
10 | build:
11 |
12 | runs-on: ubuntu-latest
13 |
14 | steps:
15 | - uses: actions/checkout@v2
16 | - name: Setup .NET
17 | uses: actions/setup-dotnet@v1
18 | with:
19 | dotnet-version: 5.0.x
20 | - name: Restore dependencies
21 | run: dotnet restore
22 | - name: Build
23 | run: dotnet build --no-restore
24 | - name: Test
25 | run: dotnet test --no-build --verbosity normal
26 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ################################################################################
2 | # 此 .gitignore 文件已由 Microsoft(R) Visual Studio 自动创建。
3 | ################################################################################
4 |
5 | /bin/Debug
6 | /obj
7 | /.vs/InSiteXmlClient4Core/DesignTimeBuild
8 | /.vs/InSiteXmlClient4Core/v16/.suo
9 | /bin/Release
10 |
--------------------------------------------------------------------------------
/.vs/ProjectSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "CurrentProjectSetting": null
3 | }
--------------------------------------------------------------------------------
/.vs/slnx.sqlite:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/.vs/slnx.sqlite
--------------------------------------------------------------------------------
/Api/CsiClient.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using System.Text;
5 | using InSiteXmlClient4Core.InterFace;
6 |
7 | namespace InSiteXmlClient4Core.Api
8 | {
9 | ///
10 | /// 客户端
11 | ///
12 | public class CsiClient
13 | {
14 | private Hashtable mConnections;
15 |
16 | public CsiClient()
17 | {
18 | this.mConnections = new Hashtable();
19 | }
20 | ///
21 | /// 创建连接
22 | ///
23 | /// 服务器地址
24 | /// 端口
25 | ///
26 | public ICsiConnection CreateConnection(string host, int port)
27 | {
28 | lock (this)
29 | {
30 | ICsiConnection connection;
31 | if (this.FindConnection(host, port) == null)
32 | {
33 | connection = new CsiConnection(host, port);
34 | //connection.SetConnectionTimeout(1000*120);
35 | string str = host + "_" + port;
36 | this.mConnections[str] = connection;
37 | }
38 | else
39 | {
40 | string src = base.GetType().FullName + "创建连接";
41 | throw new Exceptions.CsiClientException(3014681L, src);
42 | }
43 | return connection;
44 | }
45 | }
46 | ///
47 | /// 查找连接
48 | ///
49 | /// 服务器地址
50 | /// 端口
51 | ///
52 | public ICsiConnection FindConnection(string host, int port)
53 | {
54 | string str = host + "_" + port;
55 | return (this.mConnections[str]) as CsiConnection;
56 | }
57 | ///
58 | /// 删除连接
59 | ///
60 | /// 服务器
61 | /// 端口
62 | public void RemoveConnection(string host, int port)
63 | {
64 | lock (this)
65 | {
66 | string key = host + "_" + port;
67 | this.mConnections.Remove(key);
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/Api/CsiConnection.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using InSiteXmlClient4Core.InterFace;
4 | using InSiteXmlClient4Core.Utility;
5 |
6 | namespace InSiteXmlClient4Core.Api
7 | {
8 | ///
9 | /// 连接
10 | ///
11 | internal class CsiConnection : ICsiConnection
12 | {
13 | private Hashtable _sessions = new Hashtable();
14 | private string _host;
15 | private int _port;
16 | private int _timeout;
17 | public CsiConnection(string host, int port)
18 | {
19 | this._host = host;
20 | this._port = port;
21 | this._timeout = 0;
22 |
23 | }
24 | private ServerConnection mServerConnection = new ServerConnection();
25 |
26 |
27 |
28 | public ICsiSession CreateSession(string userName, string password, string sessionName)
29 | {
30 | lock (this)
31 | {
32 | if (this.FindSession(sessionName) != null)
33 | throw new Exceptions.CsiClientException(3014680L, this.GetType().FullName + "创建会话");
34 | ICsiSession csiSession = (ICsiSession)new CsiSession(userName, password, (ICsiConnection)this);
35 | this._sessions[(object)sessionName] = (object)csiSession;
36 | return csiSession;
37 | }
38 | }
39 |
40 | public ICsiSession CreateSessionWithSessionId(string userName, string sessionId, string sessionName)
41 | {
42 | lock (this)
43 | {
44 | ICsiSession session;
45 | if (this.FindSession(sessionName) == null)
46 | {
47 | session = new CsiSession(userName, string.Empty, this)
48 | {
49 | SessionId = sessionId
50 | };
51 | this._sessions[sessionName] = session;
52 | }
53 | else
54 | {
55 | string src = base.GetType().FullName + "使用ID创建会话";
56 | throw new Exceptions.CsiClientException(0x2e0018L, src);
57 | }
58 | return session;
59 | }
60 | }
61 |
62 | public ICsiSession FindSession(string sessionName) =>
63 | this._sessions[sessionName] as ICsiSession;
64 |
65 | public void RemoveSession(string sessionName)
66 | {
67 | lock (this)
68 | {
69 | this._sessions.Remove(sessionName);
70 | }
71 | }
72 |
73 | public int SetConnectionTimeout(int timeout)
74 | {
75 | int _timeout = this._timeout;
76 | this._timeout = (timeout > 0) ? timeout : 0;
77 | this.mServerConnection.SendTimeout = this.mServerConnection.ReceiveTimeout = this._timeout;
78 | return _timeout;
79 | }
80 |
81 | public string Submit(string requestXml) =>
82 | this.mServerConnection.Submit(this._host, this._port, requestXml);
83 | }
84 | }
--------------------------------------------------------------------------------
/Api/CsiContainer.cs:
--------------------------------------------------------------------------------
1 | using System.Xml;
2 | using InSiteXmlClient4Core.InterFace;
3 | using InSiteXmlClient4Core.Util;
4 |
5 | namespace InSiteXmlClient4Core.Api
6 | {
7 | internal class CsiContainer : CsiObject, ICsiContainer, ICsiObject, ICsiField, ICsiXmlElement
8 | {
9 | public CsiContainer(ICsiDocument doc, XmlElement element) : base(doc, element)
10 | {
11 | }
12 |
13 | public CsiContainer(ICsiDocument doc, string name, ICsiXmlElement parent) : base(doc, name, parent)
14 | {
15 | }
16 |
17 | protected internal bool Equals(string name, string level)
18 | {
19 | bool flag = name.Equals(this.GetName());
20 | if ((level != null) && !level.Equals(this.GetLevel()))
21 | {
22 | flag = false;
23 | }
24 | return flag;
25 | }
26 |
27 | public virtual string GetLevel()
28 | {
29 | CsiXmlElement impl = base.FindChildByName("__level") as CsiXmlElement;
30 | string str = string.Empty;
31 | if (impl != null)
32 | {
33 | CsiXmlElement csiElement = (CsiXmlElement)impl.FindChildByName("__name");
34 | if (csiElement != null)
35 | {
36 | str = CsiXmlHelper.GetFirstTextNodeValue(csiElement);
37 | }
38 | }
39 | return str;
40 | }
41 |
42 | public virtual string GetName()
43 | {
44 | CsiXmlElement csiElement = (CsiXmlElement)base.FindChildByName("__name");
45 | string str = string.Empty;
46 | if (csiElement != null)
47 | {
48 | str = CsiXmlHelper.GetFirstTextNodeValue(csiElement);
49 | }
50 | return str;
51 | }
52 |
53 |
54 | public virtual void GetRef(out string name, out string level)
55 | {
56 | name = this.GetName();
57 | level = this.GetLevel();
58 | }
59 |
60 | public override bool IsContainer() =>
61 | true;
62 |
63 | public void SetRef(string name, string level)
64 | {
65 | CsiXmlHelper.FindCreateSetValue(this, "__name", name, true);
66 | if (!StringUtil.IsEmptyString(level))
67 | {
68 | CsiXmlHelper.FindCreateSetValue2(this, "__level", "__name", level, true);
69 | }
70 | }
71 | }
72 | }
--------------------------------------------------------------------------------
/Api/CsiContainerList.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System;
3 | using System.Collections;
4 | using System.Xml;
5 |
6 | namespace InSiteXmlClient4Core.Api
7 | {
8 | internal class CsiContainerList : CsiObjectList, ICsiContainerList, ICsiObjectList, ICsiList, ICsiField, ICsiXmlElement
9 | {
10 | public CsiContainerList(ICsiDocument doc, XmlElement domElement) : base(doc, domElement)
11 | {
12 | }
13 |
14 | public CsiContainerList(ICsiDocument doc, string name, ICsiXmlElement parent) : base(doc, name, parent)
15 | {
16 | }
17 |
18 | public ICsiContainer AppendItem(string name, string level)
19 | {
20 | CsiContainer container = new CsiContainer(this.GetOwnerDocument(), "__listItem", this);
21 | container.SetAttribute("__listItemAction", "add");
22 | container.SetRef(name, level);
23 | return container;
24 | }
25 |
26 | public ICsiContainer ChangeItemByIndex(int index)
27 | {
28 | CsiContainer sourceElement = new CsiContainer(this.GetOwnerDocument(), "__listItem", this);
29 | sourceElement.SetAttribute("__listItemAction", "change");
30 | CsiXmlHelper.FindCreateSetValue(sourceElement, "__index", Convert.ToString(index));
31 | return sourceElement;
32 | }
33 |
34 | public ICsiContainer ChangeItemByRef(string name, string level)
35 | {
36 | ICsiContainer sourceElement = new CsiContainer(this.GetOwnerDocument(), "__listItem", this);
37 | sourceElement.SetAttribute("__listItemAction", "change");
38 | CsiXmlHelper.FindCreateSetValue2(sourceElement, "__key", "__name", name, true);
39 | CsiXmlHelper.FindCreateSetValue3(sourceElement, "__key", "__level", "__name", level, true);
40 | return sourceElement;
41 | }
42 |
43 | public void DeleteItemByRef(string name, string level)
44 | {
45 | ICsiContainer sourceElement = new CsiContainer(this.GetOwnerDocument(), "__listItem", this);
46 | sourceElement.SetAttribute("__listItemAction", "delete");
47 | CsiXmlHelper.FindCreateSetValue2(sourceElement, "__key", "__name", name, true);
48 | CsiXmlHelper.FindCreateSetValue3(sourceElement, "__key", "__level", "__name", level, true);
49 | }
50 |
51 | public ICsiContainer GetItemByIndex(int index)
52 | {
53 | CsiXmlElement impl = this.GetItem(index);
54 | if (impl == null)
55 | {
56 | return null;
57 | }
58 | return new CsiContainer(this.GetOwnerDocument(), impl.GetDomElement());
59 | }
60 |
61 | public ICsiContainer GetItemByRef(string name, string level)
62 | {
63 | CsiContainer impl = null;
64 | IEnumerator enumerator = this.GetAllChildren().GetEnumerator();
65 | while (enumerator.MoveNext())
66 | {
67 | CsiObject current = enumerator.Current as CsiObject;
68 | impl = new CsiContainer(this.GetOwnerDocument(), current.GetDomElement());
69 | if ((level != null) && (level.Length == 0))
70 | {
71 | level = null;
72 | }
73 | if (impl.Equals(name, level))
74 | {
75 | return impl;
76 | }
77 | impl = null;
78 | }
79 | return impl;
80 | }
81 |
82 | public override bool IsContainerList() =>
83 | true;
84 | }
85 | }
--------------------------------------------------------------------------------
/Api/CsiDataList.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System;
3 | using System.Xml;
4 |
5 | namespace InSiteXmlClient4Core.Api
6 | {
7 | internal class CsiDataList : CsiList, ICsiDataList, ICsiList, ICsiField, ICsiXmlElement
8 | {
9 | public CsiDataList(ICsiDocument doc, XmlElement domElement) : base(doc, domElement)
10 | {
11 | }
12 |
13 | public CsiDataList(ICsiDocument doc, string name, ICsiXmlElement parent) : base(doc, name, parent)
14 | {
15 | }
16 |
17 | public ICsiDataField AppendItem(string val)
18 | {
19 | ICsiDataField impl = new CsiDataField(this.GetOwnerDocument(), "__listItem", this);
20 | impl.SetAttribute("__listItemAction", "add");
21 | impl.SetValue(val);
22 | return impl;
23 | }
24 |
25 | public ICsiDataField ChangeItemByIndex(int index, string val)
26 | {
27 | CsiDataField sourceElement = new CsiDataField(this.GetOwnerDocument(), "__listItem", this);
28 | sourceElement.SetAttribute("__listItemAction", "change");
29 | CsiXmlHelper.FindCreateSetValue(sourceElement, "__index", Convert.ToString(index));
30 | ICsiXmlElement element = CsiXmlHelper.FindCreateSetValue(sourceElement, "__value", val, true);
31 | return new CsiDataField(this.GetOwnerDocument(), (element as CsiXmlElement).GetDomElement());
32 | }
33 |
34 | public ICsiDataField ChangeItemByValue(string oldValue, string newValue)
35 | {
36 | CsiDataField sourceElement = new CsiDataField(this.GetOwnerDocument(), "__listItem", this);
37 | sourceElement.SetAttribute("__listItemAction", "change");
38 | CsiXmlHelper.FindCreateSetValue2(sourceElement, "__key", "__value", oldValue, true);
39 | ICsiXmlElement element = CsiXmlHelper.FindCreateSetValue(sourceElement, "__value", newValue, true);
40 | return new CsiDataField(this.GetOwnerDocument(), (element as CsiXmlElement).GetDomElement());
41 | }
42 |
43 | public ICsiDataField DeleteItemByValue(string val)
44 | {
45 | CsiDataField sourceElement = new CsiDataField(this.GetOwnerDocument(), "__listItem", this);
46 | sourceElement.SetAttribute("__listItemAction", "delete");
47 | ICsiXmlElement element = CsiXmlHelper.FindCreateSetValue2(sourceElement, "__key", "__value", val, true);
48 | return new CsiDataField(this.GetOwnerDocument(), (element as CsiXmlElement).GetDomElement());
49 | }
50 |
51 | public ICsiDataField GetItemByIndex(int index)
52 | {
53 | CsiXmlElement impl = this.GetItem(index);
54 | if (impl == null)
55 | {
56 | return null;
57 | }
58 | return new CsiDataField(this.GetOwnerDocument(), impl.GetDomElement());
59 | }
60 |
61 | public override bool IsDataList() =>
62 | true;
63 | }
64 | }
--------------------------------------------------------------------------------
/Api/CsiField.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Xml;
3 | using InSiteXmlClient4Core.Enum;
4 | using InSiteXmlClient4Core.InterFace;
5 | using InSiteXmlClient4Core.Util;
6 |
7 | namespace InSiteXmlClient4Core.Api
8 | {
9 | public class CsiField : CsiXmlElement, ICsiField, ICsiXmlElement
10 | {
11 | public CsiField(ICsiDocument doc, XmlElement domElement) : base(doc, domElement)
12 | {
13 | }
14 |
15 | public CsiField(ICsiDocument doc, string name, ICsiXmlElement parent) : base(doc, name, parent)
16 | {
17 | }
18 |
19 | public virtual ICsiLabel GetCaption()
20 | {
21 | ICsiMetaData data = base.FindChildByName("__metadata") as ICsiMetaData;
22 | if (data != null)
23 | {
24 | return data.GetFieldLabel();
25 | }
26 | return null;
27 | }
28 |
29 | public virtual ICsiCdoDefinition GetCdoDefinition()
30 | {
31 | ICsiMetaData data = base.FindChildByName("__metadata") as ICsiMetaData;
32 | if (data != null)
33 | {
34 | return data.GetCdoDefinition();
35 | }
36 | return null;
37 | }
38 |
39 | public virtual ICsiField GetDefaultValue() =>
40 | (base.FindChildByName("__defaultValue") as ICsiField);
41 |
42 | public virtual ICsiFieldDefinition GetFieldDefinition()
43 | {
44 | ICsiMetaData data = base.FindChildByName("__metadata") as ICsiMetaData;
45 | if (data != null)
46 | {
47 | return data.GetCdoField();
48 | }
49 | return null;
50 | }
51 |
52 | public virtual Array GetFields()
53 | {
54 | ICsiObject obj2 = (ICsiObject)this;
55 | return obj2.GetFields();
56 | }
57 |
58 | public virtual CsiGenericTypes GetGenericType()
59 | {
60 | string data = base.GetAttribute("__genericType");
61 | if (StringUtil.IsEmptyString(data) && (this.GetElementName().Equals("__listItem") && (this.GetParentElement() != null)))
62 | {
63 | data = this.GetParentElement().GetAttribute("__genericType");
64 | }
65 | if (!StringUtil.IsEmptyString(data))
66 | {
67 | if (data.Equals("Boolean"))
68 | {
69 | return CsiGenericTypes.GenericTypeBoolean;
70 | }
71 | if (data.Equals("Decimal"))
72 | {
73 | return CsiGenericTypes.GenericTypeDecimal;
74 | }
75 | if (data.Equals("Fixed"))
76 | {
77 | return CsiGenericTypes.GenericTypeFixed;
78 | }
79 | if (data.Equals("Float"))
80 | {
81 | return CsiGenericTypes.GenericTypeFloat;
82 | }
83 | if (data.Equals("Integer"))
84 | {
85 | return CsiGenericTypes.GenericTypeInteger;
86 | }
87 | if (data.Equals("Object"))
88 | {
89 | return CsiGenericTypes.GenericTypeObject;
90 | }
91 | if (data.Equals("String"))
92 | {
93 | return CsiGenericTypes.GenericTypeString;
94 | }
95 | if (data.Equals("TimeStamp"))
96 | {
97 | return CsiGenericTypes.GenericTypeTimestamp;
98 | }
99 | }
100 | return CsiGenericTypes.GenericTypeNone;
101 | }
102 |
103 | protected virtual ICsiMetaData GetMetaData() =>
104 | (base.FindChildByName("__metadata") as ICsiMetaData);
105 |
106 | public virtual CsiReferenceTypes GetReferenceType()
107 | {
108 | string data = base.GetAttribute("__referenceType");
109 | if (StringUtil.IsEmptyString(data) && (this.GetElementName().Equals("__listItem") && (this.GetParentElement() != null)))
110 | {
111 | data = this.GetParentElement().GetAttribute("__referenceType");
112 | }
113 | if (!StringUtil.IsEmptyString(data))
114 | {
115 | if (data.Equals("Container"))
116 | {
117 | return CsiReferenceTypes.ReferenceTypeContainer;
118 | }
119 | if (data.Equals("NamedDataObject"))
120 | {
121 | return CsiReferenceTypes.ReferenceTypeNamedDataObject;
122 | }
123 | if (data.Equals("RevisionedObject"))
124 | {
125 | return CsiReferenceTypes.ReferenceTypeRevisionedObject;
126 | }
127 | if (data.Equals("Subentity"))
128 | {
129 | return CsiReferenceTypes.ReferenceTypeSubEntity;
130 | }
131 | if (data.Equals("NamedSubentity"))
132 | {
133 | return CsiReferenceTypes.ReferenceTypeNamedSubEntity;
134 | }
135 | if (data.Equals("Object"))
136 | {
137 | return CsiReferenceTypes.ReferenceTypeObject;
138 | }
139 | if (data.Equals(""))
140 | {
141 | return CsiReferenceTypes.ReferenceTypeNone;
142 | }
143 | }
144 | return CsiReferenceTypes.ReferenceTypeNone;
145 | }
146 |
147 | public virtual ICsiSelectionValues GetSelectionValues() =>
148 | (base.FindChildByName("__selectionValues") as ICsiSelectionValues);
149 |
150 | public virtual ICsiSelectionValuesEx GetSelectionValuesEx() =>
151 | (base.FindChildByName("__selectionValuesEx") as ICsiSelectionValuesEx);
152 |
153 | public virtual string GetSpecificType()
154 | {
155 | string data = base.GetAttribute("__specificType");
156 | if (StringUtil.IsEmptyString(data) && (this.GetElementName().Equals("__listItem") && (this.GetParentElement() != null)))
157 | {
158 | data = this.GetParentElement().GetAttribute("__specificType");
159 | }
160 | return data;
161 | }
162 |
163 | public override bool IsField() =>
164 | true;
165 | }
166 | }
--------------------------------------------------------------------------------
/Api/CsiList.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using System.Xml;
5 | using InSiteXmlClient4Core.Enum;
6 | using InSiteXmlClient4Core.Exceptions;
7 | using InSiteXmlClient4Core.InterFace;
8 |
9 | namespace InSiteXmlClient4Core.Api
10 | {
11 | internal class CsiList : CsiField, ICsiList, ICsiField, ICsiXmlElement
12 | {
13 | public CsiList(ICsiDocument doc, XmlElement domElement) : base(doc, domElement)
14 | {
15 | }
16 |
17 | public CsiList(ICsiDocument doc, string name, ICsiXmlElement parent) : base(doc, name, parent)
18 | {
19 | }
20 |
21 | public virtual void DeleteItemByIndex(int index)
22 | {
23 | ICsiXmlElement sourceElement = new CsiXmlElement(this.GetOwnerDocument(), "__listItem", this);
24 | sourceElement.SetAttribute("__listItemAction", "delete");
25 | CsiXmlHelper.FindCreateSetValue(sourceElement, "__index", Convert.ToString(index));
26 | }
27 |
28 | protected internal virtual CsiXmlElement GetItem(int index)
29 | {
30 | IEnumerator enumerator = this.GetListItems().GetEnumerator();
31 | int num = 0;
32 | while (enumerator.MoveNext())
33 | {
34 | CsiXmlElement current = enumerator.Current as CsiXmlElement;
35 | if (num++ == index)
36 | {
37 | return current;
38 | }
39 | }
40 | return null;
41 | }
42 |
43 | public virtual Array GetListItems()
44 | {
45 | Array array = CsiXmlHelper.GetChildrenByName(this.GetOwnerDocument(), base.GetDomElement(), "__listItem");
46 | if (array.Length > 0)
47 | {
48 | return array;
49 | }
50 | return null;
51 | }
52 |
53 | public override bool IsList() =>
54 | true;
55 |
56 | public virtual void SetListAction(ListActions action)
57 | {
58 | string val = "change";
59 | switch (action)
60 | {
61 | case ListActions.ListActionChange:
62 | break;
63 |
64 | case ListActions.ListActionReplace:
65 | val = "replace";
66 | break;
67 |
68 | default:
69 | {
70 | string src = base.GetType().FullName + ".setListAction()";
71 | throw new CsiClientException(-2147467259L, src);
72 | }
73 | }
74 | base.SetAttribute("__listAction", val);
75 | }
76 |
77 | public virtual void SetProxyField(string val)
78 | {
79 | base.SetAttribute("__proxyField", val);
80 | }
81 |
82 | }
83 | }
--------------------------------------------------------------------------------
/Api/CsiNamedObject.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System.Xml;
3 |
4 | namespace InSiteXmlClient4Core.Api
5 | {
6 | internal class CsiNamedObject : CsiObject, ICsiNamedObject, ICsiObject, ICsiField, ICsiXmlElement
7 | {
8 | public CsiNamedObject(ICsiDocument doc, XmlElement domElement) : base(doc, domElement)
9 | {
10 | }
11 |
12 | public CsiNamedObject(ICsiDocument doc, string name, ICsiXmlElement parent) : base(doc, name, parent)
13 | {
14 | }
15 |
16 | public virtual string GetRef()
17 | {
18 | CsiXmlElement csiElement = base.FindChildByName("__name") as CsiXmlElement;
19 | return CsiXmlHelper.GetFirstTextNodeValue(csiElement);
20 | }
21 |
22 | public override bool IsNamedObject() =>
23 | true;
24 |
25 | public virtual void SetRef(string val)
26 | {
27 | CsiXmlHelper.FindCreateSetValue(this, "__name", val, true);
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/Api/CsiNamedObjectList.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System.Xml;
3 |
4 | namespace InSiteXmlClient4Core.Api
5 | {
6 | internal class CsiNamedObjectList : CsiObjectList, ICsiNamedObjectList, ICsiObjectList, ICsiList, ICsiField, ICsiXmlElement
7 | {
8 | public CsiNamedObjectList(ICsiDocument doc, XmlElement domElement) : base(doc, domElement)
9 | {
10 | }
11 |
12 | public CsiNamedObjectList(ICsiDocument doc, string name, ICsiXmlElement parent) : base(doc, name, parent)
13 | {
14 | }
15 |
16 | public ICsiNamedObject AppendItem(string itemName)
17 | {
18 | ICsiNamedObject obj2 = new CsiNamedObject(this.GetOwnerDocument(), "__listItem", this);
19 | obj2.SetAttribute("__listItemAction", "add");
20 | obj2.SetRef(itemName);
21 | return obj2;
22 | }
23 |
24 | public ICsiNamedObject ChangeItemByIndex(int index)
25 | {
26 | ICsiNamedObject sourceElement = new CsiNamedObject(this.GetOwnerDocument(), "__listItem", this);
27 | sourceElement.SetAttribute("__listItemAction", "change");
28 | CsiXmlHelper.FindCreateSetValue(sourceElement, "__index", XmlConvert.ToString(index));
29 | return sourceElement;
30 | }
31 |
32 | public ICsiNamedObject ChangeItemByName(string itemName)
33 | {
34 | CsiNamedObject sourceElement = new CsiNamedObject(this.GetOwnerDocument(), "__listItem", this);
35 | sourceElement.SetAttribute("__listItemAction", "change");
36 | CsiXmlHelper.FindCreateSetValue2(sourceElement, "__key", "__name", itemName, true);
37 | return sourceElement;
38 | }
39 |
40 | public void DeleteItemByName(string itemName)
41 | {
42 | ICsiNamedObject sourceElement = new CsiNamedObject(this.GetOwnerDocument(), "__listItem", this);
43 | sourceElement.SetAttribute("__listItemAction", "delete");
44 | CsiXmlHelper.FindCreateSetValue2(sourceElement, "__key", "__name", itemName, true);
45 | }
46 |
47 | public ICsiNamedObject GetItemByIndex(int index)
48 | {
49 | CsiXmlElement impl = this.GetItem(index);
50 | if (impl == null)
51 | {
52 | return null;
53 | }
54 | return new CsiNamedObject(this.GetOwnerDocument(), impl.GetDomElement());
55 | }
56 |
57 | public ICsiNamedObject GetItemByName(string name)
58 | {
59 | CsiXmlElement impl = this.GetItem(name);
60 | if (impl == null)
61 | {
62 | return null;
63 | }
64 | return new CsiNamedObject(this.GetOwnerDocument(), impl.GetDomElement());
65 | }
66 |
67 | public override bool IsNamedObjectList() =>
68 | true;
69 | }
70 | }
--------------------------------------------------------------------------------
/Api/CsiNamedSubentity.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Xml;
3 | using InSiteXmlClient4Core.InterFace;
4 |
5 | namespace InSiteXmlClient4Core.Api
6 | {
7 | internal class CsiNamedSubentity : CsiObject, ICsiNamedSubentity, ICsiObject, ICsiField, ICsiXmlElement
8 | {
9 | public CsiNamedSubentity(ICsiDocument doc, string name, ICsiXmlElement parent)
10 | : base(doc, name, parent)
11 | {
12 | }
13 |
14 | public CsiNamedSubentity(ICsiDocument doc, XmlElement domElement)
15 | : base(doc, domElement)
16 | {
17 | }
18 |
19 | public override bool IsNamedSubentity()
20 | {
21 | return true;
22 | }
23 |
24 | public virtual string GetName()
25 | {
26 | return CsiXmlHelper.GetFirstTextNodeValue(this.FindChildByName("__name") as CsiXmlElement);
27 | }
28 |
29 | public virtual void SetName(string name)
30 | {
31 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__name", name, true);
32 | }
33 |
34 | public virtual ICsiParentInfo GetParentInfo()
35 | {
36 | return this.FindChildByName("__parent") as ICsiParentInfo;
37 | }
38 |
39 | public virtual void SetParentId(string parentId)
40 | {
41 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)this, "__parent", "__Id", parentId);
42 | }
43 |
44 | public ICsiParentInfo ParentInfo()
45 | {
46 | return this.GetParentInfo() ?? (ICsiParentInfo)new CsiParentInfo(this.GetOwnerDocument(), "__parent", (ICsiXmlElement)this);
47 | }
48 | }
49 | }
--------------------------------------------------------------------------------
/Api/CsiNamedSubentityList.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System.Xml;
3 |
4 | namespace InSiteXmlClient4Core.Api
5 | {
6 | internal class CsiNamedSubentityList : CsiObjectList, ICsiNamedSubentityList, ICsiObjectList, ICsiList, ICsiField, ICsiXmlElement
7 | {
8 | public CsiNamedSubentityList(ICsiDocument doc, XmlElement domElement)
9 | : base(doc, domElement)
10 | {
11 | }
12 |
13 | public CsiNamedSubentityList(ICsiDocument doc, string name, ICsiXmlElement parent)
14 | : base(doc, name, parent)
15 | {
16 | }
17 |
18 | public override bool IsNamedSubentityList()
19 | {
20 | return true;
21 | }
22 |
23 | public ICsiNamedSubentity AppendItem(string name)
24 | {
25 | ICsiNamedSubentity csiNamedSubentity = (ICsiNamedSubentity)new CsiNamedSubentity(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);
26 | csiNamedSubentity.SetAttribute("__listItemAction", "add");
27 | csiNamedSubentity.SetName(name);
28 | return csiNamedSubentity;
29 | }
30 |
31 | public ICsiNamedSubentity DeleteItemByName(string itemName)
32 | {
33 | ICsiNamedSubentity csiNamedSubentity = (ICsiNamedSubentity)new CsiNamedSubentity(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);
34 | csiNamedSubentity.SetAttribute("__listItemAction", "delete");
35 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)csiNamedSubentity, "__key", "__name", itemName, true);
36 | return csiNamedSubentity;
37 | }
38 |
39 | public ICsiNamedSubentity ChangeItemByName(string itemName)
40 | {
41 | ICsiNamedSubentity csiNamedSubentity = (ICsiNamedSubentity)new CsiNamedSubentity(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);
42 | csiNamedSubentity.SetAttribute("__listItemAction", "change");
43 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)csiNamedSubentity, "__key", "__name", itemName, true);
44 | return csiNamedSubentity;
45 | }
46 |
47 | public ICsiNamedSubentity ChangeItemByIndex(int index)
48 | {
49 | ICsiNamedSubentity csiNamedSubentity = (ICsiNamedSubentity)new CsiNamedSubentity(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);
50 | csiNamedSubentity.SetAttribute("__listItemAction", "change");
51 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)csiNamedSubentity, "__index", XmlConvert.ToString(index));
52 | return csiNamedSubentity;
53 | }
54 |
55 | public ICsiNamedSubentity GetItemByIndex(int index)
56 | {
57 | CsiXmlElement csiXmlElementImpl = this.GetItem(index);
58 | if (csiXmlElementImpl == null)
59 | return (ICsiNamedSubentity)null;
60 | return (ICsiNamedSubentity)new CsiNamedSubentity(this.GetOwnerDocument(), csiXmlElementImpl.GetDomElement());
61 | }
62 |
63 | public ICsiNamedSubentity GetItemByName(string name)
64 | {
65 | CsiXmlElement csiXmlElementImpl = this.GetItem(name);
66 | if (csiXmlElementImpl == null)
67 | return (ICsiNamedSubentity)null;
68 | return (ICsiNamedSubentity)new CsiNamedSubentity(this.GetOwnerDocument(), csiXmlElementImpl.GetDomElement());
69 | }
70 | }
71 | }
--------------------------------------------------------------------------------
/Api/CsiObject.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using InSiteXmlClient4Core.InterFace;
3 | using InSiteXmlClient4Core.Util;
4 | using System.Xml;
5 |
6 | namespace InSiteXmlClient4Core.Api
7 | {
8 | public class CsiObject : CsiField, ICsiObject, ICsiField, ICsiXmlElement
9 | {
10 | public CsiObject(ICsiDocument doc, ICsiXmlElement parent) : this(doc, "__inputData", parent)
11 | {
12 | }
13 |
14 | public CsiObject(ICsiDocument doc, XmlElement domElement) : base(doc, domElement)
15 | {
16 | }
17 |
18 | public CsiObject(ICsiDocument doc, string name, ICsiXmlElement parent) : base(doc, name, parent)
19 | {
20 | }
21 |
22 | public ICsiContainer ContainerField(string fieldName) =>
23 | new CsiContainer(this.GetOwnerDocument(), fieldName, this);
24 |
25 | public ICsiContainerList ContainerList(string listName) =>
26 | new CsiContainerList(this.GetOwnerDocument(), listName, this);
27 |
28 | public void CreateObject(string sCDOType)
29 | {
30 | base.SetAttribute("__action", "create");
31 | if (!StringUtil.IsEmptyString(sCDOType))
32 | {
33 | base.SetAttribute("__CDOTypeName", sCDOType);
34 | }
35 | }
36 |
37 | public ICsiDataField DataField(string dataFieldName) =>
38 | new CsiDataField(this.GetOwnerDocument(), dataFieldName, this);
39 |
40 | public ICsiDataList DataList(string listName) =>
41 | new CsiDataList(this.GetOwnerDocument(), listName, this);
42 |
43 | public ICsiField GetField(string tagName) =>
44 | (base.FindChildByName(tagName) as CsiField);
45 |
46 | public override Array GetFields() =>
47 | base.GetAllChildren(true);
48 |
49 | public virtual string GetObjectId()
50 | {
51 | CsiDataField impl = base.FindChildByName("__Id") as CsiDataField;
52 | return impl?.GetValue();
53 | }
54 |
55 | public virtual string GetObjectType() =>
56 | base.GetAttribute("__CDOTypeName");
57 |
58 | public virtual Array GetUserDefinedFields()
59 | {
60 | CsiXmlElement impl = base.FindChildByName("__userDefinedFields") as CsiXmlElement;
61 | return impl?.GetAllChildren(false);
62 | }
63 |
64 | public override bool IsObject() =>
65 | true;
66 |
67 | public ICsiNamedObject NamedObjectField(string fieldName) =>
68 | new CsiNamedObject(this.GetOwnerDocument(), fieldName, this);
69 |
70 | public ICsiNamedObjectList NamedObjectList(string listName)
71 | {
72 | return (ICsiNamedObjectList)new CsiNamedObjectList(this.GetOwnerDocument(), listName, (ICsiXmlElement)this);
73 | }
74 |
75 | public ICsiNamedSubentity NamedSubentityField(string objectName) =>
76 | new CsiNamedSubentity(this.GetOwnerDocument(), objectName, this);
77 |
78 | public ICsiNamedSubentityList NamedSubentityList(string listName) =>
79 | new CsiNamedSubentityList(this.GetOwnerDocument(), listName, this);
80 |
81 | public ICsiObject ObjectField(string fieldName) =>
82 | new CsiObject(this.GetOwnerDocument(), fieldName, this);
83 |
84 | public virtual ICsiObjectList ObjectList(string fieldName) =>
85 | new CsiObjectList(this.GetOwnerDocument(), fieldName, this);
86 |
87 | public ICsiPerform Perform(string eventName)
88 | {
89 | CsiPerform csiPerformImpl = new CsiPerform(this.GetOwnerDocument(), (ICsiXmlElement)this);
90 | new CsiDataField(this.GetOwnerDocument(), "__eventName", (ICsiXmlElement)csiPerformImpl).SetValue(eventName);
91 | return (ICsiPerform)csiPerformImpl;
92 | }
93 |
94 | public ICsiRevisionedObject RevisionedObjectField(string fieldName) =>
95 | new CsiRevisionedObject(this.GetOwnerDocument(), fieldName, this);
96 |
97 | public ICsiRevisionedObjectList RevisionedObjectList(string listName) =>
98 | new CsiRevisionedObjectList(this.GetOwnerDocument(), listName, this);
99 |
100 | public virtual void SetObjectId(string id)
101 | {
102 | if (!(base.FindChildByName("__Id") is CsiDataField impl))
103 | {
104 | impl = new CsiDataField(this.GetOwnerDocument(), "__Id", this);
105 | }
106 | impl.SetValue(id);
107 | }
108 |
109 | public virtual void SetObjectType(string type)
110 | {
111 | base.SetAttribute("__CDOTypeName", type);
112 | }
113 |
114 | public ICsiSubentity SubentityField(string fieldName) =>
115 | new CsiSubentity(this.GetOwnerDocument(), fieldName, this);
116 |
117 | public ICsiSubentityList SubentityList(string listName) =>
118 | new CsiSubentityList(this.GetOwnerDocument(), listName, this);
119 | }
120 | }
--------------------------------------------------------------------------------
/Api/CsiObjectList.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System.Collections;
3 | using System.Xml;
4 |
5 | namespace InSiteXmlClient4Core.Api
6 | {
7 | internal class CsiObjectList : CsiList, ICsiObjectList, ICsiList, ICsiField, ICsiXmlElement
8 | {
9 | public CsiObjectList(ICsiDocument doc, XmlElement domElement) : base(doc, domElement)
10 | {
11 | }
12 |
13 | public CsiObjectList(ICsiDocument doc, string name, ICsiXmlElement parent) : base(doc, name, parent)
14 | {
15 | }
16 |
17 | public virtual void AppendItemById(string istanceID)
18 | {
19 | ICsiObject obj2 = new CsiObject(this.GetOwnerDocument(), "__listItem", this);
20 | obj2.SetObjectId(istanceID);
21 | }
22 |
23 | protected virtual CsiXmlElement GetItem(string name)
24 | {
25 | IEnumerator enumerator = this.GetListItems().GetEnumerator();
26 | while (enumerator.MoveNext())
27 | {
28 | CsiXmlElement current = (CsiXmlElement)enumerator.Current;
29 | CsiXmlElement impl2 = (CsiXmlElement)current.FindChildByName("__name");
30 | if ((impl2 != null) && name.Equals(impl2.GetElementValue()))
31 | {
32 | return current;
33 | }
34 | }
35 | return null;
36 | }
37 |
38 | public override bool IsObjectList() =>
39 | true;
40 | }
41 | }
--------------------------------------------------------------------------------
/Api/CsiParameter.cs:
--------------------------------------------------------------------------------
1 | using System.Xml;
2 | using InSiteXmlClient4Core.Exceptions;
3 | using InSiteXmlClient4Core.InterFace;
4 |
5 | namespace InSiteXmlClient4Core.Api
6 | {
7 | public class CsiParameter : CsiXmlElement, ICsiParameter, ICsiXmlElement
8 | {
9 | private XmlElement mElementName;
10 | private XmlElement mElementValue;
11 |
12 | public CsiParameter(ICsiDocument doc, XmlElement element) : base(doc, element)
13 | {
14 | this.mElementName = ((CsiXmlElement)base.FindChildByName("__name")).GetDomElement();
15 | this.mElementValue = ((CsiXmlElement)base.FindChildByName("__value")).GetDomElement();
16 | }
17 |
18 | public CsiParameter(ICsiDocument doc, string paramName, ICsiXmlElement parent) : base(doc, "__parameter", parent)
19 | {
20 | this.mElementName = new CsiXmlElement(doc, "__name", this).GetDomElement();
21 | this.mElementValue = new CsiXmlElement(doc, "__value", this).GetDomElement();
22 | CsiXmlHelper.SetCdataNode(this.mElementName, paramName);
23 | CsiXmlHelper.SetCdataNode(this.mElementValue, "");
24 | }
25 |
26 | public virtual string GetValue()
27 | {
28 | string data;
29 | try
30 | {
31 | data = (this.mElementValue.FirstChild as XmlCDataSection).Data;
32 | }
33 | catch (XmlException exception)
34 | {
35 | throw new CsiClientException(-1L, exception, base.GetType().FullName + ".getValue()");
36 | }
37 | return data;
38 | }
39 |
40 | public virtual void SetValue(string val)
41 | {
42 | try
43 | {
44 | CsiXmlHelper.SetCdataNode(this.mElementValue, val);
45 | }
46 | catch (XmlException exception)
47 | {
48 | throw new CsiClientException(-1L, exception, base.GetType().FullName + ".setValue()");
49 | }
50 | }
51 | }
52 | }
--------------------------------------------------------------------------------
/Api/CsiParameters.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System.Collections;
3 | using System.Xml;
4 | using InSiteXmlClient4Core.Exceptions;
5 |
6 | namespace InSiteXmlClient4Core.Api
7 | {
8 | public class CsiParameters: CsiXmlElement, ICsiParameters, ICsiXmlElement
9 | {
10 | public CsiParameters(ICsiDocument doc, XmlElement element) : base(doc, element)
11 | {
12 | }
13 |
14 | public CsiParameters(ICsiDocument doc, string tagName, ICsiXmlElement parent) : base(doc, tagName, parent)
15 | {
16 | if (!(tagName.Equals("__parameters") || tagName.Equals("__queryParameters")))
17 | {
18 | string src = base.GetType().FullName + ".Constructor()";
19 | string desc = CsiXmlHelper.GetInvalidElement(tagName) + "(valid elements are: __parameters and " + "__queryParameters)";
20 | throw new CsiClientException(-1L, desc, src);
21 | }
22 | }
23 |
24 | public virtual void ClearAll()
25 | {
26 | base.RemoveAllChildren();
27 | }
28 |
29 | public virtual long GetCount()
30 | {
31 | long num = 0L;
32 | IEnumerator enumerator = this.GetAllChildren().GetEnumerator();
33 | while (enumerator.MoveNext())
34 | {
35 | CsiXmlElement current = enumerator.Current as CsiXmlElement;
36 | if (current.GetDomElement().NodeType == XmlNodeType.Element)
37 | {
38 | num += 1L;
39 | }
40 | }
41 | return num;
42 | }
43 |
44 | public virtual ICsiParameter GetParameterByName(string paramName) =>
45 | (this.FindChildByName("__parameter", "__name", paramName) as ICsiParameter);
46 |
47 | public virtual void RemoveParameterByName(string parameterName)
48 | {
49 | if (!(this.GetParameterByName(parameterName) is CsiParameter impl))
50 | {
51 | throw new CsiClientException(-1L, $"参数 '{parameterName}' 不存在.");
52 | }
53 | base.GetDomElement().RemoveChild(impl.GetDomElement());
54 | }
55 |
56 | public virtual void SetParameter(string name, string val)
57 | {
58 | ICsiParameter parameter = this.GetParameterByName(name);
59 | if (parameter == null)
60 | {
61 | parameter = new CsiParameter(this.GetOwnerDocument(), name, this);
62 | }
63 | parameter.SetValue(val);
64 | }
65 | }
66 | }
--------------------------------------------------------------------------------
/Api/CsiParentInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Xml;
2 | using InSiteXmlClient4Core.InterFace;
3 |
4 | namespace InSiteXmlClient4Core.Api
5 | {
6 | internal class CsiParentInfo : CsiXmlElement, ICsiParentInfo, ICsiXmlElement
7 | {
8 | public CsiParentInfo(ICsiDocument doc, XmlElement domElement)
9 | : base(doc, domElement)
10 | {
11 | }
12 |
13 | public CsiParentInfo(ICsiDocument doc, string name, ICsiXmlElement parent)
14 | : base(doc, name, parent)
15 | {
16 | }
17 |
18 | public virtual void SetObjectId(string val)
19 | {
20 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__Id", val);
21 | }
22 |
23 | public virtual void SetObjectType(string type)
24 | {
25 | this.SetAttribute("__CDOTypeName", type);
26 | }
27 |
28 | public virtual string GetParentId()
29 | {
30 | return CsiXmlHelper.GetFirstTextNodeValue(this.FindChildByName("__Id") as CsiXmlElement);
31 | }
32 |
33 | public virtual void SetParentId(string parentId)
34 | {
35 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)this, "__parent", "__Id", parentId);
36 | }
37 |
38 | public virtual string GetNamedObjectRef()
39 | {
40 | return CsiXmlHelper.GetFirstTextNodeValue(this.FindChildByName("__name") as CsiXmlElement);
41 | }
42 |
43 | public virtual void SetNamedObjectRef(string val)
44 | {
45 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__name", val);
46 | }
47 |
48 | public virtual string GetName()
49 | {
50 | return CsiXmlHelper.GetFirstTextNodeValue(this.FindChildByName("__name") as CsiXmlElement);
51 | }
52 |
53 | public virtual void SetName(string name)
54 | {
55 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__name", name);
56 | }
57 |
58 | public virtual ICsiParentInfo GetParentInfo()
59 | {
60 | return this.FindChildByName("__parent") as ICsiParentInfo;
61 | }
62 |
63 | public ICsiParentInfo ParentInfo()
64 | {
65 | return this.GetParentInfo() ?? (ICsiParentInfo)new CsiParentInfo(this.GetOwnerDocument(), "__parent", (ICsiXmlElement)this);
66 | }
67 |
68 | public void SetContainerRef(string name, string level)
69 | {
70 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__name", name);
71 | if (level.Length <= 0)
72 | return;
73 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)this, "__level", "__name", level);
74 | }
75 |
76 | public void SetRevisionedObjectRef(string name, string rev, bool useROR)
77 | {
78 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__name", name);
79 | if (!useROR && rev != null)
80 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__rev", rev);
81 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__useROR", useROR ? "true" : "false");
82 | }
83 |
84 | public virtual void GetContainerRef(out string name, out string level)
85 | {
86 | name = this.GetName();
87 | level = this.GetLevel();
88 | }
89 |
90 | public virtual void GetRevisionedObjectRef(out string name, out string revision, out bool useROR)
91 | {
92 | name = this.GetName();
93 | revision = this.GetRevision();
94 | useROR = this.GetUseRor();
95 | }
96 |
97 | private string GetRevision()
98 | {
99 | if (this.FindChildByName("__rev") is CsiXmlElement childByName)
100 | return CsiXmlHelper.GetFirstTextNodeValue(childByName);
101 | return (string)null;
102 | }
103 |
104 | private bool GetUseRor()
105 | {
106 | if (this.FindChildByName("__useROR") is CsiXmlElement childByName)
107 | return CsiXmlHelper.GetFirstTextNodeValue(childByName).Equals("true");
108 | return false;
109 | }
110 |
111 | private string GetLevel()
112 | {
113 | if (!(this.FindChildByName("__level") is CsiXmlElement childByName1))
114 | return (string)null;
115 | if (childByName1.FindChildByName("__name") is CsiXmlElement childByName2)
116 | return CsiXmlHelper.GetFirstTextNodeValue(childByName2);
117 | return (string)null;
118 | }
119 | }
120 | }
--------------------------------------------------------------------------------
/Api/CsiPerform.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 |
3 | namespace InSiteXmlClient4Core.Api
4 | {
5 | internal class CsiPerform : CsiXmlElement, ICsiPerform, ICsiXmlElement
6 | {
7 | public CsiPerform(ICsiDocument document, ICsiXmlElement parent) : base(document, "__perform", parent)
8 | {
9 | }
10 |
11 | public ICsiParameters AddParameters()
12 | {
13 | if (!(base.FindChildByName("__parameters") is ICsiParameters parameters))
14 | {
15 | parameters = new CsiParameters(this.GetOwnerDocument(), "__parameters", this);
16 | }
17 | return parameters;
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------
/Api/CsiQueryParameters.cs:
--------------------------------------------------------------------------------
1 | using System.Xml;
2 | using InSiteXmlClient4Core.Exceptions;
3 | using InSiteXmlClient4Core.InterFace;
4 |
5 | namespace InSiteXmlClient4Core.Api
6 | {
7 | internal class CsiQueryParameters : CsiParameters, ICsiQueryParameters, ICsiParameters, ICsiXmlElement
8 | {
9 | public CsiQueryParameters(ICsiDocument doc, ICsiXmlElement parent) : base(doc, "__queryParameters", parent)
10 | {
11 | }
12 |
13 | public CsiQueryParameters(ICsiDocument doc, XmlElement element) : base(doc, element)
14 | {
15 | string name = element.Name;
16 | if (!name.Equals("__queryParameters"))
17 | {
18 | string desc = CsiXmlHelper.GetInvalidElement(name) + "(有效元素是: __queryParameters). ";
19 | throw new CsiClientException(-1L, desc, base.GetType().FullName + ".Constructor()");
20 | }
21 | }
22 |
23 | public CsiQueryParameters(ICsiDocument doc, string queryName, ICsiXmlElement element) : this(doc, element)
24 | {
25 | base.SetAttribute("__queryName", queryName);
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/Api/CsiRequestData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Xml;
3 | using InSiteXmlClient4Core.Enum;
4 | using InSiteXmlClient4Core.InterFace;
5 | using InSiteXmlClient4Core.Util;
6 |
7 | namespace InSiteXmlClient4Core.Api
8 | {
9 | internal class CsiRequestData : CsiXmlElement, ICsiRequestData, ICsiXmlElement
10 | {
11 | public CsiRequestData(ICsiDocument doc, ICsiXmlElement parent) : base(doc, "__requestData", parent)
12 | {
13 | }
14 |
15 | public CsiRequestData(ICsiDocument doc, XmlElement domElement) : base(doc, domElement)
16 | {
17 | }
18 |
19 | public override bool IsRequestData() =>
20 | true;
21 |
22 | public virtual void RequestAllFields()
23 | {
24 | new CsiXmlElement(this.GetOwnerDocument(), "__allFields", this);
25 | }
26 |
27 | public virtual void RequestAllFieldsRecursive()
28 | {
29 | ICsiXmlElement element = new CsiXmlElement(this.GetOwnerDocument(), "__allFields", this);
30 | element.SetAttribute("__recursive", "true");
31 | }
32 |
33 | public virtual ICsiRequestField RequestField(string fieldName) =>
34 | base.RequestForField(fieldName);
35 |
36 | public virtual void RequestFields(Array fields)
37 | {
38 | foreach (string str in fields)
39 | {
40 | this.RequestField(str);
41 | }
42 | }
43 |
44 | public virtual void RequestSessionValues()
45 | {
46 | new CsiXmlElement(this.GetOwnerDocument(), "__sessionValues", this);
47 | }
48 |
49 | public virtual void SetSerializationMode(SerializationModes mode)
50 | {
51 | string data = "";
52 | switch (mode)
53 | {
54 | case SerializationModes.SerializationModeDeep:
55 | data = "deep";
56 | break;
57 |
58 | case SerializationModes.SerializationModeShallow:
59 | data = "shallow";
60 | break;
61 |
62 | case SerializationModes.SerializationModeDefault:
63 | data = "default";
64 | break;
65 | }
66 | if (!StringUtil.IsEmptyString(data))
67 | {
68 | base.SetAttribute("__serialization", data);
69 | }
70 | }
71 | }
72 | }
--------------------------------------------------------------------------------
/Api/CsiRequestSelectionValuesEx.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System;
3 | using System.Xml;
4 | using InSiteXmlClient4Core.Util;
5 |
6 | namespace InSiteXmlClient4Core.Api
7 | {
8 | internal class CsiRequestSelectionValuesEx : CsiXmlElement, ICsiRequestSelectionValuesEx, ICsiXmlElement
9 | {
10 | public CsiRequestSelectionValuesEx(ICsiDocument doc, ICsiXmlElement parent)
11 | : base(doc, "__requestSelectionValuesEx", parent)
12 | {
13 | }
14 |
15 | public CsiRequestSelectionValuesEx(ICsiDocument doc, XmlElement element)
16 | : base(doc, element)
17 | {
18 | }
19 |
20 | public virtual long GetResultsetSize()
21 | {
22 | if (this.FindChildByName("__rowSetSize") is ICsiDataField childByName)
23 | return long.Parse(childByName.GetValue());
24 | return -1;
25 | }
26 |
27 | public virtual void SetResultsetSize(long size)
28 | {
29 | try
30 | {
31 | ICsiXmlElement childByName = this.FindChildByName("__rowSetSize");
32 | if (null != childByName)
33 | this.RemoveChild(childByName);
34 | CsiDataField csiDataFieldImpl = new CsiDataField(this.GetOwnerDocument(), "__rowSetSize", (ICsiXmlElement)this, XmlConvert.ToString(size));
35 | }
36 | catch (Exception ex)
37 | {
38 | LogHelper.Error(ex.Message);
39 | }
40 | }
41 |
42 | public virtual long GetStartRow()
43 | {
44 | if (this.FindChildByName("__startRow") is ICsiDataField childByName)
45 | return long.Parse(childByName.GetValue());
46 | return -1;
47 | }
48 |
49 | public virtual void SetStartRow(long val)
50 | {
51 | try
52 | {
53 | ICsiXmlElement childByName = this.FindChildByName("__startRow");
54 | if (null != childByName)
55 | this.RemoveChild(childByName);
56 | ICsiDataField csiDataFieldImpl = new CsiDataField(this.GetOwnerDocument(), "__startRow", (ICsiXmlElement)this, Convert.ToString(val));
57 | }
58 | catch (Exception ex)
59 | {
60 | LogHelper.Error(ex.Message);
61 | }
62 | }
63 |
64 | public virtual ICsiQueryParameters CreateQueryParameters()
65 | {
66 | return this.FindChildByName("__queryParameters") as ICsiQueryParameters ?? (ICsiQueryParameters)new CsiQueryParameters(this.GetOwnerDocument(), (ICsiXmlElement)this);
67 | }
68 |
69 | public virtual bool GetRequestRecordCount()
70 | {
71 | ICsiDataField childByName = this.FindChildByName("__requestRecordCount") as ICsiDataField;
72 | try
73 | {
74 | return bool.Parse(childByName.GetValue());
75 | }
76 | catch (Exception ex)
77 | {
78 | LogHelper.Error(ex.Message);
79 | return false;
80 | }
81 | }
82 |
83 | public virtual void SetRequestRecordCount(bool val)
84 | {
85 | try
86 | {
87 | this.removeChildByName((ICsiXmlElement)this, "__requestRecordCount");
88 | if (!val)
89 | return;
90 | ICsiDataField csiDataFieldImpl = new CsiDataField(this.GetOwnerDocument(), "__requestRecordCount", (ICsiXmlElement)this, "true");
91 | }
92 | catch (Exception ex)
93 | {
94 | LogHelper.Error(ex.Message);
95 | }
96 | }
97 |
98 | public void ClearParameters()
99 | {
100 | ICsiXmlElement childByName = this.FindChildByName("__queryParameters");
101 | childByName?.RemoveAllChildren();
102 | }
103 |
104 | public virtual void SetParameter(string param, string val)
105 | {
106 | this.CreateQueryParameters().SetParameter(param, val);
107 | }
108 | }
109 | }
--------------------------------------------------------------------------------
/Api/CsiResponseData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using System.Xml;
5 | using InSiteXmlClient4Core.InterFace;
6 |
7 | namespace InSiteXmlClient4Core.Api
8 | {
9 |
10 |
11 | internal class CsiResponseData : CsiXmlElement, ICsiResponseData, ICsiXmlElement
12 | {
13 | public CsiResponseData(ICsiDocument doc, XmlElement domElement)
14 | : base(doc, domElement)
15 | {
16 | }
17 |
18 | public CsiResponseData(ICsiDocument doc, ICsiXmlElement oParent)
19 | : base(doc, "__responseData", oParent)
20 | {
21 | }
22 |
23 | public virtual Array GetResponseFields()
24 | {
25 | return this.GetAllChildren(true);
26 | }
27 |
28 | public virtual ICsiSubentity GetSessionValues()
29 | {
30 | return this.FindChildByName("__sessionValues") as ICsiSubentity;
31 | }
32 |
33 | public ICsiField GetResponseFieldByName(string fieldName)
34 | {
35 | return this.FindChildByName(fieldName) as ICsiField;
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Api/CsiRevisionedObject.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System.Xml;
3 |
4 | namespace InSiteXmlClient4Core.Api
5 | {
6 | internal class CsiRevisionedObject : CsiObject, ICsiRevisionedObject, ICsiObject, ICsiField, ICsiXmlElement
7 | {
8 | public CsiRevisionedObject(ICsiDocument doc, string name, ICsiXmlElement parent)
9 | : base(doc, name, parent)
10 | {
11 | }
12 |
13 | public CsiRevisionedObject(ICsiDocument doc, XmlElement domElement)
14 | : base(doc, domElement)
15 | {
16 | }
17 |
18 | public override bool IsRevisionedObject()
19 | {
20 | return true;
21 | }
22 |
23 | public virtual string GetName()
24 | {
25 | if (this.FindChildByName("__name") is CsiXmlElement childByName)
26 | return CsiXmlHelper.GetFirstTextNodeValue(childByName);
27 | return string.Empty;
28 | }
29 |
30 | public virtual string GetRevision()
31 | {
32 | if (this.FindChildByName("__rev") is CsiXmlElement childByName)
33 | return CsiXmlHelper.GetFirstTextNodeValue(childByName);
34 | return string.Empty;
35 | }
36 |
37 | public virtual bool GetUseRor()
38 | {
39 | if (this.FindChildByName("__useROR") is CsiXmlElement childByName)
40 | return CsiXmlHelper.GetFirstTextNodeValue(childByName).Equals("true");
41 | return false;
42 | }
43 |
44 | public void SetRef(string name, string revision, bool useRor)
45 | {
46 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__name", name, true);
47 | if (!useRor && revision != null)
48 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__rev", revision, true);
49 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__useROR", useRor ? "true" : "false");
50 | }
51 |
52 | public void GetRef(out string name, out string revision, out bool useRor)
53 | {
54 | name = this.GetName();
55 | revision = this.GetRevision();
56 | useRor = this.GetUseRor();
57 | }
58 | }
59 | }
--------------------------------------------------------------------------------
/Api/CsiRevisionedObjectList.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System.Xml;
3 |
4 | namespace InSiteXmlClient4Core.Api
5 | {
6 | internal class CsiRevisionedObjectList : CsiObjectList, ICsiRevisionedObjectList, ICsiObjectList, ICsiList, ICsiField, ICsiXmlElement
7 | {
8 | public CsiRevisionedObjectList(ICsiDocument doc, XmlElement domElement)
9 | : base(doc, domElement)
10 | {
11 | }
12 |
13 | public CsiRevisionedObjectList(ICsiDocument doc, string name, ICsiXmlElement parent)
14 | : base(doc, name, parent)
15 | {
16 | }
17 |
18 | public override bool IsRevisionedObjectList()
19 | {
20 | return true;
21 | }
22 |
23 | public ICsiRevisionedObject AppendItem(string itemName, string revision, bool useROR)
24 | {
25 | ICsiRevisionedObject revisionedObject = (ICsiRevisionedObject)new CsiRevisionedObject(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);
26 | revisionedObject.SetAttribute("__listItemAction", "add");
27 | revisionedObject.SetRef(itemName, revision, useROR);
28 | return revisionedObject;
29 | }
30 |
31 | public void DeleteItemByRef(string itemName, string revision, bool useROR)
32 | {
33 | ICsiRevisionedObject revisionedObject = (ICsiRevisionedObject)new CsiRevisionedObject(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);
34 | revisionedObject.SetAttribute("__listItemAction", "delete");
35 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)revisionedObject, "__key", "__name", itemName, true);
36 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)revisionedObject, "__key", "__rev", revision, true);
37 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)revisionedObject, "__key", "__useROR", useROR ? "true" : "false");
38 | }
39 |
40 | public ICsiRevisionedObject ChangeItemByRef(string itemName, string revision, bool useROR)
41 | {
42 | ICsiRevisionedObject revisionedObject = (ICsiRevisionedObject)new CsiRevisionedObject(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);
43 | revisionedObject.SetAttribute("__listItemAction", "change");
44 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)revisionedObject, "__key", "__name", itemName, true);
45 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)revisionedObject, "__key", "__rev", revision, true);
46 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)revisionedObject, "__key", "__useROR", useROR ? "true" : "false");
47 | return revisionedObject;
48 | }
49 |
50 | public ICsiRevisionedObject ChangeItemByIndex(int index)
51 | {
52 | ICsiRevisionedObject revisionedObject = (ICsiRevisionedObject)new CsiRevisionedObject(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);
53 | revisionedObject.SetAttribute("__listItemAction", "change");
54 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)revisionedObject, "__index", XmlConvert.ToString(index));
55 | return revisionedObject;
56 | }
57 |
58 | public ICsiRevisionedObject GetItemByIndex(int index)
59 | {
60 | CsiXmlElement csiXmlElementImpl = this.GetItem(index);
61 | if (csiXmlElementImpl == null)
62 | return (ICsiRevisionedObject)null;
63 | return (ICsiRevisionedObject)new CsiRevisionedObject(this.GetOwnerDocument(), csiXmlElementImpl.GetDomElement());
64 | }
65 |
66 | public ICsiRevisionedObject GetItemByRef(string itemName, string revision, bool useROR)
67 | {
68 | foreach (object allChild in this.GetAllChildren())
69 | {
70 | CsiXmlElement csiXmlElementImpl = allChild as CsiXmlElement;
71 | if (!(csiXmlElementImpl.FindChildByName("__name") is CsiXmlElement childByName1) ||
72 | !itemName.Equals(CsiXmlHelper.GetFirstTextNodeValue(childByName1))) continue;
73 | if (!(csiXmlElementImpl.FindChildByName("__useROR") is CsiXmlElement childByName2) ||
74 | XmlConvert.ToBoolean(CsiXmlHelper.GetFirstTextNodeValue(childByName2)) != useROR) continue;
75 | if (useROR || Util.StringUtil.IsEmptyString(revision))
76 | return (ICsiRevisionedObject) new CsiRevisionedObject(this.GetOwnerDocument(),
77 | csiXmlElementImpl.GetDomElement());
78 | if (!(csiXmlElementImpl.FindChildByName("__rev") is CsiXmlElement childByName3) || !revision.Equals(CsiXmlHelper.GetFirstTextNodeValue(childByName3)))
79 | continue;
80 | return (ICsiRevisionedObject)new CsiRevisionedObject(this.GetOwnerDocument(), csiXmlElementImpl.GetDomElement());
81 | }
82 | return null;
83 | }
84 | }
85 | }
--------------------------------------------------------------------------------
/Api/CsiSelectionValue.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 | using System.Xml;
6 |
7 | namespace InSiteXmlClient4Core.Api
8 | {
9 | internal class CsiSelectionValue : CsiXmlElement, ICsiSelectionValue, ICsiXmlElement
10 | {
11 | public CsiSelectionValue(ICsiDocument doc, XmlElement domElement)
12 | : base(doc, domElement)
13 | {
14 | }
15 |
16 | public virtual string GetDisplayName()
17 | {
18 | return this.GetData("__displayName");
19 | }
20 |
21 | public virtual string GetValue()
22 | {
23 | return this.GetData("__value");
24 | }
25 |
26 | private string GetData(string tagName)
27 | {
28 | return (this.FindChildByName(tagName) as CsiXmlElement).GetDomElement().FirstChild.Value;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Api/CsiSelectionValues.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 |
3 | namespace InSiteXmlClient4Core.Api
4 | {
5 | internal class CsiSelectionValues
6 | {
7 | private ICsiDocument csiDocument;
8 | private CsiRequestField csiRequestField;
9 |
10 | public CsiSelectionValues(ICsiDocument csiDocument, CsiRequestField csiRequestField)
11 | {
12 | this.csiDocument = csiDocument;
13 | this.csiRequestField = csiRequestField;
14 | }
15 | }
16 | }
--------------------------------------------------------------------------------
/Api/CsiSelectionValuesEx.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Text;
5 | using System.Xml;
6 |
7 | namespace InSiteXmlClient4Core.Api
8 | {
9 | internal class CsiSelectionValuesEx : CsiXmlElement, ICsiSelectionValuesEx, ICsiXmlElement
10 | {
11 | public CsiSelectionValuesEx(CsiDocument doc, ICsiXmlElement parent)
12 | : base(doc, "__selectionValuesEx", parent)
13 | {
14 | }
15 |
16 | public CsiSelectionValuesEx(CsiDocument doc, XmlElement element)
17 | : base(doc, element)
18 | {
19 | }
20 |
21 | public virtual ICsiRecordset GetRecordset()
22 | {
23 | try
24 | {
25 | return this.FindChildByName("__recordSet") as ICsiRecordset;
26 | }
27 | catch (Exception ex)
28 | {
29 | return (ICsiRecordset)null;
30 | }
31 | }
32 |
33 | public virtual ICsiRecordsetHeader GetRecordsetHeader()
34 | {
35 | try
36 | {
37 | return this.FindChildByName("__recordSetHeader") as ICsiRecordsetHeader;
38 | }
39 | catch (Exception ex)
40 | {
41 | return (ICsiRecordsetHeader)null;
42 | }
43 | }
44 |
45 | public virtual long GetRecordCount()
46 | {
47 | long num = 0;
48 | var childByName = this.FindChildByName("__responseData") as CsiDataField;
49 | if ( childByName!=null)
50 | {
51 | ICsiDataField childByNam= childByName .FindChildByName("__recordCount") as ICsiDataField;
52 | try
53 | {
54 | num = long.Parse(childByNam.GetValue());
55 | }
56 | catch (Exception ex)
57 | {
58 | }
59 | }
60 | return num;
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Api/CsiService.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Xml;
3 | using InSiteXmlClient4Core.Exceptions;
4 | using InSiteXmlClient4Core.InterFace;
5 |
6 | namespace InSiteXmlClient4Core.Api
7 | {
8 | internal class CsiService : CsiObject, ICsiService, ICsiObject, ICsiField, ICsiXmlElement
9 | {
10 | public CsiService(ICsiDocument doc, string serviceName, ICsiXmlElement parent)
11 | : base(doc, "__service", parent)
12 | {
13 | this.SetAttribute("__serviceType", serviceName);
14 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__txnGUID", CsiXmlHelper.GenerateGuid());
15 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__utcOffset", CsiXmlDataFormat.GetUTCOffset());
16 | }
17 |
18 | public CsiService(ICsiDocument doc, XmlElement domElement)
19 | : base(doc, domElement)
20 | {
21 | }
22 |
23 | public override bool IsService()
24 | {
25 | return true;
26 | }
27 |
28 | public string ServiceTypeName()
29 | {
30 | return this.GetDomElement().GetAttribute("__serviceType");
31 | }
32 |
33 | public ICsiObject InputData()
34 | {
35 | return (ICsiObject)new CsiObject(this.GetOwnerDocument(), (ICsiXmlElement)this);
36 | }
37 |
38 | public ICsiRequestData RequestData()
39 | {
40 | return (ICsiRequestData)(this.FindChildByName("__requestData") as CsiRequestData ?? new CsiRequestData(this.GetOwnerDocument(), (ICsiXmlElement)this));
41 | }
42 |
43 | public ICsiResponseData ResponseData()
44 | {
45 | return this.FindChildByName("__responseData") as ICsiResponseData;
46 | }
47 |
48 | public ICsiExceptionData ExceptionData()
49 | {
50 | return this.GetChildExceptionData();
51 | }
52 |
53 | public void SetExecute()
54 | {
55 | if (this.FindChildByName("__execute") != null)
56 | return;
57 | CsiXmlElement csiXmlElementImpl = new CsiXmlElement(this.GetOwnerDocument(), "__execute", (ICsiXmlElement)this);
58 | }
59 |
60 | public virtual bool UseTxnGuid
61 | {
62 | set
63 | {
64 | if (value)
65 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__txnGUID", CsiXmlHelper.GenerateGuid());
66 | else
67 | this.removeChildByName((ICsiXmlElement)this, "__txnGUID");
68 | }
69 | }
70 |
71 | public virtual string GetUtcOffset()
72 | {
73 | if (this.FindChildByName("__utcOffset") is CsiXmlElement childByName)
74 | return (childByName.GetDomElement().FirstChild as XmlText).Data;
75 | return (string)null;
76 | }
77 |
78 | public virtual void SetUtcOffset(string offset)
79 | {
80 | try
81 | {
82 | bool flag = offset.StartsWith("-");
83 | if (offset.StartsWith("-") || offset.StartsWith("+"))
84 | offset = offset.Remove(0, 1);
85 | DateTime dateTime = DateTime.Parse(offset);
86 | if (dateTime.Hour > 12)
87 | throw new FormatException();
88 | string str = dateTime.ToString("HH:mm");
89 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)this, "__utcOffset", (flag ? "-" : "+") + str);
90 | }
91 | catch (Exception ex)
92 | {
93 | throw new CsiClientException(-2147467259L, ex, this.GetType().FullName + ".setUTCOffset()");
94 | }
95 | }
96 | }
97 | }
--------------------------------------------------------------------------------
/Api/CsiSession.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using InSiteXmlClient4Core.Exceptions;
4 | using InSiteXmlClient4Core.InterFace;
5 | using InSiteXmlClient4Core.Util;
6 |
7 | namespace InSiteXmlClient4Core.Api
8 | {
9 | internal class CsiSession : ICsiSession
10 | {
11 | private Hashtable mDocuments;
12 | private string mUserName;
13 | private string mPassword;
14 | private string mSessionId;
15 | private ICsiConnection mConnection;
16 | public CsiSession(string name, string password, ICsiConnection connection)
17 | {
18 | this.mDocuments = new Hashtable();
19 | this.mUserName = name;
20 | this.mPassword = password;
21 | this.mConnection = connection;
22 | }
23 |
24 | private void CreateConnect(string userName, string password, ICsiXmlElement parent)
25 | {
26 | ICsiDocument document = parent.GetOwnerDocument();
27 | ICsiXmlElement element = new CsiXmlElement(document, "__connect", parent);
28 | ICsiNamedObject obj2 = new CsiNamedObject(document, "user", element);
29 | obj2.SetRef(userName);
30 | ICsiDataField field = new CsiDataField(document, "password", element);
31 | field.SetEncryptedValue(password);
32 |
33 | }
34 |
35 | private void CreateConnectWithoutPassword(string userName, string sessionId, ICsiXmlElement parent)
36 | {
37 | ICsiDocument document = parent.GetOwnerDocument();
38 | ICsiXmlElement element = new CsiXmlElement(document, "__useSession", parent);
39 | ICsiNamedObject obj2 = new CsiNamedObject(document, "user", element);
40 | obj2.SetRef(userName);
41 | ICsiDataField field = new CsiDataField(document, "sessionId", element);
42 | field.SetAttribute("__encrypted", "no");
43 | field.SetValue(sessionId);
44 | }
45 |
46 | public ICsiDocument CreateDocument(string name)
47 | {
48 | lock (this)
49 | {
50 | string str;
51 | if (!StringUtil.IsEmptyString(name))
52 | {
53 | try
54 | {
55 | if (this.FindDocument(name) == null)
56 | {
57 | ICsiDocument document = new CsiDocument(this);
58 | this.mDocuments[name] = document;
59 | ICsiXmlElement parent = new CsiXmlElement(document, "__session", ((CsiDocument) document).GetRootElement());
60 | if (string.IsNullOrEmpty(this.mPassword))
61 | {
62 | this.CreateConnectWithoutPassword(this.mUserName, this.mSessionId, parent);
63 | return document;
64 | }
65 | this.CreateConnect(this.mUserName, this.mPassword, parent);
66 | return document;
67 | }
68 | str = base.GetType().FullName + ".createDocument()";
69 | throw new CsiClientException(0x2e0015L, str);
70 | }
71 | catch (Exception exception)
72 | {
73 | throw new CsiClientException(-1L, exception, base.GetType().FullName + ".createDocument()");
74 | }
75 | }
76 | str = base.GetType().FullName + ".createDocument()";
77 | throw new CsiClientException(0x2e0016L, str);
78 | }
79 | }
80 |
81 | public ICsiDocument FindDocument(string name) =>
82 | (this.mDocuments[name] as ICsiDocument);
83 |
84 | public void RemoveDocument(string name)
85 | {
86 | lock (this)
87 | {
88 | this.mDocuments.Remove(name);
89 | }
90 | }
91 |
92 | internal ICsiDocument Submit(ICsiDocument document)
93 | {
94 | string xml = document.AsXml();
95 | string str2 = string.Empty;
96 | try
97 | {
98 | str2 = this.mConnection.Submit(xml);
99 | }
100 | catch (Exception exception)
101 | {
102 | throw new CsiClientException(-1L, exception, base.GetType().FullName + ".submit()");
103 | }
104 | return new CsiDocument(this, str2);
105 | }
106 | ///
107 | /// 会话ID
108 | ///
109 | public string SessionId
110 | {
111 | get => this.mSessionId;
112 | set => this.mSessionId = value;
113 | }
114 | }
115 | }
--------------------------------------------------------------------------------
/Api/CsiSubentity.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System.Xml;
3 |
4 | namespace InSiteXmlClient4Core.Api
5 | {
6 | internal class CsiSubentity : CsiObject, ICsiSubentity, ICsiObject, ICsiField, ICsiXmlElement
7 | {
8 | public CsiSubentity(ICsiDocument doc, string name, ICsiXmlElement parent)
9 | : base(doc, name, parent)
10 | {
11 | }
12 |
13 | public CsiSubentity(ICsiDocument doc, XmlElement domElement)
14 | : base(doc, domElement)
15 | {
16 | }
17 |
18 | public override bool IsSubentity()
19 | {
20 | return true;
21 | }
22 |
23 | public virtual ICsiParentInfo GetParentInfo()
24 | {
25 | return this.FindChildByName("__parent") as ICsiParentInfo;
26 | }
27 |
28 | public virtual void SetParentId(string parentId)
29 | {
30 | CsiXmlHelper.FindCreateSetValue2((ICsiXmlElement)this, "__parent", "__Id", parentId);
31 | }
32 |
33 | public ICsiParentInfo ParentInfo()
34 | {
35 | return this.GetParentInfo() ?? (ICsiParentInfo)new CsiParentInfo(this.GetOwnerDocument(), "__parent", (ICsiXmlElement)this);
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/Api/CsiSubentityList.cs:
--------------------------------------------------------------------------------
1 | using InSiteXmlClient4Core.InterFace;
2 | using System.Xml;
3 |
4 | namespace InSiteXmlClient4Core.Api
5 | {
6 | internal class CsiSubentityList : CsiObjectList, ICsiSubentityList, ICsiObjectList, ICsiList, ICsiField, ICsiXmlElement
7 | {
8 | public CsiSubentityList(ICsiDocument doc, XmlElement domElement)
9 | : base(doc, domElement)
10 | {
11 | }
12 |
13 | public CsiSubentityList(ICsiDocument doc, string name, ICsiXmlElement parent)
14 | : base(doc, name, parent)
15 | {
16 | }
17 |
18 | public override bool IsSubentityList()
19 | {
20 | return true;
21 | }
22 |
23 | public ICsiSubentity AppendItem()
24 | {
25 | ICsiSubentity csiSubentity = (ICsiSubentity)new CsiSubentity(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);
26 | csiSubentity.SetAttribute("__listItemAction", "add");
27 | return csiSubentity;
28 | }
29 |
30 | public ICsiSubentity ChangeItemByIndex(int index)
31 | {
32 | ICsiSubentity csiSubentity = (ICsiSubentity)new CsiSubentity(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);
33 | csiSubentity.SetAttribute("__listItemAction", "change");
34 | CsiXmlHelper.FindCreateSetValue((ICsiXmlElement)csiSubentity, "__index", XmlConvert.ToString(index));
35 | return csiSubentity;
36 | }
37 |
38 | public ICsiSubentity GetItemByIndex(int index)
39 | {
40 | CsiXmlElement csiXmlElementImpl = this.GetItem(index);
41 | if (csiXmlElementImpl == null)
42 | return (ICsiSubentity)null;
43 | return (ICsiSubentity)new CsiSubentity(this.GetOwnerDocument(), csiXmlElementImpl.GetDomElement());
44 | }
45 |
46 | public ICsiSubentity Item()
47 | {
48 | ICsiSubentity csiSubentity = (ICsiSubentity)new CsiSubentity(this.GetOwnerDocument(), "__listItem", (ICsiXmlElement)this);
49 | return csiSubentity;
50 | }
51 | }
52 | }
--------------------------------------------------------------------------------
/Api/CsiXMLDataFormat.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Globalization;
3 |
4 | namespace InSiteXmlClient4Core.Api
5 | {
6 | ///
7 | /// XML数据格式化
8 | ///
9 | public class CsiXmlDataFormat
10 | {
11 | private const string mkDatePattern = "yyyy-MM-dd";
12 | private const string mkDateTimePattern = "yyyy-MM-dd'T'HH:mm:sszzz";
13 | private const string mkDecimalPattern = "0.0##############################";
14 | private const string mkFloatPattern = "#######0.0####################E0";
15 | private const string mkTimePattern = "HH:mm:ss";
16 |
17 | private CsiXmlDataFormat()
18 | {
19 | }
20 |
21 | internal static string GetUTCOffset() =>
22 | DateTime.Now.ToString("zzz");
23 |
24 | internal static DateTime Lexical2DateTime(string val) =>
25 | DateTime.Parse(val);
26 |
27 | internal static string Lexical2LocaleDate(string val)
28 | {
29 | DateTime time = Lexical2DateTime(val);
30 | DateTimeFormatInfo dateTimeFormat = CultureInfo.CurrentCulture.DateTimeFormat;
31 | return time.ToString(dateTimeFormat.ShortDatePattern);
32 | }
33 |
34 | internal static string Lexical2LocaleDateTime(string val)
35 | {
36 | DateTime time = Lexical2DateTime(val);
37 | DateTimeFormatInfo dateTimeFormat = CultureInfo.CurrentCulture.DateTimeFormat;
38 | return time.ToString(dateTimeFormat.ShortDatePattern + " " + dateTimeFormat.LongTimePattern);
39 | }
40 |
41 | internal static string Lexical2LocaleDecimal(string val) =>
42 | decimal.Parse(val).ToString();
43 |
44 | internal static string Lexical2LocaleFloat(string val) =>
45 | double.Parse(val).ToString();
46 |
47 | internal static string Lexical2LocaleTime(string val)
48 | {
49 | DateTime time = Lexical2DateTime(val);
50 | DateTimeFormatInfo dateTimeFormat = CultureInfo.CurrentCulture.DateTimeFormat;
51 | return time.ToString(dateTimeFormat.LongTimePattern);
52 | }
53 |
54 | internal static string Locale2LexicalDate(string val) =>
55 | Locale2LexicalDateTime(val);
56 |
57 | internal static string Locale2LexicalDateTime(string val) =>
58 | DateTime.Parse(val).ToString("yyyy-MM-dd'T'HH:mm:sszzz");
59 |
60 | internal static string Locale2LexicalDecimal(string val) =>
61 | decimal.Parse(val).ToString("0.0##############################");
62 |
63 | internal static string Locale2LexicalFloat(string val) =>
64 | double.Parse(val).ToString("#######0.0####################E0");
65 |
66 | internal static string Locale2LexicalTime(string val) =>
67 | Locale2LexicalDateTime(val);
68 | }
69 |
70 | }
--------------------------------------------------------------------------------
/CamstarCommonEx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Text;
5 | using InSiteXmlClient4Core.InterFace;
6 |
7 | namespace InSiteXmlClient4Core
8 | {
9 | ///
10 | /// CamstarCommon 扩展类
11 | ///
12 | public static class CamstarCommonEx
13 | {
14 | ///
15 | /// 打印文档
16 | ///
17 | /// 文档
18 | /// 是否输入文档
19 | public static void Print(this ICsiDocument document, bool isInput = false)
20 | {
21 | PrintDocument(document.AsXml(), isInput);
22 | }
23 |
24 | ///
25 | ///
26 | ///
27 | ///
28 | ///
29 | private static void PrintDocument(string doc, bool isInput)
30 | {
31 | string filePath = Path.GetTempPath();
32 | filePath = Path.Combine(filePath, isInput ? "request.xml" : "response.xml");
33 | using (FileStream fs = new FileStream(filePath, FileMode.OpenOrCreate, FileAccess.ReadWrite))
34 | {
35 | StreamWriter writer = new StreamWriter(fs);
36 | writer.Write(doc);
37 | writer.Flush();
38 | writer.Close();
39 | fs.Close();
40 | }
41 |
42 | }
43 | ///
44 | /// 检查错误,并返回错误信息,存在错误返回true
45 | ///
46 | /// 文档
47 | /// 错误信息
48 | /// 存在错误返回true
49 | public static bool CheckErrors(this ICsiDocument document, ref string errorMsg)
50 | {
51 | ICsiExceptionData exceptionData;
52 | ICsiDataField completionMessage;
53 | ICsiService gService;
54 |
55 | if (document.CheckErrors())
56 | {
57 | exceptionData = document.ExceptionData();
58 | errorMsg = exceptionData.GetDescription();
59 | return true;
60 | }
61 | else
62 | {
63 | gService = document.GetService();
64 | if (gService != null)
65 | {
66 | completionMessage = (ICsiDataField)gService.ResponseData().GetResponseFieldByName("CompletionMsg");
67 | errorMsg = completionMessage.GetValue();
68 | }
69 |
70 | return false;
71 | }
72 | }
73 | ///
74 | /// 检查文档错误,并处理错误信息,存在错误返回true
75 | ///
76 | /// 文档
77 | /// 处理方法
78 | /// 存在错误返回true
79 | public static bool CheckErrors(this ICsiDocument document, Action action)
80 | {
81 | string msg = string.Empty;
82 | bool result = document.CheckErrors(ref msg);
83 | action(msg);
84 | return result;
85 |
86 | }
87 | ///
88 | /// 赋值
89 | ///
90 | ///
91 | ///
92 | public static void SetValue(this ICsiDataField csiDataField, object value)
93 | {
94 |
95 | if (value is bool b)
96 | {
97 | csiDataField.SetValue(b?1:0);
98 | }
99 | else if (value is DateTime)
100 | {
101 | csiDataField.SetValue(((DateTime)value).ToString("O"));
102 | }
103 | else
104 | {
105 | csiDataField.SetValue(value.ToString());
106 | }
107 | }
108 |
109 |
110 |
111 | }
112 | }
113 |
--------------------------------------------------------------------------------
/Enum/CsiGenericTypes.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.Enum
6 | {
7 | ///
8 | /// 通用类型
9 | ///
10 | public enum CsiGenericTypes
11 | {
12 | ///
13 | /// 无类型
14 | ///
15 | GenericTypeNone,
16 | ///
17 | /// 布尔类型
18 | ///
19 | GenericTypeBoolean,
20 | ///
21 | /// 数字类型
22 | ///
23 | GenericTypeDecimal,
24 | ///
25 | /// 混合类型
26 | ///
27 | GenericTypeFixed,
28 | ///
29 | /// 浮点型
30 | ///
31 | GenericTypeFloat,
32 | ///
33 | /// 整型
34 | ///
35 | GenericTypeInteger,
36 | ///
37 | /// 字符串
38 | ///
39 | GenericTypeString,
40 | ///
41 | /// 时间
42 | ///
43 | GenericTypeTimestamp,
44 | ///
45 | /// object类型
46 | ///
47 | GenericTypeObject
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Enum/CsiReferenceTypes.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.Enum
6 | {
7 | ///
8 | /// 类型枚举
9 | ///
10 | public enum CsiReferenceTypes
11 | {
12 | ///
13 | /// 无类型
14 | ///
15 | ReferenceTypeNone,
16 | ///
17 | /// container类型
18 | ///
19 | ReferenceTypeContainer,
20 | ///
21 | /// NDO类型
22 | ///
23 | ReferenceTypeNamedDataObject,
24 | ///
25 | /// RO类型
26 | ///
27 | ReferenceTypeRevisionedObject,
28 | ///
29 | /// SubEntity 类型
30 | ///
31 | ReferenceTypeSubEntity,
32 | ///
33 | /// NamedSubEntity类型
34 | ///
35 | ReferenceTypeNamedSubEntity,
36 | ///
37 | /// Object类型
38 | ///
39 | ReferenceTypeObject
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Enum/DataFormats.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.Enum
6 | {
7 | ///
8 | /// 数据格式
9 | ///
10 | public enum DataFormats
11 | {
12 | ///
13 | /// 日期+时间
14 | ///
15 | FormatDateAndTime,
16 | ///
17 | /// 日期
18 | ///
19 | FormatDate,
20 | ///
21 | /// 时间
22 | ///
23 | FormatTime,
24 | ///
25 | /// 数字型
26 | ///
27 | FormatDecimal,
28 | ///
29 | /// 浮点型
30 | ///
31 | FormatFloat
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Enum/ListActions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.Enum
6 | {
7 | ///
8 | /// 集合操作
9 | ///
10 | public enum ListActions
11 | {
12 | ///
13 | /// 更改
14 | ///
15 | ListActionChange,
16 | ///
17 | /// 替换
18 | ///
19 | ListActionReplace
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Enum/SerializationModes.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.Enum
6 | {
7 | ///
8 | /// 序列化方式
9 | ///
10 | public enum SerializationModes
11 | {
12 | ///
13 | /// 深度
14 | ///
15 | SerializationModeDeep,
16 | ///
17 | /// 浅度
18 | ///
19 | SerializationModeShallow,
20 | ///
21 | /// 默认
22 | ///
23 | SerializationModeDefault
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Exceptions/CamstarException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Reflection;
4 | using System.Resources;
5 | using System.Text;
6 |
7 | namespace InSiteXmlClient4Core.Exceptions
8 | {
9 | public class CamstarException : ApplicationException
10 | {
11 | private string mNamespace = string.Empty;
12 | private string mKey = string.Empty;
13 | private string[] mParameters = (string[])null;
14 | private ResourceManager mRM;
15 | private Assembly mExecAssembly;
16 |
17 | public CamstarException()
18 | {
19 | this.mKey = this.GetType().Name;
20 | }
21 |
22 | public CamstarException(string[] parameters)
23 | {
24 | this.mKey = this.GetType().Name;
25 | this.mParameters = parameters;
26 | }
27 |
28 | public CamstarException(string key)
29 | {
30 | this.mKey = key;
31 | }
32 |
33 | public CamstarException(string key, string parameter)
34 | {
35 | this.mKey = key;
36 | this.mParameters = new string[1] { parameter };
37 | }
38 |
39 | public CamstarException(string key, string[] parameters)
40 | {
41 | this.mKey = key;
42 | this.mParameters = parameters;
43 | }
44 |
45 | public virtual string Id
46 | {
47 | get
48 | {
49 | return ExceptionUtil.GetIdValue(this.ResourceManager, this.mKey);
50 | }
51 | }
52 |
53 | public virtual string Key
54 | {
55 | get
56 | {
57 | return this.mKey;
58 | }
59 | }
60 |
61 | public override string Message
62 | {
63 | get
64 | {
65 | return ExceptionUtil.GetMessageValue(this.ResourceManager, this.mKey, this.mParameters);
66 | }
67 | }
68 |
69 | protected virtual ResourceManager ResourceManager
70 | {
71 | get
72 | {
73 | if (this.mRM == null)
74 | this.mRM = new ResourceManager(ExceptionUtil.GetStringResourcesBaseName(this.Namespace), this.Assembly);
75 | return this.mRM;
76 | }
77 | }
78 |
79 | protected virtual string Namespace
80 | {
81 | get
82 | {
83 | if (this.mNamespace.Length > 0)
84 | return this.mNamespace;
85 | return this.GetType().Namespace;
86 | }
87 | }
88 |
89 | protected virtual Assembly Assembly
90 | {
91 | get
92 | {
93 | if (this.mExecAssembly != (Assembly)null)
94 | return this.mExecAssembly;
95 | return Assembly.GetExecutingAssembly();
96 | }
97 | }
98 |
99 | protected void Initialize(string callerNamespace, Assembly executingAssembly)
100 | {
101 | this.mNamespace = callerNamespace;
102 | this.mExecAssembly = executingAssembly;
103 | }
104 | }
105 | }
106 |
--------------------------------------------------------------------------------
/Exceptions/CsiClientException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Runtime.Serialization;
4 |
5 | namespace InSiteXmlClient4Core.Exceptions
6 | {
7 | [Serializable]
8 | internal class CsiClientException : Exception
9 | {
10 | private long mErrorCode;
11 | private static readonly Hashtable mErrorMessages = new Hashtable();
12 | public const long mkAccessDenied = 0xce011dL;
13 | public const long mkBadPointer = 0xde0003L;
14 | public const long mkCreateObjFailed = 0xde001fL;
15 | public const long mkCsiXMLClientCannotCreateANewNode = 0x2e0014L;
16 | public const long mkCsiXMLClientCannotCreateAnObject = 0x2e0004L;
17 | public const long mkCsiXMLClientCannotCreateRequestTag = 0x2e0008L;
18 | public const long mkCsiXMLClientCannotFindAChild = 0x2e0005L;
19 | public const long mkCsiXMLClientCannotMakeDeepCopy = 0x2e0007L;
20 | public const long mkCsiXMLClientConnectionWithSameHostPortExists = 0x2e0019L;
21 | public const long mkCsiXMLClientDocumentWithSameNameExists = 0x2e0015L;
22 | public const long mkCsiXMLClientDOMErrGetNodeNameValue = 0x2e0000L;
23 | public const long mkCsiXMLClientDOMErrInvalidName = 0x2e0001L;
24 | public const long mkCsiXMLClientDOMNoModificationAllowed = 0x2e0003L;
25 | public const long mkCsiXMLClientDOMUnknownErr = 0x2e0002L;
26 | public const long mkCsiXMLClientEmptyName = 0x2e0016L;
27 | public const long mkCsiXMLClientFailToCreateAllFieldTag = 0x2e000aL;
28 | public const long mkCsiXMLClientFailToCreateAnAppendItem = 0x2e000dL;
29 | public const long mkCsiXMLClientFailToGetAllResponseFields = 0x2e0009L;
30 | public const long mkCsiXMLClientFailToGetAllSelectionValuesField = 0x2e000cL;
31 | public const long mkCsiXMLClientFailToGetDataSourceName = 0x2e000fL;
32 | public const long mkCsiXMLClientFailToGetQueryName = 0x2e0010L;
33 | public const long mkCsiXMLClientFailToGetRowSetSize = 0x2e0011L;
34 | public const long mkCsiXMLClientFailToGetSqlText = 0x2e0012L;
35 | public const long mkCsiXMLClientFailToGetStartRow = 0x2e0013L;
36 | public const long mkCsiXMLClientFailToRemoveParameterNodes = 0x2e000eL;
37 | public const long mkCsiXMLClientInsiteTagNotFound = 0x2e0006L;
38 | public const long mkCsiXMLClientNamedParameterNotFound = 0x2e000bL;
39 | public const long mkCsiXMLClientSessionWithSameNameExists = 0x2e0018L;
40 | public const long mkCsiXMLClientUnknownFormat = -2147467259L;
41 | public const long mkCsiXMLClientWrongParameters = 0x2e001aL;
42 | public const long mkGeneralError = 0x400L;
43 | public const long mkInvalidCDODefID = 0x401L;
44 | public const long mkInvalidCDOFieldID = 0x40aL;
45 | public const long mkObjectNotFound = 0xce0013L;
46 | private string mLongMessage;
47 |
48 | static CsiClientException()
49 | {
50 | mErrorMessages.Add(0x400L, "Admininstrative System Error");
51 | mErrorMessages.Add(0x401L, "无效的CDO的定义 \"#ErrorMsg.CDOID\"");
52 | mErrorMessages.Add(0x40aL, "无效的字段标识");
53 | mErrorMessages.Add(0xce0013L, "没有找到实例");
54 | mErrorMessages.Add(0xce011dL, "拒绝访问");
55 | mErrorMessages.Add(0xde0003L, "坏的指针");
56 | mErrorMessages.Add(0xde001fL, "创建实例失败");
57 | mErrorMessages.Add(0x2e0014L, "不能创建DOM元素");
58 | mErrorMessages.Add(0x2e0004L, "不能创建XMLClient实例");
59 | mErrorMessages.Add(0x2e0008L, "不能创建<__Request>标签");
60 | mErrorMessages.Add(0x2e0005L, "找不到指定的子节点");
61 | mErrorMessages.Add(0x2e0007L, "不能作深度复制");
62 | mErrorMessages.Add(0x2e0000L, "DOM试图获取节点的名称和值时发生错误");
63 | mErrorMessages.Add(0x2e0001L, "无效的名称");
64 | mErrorMessages.Add(0x2e0003L, "对DOM节点不允许修改");
65 | mErrorMessages.Add(0x2e0002L, "来自xml DOM的未知错误");
66 | mErrorMessages.Add(0x2e000aL, "创建<__allFields/> 标签失败");
67 | mErrorMessages.Add(0x2e000dL, "创建<__listItem/> 元素失败");
68 | mErrorMessages.Add(0x2e0009L, "未能获取所有返回字段");
69 | mErrorMessages.Add(0x2e000cL, "不能获得选择值");
70 | mErrorMessages.Add(0x2e000fL, "不能找到<__dataSourceName> 标签");
71 | mErrorMessages.Add(0x2e0010L, "<__queryName> 标签没有找到");
72 | mErrorMessages.Add(0x2e0011L, "<__rowSetSize> 标签没有找到!");
73 | mErrorMessages.Add(0x2e0012L, "<__queryText> 标签没有找到");
74 | mErrorMessages.Add(0x2e0013L, "<__startRow> 标签没有找到!");
75 | mErrorMessages.Add(0x2e000eL, "删除 <__parameter/>节点失败");
76 | mErrorMessages.Add(0x2e0006L, "<__InSite>标签没有找到");
77 | mErrorMessages.Add(0x2e000bL, "没有找到指定的参数");
78 | mErrorMessages.Add(0x2e0019L, "已存在相同主机名和端口的连接");
79 | mErrorMessages.Add(0x2e0018L, "已存在相同的会话名");
80 | mErrorMessages.Add(0x2e0015L, "已存在相同的文档名");
81 | mErrorMessages.Add(0x2e0016L, "名称为空");
82 | mErrorMessages.Add(-2147467259L, "未知的格式");
83 | mErrorMessages.Add(0x2e001aL, "错误的参数");
84 | mErrorMessages.Add(-1L, "连接服务器失败");
85 | }
86 |
87 | internal CsiClientException(long err, string src)
88 | {
89 | this.mLongMessage = string.Empty;
90 | this.mErrorCode = 0L;
91 | this.mErrorCode = err;
92 | string str = "";
93 | if (err != -1L)
94 | {
95 | str = (string)mErrorMessages[err];
96 | }
97 | this.mLongMessage = "(错误代码:" + err.ToString() + ",错误原因:" + src + "): " + str;
98 | }
99 |
100 | internal CsiClientException(long err, Exception exp, string src) : this(err, exp.Message, src)
101 | {
102 | }
103 |
104 | internal CsiClientException(long err, string desc, string src)
105 | {
106 | this.mLongMessage = string.Empty;
107 | this.mErrorCode = 0L;
108 | this.mErrorCode = err;
109 | if (err == -1L)
110 | {
111 | src= (string)mErrorMessages[err];
112 | }
113 | this.mLongMessage = "(错误代码:" + err.ToString() + ", 错误原因:" + src + "): " + desc;
114 | }
115 |
116 | public long ErrorCode =>
117 | this.mErrorCode;
118 |
119 | public override string Message =>
120 | this.mLongMessage;
121 | }
122 | }
--------------------------------------------------------------------------------
/Exceptions/CsiExceptionData.cs:
--------------------------------------------------------------------------------
1 | using System.Xml;
2 | using InSiteXmlClient4Core.Api;
3 | using InSiteXmlClient4Core.InterFace;
4 |
5 | namespace InSiteXmlClient4Core.Exceptions
6 | {
7 | internal class CsiExceptionData : CsiXmlElement, ICsiExceptionData, ICsiXmlElement
8 | {
9 | public CsiExceptionData(ICsiDocument doc, XmlElement domElement) : base(doc, domElement)
10 | {
11 | }
12 |
13 | public CsiExceptionData(ICsiDocument doc, string name, ICsiXmlElement parent) : base(doc, name, parent)
14 | {
15 | }
16 |
17 | public virtual string GetDescription() =>
18 | this.GetNodeValue("__errorDescription");
19 |
20 | public virtual int GetErrorCode() =>
21 | int.Parse(base.GetDomElement().GetElementsByTagName("__errorCode")[0].FirstChild.Value);
22 |
23 | public virtual string GetExceptionParameter(string tagName)
24 | {
25 | string str = string.Empty;
26 | XmlNodeList list = this.GetExceptionParameters();
27 | foreach (XmlNode node in list)
28 | {
29 | if (node.Name == tagName)
30 | {
31 | return node.FirstChild.Value;
32 | }
33 | }
34 | return str;
35 | }
36 |
37 | public virtual XmlNodeList GetExceptionParameters()
38 | {
39 | XmlNodeList elementsByTagName = base.GetDomElement().GetElementsByTagName("__exceptionParameters");
40 | if (elementsByTagName.Count > 0)
41 | {
42 | return elementsByTagName[0].ChildNodes;
43 | }
44 | return elementsByTagName;
45 | }
46 |
47 | public virtual string GetFailureContext() =>
48 | this.GetNodeValue("__failureContext");
49 |
50 | private string GetNodeValue(string tagName)
51 | {
52 | string str = string.Empty;
53 | XmlNodeList elementsByTagName = base.GetDomElement().GetElementsByTagName(tagName);
54 | if (elementsByTagName.Count > 0)
55 | {
56 | XmlNode firstChild = elementsByTagName[0].FirstChild;
57 | if (firstChild != null)
58 | {
59 | str = firstChild.Value;
60 | }
61 | }
62 | return str;
63 | }
64 |
65 | public virtual int GetSeverity() =>
66 | int.Parse( base.GetDomElement().GetElementsByTagName("__severity")[0].FirstChild.Value);
67 |
68 | public virtual string GetSource() =>
69 | this.GetNodeValue("__errorSource");
70 |
71 | public virtual string GetSystemMessage() =>
72 | this.GetNodeValue("__errorSystemMessage");
73 | }
74 | }
--------------------------------------------------------------------------------
/Exceptions/ExceptionUtil.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Globalization;
4 | using System.Resources;
5 | using System.Text;
6 | using System.Threading;
7 |
8 | namespace InSiteXmlClient4Core.Exceptions
9 | {
10 | public class ExceptionUtil
11 | {
12 | public const string StringResourcesSuffix = ".StringResources";
13 | public const string IdKeySuffix = "_Id";
14 | public const string MessageKeySuffix = "_Message";
15 | public const string ParameterMarker = "%";
16 |
17 | public static string GetStringResourcesBaseName(string callerNamespace)
18 | {
19 | if (callerNamespace == null)
20 | callerNamespace = string.Empty;
21 | return callerNamespace + ".StringResources";
22 | }
23 |
24 | public static string GetIdKey(string key)
25 | {
26 | if (key == null)
27 | key = string.Empty;
28 | return key + "_Id";
29 | }
30 |
31 | public static string GetMessageKey(string key)
32 | {
33 | if (key == null)
34 | key = string.Empty;
35 | return key + "_Message";
36 | }
37 |
38 | public static string GetIdValue(ResourceManager rm, string key)
39 | {
40 | return ExceptionUtil.GetResourceString(rm, ExceptionUtil.GetIdKey(key));
41 | }
42 |
43 | public static string GetMessageValue(ResourceManager rm, string key, string[] parameters)
44 | {
45 | string resourceString = ExceptionUtil.GetResourceString(rm, ExceptionUtil.GetMessageKey(key));
46 | if (parameters == null)
47 | return resourceString;
48 | return ExceptionUtil.ParseParameters(resourceString, parameters);
49 | }
50 |
51 | public static string GetResourceString(ResourceManager rm, string key)
52 | {
53 | string str = string.Empty;
54 | if (rm != null)
55 | {
56 | CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;
57 | try
58 | {
59 | str = rm.GetString(key, currentCulture);
60 | }
61 | catch
62 | {
63 | }
64 | }
65 | if (str == null || str == string.Empty)
66 | str = key;
67 | return str;
68 | }
69 |
70 | public static string ParseParameters(string message, string[] parameters)
71 | {
72 | if (message == null)
73 | message = string.Empty;
74 | if (message.Length > 0 && parameters != null)
75 | {
76 | for (int lowerBound = parameters.GetLowerBound(0); lowerBound <= parameters.GetUpperBound(0); ++lowerBound)
77 | {
78 | string oldValue = "%" + (object)(lowerBound + 1);
79 | string parameter = parameters[lowerBound];
80 | message = message.Replace(oldValue, parameter);
81 | }
82 | }
83 | return message;
84 | }
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/InSiteXmlClient4Core.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 |
6 | 李德镇
7 | Camstar MES系统API交互库,用于连接Camstar MES系统,使用在.net平台
8 | true
9 | 1.0.5
10 | 7.1
11 | 1.0.5.0
12 | 1.0.5.0
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | ..\..\..\..\..\..\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.extensions.configuration.json\2.2.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.Json.dll
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/InSiteXmlClient4Core.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.30406.217
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InSiteXmlClient4Core", "InSiteXmlClient4Core.csproj", "{CC137064-5AF9-489F-AED5-52A28AAA36EF}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {CC137064-5AF9-489F-AED5-52A28AAA36EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {CC137064-5AF9-489F-AED5-52A28AAA36EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {CC137064-5AF9-489F-AED5-52A28AAA36EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {CC137064-5AF9-489F-AED5-52A28AAA36EF}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {5A8CAF76-EFDD-416D-8CEF-4C157EF89A6F}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/InSiteXmlClient4Core.sln.DotSettings.user:
--------------------------------------------------------------------------------
1 |
2 | <AssemblyExplorer>
3 | <Assembly Path="C:\Users\lidezhen\Desktop\InSiteXMLClient.dll" />
4 | </AssemblyExplorer>
--------------------------------------------------------------------------------
/InsiteLoginModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core
6 | {
7 | ///
8 | /// 登录实体
9 | ///
10 | public class InsiteLoginModel
11 | {
12 | public string Host { get; set; }
13 | public int Port { get; set; }
14 | public string User { get; set; }
15 | public string Password { get; set; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/InterFace/ICsiCDODefinition.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.InterFace
6 | {
7 | ///
8 | /// CDO声明接口
9 | ///
10 | public interface ICsiCdoDefinition
11 | {
12 | ///
13 | /// 获取CDO类型ID
14 | ///
15 | ///
16 | int GetCdoTypeId();
17 | ///
18 | /// 获取CDO类型名称
19 | ///
20 | ///
21 | string GetCdoTypeName();
22 | ///
23 | /// 获取定义的字段
24 | ///
25 | ///
26 | ICsiFieldDefinitions GetFieldDefinitions();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/InterFace/ICsiCdoType.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// CDO 类型
5 | ///
6 | public interface ICsiCdoType
7 | {
8 | ///
9 | /// CDO 的ID
10 | ///
11 | ///
12 | int GetCdoTypeId();
13 | ///
14 | /// CDO 类型名称
15 | ///
16 | ///
17 | string GetCdoTypeName();
18 | }
19 | }
--------------------------------------------------------------------------------
/InterFace/ICsiConnection.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 连接
5 | ///
6 | public interface ICsiConnection
7 | {
8 | ///
9 | ///
10 | ///
11 | ///
12 | ///
13 | ///
14 | ///
15 | ICsiSession CreateSession(string userName, string password, string sessionName);
16 | ICsiSession CreateSessionWithSessionId(string userName, string sessionId, string sessionName);
17 | ///
18 | ///
19 | ///
20 | ///
21 | ///
22 | ICsiSession FindSession(string sessionName);
23 | ///
24 | /// 删除会话
25 | ///
26 | ///
27 | void RemoveSession(string sessionName);
28 | ///
29 | /// 超时时间
30 | ///
31 | ///
32 | ///
33 | int SetConnectionTimeout(int timeout);
34 | ///
35 | /// 提交数据
36 | ///
37 | ///
38 | ///
39 | string Submit(string xml);
40 | }
41 | }
--------------------------------------------------------------------------------
/InterFace/ICsiContainer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.InterFace
6 | {
7 | ///
8 | /// 批次接口
9 | ///
10 | public interface ICsiContainer : ICsiObject, ICsiField, ICsiXmlElement
11 | {
12 | ///
13 | /// 等级
14 | ///
15 | ///
16 | string GetLevel();
17 | ///
18 | /// 获取批次名
19 | ///
20 | ///
21 | string GetName();
22 | ///
23 | /// 根据名称获取批次
24 | ///
25 | ///
26 | ///
27 | void GetRef(out string name, out string level);
28 | ///
29 | /// 设定批次
30 | ///
31 | ///
32 | ///
33 | void SetRef(string name, string level);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/InterFace/ICsiContainerList.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 批次集合
5 | ///
6 | public interface ICsiContainerList : ICsiObjectList, ICsiList, ICsiField, ICsiXmlElement
7 | {
8 | ///
9 | /// 添加项
10 | ///
11 | ///
12 | ///
13 | ///
14 | ICsiContainer AppendItem(string name, string level);
15 | ///
16 | /// 更具索引更改
17 | ///
18 | ///
19 | ///
20 | ICsiContainer ChangeItemByIndex(int index);
21 | ///
22 | /// 更具名称修改
23 | ///
24 | ///
25 | ///
26 | ///
27 | ICsiContainer ChangeItemByRef(string name, string level);
28 | ///
29 | /// 删除
30 | ///
31 | ///
32 | ///
33 | void DeleteItemByRef(string name, string level);
34 | ///
35 | /// 根据索引获取数据
36 | ///
37 | ///
38 | ///
39 | ICsiContainer GetItemByIndex(int index);
40 | ///
41 | /// 根据名称获取数据
42 | ///
43 | ///
44 | ///
45 | ///
46 | ICsiContainer GetItemByRef(string name, string level);
47 | }
48 | }
--------------------------------------------------------------------------------
/InterFace/ICsiDataField.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 数据字段
5 | ///
6 | public interface ICsiDataField : ICsiField, ICsiXmlElement
7 | {
8 | ///
9 | /// 获取格式化后的值
10 | ///
11 | ///
12 | ///
13 | string GetFormattedValue(Enum.DataFormats format);
14 | ///
15 | /// 获取值
16 | ///
17 | ///
18 | string GetValue();
19 | ///
20 | /// 是否空值
21 | ///
22 | ///
23 | bool IsEmptyValue();
24 | ///
25 | /// 设置为空值
26 | ///
27 | void SetEmptyValue();
28 | ///
29 | /// 设置加密值
30 | ///
31 | ///
32 | void SetEncryptedValue(string val);
33 | ///
34 | /// 设置格式化的值
35 | ///
36 | ///
37 | ///
38 | void SetFormattedValue(string val, Enum.DataFormats format);
39 | ///
40 | /// 设置值
41 | ///
42 | ///
43 | void SetValue(string val);
44 | }
45 | }
--------------------------------------------------------------------------------
/InterFace/ICsiDataList.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.InterFace
6 | {
7 | public interface ICsiDataList : ICsiList, ICsiField, ICsiXmlElement
8 | {
9 | ///
10 | /// 添加项
11 | ///
12 | ///
13 | ///
14 | ICsiDataField AppendItem(string valueRenamed);
15 | ///
16 | /// 更改指定索引项
17 | ///
18 | ///
19 | ///
20 | ///
21 | ICsiDataField ChangeItemByIndex(int index, string valueRenamed);
22 | ///
23 | /// 更新值
24 | ///
25 | ///
26 | ///
27 | ///
28 | ICsiDataField ChangeItemByValue(string oldValue, string newValue);
29 | ///
30 | /// 删除
31 | ///
32 | ///
33 | ///
34 | ICsiDataField DeleteItemByValue(string valueRenamed);
35 | ///
36 | /// 获取指定索引的项
37 | ///
38 | ///
39 | ///
40 | ICsiDataField GetItemByIndex(int index);
41 | }
42 |
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/InterFace/ICsiDocument.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace InSiteXmlClient4Core.InterFace
4 | {
5 | public interface ICsiDocument
6 | {
7 | ///
8 | /// 转换为XML
9 | ///
10 | ///
11 | string AsXml();
12 | ///
13 | /// 建立表单字符串
14 | ///
15 | ///
16 | void BuildFromString(string xml);
17 | ///
18 | /// 检查错误
19 | ///
20 | ///
21 | bool CheckErrors();
22 | ///
23 | /// 创建查询
24 | ///
25 | ///
26 | ICsiQuery CreateQuery();
27 | ///
28 | /// 创建服务
29 | ///
30 | ///
31 | ///
32 | ICsiService CreateService(string serviceType);
33 | ///
34 | /// 错误数据
35 | ///
36 | ///
37 | ICsiExceptionData ExceptionData();
38 | ///
39 | /// 获取一直返回的选择值
40 | ///
41 | ///
42 | bool GetAlwaysReturnSelectionValues();
43 | ///
44 | /// 错误
45 | ///
46 | ///
47 | Array GetExceptions();
48 | ///
49 | /// 获取查询
50 | ///
51 | ///
52 | ICsiQuery[] GetQueries();
53 | ///
54 | /// 获取查询
55 | ///
56 | ///
57 | ICsiQuery GetQuery();
58 | ///
59 | /// 获取服务
60 | ///
61 | ///
62 | ICsiService GetService();
63 | ///
64 | /// 获取服务
65 | ///
66 | ///
67 | ICsiService[] GetServices();
68 | ///
69 | /// 操作GUID
70 | ///
71 | ///
72 | string GetTxnGuid();
73 | ///
74 | /// 请求数据
75 | ///
76 | ///
77 | ICsiRequestData RequestData();
78 | ///
79 | /// 返回数据
80 | ///
81 | ///
82 | ICsiResponseData ResponseData();
83 | ///
84 | /// 保存请求数据
85 | ///
86 | /// 字段名
87 | /// 是否添加
88 | ///
89 | string SaveRequestData(string filename, bool append);
90 | ///
91 | ///
92 | ///
93 | ///
94 | ///
95 | ///
96 | string SaveResponseData(string filename, bool append);
97 | ///
98 | /// 设置一直返回选择值
99 | ///
100 | ///
101 | void SetAlwaysReturnSelectionValues(bool alwaysReturn);
102 | ///
103 | /// 提交
104 | ///
105 | ///
106 | ICsiDocument Submit();
107 |
108 | }
109 | }
--------------------------------------------------------------------------------
/InterFace/ICsiExceptionData.cs:
--------------------------------------------------------------------------------
1 | using System.Xml;
2 |
3 | namespace InSiteXmlClient4Core.InterFace
4 | {
5 | ///
6 | /// 错误
7 | ///
8 | public interface ICsiExceptionData : ICsiXmlElement
9 | {
10 | ///
11 | /// 描述
12 | ///
13 | ///
14 | string GetDescription();
15 | ///
16 | /// 错误代码
17 | ///
18 | ///
19 | int GetErrorCode();
20 | ///
21 | /// 错误参数
22 | ///
23 | ///
24 | ///
25 | string GetExceptionParameter(string tagName);
26 | ///
27 | /// 错误参数
28 | ///
29 | ///
30 | XmlNodeList GetExceptionParameters();
31 | ///
32 | /// 失败内容
33 | ///
34 | ///
35 | string GetFailureContext();
36 | ///
37 | /// 严重程度
38 | ///
39 | ///
40 | int GetSeverity();
41 | ///
42 | /// 来源
43 | ///
44 | ///
45 | string GetSource();
46 | ///
47 | /// 系统信息
48 | ///
49 | ///
50 | string GetSystemMessage();
51 | }
52 | }
--------------------------------------------------------------------------------
/InterFace/ICsiField.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.InterFace
6 | {
7 | ///
8 | /// ziduan
9 | ///
10 | public interface ICsiField : ICsiXmlElement
11 | {
12 | ///
13 | /// 获取标题
14 | ///
15 | ///
16 | ICsiLabel GetCaption();
17 | ///
18 | /// 获取CDO 定义
19 | ///
20 | ///
21 | ICsiCdoDefinition GetCdoDefinition();
22 | ///
23 | /// 获取默认值
24 | ///
25 | ///
26 | ICsiField GetDefaultValue();
27 | ///
28 | /// 获取字段定义
29 | ///
30 | ///
31 | ICsiFieldDefinition GetFieldDefinition();
32 | ///
33 | /// 获取字段集合
34 | ///
35 | ///
36 | Array GetFields();
37 | ///
38 | /// 通用类型
39 | ///
40 | ///
41 | Enum.CsiGenericTypes GetGenericType();
42 | ///
43 | /// 参数类型
44 | ///
45 | ///
46 | Enum.CsiReferenceTypes GetReferenceType();
47 | ICsiSelectionValues GetSelectionValues();
48 | ICsiSelectionValuesEx GetSelectionValuesEx();
49 | ///
50 | /// 获取特殊类型
51 | ///
52 | ///
53 | string GetSpecificType();
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/InterFace/ICsiFieldDefinition.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 字段定义
5 | ///
6 | public interface ICsiFieldDefinition : ICsiXmlElement
7 | {
8 | ///
9 | /// 获取数据类型
10 | ///
11 | ///
12 | string GetDataType();
13 | ///
14 | /// 获取CDO类型
15 | ///
16 | ///
17 | ICsiCdoType GetFieldCdoType();
18 | ///
19 | /// 获取字段ID
20 | ///
21 | ///
22 | int GetFieldId();
23 | ///
24 | /// 获取字段标签
25 | ///
26 | ///
27 | ICsiLabel GetFieldLabel();
28 | ///
29 | /// 获取字段名称
30 | ///
31 | ///
32 | string GetFieldName();
33 | ///
34 | /// 枚举选择的值
35 | ///
36 | ///
37 | bool HasSelectionValues();
38 | ///
39 | /// 是否隐藏
40 | ///
41 | ///
42 | bool IsHidden();
43 | ///
44 | /// 是否集合
45 | ///
46 | ///
47 | bool IsListField();
48 | ///
49 | /// 是否为Object字段
50 | ///
51 | ///
52 | bool IsObjectField();
53 | ///
54 | /// 是否只读
55 | ///
56 | ///
57 | bool IsReadOnly();
58 | ///
59 | /// 是否为必需
60 | ///
61 | ///
62 | bool IsRequired();
63 | ///
64 | /// 是否类型约束
65 | ///
66 | ///
67 | bool IsTypeUnique();
68 | ///
69 | /// 是否为用户定义字段
70 | ///
71 | ///
72 | bool IsUserDefinedField();
73 | ///
74 | /// 值必须输入
75 | ///
76 | ///
77 | bool IsValueRequired();
78 | ///
79 | /// 拥有对象
80 | ///
81 | ///
82 | bool OwnsObject();
83 | }
84 | }
--------------------------------------------------------------------------------
/InterFace/ICsiFieldDefinitions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace InSiteXmlClient4Core.InterFace
4 | {
5 | ///
6 | /// 字段集合
7 | ///
8 | public interface ICsiFieldDefinitions : ICsiXmlElement
9 | {
10 | ///
11 | /// 获取所有定义的字段
12 | ///
13 | ///
14 | Array GetAllFieldDefinitions();
15 | ///
16 | /// 根据ID获取字段
17 | ///
18 | ///
19 | ///
20 | ICsiFieldDefinition GetFieldDefinitionById(int id);
21 | ///
22 | /// 根据名称获取字段
23 | ///
24 | ///
25 | ///
26 | ICsiFieldDefinition GetFieldDefinitionByName(string name);
27 | }
28 | }
--------------------------------------------------------------------------------
/InterFace/ICsiLabel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.InterFace
6 | {
7 | public interface ICsiLabel:ICsiXmlElement
8 | {
9 | ///
10 | /// 获取默认值
11 | ///
12 | ///
13 | string GetDefaultValue();
14 | ///
15 | /// 获取ID
16 | ///
17 | ///
18 | int GetLabelId();
19 | ///
20 | /// 获取名称
21 | ///
22 | ///
23 | string GetLabelName();
24 | ///
25 | ///
26 | ///
27 | ///
28 | string GetValue();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/InterFace/ICsiList.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.InterFace
6 | {
7 | ///
8 | /// 集合
9 | ///
10 | public interface ICsiList : ICsiField, ICsiXmlElement
11 | {
12 | ///
13 | /// 根据索引删除
14 | ///
15 | ///
16 | void DeleteItemByIndex(int index);
17 | ///
18 | /// 获取集合
19 | ///
20 | ///
21 | Array GetListItems();
22 | ///
23 | /// 方法
24 | ///
25 | ///
26 | void SetListAction(Enum.ListActions action);
27 | ///
28 | /// 端口字段
29 | ///
30 | ///
31 | void SetProxyField(string name);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/InterFace/ICsiMetaData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.InterFace
6 | {
7 | ///
8 | /// 元数据
9 | ///
10 | public interface ICsiMetaData
11 |
12 |
13 | {
14 | ///
15 | ///
16 | ///
17 | ///
18 | ICsiCdoDefinition GetCdoDefinition();
19 | ICsiFieldDefinition GetCdoField();
20 | ICsiLabel GetCdoLabel();
21 | ICsiCdoType GetCdoType();
22 | ICsiLabel GetFieldLabel();
23 | ICsiLabel GetLabel();
24 | ICsiQueryParameters GetQueryParameters();
25 | Array GetUserDefinedFields();
26 | void RequestCdoDefinition();
27 | void RequestCdoDefinitionById(int id);
28 | void RequestCdoDefinitionByName(string name);
29 | void RequestCdoDefinitionFieldByName(string name, string fieldName);
30 | void RequestCdoLabel();
31 | void RequestCdoSubTypesById(int Id, bool recurse);
32 | void RequestCdoSubTypesByName(string name, bool recurse);
33 | void RequestFieldItem(string itemName);
34 | void RequestFieldLabel();
35 | void RequestLabelById(int labelId);
36 | void RequestLabelByName(string labelName);
37 | void RequestQueryParameters(string queryName);
38 | void RequestUserDefinedFields();
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/InterFace/ICsiNamedObject.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// NDO 类型
5 | ///
6 | public interface ICsiNamedObject : ICsiObject, ICsiField, ICsiXmlElement
7 | {
8 | ///
9 | /// 获取
10 | ///
11 | ///
12 | string GetRef();
13 | ///
14 | /// 设置
15 | ///
16 | ///
17 | void SetRef(string name);
18 | }
19 | }
--------------------------------------------------------------------------------
/InterFace/ICsiNamedObjectList.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// NDO 集合
5 | ///
6 | public interface ICsiNamedObjectList : ICsiObjectList, ICsiList, ICsiField, ICsiXmlElement
7 | {
8 | ///
9 | /// 添加
10 | ///
11 | ///
12 | ///
13 | ICsiNamedObject AppendItem(string name);
14 | ///
15 | /// 更改
16 | ///
17 | /// 索引
18 | ///
19 | ICsiNamedObject ChangeItemByIndex(int index);
20 | ///
21 | /// 更改
22 | ///
23 | /// 名称
24 | ///
25 | ICsiNamedObject ChangeItemByName(string name);
26 | ///
27 | /// 删除
28 | ///
29 | /// 名称
30 | void DeleteItemByName(string name);
31 | ///
32 | /// 获取数据
33 | ///
34 | /// 索引
35 | ///
36 | ICsiNamedObject GetItemByIndex(int index);
37 | ///
38 | /// 获取数据
39 | ///
40 | /// 名称
41 | ///
42 | ICsiNamedObject GetItemByName(string name);
43 | }
44 | }
--------------------------------------------------------------------------------
/InterFace/ICsiNamedSubentity.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// NamedSubentity
5 | ///
6 | public interface ICsiNamedSubentity : ICsiObject, ICsiField, ICsiXmlElement
7 | {
8 | ///
9 | /// 获取名称
10 | ///
11 | ///
12 | string GetName();
13 | ///
14 | /// 获取父信息
15 | ///
16 | ///
17 | ICsiParentInfo GetParentInfo();
18 | ///
19 | /// 父信息
20 | ///
21 | ///
22 | ICsiParentInfo ParentInfo();
23 | ///
24 | /// 设置名称
25 | ///
26 | ///
27 | void SetName(string name);
28 | ///
29 | /// 设置父ID
30 | ///
31 | ///
32 | void SetParentId(string id);
33 | }
34 | }
--------------------------------------------------------------------------------
/InterFace/ICsiNamedSubentityList.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// NamedSubentity集合
5 | ///
6 | public interface ICsiNamedSubentityList : ICsiObjectList, ICsiList, ICsiField, ICsiXmlElement
7 | {
8 | ///
9 | /// 添加
10 | ///
11 | ///
12 | ///
13 | ICsiNamedSubentity AppendItem(string name);
14 | ///
15 | /// 更改
16 | ///
17 | /// 索引
18 | ///
19 | ICsiNamedSubentity ChangeItemByIndex(int index);
20 | ///
21 | /// 更改
22 | ///
23 | /// 名称
24 | ///
25 | ICsiNamedSubentity ChangeItemByName(string name);
26 | ///
27 | /// 删除
28 | ///
29 | /// 名称
30 | ///
31 | ICsiNamedSubentity DeleteItemByName(string name);
32 | ///
33 | /// 获取数据
34 | ///
35 | /// 索引
36 | ///
37 | ICsiNamedSubentity GetItemByIndex(int index);
38 | ///
39 | /// 获取数据
40 | ///
41 | /// 名称
42 | ///
43 | ICsiNamedSubentity GetItemByName(string name);
44 | }
45 | }
--------------------------------------------------------------------------------
/InterFace/ICsiObject.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.InterFace
6 | {
7 | public interface ICsiObject: ICsiField,ICsiXmlElement
8 | {
9 | ///
10 | /// Container字段
11 | ///
12 | /// 字段名称
13 | ///
14 | ICsiContainer ContainerField(string fieldName);
15 | ///
16 | /// 获取批次集合
17 | ///
18 | ///
19 | ///
20 | ICsiContainerList ContainerList(string fieldName);
21 | ///
22 | /// 创建对象
23 | ///
24 | /// cdo类型
25 | void CreateObject(string cdoType);
26 | ///
27 | /// 数据字段
28 | ///
29 | ///
30 | ///
31 | ICsiDataField DataField(string fieldName);
32 | ///
33 | /// 数据字段集合
34 | ///
35 | ///
36 | ///
37 | ICsiDataList DataList(string fieldName);
38 | ///
39 | /// 获取字段
40 | ///
41 | ///
42 | ///
43 | ICsiField GetField(string fieldName);
44 | ///
45 | /// 获取对象ID
46 | ///
47 | ///
48 | string GetObjectId();
49 | ///
50 | /// 获取对象类型
51 | ///
52 | ///
53 | string GetObjectType();
54 | ///
55 | /// 获取用户定义的字段
56 | ///
57 | ///
58 | Array GetUserDefinedFields();
59 | ///
60 | /// NDO字段
61 | ///
62 | ///
63 | ///
64 | ICsiNamedObject NamedObjectField(string fieldName);
65 | ///
66 | /// NDO集合
67 | ///
68 | ///
69 | ///
70 | ICsiNamedObjectList NamedObjectList(string fieldName);
71 | ///
72 | /// NamedSubentity字段
73 | ///
74 | ///
75 | ///
76 | ICsiNamedSubentity NamedSubentityField(string fieldName);
77 | ///
78 | /// NamedSubentity字段集合
79 | ///
80 | ///
81 | ///
82 | ICsiNamedSubentityList NamedSubentityList(string fieldName);
83 | ///
84 | /// 对象字段
85 | ///
86 | ///
87 | ///
88 | ICsiObject ObjectField(string fieldName);
89 | ///
90 | /// 对象集合
91 | ///
92 | ///
93 | ///
94 | ICsiObjectList ObjectList(string fieldName);
95 | ///
96 | /// 执行
97 | ///
98 | /// 事件名称
99 | ///
100 | ICsiPerform Perform(string eventName);
101 | ///
102 | /// RO字段
103 | ///
104 | ///
105 | ///
106 | ICsiRevisionedObject RevisionedObjectField(string fieldName);
107 | ///
108 | /// RO 集合字段
109 | ///
110 | ///
111 | ///
112 | ICsiRevisionedObjectList RevisionedObjectList(string fieldName);
113 | ///
114 | /// 设定ID
115 | ///
116 | ///
117 | void SetObjectId(string id);
118 | ///
119 | /// 设定类型
120 | ///
121 | ///
122 | void SetObjectType(string cdoType);
123 | ///
124 | /// 子字段
125 | ///
126 | ///
127 | ///
128 | ICsiSubentity SubentityField(string fieldName);
129 | ///
130 | /// 子集合字段
131 | ///
132 | ///
133 | ///
134 | ICsiSubentityList SubentityList(string fieldName);
135 | }
136 | }
137 |
--------------------------------------------------------------------------------
/InterFace/ICsiObjectList.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | public interface ICsiObjectList : ICsiList, ICsiField, ICsiXmlElement
4 | {
5 | ///
6 | /// 根据ID添加项
7 | ///
8 | ///
9 | void AppendItemById(string instanceId);
10 | }
11 | }
--------------------------------------------------------------------------------
/InterFace/ICsiParameter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.InterFace
6 | {
7 | ///
8 | /// 参数
9 | ///
10 | public interface ICsiParameter:ICsiXmlElement
11 | {
12 | string GetValue();
13 | void SetValue(string val);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/InterFace/ICsiParameters.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 参数
5 | ///
6 | public interface ICsiParameters : ICsiXmlElement
7 | {
8 | void ClearAll();
9 | long GetCount();
10 | ICsiParameter GetParameterByName(string name);
11 | void RemoveParameterByName(string name);
12 | void SetParameter(string name, string val);
13 | }
14 | }
--------------------------------------------------------------------------------
/InterFace/ICsiParentInfo.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 父级信息
5 | ///
6 | public interface ICsiParentInfo : ICsiXmlElement
7 | {///
8 | /// 批次
9 | ///
10 | ///
11 | ///
12 | void GetContainerRef(out string name, out string level);
13 | ///
14 | /// 名称
15 | ///
16 | ///
17 | string GetName();
18 | ///
19 | /// NDO
20 | ///
21 | ///
22 | string GetNamedObjectRef();
23 | ///
24 | /// 获取父级ID
25 | ///
26 | string GetParentId();
27 | ///
28 | /// 获取父级信息
29 | ///
30 | ICsiParentInfo GetParentInfo();
31 | ///
32 | /// RO
33 | ///
34 | /// 名称
35 | /// 版本
36 | /// 是否用默认版本
37 | void GetRevisionedObjectRef(out string name, out string revision, out bool useRor);
38 | ///
39 | /// 父级信息
40 | ///
41 | ICsiParentInfo ParentInfo();
42 | ///
43 | /// 设置批次
44 | ///
45 | ///
46 | ///
47 | void SetContainerRef(string name, string level);
48 | ///
49 | /// 设置名称
50 | ///
51 | ///
52 | void SetName(string name);
53 | ///
54 | /// 设置NDO
55 | ///
56 | ///
57 | void SetNamedObjectRef(string name);
58 | ///
59 | /// 设置object ID
60 | ///
61 | ///
62 | void SetObjectId(string Id);
63 | ///
64 | /// 设置object 类型
65 | ///
66 | ///
67 | void SetObjectType(string cdoType);
68 | ///
69 | /// 父级ID
70 | ///
71 | ///
72 | void SetParentId(string id);
73 | ///
74 | /// 设置RO
75 | ///
76 | /// 名称
77 | /// 版本
78 | /// 是否使用默认版本
79 | void SetRevisionedObjectRef(string name, string revision, bool useRor);
80 | }
81 | }
--------------------------------------------------------------------------------
/InterFace/ICsiPerform.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 执行事件
5 | ///
6 | public interface ICsiPerform : ICsiXmlElement
7 | {
8 | ///
9 | /// 添加参数
10 | ///
11 | ///
12 | ICsiParameters AddParameters();
13 | }
14 | }
--------------------------------------------------------------------------------
/InterFace/ICsiQuery.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 查询
5 | ///
6 | public interface ICsiQuery : ICsiXmlElement
7 | {
8 | ///
9 | /// 清空参数
10 | ///
11 | void ClearParameters();
12 | ///
13 | /// 错误数据
14 | ///
15 | ///
16 | ICsiExceptionData ExceptionData();
17 | ///
18 | /// 参数
19 | ///
20 | /// 名称
21 | ///
22 | string GetParameter(string name);
23 | ///
24 | /// 查询明细
25 | ///
26 | ///
27 | string GetQueryName();
28 | ///
29 | /// 查询参数
30 | ///
31 | ///
32 | ICsiQueryParameters GetQueryParameters();
33 | ///
34 | /// 记录数量
35 | ///
36 | ///
37 | long GetRecordCount();
38 | ///
39 | /// 记录
40 | ///
41 | ///
42 | ICsiRecordset GetRecordset();
43 | ///
44 | /// 记录头部
45 | ///
46 | ///
47 | ICsiRecordsetHeader GetRecordsetHeader();
48 | ///
49 | /// 记录数量
50 | ///
51 | ///
52 | bool GetRequestRecordCount();
53 | ///
54 | /// 行数
55 | ///
56 | ///
57 | long GetRowsetSize();
58 | ///
59 | /// SQL
60 | ///
61 | ///
62 | string GetSqlText();
63 | ///
64 | /// 开始行
65 | ///
66 | ///
67 | long GetStartRow();
68 | ///
69 | /// 用户更改行数
70 | ///
71 | ///
72 | long GetUserQueryChangeCount();
73 | ///
74 | /// 设置CDO类型
75 | ///
76 | ///
77 | void SetCdoTypeId(int typeId);
78 | ///
79 | /// 参数
80 | ///
81 | /// 名称
82 | /// 值
83 | void SetParameter(string name, string value);
84 | ///
85 | /// 设置查询名称
86 | ///
87 | /// 名称
88 | void SetQueryName(string queryName);
89 | ///
90 | /// 设置请求数据量
91 | ///
92 | ///
93 | void SetRequestRecordCount(bool isRequested);
94 | ///
95 | /// 设置行数
96 | ///
97 | ///
98 | void SetRowsetSize(long size);
99 | ///
100 | /// 设置SQL
101 | ///
102 | ///
103 | void SetSqlText(string sql);
104 | ///
105 | /// 设置行
106 | ///
107 | ///
108 | void SetStartRow(long startRow);
109 | ///
110 | /// 设置用户查询名称
111 | ///
112 | /// 名称
113 | /// 行数
114 | void SetUserQueryName(string queryName, long changeCount);
115 | }
116 | }
--------------------------------------------------------------------------------
/InterFace/ICsiQueryParameters.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 查询参数
5 | ///
6 | public interface ICsiQueryParameters : ICsiParameters, ICsiXmlElement
7 | {
8 | }
9 | }
--------------------------------------------------------------------------------
/InterFace/ICsiRecordset.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace InSiteXmlClient4Core.InterFace
4 | {
5 | ///
6 | /// 记录集合
7 | ///
8 | public interface ICsiRecordset : ICsiXmlElement
9 | {
10 | ///
11 | /// 字段集合
12 | ///
13 | ///
14 | Array GetFields();
15 | ///
16 | /// 数量
17 | ///
18 | ///
19 | long GetRecordCount();
20 | ///
21 | /// 移动到第一个
22 | ///
23 | void MoveFirst();
24 | ///
25 | /// 移动到最后
26 | ///
27 | void MoveLast();
28 | ///
29 | /// 移动到下一个
30 | ///
31 | void MoveNext();
32 | ///
33 | /// 移动到上一个
34 | ///
35 | void MovePrevious();
36 | }
37 | }
--------------------------------------------------------------------------------
/InterFace/ICsiRecordsetHeader.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace InSiteXmlClient4Core.InterFace
4 | {
5 | ///
6 | /// 记录集合头部
7 | ///
8 | public interface ICsiRecordsetHeader : ICsiXmlElement
9 | {
10 | ///
11 | /// 列集合
12 | ///
13 | ///
14 | Array GetColumns();
15 | ///
16 | /// 数量
17 | ///
18 | ///
19 | long GetCount();
20 | }
21 | }
--------------------------------------------------------------------------------
/InterFace/ICsiRequestData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace InSiteXmlClient4Core.InterFace
4 | {
5 | ///
6 | /// 请求数据
7 | ///
8 | public interface ICsiRequestData : ICsiXmlElement
9 | {
10 | ///
11 | /// 请求所有字段
12 | ///
13 | void RequestAllFields();
14 | ///
15 | /// 请求所有字段包含子字段
16 | ///
17 | void RequestAllFieldsRecursive();
18 | ///
19 | /// 请求字段
20 | ///
21 | ///
22 | ///
23 | ICsiRequestField RequestField(string fieldName);
24 | ///
25 | /// 请求字段
26 | ///
27 | /// 字段集合
28 | void RequestFields(Array fields);
29 | ///
30 | /// 请求会话值
31 | ///
32 | void RequestSessionValues();
33 | ///
34 | /// 设置数据格式化模式
35 | ///
36 | ///
37 | void SetSerializationMode(Enum.SerializationModes mode);
38 | }
39 | }
--------------------------------------------------------------------------------
/InterFace/ICsiRequestField.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 请求字段
5 | ///
6 | public interface ICsiRequestField : ICsiField, ICsiXmlElement
7 | {
8 | ///
9 | /// 请求所有字段
10 | ///
11 | void RequestAllFields();
12 | ///
13 | /// 请求所有字段 包含子字段
14 | ///
15 | void RequestAllFieldsRecursive();
16 | ///
17 | /// 请求标题
18 | ///
19 | void RequestCaption();
20 | ///
21 | /// 请求CDO定义
22 | ///
23 | void RequestCdoDefinition();
24 | ///
25 | /// 请求默认值
26 | ///
27 | void RequestDefaultValue();
28 | ///
29 | /// 请求字段
30 | ///
31 | ///
32 | ///
33 | ICsiRequestField RequestField(string fieldName);
34 | ///
35 | /// 请求字段定义
36 | ///
37 | void RequestFieldDefinition();
38 | ///
39 | /// 请求数据集合
40 | ///
41 | /// 索引
42 | /// 字段名
43 | /// CDO类型
44 | ///
45 | ICsiRequestField RequestListItemByIndex(int index, string fieldName, string cdoTypeName);
46 | ///
47 | /// 请求数据集合
48 | ///
49 | /// 名称
50 | /// 字段名
51 | /// CDO类型
52 | ///
53 | ICsiRequestField RequestListItemByName(string name, string fieldName, string cdoTypeName);
54 | ///
55 | /// 请求选择的数据值
56 | ///
57 | void RequestSelectionValues();
58 | ///
59 | /// 请求选择的数据值
60 | ///
61 | ///
62 | ICsiRequestSelectionValuesEx RequestSelectionValuesEx();
63 | ///
64 | /// 请求用户定义字段的定义
65 | ///
66 | void RequestUserDefinedFieldDefinitions();
67 | ///
68 | /// 请求用户定义字段
69 | ///
70 | void RequestUserDefinedFields();
71 | ///
72 | /// 设置数据格式化模式
73 | ///
74 | ///
75 | void SetSerializationMode(Enum.SerializationModes mode);
76 | }
77 | }
--------------------------------------------------------------------------------
/InterFace/ICsiRequestSelectionValuesEx.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 请求扩展
5 | ///
6 | public interface ICsiRequestSelectionValuesEx : ICsiXmlElement
7 | {
8 | ///
9 | /// 清空参数
10 | ///
11 | void ClearParameters();
12 | ///
13 | /// 创建查询参数
14 | ///
15 | ///
16 | ICsiQueryParameters CreateQueryParameters();
17 | ///
18 | /// 请求记录数量
19 | ///
20 | ///
21 | bool GetRequestRecordCount();
22 | ///
23 | /// 获取结果数
24 | ///
25 | ///
26 | long GetResultsetSize();
27 | ///
28 | /// 开始行
29 | ///
30 | ///
31 | long GetStartRow();
32 | ///
33 | /// 设置参数
34 | ///
35 | /// 名称
36 | /// 值
37 | void SetParameter(string name, string val);
38 | ///
39 | /// 设置请求记录的数量
40 | ///
41 | ///
42 | void SetRequestRecordCount(bool val);
43 | ///
44 | /// 设置结果数量
45 | ///
46 | ///
47 | void SetResultsetSize(long size);
48 | ///
49 | /// 设置开始行
50 | ///
51 | ///
52 | void SetStartRow(long startRow);
53 | }
54 | }
--------------------------------------------------------------------------------
/InterFace/ICsiResponseData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace InSiteXmlClient4Core.InterFace
4 | {
5 | ///
6 | /// 返回数据
7 | ///
8 | public interface ICsiResponseData : ICsiXmlElement
9 | {
10 | ///
11 | /// 获取返回字段
12 | ///
13 | /// 名称
14 | ///
15 | ICsiField GetResponseFieldByName(string fieldName);
16 | ///
17 | /// 获取返回字段
18 | ///
19 | ///
20 | Array GetResponseFields();
21 | ///
22 | /// 获取会话数据
23 | ///
24 | ///
25 | ICsiSubentity GetSessionValues();
26 | }
27 | }
--------------------------------------------------------------------------------
/InterFace/ICsiRevisionedObject.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | public interface ICsiRevisionedObject : ICsiObject, ICsiField, ICsiXmlElement
4 | {
5 | ///
6 | ///
7 | ///
8 | ///
9 | string GetName();
10 | ///
11 | /// 获取参数
12 | ///
13 | /// 名称
14 | /// 版本
15 | /// 默认版本
16 | void GetRef(out string name, out string revision, out bool useRor);
17 | ///
18 | /// 版本
19 | ///
20 | ///
21 | string GetRevision();
22 | ///
23 | /// 默认版本
24 | ///
25 | ///
26 | bool GetUseRor();
27 | ///
28 | /// 设置参数
29 | ///
30 | /// 名称
31 | /// 版本
32 | /// 默认版本
33 | void SetRef(string name, string revision, bool useRor);
34 | }
35 | }
--------------------------------------------------------------------------------
/InterFace/ICsiRevisionedObjectList.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// RO 集合
5 | ///
6 | public interface ICsiRevisionedObjectList : ICsiObjectList, ICsiList, ICsiField, ICsiXmlElement
7 | {
8 | ///
9 | /// 添加
10 | ///
11 | ///
12 | ///
13 | ///
14 | ///
15 | ICsiRevisionedObject AppendItem(string name, string revision, bool useRor);
16 | ///
17 | /// 更新
18 | ///
19 | /// 索引
20 | ///
21 | ICsiRevisionedObject ChangeItemByIndex(int index);
22 | ///
23 | /// 更新
24 | ///
25 | /// 名称
26 | /// 版本
27 | /// 默认版本
28 | ///
29 | ICsiRevisionedObject ChangeItemByRef(string name, string revision, bool useRor);
30 | ///
31 | /// 删除
32 | ///
33 | /// 名称
34 | /// 版本
35 | /// 默认版本
36 | void DeleteItemByRef(string name, string revision, bool useRor);
37 | ///
38 | /// 获取RO
39 | ///
40 | /// 索引
41 | ///
42 | ICsiRevisionedObject GetItemByIndex(int index);
43 | ///
44 | /// 获取项
45 | ///
46 | /// 名称
47 | /// 版本
48 | /// 是否默认版本
49 | ///
50 | ICsiRevisionedObject GetItemByRef(string name, string revision, bool useRor);
51 | }
52 | }
--------------------------------------------------------------------------------
/InterFace/ICsiSelectionValue.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 选择的值
5 | ///
6 | public interface ICsiSelectionValue : ICsiXmlElement
7 | {
8 | ///
9 | /// 显示名称
10 | ///
11 | ///
12 | string GetDisplayName();
13 | ///
14 | /// 值
15 | ///
16 | ///
17 | string GetValue();
18 | }
19 | }
--------------------------------------------------------------------------------
/InterFace/ICsiSelectionValues.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace InSiteXmlClient4Core.InterFace
4 | {
5 | public interface ICsiSelectionValues : ICsiXmlElement
6 | {
7 | Array GetAllSelectionValues();
8 | ICsiSelectionValue GetSelectionValueByName(string name);
9 | }
10 | }
--------------------------------------------------------------------------------
/InterFace/ICsiSelectionValuesEx.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 祖安泽值扩展
5 | ///
6 | public interface ICsiSelectionValuesEx : ICsiXmlElement
7 | {
8 | ///
9 | /// 记录量
10 | ///
11 | ///
12 | long GetRecordCount();
13 | ///
14 | /// 获取记录集
15 | ///
16 | ///
17 | ICsiRecordset GetRecordset();
18 | ///
19 | /// 获取记录集头部
20 | ///
21 | ///
22 | ICsiRecordsetHeader GetRecordsetHeader();
23 | }
24 | }
--------------------------------------------------------------------------------
/InterFace/ICsiService.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 服务
5 | ///
6 | public interface ICsiService : ICsiObject, ICsiField, ICsiXmlElement
7 | {
8 | ///
9 | /// 错误数据
10 | ///
11 | ///
12 | ICsiExceptionData ExceptionData();
13 | ///
14 | /// 获取时间
15 | ///
16 | ///
17 | string GetUtcOffset();
18 | ///
19 | /// 输入数据
20 | ///
21 | ///
22 | ICsiObject InputData();
23 | ///
24 | /// 请求数据
25 | ///
26 | ///
27 | ICsiRequestData RequestData();
28 | ///
29 | /// 返回数据
30 | ///
31 | ///
32 | ICsiResponseData ResponseData();
33 | ///
34 | /// 服务类型名称
35 | ///
36 | ///
37 | string ServiceTypeName();
38 | ///
39 | /// 设置执行
40 | ///
41 | void SetExecute();
42 | ///
43 | /// 设置时间
44 | ///
45 | ///
46 | void SetUtcOffset(string offset);
47 | ///
48 | /// 使用操作GUID
49 | ///
50 |
51 | bool UseTxnGuid { set; }
52 | }
53 | }
--------------------------------------------------------------------------------
/InterFace/ICsiSession.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 会话
5 | ///
6 | public interface ICsiSession
7 | {
8 | ///
9 | /// 创建文档
10 | ///
11 | ///
12 | ///
13 | ICsiDocument CreateDocument(string name);
14 | ///
15 | /// 查找文档
16 | ///
17 | ///
18 | ///
19 | ICsiDocument FindDocument(string name);
20 | ///
21 | /// 删除文档
22 | ///
23 | ///
24 | void RemoveDocument(string name);
25 | ///
26 | /// 会话ID
27 | ///
28 |
29 | string SessionId { get; set; }
30 | }
31 | }
--------------------------------------------------------------------------------
/InterFace/ICsiSubentity.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 子字段
5 | ///
6 | public interface ICsiSubentity : ICsiObject, ICsiField, ICsiXmlElement
7 | {
8 | ///
9 | /// 获取父级信息
10 | ///
11 | ///
12 | ICsiParentInfo GetParentInfo();
13 | ///
14 | /// 父级信息
15 | ///
16 | ///
17 | ICsiParentInfo ParentInfo();
18 | ///
19 | /// 设置父级
20 | ///
21 | ///
22 | void SetParentId(string id);
23 | }
24 | }
--------------------------------------------------------------------------------
/InterFace/ICsiSubentityList.cs:
--------------------------------------------------------------------------------
1 | namespace InSiteXmlClient4Core.InterFace
2 | {
3 | ///
4 | /// 子集合
5 | ///
6 | public interface ICsiSubentityList : ICsiObjectList, ICsiList, ICsiField, ICsiXmlElement
7 | {
8 | ///
9 | /// 添加
10 | ///
11 | ///
12 | ICsiSubentity AppendItem();
13 | ///
14 | /// 更改
15 | ///
16 | /// 索引
17 | ///
18 | ICsiSubentity ChangeItemByIndex(int index);
19 | ///
20 | /// 获取
21 | ///
22 | /// 索引
23 | ///
24 | ICsiSubentity GetItemByIndex(int index);
25 | ///
26 | /// 不设置ListAction
27 | ///
28 | ///
29 | ICsiSubentity Item();
30 | }
31 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # InSiteXmlClient4Core
2 | 工作原因经常使用camstar的 InsiteXMLClient类库做二次开发,但是只能在4.X环境下使用,对于日益繁荣的.net core生态,花费了些时间把原有的类库重新封装为.net core 类库,并在实际环境中测试通过。
3 |
4 | 1.类库不再使用camstar的命名方式,接口统一以I开头
5 |
6 | 2.把原有的依赖库,统一集成到一个类库里面
7 |
8 | 3.重新封装了调用过程(CamstarCommon类),使得调用API更为简单
9 |
10 | 4.添加扩展方法(CamstarCommonEx类),给DataField赋值不用再转换为string类型
11 |
12 | 使用方式
13 | var client=new CamstarCommon("192.168.1.50",2881,"admin","admin");
14 |
15 |
16 | 使用start服务
17 |
18 |
19 | var common = new CamstarCommon("192.168.1.50",2881,"admin","admin");
20 |
21 | common.CreateService("LotStart");
22 |
23 | var inputdata = common.InputData();
24 |
25 | inputdata.DataField("AutoPrepare").SetValue(false);
26 |
27 | inputdata.DataField("AutoSetNewLotId").SetValue(false);
28 |
29 | inputdata.DataField("ComputerName").SetValue(model.ComputerName);
30 |
31 | inputdata.DataField("ContainerName").SetValue(model.ContainerName);
32 |
33 | inputdata.DataField("CycleTime").SetValue(1);
34 |
35 | inputdata.DataField("ExpectedStartDate").SetValue(DateTime.Now);
36 |
37 | inputdata.NamedObjectField("Factory").SetRef(model.Factory);
38 |
39 | inputdata.DataField("IsEShip").SetValue(false);
40 |
41 | inputdata.NamedSubentityField("FirstWIPStep").SetName(model.FirstWIPStep);
42 |
43 | inputdata.RevisionedObjectField("FirstWIPStepWorkflow")
44 |
45 | .SetRef(model.Product.Name, model.Product.Revision, false);
46 |
47 | inputdata.NamedObjectField("Owner").SetRef(model.Owner);
48 |
49 | inputdata.RevisionedObjectField("Product").SetRef(model.Product.Name, model.Product.Revision, false);
50 |
51 | inputdata.DataField("Qty").SetValue(model.Qty);
52 |
53 | inputdata.DataField("Qty2").SetValue(model.Qty2);
54 |
55 | inputdata.DataField("Qty3").SetValue(model.Qty3);
56 |
57 | inputdata.NamedObjectField("UOM").SetRef(model.UOM);
58 |
59 | inputdata.NamedObjectField("UOM2").SetRef(model.UOM2);
60 |
61 | inputdata.NamedObjectField("UOM3").SetRef(model.UOM3);
62 |
63 | inputdata.RevisionedObjectField("ProcessSpec").SetRef(model.Product.Name, model.Product.Revision, false);
64 |
65 | inputdata.DataField("AutoPrepare").SetValue("true");
66 |
67 | inputdata.DataField("ComputerName").SetValue(model.ComputerName);
68 |
69 | inputdata.NamedObjectField("Employee").SetRef(model.Employee);
70 |
71 | inputdata.NamedObjectField("MfgOrder").SetRef(model.MfgOrder);
72 |
73 | inputdata.RevisionedObjectField("Workflow").SetRef(model.Workflow.Name, model.Workflow.Revision, false);
74 |
75 | var step = inputdata.NamedSubentityField("WorkFlowStep");
76 |
77 | step.SetName(model.WorkflowStep);
78 |
79 | step.ParentInfo().SetRevisionedObjectRef(model.Workflow.Name, model.Workflow.Revision, false);
80 |
81 | inputdata.NamedObjectField("StartReason").SetRef(model.StartReason);
82 |
83 | inputdata.NamedObjectField("PriorityCode").SetRef(model.PriorityCode);
84 |
85 | inputdata.DataField("SalesOrderNumber").SetValue(model.SalesOrder);
86 |
87 | inputdata.DataField("fpBarCode").SetValue(model.fpBarCode);
88 |
89 | inputdata.NamedObjectField("Level").SetRef(model.Level);
90 |
91 | inputdata.DataField("fpKey").SetValue(model.fpKey);
92 |
93 | var wafers = inputdata.SubentityList("Wafers");
94 |
95 | foreach (var wafer in model.Wafers)
96 | {
97 |
98 | var item = wafers.AppendItem();
99 |
100 | item.DataField("Qty").SetValue(wafer.Qty);
101 |
102 | item.DataField("Qty2").SetValue(wafer.Qty2);
103 |
104 | item.DataField("NDPW").SetValue(wafer.Qty);
105 |
106 | item.DataField("Qty3").SetValue(wafer.Qty3);
107 |
108 | item.DataField("WaferNumber").SetValue(wafer.WaferNumber);
109 |
110 | item.DataField("WaferScribeNumber").SetValue(wafer.WaferNumber);
111 |
112 | item.DataField("RequireTracking").SetValue("True");
113 |
114 | }
115 |
116 | return await common.ExecuteResultAsync();
117 |
118 | #20210206更新
119 |
120 | 1.添加单元测试项目
121 |
122 | 2.添加了nameobject revsionObject的change 和new 方法 ,具体使用请看单元测试项目
123 |
124 | 3.添加了接口ICsiSelectionValue和ICsiSelectionValuesEx接口的实现类型CsiSelectionValue CsiSelectionValuesEx
125 |
126 | 4.更新nuget包为1.0.4版本
127 |
128 | 可进行打赏,付费进行camstar API 咨询
129 | | | |
130 | |--|--|
131 | | | |
132 |
--------------------------------------------------------------------------------
/Util/CryptUtil.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace InSiteXmlClient4Core.Util
6 | {
7 | public class CryptUtil
8 | {
9 | public const string UID = "{8700F239-6C00-43e9-BA57-F2393B34D1DA}";
10 |
11 | private CryptUtil()
12 | {
13 | }
14 |
15 | public static string Encrypt(string fieldData)
16 | {
17 | string str = (string)null;
18 | if (fieldData != null)
19 | str = new RC2StringProvider().Encrypt("{8700F239-6C00-43e9-BA57-F2393B34D1DA}", fieldData);
20 | return str;
21 | }
22 |
23 | public static string Decrypt(string fieldData)
24 | {
25 | string str = (string)null;
26 | if (fieldData != null)
27 | str = new RC2StringProvider().Decrypt("{8700F239-6C00-43e9-BA57-F2393B34D1DA}", fieldData);
28 | return str;
29 | }
30 |
31 | public static void Encrypt(object fieldObj)
32 | {
33 | if (fieldObj == null)
34 | return;
35 | ServiceObject serviceObject = new ServiceObject(fieldObj);
36 | string data = serviceObject.GetValue("__encrypted") as string;
37 | if (!StringUtil.IsEmptyString(data) && data == "false")
38 | {
39 | serviceObject.SetValue("__encrypted", (object)"true");
40 | string strMessage = serviceObject.GetValue("Value") as string;
41 | RC2StringProvider rc2StringProvider = new RC2StringProvider();
42 | serviceObject.SetValue("Value", (object)rc2StringProvider.Encrypt("{8700F239-6C00-43e9-BA57-F2393B34D1DA}", strMessage));
43 | }
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Util/LogHelper.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using Microsoft.Extensions.Logging;
5 |
6 | namespace InSiteXmlClient4Core.Util
7 | {
8 | public static class LogHelper
9 | {
10 | public static void Error(string msg)
11 | {
12 |
13 | ILogger logger = new LoggerFactory() .CreateLogger();
14 | logger.LogError(msg);
15 | }
16 | public static void Information(string msg)
17 | {
18 |
19 | ILogger logger = new LoggerFactory().CreateLogger();
20 | logger.LogInformation(msg);
21 | }
22 | public static void Warning(string msg)
23 | {
24 |
25 | ILogger logger = new LoggerFactory().CreateLogger();
26 | logger.LogWarning(msg);
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/Util/RC2StringProvider.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Globalization;
4 | using System.IO;
5 | using System.Security.Cryptography;
6 | using System.Text;
7 |
8 | namespace InSiteXmlClient4Core.Util
9 | {
10 |
11 | public class RC2StringProvider
12 | {
13 | private const string cCSPNAME = "Microsoft Base Cryptographic Provider v1.0";
14 | private const string cHASHNAME = "MD5";
15 | private const string cALGNAME = "RC2";
16 |
17 | public string Encrypt(string strPassword, string strMessage)
18 | {
19 | ///linux 不能使用Microsoft Base Cryptographic Provider v1.0 加密 固定返回
20 | return "fb239b54a07d2fbc10551b4a56315bd4843bef9b6ce3b7bd";
21 | //CspParameters cspParams = new CspParameters(1, "Microsoft Base Cryptographic Provider v1.0");
22 | //PasswordDeriveBytes passwordDeriveBytes = new PasswordDeriveBytes(strPassword, (byte[])null, "MD5", 1, cspParams);
23 | //byte[] rgbIV = new byte[8];
24 | //byte[] numArray = passwordDeriveBytes.CryptDeriveKey("RC2", "MD5", 0, rgbIV);
25 | //RC2CryptoServiceProvider cryptoServiceProvider = new RC2CryptoServiceProvider();
26 | //cryptoServiceProvider.Key = numArray;
27 | //cryptoServiceProvider.IV = rgbIV;
28 | //byte[] bytes = new UnicodeEncoding().GetBytes(strMessage);
29 | //ICryptoTransform encryptor = cryptoServiceProvider.CreateEncryptor();
30 | //MemoryStream memoryStream = new MemoryStream();
31 | //CryptoStream cryptoStream = new CryptoStream((Stream)memoryStream, encryptor, CryptoStreamMode.Write);
32 | //cryptoStream.Write(bytes, 0, bytes.Length);
33 | //cryptoStream.FlushFinalBlock();
34 | //byte[] array = memoryStream.ToArray();
35 | //cryptoStream.Close();
36 | //return this.ConvertToHex(array);
37 | }
38 |
39 | public string Decrypt(string strPassword, string strMessage)
40 | {
41 | if (string.IsNullOrEmpty(strMessage))
42 | return (string)null;
43 | CspParameters cspParams = new CspParameters(1, "Microsoft Base Cryptographic Provider v1.0");
44 | PasswordDeriveBytes passwordDeriveBytes = new PasswordDeriveBytes(strPassword, (byte[])null, "MD5", 1, cspParams);
45 | byte[] rgbIV = new byte[8];
46 | byte[] numArray = passwordDeriveBytes.CryptDeriveKey("RC2", "MD5", 0, rgbIV);
47 | RC2CryptoServiceProvider cryptoServiceProvider = new RC2CryptoServiceProvider();
48 | cryptoServiceProvider.Key = numArray;
49 | cryptoServiceProvider.IV = rgbIV;
50 | byte[] buffer = this.ConvertFromHex(strMessage);
51 | ICryptoTransform decryptor = cryptoServiceProvider.CreateDecryptor();
52 | MemoryStream memoryStream = new MemoryStream(buffer.Length);
53 | CryptoStream cryptoStream = new CryptoStream((Stream)memoryStream, decryptor, CryptoStreamMode.Read);
54 | memoryStream.Write(buffer, 0, buffer.Length);
55 | memoryStream.Position = 0L;
56 | string end = new StreamReader((Stream)cryptoStream, Encoding.Unicode).ReadToEnd();
57 | cryptoStream.Close();
58 | return end;
59 | }
60 |
61 | private string ConvertToHex(byte[] EncMsg)
62 | {
63 | string str = "";
64 | int length = EncMsg.Length;
65 | if (length > 0)
66 | {
67 | for (long index = 0; index < (long)length; ++index)
68 | str += EncMsg[index].ToString("x").PadLeft(2, '0');
69 | }
70 | // str = "fb239b54a07d2fbc10551b4a56315bd4843bef9b6ce3b7bd";
71 | return str;
72 | }
73 |
74 | private byte[] ConvertFromHex(string HexString)
75 | {
76 | if (HexString == null || HexString.Length == 0)
77 | return (byte[])null;
78 | int length = HexString.Length / 2;
79 | byte[] numArray = new byte[length];
80 | for (int index = 0; index < length; ++index)
81 | {
82 | string s = HexString.Substring(index * 2, 2);
83 | try
84 | {
85 | numArray[index] = (byte)int.Parse(s, NumberStyles.HexNumber);
86 | }
87 | catch (FormatException ex)
88 | {
89 | throw new CryptographicException("Input parameter was not a valid hex-encoded string", (Exception)ex);
90 | }
91 | }
92 | return numArray;
93 | }
94 | }
95 | }
96 |
--------------------------------------------------------------------------------
/obj/Debug/AssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/AssemblyReference.cache
--------------------------------------------------------------------------------
/obj/Debug/InSiteXmlClient4Core.1.0.0.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | InSiteXmlClient4Core
5 | 1.0.0
6 | 李德镇
7 | 李德镇
8 | false
9 | 兴森快捷MES系统API交互库,用于连接Camstar MES系统,使用在.net core 平台
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/obj/Debug/InSiteXmlClient4Core.1.0.1.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | InSiteXmlClient4Core
5 | 1.0.1
6 | 李德镇
7 | 李德镇
8 | false
9 | 兴森快捷MES系统API交互库,用于连接Camstar MES系统,使用在.net core 平台
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.0/InSiteXmlClient4Core.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | fa2f52c88ad5c8bf092bae57dfcc9b68ef5bed0b
2 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.0/InSiteXmlClient4Core.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.0/InSiteXmlClient4Core.assets.cache
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.0/InSiteXmlClient4Core.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 42179bdb705d1adfce7c8141fc6c4f8889ef1ed7
2 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.0/InSiteXmlClient4Core.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Debug\netcoreapp2.0\InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
2 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Debug\netcoreapp2.0\InSiteXmlClient4Core.AssemblyInfoInputs.cache
3 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Debug\netcoreapp2.0\InSiteXmlClient4Core.AssemblyInfo.cs
4 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\bin\Debug\netcoreapp2.0\InSiteXmlClient4Core.deps.json
5 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\bin\Debug\netcoreapp2.0\InSiteXmlClient4Core.dll
6 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\bin\Debug\netcoreapp2.0\InSiteXmlClient4Core.pdb
7 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Debug\netcoreapp2.0\InSiteXmlClient4Core.dll
8 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Debug\netcoreapp2.0\InSiteXmlClient4Core.pdb
9 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System;
12 | using System.Reflection;
13 |
14 | [assembly: System.Reflection.AssemblyCompanyAttribute("兴森科技")]
15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("兴森快捷MES系统API交互库,用于连接Camstar MES系统,使用在.net core 平台")]
17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.1.0")]
18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.1")]
19 | [assembly: System.Reflection.AssemblyProductAttribute("InSiteXmlClient4Core")]
20 | [assembly: System.Reflection.AssemblyTitleAttribute("InSiteXmlClient4Core")]
21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.1.0")]
22 |
23 | // 由 MSBuild WriteCodeFragment 类生成。
24 |
25 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | a2de09492c3a56a4f5874e195e50cfe71766bdf8
2 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.assets.cache
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 4ce26c9ac08d448f0b2b15c5062fa6f79244c86e
2 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
2 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.AssemblyInfoInputs.cache
3 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.AssemblyInfo.cs
4 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\bin\Debug\netcoreapp2.1\InSiteXmlClient4Core.deps.json
5 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\bin\Debug\netcoreapp2.1\InSiteXmlClient4Core.dll
6 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\bin\Debug\netcoreapp2.1\InSiteXmlClient4Core.pdb
7 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.dll
8 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.pdb
9 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.csprojAssemblyReference.cache
10 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Debug\netcoreapp2.1\InSiteXmlClient4Core.deps.json
11 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Debug\netcoreapp2.1\InSiteXmlClient4Core.dll
12 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Debug\netcoreapp2.1\InSiteXmlClient4Core.pdb
13 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
14 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.AssemblyInfoInputs.cache
15 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.AssemblyInfo.cs
16 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.dll
17 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.pdb
18 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.csprojAssemblyReference.cache
19 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Debug\netcoreapp2.1\InSiteXmlClient4Core.deps.json
20 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Debug\netcoreapp2.1\InSiteXmlClient4Core.dll
21 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Debug\netcoreapp2.1\InSiteXmlClient4Core.pdb
22 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
23 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.AssemblyInfoInputs.cache
24 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.AssemblyInfo.cs
25 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.dll
26 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.pdb
27 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.1\InSiteXmlClient4Core.csprojAssemblyReference.cache
28 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.dll
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.1/InSiteXmlClient4Core.pdb
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.1/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.1/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.1/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.1/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.1/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.1/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System;
12 | using System.Reflection;
13 |
14 | [assembly: System.Reflection.AssemblyCompanyAttribute("兴森科技")]
15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("兴森快捷MES系统API交互库,用于连接Camstar MES系统,使用在.net core 平台")]
17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.1.0")]
18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.1")]
19 | [assembly: System.Reflection.AssemblyProductAttribute("InSiteXmlClient4Core")]
20 | [assembly: System.Reflection.AssemblyTitleAttribute("InSiteXmlClient4Core")]
21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.1.0")]
22 |
23 | // 由 MSBuild WriteCodeFragment 类生成。
24 |
25 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | a2de09492c3a56a4f5874e195e50cfe71766bdf8
2 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.assets.cache
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 855410487ece377603726706ddb82f85bd2126f5
2 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Debug\netcoreapp2.2\InSiteXmlClient4Core.deps.json
2 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Debug\netcoreapp2.2\InSiteXmlClient4Core.dll
3 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Debug\netcoreapp2.2\InSiteXmlClient4Core.pdb
4 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.2\InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
5 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.2\InSiteXmlClient4Core.AssemblyInfoInputs.cache
6 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.2\InSiteXmlClient4Core.AssemblyInfo.cs
7 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.2\InSiteXmlClient4Core.dll
8 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Debug\netcoreapp2.2\InSiteXmlClient4Core.pdb
9 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\bin\Debug\netcoreapp2.2\InSiteXmlClient4Core.deps.json
10 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\bin\Debug\netcoreapp2.2\InSiteXmlClient4Core.dll
11 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\bin\Debug\netcoreapp2.2\InSiteXmlClient4Core.pdb
12 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\obj\Debug\netcoreapp2.2\InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
13 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\obj\Debug\netcoreapp2.2\InSiteXmlClient4Core.AssemblyInfoInputs.cache
14 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\obj\Debug\netcoreapp2.2\InSiteXmlClient4Core.AssemblyInfo.cs
15 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\obj\Debug\netcoreapp2.2\InSiteXmlClient4Core.dll
16 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\obj\Debug\netcoreapp2.2\InSiteXmlClient4Core.pdb
17 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\obj\Debug\netcoreapp2.2\InSiteXmlClient4Core.csprojAssemblyReference.cache
18 |
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.dll
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.2/InSiteXmlClient4Core.pdb
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/obj/Debug/netcoreapp2.2/project.razor.json:
--------------------------------------------------------------------------------
1 | {
2 | "ProjectFilePath": "l:\\Users\\lidz\\Source\\Repos\\FP.MES.Web\\InSiteXmlClient4Core\\InSiteXmlClient4Core.csproj",
3 | "TargetFramework": "netcoreapp2.2",
4 | "TagHelpers": [],
5 | "Configuration": {
6 | "ConfigurationName": "UnsupportedRazor",
7 | "LanguageVersion": "1.0",
8 | "Extensions": [
9 | {
10 | "ExtensionName": "UnsupportedRazorExtension"
11 | }
12 | ]
13 | }
14 | }
--------------------------------------------------------------------------------
/obj/InSiteXmlClient4Core.csproj.nuget.cache:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1,
3 | "dgSpecHash": "74elgn9Tx64HFmJ8wdoTES0APPvtj2OkJCFYAP6x/lmLEQg28tX3HoP1o8GScZD4QimtkmtGmD7KikT6lW0Hpg==",
4 | "success": true
5 | }
--------------------------------------------------------------------------------
/obj/InSiteXmlClient4Core.csproj.nuget.g.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | True
5 | NuGet
6 | $(MSBuildThisFileDirectory)project.assets.json
7 | $(UserProfile)\.nuget\packages\
8 | C:\Users\lidezhen\.nuget\packages\;C:\Microsoft\Xamarin\NuGet\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder
9 | PackageReference
10 | 5.8.0
11 |
12 |
13 |
14 |
15 |
16 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
17 |
18 |
--------------------------------------------------------------------------------
/obj/InSiteXmlClient4Core.csproj.nuget.g.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/obj/Release/InSiteXmlClient4Core.1.0.1.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | InSiteXmlClient4Core
5 | 1.0.1
6 | 李德镇
7 | 李德镇
8 | false
9 | 兴森快捷MES系统API交互库,用于连接Camstar MES系统,使用在.net core 平台
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.0/InSiteXmlClient4Core.AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System;
12 | using System.Reflection;
13 |
14 | [assembly: System.Reflection.AssemblyCompanyAttribute("兴森科技")]
15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("兴森快捷MES系统API交互库,用于连接Camstar MES系统,使用在.net core 平台")]
17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
19 | [assembly: System.Reflection.AssemblyProductAttribute("InSiteXmlClient4Core")]
20 | [assembly: System.Reflection.AssemblyTitleAttribute("InSiteXmlClient4Core")]
21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
22 |
23 | // 由 MSBuild WriteCodeFragment 类生成。
24 |
25 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.0/InSiteXmlClient4Core.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | 6a51e4749065e3def27f96ba361296821de559f0
2 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.0/InSiteXmlClient4Core.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.0/InSiteXmlClient4Core.assets.cache
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.0/InSiteXmlClient4Core.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 42179bdb705d1adfce7c8141fc6c4f8889ef1ed7
2 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.0/InSiteXmlClient4Core.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Release\netcoreapp2.0\InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
2 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Release\netcoreapp2.0\InSiteXmlClient4Core.AssemblyInfoInputs.cache
3 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Release\netcoreapp2.0\InSiteXmlClient4Core.AssemblyInfo.cs
4 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\bin\Release\netcoreapp2.0\InSiteXmlClient4Core.deps.json
5 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\bin\Release\netcoreapp2.0\InSiteXmlClient4Core.dll
6 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\bin\Release\netcoreapp2.0\InSiteXmlClient4Core.pdb
7 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Release\netcoreapp2.0\InSiteXmlClient4Core.dll
8 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Release\netcoreapp2.0\InSiteXmlClient4Core.pdb
9 | C:\Users\lidz\Documents\Reflector\Disassembler\InSiteXmlClient4Core\obj\Release\netcoreapp2.0\InSiteXmlClient4Core.csprojResolveAssemblyReference.cache
10 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.0/InSiteXmlClient4Core.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.0/InSiteXmlClient4Core.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System;
12 | using System.Reflection;
13 |
14 | [assembly: System.Reflection.AssemblyCompanyAttribute("兴森科技")]
15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("兴森快捷MES系统API交互库,用于连接Camstar MES系统,使用在.net core 平台")]
17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.1.0")]
18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.1")]
19 | [assembly: System.Reflection.AssemblyProductAttribute("InSiteXmlClient4Core")]
20 | [assembly: System.Reflection.AssemblyTitleAttribute("InSiteXmlClient4Core")]
21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.1.0")]
22 |
23 | // 由 MSBuild WriteCodeFragment 类生成。
24 |
25 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | 6cc40bcf3dabe9fb243fc3051af0e157a8bc6ddd
2 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.assets.cache
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | aafc81c036be5c8cb529ac73dc202dd739355510
2 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Release\netcoreapp2.1\InSiteXmlClient4Core.deps.json
2 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Release\netcoreapp2.1\InSiteXmlClient4Core.dll
3 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Release\netcoreapp2.1\InSiteXmlClient4Core.pdb
4 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.1\InSiteXmlClient4Core.csprojAssemblyReference.cache
5 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.1\InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
6 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.1\InSiteXmlClient4Core.AssemblyInfoInputs.cache
7 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.1\InSiteXmlClient4Core.AssemblyInfo.cs
8 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.1\InSiteXmlClient4Core.dll
9 | C:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.1\InSiteXmlClient4Core.pdb
10 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.dll
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.1/InSiteXmlClient4Core.pdb
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.1/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.1/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.1/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.1/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.1/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.1/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System;
12 | using System.Reflection;
13 |
14 | [assembly: System.Reflection.AssemblyCompanyAttribute("兴森科技")]
15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("兴森快捷MES系统API交互库,用于连接Camstar MES系统,使用在.net core 平台")]
17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.1.0")]
18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.1")]
19 | [assembly: System.Reflection.AssemblyProductAttribute("InSiteXmlClient4Core")]
20 | [assembly: System.Reflection.AssemblyTitleAttribute("InSiteXmlClient4Core")]
21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.1.0")]
22 |
23 | // 由 MSBuild WriteCodeFragment 类生成。
24 |
25 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | 6cc40bcf3dabe9fb243fc3051af0e157a8bc6ddd
2 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.assets.cache
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 855410487ece377603726706ddb82f85bd2126f5
2 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Release\netcoreapp2.2\InSiteXmlClient4Core.deps.json
2 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Release\netcoreapp2.2\InSiteXmlClient4Core.dll
3 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\bin\Release\netcoreapp2.2\InSiteXmlClient4Core.pdb
4 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.2\InSiteXmlClient4Core.csprojAssemblyReference.cache
5 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.2\InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
6 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.2\InSiteXmlClient4Core.AssemblyInfoInputs.cache
7 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.2\InSiteXmlClient4Core.AssemblyInfo.cs
8 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.2\InSiteXmlClient4Core.dll
9 | L:\Users\lidz\Source\Repos\FP.MES.Web\InSiteXmlClient4Core\obj\Release\netcoreapp2.2\InSiteXmlClient4Core.pdb
10 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\bin\Release\netcoreapp2.2\InSiteXmlClient4Core.deps.json
11 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\bin\Release\netcoreapp2.2\InSiteXmlClient4Core.dll
12 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\bin\Release\netcoreapp2.2\InSiteXmlClient4Core.pdb
13 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\obj\Release\netcoreapp2.2\InSiteXmlClient4Core.csproj.CoreCompileInputs.cache
14 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\obj\Release\netcoreapp2.2\InSiteXmlClient4Core.AssemblyInfoInputs.cache
15 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\obj\Release\netcoreapp2.2\InSiteXmlClient4Core.AssemblyInfo.cs
16 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\obj\Release\netcoreapp2.2\InSiteXmlClient4Core.dll
17 | C:\Users\lidz\source\repos\FP.Mes\InSiteXmlClient4Core\obj\Release\netcoreapp2.2\InSiteXmlClient4Core.pdb
18 |
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.dll
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.2/InSiteXmlClient4Core.pdb
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.2/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.2/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.2/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.2/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/obj/Release/netcoreapp2.2/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/307209239/InSiteXmlClient4Core/28b387609fdd37a408e8e3f4158f4cc351cdc417/obj/Release/netcoreapp2.2/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------