review liste di prelievo
rifatto installer update generale git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@175 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -848,6 +848,12 @@
|
||||
<Content Include="images\approva_s.png" />
|
||||
<Content Include="images\arancio_20.png" />
|
||||
<Content Include="images\arancio_80.png" />
|
||||
<Content Include="images\ArrowDownRed_l.png" />
|
||||
<Content Include="images\ArrowDownRed_m.png" />
|
||||
<Content Include="images\ArrowDownRed_s.png" />
|
||||
<Content Include="images\ArrowUpGreen_l.png" />
|
||||
<Content Include="images\ArrowUpGreen_m.png" />
|
||||
<Content Include="images\ArrowUpGreen_s.png" />
|
||||
<Content Include="images\circle_l_0.png" />
|
||||
<Content Include="images\circle_l_1.png" />
|
||||
<Content Include="images\circle_l_2.png" />
|
||||
|
||||
@@ -496,6 +496,7 @@ namespace GMW.WebUserControls
|
||||
mod_viewRigheListaPrelievo1.Visible = false;
|
||||
}
|
||||
|
||||
#if false
|
||||
/// <summary>
|
||||
/// nasconde il modulo al cambiare dello stato checkbox
|
||||
/// </summary>
|
||||
@@ -517,7 +518,8 @@ namespace GMW.WebUserControls
|
||||
mod_viewRigheListaPrelievo1.Visible = false;
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// salvo in session che il prox comando è iniziare attivare prelievo...
|
||||
@@ -640,7 +642,9 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
checkFixOds();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ssitema visualizzazione dal filtraggi
|
||||
/// </summary>
|
||||
private void checkFixOds()
|
||||
{
|
||||
ods.FilterParameters.Clear();
|
||||
|
||||
@@ -59,13 +59,13 @@
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgPrelevato" runat="server" CausesValidation="False" CommandName="Update"
|
||||
CommandArgument="ConfermaPrelevato" ToolTip='<%# traduci("EffettuaPrelievo") %>'
|
||||
Visible='<%# prelevaEnabled(Eval("Prelevato"), Eval("UDC")) %>' ImageUrl="~/images/apply_s.png"
|
||||
Visible='<%# prelevaEnabled(Eval("Prelevato"), Eval("UDC")) %>' ImageUrl="~/images/ArrowUpGreen_m.png"
|
||||
OnClick="imgPrelevato_Click" />
|
||||
<cc1:ConfirmButtonExtender ID="cbePreleva" runat="server" ConfirmText='<%# traduci("confermaPrelievo")%>'
|
||||
TargetControlID="imgPrelevato" />
|
||||
<asp:ImageButton ID="imgAnnullaPrelevato" runat="server" CausesValidation="False"
|
||||
CommandName="Update" CommandArgument="AnnullaPrelevato" ToolTip='<%# traduci("AnnullaPrelievo") %>'
|
||||
Visible='<%# annullaEnabled(Eval("Prelevato")) %>' ImageUrl="~/images/cancel_s.png"
|
||||
Visible='<%# annullaEnabled(Eval("Prelevato")) %>' ImageUrl="~/images/ArrowDownRed_m.png"
|
||||
OnClick="imgAnnullato_Click" />
|
||||
<cc1:ConfirmButtonExtender ID="cbeAnnulla" runat="server" ConfirmText='<%# traduci("confermaAnnullaPrelievo")%>'
|
||||
TargetControlID="imgAnnullaPrelevato" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 694 B |
Binary file not shown.
|
After Width: | Height: | Size: 496 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 761 B |
Binary file not shown.
|
After Width: | Height: | Size: 494 B |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Generated
+30
-1
@@ -3098,11 +3098,18 @@ SELECT CodEvento, IdxPosizione, IdxPosizioneTo FROM TabTranPosizEventi WHERE (Co
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT CodEvento, IdxPosizione, IdxPosizioneTo FROM dbo.TabTranPosizEventi";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "dbo.stp_TTPE_getByCodEventoPosizione";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodEvento", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -3127,6 +3134,28 @@ SELECT CodEvento, IdxPosizione, IdxPosizioneTo FROM TabTranPosizEventi WHERE (Co
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_SM.TabTranPosizEventiDataTable getByEventoPosizione(string CodEvento, global::System.Nullable<int> IdxPosizione) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((CodEvento == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodEvento));
|
||||
}
|
||||
if ((IdxPosizione.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((int)(IdxPosizione.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_SM.TabTranPosizEventiDataTable dataTable = new DS_SM.TabTranPosizEventiDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int Update(DS_SM.TabTranPosizEventiDataTable dataTable) {
|
||||
|
||||
+34
-21
@@ -168,7 +168,20 @@ SELECT CodEvento, IdxPosizione, IdxPosizioneTo FROM TabTranPosizEventi WHERE (Co
|
||||
<Mapping SourceColumn="IdxPosizione" DataSetColumn="IdxPosizione" />
|
||||
<Mapping SourceColumn="IdxPosizioneTo" DataSetColumn="IdxPosizioneTo" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_TTPE_getByCodEventoPosizione" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByEventoPosizione" GetMethodModifier="Public" GetMethodName="getByEventoPosizione" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByEventoPosizione" UserSourceName="getByEventoPosizione">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_TTPE_getByCodEventoPosizione</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodEvento" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxPosizione" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagPosizioniTableAdapter" GeneratorDataComponentClassName="AnagPosizioniTableAdapter" Name="AnagPosizioni" UserDataComponentName="AnagPosizioniTableAdapter">
|
||||
<MainSource>
|
||||
@@ -282,28 +295,28 @@ SELECT CodTipoDelibera, DescDelibera, CodEvento FROM AnagTipoDelibere WHERE (Cod
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DS_SM" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="DS_SM" msprop:Generator_UserDSName="DS_SM" msprop:EnableTableAdapterManager="true">
|
||||
<xs:element name="DS_SM" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="DS_SM" msprop:Generator_DataSetName="DS_SM" msprop:EnableTableAdapterManager="true">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="Delibere" msprop:Generator_UserTableName="Delibere" msprop:Generator_RowDeletedName="DelibereRowDeleted" msprop:Generator_TableClassName="DelibereDataTable" msprop:Generator_RowChangedName="DelibereRowChanged" msprop:Generator_RowClassName="DelibereRow" msprop:Generator_RowChangingName="DelibereRowChanging" msprop:Generator_RowEvArgName="DelibereRowChangeEvent" msprop:Generator_RowEvHandlerName="DelibereRowChangeEventHandler" msprop:Generator_TablePropName="Delibere" msprop:Generator_TableVarName="tableDelibere" msprop:Generator_RowDeletingName="DelibereRowDeleting">
|
||||
<xs:element name="Delibere" msprop:Generator_UserTableName="Delibere" msprop:Generator_RowDeletedName="DelibereRowDeleted" msprop:Generator_RowChangedName="DelibereRowChanged" msprop:Generator_RowClassName="DelibereRow" msprop:Generator_RowChangingName="DelibereRowChanging" msprop:Generator_RowEvArgName="DelibereRowChangeEvent" msprop:Generator_RowEvHandlerName="DelibereRowChangeEventHandler" msprop:Generator_TableClassName="DelibereDataTable" msprop:Generator_TableVarName="tableDelibere" msprop:Generator_RowDeletingName="DelibereRowDeleting" msprop:Generator_TablePropName="Delibere">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodTipoDelibera" msprop:Generator_UserColumnName="CodTipoDelibera" msprop:Generator_ColumnPropNameInRow="CodTipoDelibera" msprop:Generator_ColumnVarNameInTable="columnCodTipoDelibera" msprop:Generator_ColumnPropNameInTable="CodTipoDeliberaColumn">
|
||||
<xs:element name="CodTipoDelibera" msprop:Generator_UserColumnName="CodTipoDelibera" msprop:Generator_ColumnVarNameInTable="columnCodTipoDelibera" msprop:Generator_ColumnPropNameInRow="CodTipoDelibera" msprop:Generator_ColumnPropNameInTable="CodTipoDeliberaColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="UDC" msprop:Generator_UserColumnName="UDC" msprop:Generator_ColumnPropNameInRow="UDC" msprop:Generator_ColumnVarNameInTable="columnUDC" msprop:Generator_ColumnPropNameInTable="UDCColumn">
|
||||
<xs:element name="UDC" msprop:Generator_UserColumnName="UDC" msprop:Generator_ColumnVarNameInTable="columnUDC" msprop:Generator_ColumnPropNameInRow="UDC" msprop:Generator_ColumnPropNameInTable="UDCColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DataDelibera" msprop:Generator_UserColumnName="DataDelibera" msprop:Generator_ColumnPropNameInRow="DataDelibera" msprop:Generator_ColumnVarNameInTable="columnDataDelibera" msprop:Generator_ColumnPropNameInTable="DataDeliberaColumn" type="xs:dateTime" />
|
||||
<xs:element name="CodSoggetto" msprop:Generator_UserColumnName="CodSoggetto" msprop:Generator_ColumnPropNameInRow="CodSoggetto" msprop:Generator_ColumnVarNameInTable="columnCodSoggetto" msprop:Generator_ColumnPropNameInTable="CodSoggettoColumn">
|
||||
<xs:element name="DataDelibera" msprop:Generator_UserColumnName="DataDelibera" msprop:Generator_ColumnVarNameInTable="columnDataDelibera" msprop:Generator_ColumnPropNameInRow="DataDelibera" msprop:Generator_ColumnPropNameInTable="DataDeliberaColumn" type="xs:dateTime" />
|
||||
<xs:element name="CodSoggetto" msprop:Generator_UserColumnName="CodSoggetto" msprop:Generator_ColumnVarNameInTable="columnCodSoggetto" msprop:Generator_ColumnPropNameInRow="CodSoggetto" msprop:Generator_ColumnPropNameInTable="CodSoggettoColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="16" />
|
||||
@@ -313,17 +326,17 @@ SELECT CodTipoDelibera, DescDelibera, CodEvento FROM AnagTipoDelibere WHERE (Cod
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagTipoEvento" msprop:Generator_UserTableName="AnagTipoEvento" msprop:Generator_RowDeletedName="AnagTipoEventoRowDeleted" msprop:Generator_TableClassName="AnagTipoEventoDataTable" msprop:Generator_RowChangedName="AnagTipoEventoRowChanged" msprop:Generator_RowClassName="AnagTipoEventoRow" msprop:Generator_RowChangingName="AnagTipoEventoRowChanging" msprop:Generator_RowEvArgName="AnagTipoEventoRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagTipoEventoRowChangeEventHandler" msprop:Generator_TablePropName="AnagTipoEvento" msprop:Generator_TableVarName="tableAnagTipoEvento" msprop:Generator_RowDeletingName="AnagTipoEventoRowDeleting">
|
||||
<xs:element name="AnagTipoEvento" msprop:Generator_UserTableName="AnagTipoEvento" msprop:Generator_RowDeletedName="AnagTipoEventoRowDeleted" msprop:Generator_RowChangedName="AnagTipoEventoRowChanged" msprop:Generator_RowClassName="AnagTipoEventoRow" msprop:Generator_RowChangingName="AnagTipoEventoRowChanging" msprop:Generator_RowEvArgName="AnagTipoEventoRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagTipoEventoRowChangeEventHandler" msprop:Generator_TableClassName="AnagTipoEventoDataTable" msprop:Generator_TableVarName="tableAnagTipoEvento" msprop:Generator_RowDeletingName="AnagTipoEventoRowDeleting" msprop:Generator_TablePropName="AnagTipoEvento">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodEvento" msprop:Generator_UserColumnName="CodEvento" msprop:Generator_ColumnPropNameInRow="CodEvento" msprop:Generator_ColumnVarNameInTable="columnCodEvento" msprop:Generator_ColumnPropNameInTable="CodEventoColumn">
|
||||
<xs:element name="CodEvento" msprop:Generator_UserColumnName="CodEvento" msprop:Generator_ColumnVarNameInTable="columnCodEvento" msprop:Generator_ColumnPropNameInRow="CodEvento" msprop:Generator_ColumnPropNameInTable="CodEventoColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DescEvento" msprop:Generator_UserColumnName="DescEvento" msprop:Generator_ColumnPropNameInRow="DescEvento" msprop:Generator_ColumnVarNameInTable="columnDescEvento" msprop:Generator_ColumnPropNameInTable="DescEventoColumn" minOccurs="0">
|
||||
<xs:element name="DescEvento" msprop:Generator_UserColumnName="DescEvento" msprop:Generator_ColumnVarNameInTable="columnDescEvento" msprop:Generator_ColumnPropNameInRow="DescEvento" msprop:Generator_ColumnPropNameInTable="DescEventoColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
@@ -333,26 +346,26 @@ SELECT CodTipoDelibera, DescDelibera, CodEvento FROM AnagTipoDelibere WHERE (Cod
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="TabTranPosizEventi" msprop:Generator_UserTableName="TabTranPosizEventi" msprop:Generator_RowDeletedName="TabTranPosizEventiRowDeleted" msprop:Generator_TableClassName="TabTranPosizEventiDataTable" msprop:Generator_RowChangedName="TabTranPosizEventiRowChanged" msprop:Generator_RowClassName="TabTranPosizEventiRow" msprop:Generator_RowChangingName="TabTranPosizEventiRowChanging" msprop:Generator_RowEvArgName="TabTranPosizEventiRowChangeEvent" msprop:Generator_RowEvHandlerName="TabTranPosizEventiRowChangeEventHandler" msprop:Generator_TablePropName="TabTranPosizEventi" msprop:Generator_TableVarName="tableTabTranPosizEventi" msprop:Generator_RowDeletingName="TabTranPosizEventiRowDeleting">
|
||||
<xs:element name="TabTranPosizEventi" msprop:Generator_UserTableName="TabTranPosizEventi" msprop:Generator_RowDeletedName="TabTranPosizEventiRowDeleted" msprop:Generator_RowChangedName="TabTranPosizEventiRowChanged" msprop:Generator_RowClassName="TabTranPosizEventiRow" msprop:Generator_RowChangingName="TabTranPosizEventiRowChanging" msprop:Generator_RowEvArgName="TabTranPosizEventiRowChangeEvent" msprop:Generator_RowEvHandlerName="TabTranPosizEventiRowChangeEventHandler" msprop:Generator_TableClassName="TabTranPosizEventiDataTable" msprop:Generator_TableVarName="tableTabTranPosizEventi" msprop:Generator_RowDeletingName="TabTranPosizEventiRowDeleting" msprop:Generator_TablePropName="TabTranPosizEventi">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodEvento" msprop:Generator_UserColumnName="CodEvento" msprop:Generator_ColumnPropNameInRow="CodEvento" msprop:Generator_ColumnVarNameInTable="columnCodEvento" msprop:Generator_ColumnPropNameInTable="CodEventoColumn">
|
||||
<xs:element name="CodEvento" msprop:Generator_UserColumnName="CodEvento" msprop:Generator_ColumnVarNameInTable="columnCodEvento" msprop:Generator_ColumnPropNameInRow="CodEvento" msprop:Generator_ColumnPropNameInTable="CodEventoColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="IdxPosizione" msprop:Generator_UserColumnName="IdxPosizione" msprop:Generator_ColumnPropNameInRow="IdxPosizione" msprop:Generator_ColumnVarNameInTable="columnIdxPosizione" msprop:Generator_ColumnPropNameInTable="IdxPosizioneColumn" type="xs:int" />
|
||||
<xs:element name="IdxPosizioneTo" msprop:Generator_UserColumnName="IdxPosizioneTo" msprop:Generator_ColumnPropNameInRow="IdxPosizioneTo" msprop:Generator_ColumnVarNameInTable="columnIdxPosizioneTo" msprop:Generator_ColumnPropNameInTable="IdxPosizioneToColumn" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="IdxPosizione" msprop:Generator_UserColumnName="IdxPosizione" msprop:Generator_ColumnVarNameInTable="columnIdxPosizione" msprop:Generator_ColumnPropNameInRow="IdxPosizione" msprop:Generator_ColumnPropNameInTable="IdxPosizioneColumn" type="xs:int" />
|
||||
<xs:element name="IdxPosizioneTo" msprop:Generator_UserColumnName="IdxPosizioneTo" msprop:Generator_ColumnVarNameInTable="columnIdxPosizioneTo" msprop:Generator_ColumnPropNameInRow="IdxPosizioneTo" msprop:Generator_ColumnPropNameInTable="IdxPosizioneToColumn" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagPosizioni" msprop:Generator_UserTableName="AnagPosizioni" msprop:Generator_RowDeletedName="AnagPosizioniRowDeleted" msprop:Generator_TableClassName="AnagPosizioniDataTable" msprop:Generator_RowChangedName="AnagPosizioniRowChanged" msprop:Generator_RowClassName="AnagPosizioniRow" msprop:Generator_RowChangingName="AnagPosizioniRowChanging" msprop:Generator_RowEvArgName="AnagPosizioniRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagPosizioniRowChangeEventHandler" msprop:Generator_TablePropName="AnagPosizioni" msprop:Generator_TableVarName="tableAnagPosizioni" msprop:Generator_RowDeletingName="AnagPosizioniRowDeleting">
|
||||
<xs:element name="AnagPosizioni" msprop:Generator_UserTableName="AnagPosizioni" msprop:Generator_RowDeletedName="AnagPosizioniRowDeleted" msprop:Generator_RowChangedName="AnagPosizioniRowChanged" msprop:Generator_RowClassName="AnagPosizioniRow" msprop:Generator_RowChangingName="AnagPosizioniRowChanging" msprop:Generator_RowEvArgName="AnagPosizioniRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagPosizioniRowChangeEventHandler" msprop:Generator_TableClassName="AnagPosizioniDataTable" msprop:Generator_TableVarName="tableAnagPosizioni" msprop:Generator_RowDeletingName="AnagPosizioniRowDeleting" msprop:Generator_TablePropName="AnagPosizioni">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxPosizione" msprop:Generator_UserColumnName="IdxPosizione" msprop:Generator_ColumnPropNameInRow="IdxPosizione" msprop:Generator_ColumnVarNameInTable="columnIdxPosizione" msprop:Generator_ColumnPropNameInTable="IdxPosizioneColumn" type="xs:int" />
|
||||
<xs:element name="DescPosizione" msprop:Generator_UserColumnName="DescPosizione" msprop:Generator_ColumnPropNameInRow="DescPosizione" msprop:Generator_ColumnVarNameInTable="columnDescPosizione" msprop:Generator_ColumnPropNameInTable="DescPosizioneColumn" minOccurs="0">
|
||||
<xs:element name="IdxPosizione" msprop:Generator_UserColumnName="IdxPosizione" msprop:Generator_ColumnVarNameInTable="columnIdxPosizione" msprop:Generator_ColumnPropNameInRow="IdxPosizione" msprop:Generator_ColumnPropNameInTable="IdxPosizioneColumn" type="xs:int" />
|
||||
<xs:element name="DescPosizione" msprop:Generator_UserColumnName="DescPosizione" msprop:Generator_ColumnVarNameInTable="columnDescPosizione" msprop:Generator_ColumnPropNameInRow="DescPosizione" msprop:Generator_ColumnPropNameInTable="DescPosizioneColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
@@ -362,24 +375,24 @@ SELECT CodTipoDelibera, DescDelibera, CodEvento FROM AnagTipoDelibere WHERE (Cod
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagTipoDelibere" msprop:Generator_UserTableName="AnagTipoDelibere" msprop:Generator_RowDeletedName="AnagTipoDelibereRowDeleted" msprop:Generator_TableClassName="AnagTipoDelibereDataTable" msprop:Generator_RowChangedName="AnagTipoDelibereRowChanged" msprop:Generator_RowClassName="AnagTipoDelibereRow" msprop:Generator_RowChangingName="AnagTipoDelibereRowChanging" msprop:Generator_RowEvArgName="AnagTipoDelibereRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagTipoDelibereRowChangeEventHandler" msprop:Generator_TablePropName="AnagTipoDelibere" msprop:Generator_TableVarName="tableAnagTipoDelibere" msprop:Generator_RowDeletingName="AnagTipoDelibereRowDeleting">
|
||||
<xs:element name="AnagTipoDelibere" msprop:Generator_UserTableName="AnagTipoDelibere" msprop:Generator_RowDeletedName="AnagTipoDelibereRowDeleted" msprop:Generator_RowChangedName="AnagTipoDelibereRowChanged" msprop:Generator_RowClassName="AnagTipoDelibereRow" msprop:Generator_RowChangingName="AnagTipoDelibereRowChanging" msprop:Generator_RowEvArgName="AnagTipoDelibereRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagTipoDelibereRowChangeEventHandler" msprop:Generator_TableClassName="AnagTipoDelibereDataTable" msprop:Generator_TableVarName="tableAnagTipoDelibere" msprop:Generator_RowDeletingName="AnagTipoDelibereRowDeleting" msprop:Generator_TablePropName="AnagTipoDelibere">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodTipoDelibera" msprop:Generator_UserColumnName="CodTipoDelibera" msprop:Generator_ColumnPropNameInRow="CodTipoDelibera" msprop:Generator_ColumnVarNameInTable="columnCodTipoDelibera" msprop:Generator_ColumnPropNameInTable="CodTipoDeliberaColumn">
|
||||
<xs:element name="CodTipoDelibera" msprop:Generator_UserColumnName="CodTipoDelibera" msprop:Generator_ColumnVarNameInTable="columnCodTipoDelibera" msprop:Generator_ColumnPropNameInRow="CodTipoDelibera" msprop:Generator_ColumnPropNameInTable="CodTipoDeliberaColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DescDelibera" msprop:Generator_UserColumnName="DescDelibera" msprop:Generator_ColumnPropNameInRow="DescDelibera" msprop:Generator_ColumnVarNameInTable="columnDescDelibera" msprop:Generator_ColumnPropNameInTable="DescDeliberaColumn" minOccurs="0">
|
||||
<xs:element name="DescDelibera" msprop:Generator_UserColumnName="DescDelibera" msprop:Generator_ColumnVarNameInTable="columnDescDelibera" msprop:Generator_ColumnPropNameInRow="DescDelibera" msprop:Generator_ColumnPropNameInTable="DescDeliberaColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CodEvento" msprop:Generator_UserColumnName="CodEvento" msprop:Generator_ColumnPropNameInRow="CodEvento" msprop:Generator_ColumnVarNameInTable="columnCodEvento" msprop:Generator_ColumnPropNameInTable="CodEventoColumn" minOccurs="0">
|
||||
<xs:element name="CodEvento" msprop:Generator_UserColumnName="CodEvento" msprop:Generator_ColumnVarNameInTable="columnCodEvento" msprop:Generator_ColumnPropNameInRow="CodEvento" msprop:Generator_ColumnPropNameInTable="CodEventoColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:Delibere" ZOrder="5" X="163" Y="118" Height="153" Width="193" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:AnagTipoEvento" ZOrder="4" X="884" Y="139" Height="115" Width="241" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:TabTranPosizEventi" ZOrder="3" X="874" Y="374" Height="134" Width="258" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:TabTranPosizEventi" ZOrder="3" X="874" Y="374" Height="153" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagPosizioni" ZOrder="2" X="513" Y="381" Height="115" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagTipoDelibere" ZOrder="1" X="526" Y="123" Height="134" Width="250" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
</Shapes>
|
||||
|
||||
Generated
+75
-174
@@ -5230,11 +5230,9 @@ namespace GMW_data {
|
||||
|
||||
private global::System.Data.DataColumn columnDescrLista;
|
||||
|
||||
private global::System.Data.DataColumn columnIdxPosizione;
|
||||
|
||||
private global::System.Data.DataColumn columnCodCella;
|
||||
|
||||
private global::System.Data.DataColumn columnIdxPosizioneFinal;
|
||||
private global::System.Data.DataColumn columnCodEvento;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public TipoListaPrelievoDataTable() {
|
||||
@@ -5280,13 +5278,6 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataColumn IdxPosizioneColumn {
|
||||
get {
|
||||
return this.columnIdxPosizione;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataColumn CodCellaColumn {
|
||||
get {
|
||||
@@ -5295,9 +5286,9 @@ namespace GMW_data {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataColumn IdxPosizioneFinalColumn {
|
||||
public global::System.Data.DataColumn CodEventoColumn {
|
||||
get {
|
||||
return this.columnIdxPosizioneFinal;
|
||||
return this.columnCodEvento;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5330,14 +5321,13 @@ namespace GMW_data {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public TipoListaPrelievoRow AddTipoListaPrelievoRow(string CodTipoLista, string DescrLista, int IdxPosizione, string CodCella, int IdxPosizioneFinal) {
|
||||
public TipoListaPrelievoRow AddTipoListaPrelievoRow(string CodTipoLista, string DescrLista, string CodCella, string CodEvento) {
|
||||
TipoListaPrelievoRow rowTipoListaPrelievoRow = ((TipoListaPrelievoRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
CodTipoLista,
|
||||
DescrLista,
|
||||
IdxPosizione,
|
||||
CodCella,
|
||||
IdxPosizioneFinal};
|
||||
CodEvento};
|
||||
rowTipoListaPrelievoRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowTipoListaPrelievoRow);
|
||||
return rowTipoListaPrelievoRow;
|
||||
@@ -5365,9 +5355,8 @@ namespace GMW_data {
|
||||
internal void InitVars() {
|
||||
this.columnCodTipoLista = base.Columns["CodTipoLista"];
|
||||
this.columnDescrLista = base.Columns["DescrLista"];
|
||||
this.columnIdxPosizione = base.Columns["IdxPosizione"];
|
||||
this.columnCodCella = base.Columns["CodCella"];
|
||||
this.columnIdxPosizioneFinal = base.Columns["IdxPosizioneFinal"];
|
||||
this.columnCodEvento = base.Columns["CodEvento"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -5376,12 +5365,10 @@ namespace GMW_data {
|
||||
base.Columns.Add(this.columnCodTipoLista);
|
||||
this.columnDescrLista = new global::System.Data.DataColumn("DescrLista", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnDescrLista);
|
||||
this.columnIdxPosizione = new global::System.Data.DataColumn("IdxPosizione", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnIdxPosizione);
|
||||
this.columnCodCella = new global::System.Data.DataColumn("CodCella", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnCodCella);
|
||||
this.columnIdxPosizioneFinal = new global::System.Data.DataColumn("IdxPosizioneFinal", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnIdxPosizioneFinal);
|
||||
this.columnCodEvento = new global::System.Data.DataColumn("CodEvento", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnCodEvento);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnCodTipoLista}, true));
|
||||
this.columnCodTipoLista.AllowDBNull = false;
|
||||
@@ -5390,6 +5377,8 @@ namespace GMW_data {
|
||||
this.columnDescrLista.MaxLength = 250;
|
||||
this.columnCodCella.AllowDBNull = false;
|
||||
this.columnCodCella.MaxLength = 50;
|
||||
this.columnCodEvento.AllowDBNull = false;
|
||||
this.columnCodEvento.MaxLength = 10;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -9938,21 +9927,6 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public int IdxPosizione {
|
||||
get {
|
||||
try {
|
||||
return ((int)(this[this.tableTipoListaPrelievo.IdxPosizioneColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("The value for column \'IdxPosizione\' in table \'TipoListaPrelievo\' is DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableTipoListaPrelievo.IdxPosizioneColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public string CodCella {
|
||||
get {
|
||||
@@ -9964,17 +9938,12 @@ namespace GMW_data {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public int IdxPosizioneFinal {
|
||||
public string CodEvento {
|
||||
get {
|
||||
try {
|
||||
return ((int)(this[this.tableTipoListaPrelievo.IdxPosizioneFinalColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("The value for column \'IdxPosizioneFinal\' in table \'TipoListaPrelievo\' is DBNull.", e);
|
||||
}
|
||||
return ((string)(this[this.tableTipoListaPrelievo.CodEventoColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableTipoListaPrelievo.IdxPosizioneFinalColumn] = value;
|
||||
this[this.tableTipoListaPrelievo.CodEventoColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9988,26 +9957,6 @@ namespace GMW_data {
|
||||
this[this.tableTipoListaPrelievo.DescrListaColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public bool IsIdxPosizioneNull() {
|
||||
return this.IsNull(this.tableTipoListaPrelievo.IdxPosizioneColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void SetIdxPosizioneNull() {
|
||||
this[this.tableTipoListaPrelievo.IdxPosizioneColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public bool IsIdxPosizioneFinalNull() {
|
||||
return this.IsNull(this.tableTipoListaPrelievo.IdxPosizioneFinalColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void SetIdxPosizioneFinalNull() {
|
||||
this[this.tableTipoListaPrelievo.IdxPosizioneFinalColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public ElencoListePrelievoRow[] _GetElencoListePrelievoRows() {
|
||||
if ((this.Table.ChildRelations["FK_ElencoListePrelievo_TipoListaPrelievo11"] == null)) {
|
||||
@@ -18257,50 +18206,41 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
|
||||
tableMapping.DataSetTable = "TipoListaPrelievo";
|
||||
tableMapping.ColumnMappings.Add("CodTipoLista", "CodTipoLista");
|
||||
tableMapping.ColumnMappings.Add("DescrLista", "DescrLista");
|
||||
tableMapping.ColumnMappings.Add("IdxPosizione", "IdxPosizione");
|
||||
tableMapping.ColumnMappings.Add("CodCella", "CodCella");
|
||||
tableMapping.ColumnMappings.Add("IdxPosizioneFinal", "IdxPosizioneFinal");
|
||||
tableMapping.ColumnMappings.Add("CodEvento", "CodEvento");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.DeleteCommand.Connection = this.Connection;
|
||||
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TipoListaPrelievo] WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxPosizione = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxPosizione)) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_IdxPosizioneFinal = 1 AND [IdxPosizioneFinal] IS NULL) OR ([IdxPosizioneFinal] = @Original_IdxPosizioneFinal)))";
|
||||
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TipoListaPrelievo] WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ([CodCella] = @Original_CodCella) AND ([CodEvento] = @Original_CodEvento))";
|
||||
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrLista", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxPosizioneFinal", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizioneFinal", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPosizioneFinal", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizioneFinal", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodEvento", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodEvento", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.InsertCommand.Connection = this.Connection;
|
||||
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TipoListaPrelievo] ([CodTipoLista], [DescrLista], [IdxPosizione], [CodCella], [IdxPosizioneFinal]) VALUES (@CodTipoLista, @DescrLista, @IdxPosizione, @CodCella, @IdxPosizioneFinal);
|
||||
SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista)";
|
||||
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TipoListaPrelievo] ([CodTipoLista], [DescrLista], [CodCella], [CodEvento]) VALUES (@CodTipoLista, @DescrLista, @CodCella, @CodEvento);
|
||||
SELECT CodTipoLista, DescrLista, CodCella, CodEvento FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista)";
|
||||
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizioneFinal", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizioneFinal", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodEvento", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.UpdateCommand.Connection = this.Connection;
|
||||
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TipoListaPrelievo] SET [CodTipoLista] = @CodTipoLista, [DescrLista] = @DescrLista, [IdxPosizione] = @IdxPosizione, [CodCella] = @CodCella, [IdxPosizioneFinal] = @IdxPosizioneFinal WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxPosizione = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxPosizione)) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_IdxPosizioneFinal = 1 AND [IdxPosizioneFinal] IS NULL) OR ([IdxPosizioneFinal] = @Original_IdxPosizioneFinal)));
|
||||
SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista)";
|
||||
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TipoListaPrelievo] SET [CodTipoLista] = @CodTipoLista, [DescrLista] = @DescrLista, [CodCella] = @CodCella, [CodEvento] = @CodEvento WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ([CodCella] = @Original_CodCella) AND ([CodEvento] = @Original_CodEvento));
|
||||
SELECT CodTipoLista, DescrLista, CodCella, CodEvento FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista)";
|
||||
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizioneFinal", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizioneFinal", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodEvento", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodTipoLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodTipoLista", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrLista", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrLista", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrLista", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPosizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCella", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCella", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxPosizioneFinal", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizioneFinal", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPosizioneFinal", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPosizioneFinal", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodEvento", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodEvento", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -18314,7 +18254,7 @@ SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT * FROM dbo.TipoListaPrelievo";
|
||||
this._commandCollection[0].CommandText = "SELECT CodTipoLista, DescrLista, CodCella, CodEvento FROM TipoListaPrelievo";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
@@ -18390,7 +18330,7 @@ SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
||||
public virtual int Delete(string Original_CodTipoLista, string Original_DescrLista, global::System.Nullable<int> Original_IdxPosizione, string Original_CodCella, global::System.Nullable<int> Original_IdxPosizioneFinal) {
|
||||
public virtual int Delete(string Original_CodTipoLista, string Original_DescrLista, string Original_CodCella, string Original_CodEvento) {
|
||||
if ((Original_CodTipoLista == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodTipoLista");
|
||||
}
|
||||
@@ -18405,27 +18345,17 @@ SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM
|
||||
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrLista));
|
||||
}
|
||||
if ((Original_IdxPosizione.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdxPosizione.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_CodCella == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodCella");
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_CodCella));
|
||||
this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_CodCella));
|
||||
}
|
||||
if ((Original_IdxPosizioneFinal.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_IdxPosizioneFinal.Value));
|
||||
if ((Original_CodEvento == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodEvento");
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
|
||||
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodEvento));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
||||
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
@@ -18446,7 +18376,7 @@ SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
||||
public virtual int Insert(string CodTipoLista, string DescrLista, global::System.Nullable<int> IdxPosizione, string CodCella, global::System.Nullable<int> IdxPosizioneFinal) {
|
||||
public virtual int Insert(string CodTipoLista, string DescrLista, string CodCella, string CodEvento) {
|
||||
if ((CodTipoLista == null)) {
|
||||
throw new global::System.ArgumentNullException("CodTipoLista");
|
||||
}
|
||||
@@ -18459,23 +18389,17 @@ SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrLista));
|
||||
}
|
||||
if ((IdxPosizione.HasValue == true)) {
|
||||
this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxPosizione.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((CodCella == null)) {
|
||||
throw new global::System.ArgumentNullException("CodCella");
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodCella));
|
||||
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodCella));
|
||||
}
|
||||
if ((IdxPosizioneFinal.HasValue == true)) {
|
||||
this.Adapter.InsertCommand.Parameters[4].Value = ((int)(IdxPosizioneFinal.Value));
|
||||
if ((CodEvento == null)) {
|
||||
throw new global::System.ArgumentNullException("CodEvento");
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodEvento));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
||||
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
@@ -18496,7 +18420,7 @@ SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
||||
public virtual int Update(string CodTipoLista, string DescrLista, global::System.Nullable<int> IdxPosizione, string CodCella, global::System.Nullable<int> IdxPosizioneFinal, string Original_CodTipoLista, string Original_DescrLista, global::System.Nullable<int> Original_IdxPosizione, string Original_CodCella, global::System.Nullable<int> Original_IdxPosizioneFinal) {
|
||||
public virtual int Update(string CodTipoLista, string DescrLista, string CodCella, string CodEvento, string Original_CodTipoLista, string Original_DescrLista, string Original_CodCella, string Original_CodEvento) {
|
||||
if ((CodTipoLista == null)) {
|
||||
throw new global::System.ArgumentNullException("CodTipoLista");
|
||||
}
|
||||
@@ -18509,59 +18433,43 @@ SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrLista));
|
||||
}
|
||||
if ((IdxPosizione.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxPosizione.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((CodCella == null)) {
|
||||
throw new global::System.ArgumentNullException("CodCella");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodCella));
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodCella));
|
||||
}
|
||||
if ((IdxPosizioneFinal.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdxPosizioneFinal.Value));
|
||||
if ((CodEvento == null)) {
|
||||
throw new global::System.ArgumentNullException("CodEvento");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodEvento));
|
||||
}
|
||||
if ((Original_CodTipoLista == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodTipoLista");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_CodTipoLista));
|
||||
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_CodTipoLista));
|
||||
}
|
||||
if ((Original_DescrLista == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_DescrLista));
|
||||
}
|
||||
if ((Original_IdxPosizione.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdxPosizione.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_DescrLista));
|
||||
}
|
||||
if ((Original_CodCella == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodCella");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodCella));
|
||||
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_CodCella));
|
||||
}
|
||||
if ((Original_IdxPosizioneFinal.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_IdxPosizioneFinal.Value));
|
||||
if ((Original_CodEvento == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodEvento");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodEvento));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
||||
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
@@ -18582,8 +18490,8 @@ SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
||||
public virtual int Update(string DescrLista, global::System.Nullable<int> IdxPosizione, string CodCella, global::System.Nullable<int> IdxPosizioneFinal, string Original_CodTipoLista, string Original_DescrLista, global::System.Nullable<int> Original_IdxPosizione, string Original_CodCella, global::System.Nullable<int> Original_IdxPosizioneFinal) {
|
||||
return this.Update(Original_CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal, Original_CodTipoLista, Original_DescrLista, Original_IdxPosizione, Original_CodCella, Original_IdxPosizioneFinal);
|
||||
public virtual int Update(string DescrLista, string CodCella, string CodEvento, string Original_CodTipoLista, string Original_DescrLista, string Original_CodCella, string Original_CodEvento) {
|
||||
return this.Update(Original_CodTipoLista, DescrLista, CodCella, CodEvento, Original_CodTipoLista, Original_DescrLista, Original_CodCella, Original_CodEvento);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19295,7 +19203,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.NVarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Mese", global::System.Data.SqlDbType.NVarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 6, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 35, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -19386,7 +19293,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.ElencoListePrelievoDataTable InsertQuery(string Anno, string Mese, string CodTipoLista, global::System.Nullable<int> IdxPosizione, string CodCS, string CodCliente, string RagSociale, string CodSoggetto, string Particolare, string DescParticolare, string DisegnoGrezzo, string Esponente, string Figura, string CodImballo, global::System.Nullable<decimal> QtaTot) {
|
||||
public virtual DS_magazzino.ElencoListePrelievoDataTable InsertQuery(string Anno, string Mese, string CodTipoLista, string CodCS, string CodCliente, string RagSociale, string CodSoggetto, string Particolare, string DescParticolare, string DisegnoGrezzo, string Esponente, string Figura, string CodImballo, global::System.Nullable<decimal> QtaTot) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[4];
|
||||
if ((Anno == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -19406,77 +19313,71 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(CodTipoLista));
|
||||
}
|
||||
if ((IdxPosizione.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = ((int)(IdxPosizione.Value));
|
||||
}
|
||||
else {
|
||||
if ((CodCS == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((CodCS == null)) {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(CodCS));
|
||||
}
|
||||
if ((CodCliente == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(CodCS));
|
||||
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(CodCliente));
|
||||
}
|
||||
if ((CodCliente == null)) {
|
||||
if ((RagSociale == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[6].Value = ((string)(CodCliente));
|
||||
this.Adapter.SelectCommand.Parameters[6].Value = ((string)(RagSociale));
|
||||
}
|
||||
if ((RagSociale == null)) {
|
||||
if ((CodSoggetto == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[7].Value = ((string)(RagSociale));
|
||||
this.Adapter.SelectCommand.Parameters[7].Value = ((string)(CodSoggetto));
|
||||
}
|
||||
if ((CodSoggetto == null)) {
|
||||
if ((Particolare == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = ((string)(CodSoggetto));
|
||||
this.Adapter.SelectCommand.Parameters[8].Value = ((string)(Particolare));
|
||||
}
|
||||
if ((Particolare == null)) {
|
||||
if ((DescParticolare == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = ((string)(Particolare));
|
||||
this.Adapter.SelectCommand.Parameters[9].Value = ((string)(DescParticolare));
|
||||
}
|
||||
if ((DescParticolare == null)) {
|
||||
if ((DisegnoGrezzo == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = ((string)(DescParticolare));
|
||||
this.Adapter.SelectCommand.Parameters[10].Value = ((string)(DisegnoGrezzo));
|
||||
}
|
||||
if ((DisegnoGrezzo == null)) {
|
||||
if ((Esponente == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[11].Value = ((string)(DisegnoGrezzo));
|
||||
this.Adapter.SelectCommand.Parameters[11].Value = ((string)(Esponente));
|
||||
}
|
||||
if ((Esponente == null)) {
|
||||
if ((Figura == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[12].Value = ((string)(Esponente));
|
||||
this.Adapter.SelectCommand.Parameters[12].Value = ((string)(Figura));
|
||||
}
|
||||
if ((Figura == null)) {
|
||||
if ((CodImballo == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[13].Value = ((string)(Figura));
|
||||
}
|
||||
if ((CodImballo == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[14].Value = ((string)(CodImballo));
|
||||
this.Adapter.SelectCommand.Parameters[13].Value = ((string)(CodImballo));
|
||||
}
|
||||
if ((QtaTot.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[15].Value = ((decimal)(QtaTot.Value));
|
||||
this.Adapter.SelectCommand.Parameters[14].Value = ((decimal)(QtaTot.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[15].Value = global::System.DBNull.Value;
|
||||
this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
|
||||
@@ -1492,56 +1492,48 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.TipoListaPrelievo" 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="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[TipoListaPrelievo] WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxPosizione = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxPosizione)) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_IdxPosizioneFinal = 1 AND [IdxPosizioneFinal] IS NULL) OR ([IdxPosizioneFinal] = @Original_IdxPosizioneFinal)))</CommandText>
|
||||
<CommandText>DELETE FROM [dbo].[TipoListaPrelievo] WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ([CodCella] = @Original_CodCella) AND ([CodEvento] = @Original_CodEvento))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodTipoLista" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodTipoLista" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DescrLista" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DescrLista" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DescrLista" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrLista" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdxPosizione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizione" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxPosizione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizione" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodCella" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodCella" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdxPosizioneFinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizioneFinal" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxPosizioneFinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizioneFinal" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodEvento" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodEvento" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[TipoListaPrelievo] ([CodTipoLista], [DescrLista], [IdxPosizione], [CodCella], [IdxPosizioneFinal]) VALUES (@CodTipoLista, @DescrLista, @IdxPosizione, @CodCella, @IdxPosizioneFinal);
|
||||
SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista)</CommandText>
|
||||
<CommandText>INSERT INTO [dbo].[TipoListaPrelievo] ([CodTipoLista], [DescrLista], [CodCella], [CodEvento]) VALUES (@CodTipoLista, @DescrLista, @CodCella, @CodEvento);
|
||||
SELECT CodTipoLista, DescrLista, CodCella, CodEvento FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodTipoLista" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodTipoLista" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DescrLista" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrLista" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxPosizione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizione" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodCella" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodCella" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxPosizioneFinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizioneFinal" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodEvento" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodEvento" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT * FROM dbo.TipoListaPrelievo</CommandText>
|
||||
<CommandText>SELECT CodTipoLista, DescrLista, CodCella, CodEvento FROM TipoListaPrelievo</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[TipoListaPrelievo] SET [CodTipoLista] = @CodTipoLista, [DescrLista] = @DescrLista, [IdxPosizione] = @IdxPosizione, [CodCella] = @CodCella, [IdxPosizioneFinal] = @IdxPosizioneFinal WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ((@IsNull_IdxPosizione = 1 AND [IdxPosizione] IS NULL) OR ([IdxPosizione] = @Original_IdxPosizione)) AND ([CodCella] = @Original_CodCella) AND ((@IsNull_IdxPosizioneFinal = 1 AND [IdxPosizioneFinal] IS NULL) OR ([IdxPosizioneFinal] = @Original_IdxPosizioneFinal)));
|
||||
SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista)</CommandText>
|
||||
<CommandText>UPDATE [dbo].[TipoListaPrelievo] SET [CodTipoLista] = @CodTipoLista, [DescrLista] = @DescrLista, [CodCella] = @CodCella, [CodEvento] = @CodEvento WHERE (([CodTipoLista] = @Original_CodTipoLista) AND ((@IsNull_DescrLista = 1 AND [DescrLista] IS NULL) OR ([DescrLista] = @Original_DescrLista)) AND ([CodCella] = @Original_CodCella) AND ([CodEvento] = @Original_CodEvento));
|
||||
SELECT CodTipoLista, DescrLista, CodCella, CodEvento FROM TipoListaPrelievo WHERE (CodTipoLista = @CodTipoLista)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodTipoLista" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodTipoLista" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DescrLista" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrLista" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxPosizione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizione" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodCella" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodCella" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxPosizioneFinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizioneFinal" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodEvento" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodEvento" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodTipoLista" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodTipoLista" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DescrLista" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DescrLista" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DescrLista" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrLista" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdxPosizione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizione" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxPosizione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizione" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodCella" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodCella" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IdxPosizioneFinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizioneFinal" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxPosizioneFinal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxPosizioneFinal" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodEvento" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodEvento" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
@@ -1550,9 +1542,8 @@ SELECT CodTipoLista, DescrLista, IdxPosizione, CodCella, IdxPosizioneFinal FROM
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="CodTipoLista" DataSetColumn="CodTipoLista" />
|
||||
<Mapping SourceColumn="DescrLista" DataSetColumn="DescrLista" />
|
||||
<Mapping SourceColumn="IdxPosizione" DataSetColumn="IdxPosizione" />
|
||||
<Mapping SourceColumn="CodCella" DataSetColumn="CodCella" />
|
||||
<Mapping SourceColumn="IdxPosizioneFinal" DataSetColumn="IdxPosizioneFinal" />
|
||||
<Mapping SourceColumn="CodEvento" DataSetColumn="CodEvento" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_TL_getByCodTipoLista" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCodTipoLista" GetMethodModifier="Public" GetMethodName="getByCodTipoLista" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCodTipoLista" UserSourceName="getByCodTipoLista">
|
||||
@@ -1766,7 +1757,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Anno" Precision="0" ProviderType="NVarChar" Scale="0" Size="2" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Mese" Precision="0" ProviderType="NVarChar" Scale="0" Size="2" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodTipoLista" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxPosizione" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nchar" DbType="StringFixedLength" Direction="Input" ParameterName="@CodCS" Precision="0" ProviderType="NChar" Scale="0" Size="2" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodCliente" Precision="0" ProviderType="NVarChar" Scale="0" Size="6" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@RagSociale" Precision="0" ProviderType="NVarChar" Scale="0" Size="35" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -2531,7 +2521,6 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="IdxPosizione" msprop:Generator_UserColumnName="IdxPosizione" msprop:Generator_ColumnVarNameInTable="columnIdxPosizione" msprop:Generator_ColumnPropNameInRow="IdxPosizione" msprop:Generator_ColumnPropNameInTable="IdxPosizioneColumn" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="CodCella" msprop:Generator_UserColumnName="CodCella" msprop:Generator_ColumnVarNameInTable="columnCodCella" msprop:Generator_ColumnPropNameInRow="CodCella" msprop:Generator_ColumnPropNameInTable="CodCellaColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
@@ -2539,7 +2528,13 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="IdxPosizioneFinal" msprop:Generator_UserColumnName="IdxPosizioneFinal" msprop:Generator_ColumnVarNameInTable="columnIdxPosizioneFinal" msprop:Generator_ColumnPropNameInRow="IdxPosizioneFinal" msprop:Generator_ColumnPropNameInTable="IdxPosizioneFinalColumn" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="CodEvento" msprop:Generator_UserColumnName="CodEvento" msprop:Generator_ColumnPropNameInRow="CodEvento" msprop:Generator_ColumnVarNameInTable="columnCodEvento" msprop:Generator_ColumnPropNameInTable="CodEventoColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
@@ -2748,7 +2743,7 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagPosizioni" msprop:Generator_UserTableName="AnagPosizioni" msprop:Generator_RowDeletedName="AnagPosizioniRowDeleted" msprop:Generator_TableClassName="AnagPosizioniDataTable" msprop:Generator_RowChangedName="AnagPosizioniRowChanged" msprop:Generator_RowClassName="AnagPosizioniRow" msprop:Generator_RowChangingName="AnagPosizioniRowChanging" msprop:Generator_RowEvArgName="AnagPosizioniRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagPosizioniRowChangeEventHandler" msprop:Generator_TablePropName="AnagPosizioni" msprop:Generator_TableVarName="tableAnagPosizioni" msprop:Generator_RowDeletingName="AnagPosizioniRowDeleting">
|
||||
<xs:element name="AnagPosizioni" msprop:Generator_UserTableName="AnagPosizioni" msprop:Generator_RowDeletedName="AnagPosizioniRowDeleted" msprop:Generator_RowChangedName="AnagPosizioniRowChanged" msprop:Generator_RowClassName="AnagPosizioniRow" msprop:Generator_RowChangingName="AnagPosizioniRowChanging" msprop:Generator_RowEvArgName="AnagPosizioniRowChangeEvent" msprop:Generator_RowEvHandlerName="AnagPosizioniRowChangeEventHandler" msprop:Generator_TableClassName="AnagPosizioniDataTable" msprop:Generator_TableVarName="tableAnagPosizioni" msprop:Generator_RowDeletingName="AnagPosizioniRowDeleting" msprop:Generator_TablePropName="AnagPosizioni">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxPosizione" msprop:Generator_UserColumnName="IdxPosizione" msprop:Generator_ColumnPropNameInRow="IdxPosizione" msprop:Generator_ColumnVarNameInTable="columnIdxPosizione" msprop:Generator_ColumnPropNameInTable="IdxPosizioneColumn" type="xs:int" />
|
||||
|
||||
@@ -4,26 +4,26 @@
|
||||
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="58" 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="58" ViewPortY="692" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="15" X="68" Y="333" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagMag" ZOrder="28" X="1014" Y="372" Height="190" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="6" X="409" Y="544" Height="265" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="7" X="409" Y="544" Height="265" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="26" X="412" Y="310" Height="168" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:Blocchi" ZOrder="21" X="1014" Y="652" Height="325" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="181" />
|
||||
<Shape ID="DesignTable:Celle" ZOrder="4" X="712" Y="420" Height="438" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:Celle" ZOrder="5" X="712" Y="420" Height="438" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:TipoCella" ZOrder="8" X="1008" Y="-2" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:v_UdcDetail" ZOrder="5" X="693" Y="9" Height="381" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:v_UdcDetail" ZOrder="6" X="693" Y="9" Height="381" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="20" X="93" Y="43" Height="156" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="19" X="95" Y="1131" Height="265" Width="272" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="138" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="10" X="733" Y="1102" Height="286" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:V_DettMagPart" ZOrder="18" X="993" Y="985" Height="326" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="7" X="724" Y="906" Height="191" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="1" X="735" Y="891" Height="172" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="17" X="83" Y="846" Height="257" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="130" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="3" X="393" Y="879" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="2" X="393" Y="879" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:v_righeListePrelievoPosizione" ZOrder="12" X="406" Y="1283" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:v_particolariEsponenteFigura" ZOrder="11" X="829" Y="1437" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagPosizioni" ZOrder="2" X="375" Y="103" Height="115" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagPosizioni" ZOrder="4" X="375" Y="103" Height="115" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_ElencoCartellini" ZOrder="27" LineWidth="11">
|
||||
@@ -125,16 +125,16 @@
|
||||
<Connector ID="DesignRelation:FK_ElencoListePrelievo_TipoListaPrelievo11" ZOrder="13" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>724</X>
|
||||
<Y>996</Y>
|
||||
<X>735</X>
|
||||
<Y>981</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>693</X>
|
||||
<Y>996</Y>
|
||||
<Y>981</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagPosizioni" ZOrder="1" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagPosizioni" ZOrder="3" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>392</X>
|
||||
|
||||
+26
-25
@@ -341,7 +341,7 @@ namespace GMW_data
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito a recuperare il codice soggetto per l'utente loggato: {0}, errore {1}{2}", user_std.UtSn.userNameAD,Environment.NewLine, e), tipoLog.ERROR);
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito a recuperare il codice soggetto per l'utente loggato: {0}, errore {1}{2}", user_std.UtSn.userNameAD, Environment.NewLine, e), tipoLog.ERROR);
|
||||
}
|
||||
return codSoggetto;
|
||||
}
|
||||
@@ -413,7 +413,7 @@ namespace GMW_data
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -458,16 +458,6 @@ namespace GMW_data
|
||||
|
||||
// variabile di tipo datetime per data corrente
|
||||
DateTime adesso = DateTime.Now;
|
||||
|
||||
// dati che mi servono...
|
||||
int idxPosizione = 0;
|
||||
try
|
||||
{
|
||||
idxPosizione = magazzino.taTipoListaPrelievo.getByCodTipoLista(TipoListaPrelievo)[0].IdxPosizione;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
// non la valorizzo qui ma calcolo ... se non fa verificare
|
||||
string RagioneSociale = "";
|
||||
|
||||
@@ -514,7 +504,7 @@ namespace GMW_data
|
||||
try
|
||||
{
|
||||
// eseguo soltanto la query (meglio con try catch così se non c'è non dà errore...)
|
||||
DS_magazzino.ElencoListePrelievoDataTable tabellaElencoListe = taElencoListePrelievo.InsertQuery(string.Format("{0:yy}", adesso), string.Format("{0:MM}", adesso), TipoListaPrelievo, idxPosizione, memLayer.ML.confReadString("CodCS"), codCliente, RagioneSociale, codSoggetto, Particolare, descParticolare, disegnoGrezzo, Esponente, Figura, CodImballo, QtaTot);
|
||||
DS_magazzino.ElencoListePrelievoDataTable tabellaElencoListe = taElencoListePrelievo.InsertQuery(string.Format("{0:yy}", adesso), string.Format("{0:MM}", adesso), TipoListaPrelievo, memLayer.ML.confReadString("CodCS"), codCliente, RagioneSociale, codSoggetto, Particolare, descParticolare, disegnoGrezzo, Esponente, Figura, CodImballo, QtaTot);
|
||||
|
||||
// ricavo prima (e unica) riga dalla select
|
||||
DS_magazzino.ElencoListePrelievoRow rigaElencoListe = tabellaElencoListe[0];
|
||||
@@ -529,8 +519,6 @@ namespace GMW_data
|
||||
if (codListaAttuale != "")
|
||||
{
|
||||
answ = codListaAttuale;
|
||||
// stored per ricavare il più vecchio in ordine ASC per Data Fusione - TABELLA
|
||||
//DS_magazzino.ElencoCartelliniDataTable tabellaElencoCartellini = taElencoCartellini.getOlderUDC(Esponente, Particolare, idxPosizione);
|
||||
DS_magazzino.ElencoCartelliniDataTable tabellaElencoCartellini = taElencoCartellini.getUdcUnusedOlder(codListaAttuale);
|
||||
allocaRigheListaPrelievo(QtaTot, codListaAttuale, tabellaElencoCartellini);
|
||||
}
|
||||
@@ -634,7 +622,6 @@ namespace GMW_data
|
||||
{
|
||||
// da chiamare quando clicco e inizio lista prelievo .... vedi sopra
|
||||
esitoOperazione answ = esitoOperazione.errore;
|
||||
|
||||
try
|
||||
{
|
||||
// la query recupera la lista in base al CodLista
|
||||
@@ -662,16 +649,24 @@ namespace GMW_data
|
||||
string codCellaDestAttuale = rigaTipoLista.CodCella;
|
||||
// lo trasformo x avere la cella di destinazione...
|
||||
int idxCellaTo = taCelle.getByCodCella(codCellaDestAttuale)[0].IdxCella;
|
||||
|
||||
int idxCellaFrom = 0;
|
||||
// sposto ("metto a terra") gli UDC
|
||||
foreach (DS_magazzino.RigheListePrelievoRow row in tabellaRigheListaPrelievo.Rows)
|
||||
{
|
||||
// ricavo il codice UDC...
|
||||
string UDC = row.UDC;
|
||||
// mi serve per posizione udc corrente
|
||||
DS_magazzino.PosizioneUdcCorrenteRow rigaUdcCorrente = taPosUdcCorr.getByUDC(UDC)[0];
|
||||
// il secondo idx che mi serve
|
||||
int idxCellaFrom = rigaUdcCorrente.IdxCella;
|
||||
// ora la posizioen
|
||||
try
|
||||
{
|
||||
// mi serve per posizione udc corrente
|
||||
DS_magazzino.PosizioneUdcCorrenteRow rigaUdcCorrente = taPosUdcCorr.getByUDC(UDC)[0];
|
||||
// il secondo idx che mi serve
|
||||
idxCellaFrom = rigaUdcCorrente.IdxCella;
|
||||
}
|
||||
catch
|
||||
{
|
||||
idxCellaFrom = 0;
|
||||
}
|
||||
// sposto UDC
|
||||
spostaUDC(CodCS, UDC, idxCellaFrom, idxCellaTo);
|
||||
}
|
||||
@@ -747,8 +742,11 @@ namespace GMW_data
|
||||
DS_magazzino.RigheListePrelievoRow rigaListaPrelievo = tabellaRigheListaPrelievo[0];
|
||||
|
||||
// leggo il codice della cella...
|
||||
int idxPosizUdc = rigaTipoLista.IdxPosizioneFinal;
|
||||
|
||||
string CodEvento = rigaTipoLista.CodEvento;
|
||||
// posizione corrente dell'UDC
|
||||
int idxPosizUdcCorr = 0;
|
||||
// posizioen di destinazione per UDC corrente
|
||||
int idxPosizUdcDest = 0;
|
||||
// scarico i vari UDC dal magazzino (come posizione corrente)
|
||||
foreach (DS_magazzino.RigheListePrelievoRow row in tabellaRigheListaPrelievo.Rows)
|
||||
{
|
||||
@@ -758,8 +756,11 @@ namespace GMW_data
|
||||
DS_magazzino.PosizioneUdcCorrenteRow rigaUdcCorrente = taPosUdcCorr.getByUDC(UDC)[0];
|
||||
// il secondo idx che mi serve
|
||||
int idxCellaFrom = rigaUdcCorrente.IdxCella;
|
||||
// calcolo posizione destinazione da state machine...
|
||||
idxPosizUdcCorr = taElencoCartellini.getDetailsUdcByUdc(UDC)[0].IdxPosizione;
|
||||
idxPosizUdcDest = StateMachine.SM.getIdxPostizioneTo(CodEvento, idxPosizUdcCorr);
|
||||
// sposto UDC
|
||||
scaricaUDC(CodCS, UDC, idxCellaFrom, idxPosizUdc);
|
||||
scaricaUDC(CodCS, UDC, idxCellaFrom, idxPosizUdcDest);
|
||||
}
|
||||
// segna come scaricata la lista prelievo
|
||||
taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.scaricata);
|
||||
@@ -884,7 +885,7 @@ namespace GMW_data
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,8 +11,32 @@ namespace GMW_data
|
||||
/// </summary>
|
||||
public class StateMachine
|
||||
{
|
||||
#region area table adapters
|
||||
|
||||
public DS_SMTableAdapters.TabTranPosizEventiTableAdapter taTTPE;
|
||||
|
||||
/// <summary>
|
||||
/// init dei table adapters
|
||||
/// </summary>
|
||||
protected void initTA()
|
||||
{
|
||||
taTTPE = new GMW_data.DS_SMTableAdapters.TabTranPosizEventiTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionStringBase()
|
||||
{
|
||||
// connections del db
|
||||
taTTPE.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected StateMachine()
|
||||
{
|
||||
initTA();
|
||||
setupConnectionStringBase();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -32,6 +56,24 @@ namespace GMW_data
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito a fare la delibera di tipo {0} per l'UDC {1} da parte dell'user {2}, messaggio d'errore {3}{4}", CodTipoDelibera, UDC, user_std.UtSn.userNameAD, Environment.NewLine, e), SteamWare.tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// calcola dalla tabella di transizioni la nuova posizioen associata all'evento ed alla posizione attuale
|
||||
/// </summary>
|
||||
/// <param name="CodEvento"></param>
|
||||
/// <param name="idxPosizione"></param>
|
||||
/// <returns></returns>
|
||||
public int getIdxPostizioneTo(string CodEvento, int idxPosizione)
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = taTTPE.getByEventoPosizione(CodEvento, idxPosizione)[0].IdxPosizioneTo;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Singleton accesos a state machine
|
||||
/// </summary>
|
||||
|
||||
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.
Binary file not shown.
Reference in New Issue
Block a user