ulteriori modifiche import
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagTags.ascx.cs" Inherits="GIM_site.WebUserControls.mod_anagTags" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
|
||||
|
||||
<h3>FARE GESTIONE SINONIMI</h3>
|
||||
<i>in modo da ricodificare i tags (salvando l'operazione in tab sinonimi x successivi import e però spostando i collegamenti verso items e macchine ai tags "raggruppati")</i>
|
||||
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="20"
|
||||
DataKeyNames="TagCode" DataSourceID="ods" OnDataBound="grView_DataBound" OnRowEditing="grView_RowEditing">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
|
||||
@@ -2,114 +2,114 @@
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_tag2Item.ascx" TagPrefix="uc1" TagName="mod_tag2Item" %>
|
||||
|
||||
<div style="float: left; width: 75%;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="20"
|
||||
DataKeyNames="idxItem" DataSourceID="ods" OnDataBound="grView_DataBound" OnRowEditing="grView_RowEditing" EnableModelValidation="True">
|
||||
<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") %>' />
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>'
|
||||
Visible='<%# isWritable() %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma, SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla, SteamWare.dimImg.small) %>' />
|
||||
</EditItemTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
|
||||
Visible="false" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
Visible="false" ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
Visible='<%# isWritable() %>' ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="idxItem" HeaderText="idxItem" ReadOnly="True" SortExpression="idxItem" />
|
||||
<asp:BoundField DataField="Famiglia" HeaderText="Famiglia" SortExpression="Famiglia" />
|
||||
<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" />
|
||||
<asp:BoundField DataField="NomeCostruttore" HeaderText="NomeCostruttore" SortExpression="NomeCostruttore" />
|
||||
<asp:BoundField DataField="CodCostruttore" HeaderText="CodCostruttore" SortExpression="CodCostruttore" />
|
||||
<asp:BoundField DataField="CodSomaschini" HeaderText="CodSomaschini" SortExpression="CodSomaschini" />
|
||||
<asp:BoundField DataField="QtaMin" HeaderText="QtaMin" SortExpression="QtaMin" />
|
||||
<asp:BoundField DataField="QtaLotto" HeaderText="QtaLotto" SortExpression="QtaLotto" />
|
||||
<asp:BoundField DataField="Valore" HeaderText="Valore" SortExpression="Valore" />
|
||||
<asp:BoundField DataField="Giacenza" HeaderText="Giacenza" ReadOnly="True" SortExpression="Giacenza" />
|
||||
<asp:BoundField DataField="CodLocazione" HeaderText="CodLocazione" SortExpression="CodLocazione" />
|
||||
<asp:BoundField DataField="DescrLocazione" HeaderText="DescrLocazione" SortExpression="DescrLocazione" />
|
||||
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
|
||||
<asp:BoundField DataField="dtLastUpd" HeaderText="dtLastUpd" SortExpression="dtLastUpd" />
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>' Visible='<%# isWritable() %>' />
|
||||
</HeaderTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma, SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla, SteamWare.dimImg.small) %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
Visible='<%# isWritable() %>' ToolTip='<%# traduci("Delete") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina, SteamWare.dimImg.small) %>' />
|
||||
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
||||
TargetControlID="imgDelete">
|
||||
</cc1:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini"></asp:Label>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="GIM_data.DS_MagTableAdapters.StatoMagTableAdapter"
|
||||
UpdateMethod="updateQuery" DeleteMethod="deleteQuery" OldValuesParameterFormatString="Original_{0}"
|
||||
FilterExpression="Descrizione LIKE '%{0}%' OR NomeCostruttore LIKE '%{0}%' OR CodCostruttore LIKE '%{0}%' OR CodSomaschini LIKE '%{0}%' OR CodLocazione LIKE '%{0}%' OR DescrLocazione LIKE '%{0}%' OR Note LIKE '%{0}%' " InsertMethod="insertQuery">
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_idxItem" Type="Int32" />
|
||||
<asp:Parameter Name="Descrizione" Type="String" />
|
||||
<asp:Parameter Name="NomeCostruttore" Type="String" />
|
||||
<asp:Parameter Name="CodCostruttore" Type="String" />
|
||||
<asp:Parameter Name="CodSomaschini" Type="String" />
|
||||
<asp:Parameter Name="QtaMin" Type="Int32" />
|
||||
<asp:Parameter Name="QtaLotto" Type="Int32" />
|
||||
<asp:Parameter Name="Valore" Type="Decimal" />
|
||||
<asp:Parameter Name="CodLocazione" Type="String" />
|
||||
<asp:Parameter Name="Note" Type="String"></asp:Parameter>
|
||||
</UpdateParameters>
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
</FilterParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxItem" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="Descrizione" Type="String" />
|
||||
<asp:Parameter Name="NomeCostruttore" Type="String" />
|
||||
<asp:Parameter Name="CodCostruttore" Type="String" />
|
||||
<asp:Parameter Name="CodSomaschini" Type="String" />
|
||||
<asp:Parameter Name="QtaMin" Type="Int32" />
|
||||
<asp:Parameter Name="QtaLotto" Type="Int32" />
|
||||
<asp:Parameter Name="Valore" Type="Decimal" />
|
||||
<asp:Parameter Name="Giacenza" Type="Int32" />
|
||||
<asp:Parameter Name="CodLocazione" Type="String" />
|
||||
<asp:Parameter Name="Note" Type="String" />
|
||||
</InsertParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<div style="float: left; width: 75%; font-size: 0.8em;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="20"
|
||||
DataKeyNames="idxItem" DataSourceID="ods" OnDataBound="grView_DataBound" OnRowEditing="grView_RowEditing" EnableModelValidation="True">
|
||||
<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") %>' />
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>'
|
||||
Visible='<%# isWritable() %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma, SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla, SteamWare.dimImg.small) %>' />
|
||||
</EditItemTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
|
||||
Visible="false" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
Visible="false" ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
Visible='<%# isWritable() %>' ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<%--<asp:BoundField DataField="idxItem" HeaderText="idxItem" ReadOnly="True" SortExpression="idxItem" />--%>
|
||||
<asp:BoundField DataField="Famiglia" HeaderText="Famiglia" SortExpression="Famiglia" />
|
||||
<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" />
|
||||
<asp:BoundField DataField="NomeCostruttore" HeaderText="NomeCostruttore" SortExpression="NomeCostruttore" />
|
||||
<asp:BoundField DataField="CodCostruttore" HeaderText="CodCostruttore" SortExpression="CodCostruttore" />
|
||||
<asp:BoundField DataField="CodSomaschini" HeaderText="CodSomaschini" SortExpression="CodSomaschini" />
|
||||
<asp:BoundField DataField="QtaMin" HeaderText="QtaMin" SortExpression="QtaMin" />
|
||||
<asp:BoundField DataField="QtaLotto" HeaderText="QtaLotto" SortExpression="QtaLotto" />
|
||||
<asp:BoundField DataField="Valore" HeaderText="Valore" SortExpression="Valore" />
|
||||
<asp:BoundField DataField="Giacenza" HeaderText="Giacenza" ReadOnly="True" SortExpression="Giacenza" />
|
||||
<asp:BoundField DataField="CodLocazione" HeaderText="CodLocazione" SortExpression="CodLocazione" />
|
||||
<asp:BoundField DataField="DescrLocazione" HeaderText="DescrLocazione" SortExpression="DescrLocazione" />
|
||||
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
|
||||
<asp:BoundField DataField="dtLastUpd" HeaderText="dtLastUpd" SortExpression="dtLastUpd" />
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>' Visible='<%# isWritable() %>' />
|
||||
</HeaderTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma, SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla, SteamWare.dimImg.small) %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
Visible='<%# isWritable() %>' ToolTip='<%# traduci("Delete") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina, SteamWare.dimImg.small) %>' />
|
||||
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
||||
TargetControlID="imgDelete">
|
||||
</cc1:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini"></asp:Label>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="GIM_data.DS_MagTableAdapters.StatoMagTableAdapter"
|
||||
UpdateMethod="updateQuery" DeleteMethod="deleteQuery" OldValuesParameterFormatString="Original_{0}"
|
||||
FilterExpression="Descrizione LIKE '%{0}%' OR NomeCostruttore LIKE '%{0}%' OR CodCostruttore LIKE '%{0}%' OR CodSomaschini LIKE '%{0}%' OR CodLocazione LIKE '%{0}%' OR DescrLocazione LIKE '%{0}%' OR Note LIKE '%{0}%' " InsertMethod="insertQuery">
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_idxItem" Type="Int32" />
|
||||
<asp:Parameter Name="Descrizione" Type="String" />
|
||||
<asp:Parameter Name="NomeCostruttore" Type="String" />
|
||||
<asp:Parameter Name="CodCostruttore" Type="String" />
|
||||
<asp:Parameter Name="CodSomaschini" Type="String" />
|
||||
<asp:Parameter Name="QtaMin" Type="Int32" />
|
||||
<asp:Parameter Name="QtaLotto" Type="Int32" />
|
||||
<asp:Parameter Name="Valore" Type="Decimal" />
|
||||
<asp:Parameter Name="CodLocazione" Type="String" />
|
||||
<asp:Parameter Name="Note" Type="String"></asp:Parameter>
|
||||
</UpdateParameters>
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
</FilterParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxItem" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="Descrizione" Type="String" />
|
||||
<asp:Parameter Name="NomeCostruttore" Type="String" />
|
||||
<asp:Parameter Name="CodCostruttore" Type="String" />
|
||||
<asp:Parameter Name="CodSomaschini" Type="String" />
|
||||
<asp:Parameter Name="QtaMin" Type="Int32" />
|
||||
<asp:Parameter Name="QtaLotto" Type="Int32" />
|
||||
<asp:Parameter Name="Valore" Type="Decimal" />
|
||||
<asp:Parameter Name="Giacenza" Type="Int32" />
|
||||
<asp:Parameter Name="CodLocazione" Type="String" />
|
||||
<asp:Parameter Name="Note" Type="String" />
|
||||
</InsertParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
|
||||
<div style="float: left; width: 25%;">
|
||||
<uc1:mod_tag2Item runat="server" ID="mod_tag2Item" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -34,5 +34,16 @@ exec voc.stp_insNewLemma 'anagTagsLong', 'Gestione Etichette (per raggruppamenti
|
||||
exec voc.stp_insNewLemma 'TagCode', 'Cod. Tag'
|
||||
exec voc.stp_insNewLemma 'Class', 'Classe'
|
||||
exec voc.stp_insNewLemma 'TagDescr', 'Descrizione Tag'
|
||||
exec voc.stp_insNewLemma 'Famiglia', 'Famiglia'
|
||||
exec voc.stp_insNewLemma 'NomeCostruttore', 'Nome Costruttore'
|
||||
exec voc.stp_insNewLemma 'CodCostruttore', 'Cod. Costruttore'
|
||||
exec voc.stp_insNewLemma 'CodSomaschini', 'Cod. Somaschini'
|
||||
exec voc.stp_insNewLemma 'QtaMin', 'Qta Min'
|
||||
exec voc.stp_insNewLemma 'QtaLotto', 'Qta Lotto'
|
||||
exec voc.stp_insNewLemma 'Valore', 'Valore'
|
||||
exec voc.stp_insNewLemma 'Giacenza', 'Giacenza'
|
||||
exec voc.stp_insNewLemma 'CodLocazione', 'Cod Locazione'
|
||||
exec voc.stp_insNewLemma 'DescrLocazione', 'Locazione'
|
||||
exec voc.stp_insNewLemma 'dtLastUpd', 'Last Update'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user