inserita bozza gestione ListValues
This commit is contained in:
@@ -293,6 +293,7 @@
|
||||
<Content Include="Images\WorkInProgress.jpg" />
|
||||
<Content Include="Import.aspx" />
|
||||
<Content Include="jumper.aspx" />
|
||||
<Content Include="listValues.aspx" />
|
||||
<Content Include="login.aspx" />
|
||||
<Content Include="MakeSim.aspx" />
|
||||
<Content Include="MarginReport.aspx" />
|
||||
@@ -370,6 +371,7 @@
|
||||
<Content Include="WebUserControls\mod_fileUploader.ascx" />
|
||||
<Content Include="WebUserControls\mod_imgPreview.ascx" />
|
||||
<Content Include="WebUserControls\mod_lemmiVocab.ascx" />
|
||||
<Content Include="WebUserControls\mod_listValues.ascx" />
|
||||
<Content Include="WebUserControls\mod_login.ascx" />
|
||||
<Content Include="WebUserControls\mod_MaRepActData.ascx" />
|
||||
<Content Include="WebUserControls\mod_MaRepNewData.ascx" />
|
||||
@@ -546,6 +548,13 @@
|
||||
<Compile Include="jumper.aspx.designer.cs">
|
||||
<DependentUpon>jumper.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="listValues.aspx.cs">
|
||||
<DependentUpon>listValues.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="listValues.aspx.designer.cs">
|
||||
<DependentUpon>listValues.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="login.aspx.cs">
|
||||
<DependentUpon>login.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -759,6 +768,13 @@
|
||||
<Compile Include="WebUserControls\mod_lemmiVocab.ascx.designer.cs">
|
||||
<DependentUpon>mod_lemmiVocab.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_listValues.ascx.cs">
|
||||
<DependentUpon>mod_listValues.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_listValues.ascx.designer.cs">
|
||||
<DependentUpon>mod_listValues.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_login.ascx.cs">
|
||||
<DependentUpon>mod_login.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_listValues.ascx.cs"
|
||||
Inherits="C2P.WebUserControls.mod_listValues" %>
|
||||
<%--
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
|
||||
<div style="padding:5px" >
|
||||
<uc1:mod_filtro ID="mod_filtroTableName" runat="server" Oneh_selValore="eh_selectedTable"
|
||||
changeCheckEnabled="false" isChecked="true" changeCheckVisible="false" />
|
||||
</div>
|
||||
--%>
|
||||
<div style="float: left; width:100%; margin: 0;">
|
||||
<asp:GridView ID="grView" runat="server" DataSourceID="ods" AllowPaging="True" AllowSorting="True"
|
||||
DataKeyNames="TableName,FieldName,value" AutoGenerateColumns="False" CellPadding="3"
|
||||
BackColor="White" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px"
|
||||
OnDataBound="grView_DataBound" Width="100%">
|
||||
<RowStyle CssClass="RowStyle" />
|
||||
<AlternatingRowStyle CssClass="AlternatingRowStyle" />
|
||||
<FooterStyle CssClass="FooterStyle" />
|
||||
<PagerStyle CssClass="PagerStyle" />
|
||||
<SelectedRowStyle CssClass="SelectedRowStyle" />
|
||||
<HeaderStyle CssClass="HeaderStyle" ForeColor="White" />
|
||||
<EditRowStyle CssClass="EditRowStyle" />
|
||||
<EmptyDataRowStyle CssClass="RowStyle" />
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="btnReset" runat="server" OnClick="btnReset_Click" CssClass="styleBtnComposito">
|
||||
<img src="images/refresh_16.png" style="border-style: none; margin-right: 0.2em;"
|
||||
width="13px" height="13px" /><asp:Label ID="lblReset" runat="server" Text='<%# traduci("Reset") %>'></asp:Label></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="True" CommandName="Update"
|
||||
ImageUrl="~/images/apply_s.png" Text="Update" />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ImageUrl="~/images/cancel_s.png" Text="Cancel" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ImageUrl="~/images/view_s.png" ToolTip='<%# traduci("Select") %>' />
|
||||
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
ImageUrl="~/images/edit_s.png" ToolTip='<%# traduci("Edit") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="TableName" HeaderText="TableName" ReadOnly="True" SortExpression="TableName" />
|
||||
<asp:BoundField DataField="FieldName" HeaderText="FieldName" ReadOnly="True" SortExpression="FieldName" />
|
||||
<asp:TemplateField HeaderText="value" SortExpression="value">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("value") %>' Width="10em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Bind("value") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle Width="200px" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="label" SortExpression="label">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("label") %>' Width="30em"
|
||||
TextMode="MultiLine" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Bind("label") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="ordinal" SortExpression="ordinal">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("ordinal") %>' Width="3em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Bind("ordinal") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
ImageUrl="~/images/elimina_s.png" Text="Delete" />
|
||||
<%--<asp:ConfirmButtonExtender runat="server" ID="cbeDelete" TargetControlID="imgDelete"
|
||||
ConfirmText='<%# traduci("confermaDel") %>' />--%>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="True" CommandName="Update"
|
||||
ImageUrl="~/images/apply_s.png" Text="Update" />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ImageUrl="~/images/cancel_s.png" Text="Cancel" />
|
||||
</EditItemTemplate>
|
||||
</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" InsertMethod="Insert"
|
||||
OldValuesParameterFormatString="original_{0}" SelectMethod="getByTable" FilterExpression=" (value like '%{0}%' OR label like '%{0}%' OR (CONVERT(ordinal, 'System.String') LIKE '%{0}%')) "
|
||||
TypeName="C2P_Data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
<%--<asp:ControlParameter ControlID="mod_filtroTableName" PropertyName="valore" Name="TableName"
|
||||
DefaultValue="" Type="String" />--%>
|
||||
<asp:Parameter Name="TableName" Type="String" DefaultValue="*" />
|
||||
</SelectParameters>
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter Type="String" Name="valore" SessionField="valoreCercato" />
|
||||
</FilterParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="TableName" Type="String" />
|
||||
<asp:Parameter Name="FieldName" Type="String" />
|
||||
<asp:Parameter Name="value" Type="String" />
|
||||
<asp:Parameter Name="label" Type="String" />
|
||||
<asp:Parameter Name="ordinal" Type="Int32" />
|
||||
</InsertParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="odsTableName" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="C2P.DS_ApplicazioneTableAdapters.stp_listValues_getDistTableTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace C2P.WebUserControls
|
||||
{
|
||||
public partial class mod_listValues : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
#if false
|
||||
mod_filtroTableName.ods = odsTableName;
|
||||
#endif
|
||||
}
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua traduzione del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// update dei controlli filtraggio
|
||||
/// </summary>
|
||||
private void checkFixOds()
|
||||
{
|
||||
//ods.FilterExpression = " (value like '%{0}%' OR label like '%{0}%' OR (CONVERT(ordinal, 'System.String') LIKE '%{0}%')) ";
|
||||
//// reimposto il filtro dell'ODS
|
||||
//if (mod_filtroTableName.isChecked)
|
||||
//{
|
||||
// //ods.FilterExpression += string.Format(" AND TableName ='{0}' ", mod_filtroTableName.valore);
|
||||
//}
|
||||
|
||||
//doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// selezionato un valore x elenco tabelle
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public void eh_selectedTable(object sender, EventArgs e)
|
||||
{
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettuo update
|
||||
/// </summary>
|
||||
private void doUpdate()
|
||||
{
|
||||
//grView.SelectedIndex = -1;
|
||||
//grView.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// reset selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
// deseleziono e nascondo pnl statistiche...
|
||||
grView.SelectedIndex = -1;
|
||||
}
|
||||
/// <summary>
|
||||
/// evento post "aggancio" del grView x traduzione headers
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.Rows.Count > 0)
|
||||
{
|
||||
LinkButton lb;
|
||||
// aggiorno gli headers
|
||||
foreach (TableCell cella in grView.HeaderRow.Cells)
|
||||
{
|
||||
try
|
||||
{
|
||||
lb = (LinkButton)cella.Controls[0];
|
||||
lb.Text = traduci(lb.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
|
||||
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblNumRec.Text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+60
@@ -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 C2P.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_listValues {
|
||||
|
||||
/// <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>
|
||||
/// lblNumRec 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 lblNumRec;
|
||||
|
||||
/// <summary>
|
||||
/// lblWarning 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 lblWarning;
|
||||
|
||||
/// <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>
|
||||
/// odsTableName 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 odsTableName;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,36 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="listValues.aspx.cs" Inherits="C2P.listValues" Title="List Values" %>
|
||||
|
||||
<%@ Register Src="WebUserControls/mod_listValues.ascx" TagName="mod_listValues" TagPrefix="uc1" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagName="mod_righePag" TagPrefix="uc3" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_ricercaGenerica.ascx" TagPrefix="uc4" TagName="mod_ricercaGenerica" %>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="container-fluid" style="background-color: #cdcdcd; padding-top: 2px; padding-bottom: 2px;">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-8 col-sm-offset-2 text-center">
|
||||
<uc4:mod_ricercaGenerica runat="server" ID="mod_ricercaGenerica" />
|
||||
</div>
|
||||
<div class="col-sm-2 text-right">
|
||||
<uc3:mod_righePag ID="mod_righePag1" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-fluid" style="padding-top: 2px; padding-bottom: 2px;">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<uc1:mod_listValues ID="mod_listValues1" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace C2P
|
||||
{
|
||||
public partial class listValues : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+42
@@ -0,0 +1,42 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 C2P {
|
||||
|
||||
|
||||
public partial class listValues {
|
||||
|
||||
/// <summary>
|
||||
/// mod_ricercaGenerica control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::mod_ricercaGenerica mod_ricercaGenerica;
|
||||
|
||||
/// <summary>
|
||||
/// mod_righePag1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::mod_righePag mod_righePag1;
|
||||
|
||||
/// <summary>
|
||||
/// mod_listValues1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::C2P.WebUserControls.mod_listValues mod_listValues1;
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
|
||||
<dsig:DigestValue>t4U7BWUoM18XexO2QaOCWnqjjSc=</dsig:DigestValue>
|
||||
<dsig:DigestValue>IU0ybaENUH2CN9qChxc+ILKVEcE=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
||||
@@ -84,19 +84,19 @@
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
|
||||
<dsig:DigestValue>8QQz293gRLl96YEQOpm6D0K/G8E=</dsig:DigestValue>
|
||||
<dsig:DigestValue>4wK91TK+73HRZPRwPds1F6a5U/Y=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="C2P_Data.dll" size="501248">
|
||||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="C2P_Data.dll" size="501760">
|
||||
<assemblyIdentity name="C2P_Data" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
|
||||
<hash>
|
||||
<dsig:Transforms>
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
|
||||
<dsig:DigestValue>GBj7zHqd8a/wj+36zYPn21SB4Js=</dsig:DigestValue>
|
||||
<dsig:DigestValue>7HISd7uIWX6EhafB3nUPEeIuC2s=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user