Ok insert e delete x ValidVal

This commit is contained in:
Samuele E. Locatelli
2015-06-10 12:07:03 +02:00
parent dba89cf6b9
commit 5d85509aba
27 changed files with 1075 additions and 63 deletions
+59 -11
View File
@@ -9067,7 +9067,7 @@ SELECT CodScheda, Vers, CodMisura, MinPar, MaxPar, LIVal, LSVal FROM ValidVal WH
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT CodScheda, Vers, CodMisura, MinPar, MaxPar, LIVal, LSVal FROM dbo.ValidVal" +
@@ -9081,6 +9081,7 @@ SELECT CodScheda, Vers, CodMisura, MinPar, MaxPar, LIVal, LSVal FROM ValidVal WH
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Vers", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMisura", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinPar", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "dbo.stp_VV_getByScheda";
@@ -9090,16 +9091,23 @@ SELECT CodScheda, Vers, CodMisura, MinPar, MaxPar, LIVal, LSVal FROM ValidVal WH
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMisura", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = "dbo.stp_VV_updateQuery";
this._commandCollection[3].CommandText = "dbo.stp_VV_insertNew";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinPar", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaxPar", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LIVal", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LSVal", global::System.Data.SqlDbType.NChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Vers", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMisura", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSchedaVers", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMisura", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
this._commandCollection[4].CommandText = "dbo.stp_VV_updateQuery";
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinPar", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaxPar", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LIVal", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LSVal", global::System.Data.SqlDbType.NChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Vers", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMisura", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -9341,7 +9349,7 @@ SELECT CodScheda, Vers, CodMisura, MinPar, MaxPar, LIVal, LSVal FROM ValidVal WH
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)]
public virtual int deleteQuery(string Original_CodScheda, global::System.Nullable<int> Original_Vers, string Original_CodMisura) {
public virtual int deleteQuery(string Original_CodScheda, global::System.Nullable<int> Original_Vers, string Original_CodMisura, global::System.Nullable<double> Original_MinPar) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((Original_CodScheda == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
@@ -9361,6 +9369,46 @@ SELECT CodScheda, Vers, CodMisura, MinPar, MaxPar, LIVal, LSVal FROM ValidVal WH
else {
command.Parameters[3].Value = ((string)(Original_CodMisura));
}
if ((Original_MinPar.HasValue == true)) {
command.Parameters[4].Value = ((double)(Original_MinPar.Value));
}
else {
command.Parameters[4].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int insertNew(string CodSchedaVers, string CodMisura) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((CodSchedaVers == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(CodSchedaVers));
}
if ((CodMisura == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(CodMisura));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -9383,7 +9431,7 @@ SELECT CodScheda, Vers, CodMisura, MinPar, MaxPar, LIVal, LSVal FROM ValidVal WH
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
public virtual int updateQuery(global::System.Nullable<double> MinPar, global::System.Nullable<double> MaxPar, global::System.Nullable<double> LIVal, string LSVal, string Original_CodScheda, global::System.Nullable<int> Original_Vers, string Original_CodMisura) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((MinPar.HasValue == true)) {
command.Parameters[1].Value = ((double)(MinPar.Value));
}
+13
View File
@@ -824,6 +824,7 @@ SELECT CodScheda, Vers, CodMisura, MinPar, MaxPar, LIVal, LSVal FROM ValidVal WH
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_CodScheda" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_Vers" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_CodMisura" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="float" DbType="Double" Direction="Input" ParameterName="@Original_MinPar" Precision="53" ProviderType="Float" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</DeleteCommand>
@@ -840,6 +841,18 @@ SELECT CodScheda, Vers, CodMisura, MinPar, MaxPar, LIVal, LSVal FROM ValidVal WH
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_VV_insertNew" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertNew" Modifier="Public" Name="insertNew" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="insertNew">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_VV_insertNew</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodSchedaVers" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodMisura" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="updateQuery" Modifier="Public" Name="updateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="updateQuery">
<UpdateCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
+19 -19
View File
@@ -6,18 +6,18 @@
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-29" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:ElencoFamMacc" ZOrder="6" X="602" Y="-11" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ElencoMacchineCN" ZOrder="5" X="961" Y="-7" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:AnagFasi" ZOrder="3" X="750" Y="593" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ElencoFamMacc" ZOrder="8" X="602" Y="-11" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ElencoMacchineCN" ZOrder="7" X="961" Y="-7" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:AnagFasi" ZOrder="5" X="750" Y="593" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagSchede" ZOrder="18" X="273" Y="240" Height="210" Width="288" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:DettScheda" ZOrder="17" X="319" Y="515" Height="267" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:DettScheda" ZOrder="17" X="319" Y="515" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:SchemaCollFamMacc" ZOrder="16" X="357" Y="-9" Height="186" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="135" />
<Shape ID="DesignTable:SchemaCollMacc" ZOrder="1" X="1063" Y="238" Height="172" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Misure" ZOrder="4" X="1078" Y="491" Height="305" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:ValidVal" ZOrder="15" X="32" Y="512" Height="267" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:SchemaCollMacc" ZOrder="3" X="1063" Y="238" Height="172" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Misure" ZOrder="6" X="1078" Y="491" Height="305" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:ValidVal" ZOrder="1" X="-9" Y="510" Height="286" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_DettScheda_AnagSchede1" ZOrder="14" LineWidth="11">
<Connector ID="DesignRelation:FK_DettScheda_AnagSchede1" ZOrder="15" LineWidth="11">
<RoutePoints>
<Point>
<X>398</X>
@@ -29,7 +29,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_SchemaCollFamMacc_AnagSchede1" ZOrder="13" LineWidth="11">
<Connector ID="DesignRelation:FK_SchemaCollFamMacc_AnagSchede1" ZOrder="14" LineWidth="11">
<RoutePoints>
<Point>
<X>436</X>
@@ -41,7 +41,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_SchemaCollFamMacc_ElencoFamMacc" ZOrder="12" LineWidth="11">
<Connector ID="DesignRelation:FK_SchemaCollFamMacc_ElencoFamMacc" ZOrder="13" LineWidth="11">
<RoutePoints>
<Point>
<X>602</X>
@@ -53,7 +53,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ElencoMacchineCN_ElencoFamMacc" ZOrder="11" LineWidth="11">
<Connector ID="DesignRelation:FK_ElencoMacchineCN_ElencoFamMacc" ZOrder="12" LineWidth="11">
<RoutePoints>
<Point>
<X>902</X>
@@ -65,7 +65,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ElencoSchedeMacchina_ElencoMacchineCN" ZOrder="10" LineWidth="11">
<Connector ID="DesignRelation:FK_ElencoSchedeMacchina_ElencoMacchineCN" ZOrder="11" LineWidth="11">
<RoutePoints>
<Point>
<X>1247</X>
@@ -81,7 +81,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_SchemaCollMacc_AnagSchede" ZOrder="9" LineWidth="11">
<Connector ID="DesignRelation:FK_SchemaCollMacc_AnagSchede" ZOrder="10" LineWidth="11">
<RoutePoints>
<Point>
<X>561</X>
@@ -93,7 +93,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_IstanzeMisura_AnagFasi" ZOrder="2" LineWidth="11">
<Connector ID="DesignRelation:FK_IstanzeMisura_AnagFasi" ZOrder="4" LineWidth="11">
<RoutePoints>
<Point>
<X>1050</X>
@@ -105,7 +105,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Misure_SchemaCollMacc1" ZOrder="8" LineWidth="11">
<Connector ID="DesignRelation:FK_Misure_SchemaCollMacc1" ZOrder="9" LineWidth="11">
<RoutePoints>
<Point>
<X>1139</X>
@@ -117,15 +117,15 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ValidVal_DettScheda" ZOrder="7" LineWidth="11">
<Connector ID="DesignRelation:FK_ValidVal_DettScheda" ZOrder="2" LineWidth="11">
<RoutePoints>
<Point>
<X>319</X>
<Y>697</Y>
<Y>613</Y>
</Point>
<Point>
<X>190</X>
<Y>697</Y>
<X>245</X>
<Y>613</Y>
</Point>
</RoutePoints>
</Connector>
+602
View File
@@ -26,6 +26,8 @@ namespace CMS_SC_Data {
private v_selSchedaDataTable tablev_selScheda;
private v_selListValDataTable tablev_selListVal;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -57,6 +59,9 @@ namespace CMS_SC_Data {
if ((ds.Tables["v_selScheda"] != null)) {
base.Tables.Add(new v_selSchedaDataTable(ds.Tables["v_selScheda"]));
}
if ((ds.Tables["v_selListVal"] != null)) {
base.Tables.Add(new v_selListValDataTable(ds.Tables["v_selListVal"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -85,6 +90,16 @@ namespace CMS_SC_Data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public v_selListValDataTable v_selListVal {
get {
return this.tablev_selListVal;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -155,6 +170,9 @@ namespace CMS_SC_Data {
if ((ds.Tables["v_selScheda"] != null)) {
base.Tables.Add(new v_selSchedaDataTable(ds.Tables["v_selScheda"]));
}
if ((ds.Tables["v_selListVal"] != null)) {
base.Tables.Add(new v_selListValDataTable(ds.Tables["v_selListVal"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -194,6 +212,12 @@ namespace CMS_SC_Data {
this.tablev_selScheda.InitVars();
}
}
this.tablev_selListVal = ((v_selListValDataTable)(base.Tables["v_selListVal"]));
if ((initTable == true)) {
if ((this.tablev_selListVal != null)) {
this.tablev_selListVal.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -206,6 +230,8 @@ namespace CMS_SC_Data {
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
this.tablev_selScheda = new v_selSchedaDataTable();
base.Tables.Add(this.tablev_selScheda);
this.tablev_selListVal = new v_selListValDataTable();
base.Tables.Add(this.tablev_selListVal);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -214,6 +240,12 @@ namespace CMS_SC_Data {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private bool ShouldSerializev_selListVal() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -272,6 +304,9 @@ namespace CMS_SC_Data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void v_selSchedaRowChangeEventHandler(object sender, v_selSchedaRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void v_selListValRowChangeEventHandler(object sender, v_selListValRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
@@ -537,6 +572,270 @@ namespace CMS_SC_Data {
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class v_selListValDataTable : global::System.Data.TypedTableBase<v_selListValRow> {
private global::System.Data.DataColumn columnvalue;
private global::System.Data.DataColumn columnlabel;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selListValDataTable() {
this.TableName = "v_selListVal";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal v_selListValDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected v_selListValDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn valueColumn {
get {
return this.columnvalue;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn labelColumn {
get {
return this.columnlabel;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selListValRow this[int index] {
get {
return ((v_selListValRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selListValRowChangeEventHandler v_selListValRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selListValRowChangeEventHandler v_selListValRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selListValRowChangeEventHandler v_selListValRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selListValRowChangeEventHandler v_selListValRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void Addv_selListValRow(v_selListValRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selListValRow Addv_selListValRow(string value, string label) {
v_selListValRow rowv_selListValRow = ((v_selListValRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
value,
label};
rowv_selListValRow.ItemArray = columnValuesArray;
this.Rows.Add(rowv_selListValRow);
return rowv_selListValRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public override global::System.Data.DataTable Clone() {
v_selListValDataTable cln = ((v_selListValDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new v_selListValDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars() {
this.columnvalue = base.Columns["value"];
this.columnlabel = base.Columns["label"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitClass() {
this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnvalue);
this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnlabel);
this.columnvalue.ReadOnly = true;
this.columnvalue.MaxLength = 112;
this.columnlabel.MaxLength = 50;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selListValRow Newv_selListValRow() {
return ((v_selListValRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new v_selListValRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(v_selListValRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.v_selListValRowChanged != null)) {
this.v_selListValRowChanged(this, new v_selListValRowChangeEvent(((v_selListValRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.v_selListValRowChanging != null)) {
this.v_selListValRowChanging(this, new v_selListValRowChangeEvent(((v_selListValRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.v_selListValRowDeleted != null)) {
this.v_selListValRowDeleted(this, new v_selListValRowChangeEvent(((v_selListValRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.v_selListValRowDeleting != null)) {
this.v_selListValRowDeleting(this, new v_selListValRowChangeEvent(((v_selListValRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void Removev_selListValRow(v_selListValRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
DS_Utility ds = new DS_Utility();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "v_selListValDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
@@ -608,6 +907,77 @@ namespace CMS_SC_Data {
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class v_selListValRow : global::System.Data.DataRow {
private v_selListValDataTable tablev_selListVal;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal v_selListValRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tablev_selListVal = ((v_selListValDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string value {
get {
try {
return ((string)(this[this.tablev_selListVal.valueColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_selListVal\' is DBNull.", e);
}
}
set {
this[this.tablev_selListVal.valueColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string label {
get {
try {
return ((string)(this[this.tablev_selListVal.labelColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selListVal\' is DBNull.", e);
}
}
set {
this[this.tablev_selListVal.labelColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsvalueNull() {
return this.IsNull(this.tablev_selListVal.valueColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetvalueNull() {
this[this.tablev_selListVal.valueColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IslabelNull() {
return this.IsNull(this.tablev_selListVal.labelColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetlabelNull() {
this[this.tablev_selListVal.labelColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
@@ -641,6 +1011,40 @@ namespace CMS_SC_Data {
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public class v_selListValRowChangeEvent : global::System.EventArgs {
private v_selListValRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selListValRowChangeEvent(v_selListValRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selListValRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace CMS_SC_Data.DS_UtilityTableAdapters {
@@ -814,6 +1218,204 @@ namespace CMS_SC_Data.DS_UtilityTableAdapters {
}
}
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class v_selListValTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
private global::System.Data.SqlClient.SqlConnection _connection;
private global::System.Data.SqlClient.SqlTransaction _transaction;
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selListValTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal global::System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal global::System.Data.SqlClient.SqlTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitAdapter() {
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "v_selListVal";
tableMapping.ColumnMappings.Add("value", "value");
tableMapping.ColumnMappings.Add("label", "label");
this._adapter.TableMappings.Add(tableMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
this._connection.ConnectionString = global::CMS_SC_Data.Properties.Settings.Default.CMS_SCConnectionString;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_selListVal";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_listValues_getValidValues";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TableName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FieldName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(DS_Utility.v_selListValDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual DS_Utility.v_selListValDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
DS_Utility.v_selListValDataTable dataTable = new DS_Utility.v_selListValDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Utility.v_selListValDataTable getByTableField(string TableName, string FieldName) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((TableName == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TableName));
}
if ((FieldName == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(FieldName));
}
DS_Utility.v_selListValDataTable dataTable = new DS_Utility.v_selListValDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
/// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary>
+51 -1
View File
@@ -24,6 +24,36 @@
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selListValTableAdapter" GeneratorDataComponentClassName="v_selListValTableAdapter" Name="v_selListVal" UserDataComponentName="v_selListValTableAdapter">
<MainSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.v_selListVal" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT value, label FROM dbo.v_selListVal</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="value" DataSetColumn="value" />
<Mapping SourceColumn="label" DataSetColumn="label" />
</Mappings>
<Sources>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_listValues_getValidValues" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByTableField" GetMethodModifier="Public" GetMethodName="getByTableField" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByTableField" UserSourceName="getByTableField">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_listValues_getValidValues</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -32,7 +62,7 @@
<xs:element name="DS_Utility" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Utility" msprop:Generator_UserDSName="DS_Utility">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="v_selScheda" msprop:Generator_TableClassName="v_selSchedaDataTable" msprop:Generator_TableVarName="tablev_selScheda" msprop:Generator_TablePropName="v_selScheda" msprop:Generator_RowDeletingName="v_selSchedaRowDeleting" msprop:Generator_RowChangingName="v_selSchedaRowChanging" msprop:Generator_RowEvHandlerName="v_selSchedaRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selSchedaRowDeleted" msprop:Generator_UserTableName="v_selScheda" msprop:Generator_RowChangedName="v_selSchedaRowChanged" msprop:Generator_RowEvArgName="v_selSchedaRowChangeEvent" msprop:Generator_RowClassName="v_selSchedaRow">
<xs:element name="v_selScheda" msprop:Generator_TableClassName="v_selSchedaDataTable" msprop:Generator_TableVarName="tablev_selScheda" msprop:Generator_RowChangedName="v_selSchedaRowChanged" msprop:Generator_TablePropName="v_selScheda" msprop:Generator_RowDeletingName="v_selSchedaRowDeleting" msprop:Generator_RowChangingName="v_selSchedaRowChanging" msprop:Generator_RowEvHandlerName="v_selSchedaRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selSchedaRowDeleted" msprop:Generator_RowClassName="v_selSchedaRow" msprop:Generator_UserTableName="v_selScheda" msprop:Generator_RowEvArgName="v_selSchedaRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" minOccurs="0">
@@ -52,6 +82,26 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selListVal" msprop:Generator_TableClassName="v_selListValDataTable" msprop:Generator_TableVarName="tablev_selListVal" msprop:Generator_TablePropName="v_selListVal" msprop:Generator_RowDeletingName="v_selListValRowDeleting" msprop:Generator_RowChangingName="v_selListValRowChanging" msprop:Generator_RowEvHandlerName="v_selListValRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selListValRowDeleted" msprop:Generator_UserTableName="v_selListVal" msprop:Generator_RowChangedName="v_selListValRowChanged" msprop:Generator_RowEvArgName="v_selListValRowChangeEvent" msprop:Generator_RowClassName="v_selListValRow">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="112" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
+2 -1
View File
@@ -6,7 +6,8 @@
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:v_selScheda" ZOrder="1" X="159" Y="146" Height="115" Width="213" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selScheda" ZOrder="2" X="159" Y="146" Height="115" Width="213" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selListVal" ZOrder="1" X="511" Y="221" Height="134" Width="269" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
</Shapes>
<Connectors />
</DiagramLayout>
+3
View File
@@ -28,6 +28,7 @@ namespace CMS_SC_Data
taDS = new DS_ApplicazioneTableAdapters.DettSchedaTableAdapter();
taEFM = new DS_ApplicazioneTableAdapters.ElencoFamMaccTableAdapter();
taEM = new DS_ApplicazioneTableAdapters.ElencoMacchineCNTableAdapter();
taVV = new DS_ApplicazioneTableAdapters.ValidValTableAdapter();
//taFile = new DS_UtilityTableAdapters.tblFilesTableAdapter();
}
/// <summary>
@@ -43,6 +44,7 @@ namespace CMS_SC_Data
taDS.Connection.ConnectionString = connStr;
taEFM.Connection.ConnectionString = connStr;
taEM.Connection.ConnectionString = connStr;
taVV.Connection.ConnectionString = connStr;
//taFile.Connection.ConnectionString = connStrFiles;
}
@@ -55,6 +57,7 @@ namespace CMS_SC_Data
public DS_ApplicazioneTableAdapters.DettSchedaTableAdapter taDS;
public DS_ApplicazioneTableAdapters.ElencoFamMaccTableAdapter taEFM;
public DS_ApplicazioneTableAdapters.ElencoMacchineCNTableAdapter taEM;
public DS_ApplicazioneTableAdapters.ValidValTableAdapter taVV;
//public DS_UtilityTableAdapters.tblFilesTableAdapter taFile;
public static DtProxy man = new DtProxy();
Binary file not shown.
Binary file not shown.
Binary file not shown.
+11 -5
View File
@@ -14,13 +14,19 @@
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<div class="container-flow">
<div class="row" style="padding: 0px 10px;">
<div class="col-xs-9">
<uc1:mod_selSchedaUrl runat="server" id="mod_selSchedaUrl" />
<uc1:mod_DettScheda runat="server" id="mod_DettScheda" />
<div class="col-xs-8">
<uc1:mod_selSchedaUrl runat="server" ID="mod_selSchedaUrl" />
</div>
<div class="col-xs-4">
<uc1:mod_righePag ID="mod_righePag" runat="server" />
</div>
<div class="col-xs-3">
<uc1:mod_validVal runat="server" id="mod_validVal" />
</div>
<div class="row" style="padding: 0px 10px;">
<div class="col-xs-8">
<uc1:mod_DettScheda runat="server" ID="mod_DettScheda" />
</div>
<div class="col-xs-4">
<uc1:mod_validVal runat="server" ID="mod_validVal" />
</div>
</div>
</div>
+3
View File
@@ -16,6 +16,7 @@ namespace CMS_SC
((Bootstrap)this.Master).showSearch = true;
mod_righePag.numRowPag = 20;
mod_DettScheda.pageSize = mod_righePag.numRowPag;
mod_validVal.pageSize = mod_righePag.numRowPag;
}
mod_righePag.eh_newNum += mod_righePag_eh_newNum;
mod_DettScheda.eh_selezioneValore += mod_DettScheda_eh_selezioneValore;
@@ -36,6 +37,7 @@ namespace CMS_SC
if (mod_DettScheda.CodMisuraSel != "")
{
mod_validVal.Visible = true;
mod_validVal.CodMisuraSel = mod_DettScheda.CodMisuraSel;
}
else
{
@@ -46,6 +48,7 @@ namespace CMS_SC
void mod_righePag_eh_newNum(object sender, EventArgs e)
{
mod_DettScheda.pageSize = mod_righePag.numRowPag;
mod_validVal.pageSize = mod_righePag.numRowPag;
}
}
}
+9 -9
View File
@@ -21,15 +21,6 @@ namespace CMS_SC {
/// </remarks>
protected global::CMS_SC.WebUserControls.mod_selSchedaUrl mod_selSchedaUrl;
/// <summary>
/// mod_DettScheda control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::CMS_SC.WebUserControls.mod_DettScheda mod_DettScheda;
/// <summary>
/// mod_righePag control.
/// </summary>
@@ -39,6 +30,15 @@ namespace CMS_SC {
/// </remarks>
protected global::mod_righePag mod_righePag;
/// <summary>
/// mod_DettScheda control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::CMS_SC.WebUserControls.mod_DettScheda mod_DettScheda;
/// <summary>
/// mod_validVal control.
/// </summary>
+9 -2
View File
@@ -40,7 +40,8 @@
<asp:BoundField DataField="NomeMisura" HeaderText="NomeMisura" SortExpression="NomeMisura" />
<asp:TemplateField HeaderText="TipoValMisura" SortExpression="TipoValMisura">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("TipoValMisura") %>'></asp:TextBox>
<asp:DropDownList ID="ddlTipoValMisura" runat="server" SelectedValue='<%# Bind("TipoValMisura") %>' DataSourceID="odsTipoVal" DataTextField="label" DataValueField="value">
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("TipoValMisura") %>'></asp:Label>
@@ -61,7 +62,7 @@
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByScheda" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.DettSchedaTableAdapter" FilterExpression=" CodMisura LIKE '%{0}%' OR NomeMisura LIKE '%{0}%' OR TipoValMisura LIKE '%{0}%' OR NomePar LIKE '%{0}%' " DeleteMethod="deleteQuery" InsertMethod="insertNew" UpdateMethod="updateQuery">
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByScheda" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.DettSchedaTableAdapter" FilterExpression=" CodMisura LIKE '%{0}%' OR NomeMisura LIKE '%{0}%' OR TipoValMisura LIKE '%{0}%' OR NomePar LIKE '%{0}%' " DeleteMethod="deleteQuery" InsertMethod="insertNew" UpdateMethod="updateQuery" OnDeleted="ods_Deleted" OnUpdated="ods_Updated">
<DeleteParameters>
<asp:Parameter Name="Original_CodScheda" Type="String" />
<asp:Parameter Name="Original_Vers" Type="Int32" />
@@ -87,3 +88,9 @@
<asp:Parameter Name="Original_CodMisura" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="odsTipoVal" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByTableField" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.v_selListValTableAdapter">
<SelectParameters>
<asp:Parameter DefaultValue="DettScheda" Name="TableName" Type="string" />
<asp:Parameter DefaultValue="TipoValMisura" Name="FieldName" Type="string" />
</SelectParameters>
</asp:ObjectDataSource>
+23 -2
View File
@@ -166,11 +166,21 @@ namespace CMS_SC.WebUserControls
if (_comando != "")
{
DtProxy.man.taDS.moveUpDown(_comando, CodSchedaSel, VersSel, CodMisuraSel);
grView.DataBind();
resetSelezione();
}
else
{
raiseEvent();
}
raiseEvent();
}
protected void btnReset_Click(object sender, EventArgs e)
{
resetSelezione();
}
/// <summary>
/// resetto selezione
/// </summary>
private void resetSelezione()
{
grView.SelectedIndex = -1;
grView.DataBind();
@@ -229,5 +239,16 @@ namespace CMS_SC.WebUserControls
}
return answ;
}
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
{
resetSelezione();
}
protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
{
resetSelezione();
}
}
}
+9
View File
@@ -29,5 +29,14 @@ namespace CMS_SC.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
/// <summary>
/// odsTipoVal control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoVal;
}
}
+64 -1
View File
@@ -1,2 +1,65 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_validVal.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_validVal" %>
elenco parametri validazione..
<asp:Button runat="server" ID="btnNewFromEmpty" Text='<%# traduci("btnAddNewFromEmpty") %>' OnClick="btnNewFromEmpty_Click" />
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="CodScheda,Vers,CodMisura,MinPar" DataSourceID="ods" CssClass="table table-striped table-hover" AllowPaging="True" AllowSorting="True">
<PagerStyle CssClass="info" />
<EmptyDataTemplate>
<%# traduci("NoRecords") %>
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
</HeaderTemplate>
<EditItemTemplate>
<asp:LinkButton ID="lbUpdate" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
&nbsp;<asp:LinkButton ID="lbCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Edit" CssClass="fa fa-edit fa-2x" />
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="CodScheda" HeaderText="CodScheda" ReadOnly="True" SortExpression="CodScheda" />
<asp:BoundField DataField="Vers" HeaderText="Vers" SortExpression="Vers" ReadOnly="True" />--%>
<asp:BoundField DataField="CodMisura" HeaderText="CodMisura" SortExpression="CodMisura" ReadOnly="True" />
<asp:BoundField DataField="MinPar" HeaderText="MinPar" ReadOnly="True" SortExpression="MinPar" />
<asp:BoundField DataField="MaxPar" HeaderText="MaxPar" SortExpression="MaxPar" />
<asp:BoundField DataField="LIVal" HeaderText="LIVal" SortExpression="LIVal" />
<asp:BoundField DataField="LSVal" HeaderText="LSVal" SortExpression="LSVal" />
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
</HeaderTemplate>
<EditItemTemplate>
<asp:LinkButton ID="lbUpdate2" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
&nbsp;<asp:LinkButton ID="lbCancel2" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandName="Delete" ToolTip="Delete" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaDel") %>' CssClass="fa fa-trash fa-2x" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByScheda" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.ValidValTableAdapter" DeleteMethod="deleteQuery" InsertMethod="insertNew" UpdateMethod="updateQuery">
<DeleteParameters>
<asp:Parameter Name="Original_CodScheda" Type="String" />
<asp:Parameter Name="Original_Vers" Type="Int32" />
<asp:Parameter Name="Original_CodMisura" Type="String" />
<asp:Parameter Name="Original_MinPar" Type="Double" />
</DeleteParameters>
<InsertParameters>
<asp:QueryStringParameter DefaultValue="0.0" Name="CodSchedaVers" QueryStringField="CodSchedaVers" Type="String" />
<asp:ControlParameter ControlID="hfCodMisura" DefaultValue="0" Name="CodMisura" PropertyName="Value" Type="String" />
</InsertParameters>
<SelectParameters>
<asp:QueryStringParameter DefaultValue="0.0" Name="CodSchedaVers" QueryStringField="CodSchedaVers" Type="String" />
<asp:ControlParameter ControlID="hfCodMisura" DefaultValue="0" Name="CodMisura" PropertyName="Value" Type="String" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="MinPar" Type="Double" />
<asp:Parameter Name="MaxPar" Type="Double" />
<asp:Parameter Name="LIVal" Type="Double" />
<asp:Parameter Name="LSVal" Type="String" />
<asp:Parameter Name="Original_CodScheda" Type="String" />
<asp:Parameter Name="Original_Vers" Type="Int32" />
<asp:Parameter Name="Original_CodMisura" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hfCodMisura" />
+153 -1
View File
@@ -4,14 +4,166 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS_SC_Data;
using SteamWare;
namespace CMS_SC.WebUserControls
{
public partial class mod_validVal : System.Web.UI.UserControl
{
/// <summary>
/// selezione valore in DettScheda
/// </summary>
public event EventHandler eh_selezioneValore;
/// <summary>
/// sollevo evento selezione
/// </summary>
protected void raiseEvent()
{
// sollevo evento nuovo valore...
if (eh_selezioneValore != null)
{
eh_selezioneValore(this, new EventArgs());
}
}
/// <summary>
/// caricamento macchina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
btnNewFromEmpty.DataBind();
}
}
/// <summary>
/// dimensione pagina grid view
/// </summary>
public int pageSize
{
get
{
return grView.PageSize;
}
set
{
grView.PageSize = value;
}
}
/// <summary>
/// richiesta di aggiunta record, tutto a zero!
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbAddNew_Click(object sender, EventArgs e)
{
insertNewRec();
}
/// <summary>
/// inserisco un nuovo record da completare...
/// </summary>
private void insertNewRec()
{
// inserisco nuovo record SE HO una selezione da URL
if (memLayer.ML.QSS("CodSchedaVers") != "")
{
DtProxy.man.taVV.insertNew(memLayer.ML.QSS("CodSchedaVers"), CodMisuraSel);
// update!
grView.DataBind();
}
}
/// <summary>
/// crea un nuovo record ...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNewFromEmpty_Click(object sender, EventArgs e)
{
insertNewRec();
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
}
/// <summary>
/// Scheda selezionata
/// </summary>
public string CodSchedaSel
{
get
{
string answ = "";
try
{
answ = grView.SelectedDataKey["CodScheda"].ToString();
}
catch
{ }
return answ;
}
}
/// <summary>
/// Versione selezionata
/// </summary>
public int VersSel
{
get
{
int answ = -1;
try
{
answ = Convert.ToInt32(grView.SelectedDataKey["Vers"].ToString());
}
catch
{ }
return answ;
}
}
/// <summary>
/// Misura selezionata
/// </summary>
public string CodMisuraSel
{
get
{
string answ = "";
try
{
answ = hfCodMisura.Value;
}
catch
{ }
return answ;
}
set
{
hfCodMisura.Value = value;
grView.DataBind();
}
}
/// <summary>
/// Misura selezionata
/// </summary>
public string MinParSel
{
get
{
string answ = "";
try
{
answ = grView.SelectedDataKey["MinPar"].ToString();
}
catch
{ }
return answ;
}
}
}
}
+41 -7
View File
@@ -3,15 +3,49 @@
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CMS_SC.WebUserControls
{
public partial class mod_validVal
{
namespace CMS_SC.WebUserControls {
public partial class mod_validVal {
/// <summary>
/// btnNewFromEmpty control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnNewFromEmpty;
/// <summary>
/// grView control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// ods control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
/// <summary>
/// hfCodMisura control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfCodMisura;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -5,7 +5,7 @@
using System.Reflection;
[assembly: AssemblyVersion("1.2.023.335")]
[assembly: AssemblyFileVersion("1.2.023.335")]
[assembly: AssemblyVersion("1.2.025.335")]
[assembly: AssemblyFileVersion("1.2.025.335")]
[assembly: AssemblyCopyright("Steamware © 2009-2015")]
[assembly: AssemblyCompany("Steamware")]
+2 -2
View File
@@ -6,8 +6,8 @@
using System.Reflection;
[assembly: AssemblyVersion("1.2.023.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("1.2.023.<#= this.RevisionNumber #>")]
[assembly: AssemblyVersion("1.2.025.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("1.2.025.<#= this.RevisionNumber #>")]
[assembly: AssemblyCopyright("Steamware © 2009-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]
<#+
Binary file not shown.