Update con gestione COMPLETA via barcode!!!

git-svn-id: https://keyhammer.ath.cx/svn/XPS/trunk@34 43c8e981-f90d-406c-a89a-24a2c4268d51
This commit is contained in:
samuele
2008-10-29 15:45:10 +00:00
parent 9e28356b69
commit 0e231b0068
22 changed files with 3352 additions and 47 deletions
+191 -9
View File
@@ -193,6 +193,7 @@ ORDER BY DataArrivo DESC</CommandText>
<Mapping SourceColumn="DataPrevista" DataSetColumn="DataPrevista" />
<Mapping SourceColumn="DataDDT" DataSetColumn="DataDDT" />
<Mapping SourceColumn="CodStato" DataSetColumn="CodStato" />
<Mapping SourceColumn="Ciclo" DataSetColumn="Ciclo" />
</Mappings>
<Sources>
<DbSource ConnectionRef="SteamWare_XPSConnectionString (Web.config)" DbObjectName="SteamWare_XPS.dbo.v_commesse" DbObjectType="View" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCod" GetMethodModifier="Public" GetMethodName="getByCod" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCod" UserSourceName="getByCod">
@@ -208,13 +209,7 @@ ORDER BY DataArrivo DESC</CommandText>
<DbSource ConnectionRef="SteamWare_XPSConnectionString (Web.config)" DbObjectName="SteamWare_XPS.dbo.v_commesse" DbObjectType="View" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCodFiltro" GetMethodModifier="Public" GetMethodName="getByCodFiltro" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCodFiltro" UserSourceName="getByCodFiltro">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT v_commesse.Cod, v_commesse.Stato, v_commesse.CodCliente, v_commesse.Cliente, v_commesse.CodCli, v_commesse.descrizione, v_commesse.DDT,
v_commesse.DataDDT, v_commesse.DataArrivo, v_commesse.Posizione, v_commesse.Qta, v_commesse.Peso, v_commesse.Righe, v_commesse.Colli,
v_commesse.DataPrevista, v_commesse.CodStato
FROM v_commesse INNER JOIN
Filtro2Stati ON v_commesse.CodStato = Filtro2Stati.CodStato
WHERE (Filtro2Stati.CodFiltro = @CodFiltro)
ORDER BY v_commesse.DataArrivo DESC</CommandText>
<CommandText>SELECT v_commesse.Ciclo, v_commesse.Cliente, v_commesse.Cod, v_commesse.CodCli, v_commesse.CodCliente, v_commesse.CodStato, v_commesse.Colli, v_commesse.DDT, v_commesse.DataArrivo, v_commesse.DataDDT, v_commesse.DataPrevista, v_commesse.Peso, v_commesse.Posizione, v_commesse.Qta, v_commesse.Righe, v_commesse.Stato, v_commesse.descrizione FROM v_commesse INNER JOIN Filtro2Stati ON v_commesse.CodStato = Filtro2Stati.CodStato WHERE (Filtro2Stati.CodFiltro = @CodFiltro) ORDER BY v_commesse.DataArrivo DESC</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="CodFiltro" ColumnName="CodFiltro" DataSourceName="SteamWare_XPS.dbo.Filtro2Stati" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@CodFiltro" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="CodFiltro" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
@@ -343,7 +338,18 @@ ORDER BY v_commesse.DataArrivo DESC</CommandText>
<Mapping SourceColumn="DataMod" DataSetColumn="DataMod" />
</Mappings>
<Sources>
<DbSource ConnectionRef="SteamWare_XPSConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy1" GeneratorSourceName="updateDueDateULP" Modifier="Public" Name="updateDueDateULP" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="updateDueDateULP">
<DbSource ConnectionRef="SteamWare_XPSConnectionString (Web.config)" DbObjectName="SteamWare_XPS.dbo.IstObj" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByIdxObj" GetMethodModifier="Public" GetMethodName="getByIdxObj" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByIdxObj" UserSourceName="getByIdxObj">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod FROM dbo.IstObj
where IdxObj=@IdxObj</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="IdxObj" ColumnName="IdxObj" DataSourceName="SteamWare_XPS.dbo.IstObj" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@IdxObj" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="IdxObj" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="SteamWare_XPSConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy1" GeneratorSourceName="updateDueDateULP" Modifier="Public" Name="updateDueDateULP" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="updateDueDateULP">
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>UPDATE IstObj
@@ -358,7 +364,7 @@ WHERE (IdxObj LIKE @IdxObjCommon) AND (Livello = 3)</CommandText>
</DbCommand>
</UpdateCommand>
</DbSource>
<DbSource ConnectionRef="SteamWare_XPSConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdStatoTree" Modifier="Public" Name="UpdStatoTree" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="UpdStatoTree">
<DbSource ConnectionRef="SteamWare_XPSConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdStatoTree" Modifier="Public" Name="UpdStatoTree" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="UpdStatoTree">
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>UPDATE IstObj
@@ -562,6 +568,117 @@ WHERE (IdxObj = @Original_Cod)</CommandText>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TransizioneEventiTableAdapter" GeneratorDataComponentClassName="TransizioneEventiTableAdapter" Name="TransizioneEventi" UserDataComponentName="TransizioneEventiTableAdapter">
<MainSource>
<DbSource ConnectionRef="SteamWare_XPSConnectionString (Web.config)" DbObjectName="SteamWare_XPS.dbo.TransizioneEventi" 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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[TransizioneEventi] WHERE (([codInviato] = @Original_codInviato))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_codInviato" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="codInviato" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[TransizioneEventi] ([codInviato], [prec_codInviato], [IdxTipoEvento], [text2show], [descrComando]) VALUES (@codInviato, @prec_codInviato, @IdxTipoEvento, @text2show, @descrComando)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@codInviato" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="codInviato" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@prec_codInviato" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="prec_codInviato" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxTipoEvento" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxTipoEvento" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@text2show" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="text2show" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@descrComando" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrComando" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT codInviato, prec_codInviato, IdxTipoEvento, text2show, descrComando FROM dbo.TransizioneEventi</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[TransizioneEventi] SET [codInviato] = @codInviato, [prec_codInviato] = @prec_codInviato, [IdxTipoEvento] = @IdxTipoEvento, [text2show] = @text2show, [descrComando] = @descrComando WHERE (([codInviato] = @Original_codInviato))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@codInviato" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="codInviato" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@prec_codInviato" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="prec_codInviato" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxTipoEvento" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxTipoEvento" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@text2show" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="text2show" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@descrComando" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrComando" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_codInviato" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="codInviato" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="codInviato" DataSetColumn="codInviato" />
<Mapping SourceColumn="prec_codInviato" DataSetColumn="prec_codInviato" />
<Mapping SourceColumn="IdxTipoEvento" DataSetColumn="IdxTipoEvento" />
<Mapping SourceColumn="text2show" DataSetColumn="text2show" />
<Mapping SourceColumn="descrComando" DataSetColumn="descrComando" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagraficaEventiTableAdapter" GeneratorDataComponentClassName="AnagraficaEventiTableAdapter" Name="AnagraficaEventi" UserDataComponentName="AnagraficaEventiTableAdapter">
<MainSource>
<DbSource ConnectionRef="SteamWare_XPSConnectionString (Web.config)" DbObjectName="SteamWare_XPS.dbo.AnagraficaEventi" 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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[AnagraficaEventi] WHERE (([IdxTipoEvento] = @Original_IdxTipoEvento))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxTipoEvento" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxTipoEvento" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[AnagraficaEventi] ([IdxTipoEvento], [Nome]) VALUES (@IdxTipoEvento, @Nome)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxTipoEvento" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxTipoEvento" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Nome" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nome" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT IdxTipoEvento, Nome FROM dbo.AnagraficaEventi</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[AnagraficaEventi] SET [IdxTipoEvento] = @IdxTipoEvento, [Nome] = @Nome WHERE (([IdxTipoEvento] = @Original_IdxTipoEvento))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxTipoEvento" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxTipoEvento" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Nome" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nome" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxTipoEvento" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxTipoEvento" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="IdxTipoEvento" DataSetColumn="IdxTipoEvento" />
<Mapping SourceColumn="Nome" DataSetColumn="Nome" />
</Mappings>
<Sources>
<DbSource ConnectionRef="SteamWare_XPSConnectionString (Web.config)" DbObjectName="SteamWare_XPS.dbo.AnagraficaEventi" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCodInviato" GetMethodModifier="Public" GetMethodName="getByCodInviato" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCodInviato" UserSourceName="getByCodInviato">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT AnagraficaEventi.IdxTipoEvento, AnagraficaEventi.Nome
FROM AnagraficaEventi INNER JOIN
TransizioneEventi ON AnagraficaEventi.IdxTipoEvento = TransizioneEventi.IdxTipoEvento
WHERE (TransizioneEventi.codInviato = @codInviato)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="codInviato" ColumnName="codInviato" DataSourceName="SteamWare_XPS.dbo.TransizioneEventi" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@codInviato" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="codInviato" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -710,6 +827,13 @@ WHERE (IdxObj = @Original_Cod)</CommandText>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Ciclo" msprop:Generator_UserColumnName="Ciclo" msprop:Generator_ColumnVarNameInTable="columnCiclo" msprop:Generator_ColumnPropNameInRow="Ciclo" msprop:Generator_ColumnPropNameInTable="CicloColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -979,6 +1103,55 @@ WHERE (IdxObj = @Original_Cod)</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TransizioneEventi" msprop:Generator_UserTableName="TransizioneEventi" msprop:Generator_RowDeletedName="TransizioneEventiRowDeleted" msprop:Generator_RowChangedName="TransizioneEventiRowChanged" msprop:Generator_RowClassName="TransizioneEventiRow" msprop:Generator_RowChangingName="TransizioneEventiRowChanging" msprop:Generator_RowEvArgName="TransizioneEventiRowChangeEvent" msprop:Generator_RowEvHandlerName="TransizioneEventiRowChangeEventHandler" msprop:Generator_TableClassName="TransizioneEventiDataTable" msprop:Generator_TableVarName="tableTransizioneEventi" msprop:Generator_RowDeletingName="TransizioneEventiRowDeleting" msprop:Generator_TablePropName="TransizioneEventi">
<xs:complexType>
<xs:sequence>
<xs:element name="codInviato" msprop:Generator_UserColumnName="codInviato" msprop:Generator_ColumnVarNameInTable="columncodInviato" msprop:Generator_ColumnPropNameInRow="codInviato" msprop:Generator_ColumnPropNameInTable="codInviatoColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="prec_codInviato" msprop:Generator_UserColumnName="prec_codInviato" msprop:Generator_ColumnVarNameInTable="columnprec_codInviato" msprop:Generator_ColumnPropNameInRow="prec_codInviato" msprop:Generator_ColumnPropNameInTable="prec_codInviatoColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="IdxTipoEvento" msprop:Generator_UserColumnName="IdxTipoEvento" msprop:Generator_ColumnVarNameInTable="columnIdxTipoEvento" msprop:Generator_ColumnPropNameInRow="IdxTipoEvento" msprop:Generator_ColumnPropNameInTable="IdxTipoEventoColumn" type="xs:int" minOccurs="0" />
<xs:element name="text2show" msprop:Generator_UserColumnName="text2show" msprop:Generator_ColumnVarNameInTable="columntext2show" msprop:Generator_ColumnPropNameInRow="text2show" msprop:Generator_ColumnPropNameInTable="text2showColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="descrComando" msprop:Generator_UserColumnName="descrComando" msprop:Generator_ColumnVarNameInTable="columndescrComando" msprop:Generator_ColumnPropNameInRow="descrComando" msprop:Generator_ColumnPropNameInTable="descrComandoColumn" 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:element name="AnagraficaEventi" msprop:Generator_UserTableName="AnagraficaEventi" msprop:Generator_RowDeletedName="AnagraficaEventiRowDeleted" msprop:Generator_RowChangedName="AnagraficaEventiRowChanged" msprop:Generator_RowClassName="AnagraficaEventiRow" msprop:Generator_RowChangingName="AnagraficaEventiRowChanging" msprop:Generator_RowEvArgName="AnagraficaEventiRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagraficaEventiRowChangeEventHandler" msprop:Generator_TableClassName="AnagraficaEventiDataTable" msprop:Generator_TableVarName="tableAnagraficaEventi" msprop:Generator_RowDeletingName="AnagraficaEventiRowDeleting" msprop:Generator_TablePropName="AnagraficaEventi">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxTipoEvento" msprop:Generator_UserColumnName="IdxTipoEvento" msprop:Generator_ColumnVarNameInTable="columnIdxTipoEvento" msprop:Generator_ColumnPropNameInRow="IdxTipoEvento" msprop:Generator_ColumnPropNameInTable="IdxTipoEventoColumn" type="xs:int" />
<xs:element name="Nome" msprop:Generator_UserColumnName="Nome" msprop:Generator_ColumnVarNameInTable="columnNome" msprop:Generator_ColumnPropNameInRow="Nome" msprop:Generator_ColumnPropNameInTable="NomeColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -1010,12 +1183,21 @@ WHERE (IdxObj = @Original_Cod)</CommandText>
<xs:selector xpath=".//mstns:v_ULP" />
<xs:field xpath="mstns:Cod" />
</xs:unique>
<xs:unique name="TransizioneEventi_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:TransizioneEventi" />
<xs:field xpath="mstns:codInviato" />
</xs:unique>
<xs:unique name="AnagraficaEventi_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:AnagraficaEventi" />
<xs:field xpath="mstns:IdxTipoEvento" />
</xs:unique>
</xs:element>
<xs:annotation>
<xs:appinfo>
<msdata:Relationship name="FK_Tratt2Obj_AnagTrattamenti" msdata:parent="AnagTrattamenti" msdata:child="Tratt2Obj" msdata:parentkey="CodTrattamento" msdata:childkey="CodTrattamento" msprop:Generator_UserRelationName="FK_Tratt2Obj_AnagTrattamenti" msprop:Generator_RelationVarName="relationFK_Tratt2Obj_AnagTrattamenti" msprop:Generator_UserChildTable="Tratt2Obj" msprop:Generator_UserParentTable="AnagTrattamenti" msprop:Generator_ParentPropName="AnagTrattamentiRow" msprop:Generator_ChildPropName="GetTratt2ObjRows" />
<msdata:Relationship name="FK_Tratt2Obj_IstObj" msdata:parent="IstObj" msdata:child="Tratt2Obj" msdata:parentkey="IdxObj" msdata:childkey="IdxObj" msprop:Generator_UserRelationName="FK_Tratt2Obj_IstObj" msprop:Generator_RelationVarName="relationFK_Tratt2Obj_IstObj" msprop:Generator_UserChildTable="Tratt2Obj" msprop:Generator_UserParentTable="IstObj" msprop:Generator_ParentPropName="IstObjRow" msprop:Generator_ChildPropName="GetTratt2ObjRows" />
<msdata:Relationship name="FK_IstObj_AnagClienti" msdata:parent="AnagClienti" msdata:child="IstObj" msdata:parentkey="CodCliente" msdata:childkey="CodCliente" msprop:Generator_UserRelationName="FK_IstObj_AnagClienti" msprop:Generator_RelationVarName="relationFK_IstObj_AnagClienti" msprop:Generator_UserChildTable="IstObj" msprop:Generator_UserParentTable="AnagClienti" msprop:Generator_ParentPropName="AnagClientiRow" msprop:Generator_ChildPropName="GetIstObjRows" />
<msdata:Relationship name="FK_TransizioneEventi_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="TransizioneEventi" msdata:parentkey="IdxTipoEvento" msdata:childkey="IdxTipoEvento" msprop:Generator_UserRelationName="FK_TransizioneEventi_AnagraficaEventi" msprop:Generator_RelationVarName="relationFK_TransizioneEventi_AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneEventi" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_ParentPropName="AnagraficaEventiRow" msprop:Generator_ChildPropName="GetTransizioneEventiRows" />
</xs:appinfo>
</xs:annotation>
</xs:schema>
+27 -13
View File
@@ -4,19 +4,21 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</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="47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-6" ViewPortY="48" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:AnagClienti" ZOrder="11" X="482" Y="129" Height="105" Width="207" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagTrattamenti" ZOrder="10" X="689" Y="479" Height="105" Width="238" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:Tratt2Obj" ZOrder="8" X="1039" Y="484" Height="122" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:v_commesse" ZOrder="1" X="105" Y="174" Height="377" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="262" />
<Shape ID="DesignTable:IstObj" ZOrder="4" X="1038" Y="75" Height="309" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:v_righe" ZOrder="3" X="506" Y="618" Height="343" Width="245" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:sp_rec4Day" ZOrder="5" X="882" Y="718" Height="106" Width="208" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="42" />
<Shape ID="DesignTable:v_ULP" ZOrder="2" X="134" Y="701" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:AnagClienti" ZOrder="14" X="482" Y="129" Height="105" Width="207" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagTrattamenti" ZOrder="13" X="689" Y="479" Height="105" Width="238" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:Tratt2Obj" ZOrder="11" X="1039" Y="484" Height="122" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:v_commesse" ZOrder="4" X="105" Y="174" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:IstObj" ZOrder="7" X="1038" Y="75" Height="326" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:v_righe" ZOrder="6" X="506" Y="618" Height="343" Width="245" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:sp_rec4Day" ZOrder="8" X="806" Y="652" Height="106" Width="208" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="42" />
<Shape ID="DesignTable:v_ULP" ZOrder="5" X="134" Y="701" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:TransizioneEventi" ZOrder="3" X="1091" Y="667" Height="156" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="109" />
<Shape ID="DesignTable:AnagraficaEventi" ZOrder="2" X="1083" Y="923" Height="122" Width="238" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_Tratt2Obj_AnagTrattamenti" ZOrder="9" LineWidth="11">
<Connector ID="DesignRelation:FK_Tratt2Obj_AnagTrattamenti" ZOrder="12" LineWidth="11">
<RoutePoints>
<Point>
<X>927</X>
@@ -28,11 +30,11 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Tratt2Obj_IstObj" ZOrder="7" LineWidth="11">
<Connector ID="DesignRelation:FK_Tratt2Obj_IstObj" ZOrder="10" LineWidth="11">
<RoutePoints>
<Point>
<X>1116</X>
<Y>384</Y>
<Y>401</Y>
</Point>
<Point>
<X>1116</X>
@@ -40,7 +42,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_IstObj_AnagClienti" ZOrder="6" LineWidth="11">
<Connector ID="DesignRelation:FK_IstObj_AnagClienti" ZOrder="9" LineWidth="11">
<RoutePoints>
<Point>
<X>689</X>
@@ -52,5 +54,17 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_TransizioneEventi_AnagraficaEventi" ZOrder="1" LineWidth="11">
<RoutePoints>
<Point>
<X>1162</X>
<Y>923</Y>
</Point>
<Point>
<X>1162</X>
<Y>823</Y>
</Point>
</RoutePoints>
</Connector>
</Connectors>
</DiagramLayout>
+4 -3
View File
@@ -16,7 +16,7 @@ OK + override con click method e lasciare selected
OK + mostrare un panel con i dettagli data/ora e pulsante di salvataggio che prende selected + altro x salvare query...
OK - segreteria
OK - admin (da magazzino... con altri editing & co...)
- barcode da web?
OK - barcode da web?
- avanzamento stato: obj mamma ha stato min tra i vari child... + in visualizzazione mostrare stato min e Max
------------------------------------------------
@@ -31,17 +31,18 @@ OK - 2 label
- icone diverse?!?
- cosa può fare ogni funzione?
OK - magazzino: crea, aggiunge righe/ULP e cancella e modifica descrizione fino a quando approva, poi è fuori dal gioco...
- indica spedito con barcode
OK - indica spedito con barcode
OK - direzione:
OK - può cambiare lo stato...
OK - prod:
OK - indica DueDate in massa o per ogni ULP
- segreteria:
- indica che è stato fatturato con pulsante
------------------------------------------------
- 20081025
------------------------------------------------
- obbligatorio dire fosfatazione/brunitura
OK - obbligatorio dire fosfatazione/brunitura (usato ExtKey)
- fare 2 schede: 1 fosf/brun
- elenco mostra sempre da oggi in poi
- nelle schede x giorno riportare elenco comm + scadute
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
+210
View File
@@ -4,5 +4,215 @@
<name>SteamWareXPS</name>
</assembly>
<members>
<member name="T:SteamWare.XPS.DS_XPS">
<summary>
Represents a strongly typed in-memory cache of data.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.EventiDataTable">
<summary>
Represents the strongly named DataTable class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.TransizioneEventiStatiDataTable">
<summary>
Represents the strongly named DataTable class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.TransizioneEventiStepDataTable">
<summary>
Represents the strongly named DataTable class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.StepDataTable">
<summary>
Represents the strongly named DataTable class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.StatiDataTable">
<summary>
Represents the strongly named DataTable class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.AnagTipoObjDataTable">
<summary>
Represents the strongly named DataTable class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.ObjListDataTable">
<summary>
Represents the strongly named DataTable class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.NoteDataTable">
<summary>
Represents the strongly named DataTable class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.Step4ObjDataTable">
<summary>
Represents the strongly named DataTable class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.EventiRow">
<summary>
Represents strongly named DataRow class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.TransizioneEventiStatiRow">
<summary>
Represents strongly named DataRow class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.TransizioneEventiStepRow">
<summary>
Represents strongly named DataRow class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.StepRow">
<summary>
Represents strongly named DataRow class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.StatiRow">
<summary>
Represents strongly named DataRow class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.AnagTipoObjRow">
<summary>
Represents strongly named DataRow class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.ObjListRow">
<summary>
Represents strongly named DataRow class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.NoteRow">
<summary>
Represents strongly named DataRow class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.Step4ObjRow">
<summary>
Represents strongly named DataRow class.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.EventiRowChangeEvent">
<summary>
Row event argument class
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.TransizioneEventiStatiRowChangeEvent">
<summary>
Row event argument class
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.TransizioneEventiStepRowChangeEvent">
<summary>
Row event argument class
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.StepRowChangeEvent">
<summary>
Row event argument class
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.StatiRowChangeEvent">
<summary>
Row event argument class
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.AnagTipoObjRowChangeEvent">
<summary>
Row event argument class
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.ObjListRowChangeEvent">
<summary>
Row event argument class
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.NoteRowChangeEvent">
<summary>
Row event argument class
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPS.Step4ObjRowChangeEvent">
<summary>
Row event argument class
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPSTableAdapters.EventiTableAdapter">
<summary>
Represents the connection and commands used to retrieve and save data.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPSTableAdapters.TransizioneEventiStatiTableAdapter">
<summary>
Represents the connection and commands used to retrieve and save data.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPSTableAdapters.TransizioneEventiStepTableAdapter">
<summary>
Represents the connection and commands used to retrieve and save data.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPSTableAdapters.StepTableAdapter">
<summary>
Represents the connection and commands used to retrieve and save data.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPSTableAdapters.StatiTableAdapter">
<summary>
Represents the connection and commands used to retrieve and save data.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPSTableAdapters.AnagTipoObjTableAdapter">
<summary>
Represents the connection and commands used to retrieve and save data.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPSTableAdapters.ObjListTableAdapter">
<summary>
Represents the connection and commands used to retrieve and save data.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPSTableAdapters.NoteTableAdapter">
<summary>
Represents the connection and commands used to retrieve and save data.
</summary>
</member>
<member name="T:SteamWare.XPS.DS_XPSTableAdapters.Step4ObjTableAdapter">
<summary>
Represents the connection and commands used to retrieve and save data.
</summary>
</member>
<member name="T:SteamWare.XPS.DsMain">
<summary>
classe wrapper di accesso ai dati
</summary>
</member>
<member name="M:SteamWare.XPS.DsMain.#ctor">
<summary>
avvio componenti
</summary>
</member>
<member name="M:SteamWare.XPS.DsMain.avvioTableAdapters">
<summary>
avvio dei vari oggetti esposti
</summary>
</member>
<member name="M:SteamWare.XPS.DsMain.setupConnectionString">
<summary>
effettua setup dei connection strings da web.config delal singola applicazione
</summary>
</member>
<member name="F:SteamWare.XPS.DsMain.wrapper">
<summary>
singleton di accesso ai dati di tracking
</summary>
</member>
</members>
</doc>
Binary file not shown.
Binary file not shown.
+5 -1
View File
@@ -30,7 +30,11 @@
text-align: right;
vertical-align: bottom;
}
.barcodeFont
{
font-family:@Free 3 of 9 Extended;
font-size: 60pt;
}
/*Popup Control*/
.popupControl
+1 -1
View File
@@ -98,7 +98,7 @@
<add key="_showAllTree" value="false"/>
<add key="_jumpStart" value="10"/>
<add key ="defDayLeadTime" value="3"/>
<add key="_adminEmail" value="info@steamware.net" />
<add key="_adminEmail" value="info@steamware.net" />
<add key="_logDir" value="./logs/"/>
<add key="_smtpCli" value="localhost"/>
<add key="PermessiConnectionString" value="Data Source=localhost;Initial Catalog=SteamWare_XPS;Persist Security Info=True;User id=sa;Password=keyhammer"/>
+8
View File
@@ -0,0 +1,8 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/AjaxTitle.master" AutoEventWireup="true" CodeFile="barcode.aspx.cs" Inherits="barcode" %>
<%@ Register src="mod_barcode.ascx" tagname="mod_barcode" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<uc1:mod_barcode ID="mod_barcode1" runat="server" />
</asp:Content>
+177
View File
@@ -0,0 +1,177 @@
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
public partial class barcode : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
setupComandiBarcode();
setupValoriBarcode();
mod_barcode1.eh_comandoRegistrato += new EventHandler(mod_barcode1_eh_comandoRegistrato);
}
/// <summary>
/// effettuo il setup dei valori ammessi x il barcode...
/// </summary>
private void setupValoriBarcode()
{
DS_applicazioneTableAdapters.v_commesseTableAdapter taCommesse = new DS_applicazioneTableAdapters.v_commesseTableAdapter();
DS_applicazione.v_commesseDataTable _tabComm = taCommesse.GetData();
Dictionary<string, string> valori = new Dictionary<string, string>();
foreach (DS_applicazione.v_commesseRow riga in _tabComm)
{
valori.Add(riga.Cod.ToString(), string.Format("{0}<br/><b>{1}</b> DDT {2} del {3:dd MMM yyyy}<br/>{4} colli ({5} kg)<br /><b>{6}</b>", riga.Cod, riga.Cliente, riga.DDT, riga.DataDDT, riga.Colli, riga.Peso, riga.Stato));
}
// assegno valori al barcode...
mod_barcode1.tabValori = valori;
}
/// <summary>
/// carico da tab i comandi ammessi per il barcode...
/// </summary>
private void setupComandiBarcode()
{
DS_applicazioneTableAdapters.TransizioneEventiTableAdapter taTran = new DS_applicazioneTableAdapters.TransizioneEventiTableAdapter();
DS_applicazione.TransizioneEventiDataTable _tabTran = taTran.GetData();
Dictionary<string, string> comandi = new Dictionary<string, string>();
foreach (DS_applicazione.TransizioneEventiRow riga in _tabTran)
{
comandi.Add(riga.codInviato, user_std.UtSn.Traduci(riga.text2show));
}
// impongo i comandi al barcode...
mod_barcode1.comandiAmmessi = comandi;
}
/// <summary>
/// il barcode ha registrato un evento...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_barcode1_eh_comandoRegistrato(object sender, EventArgs e)
{
// lookUp tabella transizione...
string toDo = "";
DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter taAE = new DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter();
try
{
toDo = taAE.getByCodInviato(mod_barcode1.comandoRegistrato.currCmdIn)[0].Nome;
}
catch
{ }
// in base al contenuto del comando scelgo cosa fare...
switch (toDo)
{
case "Barcode - cambio stato":
if (mod_barcode1.comandoRegistrato.valore != "")
{
mod_barcode1.txtRich2show = user_std.UtSn.Traduci("pleaseConfirm");
}
else
{
mod_barcode1.txtRich2show = user_std.UtSn.Traduci("codObjUnknown");
}
break;
case "Barcode - interrogazione":
mod_barcode1.txtRich2show = user_std.UtSn.Traduci("pleaseConfirm");
break;
case "Barcode - conferma":
// se input completo eseguo...
if (mod_barcode1.comandoRegistrato.currCmdIn != "" && mod_barcode1.comandoRegistrato.valore != "")
{
eseguiComando();
}// altrimenti warning..
else
{
mod_barcode1.txtRich2show = user_std.UtSn.Traduci("codObjUnknown");
mod_barcode1.comandoRegistrato.currCmdIn = mod_barcode1.comandoRegistrato.prevCmdIn;
mod_barcode1.comandoRegistrato.descrComando = mod_barcode1.comandoRegistrato.descrComandoPrev;
mod_barcode1.txtInput2show = mod_barcode1.comandoRegistrato.descrComandoPrev;
}
break;
case "Barcode - reset":
mod_barcode1.resetMe();
break;
default:
break;
}
}
/// <summary>
/// eseguo il comando
/// </summary>
private void eseguiComando()
{
// lookUp tabella transizione...
string toDo = "";
DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter taAE = new DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter();
try
{
toDo = taAE.getByCodInviato(mod_barcode1.comandoRegistrato.prevCmdIn)[0].Nome;
}
catch
{ }
DS_applicazioneTableAdapters.IstObjTableAdapter taIstObj = new DS_applicazioneTableAdapters.IstObjTableAdapter();
string msg2show = "";
// in base al contenuto del comando scelgo cosa fare...
switch (toDo)
{
case "Barcode - cambio stato":
// verifico se lo stato sia corretto (cioè successivo a quello corrente...)
if (chkCommandValid(mod_barcode1.comandoRegistrato.valore, mod_barcode1.comandoRegistrato.prevCmdIn))
{
string codObjCommon = mod_barcode1.comandoRegistrato.valore.Replace("D", "%");
XPS.obj.taObj.UpdStatoTree(mod_barcode1.comandoRegistrato.prevCmdIn, user_std.UtSn.utente, DateTime.Now, codObjCommon);
msg2show = string.Format("{0}: {1}", mod_barcode1.comandoRegistrato.valore, user_std.UtSn.Traduci("chgStateDone"));
}
else // altrimenti segnalo errore...
{
msg2show = user_std.UtSn.Traduci("cannotStateChange");
}
break;
case "Barcode - interrogazione":
// mostro il dettaglio direttamente in detComm.aspx
#if false
// mostro timbrature...
// apro maschera dipendenti
LogAccessi childForm = new LogAccessi();
childForm.MdiParent = this.ParentForm;
childForm.Text = "Log accessi dipendenti";
childForm.ricerca = mod_barcode1.comandoRegistrato.valoreTrad;
childForm.Show();
#endif
break;
default:
break;
}
mod_barcode1.resetMe();
if (msg2show != "") mod_barcode1.txtInput2show = msg2show;
}
/// <summary>
/// verifica se il comando richiesto sia corretto, ovvero che si stia avanzando di 1 solo stato rispetto a quello corrente...
/// </summary>
/// <param name="codObj"></param>
/// <param name="currState"></param>
/// <param name="reqState"></param>
/// <returns></returns>
protected bool chkCommandValid(string codObj, string reqState)
{
bool answ = false;
string currState = "";
// calcolo lo stato dell'oggetto...
try
{
currState = XPS.obj.taObj.getByIdxObj(codObj)[0].CodStato;
if ((Convert.ToInt32(currState.Substring(0, 2)) + 1) == Convert.ToInt32(reqState.Substring(0, 2))) answ = true;
}
catch
{ }
// guardo se lo stato sia quello appena prima
return answ;
}
protected override void OnUnload(EventArgs e)
{
base.OnUnload(e);
mod_barcode1.eh_comandoRegistrato -= new EventHandler(mod_barcode1_eh_comandoRegistrato);
}
}
+8
View File
@@ -0,0 +1,8 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Standard.master" AutoEventWireup="true" CodeFile="elencoBarcode.aspx.cs" Inherits="elencoBarcode" %>
<%@ Register src="mod_elencoBarcode.ascx" tagname="mod_elencoBarcode" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<uc1:mod_elencoBarcode ID="mod_elencoBarcode1" runat="server" />
</asp:Content>
+13
View File
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class elencoBarcode : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
+13
View File
@@ -8,3 +8,16 @@
29/10/2008 12.08.02 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 12.23.52 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 13.32.10 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 13.55.34 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 14.13.49 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 15.13.11 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 15.32.01 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 15.36.35 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 15.38.05 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 15.42.14 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 16.10.00 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 16.31.43 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 16.51.47 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 16.55.51 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 17.17.39 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
29/10/2008 17.23.19 [INFO] - L'utente Locatelli Samuele (VOSTRO410\Administrator) ha effettuato il login correttamente
+16
View File
@@ -0,0 +1,16 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_barcode.ascx.cs" Inherits="mod_barcode" %>
<div style="text-align: center;">
<div>
<asp:TextBox runat="server" ID="txtComando" TextMode="Password" Width="200px"
ontextchanged="txtComando_TextChanged" />
</div>
<div>
<asp:Label runat="server" ID="lblInput" Text="" />
</div>
<div>
<asp:Label runat="server" ID="lblValore" Text="" />
</div>
<div>
<asp:Label runat="server" ID="lblRichiesta" Text="" />
</div>
</div>
+220
View File
@@ -0,0 +1,220 @@
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
public partial class mod_barcode : ApplicationUserControl
{
#region area protected
/// <summary>
/// dictionary comandi ammessi
/// </summary>
protected Dictionary<string, string> _comandi = new Dictionary<string, string>();
/// <summary>
/// dictionary dei valori ammessi
/// </summary>
protected Dictionary<string, string> _tabValori = new Dictionary<string, string>();
/// <summary>
/// oggetto comando locale alla classe
/// </summary>
protected inputComando comando
{
get
{
inputComando answ;
if (memLayer.ML.isInSessionObject("barcodeCmd"))
{
answ = (inputComando)memLayer.ML.objSessionObj("barcodeCmd");
}
else
{
answ = new inputComando();
}
return answ;
}
set
{
memLayer.ML.setSessionVal("barcodeCmd", value, false);
}
}
/// <summary>
/// al caricamento della pagina...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected override void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
myInitialize();
}
/// <summary>
/// inizializzazione specifica barcode
/// </summary>
private void myInitialize()
{
lblInput.Text = traduci("PregoInserireBarcode");
if (!Page.IsPostBack) comando = new inputComando();
txtComando.Focus();
}
/// <summary>
/// barcode completato con invio...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtComando_TextChanged(object sender, EventArgs e)
{
// verifico se sia un comando o un valore valido...
isInputEvent();
isValore();
// verifico se c'è stato input evento
if (comando.isValid)
{
if (comando.currCmdIn != "")
{
txtInput2show = comando.descrComando;
}
else
{
txtInput2show = "---";
}
if (comando.valore != "")
{
txtVal2show = comando.valoreTrad;
}
else
{
txtVal2show = "---";
}
if (eh_comandoRegistrato != null)
{
eh_comandoRegistrato(this, new EventArgs());
}
}
else
{
lblInput.Text = traduci("ComandoSconosciuto");
lblValore.Text = txtComando.Text;
comando = new inputComando();
}
txtComando.Text = "";
}
/// <summary>
/// verifico se sia un valore compreso nell'elenco fornito
/// </summary>
private void isValore()
{
if (_tabValori.ContainsKey(txtComando.Text)) // verifico se il comando digitato esista...
{
comando.isValid = true;
comando.valore = txtComando.Text;
_tabValori.TryGetValue(txtComando.Text, out comando.valoreTrad);
}
}
/// <summary>
/// verifica se il comando inserito sia valido
/// </summary>
private void isInputEvent()
{
if (_comandi.ContainsKey(txtComando.Text)) // verifico se il comando digitato esista...
{
comando.isValid = true;
// salvo comando precedente (se c'è...)
comando.prevCmdIn = comando.currCmdIn;
comando.descrComandoPrev = comando.descrComando;
comando.currCmdIn = txtComando.Text;
_comandi.TryGetValue(txtComando.Text, out comando.descrComando);
}
}
#endregion
#region area public
/// <summary>
/// elenco dei comandi riconosciuti
/// </summary>
public Dictionary<string, string> comandiAmmessi
{
get
{
return _comandi;
}
set
{
_comandi = value;
}
}
/// <summary>
/// tabella di valori ammissibili
/// </summary>
public Dictionary<string, string> tabValori
{
get
{
return _tabValori;
}
set
{
_tabValori = value;
}
}
/// <summary>
/// evento comando registrato
/// </summary>
public event EventHandler eh_comandoRegistrato;
/// <summary>
/// comando registrato dal barcode
/// </summary>
public inputComando comandoRegistrato
{
get
{
return comando;
}
}
/// <summary>
/// scrive nella label input
/// </summary>
public string txtInput2show
{
set
{
lblInput.Text = value;
}
}
/// <summary>
/// scrive nella label valore
/// </summary>
public string txtVal2show
{
set
{
lblValore.Text = value;
}
}
/// <summary>
/// scrive nella label richiesta
/// </summary>
public string txtRich2show
{
set
{
lblRichiesta.Text = value;
}
}
/// <summary>
/// reset del controllo
/// </summary>
public void resetMe()
{
comando = new inputComando();
txtInput2show = "Prego inserire barcode";
txtVal2show = "";
txtRich2show = "";
}
#endregion
}
+39
View File
@@ -0,0 +1,39 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_elencoBarcode.ascx.cs"
Inherits="mod_elencoBarcode" %>
<div style="font-size: larger;">
<link href="Style.css" rel="stylesheet" type="text/css" />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ods">
<Columns>
<asp:BoundField DataField="descrComando" HeaderText="Comando Inviato" SortExpression="descrComando" />
<asp:TemplateField HeaderText="Barcode" SortExpression="codInviato">
<ItemTemplate>
<div style="padding: 40px; text-align:center;">
<asp:Label ID="Label1" runat="server" Text='<%# barcodeFormat(Eval("codInviato")) %>'
CssClass="barcodeFont" />
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
<asp:ObjectDataSource ID="ods" runat="server" DeleteMethod="Delete" InsertMethod="Insert"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="DS_applicazioneTableAdapters.TransizioneEventiTableAdapter"
UpdateMethod="Update">
<DeleteParameters>
<asp:Parameter Name="Original_codInviato" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="prec_codInviato" Type="String" />
<asp:Parameter Name="IdxTipoEvento" Type="Int32" />
<asp:Parameter Name="text2show" Type="String" />
<asp:Parameter Name="descrComando" Type="String" />
<asp:Parameter Name="Original_codInviato" Type="String" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="codInviato" Type="String" />
<asp:Parameter Name="prec_codInviato" Type="String" />
<asp:Parameter Name="IdxTipoEvento" Type="Int32" />
<asp:Parameter Name="text2show" Type="String" />
<asp:Parameter Name="descrComando" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
+22
View File
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class mod_elencoBarcode : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
/// <summary>
/// formatta correttamente per stampa barcode
/// </summary>
/// <param name="valore"></param>
/// <returns></returns>
public string barcodeFormat(object valore)
{
return string.Format("*{0}*", valore);
}
}
+25 -19
View File
@@ -32,15 +32,15 @@
<td>
<uc1:mod_filtro ID="mf_cliNew" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
</td>
<td>
<asp:Label ID="lblNumDDT" runat="server" />
<td>
<asp:Label ID="lblCicloEqua" runat="server" />
</td>
<td>
<asp:TextBox ID="txtDDT" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvDDT" runat="server" ErrorMessage="!!!" ControlToValidate="txtDDT" />
<asp:DropDownList runat="server" ID="ddlCiclo">
<asp:ListItem Value="Brun">Brunitura</asp:ListItem>
<asp:ListItem Value="Fosf">Fosfatazione</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblDescr" runat="server" />
</td>
@@ -48,6 +48,16 @@
<asp:TextBox ID="txtDescr" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvDescr" runat="server" ErrorMessage="!!!" ControlToValidate="txtDescr" />
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblNumDDT" runat="server" />
</td>
<td>
<asp:TextBox ID="txtDDT" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvDDT" runat="server" ErrorMessage="!!!" ControlToValidate="txtDDT" />
</td>
<td>
<asp:Label ID="lblDataDDT" runat="server" />
</td>
@@ -58,9 +68,7 @@
TargetControlID="txtDataDDT" Format="dd/MM/yyyy">
</cc1:CalendarExtender>
</td>
</tr>
<tr>
<td colspan="4" align="center">
<td colspan="2" align="right">
<asp:Button ID="btnNewComm" runat="server" OnClick="btnNewComm_Click" CausesValidation="true" />
</td>
</tr>
@@ -109,6 +117,7 @@
Target="_blank" ToolTip='<%# traduci("stampaBarcode") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Ciclo" HeaderText="Ciclo" SortExpression="Ciclo" ReadOnly="true" />
<asp:BoundField DataField="Stato" HeaderText="Stato" SortExpression="CodStato" ReadOnly="true" />
<asp:TemplateField>
<ItemTemplate>
@@ -121,7 +130,7 @@
<asp:ImageButton ID="imgSchedulaTutto" runat="server" CausesValidation="False" CommandName="Select"
OnClick="imgSchedulaTutto_Click" ToolTip='<%# traduci("SchedulaObjXps")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica , SteamWare.dimImg.small) %>'
Visible='<%# isSchedulaVisible(Eval("CodStato")) %>' />
<asp:ImageButton ID="imgSetStato" runat="server" CausesValidation="False" CommandName="Select"
<asp:ImageButton ID="imgSetStato" runat="server" CausesValidation="False" CommandName="Select"
OnClick="imgSetStato_Click" ToolTip='<%# traduci("setStatoObjXps")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica , SteamWare.dimImg.small) %>'
Visible='<%# isSetStatoVisible(Eval("CodStato")) %>' />
</ItemTemplate>
@@ -191,8 +200,7 @@
<asp:Button ID="btnOk" runat="server" Width="100px" OnClick="btnOk_Click" />
&nbsp;&nbsp;
<asp:Button ID="btnCancel" runat="server" Width="100px" OnClick="btnCancel_Click" />
<cc1:ConfirmButtonExtender ID="cbeOkDueDate" runat="server" ConfirmText="..."
TargetControlID="btnOk">
<cc1:ConfirmButtonExtender ID="cbeOkDueDate" runat="server" ConfirmText="..." TargetControlID="btnOk">
</cc1:ConfirmButtonExtender>
</div>
</div>
@@ -201,12 +209,11 @@
<div class="notaMargine">
<div style="text-align: center;">
<asp:Label runat="server" ID="lblImpostaStato" Text="..." /><br />
<asp:DropDownList runat="server" ID="ddlStato2Set" DataSourceID="odsStati"
DataTextField="label" DataValueField="value">
<asp:DropDownList runat="server" ID="ddlStato2Set" DataSourceID="odsStati" DataTextField="label"
DataValueField="value">
</asp:DropDownList>
<asp:ObjectDataSource ID="odsStati" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio"
TypeName="DS_utilityTableAdapters.v_selStatiTableAdapter">
<asp:ObjectDataSource ID="odsStati" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByConditio" TypeName="DS_utilityTableAdapters.v_selStatiTableAdapter">
<SelectParameters>
<asp:Parameter DefaultValue="EQUA_comm" Name="conditio" Type="String" />
</SelectParameters>
@@ -216,8 +223,7 @@
<asp:Button ID="btnOkStati" runat="server" Width="100px" OnClick="btnOkStati_Click" />
&nbsp;&nbsp;
<asp:Button ID="btnCancelStati" runat="server" Width="100px" OnClick="btnCancelStati_Click" />
<cc1:ConfirmButtonExtender ID="cbeOkStati" runat="server" ConfirmText="..."
TargetControlID="btnOkStati">
<cc1:ConfirmButtonExtender ID="cbeOkStati" runat="server" ConfirmText="..." TargetControlID="btnOkStati">
</cc1:ConfirmButtonExtender>
</div>
</div>
+2 -1
View File
@@ -193,6 +193,7 @@ public partial class mod_elencoComm : ApplicationUserControl
lblNumDDT.Text = traduci("lblNumDDT");
lblDataDDT.Text = traduci("lblDataDDT");
lblDescr.Text = traduci("lblDescr");
lblCicloEqua.Text = traduci("lblCicloEqua");
lblDataPrev.Text = traduci("updateAllObjChild");
txtDueDate.Text = DateTime.Now.AddDays(memLayer.ML.confReadint("defDayLeadTime")).ToString("dd/MM/yyyy");
btnCancel.Text = traduci("btnCancel");
@@ -248,7 +249,7 @@ public partial class mod_elencoComm : ApplicationUserControl
catch
{ }
// creazione di un nuovo set...
taComm.sp_creaSetObj(string.Format("{0:yyMMdd}{1:00}", DateTime.Now, nextIdx), "EQUA", mf_cliNew.valore, txtDDT.Text, Convert.ToDateTime(txtDataDDT.Text), "", user_std.UtSn.utente, txtDescr.Text);
taComm.sp_creaSetObj(string.Format("{0:yyMMdd}{1:00}", DateTime.Now, nextIdx), "EQUA", mf_cliNew.valore, txtDDT.Text, Convert.ToDateTime(txtDataDDT.Text), ddlCiclo.SelectedValue, user_std.UtSn.utente, txtDescr.Text);
// nascondo tutto...
txtDDT.Text = "";
txtDataDDT.Text = "";