+
Action required to load native assemblies
+
+ To deploy an application that uses spatial data types to a machine that does not have 'System CLR Types for SQL Server' installed you also need to deploy the native assembly SqlServerSpatial110.dll. Both x86 (32 bit) and x64 (64 bit) versions of this assembly have been added to your project under the SqlServerTypes\x86 and SqlServerTypes\x64 subdirectories. The native assembly msvcr100.dll is also included in case the C++ runtime is not installed.
+
+
+ You need to add code to load the correct one of these assemblies at runtime (depending on the current architecture).
+
+
ASP.NET applications
+
+ For ASP.NET applications, add the following line of code to the Application_Start method in Global.asax.cs:
+
SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin"));
+
+
Desktop applications
+
+ For desktop applications, add the following line of code to run before any spatial operations are performed:
+
SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);
+
+
+
+
\ No newline at end of file
diff --git a/SubProject/FPJ0000/dsPRJ.Designer.cs b/SubProject/FPJ0000/dsPRJ.Designer.cs
index 38b96d7..4411a12 100644
--- a/SubProject/FPJ0000/dsPRJ.Designer.cs
+++ b/SubProject/FPJ0000/dsPRJ.Designer.cs
@@ -34,8 +34,6 @@ namespace FPJ0000 {
private JobReportDataTable tableJobReport;
- private ProjectsScheduleDataTable tableProjectsSchedule;
-
private ProjectsHistoryDataTable tableProjectsHistory;
private SPMasterDataTable tableSPMaster;
@@ -54,6 +52,8 @@ namespace FPJ0000 {
private EETGW_JobReport_AutoInputDataTable tableEETGW_JobReport_AutoInput;
+ private EETGW_ProjectsScheduleDataTable tableEETGW_ProjectsSchedule;
+
private SCTableDataTable tableSCTable;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
@@ -103,9 +103,6 @@ namespace FPJ0000 {
if ((ds.Tables["JobReport"] != null)) {
base.Tables.Add(new JobReportDataTable(ds.Tables["JobReport"]));
}
- if ((ds.Tables["ProjectsSchedule"] != null)) {
- base.Tables.Add(new ProjectsScheduleDataTable(ds.Tables["ProjectsSchedule"]));
- }
if ((ds.Tables["ProjectsHistory"] != null)) {
base.Tables.Add(new ProjectsHistoryDataTable(ds.Tables["ProjectsHistory"]));
}
@@ -133,6 +130,9 @@ namespace FPJ0000 {
if ((ds.Tables["EETGW_JobReport_AutoInput"] != null)) {
base.Tables.Add(new EETGW_JobReport_AutoInputDataTable(ds.Tables["EETGW_JobReport_AutoInput"]));
}
+ if ((ds.Tables["EETGW_ProjectsSchedule"] != null)) {
+ base.Tables.Add(new EETGW_ProjectsScheduleDataTable(ds.Tables["EETGW_ProjectsSchedule"]));
+ }
if ((ds.Tables["SCTable"] != null)) {
base.Tables.Add(new SCTableDataTable(ds.Tables["SCTable"]));
}
@@ -205,16 +205,6 @@ namespace FPJ0000 {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public ProjectsScheduleDataTable ProjectsSchedule {
- get {
- return this.tableProjectsSchedule;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -305,6 +295,16 @@ namespace FPJ0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public EETGW_ProjectsScheduleDataTable EETGW_ProjectsSchedule {
+ get {
+ return this.tableEETGW_ProjectsSchedule;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -398,9 +398,6 @@ namespace FPJ0000 {
if ((ds.Tables["JobReport"] != null)) {
base.Tables.Add(new JobReportDataTable(ds.Tables["JobReport"]));
}
- if ((ds.Tables["ProjectsSchedule"] != null)) {
- base.Tables.Add(new ProjectsScheduleDataTable(ds.Tables["ProjectsSchedule"]));
- }
if ((ds.Tables["ProjectsHistory"] != null)) {
base.Tables.Add(new ProjectsHistoryDataTable(ds.Tables["ProjectsHistory"]));
}
@@ -428,6 +425,9 @@ namespace FPJ0000 {
if ((ds.Tables["EETGW_JobReport_AutoInput"] != null)) {
base.Tables.Add(new EETGW_JobReport_AutoInputDataTable(ds.Tables["EETGW_JobReport_AutoInput"]));
}
+ if ((ds.Tables["EETGW_ProjectsSchedule"] != null)) {
+ base.Tables.Add(new EETGW_ProjectsScheduleDataTable(ds.Tables["EETGW_ProjectsSchedule"]));
+ }
if ((ds.Tables["SCTable"] != null)) {
base.Tables.Add(new SCTableDataTable(ds.Tables["SCTable"]));
}
@@ -494,12 +494,6 @@ namespace FPJ0000 {
this.tableJobReport.InitVars();
}
}
- this.tableProjectsSchedule = ((ProjectsScheduleDataTable)(base.Tables["ProjectsSchedule"]));
- if ((initTable == true)) {
- if ((this.tableProjectsSchedule != null)) {
- this.tableProjectsSchedule.InitVars();
- }
- }
this.tableProjectsHistory = ((ProjectsHistoryDataTable)(base.Tables["ProjectsHistory"]));
if ((initTable == true)) {
if ((this.tableProjectsHistory != null)) {
@@ -554,6 +548,12 @@ namespace FPJ0000 {
this.tableEETGW_JobReport_AutoInput.InitVars();
}
}
+ this.tableEETGW_ProjectsSchedule = ((EETGW_ProjectsScheduleDataTable)(base.Tables["EETGW_ProjectsSchedule"]));
+ if ((initTable == true)) {
+ if ((this.tableEETGW_ProjectsSchedule != null)) {
+ this.tableEETGW_ProjectsSchedule.InitVars();
+ }
+ }
this.tableSCTable = ((SCTableDataTable)(base.Tables["SCTable"]));
if ((initTable == true)) {
if ((this.tableSCTable != null)) {
@@ -580,8 +580,6 @@ namespace FPJ0000 {
base.Tables.Add(this.tableProjectsPart);
this.tableJobReport = new JobReportDataTable();
base.Tables.Add(this.tableJobReport);
- this.tableProjectsSchedule = new ProjectsScheduleDataTable();
- base.Tables.Add(this.tableProjectsSchedule);
this.tableProjectsHistory = new ProjectsHistoryDataTable();
base.Tables.Add(this.tableProjectsHistory);
this.tableSPMaster = new SPMasterDataTable();
@@ -600,6 +598,8 @@ namespace FPJ0000 {
base.Tables.Add(this.tableEETGW_JobReport_EBoard);
this.tableEETGW_JobReport_AutoInput = new EETGW_JobReport_AutoInputDataTable();
base.Tables.Add(this.tableEETGW_JobReport_AutoInput);
+ this.tableEETGW_ProjectsSchedule = new EETGW_ProjectsScheduleDataTable();
+ base.Tables.Add(this.tableEETGW_ProjectsSchedule);
this.tableSCTable = new SCTableDataTable();
base.Tables.Add(this.tableSCTable);
}
@@ -634,12 +634,6 @@ namespace FPJ0000 {
return false;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- private bool ShouldSerializeProjectsSchedule() {
- return false;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeProjectsHistory() {
@@ -694,6 +688,12 @@ namespace FPJ0000 {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ private bool ShouldSerializeEETGW_ProjectsSchedule() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeSCTable() {
@@ -777,9 +777,6 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void JobReportRowChangeEventHandler(object sender, JobReportRowChangeEvent e);
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
- public delegate void ProjectsScheduleRowChangeEventHandler(object sender, ProjectsScheduleRowChangeEvent e);
-
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void ProjectsHistoryRowChangeEventHandler(object sender, ProjectsHistoryRowChangeEvent e);
@@ -807,6 +804,9 @@ namespace FPJ0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void EETGW_JobReport_AutoInputRowChangeEventHandler(object sender, EETGW_JobReport_AutoInputRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public delegate void EETGW_ProjectsScheduleRowChangeEventHandler(object sender, EETGW_ProjectsScheduleRowChangeEvent e);
+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void SCTableRowChangeEventHandler(object sender, SCTableRowChangeEvent e);
@@ -907,6 +907,8 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columndiv;
+ private global::System.Data.DataColumn columncrdue;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public ProjectsDataTable() :
@@ -1309,6 +1311,14 @@ namespace FPJ0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ public global::System.Data.DataColumn crdueColumn {
+ get {
+ return this.columncrdue;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -1390,7 +1400,8 @@ namespace FPJ0000 {
string CMP_After,
bool bCost,
bool bFanOut,
- string div) {
+ string div,
+ string crdue) {
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -1437,7 +1448,8 @@ namespace FPJ0000 {
CMP_After,
bCost,
bFanOut,
- div};
+ div,
+ crdue};
rowProjectsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProjectsRow);
return rowProjectsRow;
@@ -1488,7 +1500,8 @@ namespace FPJ0000 {
string CMP_After,
bool bCost,
bool bFanOut,
- string div) {
+ string div,
+ string crdue) {
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -1535,7 +1548,8 @@ namespace FPJ0000 {
CMP_After,
bCost,
bFanOut,
- div};
+ div,
+ crdue};
rowProjectsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProjectsRow);
return rowProjectsRow;
@@ -1610,6 +1624,7 @@ namespace FPJ0000 {
this.columnbCost = base.Columns["bCost"];
this.columnbFanOut = base.Columns["bFanOut"];
this.columndiv = base.Columns["div"];
+ this.columncrdue = base.Columns["crdue"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1705,6 +1720,8 @@ namespace FPJ0000 {
base.Columns.Add(this.columnbFanOut);
this.columndiv = new global::System.Data.DataColumn("div", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columndiv);
+ this.columncrdue = new global::System.Data.DataColumn("crdue", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columncrdue);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -1748,6 +1765,7 @@ namespace FPJ0000 {
this.columnCMP_Before.MaxLength = 2147483647;
this.columnCMP_After.MaxLength = 2147483647;
this.columndiv.MaxLength = 2;
+ this.columncrdue.MaxLength = 10;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3986,399 +4004,6 @@ namespace FPJ0000 {
}
}
- ///