aggiunto insert, testato delete x particolari-imballi
This commit is contained in:
@@ -30,11 +30,53 @@
|
||||
<asp:ImageButton ID="imgInsert" runat="server" CausesValidation="False" CommandName="Insert" ToolTip='<%# traduci("insert") %>' ImageUrl="~/images/new_m.png" OnClick="lblIns_click" />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip='<%# traduci("Cancel") %>' ImageUrl="~/images/cancel_m.png" />
|
||||
</FooterTemplate>
|
||||
|
||||
<ItemStyle HorizontalAlign="Center" Width="54px"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodStato" SortExpression="CodStato">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtCodStato" runat="server" Text='<%# Bind("CodStato") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblCodStato" runat="server" Text='<%# Bind("CodStato") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtCodStato" runat="server" Text='<%# Bind("CodStato") %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtParticolare" runat="server" Text='<%# Bind("Particolare") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblParticolare" runat="server" Text='<%# Bind("Particolare") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtParticolare" runat="server" Text='<%# Bind("Particolare") %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodImballo" SortExpression="CodImballo">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtCodImballo" runat="server" Text='<%# Bind("CodImballo") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblCodImballo" runat="server" Text='<%# Bind("CodImballo") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtCodImballo" runat="server" Text='<%# Bind("CodImballo") %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="QtaStd" SortExpression="QtaStd">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtQtaStd" runat="server" Text='<%# Bind("QtaStd") %>' TextMode="Number" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblQtaStd" runat="server" Text='<%# Bind("QtaStd") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtQtaStd" runat="server" Text='<%# Bind("QtaStd") %>' TextMode="Number" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="CodStato" HeaderText="CodStato" SortExpression="CodStato" ReadOnly="False" />
|
||||
<asp:BoundField DataField="Particolare" HeaderText="Particolare" ReadOnly="False" SortExpression="Particolare" />
|
||||
<asp:BoundField DataField="CodImballo" HeaderText="CodImballo" ReadOnly="False" SortExpression="CodImballo" />
|
||||
<asp:BoundField DataField="QtaStd" HeaderText="QtaStd" SortExpression="QtaStd" />
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="54px">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Visible="true" Text='<%# traduci("New") %>' />
|
||||
@@ -50,6 +92,8 @@
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete" ImageUrl="~/images/elimina_m.png" ToolTip='<%# traduci("Delete") %>' OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaDel") %>' />
|
||||
</ItemTemplate>
|
||||
|
||||
<ItemStyle HorizontalAlign="Center" Width="54px"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
@@ -78,4 +122,4 @@
|
||||
<asp:Parameter Name="Original_CodStato" Type="String" />
|
||||
<asp:Parameter Name="Original_Particolare" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace GMW.WebUserControls
|
||||
/// <returns></returns>
|
||||
protected DataColumnCollection colonneObj()
|
||||
{
|
||||
DS_DataMatrix.TabSpecDtxDataTable tabella = new DS_DataMatrix.TabSpecDtxDataTable();
|
||||
DS_Applicazione.AnagParticolariImballiDataTable tabella = new DS_Applicazione.AnagParticolariImballiDataTable();
|
||||
DataColumnCollection colonne = tabella.Columns;
|
||||
return colonne;
|
||||
}
|
||||
@@ -148,22 +148,6 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
//if (e.InputParameters["DataFormat"] == null) e.InputParameters["DataFormat"] = "";
|
||||
}
|
||||
|
||||
public string CodBloccoSel
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = grView.SelectedValue.ToString();
|
||||
answ = answ.Substring(0, answ.Length - 2);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user