개정판 6348c496
dev issue #000 : Add APIDConverter project
Change-Id: Icccc2b1c05a5fe8a66f8fa4a05fe7d39ef087ebc
DTI_PID/APIDConverter/AVEVA.PID.CustomizationUtility_ACAD2018_x64.csproj | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
3 |
<PropertyGroup> |
|
4 |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|
5 |
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|
6 |
<ProductVersion>8.0.30703</ProductVersion> |
|
7 |
<SchemaVersion>2.0</SchemaVersion> |
|
8 |
<ProjectGuid>{3D03D577-7689-46ED-829D-1152B1180706}</ProjectGuid> |
|
9 |
<OutputType>Library</OutputType> |
|
10 |
<AppDesignerFolder>Properties</AppDesignerFolder> |
|
11 |
<RootNamespace>AVEVA.PID.CustomizationUtility</RootNamespace> |
|
12 |
<AssemblyName>AVEVA.PID.CustomizationUtility</AssemblyName> |
|
13 |
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> |
|
14 |
<FileAlignment>512</FileAlignment> |
|
15 |
<SccProjectName>SAK</SccProjectName> |
|
16 |
<SccLocalPath>SAK</SccLocalPath> |
|
17 |
<SccAuxPath>SAK</SccAuxPath> |
|
18 |
<SccProvider>SAK</SccProvider> |
|
19 |
<TargetFrameworkProfile /> |
|
20 |
</PropertyGroup> |
|
21 |
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> |
|
22 |
<DebugSymbols>true</DebugSymbols> |
|
23 |
<OutputPath>C:\Program Files\AVEVA\P&ID 12.2.SP1\Install\Exe\</OutputPath> |
|
24 |
<DefineConstants>DEBUG;TRACE</DefineConstants> |
|
25 |
<DebugType>full</DebugType> |
|
26 |
<PlatformTarget>x64</PlatformTarget> |
|
27 |
<ErrorReport>prompt</ErrorReport> |
|
28 |
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> |
|
29 |
</PropertyGroup> |
|
30 |
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> |
|
31 |
<OutputPath>bin\Release\</OutputPath> |
|
32 |
<DefineConstants>TRACE</DefineConstants> |
|
33 |
<Optimize>true</Optimize> |
|
34 |
<DebugType>pdbonly</DebugType> |
|
35 |
<PlatformTarget>x64</PlatformTarget> |
|
36 |
<ErrorReport>prompt</ErrorReport> |
|
37 |
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> |
|
38 |
</PropertyGroup> |
|
39 |
<ItemGroup> |
|
40 |
<Reference Include="accoremgd"> |
|
41 |
<HintPath>C:\Program Files\Autodesk\AutoCAD 2018\accoremgd.dll</HintPath> |
|
42 |
</Reference> |
|
43 |
<Reference Include="acdbmgd"> |
|
44 |
<HintPath>C:\Program Files\Autodesk\AutoCAD 2018\acdbmgd.dll</HintPath> |
|
45 |
</Reference> |
|
46 |
<Reference Include="acmgd"> |
|
47 |
<HintPath>C:\Program Files\Autodesk\AutoCAD 2018\acmgd.dll</HintPath> |
|
48 |
</Reference> |
|
49 |
<Reference Include="Autodesk.AutoCAD.Interop"> |
|
50 |
<HintPath>C:\Program Files\Autodesk\AutoCAD 2018\Autodesk.AutoCAD.Interop.dll</HintPath> |
|
51 |
<EmbedInteropTypes>True</EmbedInteropTypes> |
|
52 |
</Reference> |
|
53 |
<Reference Include="Autodesk.AutoCAD.Interop.Common"> |
|
54 |
<HintPath>C:\Program Files\Autodesk\AutoCAD 2018\Autodesk.AutoCAD.Interop.Common.dll</HintPath> |
|
55 |
<EmbedInteropTypes>True</EmbedInteropTypes> |
|
56 |
</Reference> |
|
57 |
<Reference Include="Microsoft.VisualBasic" /> |
|
58 |
<Reference Include="System" /> |
|
59 |
<Reference Include="System.Core" /> |
|
60 |
<Reference Include="System.Windows.Forms" /> |
|
61 |
<Reference Include="System.Xml.Linq" /> |
|
62 |
<Reference Include="System.Data.DataSetExtensions" /> |
|
63 |
<Reference Include="System.Data" /> |
|
64 |
<Reference Include="System.Xml" /> |
|
65 |
</ItemGroup> |
|
66 |
<ItemGroup> |
|
67 |
<Compile Include="Aveva.PID.AssemblyInfo.cs" /> |
|
68 |
<Compile Include="PIDCustomization.cs" /> |
|
69 |
<Compile Include="Properties\AssemblyInfo.cs" /> |
|
70 |
<Compile Include="Utilities.cs" /> |
|
71 |
</ItemGroup> |
|
72 |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
|
73 |
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
|
74 |
Other similar extension points exist, see Microsoft.Common.targets. |
|
75 |
<Target Name="BeforeBuild"> |
|
76 |
</Target> |
|
77 |
<Target Name="AfterBuild"> |
|
78 |
</Target> |
|
79 |
--> |
|
80 |
</Project> |
DTI_PID/APIDConverter/Aveva.PID.AssemblyInfo.cs | ||
---|---|---|
1 |
using System.Reflection; |
|
2 |
using System.Runtime.CompilerServices; |
|
3 |
using System.Runtime.InteropServices; |
|
4 |
|
|
5 |
[assembly: AssemblyCompany("AVEVA Solutions Limited")] |
|
6 |
[assembly: AssemblyProduct("AVEVA P&ID")] |
|
7 |
[assembly: AssemblyCopyright("Copyright 2015 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.")] |
|
8 |
[assembly: AssemblyTrademark("")] |
|
9 |
[assembly: AssemblyCulture("")] |
|
10 |
[assembly: AssemblyVersion("12.1.3.4")] |
|
11 |
[assembly: AssemblyFileVersion("12.1.3.4")] |
DTI_PID/APIDConverter/PIDCustomization.cs | ||
---|---|---|
1 |
#region namespaces |
|
2 |
using System; |
|
3 |
using System.Collections.Generic; |
|
4 |
using System.Configuration; |
|
5 |
using System.Data; |
|
6 |
using System.Data.Common; |
|
7 |
using System.Data.SqlClient; |
|
8 |
using System.IO; |
|
9 |
using System.Linq; |
|
10 |
using System.Runtime.InteropServices; |
|
11 |
using System.Text; |
|
12 |
using System.Threading; |
|
13 |
using System.Windows.Forms; |
|
14 |
using Autodesk.AutoCAD.ApplicationServices; |
|
15 |
using Autodesk.AutoCAD.DatabaseServices; |
|
16 |
using Autodesk.AutoCAD.EditorInput; |
|
17 |
using Autodesk.AutoCAD.Geometry; |
|
18 |
using Autodesk.AutoCAD.Interop; |
|
19 |
using Autodesk.AutoCAD.Interop.Common; |
|
20 |
using Autodesk.AutoCAD.Runtime; |
|
21 |
using Autodesk.AutoCAD.Windows; |
|
22 |
using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application; |
|
23 |
#endregion using namespaces |
|
24 |
namespace AVEVA.PID.CustomizationUtility |
|
25 |
{ |
|
26 |
/// <summary> |
|
27 |
/// Singleton class used for customization of P&ID application |
|
28 |
/// </summary> |
|
29 |
public class PIDCustomization |
|
30 |
{ |
|
31 |
public string ProjectName { get; set; } |
|
32 |
public string DrawingID { get; set; } |
|
33 |
public string DrawingName { get; set; } |
|
34 |
public string MajorRevision { get; set; } |
|
35 |
public string MinorRevision { get; set; } |
|
36 |
public string Description { get; set; } |
|
37 |
public string NameOfUser { get; set; } |
|
38 |
public string ClientDwgNo { get; set; } |
|
39 |
public string RevisedBy { get; set; } |
|
40 |
public string CheckedBy { get; set; } |
|
41 |
public string ApprovedBy { get; set; } |
|
42 |
public string ApprovedBy2 { get; set; } |
|
43 |
public string ApprovedBy3 { get; set; } |
|
44 |
public string ClientApprovedBy { get; set; } |
|
45 |
public byte[] DrawingData { get; set; } |
|
46 |
|
|
47 |
private static PIDCustomization _instance; |
|
48 |
/// <summary> |
|
49 |
/// private Constructor make it singleton |
|
50 |
/// </summary> |
|
51 |
private PIDCustomization() |
|
52 |
{ |
|
53 |
DrawingData = null; |
|
54 |
} |
|
55 |
|
|
56 |
public static PIDCustomization GetInstance() |
|
57 |
{ |
|
58 |
if (_instance == null) |
|
59 |
{ |
|
60 |
_instance = new PIDCustomization(); |
|
61 |
} |
|
62 |
return _instance; |
|
63 |
} |
|
64 |
|
|
65 |
/// <summary> |
|
66 |
/// Public method called on issue drawing in P&ID |
|
67 |
/// </summary> |
|
68 |
/// <param name="strRecordId">unique database table id for revision</param> |
|
69 |
public void ProcessIssueDrawing(string strRecordId) |
|
70 |
{ |
|
71 |
if (!string.IsNullOrEmpty(strRecordId)) |
|
72 |
{ |
|
73 |
ReadDrawingDetails(strRecordId); |
|
74 |
SaveBinaryDrawing(); |
|
75 |
} |
|
76 |
} |
|
77 |
|
|
78 |
/// <summary> |
|
79 |
/// public method used for processing block |
|
80 |
/// </summary> |
|
81 |
/// <param name="BlockId"></param> |
|
82 |
public void ProcessBlock(ObjectId BlockId) |
|
83 |
{ |
|
84 |
SetColorForEntity(BlockId,0);// white color |
|
85 |
} |
|
86 |
|
|
87 |
/// <summary> |
|
88 |
/// This is test command which gives the idea regarding selection of an entity and assigning different color to it |
|
89 |
/// </summary> |
|
90 |
[CommandMethod("TestS", Autodesk.AutoCAD.Runtime.CommandFlags.UsePickSet)] |
|
91 |
public static void TestSelection() |
|
92 |
{ |
|
93 |
// Get the current document and database, and start a transaction |
|
94 |
Document acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument; |
|
95 |
Database acCurDb = acDoc.Database; |
|
96 |
Editor acDocEd = acDoc.Editor; |
|
97 |
|
|
98 |
// Request for objects to be selected in the drawing area |
|
99 |
PromptSelectionResult acSSPrompt = acDocEd.GetSelection(); |
|
100 |
|
|
101 |
// If the prompt status is OK, objects were selected |
|
102 |
if (acSSPrompt.Status == PromptStatus.OK) |
|
103 |
{ |
|
104 |
ObjectId[] selectedObjectIds = acSSPrompt.Value.GetObjectIds(); |
|
105 |
// Get the last selected entity |
|
106 |
|
|
107 |
if (selectedObjectIds.Length > 0) |
|
108 |
{ |
|
109 |
ObjectId objIdBlock = selectedObjectIds[0]; |
|
110 |
using (Transaction acTrans = acCurDb.TransactionManager.StartTransaction()) |
|
111 |
{ |
|
112 |
DBObject objDB = acTrans.GetObject(objIdBlock, OpenMode.ForRead, true); |
|
113 |
if (objDB != null) |
|
114 |
{ |
|
115 |
// check if the selected entity is of Type BlockReference |
|
116 |
if (objDB.GetType() == typeof(BlockReference)) |
|
117 |
{ |
|
118 |
// open an entity in write mode so that we can modify its color |
|
119 |
Entity objDb = (Entity)acTrans.GetObject(objIdBlock, OpenMode.ForWrite); |
|
120 |
if (objDb != null) |
|
121 |
{ |
|
122 |
objDb.ColorIndex = 0;// white color |
|
123 |
} |
|
124 |
} |
|
125 |
} |
|
126 |
acTrans.Commit(); |
|
127 |
} |
|
128 |
} |
|
129 |
} |
|
130 |
} |
|
131 |
|
|
132 |
#region private methods |
|
133 |
private string SaveBinaryDrawing() |
|
134 |
{ |
|
135 |
FileStream fs = null; |
|
136 |
string strDrawing = string.Empty; |
|
137 |
try |
|
138 |
{ |
|
139 |
if (!string.IsNullOrEmpty(this.DrawingName)) |
|
140 |
{ |
|
141 |
string strDrawingname = this.DrawingName; |
|
142 |
//if(!string.IsNullOrEmpty(this.MajorRevision)) |
|
143 |
//{ |
|
144 |
// strDrawingname = strDrawingname + "_" + this.MajorRevision; |
|
145 |
//} |
|
146 |
|
|
147 |
byte[] drawingData = this.DrawingData; |
|
148 |
if (null != drawingData) |
|
149 |
{ |
|
150 |
try |
|
151 |
{ |
|
152 |
if (File.Exists(strDrawingname) == true) |
|
153 |
{ |
|
154 |
Microsoft.VisualBasic.FileSystem.Kill(strDrawingname); |
|
155 |
} |
|
156 |
} |
|
157 |
catch (System.Exception ) |
|
158 |
{ |
|
159 |
} |
|
160 |
|
|
161 |
strDrawing = strDrawingname; |
|
162 |
string path = GetDrawingSavePath(); |
|
163 |
if (!string.IsNullOrEmpty(path)) |
|
164 |
{ |
|
165 |
strDrawing = path + "\\" + strDrawingname; |
|
166 |
} |
|
167 |
strDrawing += ".dwg"; |
|
168 |
|
|
169 |
fs = new FileStream(strDrawing, FileMode.Create, FileAccess.Write); |
|
170 |
int ArraySize = new int(); |
|
171 |
ArraySize = drawingData.GetUpperBound(0); |
|
172 |
fs.Write(drawingData, 0, ArraySize); |
|
173 |
} |
|
174 |
} |
|
175 |
} |
|
176 |
catch (System.Exception ) |
|
177 |
{ } |
|
178 |
finally |
|
179 |
{ |
|
180 |
if (fs != null) |
|
181 |
fs.Close(); |
|
182 |
} |
|
183 |
return strDrawing; |
|
184 |
} |
|
185 |
|
|
186 |
private void ReadDrawingDetails(string strRecordId) |
|
187 |
{ |
|
188 |
SqlConnection connection = null; |
|
189 |
try |
|
190 |
{ |
|
191 |
int ID = 0; |
|
192 |
int.TryParse(strRecordId, out ID); |
|
193 |
if (ID > 0) |
|
194 |
{ |
|
195 |
connection = new SqlConnection(); |
|
196 |
connection.ConnectionString = GetConnectionString_Reports(); // GetConnectionString(); |
|
197 |
connection.Open(); |
|
198 |
|
|
199 |
string strQry = "Select * from SynchroniseDetails where ID = " + ID; |
|
200 |
SqlCommand cmd = new SqlCommand(); |
|
201 |
cmd.Connection = connection; |
|
202 |
cmd.CommandText = strQry; |
|
203 |
cmd.CommandType = CommandType.Text; |
|
204 |
SqlDataReader reader = cmd.ExecuteReader(); |
|
205 |
|
|
206 |
if (null != reader && reader.HasRows) |
|
207 |
{ |
|
208 |
while (reader.Read()) |
|
209 |
{ |
|
210 |
ProjectName = reader["ProjectName"].ToString(); |
|
211 |
DrawingID = reader["DrawingId"].ToString(); |
|
212 |
DrawingName = reader["DrawingName"].ToString(); |
|
213 |
MajorRevision = reader["Revision"].ToString(); |
|
214 |
MinorRevision = reader["MinorRevision"].ToString(); |
|
215 |
Description = reader["Description"].ToString(); |
|
216 |
NameOfUser = reader["NameOfUser"].ToString(); |
|
217 |
ClientDwgNo = reader["ClientDwgNo"].ToString(); |
|
218 |
RevisedBy = reader["RevisedBy"].ToString(); |
|
219 |
CheckedBy = reader["CheckedBy"].ToString(); |
|
220 |
ApprovedBy = reader["ApprovedBy"].ToString(); |
|
221 |
ApprovedBy2 = reader["ApprovedBy2"].ToString(); |
|
222 |
ApprovedBy3 = reader["ApprovedBy3"].ToString(); |
|
223 |
ClientApprovedBy= reader["ClientApprovedBy"].ToString(); |
|
224 |
DrawingData = reader["DrawingData"] != null ? (byte[])reader["DrawingData"] : null; |
|
225 |
} |
|
226 |
} |
|
227 |
} |
|
228 |
} |
|
229 |
catch (System.Exception ) |
|
230 |
{ } |
|
231 |
finally |
|
232 |
{ |
|
233 |
if (connection != null) |
|
234 |
connection.Close(); |
|
235 |
} |
|
236 |
} |
|
237 |
private string GetRecordId() |
|
238 |
{ |
|
239 |
string strRecordId = string.Empty; |
|
240 |
SqlConnection connection = null; |
|
241 |
try |
|
242 |
{ |
|
243 |
connection = new SqlConnection(); |
|
244 |
connection.ConnectionString = GetConnectionString_Reports(); // GetConnectionString(); |
|
245 |
connection.Open(); |
|
246 |
|
|
247 |
string strQry = "Select Max(ID) from SynchroniseDetails"; |
|
248 |
SqlCommand cmd = new SqlCommand(); |
|
249 |
cmd.Connection = connection; |
|
250 |
cmd.CommandText = strQry; |
|
251 |
cmd.CommandType = CommandType.Text; |
|
252 |
SqlDataReader reader = cmd.ExecuteReader(); |
|
253 |
if (null != reader && reader.HasRows) |
|
254 |
{ |
|
255 |
strRecordId = reader.GetString(0).ToString(); |
|
256 |
} |
|
257 |
} |
|
258 |
catch (System.Exception ) |
|
259 |
{ } |
|
260 |
finally |
|
261 |
{ |
|
262 |
if (connection != null) |
|
263 |
connection.Close(); |
|
264 |
} |
|
265 |
return strRecordId; |
|
266 |
} |
|
267 |
private string GetConnectionString() |
|
268 |
{ |
|
269 |
string strConn = string.Empty; |
|
270 |
if (Utilities.strSQLWinAuthentication.ToUpper() == "YES") |
|
271 |
{ |
|
272 |
strConn = String.Format("Data Source=" + Utilities.strSQLServerName + ";Integrated Security=SSPI;Initial Catalog={0};", Utilities.strSQLDatabaseName); |
|
273 |
} |
|
274 |
else if (Utilities.strSQLWinAuthentication.ToUpper() == "NO") |
|
275 |
{ |
|
276 |
string strAccessString = "User ID=" + Utilities.strSQLUserName + ";Password=" + Utilities.strSQLPassword; |
|
277 |
strConn = String.Format("Data Source=" + Utilities.strSQLServerName + ";Initial Catalog=" + Utilities.strSQLDatabaseName + ";" + strAccessString); |
|
278 |
} |
|
279 |
|
|
280 |
return strConn; |
|
281 |
} |
|
282 |
|
|
283 |
private string GetConnectionString_Reports() |
|
284 |
{ |
|
285 |
string strConn = string.Empty; |
|
286 |
if (Utilities.strSQLWinAuthentication.ToUpper() == "YES") |
|
287 |
{ |
|
288 |
strConn = String.Format("Data Source=" + Utilities.strSQLServerName + ";Integrated Security=SSPI;Initial Catalog={0};", Utilities.strSQLReportsDatabaseName); |
|
289 |
} |
|
290 |
else if (Utilities.strSQLWinAuthentication.ToUpper() == "NO") |
|
291 |
{ |
|
292 |
string strAccessString = "User ID=" + Utilities.strSQLUserName + ";Password=" + Utilities.strSQLPassword; |
|
293 |
strConn = String.Format("Data Source=" + Utilities.strSQLServerName + ";Initial Catalog=" + Utilities.strSQLReportsDatabaseName + ";" + strAccessString); |
|
294 |
} |
|
295 |
|
|
296 |
return strConn; |
|
297 |
} |
|
298 |
|
|
299 |
private string GetDrawingSavePath() |
|
300 |
{ |
|
301 |
return System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); |
|
302 |
} |
|
303 |
|
|
304 |
/// <summary> |
|
305 |
/// Sets the color of the entity |
|
306 |
/// </summary> |
|
307 |
/// <param name="objIdBlockId">block id</param> |
|
308 |
/// <param name="iColor">color to be assigned</param> |
|
309 |
private void SetColorForEntity(ObjectId objIdBlockId, short iColor) |
|
310 |
{ |
|
311 |
Transaction trans = null; |
|
312 |
try |
|
313 |
{ |
|
314 |
if (objIdBlockId != ObjectId.Null) |
|
315 |
{ |
|
316 |
Document doc = AcadApp.DocumentManager.MdiActiveDocument; |
|
317 |
Database db = HostApplicationServices.WorkingDatabase; |
|
318 |
trans = doc.TransactionManager.StartTransaction(); |
|
319 |
using (doc.LockDocument()) |
|
320 |
{ |
|
321 |
using (trans) |
|
322 |
{ |
|
323 |
if (objIdBlockId.IsErased == false) |
|
324 |
{ |
|
325 |
Entity objDb = (Entity)trans.GetObject(objIdBlockId, OpenMode.ForWrite); |
|
326 |
if (objDb != null) |
|
327 |
{ |
|
328 |
objDb.ColorIndex = iColor; |
|
329 |
} |
|
330 |
} |
|
331 |
trans.Commit(); |
|
332 |
} |
|
333 |
} |
|
334 |
} |
|
335 |
} |
|
336 |
catch (System.Exception ) |
|
337 |
{ |
|
338 |
} |
|
339 |
finally |
|
340 |
{ |
|
341 |
if (trans != null) |
|
342 |
{ |
|
343 |
trans.Dispose(); |
|
344 |
} |
|
345 |
} |
|
346 |
} |
|
347 |
#endregion |
|
348 |
} |
|
349 |
} |
DTI_PID/APIDConverter/Properties/AssemblyInfo.cs | ||
---|---|---|
1 |
using System.Reflection; |
|
2 |
using System.Runtime.CompilerServices; |
|
3 |
using System.Runtime.InteropServices; |
|
4 |
|
|
5 |
// General Information about an assembly is controlled through the following |
|
6 |
// set of attributes. Change these attribute values to modify the information |
|
7 |
// associated with an assembly. |
|
8 |
[assembly: AssemblyTitle("AVEVA.PID.CustomizationUtility")] |
|
9 |
[assembly: AssemblyDescription("")] |
|
10 |
[assembly: AssemblyConfiguration("")] |
|
11 |
|
|
12 |
// Setting ComVisible to false makes the types in this assembly not visible |
|
13 |
// to COM components. If you need to access a type in this assembly from |
|
14 |
// COM, set the ComVisible attribute to true on that type. |
|
15 |
[assembly: ComVisible(false)] |
|
16 |
|
|
17 |
// The following GUID is for the ID of the typelib if this project is exposed to COM |
|
18 |
[assembly: Guid("096dda9e-fdd0-44b8-9908-9e07688212da")] |
|
19 |
|
|
20 |
// Version information for an assembly consists of the following four values: |
|
21 |
// |
|
22 |
// Major Version |
|
23 |
// Minor Version |
|
24 |
// Build Number |
|
25 |
// Revision |
|
26 |
// |
|
27 |
// You can specify all the values or you can default the Build and Revision Numbers |
|
28 |
// by using the '*' as shown below: |
|
29 |
// [assembly: AssemblyVersion("1.0.*")] |
DTI_PID/APIDConverter/Utilities.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
|
|
6 |
namespace AVEVA.PID.CustomizationUtility |
|
7 |
{ |
|
8 |
public static class Utilities |
|
9 |
{ |
|
10 |
public static string strSQLServerName = string.Empty; |
|
11 |
public static string strSQLWinAuthentication = string.Empty; |
|
12 |
public static string strSQLUserName = string.Empty; |
|
13 |
public static string strSQLPassword = string.Empty; |
|
14 |
public static string strSQLDatabaseName = string.Empty; |
|
15 |
public static string strSQLAdminDatabaseName = string.Empty; |
|
16 |
public static string strSQLReportsDatabaseName = string.Empty; |
|
17 |
} |
|
18 |
} |
DTI_PID/DTI_PID.sln | ||
---|---|---|
7 | 7 |
EndProject |
8 | 8 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PDF_TO_IMAGE", "PDF_TO_IMAGE\PDF_TO_IMAGE.csproj", "{B7B8B0AE-9F03-4543-BC05-813A25E9D584}" |
9 | 9 |
EndProject |
10 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SPPIDConverter", "SPPIDConverter\SPPIDConverter.csproj", "{B6757E78-6B59-40A3-A7BB-E73E8F81B6C3}" |
|
10 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SPPIDConverter", "SPPIDConverter\SPPIDConverter.csproj", "{81BFB56B-05FE-4674-93C5-DDB2D3437F77}" |
|
11 |
EndProject |
|
12 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AVEVA.PID.CustomizationUtility_ACAD2018_x64", "APIDConverter\AVEVA.PID.CustomizationUtility_ACAD2018_x64.csproj", "{3D03D577-7689-46ED-829D-1152B1180706}" |
|
11 | 13 |
EndProject |
12 | 14 |
Global |
13 | 15 |
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
14 | 16 |
Debug|Any CPU = Debug|Any CPU |
17 |
Debug|x64 = Debug|x64 |
|
15 | 18 |
Debug|x86 = Debug|x86 |
16 | 19 |
Release|Any CPU = Release|Any CPU |
20 |
Release|x64 = Release|x64 |
|
17 | 21 |
Release|x86 = Release|x86 |
18 | 22 |
EndGlobalSection |
19 | 23 |
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
20 | 24 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
25 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Debug|x64.ActiveCfg = Debug|Any CPU |
|
21 | 26 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Debug|x86.ActiveCfg = Debug|Any CPU |
22 | 27 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Release|Any CPU.ActiveCfg = Release|Any CPU |
28 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Release|x64.ActiveCfg = Release|Any CPU |
|
23 | 29 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Release|x86.ActiveCfg = Release|Any CPU |
24 | 30 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
25 | 31 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Debug|Any CPU.Build.0 = Debug|Any CPU |
32 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Debug|x64.ActiveCfg = Debug|Any CPU |
|
33 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Debug|x64.Build.0 = Debug|Any CPU |
|
26 | 34 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Debug|x86.ActiveCfg = Debug|x86 |
27 | 35 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Debug|x86.Build.0 = Debug|x86 |
28 | 36 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Release|Any CPU.ActiveCfg = Release|Any CPU |
29 | 37 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Release|Any CPU.Build.0 = Release|Any CPU |
38 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Release|x64.ActiveCfg = Release|Any CPU |
|
39 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Release|x64.Build.0 = Release|Any CPU |
|
30 | 40 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Release|x86.ActiveCfg = Release|x86 |
31 | 41 |
{B7B8B0AE-9F03-4543-BC05-813A25E9D584}.Release|x86.Build.0 = Release|x86 |
32 |
{B6757E78-6B59-40A3-A7BB-E73E8F81B6C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|
33 |
{B6757E78-6B59-40A3-A7BB-E73E8F81B6C3}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|
34 |
{B6757E78-6B59-40A3-A7BB-E73E8F81B6C3}.Debug|x86.ActiveCfg = Debug|x86 |
|
35 |
{B6757E78-6B59-40A3-A7BB-E73E8F81B6C3}.Debug|x86.Build.0 = Debug|x86 |
|
36 |
{B6757E78-6B59-40A3-A7BB-E73E8F81B6C3}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|
37 |
{B6757E78-6B59-40A3-A7BB-E73E8F81B6C3}.Release|Any CPU.Build.0 = Release|Any CPU |
|
38 |
{B6757E78-6B59-40A3-A7BB-E73E8F81B6C3}.Release|x86.ActiveCfg = Release|x86 |
|
39 |
{B6757E78-6B59-40A3-A7BB-E73E8F81B6C3}.Release|x86.Build.0 = Release|x86 |
|
42 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|
43 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|
44 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Debug|x64.ActiveCfg = Debug|Any CPU |
|
45 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Debug|x64.Build.0 = Debug|Any CPU |
|
46 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Debug|x86.ActiveCfg = Debug|x86 |
|
47 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Debug|x86.Build.0 = Debug|x86 |
|
48 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|
49 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Release|Any CPU.Build.0 = Release|Any CPU |
|
50 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Release|x64.ActiveCfg = Release|Any CPU |
|
51 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Release|x64.Build.0 = Release|Any CPU |
|
52 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Release|x86.ActiveCfg = Release|x86 |
|
53 |
{81BFB56B-05FE-4674-93C5-DDB2D3437F77}.Release|x86.Build.0 = Release|x86 |
|
54 |
{3D03D577-7689-46ED-829D-1152B1180706}.Debug|Any CPU.ActiveCfg = Debug|x64 |
|
55 |
{3D03D577-7689-46ED-829D-1152B1180706}.Debug|x64.ActiveCfg = Debug|x64 |
|
56 |
{3D03D577-7689-46ED-829D-1152B1180706}.Debug|x64.Build.0 = Debug|x64 |
|
57 |
{3D03D577-7689-46ED-829D-1152B1180706}.Debug|x86.ActiveCfg = Debug|x64 |
|
58 |
{3D03D577-7689-46ED-829D-1152B1180706}.Release|Any CPU.ActiveCfg = Release|x64 |
|
59 |
{3D03D577-7689-46ED-829D-1152B1180706}.Release|x64.ActiveCfg = Release|x64 |
|
60 |
{3D03D577-7689-46ED-829D-1152B1180706}.Release|x64.Build.0 = Release|x64 |
|
61 |
{3D03D577-7689-46ED-829D-1152B1180706}.Release|x86.ActiveCfg = Release|x64 |
|
40 | 62 |
EndGlobalSection |
41 | 63 |
GlobalSection(SolutionProperties) = preSolution |
42 | 64 |
HideSolutionNode = FALSE |
내보내기 Unified diff