inizio modifica tags...
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Bootstrap.Master" AutoEventWireup="true" CodeBehind="AnagTags.aspx.cs" Inherits="CMS_SC.AnagTags" %>
|
||||
<%@ Register src="~/WebUserControls/mod_anagTags.ascx" tagname="mod_anagTags" tagprefix="uc1" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagName="mod_righePag" TagPrefix="uc2" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="container">
|
||||
<div class="row panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><%: traduci("AnagFasi") %></h3>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<uc1:mod_anagTags ID="mod_anagTags" runat="server" />
|
||||
</div>
|
||||
<div class="col-xs-12 panel-footer">
|
||||
<uc2:mod_righePag ID="mod_righePag" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,38 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace CMS_SC
|
||||
{
|
||||
public partial class AnagTags : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
((Bootstrap)this.Master).showSearch = true;
|
||||
mod_righePag.numRowPag = 20;
|
||||
mod_anagTags.pageSize = mod_righePag.numRowPag;
|
||||
}
|
||||
mod_righePag.eh_newNum += mod_righePag_eh_newNum;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
void mod_righePag_eh_newNum(object sender, EventArgs e)
|
||||
{
|
||||
mod_anagTags.pageSize = mod_righePag.numRowPag;
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+33
@@ -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 {
|
||||
|
||||
|
||||
public partial class AnagTags {
|
||||
|
||||
/// <summary>
|
||||
/// mod_anagTags control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::CMS_SC.WebUserControls.mod_anagTags mod_anagTags;
|
||||
|
||||
/// <summary>
|
||||
/// mod_righePag control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::mod_righePag mod_righePag;
|
||||
}
|
||||
}
|
||||
@@ -158,6 +158,7 @@
|
||||
<Content Include="AnagMatricole.aspx" />
|
||||
<Content Include="AnagMisure.aspx" />
|
||||
<Content Include="AnagSchedeColl.aspx" />
|
||||
<Content Include="AnagTags.aspx" />
|
||||
<Content Include="App_Readme\Elmah.txt" />
|
||||
<Content Include="Collaudi.aspx" />
|
||||
<Content Include="Content\bootstrap.css" />
|
||||
@@ -331,6 +332,7 @@
|
||||
<Content Include="Scripts\WebForms\WebUIValidation.js" />
|
||||
<Content Include="Services\WS_data.asmx" />
|
||||
<Content Include="Test.aspx" />
|
||||
<Content Include="ToDo.txt" />
|
||||
<Content Include="UpdateVoc.aspx" />
|
||||
<Content Include="UserAdmin.aspx" />
|
||||
<Content Include="ViewSwitcher.ascx" />
|
||||
@@ -339,6 +341,7 @@
|
||||
<Content Include="WebUserControls\mod_anagFasi.ascx" />
|
||||
<Content Include="WebUserControls\mod_anagMatricole.ascx" />
|
||||
<Content Include="WebUserControls\mod_anagSchedeColl.ascx" />
|
||||
<Content Include="WebUserControls\mod_anagTags.ascx" />
|
||||
<Content Include="WebUserControls\mod_autocomplete.ascx" />
|
||||
<Content Include="WebUserControls\mod_autocompleteShort.ascx" />
|
||||
<Content Include="WebUserControls\mod_collaudi.ascx" />
|
||||
@@ -441,6 +444,13 @@
|
||||
<Compile Include="AnagSchedeColl.aspx.designer.cs">
|
||||
<DependentUpon>AnagSchedeColl.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AnagTags.aspx.cs">
|
||||
<DependentUpon>AnagTags.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AnagTags.aspx.designer.cs">
|
||||
<DependentUpon>AnagTags.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="App_Start\BundleConfig.cs" />
|
||||
<Compile Include="App_Start\RouteConfig.cs" />
|
||||
<Compile Include="Bootstrap.Master.cs">
|
||||
@@ -613,6 +623,13 @@
|
||||
<Compile Include="WebUserControls\mod_anagSchedeColl.ascx.designer.cs">
|
||||
<DependentUpon>mod_anagSchedeColl.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_anagTags.ascx.cs">
|
||||
<DependentUpon>mod_anagTags.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_anagTags.ascx.designer.cs">
|
||||
<DependentUpon>mod_anagTags.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_autocomplete.ascx.cs">
|
||||
<DependentUpon>mod_autocomplete.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
TODO's
|
||||
|
||||
- fare schema funzioni/utenti
|
||||
- check:non mostra link documento (DEVE mostrarlo ovunque ci sia un riferimento alla SC)
|
||||
- aggiunta SC a dossier: se c'è già deve creare #2, #3, ...
|
||||
- SC in dossier: cancellabile (con btn come aggiungi, x SuperUser) SE non ci sono istanze misurazioni
|
||||
- Misurazioni in collaudi: eliminabile in blocco x ntera SC SE NON CI SONO MISURAZIONI
|
||||
- pulsanti delete dossier: condizionare a presenza items child
|
||||
- FCS: mettere a livelo SC e NON dettaglio valori (modifiche in cascata)
|
||||
- gestione allegati tipo FILE (blob? in scheda o "generale"?)
|
||||
- In Dossier la singola SC deve avere descrizione MODIFICABILE
|
||||
- NON SERVE GESTIONE STATO --> bastano FASI
|
||||
- anag macchine/matricole: aggiungere 3 colonne corsa X / Y / Z
|
||||
- anag tags (da aggiungere)
|
||||
- anag macchine/matricole: gestione tags
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagTags.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_anagTags" %>
|
||||
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="Fase" DataSourceID="ods" CssClass="table table-striped" AllowPaging="True" AllowSorting="True">
|
||||
<PagerStyle CssClass="bg-primary" />
|
||||
<SelectedRowStyle 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" />
|
||||
<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 HeaderText="Fase" SortExpression="Fase">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtFase" runat="server" Text='<%# Bind("Fase") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblFase" runat="server" Text='<%# Bind("Fase") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Descrizione" SortExpression="Descrizione">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtDescrizione" runat="server" Text='<%# Bind("Descrizione") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblDescrizione" runat="server" Text='<%# Bind("Descrizione") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<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" />
|
||||
<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.AnagFasiTableAdapter" FilterExpression=" Fase LIKE '%{0}%' OR Descrizione LIKE '%{0}%'" DeleteMethod="deleteQuery" InsertMethod="insertQuery" UpdateMethod="updateQuery">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_Fase" Type="String" />
|
||||
</DeleteParameters>
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="searchVal" />
|
||||
</FilterParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="Fase" Type="String" />
|
||||
<asp:Parameter Name="Descrizione" Type="String" />
|
||||
</InsertParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Fase" Type="String" />
|
||||
<asp:Parameter Name="Descrizione" Type="String" />
|
||||
<asp:Parameter Name="Original_Fase" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
@@ -0,0 +1,45 @@
|
||||
using CMS_SC_Data;
|
||||
using SteamWare;
|
||||
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_anagTags : 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.taAF.insertQuery(memLayer.ML.CRS("defAF01"), memLayer.ML.CRS("defAF02"));
|
||||
// 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_anagTags {
|
||||
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
@@ -43,6 +43,7 @@
|
||||
<li><a href="AnagMatricole"><%: traduci("AnagMatricole") %></a></li>
|
||||
<li runat="server" id="li1" class="divider"></li>
|
||||
<li><a href="AnagFasi"><%: traduci("AnagFasi") %></a></li>
|
||||
<li><a href="AnagTags"><%: traduci("AnagTags") %></a></li>
|
||||
<li><a href="AnagSchedeColl"><%: traduci("AnagSchedeColl") %></a></li>
|
||||
<li runat="server" id="li2" class="divider"></li>
|
||||
<li><a href="DettScheda"><%: traduci("DettScheda") %></a></li>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user