Aggiunta pagia anagrafica schede collaudo

This commit is contained in:
Samuele E. Locatelli
2015-05-20 12:34:13 +02:00
parent 46b9b853cb
commit e50a3e8cca
58 changed files with 1656 additions and 25 deletions
@@ -0,0 +1,52 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagSchedeColl.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_anagSchedeColl" %>
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="CodScheda" DataSourceID="ods" CssClass="table table-striped table-hover" AllowPaging="True" AllowSorting="True">
<PagerStyle CssClass="info" />
<Columns>
<asp:TemplateField ShowHeader="False">
<EditItemTemplate>
<asp:LinkButton ID="lbUpdate" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
&nbsp;<asp:LinkButton ID="lbCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Edit" CssClass="fa fa-edit fa-2x" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="CodScheda" HeaderText="CodScheda" ReadOnly="false" SortExpression="CodScheda" />
<asp:BoundField DataField="Vers" HeaderText="Vers" SortExpression="Vers" />
<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" />
<asp:BoundField DataField="Path" HeaderText="Path" SortExpression="Path" />
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:LinkButton ID="lbAddNew" runat="server" CausesValidation="false" ToolTip="InsNew" CssClass="fa fa-plus fa-2x" OnClick="lbAddNew_Click" />
</HeaderTemplate>
<EditItemTemplate>
<asp:LinkButton ID="lbUpdate2" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
&nbsp;<asp:LinkButton ID="lbCancel2" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandName="Delete" ToolTip="Delete" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaDel") %>' CssClass="fa fa-trash fa-2x" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.AnagSchedeTableAdapter" FilterExpression=" CodScheda LIKE '%{0}%' OR Descrizione LIKE '%{0}%'" DeleteMethod="deleteQuery" InsertMethod="insertQuery" UpdateMethod="updateQuery">
<DeleteParameters>
<asp:Parameter Name="Original_CodScheda" Type="String" />
</DeleteParameters>
<FilterParameters>
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="searchVal" />
</FilterParameters>
<InsertParameters>
<asp:Parameter Name="CodScheda" Type="String" />
<asp:Parameter Name="Vers" Type="Int32" />
<asp:Parameter Name="Descrizione" Type="String" />
<asp:Parameter Name="Path" Type="String" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="CodScheda" Type="String" />
<asp:Parameter Name="Vers" Type="Int32" />
<asp:Parameter Name="Descrizione" Type="String" />
<asp:Parameter Name="Path" Type="String" />
<asp:Parameter Name="Original_CodScheda" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS_SC_Data;
namespace CMS_SC.WebUserControls
{
public partial class mod_anagSchedeColl : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
/// <summary>
/// dimensione pagina grid view
/// </summary>
public int pageSize
{
get
{
return grView.PageSize;
}
set
{
grView.PageSize = value;
}
}
/// <summary>
/// richiesta di aggiunta record, tutto a zero!
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbAddNew_Click(object sender, EventArgs e)
{
// inserisco nuovo record
DtProxy.man.taASC.insertQuery("000000", 0, "000000 Nuova Scheda", "000000");
// update!
grView.DataBind();
}
}
}
@@ -0,0 +1,33 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CMS_SC.WebUserControls {
public partial class mod_anagSchedeColl {
/// <summary>
/// grView 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.GridView grView;
/// <summary>
/// ods 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 ods;
}
}