Inserito mod_periodoAnalisi.ascx
Rifatto filtraggio liste prelievo su base periodo Aggiornate stored e classi x nuove modalità editing git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@117 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -470,6 +470,13 @@
|
||||
<Compile Include="WebUserControls\mod_paretoUdcBlocco.ascx.designer.cs">
|
||||
<DependentUpon>mod_paretoUdcBlocco.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_periodoAnalisi.ascx.cs">
|
||||
<DependentUpon>mod_periodoAnalisi.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_periodoAnalisi.ascx.designer.cs">
|
||||
<DependentUpon>mod_periodoAnalisi.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_ricercaGenerica.ascx.cs">
|
||||
<DependentUpon>mod_ricercaGenerica.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -812,6 +819,7 @@
|
||||
<Content Include="WebUserControls\mod_elencoListePrelievo.ascx" />
|
||||
<Content Include="WebUserControls\mod_funzioniVarieTest.ascx" />
|
||||
<Content Include="WebUserControls\mod_operazioniUdc.ascx" />
|
||||
<Content Include="WebUserControls\mod_periodoAnalisi.ascx" />
|
||||
<Content Include="WebUserControls\mod_unauthorized.ascx" />
|
||||
<Content Include="WebUserControls\mod_viewRigheListaPrelievo.ascx" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -3,102 +3,112 @@
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<%@ Register Src="mod_viewRigheListaPrelievo.ascx" TagName="mod_viewRigheListaPrelievo"
|
||||
TagPrefix="uc1" %>
|
||||
<div>
|
||||
<span>
|
||||
<asp:CheckBox ID="chkIniziata" runat="server" AutoPostBack="True" OnCheckedChanged="chkIniziata_CheckedChanged" />
|
||||
</span><span>
|
||||
<asp:CheckBox ID="chkCompletata" runat="server" AutoPostBack="True" OnCheckedChanged="chkCompletata_CheckedChanged" />
|
||||
</span>
|
||||
</div>
|
||||
<div style="float: left; margin-right: 5px;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="CodLista" DataSourceID="ods" OnRowUpdating="grView_RowUpdating">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
|
||||
Visible="true" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodLista" SortExpression="CodLista">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblCodLista" runat="server" Text='<%# Eval("CodLista") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Prel/Tot" SortExpression="prelevato" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPrelevati" runat="server" Text='<%# Eval("prelevato","{0:0}") %>' />
|
||||
<asp:Label ID="lblTotale" runat="server" Text='<%# Eval("QtaTot","/ {0:0}") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Iniz" SortExpression="Iniziata">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Eval("Iniziata") %>' Enabled="false"
|
||||
Width="10px" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Compl" SortExpression="Completata">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Eval("Completata") %>' Enabled="false"
|
||||
Width="10px" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>'
|
||||
Visible="false" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgIniziaListaPrelievo" runat="server" CausesValidation="False"
|
||||
CommandName="Update" CommandArgument="creaIniziaListaPrelievo" ToolTip='<%# traduci("IniziaListaPrelievo") %>'
|
||||
Visible='<%# iniziaEnabled(Eval("Iniziata")) %>' ImageUrl="~/images/Start_16.png"
|
||||
OnClick="imgIniziaLista_Click" />
|
||||
<cc1:ConfirmButtonExtender ID="cbeInizia" runat="server" ConfirmText='<%# traduci("confermaIniziaLista")%>'
|
||||
TargetControlID="imgIniziaListaPrelievo" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByFilt" TypeName="GMW_data.DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter"
|
||||
OnInserting="recuperaFooter" FilterExpression="CodLista LIKE '%{0}%' OR Particolare LIKE '%{0}%' OR DescParticolare LIKE '%{0}%'"
|
||||
OnInserted="ods_Updated" OnUpdated="ods_Updated">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
</FilterParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="chkIniziata" DefaultValue="0" Name="Iniziata" PropertyName="Checked"
|
||||
Type="Boolean" />
|
||||
<asp:ControlParameter ControlID="chkCompletata" DefaultValue="0" Name="Completata"
|
||||
PropertyName="Checked" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<uc1:mod_viewRigheListaPrelievo ID="mod_viewRigheListaPrelievo1" runat="server" />
|
||||
</div>
|
||||
<%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="filtro_1">
|
||||
<uc2:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="CodLista" DataSourceID="ods" OnRowUpdating="grView_RowUpdating">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
|
||||
Visible="true" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodLista" SortExpression="CodLista">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblCodLista" runat="server" Text='<%# Eval("CodLista") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Data" SortExpression="DataCreaz">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblDataCreaz" runat="server" Text='<%# Eval("DataCreaz") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Prel/Tot" SortExpression="prelevato" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPrelevati" runat="server" Text='<%# Eval("Prelevato","{0:0}") %>' />
|
||||
<asp:Label ID="lblTotale" runat="server" Text='<%# Eval("QtaTot","/ {0:0}") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Stato" SortExpression="CodStatoLista" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblCodStato" runat="server" Text='<%# Eval("CodStatoLista") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>'
|
||||
Visible="false" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgIniziaListaPrelievo" runat="server" CausesValidation="False"
|
||||
CommandName="Update" CommandArgument="creaIniziaListaPrelievo" ToolTip='<%# traduci("IniziaListaPrelievo") %>'
|
||||
Visible='<%# iniziaEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/Start_16.png"
|
||||
OnClick="imgIniziaLista_Click" />
|
||||
<cc1:ConfirmButtonExtender ID="cbeInizia" runat="server" ConfirmText='<%# traduci("confermaIniziaLista")%>'
|
||||
TargetControlID="imgIniziaListaPrelievo" />
|
||||
<asp:ImageButton ID="imgCompletaListaPrelievo" runat="server" CausesValidation="False"
|
||||
CommandName="Update" CommandArgument="completaListaPrelievo" ToolTip='<%# traduci("CompletaListaPrelievo") %>'
|
||||
Visible='<%# completaEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/apply_s.png"
|
||||
OnClick="imgCompletaLista_Click" />
|
||||
<cc1:ConfirmButtonExtender ID="cbeCompleta" runat="server" ConfirmText='<%# traduci("confermaCompletaLista")%>'
|
||||
TargetControlID="imgCompletaListaPrelievo" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByFilt" TypeName="GMW_data.DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter"
|
||||
OnInserting="recuperaFooter" FilterExpression="CodLista LIKE '%{0}%' OR Particolare LIKE '%{0}%' OR DescParticolare LIKE '%{0}%'"
|
||||
OnInserted="ods_Updated" OnUpdated="ods_Updated">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
</FilterParameters>
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="DataFrom" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="DataTo" SessionField="_fine" Type="DateTime" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<uc1:mod_viewRigheListaPrelievo ID="mod_viewRigheListaPrelievo1" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -302,10 +302,7 @@ namespace GMW.WebUserControls
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_viewRigheListaPrelievo1.Visible = false;
|
||||
chkIniziata.Checked = false;
|
||||
chkCompletata.Checked = false;
|
||||
chkIniziata.Text = traduci("MostraIniziate");
|
||||
chkCompletata.Text = traduci("MostraCompletate");
|
||||
mod_periodoAnalisi1.setPeriodoFree();
|
||||
}
|
||||
// registro evento update
|
||||
mod_viewRigheListaPrelievo1.eh_nuovoValore += new EventHandler(mod_viewRigheListaPrelievo1_eh_nuovoValore);
|
||||
@@ -355,13 +352,33 @@ namespace GMW.WebUserControls
|
||||
#endif
|
||||
return answ;
|
||||
}
|
||||
|
||||
public bool iniziaEnabled(object statoIniziata)
|
||||
/// <summary>
|
||||
/// determina se sia abilitato il pulsante x iniziare una lista di prelievo
|
||||
/// </summary>
|
||||
/// <param name="statoIniziata"></param>
|
||||
/// <returns></returns>
|
||||
public bool iniziaEnabled(object codStato)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = !Convert.ToBoolean(statoIniziata);
|
||||
answ = ((int)codStato == (int)statoLista.generata);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// determina se sia abilitato il pulsante x completare una lista di prelievo
|
||||
/// </summary>
|
||||
/// <param name="statoIniziata"></param>
|
||||
/// <returns></returns>
|
||||
public bool completaEnabled(object codStato)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = ((int)codStato == (int)statoLista.iniziata);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -377,16 +394,18 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
aggiornaElencoRighe();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// aggiorna visualizzazione
|
||||
/// </summary>
|
||||
private void aggiornaElencoRighe()
|
||||
{
|
||||
// salvo in session il valore selezionato...
|
||||
SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true);
|
||||
|
||||
|
||||
bool prelievoOk = false;
|
||||
try
|
||||
{
|
||||
prelievoOk = GMW_data.MagClass.magazzino.taElencoListePrelievo.getByCodLista(grView.SelectedValue.ToString())[0].Iniziata;
|
||||
prelievoOk = (GMW_data.MagClass.magazzino.taElencoListePrelievo.getByCodLista(grView.SelectedValue.ToString())[0].CodStatoLista == (int)statoLista.iniziata);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -447,6 +466,15 @@ namespace GMW.WebUserControls
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "iniziaListaPrelievo");
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo in session che il prox comando è completare lista prelievo...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void imgCompletaLista_Click(object sender, ImageClickEventArgs e)
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "completaListaPrelievo");
|
||||
}
|
||||
/// <summary>
|
||||
/// in caso di aggiornamento verifico se sia salvato un comando inizia o completa lista prelievo...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -462,11 +490,11 @@ namespace GMW.WebUserControls
|
||||
_comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
string CodSoggetto = "O0000000000000069"; // operatore a caso, POI sarà da cercare da operatore correntemente loggato... !!!FARE!!!
|
||||
// verifico il tipo di richiesta (up/down level, clona o update normale
|
||||
switch (_comando)
|
||||
{
|
||||
case "iniziaListaPrelievo":
|
||||
string CodSoggetto = "O0000000000000069"; // operatore a caso, POI sarà da cercare da operatore correntemente loggato... !!!FARE!!!
|
||||
GMW_data.MagClass.magazzino.iniziaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto);
|
||||
updateOds();
|
||||
grView.EditIndex = -1;
|
||||
@@ -479,6 +507,19 @@ namespace GMW.WebUserControls
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
break;
|
||||
case "completaListaPrelievo":
|
||||
GMW_data.MagClass.magazzino.completaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto);
|
||||
updateOds();
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
break;
|
||||
default:
|
||||
// faccio update!
|
||||
break;
|
||||
@@ -487,7 +528,5 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -14,22 +14,13 @@ namespace GMW.WebUserControls {
|
||||
public partial class mod_elencoListePrelievo {
|
||||
|
||||
/// <summary>
|
||||
/// chkIniziata control.
|
||||
/// mod_periodoAnalisi1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkIniziata;
|
||||
|
||||
/// <summary>
|
||||
/// chkCompletata control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkCompletata;
|
||||
protected global::mod_periodoAnalisi mod_periodoAnalisi1;
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
|
||||
@@ -23,13 +23,13 @@ namespace GMW.WebUserControls
|
||||
protected void Button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
// testa inizio lista prelievo
|
||||
MagClass.magazzino.iniziaListaPrelievo("MA", "KMA100600005", "0000000000000080");
|
||||
MagClass.magazzino.iniziaListaPrelievo("MA", "KMA100600005", "O9900000000000003"); //!!!FARE!!!
|
||||
}
|
||||
|
||||
protected void Button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
// testa fine e scaricamento - indicando completata - lista prelievo
|
||||
MagClass.magazzino.scaricaListaPrelievo("MA", "KMA100600019");
|
||||
MagClass.magazzino.scaricaListaPrelievo("MA", "KMA100600019","O9900000000000003");
|
||||
}
|
||||
|
||||
protected void Button4_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true"
|
||||
Inherits="mod_periodoAnalisi" Codebehind="mod_periodoAnalisi.ascx.cs" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<div>
|
||||
<div style="float: left; padding-right:4px;">
|
||||
<asp:Label ID="lblPeriodo" runat="server"></asp:Label>
|
||||
</div>
|
||||
<div style="float: left; padding-right:4px;">
|
||||
<asp:TextBox ID="txtInizio" TabIndex="1" runat="server" Width="6em" MaxLength="10"
|
||||
AutoPostBack="True" OnTextChanged="txtInizio_TextChanged"></asp:TextBox>
|
||||
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtInizio"
|
||||
FirstDayOfWeek="Monday" Format="dd/MM/yyyy">
|
||||
</cc1:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="!!!" ControlToValidate="txtInizio" />
|
||||
</div>
|
||||
<div style="float: left; padding-right:4px;">
|
||||
<asp:TextBox ID="txtFine" TabIndex="2" runat="server" Width="6em" MaxLength="10"
|
||||
AutoPostBack="True" OnTextChanged="txtFine_TextChanged"></asp:TextBox>
|
||||
<cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtFine"
|
||||
FirstDayOfWeek="Monday" Format="dd/MM/yyyy">
|
||||
</cc1:CalendarExtender>
|
||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="!!!" ControlToValidate="txtFine" />
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
|
||||
DataSourceID="odsPeriodi" DataTextField="label" DataValueField="value">
|
||||
</asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsPeriodi" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_utilityTableAdapters.v_selPeriodiTradTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="IT" Name="conditio" SessionField="lingua" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,205 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using SteamWare;
|
||||
|
||||
public partial class mod_periodoAnalisi : System.Web.UI.UserControl
|
||||
{
|
||||
#region area protected
|
||||
|
||||
protected intervalloDate _intervallo;
|
||||
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
setIntervallo();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// gestione del selettore rapido dell'intervallo temporale...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
intervalloDate _intervallo = new intervalloDate();
|
||||
// verifico cosa sia cambiato ed imposto date...
|
||||
datario _datario = new datario();
|
||||
switch (DropDownList1.SelectedValue)
|
||||
{
|
||||
case "1_today":
|
||||
_intervallo = _datario.giornata(DateTime.Now);
|
||||
break;
|
||||
case "2_yesterday":
|
||||
_intervallo = _datario.giornata(DateTime.Now.AddDays(-1));
|
||||
break;
|
||||
case "3_last_7":
|
||||
_intervallo = _datario.ultimiGiorni(DateTime.Now, 7);
|
||||
break;
|
||||
case "4_this_week":
|
||||
_intervallo = _datario.questaSett(DateTime.Now);
|
||||
break;
|
||||
case "5_last_30":
|
||||
_intervallo = _datario.ultimiGiorni(DateTime.Now, 30);
|
||||
break;
|
||||
case "6_this_month":
|
||||
_intervallo = _datario.questoMese(DateTime.Now);
|
||||
break;
|
||||
case "7_last_month":
|
||||
_intervallo = _datario.estremiMese(DateTime.Now.AddMonths(-1));
|
||||
break;
|
||||
case "8_this_year":
|
||||
_intervallo = _datario.estremiAnno(DateTime.Now);
|
||||
break;
|
||||
case "9_last_year":
|
||||
_intervallo = _datario.estremiAnno(DateTime.Now.AddYears(-1));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
intervalloAnalisi = _intervallo;
|
||||
aggiornaDateMostrate();
|
||||
}
|
||||
|
||||
private void aggiornaDateMostrate()
|
||||
{
|
||||
txtInizio.Text = intervalloAnalisi.inizio.ToShortDateString();
|
||||
txtFine.Text = intervalloAnalisi.fine.AddDays(-1).ToShortDateString(); // mostro 1 gg in meno xché termina alle 00:00...
|
||||
reportUpdate();
|
||||
}
|
||||
|
||||
private void setIntervallo()
|
||||
{
|
||||
intervalloDate _intervallo;
|
||||
try
|
||||
{
|
||||
_intervallo = (intervalloDate)Session["_intervallo"];
|
||||
}
|
||||
catch
|
||||
{
|
||||
_intervallo = new intervalloDate();
|
||||
_intervallo.fine = DateTime.Now.Subtract(DateTime.Now.TimeOfDay).AddDays(1);
|
||||
_intervallo.inizio = _intervallo.fine.AddMonths(-1);
|
||||
Session["_intervallo"] = _intervallo;
|
||||
Session["_inizio"] = _intervallo.inizio;
|
||||
Session["_fine"] = _intervallo.fine;
|
||||
}
|
||||
txtInizio.Text = _intervallo.inizio.ToShortDateString();
|
||||
txtFine.Text = _intervallo.fine.ToShortDateString();
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
lblPeriodo.Text = traduci("periodoRif");
|
||||
txtInizio.ToolTip = traduci("inizioPeriodo");
|
||||
txtFine.ToolTip = traduci("finePeriodo");
|
||||
}
|
||||
}
|
||||
protected void txtInizio_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
// imposto il selettore a discesa...
|
||||
DropDownList1.SelectedIndex = 0;
|
||||
// se campo vuoto imposto oggi...
|
||||
if (txtInizio.Text == "")
|
||||
{
|
||||
txtInizio.Text = DateTime.Now.ToShortDateString();
|
||||
}
|
||||
else
|
||||
{
|
||||
txtInizio.Text = Convert.ToDateTime(txtInizio.Text).ToShortDateString();
|
||||
}
|
||||
// aggiorno dati in session...
|
||||
aggiornaPeriodo();
|
||||
}
|
||||
|
||||
private void aggiornaPeriodo()
|
||||
{
|
||||
_intervallo = new intervalloDate();
|
||||
_intervallo.inizio = Convert.ToDateTime(txtInizio.Text);
|
||||
_intervallo.fine = ((DateTime)Convert.ToDateTime(txtFine.Text)).Date.AddDays(1);
|
||||
//_intervallo.fine = ((DateTime)Convert.ToDateTime(txtFine.Text)).Date.AddDays(1).AddMinutes(-1);
|
||||
intervalloAnalisi = _intervallo;
|
||||
reportUpdate();
|
||||
|
||||
}
|
||||
protected void txtFine_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
// imposto il selettore a discesa...
|
||||
DropDownList1.SelectedIndex = 0;
|
||||
// se campo vuoto imposto oggi...
|
||||
if (txtFine.Text == "")
|
||||
{
|
||||
txtFine.Text = DateTime.Now.AddDays(1).ToShortDateString();
|
||||
}
|
||||
else
|
||||
{
|
||||
txtFine.Text = Convert.ToDateTime(txtFine.Text).ToShortDateString();
|
||||
}
|
||||
// aggiorno dati in session...
|
||||
aggiornaPeriodo();
|
||||
}
|
||||
|
||||
protected void reportUpdate()
|
||||
{
|
||||
// alzo l'evento d update/inserimento e ricarico cache...
|
||||
if (eh_doUpdate != null)
|
||||
{
|
||||
eh_doUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
public intervalloDate intervalloAnalisi
|
||||
{
|
||||
get
|
||||
{
|
||||
return (intervalloDate)Session["_intervallo"];
|
||||
}
|
||||
set
|
||||
{
|
||||
intervalloDate interv = value;
|
||||
Session["_intervallo"] = interv;
|
||||
Session["_inizio"] = interv.inizio;
|
||||
Session["_fine"] = interv.fine;
|
||||
}
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
aggiornaDateMostrate();
|
||||
}
|
||||
|
||||
public void setPeriodoFree()
|
||||
{
|
||||
DropDownList1.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_doUpdate;
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class mod_periodoAnalisi {
|
||||
|
||||
/// <summary>
|
||||
/// lblPeriodo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// txtInizio control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtInizio;
|
||||
|
||||
/// <summary>
|
||||
/// CalendarExtender1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender1;
|
||||
|
||||
/// <summary>
|
||||
/// RequiredFieldValidator1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
|
||||
|
||||
/// <summary>
|
||||
/// txtFine control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtFine;
|
||||
|
||||
/// <summary>
|
||||
/// CalendarExtender2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender2;
|
||||
|
||||
/// <summary>
|
||||
/// RequiredFieldValidator2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator2;
|
||||
|
||||
/// <summary>
|
||||
/// DropDownList1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
|
||||
|
||||
/// <summary>
|
||||
/// odsPeriodi control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsPeriodi;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Generated
+547
@@ -35,6 +35,8 @@ namespace GMW_data {
|
||||
|
||||
private STPDataTable tableSTP;
|
||||
|
||||
private v_selPeriodiTradDataTable tablev_selPeriodiTrad;
|
||||
|
||||
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -76,6 +78,9 @@ namespace GMW_data {
|
||||
if ((ds.Tables["STP"] != null)) {
|
||||
base.Tables.Add(new STPDataTable(ds.Tables["STP"]));
|
||||
}
|
||||
if ((ds.Tables["v_selPeriodiTrad"] != null)) {
|
||||
base.Tables.Add(new v_selPeriodiTradDataTable(ds.Tables["v_selPeriodiTrad"]));
|
||||
}
|
||||
this.DataSetName = ds.DataSetName;
|
||||
this.Prefix = ds.Prefix;
|
||||
this.Namespace = ds.Namespace;
|
||||
@@ -139,6 +144,15 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
||||
public v_selPeriodiTradDataTable v_selPeriodiTrad {
|
||||
get {
|
||||
return this.tablev_selPeriodiTrad;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.BrowsableAttribute(true)]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
|
||||
@@ -213,6 +227,9 @@ namespace GMW_data {
|
||||
if ((ds.Tables["STP"] != null)) {
|
||||
base.Tables.Add(new STPDataTable(ds.Tables["STP"]));
|
||||
}
|
||||
if ((ds.Tables["v_selPeriodiTrad"] != null)) {
|
||||
base.Tables.Add(new v_selPeriodiTradDataTable(ds.Tables["v_selPeriodiTrad"]));
|
||||
}
|
||||
this.DataSetName = ds.DataSetName;
|
||||
this.Prefix = ds.Prefix;
|
||||
this.Namespace = ds.Namespace;
|
||||
@@ -273,6 +290,12 @@ namespace GMW_data {
|
||||
this.tableSTP.InitVars();
|
||||
}
|
||||
}
|
||||
this.tablev_selPeriodiTrad = ((v_selPeriodiTradDataTable)(base.Tables["v_selPeriodiTrad"]));
|
||||
if ((initTable == true)) {
|
||||
if ((this.tablev_selPeriodiTrad != null)) {
|
||||
this.tablev_selPeriodiTrad.InitVars();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -292,6 +315,8 @@ namespace GMW_data {
|
||||
base.Tables.Add(this.tablestp_getImpiantiByCodCS);
|
||||
this.tableSTP = new STPDataTable();
|
||||
base.Tables.Add(this.tableSTP);
|
||||
this.tablev_selPeriodiTrad = new v_selPeriodiTradDataTable();
|
||||
base.Tables.Add(this.tablev_selPeriodiTrad);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -319,6 +344,11 @@ namespace GMW_data {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private bool ShouldSerializev_selPeriodiTrad() {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
||||
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
|
||||
@@ -382,6 +412,8 @@ namespace GMW_data {
|
||||
|
||||
public delegate void STPRowChangeEventHandler(object sender, STPRowChangeEvent e);
|
||||
|
||||
public delegate void v_selPeriodiTradRowChangeEventHandler(object sender, v_selPeriodiTradRowChangeEvent e);
|
||||
|
||||
/// <summary>
|
||||
///Represents the strongly named DataTable class.
|
||||
///</summary>
|
||||
@@ -1745,6 +1777,264 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents the strongly named DataTable class.
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
||||
[global::System.Serializable()]
|
||||
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
||||
public partial class v_selPeriodiTradDataTable : global::System.Data.TypedTableBase<v_selPeriodiTradRow> {
|
||||
|
||||
private global::System.Data.DataColumn columnvalue;
|
||||
|
||||
private global::System.Data.DataColumn columnlabel;
|
||||
|
||||
private global::System.Data.DataColumn columnconditio;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public v_selPeriodiTradDataTable() {
|
||||
this.TableName = "v_selPeriodiTrad";
|
||||
this.BeginInit();
|
||||
this.InitClass();
|
||||
this.EndInit();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
internal v_selPeriodiTradDataTable(global::System.Data.DataTable table) {
|
||||
this.TableName = table.TableName;
|
||||
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
||||
this.CaseSensitive = table.CaseSensitive;
|
||||
}
|
||||
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
||||
this.Locale = table.Locale;
|
||||
}
|
||||
if ((table.Namespace != table.DataSet.Namespace)) {
|
||||
this.Namespace = table.Namespace;
|
||||
}
|
||||
this.Prefix = table.Prefix;
|
||||
this.MinimumCapacity = table.MinimumCapacity;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected v_selPeriodiTradDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
||||
base(info, context) {
|
||||
this.InitVars();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataColumn valueColumn {
|
||||
get {
|
||||
return this.columnvalue;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataColumn labelColumn {
|
||||
get {
|
||||
return this.columnlabel;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataColumn conditioColumn {
|
||||
get {
|
||||
return this.columnconditio;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
public int Count {
|
||||
get {
|
||||
return this.Rows.Count;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public v_selPeriodiTradRow this[int index] {
|
||||
get {
|
||||
return ((v_selPeriodiTradRow)(this.Rows[index]));
|
||||
}
|
||||
}
|
||||
|
||||
public event v_selPeriodiTradRowChangeEventHandler v_selPeriodiTradRowChanging;
|
||||
|
||||
public event v_selPeriodiTradRowChangeEventHandler v_selPeriodiTradRowChanged;
|
||||
|
||||
public event v_selPeriodiTradRowChangeEventHandler v_selPeriodiTradRowDeleting;
|
||||
|
||||
public event v_selPeriodiTradRowChangeEventHandler v_selPeriodiTradRowDeleted;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void Addv_selPeriodiTradRow(v_selPeriodiTradRow row) {
|
||||
this.Rows.Add(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public v_selPeriodiTradRow Addv_selPeriodiTradRow(string value, string label, string conditio) {
|
||||
v_selPeriodiTradRow rowv_selPeriodiTradRow = ((v_selPeriodiTradRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
value,
|
||||
label,
|
||||
conditio};
|
||||
rowv_selPeriodiTradRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowv_selPeriodiTradRow);
|
||||
return rowv_selPeriodiTradRow;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public override global::System.Data.DataTable Clone() {
|
||||
v_selPeriodiTradDataTable cln = ((v_selPeriodiTradDataTable)(base.Clone()));
|
||||
cln.InitVars();
|
||||
return cln;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override global::System.Data.DataTable CreateInstance() {
|
||||
return new v_selPeriodiTradDataTable();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
internal void InitVars() {
|
||||
this.columnvalue = base.Columns["value"];
|
||||
this.columnlabel = base.Columns["label"];
|
||||
this.columnconditio = base.Columns["conditio"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private void InitClass() {
|
||||
this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnvalue);
|
||||
this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnlabel);
|
||||
this.columnconditio = new global::System.Data.DataColumn("conditio", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnconditio);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("v_selPeriodiTradKey1", new global::System.Data.DataColumn[] {
|
||||
this.columnvalue,
|
||||
this.columnconditio}, false));
|
||||
this.columnvalue.AllowDBNull = false;
|
||||
this.columnvalue.MaxLength = 20;
|
||||
this.columnlabel.AllowDBNull = false;
|
||||
this.columnlabel.MaxLength = 500;
|
||||
this.columnconditio.AllowDBNull = false;
|
||||
this.columnconditio.MaxLength = 3;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public v_selPeriodiTradRow Newv_selPeriodiTradRow() {
|
||||
return ((v_selPeriodiTradRow)(this.NewRow()));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
||||
return new v_selPeriodiTradRow(builder);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override global::System.Type GetRowType() {
|
||||
return typeof(v_selPeriodiTradRow);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanged(e);
|
||||
if ((this.v_selPeriodiTradRowChanged != null)) {
|
||||
this.v_selPeriodiTradRowChanged(this, new v_selPeriodiTradRowChangeEvent(((v_selPeriodiTradRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanging(e);
|
||||
if ((this.v_selPeriodiTradRowChanging != null)) {
|
||||
this.v_selPeriodiTradRowChanging(this, new v_selPeriodiTradRowChangeEvent(((v_selPeriodiTradRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleted(e);
|
||||
if ((this.v_selPeriodiTradRowDeleted != null)) {
|
||||
this.v_selPeriodiTradRowDeleted(this, new v_selPeriodiTradRowChangeEvent(((v_selPeriodiTradRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleting(e);
|
||||
if ((this.v_selPeriodiTradRowDeleting != null)) {
|
||||
this.v_selPeriodiTradRowDeleting(this, new v_selPeriodiTradRowChangeEvent(((v_selPeriodiTradRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void Removev_selPeriodiTradRow(v_selPeriodiTradRow row) {
|
||||
this.Rows.Remove(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
||||
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
||||
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
||||
DS_Utility ds = new DS_Utility();
|
||||
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
||||
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
||||
any1.MinOccurs = new decimal(0);
|
||||
any1.MaxOccurs = decimal.MaxValue;
|
||||
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
||||
sequence.Items.Add(any1);
|
||||
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
||||
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
||||
any2.MinOccurs = new decimal(1);
|
||||
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
||||
sequence.Items.Add(any2);
|
||||
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
||||
attribute1.Name = "namespace";
|
||||
attribute1.FixedValue = ds.Namespace;
|
||||
type.Attributes.Add(attribute1);
|
||||
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
||||
attribute2.Name = "tableTypeName";
|
||||
attribute2.FixedValue = "v_selPeriodiTradDataTable";
|
||||
type.Attributes.Add(attribute2);
|
||||
type.Particle = sequence;
|
||||
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
||||
if (xs.Contains(dsSchema.TargetNamespace)) {
|
||||
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
||||
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
||||
try {
|
||||
global::System.Xml.Schema.XmlSchema schema = null;
|
||||
dsSchema.Write(s1);
|
||||
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
||||
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
||||
s2.SetLength(0);
|
||||
schema.Write(s2);
|
||||
if ((s1.Length == s2.Length)) {
|
||||
s1.Position = 0;
|
||||
s2.Position = 0;
|
||||
for (; ((s1.Position != s1.Length)
|
||||
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
||||
;
|
||||
}
|
||||
if ((s1.Position == s1.Length)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
finally {
|
||||
if ((s1 != null)) {
|
||||
s1.Close();
|
||||
}
|
||||
if ((s2 != null)) {
|
||||
s2.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
xs.Add(dsSchema);
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents strongly named DataRow class.
|
||||
///</summary>
|
||||
@@ -2135,6 +2425,51 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents strongly named DataRow class.
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
||||
public partial class v_selPeriodiTradRow : global::System.Data.DataRow {
|
||||
|
||||
private v_selPeriodiTradDataTable tablev_selPeriodiTrad;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
internal v_selPeriodiTradRow(global::System.Data.DataRowBuilder rb) :
|
||||
base(rb) {
|
||||
this.tablev_selPeriodiTrad = ((v_selPeriodiTradDataTable)(this.Table));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public string value {
|
||||
get {
|
||||
return ((string)(this[this.tablev_selPeriodiTrad.valueColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tablev_selPeriodiTrad.valueColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public string label {
|
||||
get {
|
||||
return ((string)(this[this.tablev_selPeriodiTrad.labelColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tablev_selPeriodiTrad.labelColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public string conditio {
|
||||
get {
|
||||
return ((string)(this[this.tablev_selPeriodiTrad.conditioColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tablev_selPeriodiTrad.conditioColumn] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
@@ -2289,6 +2624,37 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
||||
public class v_selPeriodiTradRowChangeEvent : global::System.EventArgs {
|
||||
|
||||
private v_selPeriodiTradRow eventRow;
|
||||
|
||||
private global::System.Data.DataRowAction eventAction;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public v_selPeriodiTradRowChangeEvent(v_selPeriodiTradRow row, global::System.Data.DataRowAction action) {
|
||||
this.eventRow = row;
|
||||
this.eventAction = action;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public v_selPeriodiTradRow Row {
|
||||
get {
|
||||
return this.eventRow;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataRowAction Action {
|
||||
get {
|
||||
return this.eventAction;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace GMW_data.DS_UtilityTableAdapters {
|
||||
@@ -3528,6 +3894,187 @@ namespace GMW_data.DS_UtilityTableAdapters {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents the connection and commands used to retrieve and save data.
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
||||
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[global::System.ComponentModel.ToolboxItem(true)]
|
||||
[global::System.ComponentModel.DataObjectAttribute(true)]
|
||||
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
||||
", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public partial class v_selPeriodiTradTableAdapter : global::System.ComponentModel.Component {
|
||||
|
||||
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
||||
|
||||
private global::System.Data.SqlClient.SqlConnection _connection;
|
||||
|
||||
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
||||
|
||||
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
||||
|
||||
private bool _clearBeforeFill;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public v_selPeriodiTradTableAdapter() {
|
||||
this.ClearBeforeFill = true;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
||||
get {
|
||||
if ((this._adapter == null)) {
|
||||
this.InitAdapter();
|
||||
}
|
||||
return this._adapter;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.SqlClient.SqlConnection Connection {
|
||||
get {
|
||||
if ((this._connection == null)) {
|
||||
this.InitConnection();
|
||||
}
|
||||
return this._connection;
|
||||
}
|
||||
set {
|
||||
this._connection = value;
|
||||
if ((this.Adapter.InsertCommand != null)) {
|
||||
this.Adapter.InsertCommand.Connection = value;
|
||||
}
|
||||
if ((this.Adapter.DeleteCommand != null)) {
|
||||
this.Adapter.DeleteCommand.Connection = value;
|
||||
}
|
||||
if ((this.Adapter.UpdateCommand != null)) {
|
||||
this.Adapter.UpdateCommand.Connection = value;
|
||||
}
|
||||
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
||||
if ((this.CommandCollection[i] != null)) {
|
||||
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
||||
get {
|
||||
return this._transaction;
|
||||
}
|
||||
set {
|
||||
this._transaction = value;
|
||||
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
||||
this.CommandCollection[i].Transaction = this._transaction;
|
||||
}
|
||||
if (((this.Adapter != null)
|
||||
&& (this.Adapter.DeleteCommand != null))) {
|
||||
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
||||
}
|
||||
if (((this.Adapter != null)
|
||||
&& (this.Adapter.InsertCommand != null))) {
|
||||
this.Adapter.InsertCommand.Transaction = this._transaction;
|
||||
}
|
||||
if (((this.Adapter != null)
|
||||
&& (this.Adapter.UpdateCommand != null))) {
|
||||
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
||||
get {
|
||||
if ((this._commandCollection == null)) {
|
||||
this.InitCommandCollection();
|
||||
}
|
||||
return this._commandCollection;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public bool ClearBeforeFill {
|
||||
get {
|
||||
return this._clearBeforeFill;
|
||||
}
|
||||
set {
|
||||
this._clearBeforeFill = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private void InitAdapter() {
|
||||
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
||||
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
||||
tableMapping.SourceTable = "Table";
|
||||
tableMapping.DataSetTable = "v_selPeriodiTrad";
|
||||
tableMapping.ColumnMappings.Add("value", "value");
|
||||
tableMapping.ColumnMappings.Add("label", "label");
|
||||
tableMapping.ColumnMappings.Add("conditio", "conditio");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private void InitConnection() {
|
||||
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
||||
this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private void InitCommandCollection() {
|
||||
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 value, label, conditio FROM dbo.v_selPeriodiTrad";
|
||||
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 = "SELECT conditio, label, value FROM v_selPeriodiTrad WHERE (conditio = @conditio) " +
|
||||
"ORDER BY value";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conditio", global::System.Data.SqlDbType.NVarChar, 3, global::System.Data.ParameterDirection.Input, 0, 0, "conditio", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
||||
public virtual int Fill(DS_Utility.v_selPeriodiTradDataTable dataTable) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
if ((this.ClearBeforeFill == true)) {
|
||||
dataTable.Clear();
|
||||
}
|
||||
int returnValue = this.Adapter.Fill(dataTable);
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
||||
public virtual DS_Utility.v_selPeriodiTradDataTable GetData() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
DS_Utility.v_selPeriodiTradDataTable dataTable = new DS_Utility.v_selPeriodiTradDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
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_Utility.v_selPeriodiTradDataTable getByConditio(string conditio) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((conditio == null)) {
|
||||
throw new global::System.ArgumentNullException("conditio");
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(conditio));
|
||||
}
|
||||
DS_Utility.v_selPeriodiTradDataTable dataTable = new DS_Utility.v_selPeriodiTradDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
||||
///</summary>
|
||||
|
||||
+97
-36
@@ -239,6 +239,35 @@ WHERE (value = @value)</CommandText>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selPeriodiTradTableAdapter" GeneratorDataComponentClassName="v_selPeriodiTradTableAdapter" Name="v_selPeriodiTrad" UserDataComponentName="v_selPeriodiTradTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.v_selPeriodiTrad" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT value, label, conditio FROM dbo.v_selPeriodiTrad</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
<Mapping SourceColumn="conditio" DataSetColumn="conditio" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.v_selPeriodiTrad" DbObjectType="View" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByConditio" GetMethodModifier="Public" GetMethodName="getByConditio" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByConditio" UserSourceName="getByConditio">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT conditio, label, value FROM v_selPeriodiTrad WHERE (conditio = @conditio) ORDER BY value</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="conditio" ColumnName="conditio" DataSourceName="GMW.dbo.v_selPeriodiTrad" DataTypeServer="nvarchar(3)" DbType="String" Direction="Input" ParameterName="@conditio" Precision="0" ProviderType="NVarChar" Scale="0" Size="3" SourceColumn="conditio" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
@@ -250,21 +279,21 @@ WHERE (value = @value)</CommandText>
|
||||
<xs:element name="v_selMag" msprop:Generator_UserTableName="v_selMag" msprop:Generator_RowDeletedName="v_selMagRowDeleted" msprop:Generator_RowChangedName="v_selMagRowChanged" msprop:Generator_RowClassName="v_selMagRow" msprop:Generator_RowChangingName="v_selMagRowChanging" msprop:Generator_RowEvArgName="v_selMagRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selMagRowChangeEventHandler" msprop:Generator_TableClassName="v_selMagDataTable" msprop:Generator_TableVarName="tablev_selMag" msprop:Generator_RowDeletingName="v_selMagRowDeleting" msprop:Generator_TablePropName="v_selMag">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn">
|
||||
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
|
||||
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnPropNameInTable="conditioColumn">
|
||||
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInTable="conditioColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="2" />
|
||||
@@ -277,22 +306,22 @@ WHERE (value = @value)</CommandText>
|
||||
<xs:element name="v_selBlocco" msprop:Generator_UserTableName="v_selBlocco" msprop:Generator_RowDeletedName="v_selBloccoRowDeleted" msprop:Generator_RowChangedName="v_selBloccoRowChanged" msprop:Generator_RowClassName="v_selBloccoRow" msprop:Generator_RowChangingName="v_selBloccoRowChanging" msprop:Generator_RowEvArgName="v_selBloccoRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selBloccoRowChangeEventHandler" msprop:Generator_TableClassName="v_selBloccoDataTable" msprop:Generator_TableVarName="tablev_selBlocco" msprop:Generator_RowDeletingName="v_selBloccoRowDeleting" msprop:Generator_TablePropName="v_selBlocco">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
|
||||
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
|
||||
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
|
||||
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="151" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CodCS" msprop:Generator_UserColumnName="CodCS" msprop:Generator_ColumnVarNameInTable="columnCodCS" msprop:Generator_ColumnPropNameInRow="CodCS" msprop:Generator_ColumnPropNameInTable="CodCSColumn" minOccurs="0">
|
||||
<xs:element name="CodCS" msprop:Generator_UserColumnName="CodCS" msprop:Generator_ColumnPropNameInRow="CodCS" msprop:Generator_ColumnVarNameInTable="columnCodCS" msprop:Generator_ColumnPropNameInTable="CodCSColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="2" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CodMag" msprop:Generator_UserColumnName="CodMag" msprop:Generator_ColumnVarNameInTable="columnCodMag" msprop:Generator_ColumnPropNameInRow="CodMag" msprop:Generator_ColumnPropNameInTable="CodMagColumn" minOccurs="0">
|
||||
<xs:element name="CodMag" msprop:Generator_UserColumnName="CodMag" msprop:Generator_ColumnPropNameInRow="CodMag" msprop:Generator_ColumnVarNameInTable="columnCodMag" msprop:Generator_ColumnPropNameInTable="CodMagColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
@@ -305,35 +334,15 @@ WHERE (value = @value)</CommandText>
|
||||
<xs:element name="v_selTipoCella" msprop:Generator_UserTableName="v_selTipoCella" msprop:Generator_RowDeletedName="v_selTipoCellaRowDeleted" msprop:Generator_RowChangedName="v_selTipoCellaRowChanged" msprop:Generator_RowClassName="v_selTipoCellaRow" msprop:Generator_RowChangingName="v_selTipoCellaRowChanging" msprop:Generator_RowEvArgName="v_selTipoCellaRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selTipoCellaRowChangeEventHandler" msprop:Generator_TableClassName="v_selTipoCellaDataTable" msprop:Generator_TableVarName="tablev_selTipoCella" msprop:Generator_RowDeletingName="v_selTipoCellaRowDeleting" msprop:Generator_TablePropName="v_selTipoCella">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
|
||||
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
|
||||
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
|
||||
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="162" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CodMag" msprop:Generator_UserColumnName="CodMag" msprop:Generator_ColumnVarNameInTable="columnCodMag" msprop:Generator_ColumnPropNameInRow="CodMag" msprop:Generator_ColumnPropNameInTable="CodMagColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CodCS" msprop:Generator_UserColumnName="CodCS" msprop:Generator_ColumnVarNameInTable="columnCodCS" msprop:Generator_ColumnPropNameInRow="CodCS" msprop:Generator_ColumnPropNameInTable="CodCSColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="2" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="stp_getImpiantiByCodCS" msprop:Generator_UserTableName="stp_getImpiantiByCodCS" msprop:Generator_RowDeletedName="stp_getImpiantiByCodCSRowDeleted" msprop:Generator_TableClassName="stp_getImpiantiByCodCSDataTable" msprop:Generator_RowChangedName="stp_getImpiantiByCodCSRowChanged" msprop:Generator_RowClassName="stp_getImpiantiByCodCSRow" msprop:Generator_RowChangingName="stp_getImpiantiByCodCSRowChanging" msprop:Generator_RowEvArgName="stp_getImpiantiByCodCSRowChangeEvent" msprop:Generator_RowEvHandlerName="stp_getImpiantiByCodCSRowChangeEventHandler" msprop:Generator_TablePropName="stp_getImpiantiByCodCS" msprop:Generator_TableVarName="tablestp_getImpiantiByCodCS" msprop:Generator_RowDeletingName="stp_getImpiantiByCodCSRowDeleting">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodImpianto" msprop:Generator_UserColumnName="CodImpianto" msprop:Generator_ColumnPropNameInRow="CodImpianto" msprop:Generator_ColumnVarNameInTable="columnCodImpianto" msprop:Generator_ColumnPropNameInTable="CodImpiantoColumn">
|
||||
<xs:element name="CodMag" msprop:Generator_UserColumnName="CodMag" msprop:Generator_ColumnPropNameInRow="CodMag" msprop:Generator_ColumnVarNameInTable="columnCodMag" msprop:Generator_ColumnPropNameInTable="CodMagColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
@@ -347,21 +356,41 @@ WHERE (value = @value)</CommandText>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DescImpianto" msprop:Generator_UserColumnName="DescImpianto" msprop:Generator_ColumnPropNameInRow="DescImpianto" msprop:Generator_ColumnVarNameInTable="columnDescImpianto" msprop:Generator_ColumnPropNameInTable="DescImpiantoColumn" minOccurs="0">
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="stp_getImpiantiByCodCS" msprop:Generator_UserTableName="stp_getImpiantiByCodCS" msprop:Generator_RowDeletedName="stp_getImpiantiByCodCSRowDeleted" msprop:Generator_RowChangedName="stp_getImpiantiByCodCSRowChanged" msprop:Generator_RowClassName="stp_getImpiantiByCodCSRow" msprop:Generator_RowChangingName="stp_getImpiantiByCodCSRowChanging" msprop:Generator_RowEvArgName="stp_getImpiantiByCodCSRowChangeEvent" msprop:Generator_RowEvHandlerName="stp_getImpiantiByCodCSRowChangeEventHandler" msprop:Generator_TableClassName="stp_getImpiantiByCodCSDataTable" msprop:Generator_TableVarName="tablestp_getImpiantiByCodCS" msprop:Generator_RowDeletingName="stp_getImpiantiByCodCSRowDeleting" msprop:Generator_TablePropName="stp_getImpiantiByCodCS">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodImpianto" msprop:Generator_UserColumnName="CodImpianto" msprop:Generator_ColumnVarNameInTable="columnCodImpianto" msprop:Generator_ColumnPropNameInRow="CodImpianto" msprop:Generator_ColumnPropNameInTable="CodImpiantoColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Campionatura" msprop:Generator_UserColumnName="Campionatura" msprop:Generator_ColumnPropNameInRow="Campionatura" msprop:Generator_ColumnVarNameInTable="columnCampionatura" msprop:Generator_ColumnPropNameInTable="CampionaturaColumn" minOccurs="0">
|
||||
<xs:element name="CodCS" msprop:Generator_UserColumnName="CodCS" msprop:Generator_ColumnVarNameInTable="columnCodCS" msprop:Generator_ColumnPropNameInRow="CodCS" msprop:Generator_ColumnPropNameInTable="CodCSColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="2" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DescImpianto" msprop:Generator_UserColumnName="DescImpianto" msprop:Generator_ColumnVarNameInTable="columnDescImpianto" msprop:Generator_ColumnPropNameInRow="DescImpianto" msprop:Generator_ColumnPropNameInTable="DescImpiantoColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Campionatura" msprop:Generator_UserColumnName="Campionatura" msprop:Generator_ColumnVarNameInTable="columnCampionatura" msprop:Generator_ColumnPropNameInRow="Campionatura" msprop:Generator_ColumnPropNameInTable="CampionaturaColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="1" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="TipoLinea" msprop:Generator_UserColumnName="TipoLinea" msprop:Generator_ColumnPropNameInRow="TipoLinea" msprop:Generator_ColumnVarNameInTable="columnTipoLinea" msprop:Generator_ColumnPropNameInTable="TipoLineaColumn" minOccurs="0">
|
||||
<xs:element name="TipoLinea" msprop:Generator_UserColumnName="TipoLinea" msprop:Generator_ColumnVarNameInTable="columnTipoLinea" msprop:Generator_ColumnPropNameInRow="TipoLinea" msprop:Generator_ColumnPropNameInTable="TipoLineaColumn" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="6" />
|
||||
@@ -371,11 +400,38 @@ WHERE (value = @value)</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="STP" msprop:Generator_UserTableName="STP" msprop:Generator_RowDeletedName="STPRowDeleted" msprop:Generator_TableClassName="STPDataTable" msprop:Generator_RowChangedName="STPRowChanged" msprop:Generator_RowClassName="STPRow" msprop:Generator_RowChangingName="STPRowChanging" msprop:Generator_RowEvArgName="STPRowChangeEvent" msprop:Generator_RowEvHandlerName="STPRowChangeEventHandler" msprop:Generator_TablePropName="STP" msprop:Generator_TableVarName="tableSTP" msprop:Generator_RowDeletingName="STPRowDeleting">
|
||||
<xs:element name="STP" msprop:Generator_UserTableName="STP" msprop:Generator_RowDeletedName="STPRowDeleted" msprop:Generator_RowChangedName="STPRowChanged" msprop:Generator_RowClassName="STPRow" msprop:Generator_RowChangingName="STPRowChanging" msprop:Generator_RowEvArgName="STPRowChangeEvent" msprop:Generator_RowEvHandlerName="STPRowChangeEventHandler" msprop:Generator_TableClassName="STPDataTable" msprop:Generator_TableVarName="tableSTP" msprop:Generator_RowDeletingName="STPRowDeleting" msprop:Generator_TablePropName="STP">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Versione" msprop:Generator_UserColumnName="Versione" msprop:Generator_ColumnPropNameInRow="Versione" msprop:Generator_ColumnVarNameInTable="columnVersione" msprop:Generator_ColumnPropNameInTable="VersioneColumn" type="xs:int" />
|
||||
<xs:element name="Data" msprop:Generator_UserColumnName="Data" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInTable="DataColumn" type="xs:dateTime" minOccurs="0" />
|
||||
<xs:element name="Versione" msprop:Generator_UserColumnName="Versione" msprop:Generator_ColumnVarNameInTable="columnVersione" msprop:Generator_ColumnPropNameInRow="Versione" msprop:Generator_ColumnPropNameInTable="VersioneColumn" type="xs:int" />
|
||||
<xs:element name="Data" msprop:Generator_UserColumnName="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnPropNameInTable="DataColumn" type="xs:dateTime" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="v_selPeriodiTrad" msprop:Generator_UserTableName="v_selPeriodiTrad" msprop:Generator_RowDeletedName="v_selPeriodiTradRowDeleted" msprop:Generator_TableClassName="v_selPeriodiTradDataTable" msprop:Generator_RowChangedName="v_selPeriodiTradRowChanged" msprop:Generator_RowClassName="v_selPeriodiTradRow" msprop:Generator_RowChangingName="v_selPeriodiTradRowChanging" msprop:Generator_RowEvArgName="v_selPeriodiTradRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selPeriodiTradRowChangeEventHandler" msprop:Generator_TablePropName="v_selPeriodiTrad" msprop:Generator_TableVarName="tablev_selPeriodiTrad" msprop:Generator_RowDeletingName="v_selPeriodiTradRowDeleting">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInTable="conditioColumn">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="3" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
@@ -402,5 +458,10 @@ WHERE (value = @value)</CommandText>
|
||||
<xs:selector xpath=".//mstns:STP" />
|
||||
<xs:field xpath="mstns:Versione" />
|
||||
</xs:unique>
|
||||
<xs:unique name="v_selPeriodiTradKey1">
|
||||
<xs:selector xpath=".//mstns:v_selPeriodiTrad" />
|
||||
<xs:field xpath="mstns:value" />
|
||||
<xs:field xpath="mstns:conditio" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -6,11 +6,12 @@
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:v_selMag" ZOrder="5" X="113" Y="114" Height="153" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selBlocco" ZOrder="4" X="552" Y="134" Height="172" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:v_selTipoCella" ZOrder="3" X="716" Y="476" Height="191" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:stp_getImpiantiByCodCS" ZOrder="2" X="199" Y="718" Height="172" Width="287" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:STP" ZOrder="1" X="189" Y="415" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selMag" ZOrder="6" X="113" Y="114" Height="153" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selBlocco" ZOrder="5" X="552" Y="134" Height="172" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:v_selTipoCella" ZOrder="4" X="716" Y="476" Height="191" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:stp_getImpiantiByCodCS" ZOrder="3" X="199" Y="718" Height="172" Width="287" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:STP" ZOrder="2" X="189" Y="415" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selPeriodiTrad" ZOrder="1" X="703" Y="779" Height="153" Width="240" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
Generated
+1163
-1790
File diff suppressed because it is too large
Load Diff
+623
-728
File diff suppressed because it is too large
Load Diff
@@ -4,11 +4,11 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="507" 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="49" ViewPortY="392" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="1" X="68" Y="333" Height="326" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="5" X="68" Y="333" Height="326" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:AnagMag" ZOrder="24" X="1014" Y="372" Height="190" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="2" X="409" Y="544" Height="207" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="6" X="409" Y="544" Height="207" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
|
||||
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="22" X="387" Y="322" Height="156" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="109" />
|
||||
<Shape ID="DesignTable:Blocchi" ZOrder="15" X="1014" Y="652" Height="275" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="160" />
|
||||
<Shape ID="DesignTable:Celle" ZOrder="14" X="693" Y="532" Height="309" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="194" />
|
||||
@@ -16,11 +16,11 @@
|
||||
<Shape ID="DesignTable:v_UdcDetail" ZOrder="13" X="693" Y="9" Height="326" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="12" X="93" Y="43" Height="156" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="11" X="95" Y="1162" Height="190" Width="269" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="109" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="10" X="659" Y="1045" Height="309" Width="267" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="211" />
|
||||
<Shape ID="DesignTable:V_DettMagPart" ZOrder="9" X="993" Y="985" Height="326" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="4" X="335" Y="820" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="3" X="697" Y="906" Height="156" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
|
||||
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="7" X="59" Y="901" Height="207" Width="247" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="109" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="2" X="704" Y="1109" Height="276" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:V_DettMagPart" ZOrder="10" 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="697" Y="906" Height="156" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
|
||||
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="9" X="59" Y="901" Height="207" Width="247" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="109" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="1" X="393" Y="900" Height="343" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_ElencoCartellini" ZOrder="23" LineWidth="11">
|
||||
@@ -66,11 +66,11 @@
|
||||
<Y>803</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>676</X>
|
||||
<X>651</X>
|
||||
<Y>803</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>676</X>
|
||||
<X>651</X>
|
||||
<Y>751</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
@@ -99,19 +99,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ElencoListePrelievo_TipoListaPrelievo1" ZOrder="8" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>697</X>
|
||||
<Y>951</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>635</X>
|
||||
<Y>951</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoCartellini" ZOrder="6" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoCartellini" ZOrder="8" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>109</X>
|
||||
@@ -123,19 +111,27 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoListePrelievo1" ZOrder="5" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoListePrelievo11" ZOrder="4" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>335</X>
|
||||
<Y>893</Y>
|
||||
<X>393</X>
|
||||
<Y>1004</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>101</X>
|
||||
<Y>893</Y>
|
||||
<X>306</X>
|
||||
<Y>1004</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ElencoListePrelievo_TipoListaPrelievo11" ZOrder="3" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>697</X>
|
||||
<Y>926</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>101</X>
|
||||
<Y>901</Y>
|
||||
<X>611</X>
|
||||
<Y>926</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
|
||||
+141
-111
@@ -299,27 +299,7 @@ namespace GMW_data
|
||||
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Fornisce un dataset dell'elenco delle liste di prelievo secondo i parametri di filtraggio richiesti
|
||||
/// </summary>
|
||||
/// <param name="iniziata">si = mostra le liste iniziate, no = mostra quelle da eseguire</param>
|
||||
/// <param name="completata">si = mostra le liste già terminate ed eseguite, no = mostra quelle ancora da completare</param>
|
||||
/// <returns>Dataset</returns>
|
||||
public DS_magazzino.ElencoListePrelievoDataTable getListePrelievoFilt(bool iniziata, bool completata)
|
||||
{
|
||||
DS_magazzino.ElencoListePrelievoDataTable tabella = new DS_magazzino.ElencoListePrelievoDataTable();
|
||||
/* ti mostro quelle proposte (elenco liste prelievo da svolgere ... -> dettaglio delle righe per svolgere lista prelievo
|
||||
* per ogni cassone confermi di averlo preso...)
|
||||
*
|
||||
* datagrid + vista + stored -> prima mostra liste non completate ... ne scegli uno vedi tutte le righe e le spunti per dire preso
|
||||
* scrive nella colonna prelevato = true
|
||||
* datagrid a due livelli con i lsecondo con clic sulla singola riga: ti confermo che ho prelevato
|
||||
* */
|
||||
|
||||
tabella = taElencoListePrelievo.getByFilt(iniziata, completata);
|
||||
|
||||
return tabella;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// indica presa in carico di una lista di prelievo
|
||||
@@ -343,9 +323,9 @@ namespace GMW_data
|
||||
if (tabella.Rows.Count > 0)
|
||||
{
|
||||
// se la lista è ancora non completata
|
||||
if (riga.Completata == false && riga.Iniziata == false)
|
||||
if (riga.CodStatoLista == (int)statoLista.generata)
|
||||
{
|
||||
taElencoListePrelievo.updateCodSoggetto(CodSoggetto, CodLista);
|
||||
taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.iniziata);
|
||||
answ = esitoOperazione.ok;
|
||||
}
|
||||
// se è già completata o iniziata dà errore
|
||||
@@ -365,6 +345,137 @@ namespace GMW_data
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// indica come completata (da aprte del magazziniere) una lista di prelievo
|
||||
/// </summary>
|
||||
/// <param name="CodCS">Codice company/sito</param>
|
||||
/// <param name="CodLista">codice della lista di prelievo</param>
|
||||
/// <param name="CodSoggetto">cod operatore carrellista</param>
|
||||
/// <returns></returns>
|
||||
public esitoOperazione completaListaPrelievo(string CodCS, string CodLista, string CodSoggetto)
|
||||
{
|
||||
// da chiamare quando clicco e inizio lista prelievo .... vedi sopra
|
||||
esitoOperazione answ = esitoOperazione.errore;
|
||||
|
||||
try
|
||||
{
|
||||
// la query recupera la lista in base al CodLista
|
||||
DS_magazzino.ElencoListePrelievoDataTable tabella = taElencoListePrelievo.getByCodLista(CodLista);
|
||||
DS_magazzino.ElencoListePrelievoRow riga = tabella[0];
|
||||
|
||||
// se la lista esiste...
|
||||
if (tabella.Rows.Count > 0)
|
||||
{
|
||||
// se la lista è ancora non completata
|
||||
if (riga.CodStatoLista == (int)statoLista.iniziata)
|
||||
{
|
||||
taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.completata);
|
||||
answ = esitoOperazione.ok;
|
||||
}
|
||||
// se è già completata o NON iniziata dà errore
|
||||
else
|
||||
{
|
||||
answ = esitoOperazione.errore_readOnly;
|
||||
}
|
||||
}
|
||||
// se la lista non esiste dai errore
|
||||
else
|
||||
{
|
||||
answ = esitoOperazione.errore;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Effettua lo scaricamento della lista di prelievo indicata, ovvero
|
||||
/// - toglie dalle posizioni di magazzino tutti gli UDC indicati come prelevati (liberando tali posizioni)
|
||||
/// - assegna tutti gli UDC prelevati alla cella indicata per il tipo di lista di prelievo interessata
|
||||
/// - elimina eventuali righe di prelievo della lista per UDC non effettivamente prelevate
|
||||
/// - chiude la lista di prelievo (completata = 1)
|
||||
/// </summary>
|
||||
/// <param name="CodCS">Codice company/sito</param>
|
||||
/// <param name="CodLista">codice della lista di prelievo</param>
|
||||
/// <param name="CodSoggetto">cod operatore carrellista</param>
|
||||
/// <returns>esito comando</returns>
|
||||
public esitoOperazione scaricaListaPrelievo(string CodCS, string CodLista, string CodSoggetto)
|
||||
{
|
||||
/*
|
||||
* Questa funzione serve ALLA FINE delle operazioni di prelievo, x chiudere la lista di prelievo
|
||||
* - controllo se la lista esiste, ed è ancora NON completata
|
||||
* - se risulta già completata errore xché è "readOnly" la lista essendo già completata (vedere l'enum in fondo al codice)
|
||||
* - se la lista è ok
|
||||
* - leggo da tipoLista prelievo alcuni dati (es codcella di destinazione)
|
||||
* - sposto TUTTI gli UDC delle righeListaPrelievo, da posizione attuale a posizione indicata da tipo lista
|
||||
* (quindi da codCella --> IdxCella --> spostamento
|
||||
* indico la lista come compeltata = 1 (true)
|
||||
* */
|
||||
|
||||
esitoOperazione answ = esitoOperazione.errore;
|
||||
int trovate = 0;
|
||||
DS_magazzino.ElencoListePrelievoDataTable tabella;
|
||||
DS_magazzino.ElencoListePrelievoRow riga;
|
||||
try
|
||||
{
|
||||
tabella = taElencoListePrelievo.getByCodLista(CodLista);
|
||||
riga = tabella[0];
|
||||
trovate = tabella.Rows.Count;
|
||||
|
||||
// se la lista esiste...
|
||||
if (trovate > 0)
|
||||
{
|
||||
// se la lista è iniziata
|
||||
if (riga.CodStatoLista == (int)statoLista.iniziata)
|
||||
{
|
||||
// ricavo il codtipolista
|
||||
string codTipoListaAttuale = riga.CodTipoLista;
|
||||
|
||||
//leggo da tipoLista prelievo alcuni dati (es codcella di destinazione)
|
||||
DS_magazzino.TipoListaPrelievoDataTable tabellaTipoLista = taTipoListaPrelievo.getByCodTipoLista(codTipoListaAttuale);
|
||||
DS_magazzino.TipoListaPrelievoRow rigaTipoLista = tabellaTipoLista[0];
|
||||
|
||||
// leggo da righe lista prelievo il dato udc che mi serve
|
||||
DS_magazzino.RigheListePrelievoDataTable tabellaRigheListaPrelievo = taRigheListePrelievo.getByCodLista(CodLista);
|
||||
DS_magazzino.RigheListePrelievoRow rigaListaPrelievo = tabellaRigheListaPrelievo[0];
|
||||
|
||||
// potrebbe non servire se per codCella si intende l'idx più sotto...
|
||||
string codCellaDestAttuale = rigaTipoLista.CodCella;
|
||||
// i due idx che mi servono ... il primo ...
|
||||
int idxCellaTo = rigaTipoLista.IdxPosizione;
|
||||
|
||||
foreach (DS_magazzino.RigheListePrelievoRow row in tabellaRigheListaPrelievo.Rows)
|
||||
{
|
||||
// ricavo il codice UDC ... fai con foreach
|
||||
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;
|
||||
// sposto UDC
|
||||
spostaUDC(CodCS, UDC, idxCellaFrom, idxCellaTo);
|
||||
}
|
||||
// segna come scaricata la lista prelievo
|
||||
taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.scaricata);
|
||||
// restituisce ok
|
||||
answ = esitoOperazione.ok;
|
||||
}
|
||||
// se è già completata dà errore
|
||||
else
|
||||
{
|
||||
answ = esitoOperazione.errore_readOnly;
|
||||
}
|
||||
}
|
||||
// se la lista non esiste dai errore
|
||||
else
|
||||
{
|
||||
answ = esitoOperazione.errore;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica la corrispondenza dati tra RigheListePrelievo ed ElencoCartellini
|
||||
/// </summary>
|
||||
@@ -440,9 +551,6 @@ namespace GMW_data
|
||||
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// annulla il prelievo di un UDC, aggiornando RigheListePrelievo (solo preventivato...)
|
||||
/// </summary>
|
||||
@@ -487,93 +595,7 @@ namespace GMW_data
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Effettua lo scaricamento della lista di prelievo indicata, ovvero
|
||||
/// - toglie dalle posizioni di magazzino tutti gli UDC indicati come prelevati (liberando tali posizioni)
|
||||
/// - assegna tutti gli UDC prelevati alla cella indicata per il tipo di lista di prelievo interessata
|
||||
/// - elimina eventuali righe di prelievo della lista per UDC non effettivamente prelevate
|
||||
/// - chiude la lista di prelievo (completata = 1)
|
||||
/// </summary>
|
||||
/// <param name="CodCS">Codice company/sito</param>
|
||||
/// <param name="CodLista">codice della lista di prelievo</param>
|
||||
/// <returns>esito comando</returns>
|
||||
public esitoOperazione scaricaListaPrelievo(string CodCS, string CodLista)
|
||||
{
|
||||
/*
|
||||
* Questa funzione serve ALLA FINE delle operazioni di prelievo, x chiudere la lista di prelievo
|
||||
* - controllo se la lista esiste, ed è ancora NON completata
|
||||
* - se risulta già completata errore xché è "readOnly" la lista essendo già completata (vedere l'enum in fondo al codice)
|
||||
* - se la lista è ok
|
||||
* - leggo da tipoLista prelievo alcuni dati (es codcella di destinazione)
|
||||
* - sposto TUTTI gli UDC delle righeListaPrelievo, da posizione attuale a posizione indicata da tipo lista
|
||||
* (quindi da codCella --> IdxCella --> spostamento
|
||||
* indico la lista come compeltata = 1 (true)
|
||||
* */
|
||||
|
||||
esitoOperazione answ = esitoOperazione.errore;
|
||||
int trovate = 0;
|
||||
DS_magazzino.ElencoListePrelievoDataTable tabella;
|
||||
DS_magazzino.ElencoListePrelievoRow riga;
|
||||
try
|
||||
{
|
||||
tabella = taElencoListePrelievo.getByCodLista(CodLista);
|
||||
riga = tabella[0];
|
||||
trovate = tabella.Rows.Count;
|
||||
|
||||
// se la lista esiste...
|
||||
if (trovate > 0)
|
||||
{
|
||||
// se la lista è ancora non completata
|
||||
if (riga.Completata == false)
|
||||
{
|
||||
// ricavo il codtipolista
|
||||
string codTipoListaAttuale = riga.CodTipoLista;
|
||||
|
||||
//leggo da tipoLista prelievo alcuni dati (es codcella di destinazione)
|
||||
DS_magazzino.TipoListaPrelievoDataTable tabellaTipoLista = taTipoListaPrelievo.getByCodTipoLista(codTipoListaAttuale);
|
||||
DS_magazzino.TipoListaPrelievoRow rigaTipoLista = tabellaTipoLista[0];
|
||||
|
||||
// leggo da righe lista prelievo il dato udc che mi serve
|
||||
DS_magazzino.RigheListePrelievoDataTable tabellaRigheListaPrelievo = taRigheListePrelievo.getByCodLista(CodLista);
|
||||
DS_magazzino.RigheListePrelievoRow rigaListaPrelievo = tabellaRigheListaPrelievo[0];
|
||||
|
||||
// potrebbe non servire se per codCella si intende l'idx più sotto...
|
||||
string codCellaDestAttuale = rigaTipoLista.CodCella;
|
||||
// i due idx che mi servono ... il primo ...
|
||||
int idxCellaTo = rigaTipoLista.IdxPosizione;
|
||||
|
||||
foreach (DS_magazzino.RigheListePrelievoRow row in tabellaRigheListaPrelievo.Rows)
|
||||
{
|
||||
// ricavo il codice UDC ... fai con foreach
|
||||
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;
|
||||
// sposto UDC
|
||||
spostaUDC(CodCS, UDC, idxCellaFrom, idxCellaTo);
|
||||
}
|
||||
// segna come completata la lista prelievo
|
||||
taElencoListePrelievo.updateCompletato(CodLista);
|
||||
// restituisce ok
|
||||
answ = esitoOperazione.ok;
|
||||
}
|
||||
// se è già completata dà errore
|
||||
else
|
||||
{
|
||||
answ = esitoOperazione.errore_readOnly;
|
||||
}
|
||||
}
|
||||
// se la lista non esiste dai errore
|
||||
else
|
||||
{
|
||||
answ = esitoOperazione.errore;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -586,3 +608,11 @@ public enum esitoOperazione
|
||||
errore_mismatch, // errore x mancanza corrispondenza tra dati (particolare-esponente-figura di lista ed UDC, ad esempio)
|
||||
errore_readOnly // errore xché ild ato è read only o bloccato (es lista di prelievo già completata, NON posso riprenderla in carico)
|
||||
}
|
||||
|
||||
public enum statoLista
|
||||
{
|
||||
generata = 1,
|
||||
iniziata,
|
||||
completata,
|
||||
scaricata
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user