completato ADD / DELETE x composizione dossier con scehde da famiglia o da singola...

This commit is contained in:
Samuele E. Locatelli
2015-06-16 19:11:23 +02:00
parent fb1ee07dc1
commit ff2dfc6e91
22 changed files with 278 additions and 58 deletions
+142 -5
View File
@@ -3934,7 +3934,7 @@ namespace CMS_SC_Data {
this.columnCodScheda.MaxLength = 50;
this.columnVers.AllowDBNull = false;
this.columnNumScheda.AllowDBNull = false;
this.columnDescrizione.MaxLength = 10;
this.columnDescrizione.MaxLength = 250;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -10296,7 +10296,7 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
[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 = 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 IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM dbo.SchemaCollMac" +
@@ -10304,10 +10304,33 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
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_SCM_getByDossier";
this._commandCollection[1].CommandText = "dbo.stp_SCM_deleteQuery";
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("@IdxDossier", 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_IdxDossier", 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_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_NumScheda", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_SCM_getByDossier";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDossier", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_SCM_insByCodSchedaVers";
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("@IdxDossier", 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("@CodSchedaVers", global::System.Data.SqlDbType.NVarChar, 100, 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_SCM_insByFamMac";
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("@IdxDossier", 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("@CodFam", 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()]
@@ -10339,7 +10362,7 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Applicazione.SchemaCollMaccDataTable getByDossier(global::System.Nullable<int> IdxDossier) {
this.Adapter.SelectCommand = this.CommandCollection[1];
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((IdxDossier.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxDossier.Value));
}
@@ -10514,6 +10537,120 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
public virtual int Update(string Descrizione, int Original_IdxDossier, string Original_CodScheda, int Original_Vers, int Original_NumScheda, string Original_Descrizione) {
return this.Update(Original_IdxDossier, Original_CodScheda, Original_Vers, Original_NumScheda, Descrizione, Original_IdxDossier, Original_CodScheda, Original_Vers, Original_NumScheda, Original_Descrizione);
}
[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 deleteQuery(global::System.Nullable<int> Original_IdxDossier, string Original_CodScheda, global::System.Nullable<int> Original_Vers, global::System.Nullable<int> Original_NumScheda) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((Original_IdxDossier.HasValue == true)) {
command.Parameters[1].Value = ((int)(Original_IdxDossier.Value));
}
else {
command.Parameters[1].Value = global::System.DBNull.Value;
}
if ((Original_CodScheda == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(Original_CodScheda));
}
if ((Original_Vers.HasValue == true)) {
command.Parameters[3].Value = ((int)(Original_Vers.Value));
}
else {
command.Parameters[3].Value = global::System.DBNull.Value;
}
if ((Original_NumScheda.HasValue == true)) {
command.Parameters[4].Value = ((int)(Original_NumScheda.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 insByCodSchedaVers(global::System.Nullable<int> IdxDossier, string CodSchedaVers) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((IdxDossier.HasValue == true)) {
command.Parameters[1].Value = ((int)(IdxDossier.Value));
}
else {
command.Parameters[1].Value = global::System.DBNull.Value;
}
if ((CodSchedaVers == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(CodSchedaVers));
}
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 insByFamMac(global::System.Nullable<int> IdxDossier, string CodFam) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((IdxDossier.HasValue == true)) {
command.Parameters[1].Value = ((int)(IdxDossier.Value));
}
else {
command.Parameters[1].Value = global::System.DBNull.Value;
}
if ((CodFam == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(CodFam));
}
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;
}
}
/// <summary>
+39 -1
View File
@@ -956,6 +956,20 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
<Mapping SourceColumn="Descrizione" DataSetColumn="Descrizione" />
</Mappings>
<Sources>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_SCM_deleteQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="deleteQuery" Modifier="Public" Name="deleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="deleteQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_SCM_deleteQuery</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="int" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDossier" 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_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="int" DbType="Int32" Direction="Input" ParameterName="@Original_NumScheda" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_SCM_getByDossier" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByDossier" GetMethodModifier="Public" GetMethodName="getByDossier" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByDossier" UserSourceName="getByDossier">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
@@ -967,6 +981,30 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_SCM_insByCodSchedaVers" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insByCodSchedaVers" Modifier="Public" Name="insByCodSchedaVers" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="insByCodSchedaVers">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_SCM_insByCodSchedaVers</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="int" DbType="Int32" Direction="Input" ParameterName="@IdxDossier" 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" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_SCM_insByFamMac" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insByFamMac" Modifier="Public" Name="insByFamMac" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="insByFamMac">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_SCM_insByFamMac</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="int" DbType="Int32" Direction="Input" ParameterName="@IdxDossier" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodFam" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
@@ -1305,7 +1343,7 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
<xs:element name="Descrizione" msprop:Generator_ColumnVarNameInTable="columnDescrizione" msprop:Generator_ColumnPropNameInRow="Descrizione" msprop:Generator_ColumnPropNameInTable="DescrizioneColumn" msprop:Generator_UserColumnName="Descrizione" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
+15 -15
View File
@@ -8,14 +8,14 @@
<Shapes>
<Shape ID="DesignTable:ElencoFamMacc" ZOrder="17" X="602" Y="-11" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ElencoMacchineCN" ZOrder="16" X="961" Y="-7" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:AnagFasi" ZOrder="1" X="1100" Y="545" Height="172" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagFasi" ZOrder="2" X="1100" Y="545" Height="172" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagSchede" ZOrder="10" X="59" Y="300" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:DettScheda" ZOrder="20" X="401" Y="444" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:ValidVal" ZOrder="14" X="106" Y="567" Height="286" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:SchemaCollFamMacc" ZOrder="12" X="67" Y="-36" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:ElencoDossier" ZOrder="9" X="1068" Y="251" Height="267" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:Misure" ZOrder="2" X="780" Y="536" Height="305" Width="184" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:SchemaCollMacc" ZOrder="6" X="727" Y="273" Height="191" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Misure" ZOrder="3" X="780" Y="536" Height="305" Width="184" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:SchemaCollMacc" ZOrder="1" X="744" Y="249" Height="248" Width="233" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_DettScheda_AnagSchede1" ZOrder="19" LineWidth="11">
@@ -102,39 +102,39 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Misure_SchemaCollMacc" ZOrder="5" LineWidth="11">
<Connector ID="DesignRelation:FK_Misure_SchemaCollMacc" ZOrder="6" LineWidth="11">
<RoutePoints>
<Point>
<X>834</X>
<Y>464</Y>
<X>851</X>
<Y>497</Y>
</Point>
<Point>
<X>834</X>
<X>851</X>
<Y>536</Y>
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_SchemaCollMacc_AnagSchede" ZOrder="4" LineWidth="11">
<Connector ID="DesignRelation:FK_SchemaCollMacc_AnagSchede" ZOrder="5" LineWidth="11">
<RoutePoints>
<Point>
<X>359</X>
<Y>356</Y>
<Y>332</Y>
</Point>
<Point>
<X>727</X>
<Y>356</Y>
<X>744</X>
<Y>332</Y>
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_SchemaCollMacc_ElencoDossier" ZOrder="3" LineWidth="11">
<Connector ID="DesignRelation:FK_SchemaCollMacc_ElencoDossier" ZOrder="4" LineWidth="11">
<RoutePoints>
<Point>
<X>1068</X>
<Y>306</Y>
<Y>282</Y>
</Point>
<Point>
<X>969</X>
<Y>306</Y>
<X>977</X>
<Y>282</Y>
</Point>
</RoutePoints>
</Connector>
+3
View File
@@ -30,6 +30,7 @@ namespace CMS_SC_Data
taEFM = new DS_ApplicazioneTableAdapters.ElencoFamMaccTableAdapter();
taEM = new DS_ApplicazioneTableAdapters.ElencoMacchineCNTableAdapter();
taSCFM = new DS_ApplicazioneTableAdapters.SchemaCollFamMaccTableAdapter();
taSCM = new DS_ApplicazioneTableAdapters.SchemaCollMaccTableAdapter();
taVV = new DS_ApplicazioneTableAdapters.ValidValTableAdapter();
taVSMacc = new DS_UtilityTableAdapters.v_selMacchineTableAdapter();
}
@@ -48,6 +49,7 @@ namespace CMS_SC_Data
taEFM.Connection.ConnectionString = connStr;
taEM.Connection.ConnectionString = connStr;
taSCFM.Connection.ConnectionString = connStr;
taSCM.Connection.ConnectionString = connStr;
taVV.Connection.ConnectionString = connStr;
taVSMacc.Connection.ConnectionString = connStr;
}
@@ -63,6 +65,7 @@ namespace CMS_SC_Data
public DS_ApplicazioneTableAdapters.ElencoFamMaccTableAdapter taEFM;
public DS_ApplicazioneTableAdapters.ElencoMacchineCNTableAdapter taEM;
public DS_ApplicazioneTableAdapters.SchemaCollFamMaccTableAdapter taSCFM;
public DS_ApplicazioneTableAdapters.SchemaCollMaccTableAdapter taSCM;
public DS_ApplicazioneTableAdapters.ValidValTableAdapter taVV;
public DS_UtilityTableAdapters.v_selMacchineTableAdapter taVSMacc;
Binary file not shown.
Binary file not shown.
Binary file not shown.
-11
View File
@@ -1,11 +0,0 @@
//
// This code was generated by a tool. Any changes made manually will be lost
// the next time this code is regenerated.
//
using System.Reflection;
[assembly: AssemblyVersion("1.1.011.332")]
[assembly: AssemblyFileVersion("1.1.011.332")]
[assembly: AssemblyCopyright("Steamware © 2009-2015")]
[assembly: AssemblyCompany("Steamware")]
+3 -1
View File
@@ -402,6 +402,9 @@
</None>
</ItemGroup>
<ItemGroup>
<Compile Include="..\VersGen\CMS_SC.cs">
<Link>CMS_SC.cs</Link>
</Compile>
<Compile Include="AnagFamMacchine.aspx.cs">
<DependentUpon>AnagFamMacchine.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -446,7 +449,6 @@
<Compile Include="Bootstrap.Master.designer.cs">
<DependentUpon>Bootstrap.Master</DependentUpon>
</Compile>
<Compile Include="CMS_SC.cs" />
<Compile Include="Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+2
View File
@@ -23,10 +23,12 @@
<div class="col-xs-3">
<asp:DropDownList runat="server" ID="ddlSelFamMacc" DataSourceID="odsFamMacc" DataTextField="label" DataValueField="value"></asp:DropDownList>
<asp:ObjectDataSource ID="odsFamMacc" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.v_selFamMaccTableAdapter"></asp:ObjectDataSource>
<asp:Button runat="server" ID="btnAddFromFam" CssClass="btn btn-success" Text='<%# traduci("btnAddFromFam") %>' OnClick="btnAddFromFam_Click" />
</div>
<div class="col-xs-9">
<asp:DropDownList runat="server" ID="ddlSelScheda" DataSourceID="odsScheda" DataTextField="label" DataValueField="value"></asp:DropDownList>
<asp:ObjectDataSource ID="odsScheda" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.v_selSchedaTableAdapter"></asp:ObjectDataSource>
<asp:Button runat="server" ID="btnAddFromScheda" CssClass="btn btn-success" Text='<%# traduci("btnAddFromScheda") %>' OnClick="btnAddFromScheda_Click" />
</div>
</div>
<div class="row">
+37 -1
View File
@@ -1,4 +1,5 @@
using SteamWare;
using CMS_SC_Data;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -17,14 +18,29 @@ namespace CMS_SC
((Bootstrap)this.Master).showSearch = true;
mod_righePag.numRowPag = 20;
mod_elencoDossiers.pageSize = mod_righePag.numRowPag;
btnAddFromFam.DataBind();
btnAddFromScheda.DataBind();
fixBtnVisibility();
}
mod_righePag.eh_newNum += mod_righePag_eh_newNum;
mod_elencoDossiers.eh_selezioneValore += mod_elencoDossiers_eh_selezioneValore;
}
/// <summary>
/// mostra i buttons SE c'è un dossier selezionato
/// </summary>
private void fixBtnVisibility()
{
bool addVisib = mod_elencoDossiers.idxDossier != 0;
ddlSelFamMacc.Visible = addVisib;
ddlSelScheda.Visible = addVisib;
btnAddFromFam.Visible = addVisib;
btnAddFromScheda.Visible = addVisib;
}
void mod_elencoDossiers_eh_selezioneValore(object sender, EventArgs e)
{
mod_elencoSchedeDossier.idxDossier = mod_elencoDossiers.idxDossier.ToString();
fixBtnVisibility();
}
/// <summary>
/// url base area services
@@ -47,6 +63,26 @@ namespace CMS_SC
{
mod_elencoDossiers.pageSize = mod_righePag.numRowPag;
}
/// <summary>
/// aggiungo da fam macc selezionata
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAddFromFam_Click(object sender, EventArgs e)
{
DtProxy.man.taSCM.insByFamMac(mod_elencoDossiers.idxDossier, ddlSelFamMacc.SelectedValue);
mod_elencoSchedeDossier.doUpdate();
}
/// <summary>
/// aggiungo scheda selezionata
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAddFromScheda_Click(object sender, EventArgs e)
{
DtProxy.man.taSCM.insByCodSchedaVers(mod_elencoDossiers.idxDossier, ddlSelScheda.SelectedValue);
mod_elencoSchedeDossier.doUpdate();
}
}
}
+18
View File
@@ -48,6 +48,15 @@ namespace CMS_SC {
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsFamMacc;
/// <summary>
/// btnAddFromFam 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 btnAddFromFam;
/// <summary>
/// ddlSelScheda control.
/// </summary>
@@ -66,6 +75,15 @@ namespace CMS_SC {
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsScheda;
/// <summary>
/// btnAddFromScheda 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 btnAddFromScheda;
/// <summary>
/// mod_elencoSchedeDossier control.
/// </summary>
@@ -34,7 +34,7 @@
<PagerStyle CssClass="bg-primary" />
<SelectedRowStyle CssClass="info" />
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.ElencoDossierTableAdapter" FilterExpression=" Matricola LIKE '%{0}%' ">
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.ElencoDossierTableAdapter" FilterExpression=" Matricola LIKE '%{0}%' OR DescrMacchina LIKE '%{0}%' ">
<FilterParameters>
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="searchVal" />
</FilterParameters>
@@ -4,40 +4,31 @@
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("NoRecords") %>' />
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="IdxDossier" HeaderText="IdxDossier" SortExpression="IdxDossier" ReadOnly="True" />
<%--<asp:BoundField DataField="IdxDossier" HeaderText="IdxDossier" SortExpression="IdxDossier" ReadOnly="True" />--%>
<asp:BoundField DataField="CodScheda" HeaderText="CodScheda" ReadOnly="True" SortExpression="CodScheda" />
<asp:BoundField DataField="Vers" HeaderText="Vers" ReadOnly="True" SortExpression="Vers" />
<asp:BoundField DataField="NumScheda" HeaderText="NumScheda" ReadOnly="True" SortExpression="NumScheda" />
<asp:BoundField DataField="NumScheda" HeaderText="#" ReadOnly="True" SortExpression="NumScheda" />
<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" />
<asp:TemplateField ShowHeader="False" ItemStyle-Wrap="false">
<HeaderTemplate>
</HeaderTemplate>
<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>
<PagerStyle CssClass="bg-primary" />
<SelectedRowStyle CssClass="info" />
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByDossier" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.SchemaCollMaccTableAdapter" DeleteMethod="Delete" InsertMethod="Insert" UpdateMethod="Update">
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByDossier" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.SchemaCollMaccTableAdapter" DeleteMethod="deleteQuery">
<DeleteParameters>
<asp:Parameter Name="Original_IdxDossier" Type="Int32" />
<asp:Parameter Name="Original_CodScheda" Type="String" />
<asp:Parameter Name="Original_Vers" Type="Int32" />
<asp:Parameter Name="Original_NumScheda" Type="Int32" />
<asp:Parameter Name="Original_Descrizione" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="IdxDossier" Type="Int32" />
<asp:Parameter Name="CodScheda" Type="String" />
<asp:Parameter Name="Vers" Type="Int32" />
<asp:Parameter Name="NumScheda" Type="Int32" />
<asp:Parameter Name="Descrizione" Type="String" />
</InsertParameters>
<SelectParameters>
<asp:ControlParameter ControlID="hfIdxDossier" Name="IdxDossier" PropertyName="Value" Type="Int32" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="Descrizione" Type="String" />
<asp:Parameter Name="Original_IdxDossier" Type="Int32" />
<asp:Parameter Name="Original_CodScheda" Type="String" />
<asp:Parameter Name="Original_Vers" Type="Int32" />
<asp:Parameter Name="Original_NumScheda" Type="Int32" />
<asp:Parameter Name="Original_Descrizione" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hfIdxDossier" />
@@ -59,6 +59,10 @@ namespace CMS_SC.WebUserControls
grView.DataBind();
}
}
public void doUpdate()
{
grView.DataBind();
}
/// <summary>
/// selezione scheda...
/// </summary>
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.4.035.336")]
[assembly: AssemblyFileVersion("1.4.035.336")]
[assembly: AssemblyVersion("1.5.037.336")]
[assembly: AssemblyFileVersion("1.5.037.336")]
[assembly: AssemblyCopyright("Steamware © 2009-2015")]
[assembly: AssemblyCompany("Steamware")]
+2 -2
View File
@@ -6,8 +6,8 @@
using System.Reflection;
[assembly: AssemblyVersion("1.4.035.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("1.4.035.<#= this.RevisionNumber #>")]
[assembly: AssemblyVersion("1.5.037.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("1.5.037.<#= this.RevisionNumber #>")]
[assembly: AssemblyCopyright("Steamware © 2009-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]
<#+
Binary file not shown.