Inserito e ristilizzato list value mgmt

This commit is contained in:
Samuele E. Locatelli
2015-06-18 16:32:43 +02:00
parent ef2ca92448
commit b92d8a3d51
28 changed files with 1910 additions and 31 deletions
+1210
View File
File diff suppressed because it is too large Load Diff
+179 -6
View File
@@ -159,6 +159,138 @@
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ListValuesTableAdapter" GeneratorDataComponentClassName="ListValuesTableAdapter" Name="ListValues" UserDataComponentName="ListValuesTableAdapter">
<MainSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.ListValues" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" 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">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[ListValues] WHERE (([TableName] = @Original_TableName) AND ([FieldName] = @Original_FieldName) AND ([value] = @Original_value) AND ((@IsNull_label = 1 AND [label] IS NULL) OR ([label] = @Original_label)) AND ((@IsNull_ordinal = 1 AND [ordinal] IS NULL) OR ([ordinal] = @Original_ordinal)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FieldName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_value" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="value" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_label" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[ListValues] ([TableName], [FieldName], [value], [label], [ordinal]) VALUES (@TableName, @FieldName, @value, @label, @ordinal);
SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldName = @FieldName) AND (TableName = @TableName) AND (value = @value)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FieldName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@value" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="value" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT TableName, FieldName, value, label, ordinal FROM dbo.ListValues</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[ListValues] SET [TableName] = @TableName, [FieldName] = @FieldName, [value] = @value, [label] = @label, [ordinal] = @ordinal WHERE (([TableName] = @Original_TableName) AND ([FieldName] = @Original_FieldName) AND ([value] = @Original_value) AND ((@IsNull_label = 1 AND [label] IS NULL) OR ([label] = @Original_label)) AND ((@IsNull_ordinal = 1 AND [ordinal] IS NULL) OR ([ordinal] = @Original_ordinal)));
SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldName = @FieldName) AND (TableName = @TableName) AND (value = @value)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FieldName" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@value" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="value" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TableName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TableName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FieldName" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_value" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="value" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_label" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="label" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ordinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ordinal" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="TableName" DataSetColumn="TableName" />
<Mapping SourceColumn="FieldName" DataSetColumn="FieldName" />
<Mapping SourceColumn="value" DataSetColumn="value" />
<Mapping SourceColumn="label" DataSetColumn="label" />
<Mapping SourceColumn="ordinal" DataSetColumn="ordinal" />
</Mappings>
<Sources>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_listValues_delete" 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="GetDataBy" UserSourceName="deleteQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_listValues_delete</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="@Original_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="@Original_FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_value" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_listValues_getByTable" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByTable" GetMethodModifier="Public" GetMethodName="getByTable" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByTable" UserSourceName="getByTable">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_listValues_getByTable</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" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_listValues_getDistTable" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getDistTableName" GetMethodModifier="Public" GetMethodName="getDistTableName" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getDistTableName" UserSourceName="getDistTableName">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_listValues_getDistTable</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" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_listValues_insNew" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="insertQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_listValues_insNew</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" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@value" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@label" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ordinal" 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_listValues_update" DbObjectType="StoredProcedure" 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="GetDataBy2" UserSourceName="updateQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_listValues_update</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="@Original_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="@Original_FieldName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_value" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@label" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ordinal" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -167,7 +299,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_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: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: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">
@@ -187,7 +319,7 @@
</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:element name="v_selListVal" msprop:Generator_TableClassName="v_selListValDataTable" msprop:Generator_TableVarName="tablev_selListVal" msprop:Generator_RowChangedName="v_selListValRowChanged" 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_RowClassName="v_selListValRow" msprop:Generator_UserTableName="v_selListVal" msprop:Generator_RowEvArgName="v_selListValRowChangeEvent">
<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">
@@ -207,7 +339,7 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selFamMacc" msprop:Generator_TableClassName="v_selFamMaccDataTable" msprop:Generator_TableVarName="tablev_selFamMacc" msprop:Generator_RowChangedName="v_selFamMaccRowChanged" msprop:Generator_TablePropName="v_selFamMacc" msprop:Generator_RowDeletingName="v_selFamMaccRowDeleting" msprop:Generator_RowChangingName="v_selFamMaccRowChanging" msprop:Generator_RowEvHandlerName="v_selFamMaccRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selFamMaccRowDeleted" msprop:Generator_RowClassName="v_selFamMaccRow" msprop:Generator_UserTableName="v_selFamMacc" msprop:Generator_RowEvArgName="v_selFamMaccRowChangeEvent">
<xs:element name="v_selFamMacc" msprop:Generator_TableClassName="v_selFamMaccDataTable" msprop:Generator_TableVarName="tablev_selFamMacc" msprop:Generator_TablePropName="v_selFamMacc" msprop:Generator_RowDeletingName="v_selFamMaccRowDeleting" msprop:Generator_RowChangingName="v_selFamMaccRowChanging" msprop:Generator_RowEvHandlerName="v_selFamMaccRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selFamMaccRowDeleted" msprop:Generator_UserTableName="v_selFamMacc" msprop:Generator_RowChangedName="v_selFamMaccRowChanged" msprop:Generator_RowEvArgName="v_selFamMaccRowChangeEvent" msprop:Generator_RowClassName="v_selFamMaccRow">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value">
@@ -227,7 +359,7 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selMacchine" msprop:Generator_TableClassName="v_selMacchineDataTable" msprop:Generator_TableVarName="tablev_selMacchine" msprop:Generator_TablePropName="v_selMacchine" msprop:Generator_RowDeletingName="v_selMacchineRowDeleting" msprop:Generator_RowChangingName="v_selMacchineRowChanging" msprop:Generator_RowEvHandlerName="v_selMacchineRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selMacchineRowDeleted" msprop:Generator_UserTableName="v_selMacchine" msprop:Generator_RowChangedName="v_selMacchineRowChanged" msprop:Generator_RowEvArgName="v_selMacchineRowChangeEvent" msprop:Generator_RowClassName="v_selMacchineRow">
<xs:element name="v_selMacchine" msprop:Generator_TableClassName="v_selMacchineDataTable" msprop:Generator_TableVarName="tablev_selMacchine" msprop:Generator_RowChangedName="v_selMacchineRowChanged" msprop:Generator_TablePropName="v_selMacchine" msprop:Generator_RowDeletingName="v_selMacchineRowDeleting" msprop:Generator_RowChangingName="v_selMacchineRowChanging" msprop:Generator_RowEvHandlerName="v_selMacchineRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selMacchineRowDeleted" msprop:Generator_RowClassName="v_selMacchineRow" msprop:Generator_UserTableName="v_selMacchine" msprop:Generator_RowEvArgName="v_selMacchineRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value">
@@ -247,7 +379,7 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selElencoDossier" msprop:Generator_TableClassName="v_selElencoDossierDataTable" msprop:Generator_TableVarName="tablev_selElencoDossier" msprop:Generator_TablePropName="v_selElencoDossier" msprop:Generator_RowDeletingName="v_selElencoDossierRowDeleting" msprop:Generator_RowChangingName="v_selElencoDossierRowChanging" msprop:Generator_RowEvHandlerName="v_selElencoDossierRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selElencoDossierRowDeleted" msprop:Generator_UserTableName="v_selElencoDossier" msprop:Generator_RowChangedName="v_selElencoDossierRowChanged" msprop:Generator_RowEvArgName="v_selElencoDossierRowChangeEvent" msprop:Generator_RowClassName="v_selElencoDossierRow">
<xs:element name="v_selElencoDossier" msprop:Generator_TableClassName="v_selElencoDossierDataTable" msprop:Generator_TableVarName="tablev_selElencoDossier" msprop:Generator_RowChangedName="v_selElencoDossierRowChanged" msprop:Generator_TablePropName="v_selElencoDossier" msprop:Generator_RowDeletingName="v_selElencoDossierRowDeleting" msprop:Generator_RowChangingName="v_selElencoDossierRowChanging" msprop:Generator_RowEvHandlerName="v_selElencoDossierRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selElencoDossierRowDeleted" msprop:Generator_RowClassName="v_selElencoDossierRow" msprop:Generator_UserTableName="v_selElencoDossier" msprop:Generator_RowEvArgName="v_selElencoDossierRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" type="xs:int" />
@@ -268,7 +400,7 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selFasi" msprop:Generator_TableClassName="v_selFasiDataTable" msprop:Generator_TableVarName="tablev_selFasi" msprop:Generator_TablePropName="v_selFasi" msprop:Generator_RowDeletingName="v_selFasiRowDeleting" msprop:Generator_RowChangingName="v_selFasiRowChanging" msprop:Generator_RowEvHandlerName="v_selFasiRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selFasiRowDeleted" msprop:Generator_UserTableName="v_selFasi" msprop:Generator_RowChangedName="v_selFasiRowChanged" msprop:Generator_RowEvArgName="v_selFasiRowChangeEvent" msprop:Generator_RowClassName="v_selFasiRow">
<xs:element name="v_selFasi" msprop:Generator_TableClassName="v_selFasiDataTable" msprop:Generator_TableVarName="tablev_selFasi" msprop:Generator_RowChangedName="v_selFasiRowChanged" msprop:Generator_TablePropName="v_selFasi" msprop:Generator_RowDeletingName="v_selFasiRowDeleting" msprop:Generator_RowChangingName="v_selFasiRowChanging" msprop:Generator_RowEvHandlerName="v_selFasiRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selFasiRowDeleted" msprop:Generator_RowClassName="v_selFasiRow" msprop:Generator_UserTableName="v_selFasi" msprop:Generator_RowEvArgName="v_selFasiRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value">
@@ -288,6 +420,41 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ListValues" msprop:Generator_TableClassName="ListValuesDataTable" msprop:Generator_TableVarName="tableListValues" msprop:Generator_TablePropName="ListValues" msprop:Generator_RowDeletingName="ListValuesRowDeleting" msprop:Generator_RowChangingName="ListValuesRowChanging" msprop:Generator_RowEvHandlerName="ListValuesRowChangeEventHandler" msprop:Generator_RowDeletedName="ListValuesRowDeleted" msprop:Generator_UserTableName="ListValues" msprop:Generator_RowChangedName="ListValuesRowChanged" msprop:Generator_RowEvArgName="ListValuesRowChangeEvent" msprop:Generator_RowClassName="ListValuesRow">
<xs:complexType>
<xs:sequence>
<xs:element name="TableName" msprop:Generator_ColumnVarNameInTable="columnTableName" msprop:Generator_ColumnPropNameInRow="TableName" msprop:Generator_ColumnPropNameInTable="TableNameColumn" msprop:Generator_UserColumnName="TableName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FieldName" msprop:Generator_ColumnVarNameInTable="columnFieldName" msprop:Generator_ColumnPropNameInRow="FieldName" msprop:Generator_ColumnPropNameInTable="FieldNameColumn" msprop:Generator_UserColumnName="FieldName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</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:element name="ordinal" msprop:Generator_ColumnVarNameInTable="columnordinal" msprop:Generator_ColumnPropNameInRow="ordinal" msprop:Generator_ColumnPropNameInTable="ordinalColumn" msprop:Generator_UserColumnName="ordinal" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -306,5 +473,11 @@
<xs:selector xpath=".//mstns:v_selFasi" />
<xs:field xpath="mstns:value" />
</xs:unique>
<xs:unique name="ListValues_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:ListValues" />
<xs:field xpath="mstns:TableName" />
<xs:field xpath="mstns:FieldName" />
<xs:field xpath="mstns:value" />
</xs:unique>
</xs:element>
</xs:schema>
+7 -6
View File
@@ -6,12 +6,13 @@
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" 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="2" X="149" Y="312" Height="134" Width="213" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selListVal" ZOrder="6" X="428" Y="203" Height="134" Width="269" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selFamMacc" ZOrder="5" X="791" Y="264" Height="115" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selMacchine" ZOrder="4" X="1023" Y="274" Height="134" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selElencoDossier" ZOrder="3" X="157" Y="502" Height="153" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_selFasi" ZOrder="1" X="554" Y="507" Height="115" Width="194" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selScheda" ZOrder="3" X="149" Y="312" Height="134" Width="213" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selListVal" ZOrder="7" X="428" Y="203" Height="134" Width="269" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selFamMacc" ZOrder="6" X="791" Y="264" Height="115" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selMacchine" ZOrder="5" X="1023" Y="274" Height="134" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selElencoDossier" ZOrder="4" X="157" Y="502" Height="153" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_selFasi" ZOrder="2" X="554" Y="507" Height="115" Width="194" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ListValues" ZOrder="1" X="797" Y="572" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
</Shapes>
<Connectors />
</DiagramLayout>
+3
View File
@@ -33,6 +33,7 @@ namespace CMS_SC_Data
taSCFM = new DS_ApplicazioneTableAdapters.SchemaCollFamMaccTableAdapter();
taSCM = new DS_ApplicazioneTableAdapters.SchemaCollMaccTableAdapter();
taVV = new DS_ApplicazioneTableAdapters.ValidValTableAdapter();
taListVal = new DS_UtilityTableAdapters.ListValuesTableAdapter();
taVSMacc = new DS_UtilityTableAdapters.v_selMacchineTableAdapter();
}
/// <summary>
@@ -53,6 +54,7 @@ namespace CMS_SC_Data
taSCFM.Connection.ConnectionString = connStr;
taSCM.Connection.ConnectionString = connStr;
taVV.Connection.ConnectionString = connStr;
taListVal.Connection.ConnectionString = connStr;
taVSMacc.Connection.ConnectionString = connStr;
}
@@ -70,6 +72,7 @@ namespace CMS_SC_Data
public DS_ApplicazioneTableAdapters.SchemaCollFamMaccTableAdapter taSCFM;
public DS_ApplicazioneTableAdapters.SchemaCollMaccTableAdapter taSCM;
public DS_ApplicazioneTableAdapters.ValidValTableAdapter taVV;
public DS_UtilityTableAdapters.ListValuesTableAdapter taListVal;
public DS_UtilityTableAdapters.v_selMacchineTableAdapter taVSMacc;
public static DtProxy man = new DtProxy();
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+9
View File
@@ -301,6 +301,7 @@
<Content Include="Files\Schede\Cg0060-2.doc" />
<Content Include="Files\Schede\Cg0063-2.doc" />
<Content Include="Files\Schede\Cg0175-1.pdf" />
<Content Include="imagecache\PlaceHolder.file" />
<None Include="Scripts\jquery-2.1.4.intellisense.js" />
<Content Include="ReportCliente.aspx" />
<Content Include="ReportCompatto.aspx" />
@@ -353,6 +354,7 @@
<Content Include="WebUserControls\mod_enrollByJumperAuthKey.ascx" />
<Content Include="WebUserControls\mod_fileUploader.ascx" />
<Content Include="WebUserControls\mod_lemmiVocab.ascx" />
<Content Include="WebUserControls\mod_listValues.ascx" />
<Content Include="WebUserControls\mod_ricercaGenerica.ascx" />
<Content Include="WebUserControls\mod_righePag.ascx" />
<Content Include="WebUserControls\mod_SchemaCollFamMacc.ascx" />
@@ -704,6 +706,13 @@
<Compile Include="WebUserControls\mod_lemmiVocab.ascx.designer.cs">
<DependentUpon>mod_lemmiVocab.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_listValues.ascx.cs">
<DependentUpon>mod_listValues.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_listValues.ascx.designer.cs">
<DependentUpon>mod_listValues.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_ricercaGenerica.ascx.cs">
<DependentUpon>mod_ricercaGenerica.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+1 -1
View File
@@ -5337,7 +5337,7 @@ a.list-group-item-danger.active:focus {
}
.panel-footer {
padding: 10px 15px;
background-color: #ffffff;
background-color: #f5f5f5;
border-top: 1px solid #dddddd;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -704,7 +704,7 @@
//== Border color for elements within panels
@panel-inner-border: #ddd;
@panel-footer-bg: #fff;
@panel-footer-bg: #999;
@panel-default-text: @gray-dark;
@panel-default-border: #ddd;
+1 -1
View File
@@ -3,7 +3,7 @@
<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
<div class="row" style="margin-top: -10px;">
<div class="col-xs-6" style="color: #ee8800; padding: 10px 30px; text-align: left;">
<img src="Images/LogoCms.png?h=120&w=480" alt="Costimate" class="img-responsive" />
<img src="Images/LogoCms.png?h=120&w=480" alt="CMS" class="img-responsive" />
</div>
<div class="col-xs-6" style="color: #ee8800; padding: 10px 30px; float: right;">
<img src="Images/LogoHomeDx.png?h=120&w=480" alt="" class="img-responsive" />
+24 -2
View File
@@ -1,8 +1,30 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Bootstrap.Master" AutoEventWireup="true" CodeBehind="ListValues.aspx.cs" Inherits="CMS_SC.ListValues" %>
<%@ Page Language="C#" MasterPageFile="~/Bootstrap.master" AutoEventWireup="true" CodeBehind="listValues.aspx.cs" Inherits="CMS_SC.listValues" Title="List Values" %>
<%@ Register Src="WebUserControls/mod_listValues.ascx" TagName="mod_listValues" TagPrefix="uc1" %>
<%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagName="mod_righePag" TagPrefix="uc3" %>
<%@ Register Src="~/WebUserControls/mod_ricercaGenerica.ascx" TagPrefix="uc4" TagName="mod_ricercaGenerica" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<img src="Images/WorkInProgress.jpg" alt="" />
<div class="container-fluid" style="padding-top: 2px; padding-bottom: 2px;">
<div class="container">
<div class="row panel panel-default">
<div class="col-sm-12 panel-heading">
<h3 class="panel-title"><%: traduci("ListValuesMgmt") %></h3>
</div>
<div class="col-sm-12">
<uc1:mod_listValues ID="mod_listValues1" runat="server" />
</div>
<div class="col-sm-12 panel-footer">
<uc3:mod_righePag ID="mod_righePag1" runat="server" />
</div>
</div>
</div>
</div>
</asp:Content>
+36 -5
View File
@@ -1,17 +1,48 @@
using System;
using System.Collections.Generic;
using SteamWare;
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace CMS_SC
{
public partial class ListValues : System.Web.UI.Page
public partial class listValues : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
((Bootstrap)this.Master).showSearch = true;
mod_righePag1.numRowPag = 20;
mod_listValues1.pageSize = mod_righePag1.numRowPag;
}
mod_righePag1.eh_newNum += mod_righePag1_eh_newNum;
}
/// <summary>
/// aggiornato numero righe datagrid... aggiorno visualizzazione
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_righePag1_eh_newNum(object sender, EventArgs e)
{
mod_listValues1.pageSize = mod_righePag1.numRowPag;
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
}
}
}
}
+23 -7
View File
@@ -3,15 +3,31 @@
// 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
{
public partial class ListValues
{
namespace CMS_SC {
public partial class listValues {
/// <summary>
/// mod_listValues1 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_listValues mod_listValues1;
/// <summary>
/// mod_righePag1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_righePag mod_righePag1;
}
}
+136
View File
@@ -0,0 +1,136 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_listValues.ascx.cs"
Inherits="CMS_SC.WebUserControls.mod_listValues" %>
<div class="row" style="font-size: 8pt; margin-top: 5px;">
<div class="col-sm-2">
<div class="input-group input-group-sm">
<div class="input-group-btn">
<asp:DropDownList ID="ddlTable" runat="server" AutoPostBack="True" CssClass="btn btn-default dropdown-toggle" Font-Size="X-Small" DataSourceID="odsTableName" DataTextField="TableName" DataValueField="TableName" AppendDataBoundItems="true" OnSelectedIndexChanged="ddlTable_SelectedIndexChanged">
<asp:ListItem Value="" Selected="True">--- Select ---</asp:ListItem>
</asp:DropDownList>
</div>
</div>
</div>
<div class="col-sm-2">
<asp:LinkButton ID="lbShowNew" runat="server" OnClick="btnShowInsert" CssClass="btn btn-default">
<i class="glyphicon glyphicon-plus"></i>
<asp:Label ID="lblBtnShowNew" runat="server" Text="..." />
</asp:LinkButton>
</div>
<div class="col-sm-8" style="height: 5em;">
<div runat="server" id="divInsert">
<div class="col-sm-3">
<%: traduci("TableName") %>:
<asp:TextBox runat="server" ID="txtTableName" />
</div>
<div class="col-sm-3">
<%: traduci("FieldName") %>:
<asp:TextBox runat="server" ID="txtFieldName" />
</div>
<div class="col-sm-3">
<%: traduci("value") %>:
<asp:TextBox runat="server" ID="txtvalue" />
</div>
<div class="col-sm-3">
<asp:LinkButton ID="btnDoInsert" runat="server" CssClass="btn btn-default" OnClick="btnDoInsert_Click">
<i class="glyphicon glyphicon-plus"></i>
<%: traduci("insertNew") %>
</asp:LinkButton>
</div>
</div>
</div>
<div class="col-sm-12">
<asp:GridView ID="grView" runat="server" DataSourceID="ods" AllowPaging="True" AllowSorting="True"
DataKeyNames="TableName,FieldName,value" AutoGenerateColumns="False" CssClass="table table-striped table-bordered"
OnDataBound="grView_DataBound">
<EmptyDataTemplate>
<h3>
<asp:Label runat="server" ID="lblNoRes" Text='<%# traduci("NoResultsFound") %>' />
</h3>
<asp:Label runat="server" ID="Label4" Text='<%# traduci("PleaseSelectFromList") %>' />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
<EditItemTemplate>
<asp:LinkButton runat="server" ID="lbUpdate" CausesValidation="true" CommandName="Update"><i class="fa fa-check fa-2x"></i></asp:LinkButton><asp:LinkButton runat="server" ID="lbCancel" CausesValidation="false" CommandName="Cancel"><i class="fa fa-undo fa-2x"></i></asp:LinkButton>
</EditItemTemplate>
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbEdit" CausesValidation="false" CommandName="Edit"><i class="fa fa-edit fa-2x"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="TableName" HeaderText="TableName" ReadOnly="True" SortExpression="TableName" />
<asp:BoundField DataField="FieldName" HeaderText="FieldName" ReadOnly="True" SortExpression="FieldName" />
<asp:BoundField DataField="value" HeaderText="value" ReadOnly="True" SortExpression="value" />
<asp:TemplateField HeaderText="label" SortExpression="label">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("label") %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("label") %>' />
</ItemTemplate>
<FooterTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("label") %>' Width="20em" />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="ordinal" SortExpression="ordinal">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("ordinal") %>' Width="3em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("ordinal") %>' />
</ItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtordinal" runat="server" Text='<%# Bind("ordinal") %>' Width="3em" />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
<HeaderTemplate>
<%--<asp:LinkButton ID="lbtReset" runat="server" OnClick="btnShowFooter" CssClass="btn btn-default" Visible="true"><i class="glyphicon glyphicon-plus"></i> <%: traduci("btnNewListVal") %></asp:LinkButton>--%>
</HeaderTemplate>
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbDelete" CausesValidation="false" CommandName="Delete" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaDel") %>'><i class="fa fa-trash-o fa-2x"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
<asp:ObjectDataSource ID="ods" runat="server" InsertMethod="insertQuery"
OldValuesParameterFormatString="Original_{0}" SelectMethod="getByTable" FilterExpression=" (value like '%{0}%' OR label like '%{0}%' OR (CONVERT(ordinal, 'System.String') LIKE '%{0}%')) "
TypeName="CMS_SC_Data.DS_UtilityTableAdapters.ListValuesTableAdapter" DeleteMethod="deleteQuery" UpdateMethod="updateQuery">
<SelectParameters>
<asp:ControlParameter ControlID="ddlTable" PropertyName="SelectedValue" Name="TableName"
DefaultValue="" Type="String" />
</SelectParameters>
<DeleteParameters>
<asp:Parameter Name="Original_TableName" Type="String" />
<asp:Parameter Name="Original_FieldName" Type="String" />
<asp:Parameter Name="Original_value" Type="String" />
</DeleteParameters>
<FilterParameters>
<asp:SessionParameter Type="String" Name="valore" SessionField="searchVal" />
</FilterParameters>
<InsertParameters>
<asp:Parameter Name="TableName" Type="String" />
<asp:Parameter Name="FieldName" Type="String" />
<asp:Parameter Name="value" Type="String" />
<asp:Parameter Name="label" Type="String" />
<asp:Parameter Name="ordinal" Type="Int32" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="label" Type="String" />
<asp:Parameter Name="ordinal" Type="Int32" />
<asp:Parameter Name="Original_TableName" Type="String" />
<asp:Parameter Name="Original_FieldName" Type="String" />
<asp:Parameter Name="Original_value" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="odsTableName" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getDistTableName" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.ListValuesTableAdapter"></asp:ObjectDataSource>
</div>
</div>
@@ -0,0 +1,146 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace CMS_SC.WebUserControls
{
public partial class mod_listValues : System.Web.UI.UserControl
{
/// <summary>
/// caricamento pagina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
lbShowNew.Enabled = true;
lblBtnShowNew.Text = traduci("btnNewListVal");
divInsert.Visible = false;
}
}
/// <summary>
/// dimensione pagina grid view
/// </summary>
public int pageSize
{
get
{
return grView.PageSize;
}
set
{
grView.PageSize = value;
}
}
/// <summary>
/// effettua traduzione del lemma
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
}
/// <summary>
/// effettuo update
/// </summary>
private void doUpdate()
{
}
/// <summary>
/// reset selezione
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnReset_Click(object sender, EventArgs e)
{
// deseleziono e nascondo pnl statistiche...
grView.SelectedIndex = -1;
}
/// <summary>
/// mostra footer
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnShowInsert(object sender, EventArgs e)
{
// SE HO SELEZIONATO UN VALORE!!!
if (ddlTable.SelectedIndex > 0)
{
// inverto visibilità insert nuovi valori
divInsert.Visible = !divInsert.Visible;
if (divInsert.Visible)
{
lblBtnShowNew.Text = traduci("btnHideNewListVal");
// precompilo valori tabella
txtTableName.Text = ddlTable.SelectedValue;
}
else
{
lblBtnShowNew.Text = traduci("btnNewListVal");
}
}
}
/// <summary>
/// evento post "aggancio" del grView x traduzione headers
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_DataBound(object sender, EventArgs e)
{
if (grView.Rows.Count > 0)
{
LinkButton lb;
// aggiorno gli headers
foreach (TableCell cella in grView.HeaderRow.Cells)
{
try
{
lb = (LinkButton)cella.Controls[0];
lb.Text = traduci(lb.Text);
}
catch
{ }
}
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
}
else
{
lblNumRec.Text = "";
}
}
protected void ddlTable_SelectedIndexChanged(object sender, EventArgs e)
{
// se seleziono valore "vuoto" resetto...
if (ddlTable.SelectedIndex == 0)
{
lblBtnShowNew.Text = traduci("btnNewListVal");
divInsert.Visible = false;
}
else
{
txtTableName.Text = ddlTable.SelectedValue;
}
}
protected void btnDoInsert_Click(object sender, EventArgs e)
{
// effettua insert!
CMS_SC_Data.DtProxy.man.taListVal.insertQuery(txtTableName.Text.Trim(), txtFieldName.Text.Trim(), txtvalue.Text.Trim(), txtvalue.Text.Trim(), 999);
// refresh dati!
grView.DataBind();
}
}
}
+132
View File
@@ -0,0 +1,132 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CMS_SC.WebUserControls {
public partial class mod_listValues {
/// <summary>
/// ddlTable 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.DropDownList ddlTable;
/// <summary>
/// lbShowNew 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.LinkButton lbShowNew;
/// <summary>
/// lblBtnShowNew 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.Label lblBtnShowNew;
/// <summary>
/// divInsert control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divInsert;
/// <summary>
/// txtTableName 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.TextBox txtTableName;
/// <summary>
/// txtFieldName 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.TextBox txtFieldName;
/// <summary>
/// txtvalue 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.TextBox txtvalue;
/// <summary>
/// btnDoInsert 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.LinkButton btnDoInsert;
/// <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>
/// lblNumRec 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.Label lblNumRec;
/// <summary>
/// lblWarning 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.Label lblWarning;
/// <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>
/// odsTableName 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 odsTableName;
}
}
+1 -1
View File
@@ -13,7 +13,7 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" id="A4" runat="server" href="~/Default">
<img src="~/Images/LogoCms.png?h=70&w=160&mode=max" alt="Costimate" class="img-responsive" runat="server" id="imgLogo" />
<img src="~/Images/LogoCms.png?h=70&w=160&mode=max" alt="CMS" class="img-responsive" runat="server" id="imgLogo" />
</a>
<div class="subnavbar">
<div class="subnavbar-inner">
Binary file not shown.
Binary file not shown.
Binary file not shown.