test selettore date internazionalizzato!
This commit is contained in:
Generated
+1174
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="DS_utilsProjEts" targetNamespace="http://tempuri.org/DS_utilsProjEts.xsd" xmlns:mstns="http://tempuri.org/DS_utilsProjEts.xsd" xmlns="http://tempuri.org/DS_utilsProjEts.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||
<xs:annotation>
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ETS_PROJConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ETS_PROJConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.ETS_Data.Properties.Settings.GlobalReference.Default.ETS_PROJConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selClientiTableAdapter" GeneratorDataComponentClassName="v_selClientiTableAdapter" Name="v_selClienti" UserDataComponentName="v_selClientiTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="ETS_PROJConnectionString (Settings)" DbObjectName="[ETS-PROJ].dbo.v_selClienti" 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_selClienti</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DS_utilsProjEts" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_utilsProjEts" msprop:Generator_UserDSName="DS_utilsProjEts">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="v_selClienti" msprop:Generator_TableClassName="v_selClientiDataTable" msprop:Generator_TableVarName="tablev_selClienti" msprop:Generator_TablePropName="v_selClienti" msprop:Generator_RowDeletingName="v_selClientiRowDeleting" msprop:Generator_RowChangingName="v_selClientiRowChanging" msprop:Generator_RowEvHandlerName="v_selClientiRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selClientiRowDeleted" msprop:Generator_UserTableName="v_selClienti" msprop:Generator_RowChangedName="v_selClientiRowChanged" msprop:Generator_RowEvArgName="v_selClientiRowChangeEvent" msprop:Generator_RowClassName="v_selClientiRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" type="xs:int" />
|
||||
<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="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:v_selClienti" />
|
||||
<xs:field xpath="mstns:value" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
Generated
+1781
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
@@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="Ds_ProjEts" targetNamespace="http://tempuri.org/Ds_ProjEts.xsd" xmlns:mstns="http://tempuri.org/Ds_ProjEts.xsd" xmlns="http://tempuri.org/Ds_ProjEts.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||
<xs:annotation>
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ETS_PROJConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ETS_PROJConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.ETS_Data.Properties.Settings.GlobalReference.Default.ETS_PROJConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagProgettiTableAdapter" GeneratorDataComponentClassName="AnagProgettiTableAdapter" Name="AnagProgetti" UserDataComponentName="AnagProgettiTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="ETS_PROJConnectionString (Settings)" DbObjectName="[ETS-PROJ].dbo.stp_AP_Expl_getData" DbObjectType="StoredProcedure" 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="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AP_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="int" DbType="Int32" Direction="Input" ParameterName="@Original_idxProgetto" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxProgetto" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AP_insertQuery</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="@idxCliente" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxCliente" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@nomeProj" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="nomeProj" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@descrProj" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumn="descrProj" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AP_Expl_getData</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="@idxDipendente" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@dataFrom" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@dataTo" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxCliente" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@showPrjArch" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@showPrjZeroH" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AP_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="int" DbType="Int32" Direction="Input" ParameterName="@idxCliente" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxCliente" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@nomeProj" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="nomeProj" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@descrProj" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumn="descrProj" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idxProgetto" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxProgetto" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="idxProgetto" DataSetColumn="idxProgetto" />
|
||||
<Mapping SourceColumn="idxCliente" DataSetColumn="idxCliente" />
|
||||
<Mapping SourceColumn="nomeProj" DataSetColumn="nomeProj" />
|
||||
<Mapping SourceColumn="descrProj" DataSetColumn="descrProj" />
|
||||
<Mapping SourceColumn="OldIdx" DataSetColumn="OldIdx" />
|
||||
<Mapping SourceColumn="Attivo" DataSetColumn="Attivo" />
|
||||
<Mapping SourceColumn="codExt" DataSetColumn="codExt" />
|
||||
<Mapping SourceColumn="avvio" DataSetColumn="avvio" />
|
||||
<Mapping SourceColumn="chiusura" DataSetColumn="chiusura" />
|
||||
<Mapping SourceColumn="RagSociale" DataSetColumn="RagSociale" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="Ds_ProjEts" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="Ds_ProjEts" msprop:Generator_UserDSName="Ds_ProjEts">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="AnagProgetti" msprop:Generator_TableClassName="AnagProgettiDataTable" msprop:Generator_TableVarName="tableAnagProgetti" msprop:Generator_TablePropName="AnagProgetti" msprop:Generator_RowDeletingName="AnagProgettiRowDeleting" msprop:Generator_RowChangingName="AnagProgettiRowChanging" msprop:Generator_RowEvHandlerName="AnagProgettiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagProgettiRowDeleted" msprop:Generator_UserTableName="AnagProgetti" msprop:Generator_RowChangedName="AnagProgettiRowChanged" msprop:Generator_RowEvArgName="AnagProgettiRowChangeEvent" msprop:Generator_RowClassName="AnagProgettiRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxProgetto" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxProgetto" msprop:Generator_ColumnPropNameInRow="idxProgetto" msprop:Generator_ColumnPropNameInTable="idxProgettoColumn" msprop:Generator_UserColumnName="idxProgetto" type="xs:int" />
|
||||
<xs:element name="idxCliente" msprop:Generator_ColumnVarNameInTable="columnidxCliente" msprop:Generator_ColumnPropNameInRow="idxCliente" msprop:Generator_ColumnPropNameInTable="idxClienteColumn" msprop:Generator_UserColumnName="idxCliente" type="xs:int" />
|
||||
<xs:element name="nomeProj" msprop:Generator_ColumnVarNameInTable="columnnomeProj" msprop:Generator_ColumnPropNameInRow="nomeProj" msprop:Generator_ColumnPropNameInTable="nomeProjColumn" msprop:Generator_UserColumnName="nomeProj">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="descrProj" msprop:Generator_ColumnVarNameInTable="columndescrProj" msprop:Generator_ColumnPropNameInRow="descrProj" msprop:Generator_ColumnPropNameInTable="descrProjColumn" msprop:Generator_UserColumnName="descrProj" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="OldIdx" msprop:Generator_ColumnVarNameInTable="columnOldIdx" msprop:Generator_ColumnPropNameInRow="OldIdx" msprop:Generator_ColumnPropNameInTable="OldIdxColumn" msprop:Generator_UserColumnName="OldIdx" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="Attivo" msprop:Generator_ColumnVarNameInTable="columnAttivo" msprop:Generator_ColumnPropNameInRow="Attivo" msprop:Generator_ColumnPropNameInTable="AttivoColumn" msprop:Generator_UserColumnName="Attivo" type="xs:boolean" />
|
||||
<xs:element name="codExt" msprop:Generator_ColumnVarNameInTable="columncodExt" msprop:Generator_ColumnPropNameInRow="codExt" msprop:Generator_ColumnPropNameInTable="codExtColumn" msprop:Generator_UserColumnName="codExt" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="avvio" msprop:Generator_ColumnVarNameInTable="columnavvio" msprop:Generator_ColumnPropNameInRow="avvio" msprop:Generator_ColumnPropNameInTable="avvioColumn" msprop:Generator_UserColumnName="avvio" type="xs:dateTime" minOccurs="0" />
|
||||
<xs:element name="chiusura" msprop:Generator_ColumnVarNameInTable="columnchiusura" msprop:Generator_ColumnPropNameInRow="chiusura" msprop:Generator_ColumnPropNameInTable="chiusuraColumn" msprop:Generator_UserColumnName="chiusura" type="xs:dateTime" minOccurs="0" />
|
||||
<xs:element name="RagSociale" msprop:Generator_ColumnVarNameInTable="columnRagSociale" msprop:Generator_ColumnPropNameInRow="RagSociale" msprop:Generator_ColumnPropNameInTable="RagSocialeColumn" msprop:Generator_UserColumnName="RagSociale" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:AnagProgetti" />
|
||||
<xs:field xpath="mstns:idxProgetto" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -86,11 +86,21 @@
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_Anagrafica.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Ds_ProjEts.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Ds_ProjEts.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_utils.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_utils.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_utilsProjEts.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_utilsProjEts.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_WebScip.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
@@ -129,6 +139,17 @@
|
||||
<None Include="DS_Anagrafica.xss">
|
||||
<DependentUpon>DS_Anagrafica.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="Ds_ProjEts.xsc">
|
||||
<DependentUpon>Ds_ProjEts.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="Ds_ProjEts.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>Ds_ProjEts.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="Ds_ProjEts.xss">
|
||||
<DependentUpon>Ds_ProjEts.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_utils.xsc">
|
||||
<DependentUpon>DS_utils.xsd</DependentUpon>
|
||||
</None>
|
||||
@@ -140,6 +161,17 @@
|
||||
<None Include="DS_utils.xss">
|
||||
<DependentUpon>DS_utils.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_utilsProjEts.xsc">
|
||||
<DependentUpon>DS_utilsProjEts.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_utilsProjEts.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DS_utilsProjEts.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="DS_utilsProjEts.xss">
|
||||
<DependentUpon>DS_utilsProjEts.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_WebScip.xsc">
|
||||
<DependentUpon>DS_WebScip.xsd</DependentUpon>
|
||||
</None>
|
||||
|
||||
Generated
+15
-4
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.17929
|
||||
// Runtime Version:4.0.30319.18033
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -12,7 +12,7 @@ namespace ETS_Data.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
@@ -26,8 +26,8 @@ namespace ETS_Data.Properties {
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.74.82.217\\SQL2008R2;Initial Catalog=ETS_WS-prod;Persist Security I" +
|
||||
"nfo=True;User ID=sa;Password=keyhammer")]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.74.82.217\\SQL2008R2;Initial Catalog=ETS_WS;Persist Security Info=T" +
|
||||
"rue;User ID=sa;Password=keyhammer")]
|
||||
public string ETS_WSConnectionString {
|
||||
get {
|
||||
return ((string)(this["ETS_WSConnectionString"]));
|
||||
@@ -44,5 +44,16 @@ namespace ETS_Data.Properties {
|
||||
return ((string)(this["ETS_AnagraficaConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.74.82.217\\SQL2008R2;Initial Catalog=ETS-PROJ;Persist Security Info" +
|
||||
"=True;User ID=sa;Password=keyhammer")]
|
||||
public string ETS_PROJConnectionString {
|
||||
get {
|
||||
return ((string)(this["ETS_PROJConnectionString"]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,5 +18,13 @@
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer</Value>
|
||||
</Setting>
|
||||
<Setting Name="ETS_PROJConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS-PROJ;Persist Security Info=True;User ID=sa;Password=keyhammer</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS-PROJ;Persist Security Info=True;User ID=sa;Password=keyhammer</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
+9
-2
@@ -3,7 +3,14 @@
|
||||
<configSections>
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="ETS_Data.Properties.Settings.ETS_WSConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_WS;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="ETS_Data.Properties.Settings.ETS_AnagraficaConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="ETS_Data.Properties.Settings.ETS_WSConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_WS;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="ETS_Data.Properties.Settings.ETS_AnagraficaConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="ETS_Data.Properties.Settings.ETS_PROJConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=ETS-PROJ;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
</configuration>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,7 @@
|
||||
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/WebMasterPages/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PROJ_ETS._Default" %>
|
||||
|
||||
<%@ Register src="WebUserControls/mod_periodoAnalisi.ascx" tagname="mod_periodoAnalisi" tagprefix="uc1" %>
|
||||
|
||||
<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
|
||||
<section class="featured">
|
||||
<div class="content-wrapper">
|
||||
@@ -12,6 +14,10 @@
|
||||
The page features <mark>videos, tutorials, and samples</mark> to help you get the most from ASP.NET.
|
||||
If you have any questions about ASP.NET visit
|
||||
<a href="http://forums.asp.net/18.aspx" title="ASP.NET Forum">our forums</a>.
|
||||
<br />
|
||||
<br />
|
||||
Test datepicker
|
||||
<uc1:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" />
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
+9
@@ -12,6 +12,15 @@ namespace PROJ_ETS {
|
||||
|
||||
public partial class _Default {
|
||||
|
||||
/// <summary>
|
||||
/// mod_periodoAnalisi1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PROJ_ETS.WebUserControls.mod_periodoAnalisi mod_periodoAnalisi1;
|
||||
|
||||
/// <summary>
|
||||
/// lblProva control.
|
||||
/// </summary>
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
<Content Include="Menu.aspx" />
|
||||
<Content Include="packages.config" />
|
||||
<Content Include="Progetti.aspx" />
|
||||
<Content Include="Scripts\jquery-ui-i18n.js" />
|
||||
<Content Include="Scripts\jquery-ui-i18n.min.js" />
|
||||
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjax.js" />
|
||||
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxApplicationServices.js" />
|
||||
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxComponentModel.js" />
|
||||
@@ -225,6 +227,7 @@
|
||||
<Content Include="WebUserControls\mod_fornitori.ascx" />
|
||||
<Content Include="WebUserControls\mod_menu.ascx" />
|
||||
<Content Include="WebUserControls\mod_menuBottomFullpage.ascx" />
|
||||
<Content Include="WebUserControls\mod_periodoAnalisi.ascx" />
|
||||
<Content Include="WebUserControls\mod_progetti.ascx" />
|
||||
<Content Include="WebUserControls\mod_riepilogo.ascx" />
|
||||
<Content Include="WebUserControls\mod_testata.ascx" />
|
||||
@@ -381,6 +384,13 @@
|
||||
<Compile Include="WebUserControls\mod_menuBottomFullpage.ascx.designer.cs">
|
||||
<DependentUpon>mod_menuBottomFullpage.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_periodoAnalisi.ascx.cs">
|
||||
<DependentUpon>mod_periodoAnalisi.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_periodoAnalisi.ascx.designer.cs">
|
||||
<DependentUpon>mod_periodoAnalisi.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_progetti.ascx.cs">
|
||||
<DependentUpon>mod_progetti.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
<div id="tabs-1">
|
||||
<asp:UpdatePanel ID="upProgetti" runat="server">
|
||||
<ContentTemplate>
|
||||
<h1>elenco progetti:</h1>
|
||||
<uc1:mod_progetti ID="mod_progetti1" runat="server" />
|
||||
<br />
|
||||
<h1>elenco fasi:</h1>
|
||||
|
||||
+1793
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -42,10 +42,24 @@
|
||||
<%--Site Scripts--%>
|
||||
</Scripts>
|
||||
</asp:ScriptManager>
|
||||
<script src="../Scripts/jquery-ui-i18n.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$("#tabs").tabs();
|
||||
});
|
||||
$(function () {
|
||||
$.datepicker.setDefaults($.datepicker.regional["it"]);
|
||||
$(".datepicker").datepicker({
|
||||
//showOtherMonths: true,
|
||||
//selectOtherMonths: true,
|
||||
showButtonPanel: true,
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
dateFormat: "yy-mm-dd"
|
||||
});
|
||||
//$(".datepicker").datepicker("option", "dateFormat", "yy-mm-dd");
|
||||
//$(".datepicker").datepicker($.datepicker.regional['it']);
|
||||
});
|
||||
</script>
|
||||
<%--testata pagina--%>
|
||||
<header>
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_periodoAnalisi.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_periodoAnalisi" %>
|
||||
<table cellpadding="0" cellspacing="0" class="filtraggio">
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Label ID="lblPeriodo" runat="server"></asp:Label>
|
||||
<asp:TextBox ID="txtInizio" TabIndex="1" runat="server" Width="5em" MaxLength="10"
|
||||
AutoPostBack="True" OnTextChanged="txtInizio_TextChanged" CssClass="datepicker" />
|
||||
<%--<asp:DropDownList ID="ddlOraInizio" TabIndex="2" runat="server" AutoPostBack="True"
|
||||
OnTextChanged="txtInizio_TextChanged" Font-Size="Smaller">
|
||||
<asp:ListItem>00</asp:ListItem>
|
||||
<asp:ListItem>01</asp:ListItem>
|
||||
<asp:ListItem>02</asp:ListItem>
|
||||
<asp:ListItem>03</asp:ListItem>
|
||||
<asp:ListItem>04</asp:ListItem>
|
||||
<asp:ListItem>05</asp:ListItem>
|
||||
<asp:ListItem>06</asp:ListItem>
|
||||
<asp:ListItem>07</asp:ListItem>
|
||||
<asp:ListItem>08</asp:ListItem>
|
||||
<asp:ListItem>09</asp:ListItem>
|
||||
<asp:ListItem>10</asp:ListItem>
|
||||
<asp:ListItem>11</asp:ListItem>
|
||||
<asp:ListItem>12</asp:ListItem>
|
||||
<asp:ListItem>13</asp:ListItem>
|
||||
<asp:ListItem>14</asp:ListItem>
|
||||
<asp:ListItem>15</asp:ListItem>
|
||||
<asp:ListItem>16</asp:ListItem>
|
||||
<asp:ListItem>17</asp:ListItem>
|
||||
<asp:ListItem>18</asp:ListItem>
|
||||
<asp:ListItem>19</asp:ListItem>
|
||||
<asp:ListItem>20</asp:ListItem>
|
||||
<asp:ListItem>21</asp:ListItem>
|
||||
<asp:ListItem>22</asp:ListItem>
|
||||
<asp:ListItem>23</asp:ListItem>
|
||||
</asp:DropDownList>--%>
|
||||
<%--<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtInizio"
|
||||
FirstDayOfWeek="Monday" Format="dd/MM/yyyy">
|
||||
</asp:CalendarExtender>--%>
|
||||
→
|
||||
<asp:TextBox ID="txtFine" TabIndex="3" runat="server" Width="5em" MaxLength="10" AutoPostBack="True" OnTextChanged="txtFine_TextChanged" CssClass="datepicker" />
|
||||
<%--<asp:DropDownList ID="ddlOraFine" TabIndex="2" runat="server" AutoPostBack="True"
|
||||
OnTextChanged="txtFine_TextChanged" Font-Size="Smaller">
|
||||
<asp:ListItem>00</asp:ListItem>
|
||||
<asp:ListItem>01</asp:ListItem>
|
||||
<asp:ListItem>02</asp:ListItem>
|
||||
<asp:ListItem>03</asp:ListItem>
|
||||
<asp:ListItem>04</asp:ListItem>
|
||||
<asp:ListItem>05</asp:ListItem>
|
||||
<asp:ListItem>06</asp:ListItem>
|
||||
<asp:ListItem>07</asp:ListItem>
|
||||
<asp:ListItem>08</asp:ListItem>
|
||||
<asp:ListItem>09</asp:ListItem>
|
||||
<asp:ListItem>10</asp:ListItem>
|
||||
<asp:ListItem>11</asp:ListItem>
|
||||
<asp:ListItem>12</asp:ListItem>
|
||||
<asp:ListItem>13</asp:ListItem>
|
||||
<asp:ListItem>14</asp:ListItem>
|
||||
<asp:ListItem>15</asp:ListItem>
|
||||
<asp:ListItem>16</asp:ListItem>
|
||||
<asp:ListItem>17</asp:ListItem>
|
||||
<asp:ListItem>18</asp:ListItem>
|
||||
<asp:ListItem>19</asp:ListItem>
|
||||
<asp:ListItem>20</asp:ListItem>
|
||||
<asp:ListItem>21</asp:ListItem>
|
||||
<asp:ListItem>22</asp:ListItem>
|
||||
<asp:ListItem>23</asp:ListItem>
|
||||
</asp:DropDownList>--%>
|
||||
<%--<asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtFine"
|
||||
FirstDayOfWeek="Monday" Format="dd/MM/yyyy">
|
||||
</asp:CalendarExtender>--%>
|
||||
<%--<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
|
||||
Font-Size="Smaller">
|
||||
<asp:ListItem Selected="True">selezione</asp:ListItem>
|
||||
<asp:ListItem>oggi</asp:ListItem>
|
||||
<asp:ListItem>ieri</asp:ListItem>
|
||||
<asp:ListItem>questa settimana</asp:ListItem>
|
||||
<asp:ListItem>ultimi 7gg</asp:ListItem>
|
||||
<asp:ListItem>questo mese</asp:ListItem>
|
||||
<asp:ListItem>mese precedente</asp:ListItem>
|
||||
<asp:ListItem>ultimi 30gg</asp:ListItem>
|
||||
<asp:ListItem>questo anno</asp:ListItem>
|
||||
<asp:ListItem>1 anno</asp:ListItem>
|
||||
</asp:DropDownList>--%>
|
||||
|
||||
<%--<asp:Button ID="btnUpdate" runat="server" Text="update" Visible="false" OnClick="btnUpdate_Click" />--%>
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label ID="lblDurataMin" runat="server" Visible="false"></asp:Label>
|
||||
|
||||
<asp:TextBox ID="txtDurataMin" TabIndex="3" runat="server" Width="2em" MaxLength="3"
|
||||
AutoPostBack="True" OnTextChanged="txtInizio_TextChanged" Visible="false"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,336 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace PROJ_ETS.WebUserControls
|
||||
{
|
||||
public partial class mod_periodoAnalisi : System.Web.UI.UserControl
|
||||
{
|
||||
#if false
|
||||
#region area protected
|
||||
|
||||
protected intervalloDate _intervallo;
|
||||
|
||||
/// <summary>
|
||||
/// avvio componente
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
setIntervallo();
|
||||
setDurataMin();
|
||||
}
|
||||
/// <summary>
|
||||
/// definisce se sia da mostrare il selettore delle ore nel controllo
|
||||
/// </summary>
|
||||
protected bool mostraSelOra
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
if (memLayer.ML.isInSessionObject("mostraSelOra"))
|
||||
{
|
||||
answ = memLayer.ML.BoolSessionObj("mostraSelOra");
|
||||
}
|
||||
else
|
||||
{
|
||||
// leggo da sessione e salvo...
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.confReadBool("mostraSelOra");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
memLayer.ML.setSessionVal("mostraSelOra", answ);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// gestione del selettore rapido dell'intervallo temporale...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// verifico cosa sia cambiato ed imposto date...
|
||||
datario _datario = new datario();
|
||||
switch (DropDownList1.SelectedValue)
|
||||
{
|
||||
case "oggi":
|
||||
_intervallo = _datario.giornata(DateTime.Now);
|
||||
break;
|
||||
case "ieri":
|
||||
_intervallo = _datario.giornata(DateTime.Now.AddDays(-1));
|
||||
break;
|
||||
case "ultimi 7gg":
|
||||
_intervallo = _datario.ultimiGiorni(DateTime.Now, 7);
|
||||
break;
|
||||
case "questa settimana":
|
||||
_intervallo = _datario.questaSett(DateTime.Now);
|
||||
break;
|
||||
case "ultimi 30gg":
|
||||
_intervallo = _datario.ultimiGiorni(DateTime.Now, 30);
|
||||
break;
|
||||
case "questo mese":
|
||||
_intervallo = _datario.questoMese(DateTime.Now);
|
||||
break;
|
||||
case "mese precedente":
|
||||
_intervallo = _datario.mesePrecedente(DateTime.Now);
|
||||
break;
|
||||
case "questo anno":
|
||||
_intervallo = _datario.estremiAnno(DateTime.Now);
|
||||
break;
|
||||
case "1 anno":
|
||||
_intervallo = _datario.ultimiGiorni(DateTime.Now, 366);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if ((intervalloAnalisi.inizio != _intervallo.inizio) || (intervalloAnalisi.fine != _intervallo.fine))
|
||||
{
|
||||
verificaCoerenzaDate();
|
||||
aggiornaDateMostrate(realtimeUpdate);
|
||||
// mostro btn update
|
||||
btnUpdate.Visible = !realtimeUpdate;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua update delle date mostrate da intervallo analisi (ed eventualmente riporta update...)
|
||||
/// </summary>
|
||||
/// <param name="doReportUpdate"></param>
|
||||
private void aggiornaDateMostrate(bool doReportUpdate)
|
||||
{
|
||||
scriviDate();
|
||||
if (doReportUpdate)
|
||||
{
|
||||
reportUpdate();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// scrive nuove date in controllo
|
||||
/// </summary>
|
||||
private void scriviDate()
|
||||
{
|
||||
// se intervallo non è valorizzato leggo da sessione...
|
||||
if (!_intervallo.isValid)
|
||||
{
|
||||
_intervallo = intervalloAnalisi;
|
||||
}
|
||||
txtInizio.Text = _intervallo.inizio.ToShortDateString();
|
||||
ddlOraInizio.SelectedValue = _intervallo.inizio.Hour.ToString("00");
|
||||
txtFine.Text = _intervallo.fine.ToShortDateString();
|
||||
ddlOraFine.SelectedValue = _intervallo.fine.Hour.ToString("00");
|
||||
if (mostraSelOra)
|
||||
{
|
||||
ddlOraInizio.Visible = true;
|
||||
ddlOraFine.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ddlOraInizio.Visible = false;
|
||||
ddlOraFine.Visible = false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta intervallo da sessione o di default
|
||||
/// </summary>
|
||||
private void setIntervallo()
|
||||
{
|
||||
intervalloDate _intervallo;
|
||||
try
|
||||
{
|
||||
_intervallo = (intervalloDate)Session["_intervallo"];
|
||||
}
|
||||
catch
|
||||
{
|
||||
_intervallo = new intervalloDate();
|
||||
_intervallo.inizio = DateTime.Now.AddDays(memLayer.ML.confReadInt("defDayFrom"));
|
||||
_intervallo.fine = DateTime.Now.AddDays(1);
|
||||
Session["_intervallo"] = _intervallo;
|
||||
Session["_inizio"] = _intervallo.inizio;
|
||||
Session["_fine"] = _intervallo.fine;
|
||||
}
|
||||
scriviDate();
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta durata minima
|
||||
/// </summary>
|
||||
private void setDurataMin()
|
||||
{
|
||||
int _durataMin;
|
||||
try
|
||||
{
|
||||
_durataMin = (int)Session["_durataMin"];
|
||||
}
|
||||
catch
|
||||
{
|
||||
_durataMin = 0;
|
||||
Session["_durataMin"] = _durataMin;
|
||||
}
|
||||
txtDurataMin.Text = _durataMin.ToString();
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
lblPeriodo.Text = "Periodo";
|
||||
txtInizio.ToolTip = "inizio periodo di riferimento per i dati mostrati";
|
||||
txtFine.ToolTip = "fine periodo di riferimento per i dati mostrati";
|
||||
lblDurataMin.Text = "Visualizza eventi con durata superiore a";
|
||||
}
|
||||
|
||||
|
||||
private void aggiornaPeriodo()
|
||||
{
|
||||
_intervallo = new intervalloDate();
|
||||
// calcolo tempi arrotondati
|
||||
int oraInizio = 0;
|
||||
int oraFine = 0;
|
||||
if (mostraSelOra)
|
||||
{
|
||||
oraInizio = Convert.ToInt32(ddlOraInizio.SelectedValue);
|
||||
oraFine = Convert.ToInt32(ddlOraFine.SelectedValue);
|
||||
}
|
||||
_intervallo.inizio = Convert.ToDateTime(txtInizio.Text).AddHours(oraInizio);
|
||||
_intervallo.fine = Convert.ToDateTime(txtFine.Text).AddHours(oraFine);
|
||||
verificaCoerenzaDate();
|
||||
int _durataMin;
|
||||
_durataMin = Convert.ToInt32(txtDurataMin.Text);
|
||||
Session["_durataMin"] = _durataMin;
|
||||
reportUpdate();
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica che le date dell'intervallo siano coerenti (inizio < fine)
|
||||
/// </summary>
|
||||
private void verificaCoerenzaDate()
|
||||
{
|
||||
// controllo date siano coerenti (fine > inizio)...
|
||||
if (_intervallo.inizio >= _intervallo.fine)
|
||||
{
|
||||
// controllo non siano date successive ad oggi...
|
||||
if (_intervallo.fine > DateTime.Now)
|
||||
{
|
||||
_intervallo.fine = DateTime.Now;
|
||||
}
|
||||
_intervallo.fine = _intervallo.inizio.AddDays(1);
|
||||
}
|
||||
//intervalloAnalisi = _intervallo;
|
||||
aggiornaDateMostrate(false);
|
||||
}
|
||||
/// <summary>
|
||||
/// in questo caso faccio udpate periodo mostrato
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnUpdate_Click(object sender, EventArgs e)
|
||||
{
|
||||
aggiornaPeriodo();
|
||||
// nascondo btn update
|
||||
btnUpdate.Visible = false;
|
||||
}
|
||||
/// <summary>
|
||||
/// riporta aggiornamento a controller
|
||||
/// </summary>
|
||||
protected void reportUpdate()
|
||||
{
|
||||
intervalloAnalisi = _intervallo;
|
||||
// alzo l'evento d update/inserimento e ricarico cache...
|
||||
if (eh_doUpdate != null)
|
||||
{
|
||||
eh_doUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
public intervalloDate intervalloAnalisi
|
||||
{
|
||||
get
|
||||
{
|
||||
return (intervalloDate)Session["_intervallo"];
|
||||
}
|
||||
set
|
||||
{
|
||||
intervalloDate interv = value;
|
||||
Session["_intervallo"] = interv;
|
||||
Session["_inizio"] = interv.inizio;
|
||||
Session["_fine"] = interv.fine;
|
||||
aggiornaDateMostrate(false);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua update
|
||||
/// </summary>
|
||||
/// <param name="doReportUpdate"></param>
|
||||
public void doUpdate(bool doReportUpdate)
|
||||
{
|
||||
aggiornaDateMostrate(doReportUpdate);
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta periodo libero di selezione
|
||||
/// </summary>
|
||||
public void setPeriodoFree()
|
||||
{
|
||||
DropDownList1.SelectedIndex = 0;
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta realtime update (non mostra button am fa subito update)
|
||||
/// </summary>
|
||||
public bool realtimeUpdate
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.BoolSessionObj("rltUpdatePeriodo");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("rltUpdatePeriodo", value);
|
||||
}
|
||||
}
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_doUpdate;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#endregion
|
||||
#endif
|
||||
/// <summary>
|
||||
/// evento cambio testo data inizio
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtInizio_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
#if false
|
||||
// imposto il selettore a discesa...
|
||||
setPeriodoFree();
|
||||
// mostro btn update
|
||||
btnUpdate.Visible = true;
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// evento cambio testo data fine
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtFine_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
#if false
|
||||
// imposto il selettore a discesa...
|
||||
setPeriodoFree();
|
||||
// mostro btn update
|
||||
btnUpdate.Visible = true;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 PROJ_ETS.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_periodoAnalisi {
|
||||
|
||||
/// <summary>
|
||||
/// lblPeriodo 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 lblPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// txtInizio 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 txtInizio;
|
||||
|
||||
/// <summary>
|
||||
/// txtFine 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 txtFine;
|
||||
|
||||
/// <summary>
|
||||
/// lblDurataMin 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 lblDurataMin;
|
||||
|
||||
/// <summary>
|
||||
/// txtDurataMin 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 txtDurataMin;
|
||||
}
|
||||
}
|
||||
@@ -1,2 +1,20 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_progetti.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_progetti" %>
|
||||
Elenco progetti da selezionare, con elenco commesse (x selezione + creazione NUOVA)
|
||||
<div class="filtro_1 fontPiccolo" style="white-space: nowrap; height: 30px;">
|
||||
<div class="divSx">
|
||||
<uc2:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" realtimeUpdate="true" />
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<asp:CheckBox ID="chkShowChiusi" runat="server" Text="Mostra Archiviati" OnCheckedChanged="chkShowChiusi_CheckedChanged"
|
||||
AutoPostBack="True" />
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroCli" runat="server" filterChekText="filtroCliente" comboWidth="180" />
|
||||
</div>
|
||||
<%--<div class="divSx">
|
||||
<uc1:mod_filtro ID="filtroDip" runat="server" filterChekText="filtroDipendenti" comboWidth="180" />
|
||||
</div>--%>
|
||||
<div class="divSx">
|
||||
<asp:CheckBox ID="chkShowVuoti" runat="server" Text="Mostra Vuoti" AutoPostBack="True"
|
||||
oncheckedchanged="chkShowVuoti_CheckedChanged" Checked="true" />
|
||||
</div>
|
||||
</div>
|
||||
+23
-7
@@ -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 PROJ_ETS.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_progetti
|
||||
{
|
||||
namespace PROJ_ETS.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_progetti {
|
||||
|
||||
/// <summary>
|
||||
/// chkShowChiusi 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.CheckBox chkShowChiusi;
|
||||
|
||||
/// <summary>
|
||||
/// chkShowVuoti 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.CheckBox chkShowVuoti;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -7,6 +7,7 @@
|
||||
<package id="EntityFramework" version="5.0.0" targetFramework="net45" />
|
||||
<package id="jQuery" version="2.0.0" targetFramework="net45" />
|
||||
<package id="jQuery.UI.Combined" version="1.10.2" targetFramework="net45" />
|
||||
<package id="jQuery.UI.i18n" version="1.10.2" targetFramework="net45" />
|
||||
<package id="Microsoft.AspNet.FriendlyUrls" version="1.0.0" targetFramework="net45" />
|
||||
<package id="Microsoft.AspNet.FriendlyUrls.Core" version="1.0.0" targetFramework="net45" />
|
||||
<package id="Microsoft.AspNet.Providers.Core" version="1.2" targetFramework="net45" />
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>jQuery.UI.i18n</id>
|
||||
<version>1.10.2</version>
|
||||
<title>jQuery UI i18n (Internationalization and Localization)</title>
|
||||
<authors>jQuery UI Team</authors>
|
||||
<owners>jQuery UI Team</owners>
|
||||
<licenseUrl>http://jquery.org/license</licenseUrl>
|
||||
<projectUrl>http://jqueryui.com/</projectUrl>
|
||||
<iconUrl>http://nuget.org/Media/Default/Packages/jQuery.UI.Combined/1.8.9/jQueryUILogo.png</iconUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>Internationalization and localization file for jQuery UI. jQuery UI is an open source library of interface components — interactions, full-featured widgets, and animation effects — based on the stellar jQuery javascript library . Each component is built according to jQuery's event-driven architecture (find something, manipulate it) and is themeable, making it easy for developers of any skill level to integrate and extend into their own code.
|
||||
NOTE: This package is maintained on behalf of the library owners by the NuGet Community Packages project at http://nugetpackages.codeplex.com/</description>
|
||||
<summary>Internationalization and localization file for jQuery UI.</summary>
|
||||
<releaseNotes />
|
||||
<copyright />
|
||||
<language>en-US</language>
|
||||
<tags>jQuery jQueryUI plugins</tags>
|
||||
<dependencies>
|
||||
<dependency id="jQuery.UI.Combined" version="1.10.2" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
</package>
|
||||
Reference in New Issue
Block a user