continuato x collaudi, ANCORA NON OK...
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_collaudi.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_collaudi" %>
|
||||
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxDossier,CodScheda,Vers,NumScheda,CodMisura,Fase" DataSourceID="ods" CssClass="table table-striped" AllowPaging="True" AllowSorting="True">
|
||||
<PagerStyle CssClass="bg-primary" />
|
||||
<SelectedRowStyle CssClass="info" />
|
||||
<Columns>
|
||||
<%--<asp:BoundField DataField="IdxDossier" HeaderText="IdxDossier" ReadOnly="True" SortExpression="IdxDossier" />--%>
|
||||
<asp:BoundField DataField="CodScheda" HeaderText="CodScheda" ReadOnly="True" SortExpression="CodScheda" />
|
||||
<asp:BoundField DataField="Vers" HeaderText="Vers" ReadOnly="True" SortExpression="Vers" />
|
||||
<asp:BoundField DataField="NumScheda" HeaderText="NumScheda" ReadOnly="True" SortExpression="NumScheda" />
|
||||
<asp:BoundField DataField="CodMisura" HeaderText="CodMisura" ReadOnly="True" SortExpression="CodMisura" />
|
||||
<asp:BoundField DataField="Fase" HeaderText="Fase" ReadOnly="True" SortExpression="Fase" />
|
||||
<asp:BoundField DataField="Operatore" HeaderText="Operatore" SortExpression="Operatore" />
|
||||
<asp:BoundField DataField="DataOra" HeaderText="DataOra" SortExpression="DataOra" />
|
||||
<asp:BoundField DataField="ValorePar" HeaderText="ValorePar" SortExpression="ValorePar" />
|
||||
<asp:BoundField DataField="ValoreMis" HeaderText="ValoreMis" SortExpression="ValoreMis" />
|
||||
<asp:CheckBoxField DataField="OkValMis" HeaderText="OkValMis" SortExpression="OkValMis" />
|
||||
<asp:BoundField DataField="CodDeroga" HeaderText="CodDeroga" SortExpression="CodDeroga" />
|
||||
|
||||
<asp:BoundField DataField="NomeMisura" HeaderText="NomeMisura" SortExpression="NomeMisura" />
|
||||
<asp:BoundField DataField="TipoValMisura" HeaderText="TipoValMisura" SortExpression="TipoValMisura" />
|
||||
<asp:BoundField DataField="NomePar" HeaderText="NomePar" SortExpression="NomePar" />
|
||||
<asp:BoundField DataField="MinPar" HeaderText="MinPar" SortExpression="MinPar" />
|
||||
<asp:BoundField DataField="MaxPar" HeaderText="MaxPar" SortExpression="MaxPar" />
|
||||
<asp:BoundField DataField="LIVal" HeaderText="LIVal" SortExpression="LIVal" />
|
||||
<asp:BoundField DataField="LSVal" HeaderText="LSVal" SortExpression="LSVal" />
|
||||
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<%--<asp:TemplateField ShowHeader="False">
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbUpdate" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
|
||||
<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:TemplateField ShowHeader="False">
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbUpdate2" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
|
||||
<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>--%>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getDataFilt" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.MisureTableAdapter" FilterExpression=" ValoreMis LIKE '%{0}%' OR CodDeroga LIKE '%{0}%'">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="searchVal" />
|
||||
</FilterParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfIdxDossier" Name="IdxDossier" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfCodSchedaVers" Name="CodSchedaVers" PropertyName="Value" Type="String" />
|
||||
<asp:ControlParameter ControlID="hfFase" Name="Fase" PropertyName="Value" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:HiddenField runat="server" ID="hfIdxDossier" Value="-1" />
|
||||
<asp:HiddenField runat="server" ID="hfCodSchedaVers" Value="" />
|
||||
<asp:HiddenField runat="server" ID="hfFase" Value="" />
|
||||
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace CMS_SC.WebUserControls
|
||||
{
|
||||
public partial class mod_collaudi : 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;
|
||||
}
|
||||
}
|
||||
public int IdxDossier
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(hfIdxDossier.Value);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfIdxDossier.Value = value.ToString();
|
||||
}
|
||||
}
|
||||
public string CodSchedaVers
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = hfCodSchedaVers.Value;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfCodSchedaVers.Value = value;
|
||||
}
|
||||
}
|
||||
public string Fase
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = hfFase.Value;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfFase.Value = value;
|
||||
}
|
||||
}
|
||||
public void doUpdate()
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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_collaudi {
|
||||
|
||||
/// <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;
|
||||
|
||||
/// <summary>
|
||||
/// hfIdxDossier 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.HiddenField hfIdxDossier;
|
||||
|
||||
/// <summary>
|
||||
/// hfCodSchedaVers 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.HiddenField hfCodSchedaVers;
|
||||
|
||||
/// <summary>
|
||||
/// hfFase 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.HiddenField hfFase;
|
||||
}
|
||||
}
|
||||
@@ -31,7 +31,7 @@
|
||||
<span>Home</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class='<%: "dropdown " + liClass("AnagFamMacchine AnagMatricole AnagFasi AnagMisure AnagSchedeColl")%>'>
|
||||
<li class='<%: "dropdown " + liClass("AnagFamMacchine AnagMatricole AnagFasi AnagMisure AnagSchedeColl DettScheda SchemaCollFamMacc")%>'>
|
||||
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-th"></i>
|
||||
<span>Anagrafiche</span>
|
||||
|
||||
Reference in New Issue
Block a user