Ancora fix grafici (da completare detail...)
This commit is contained in:
@@ -660,6 +660,8 @@
|
||||
<Content Include="WebUserControls\cmp_selPzPallet.ascx" />
|
||||
<Content Include="WebUserControls\cmp_sheetTech.ascx" />
|
||||
<Content Include="WebUserControls\cmp_ST_detail.ascx" />
|
||||
<Content Include="WebUserControls\cmp_ST_objCheck.ascx" />
|
||||
<Content Include="WebUserControls\cmp_ST_objView.ascx" />
|
||||
<Content Include="WebUserControls\mod_checkHttps.ascx" />
|
||||
<Content Include="WebUserControls\mod_commenti.ascx" />
|
||||
<Content Include="WebUserControls\mod_confProd.ascx" />
|
||||
@@ -958,6 +960,20 @@
|
||||
<Compile Include="WebUserControls\cmp_ST_detail.ascx.designer.cs">
|
||||
<DependentUpon>cmp_ST_detail.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_ST_objCheck.ascx.cs">
|
||||
<DependentUpon>cmp_ST_objCheck.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_ST_objCheck.ascx.designer.cs">
|
||||
<DependentUpon>cmp_ST_objCheck.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_ST_objView.ascx.cs">
|
||||
<DependentUpon>cmp_ST_objView.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_ST_objView.ascx.designer.cs">
|
||||
<DependentUpon>cmp_ST_objView.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_checkHttps.ascx.cs">
|
||||
<DependentUpon>mod_checkHttps.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -1,28 +1,45 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_detail.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_detail" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_ST_objView.ascx" TagPrefix="uc1" TagName="cmp_ST_objView" %>
|
||||
|
||||
|
||||
|
||||
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxST,Label,Oggetto" DataSourceID="ods" AllowSorting="True" Width="100%">
|
||||
|
||||
<%--<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxST,Label,Oggetto" DataSourceID="ods" AllowSorting="True" Width="100%">
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Label" SortExpression="Label">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblLabel" runat="server" Text='<%# traduci(Eval("Label")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%--<asp:BoundField DataField="Oggetto" HeaderText="Oggetto" ReadOnly="True" SortExpression="Oggetto" />
|
||||
<asp:BoundField DataField="Num" HeaderText="Num" SortExpression="Num" />--%>
|
||||
<%--<asp:BoundField DataField="CodTipo" HeaderText="CodTipo" SortExpression="CodTipo" />--%>
|
||||
<asp:BoundField DataField="Oggetto" HeaderText="Oggetto" ReadOnly="True" SortExpression="Oggetto" />
|
||||
<asp:BoundField DataField="Num" HeaderText="Num" SortExpression="Num" />
|
||||
<asp:BoundField DataField="CodTipo" HeaderText="CodTipo" SortExpression="CodTipo" />
|
||||
<asp:BoundField DataField="Value" HeaderText="Value" SortExpression="Value" />
|
||||
<%--<asp:BoundField DataField="CheckType" HeaderText="CheckType" SortExpression="CheckType" />--%>
|
||||
<asp:BoundField DataField="CheckType" HeaderText="CheckType" SortExpression="CheckType" />
|
||||
<asp:CheckBoxField DataField="Required" HeaderText="Required" SortExpression="Required" />
|
||||
<asp:BoundField DataField="ExtCode" HeaderText="ExtCode" SortExpression="ExtCode" />
|
||||
<%--<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />--%>
|
||||
<%--<asp:BoundField DataField="DescTipo" HeaderText="DescTipo" SortExpression="DescTipo" />--%>
|
||||
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
|
||||
<asp:BoundField DataField="DescTipo" HeaderText="DescTipo" SortExpression="DescTipo" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<i>rifare con repeater + modulo che traduce oggetto da tipo (testo, input, immagine...)</i><br />
|
||||
<b>completare con interazione campi richiesti!!!</b><br />
|
||||
NB: campi richiesti devono prevedere check con valore in tab specifica istanze ODL
|
||||
</asp:GridView>--%>
|
||||
|
||||
<asp:Repeater ID="repDetail" runat="server" DataSourceID="ods">
|
||||
<ItemTemplate>
|
||||
<div class="table-default">
|
||||
<uc1:cmp_ST_objView runat="server" ID="cmp_ST_objView" dataType='<%# Eval("CodTipo") %>' dataLabel='<%# traduci(Eval("Label")) %>' dataValue='<%# Eval("Value") %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<AlternatingItemTemplate>
|
||||
<div class="table-secondary">
|
||||
<uc1:cmp_ST_objView runat="server" ID="cmp_ST_objView" dataType='<%# Eval("CodTipo") %>' dataLabel='<%# traduci(Eval("Label")) %>' dataValue='<%# Eval("Value") %>' />
|
||||
</div>
|
||||
</AlternatingItemTemplate>
|
||||
</asp:Repeater>
|
||||
|
||||
<div class="text-danger">
|
||||
<b>completare con interazione campi richiesti!!!</b><br />
|
||||
NB: campi richiesti devono prevedere check con valore in tab specifica istanze ODL
|
||||
</div>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByCodArt" TypeName="MapoDb.DS_SheetTechTableAdapters.ST_ActualRowTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfCodGruppo" DefaultValue="ART" Name="CodGruppo" PropertyName="Value" Type="String" />
|
||||
|
||||
+2
-2
@@ -15,13 +15,13 @@ namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// Controllo repDetail.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grView;
|
||||
protected global::System.Web.UI.WebControls.Repeater repDetail;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_objCheck.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_objCheck" %>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
public partial class cmp_ST_objCheck : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_ST_objCheck
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_objView.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_ST_objView" %>
|
||||
|
||||
<asp:HiddenField runat="server" ID="hfType" />
|
||||
<asp:HiddenField runat="server" ID="hfLabel" />
|
||||
<asp:HiddenField runat="server" ID="hfValue" />
|
||||
<div runat="server" id="divTxt" class="row">
|
||||
<div class="col-4 pr-0 text-left">
|
||||
<%: hfLabel.Value %>
|
||||
</div>
|
||||
<div class="col-8 pl-0 text-right font-weight-bold">
|
||||
<%: hfValue.Value %>
|
||||
</div>
|
||||
</div>
|
||||
<div runat="server" id="divImg" class="row">
|
||||
<asp:Image runat="server" ID="imgData" CssClass="img-fluid" ImageUrl='<%: hfValue.Value %>' />
|
||||
</div>
|
||||
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
public partial class cmp_ST_objView : MpTabControl
|
||||
{
|
||||
public string dataType
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfType.Value.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
hfType.Value = value.Trim();
|
||||
}
|
||||
}
|
||||
public string dataLabel
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfLabel.Value.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
hfLabel.Value = value.Trim();
|
||||
}
|
||||
}
|
||||
public string dataValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfValue.Value.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
hfValue.Value = value.Trim();
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
fixDisplay();
|
||||
}
|
||||
|
||||
private void fixDisplay()
|
||||
{
|
||||
divImg.Visible = false;
|
||||
divTxt.Visible = false;
|
||||
switch (dataType)
|
||||
{
|
||||
case "IMG":
|
||||
divImg.Visible = true;
|
||||
break;
|
||||
|
||||
case "TXT":
|
||||
divTxt.Visible = true;
|
||||
break;
|
||||
default:
|
||||
divTxt.Visible = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_ST_objView
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfType.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfType;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfLabel.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfLabel;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfValue.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfValue;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divTxt.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divTxt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divImg.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divImg;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo imgData.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Image imgData;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user