prima versione edit commenti (abilitati)
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
<include path="~/Content/font-awesome.css" />
|
||||
<include path="~/Content/fonts.css" />
|
||||
<include path="~/Content/dichMan.css" />
|
||||
<include path="~/Content/fermate.css" />
|
||||
<include path="~/Content/baseStyle.css" />
|
||||
</styleBundle>
|
||||
<styleBundle path="~/Content/themes/base/css">
|
||||
|
||||
@@ -1,159 +0,0 @@
|
||||
/* First breakpoint is 460px. 2 column layout. Tiles 150x150 pixels at the breakpoint. */
|
||||
@media all and (min-width: 800px) {
|
||||
.elFerm .ui-content {
|
||||
padding: 9px;
|
||||
}
|
||||
.elFerm .ui-listview .ui-li.ui-btn {
|
||||
float: left;
|
||||
width: 47.6%;
|
||||
/* 50% incl. 2 x 1.2% margin */
|
||||
height: 40px;
|
||||
margin: 9px 1.2%;
|
||||
border-width: 0;
|
||||
/* The 1px border would break the layout so we set it on .ui-btn-inner instead. */
|
||||
}
|
||||
/* If you don't want a border at all, just set "border: none;" here to negate the semi white top border */
|
||||
.elFerm .ui-listview .ui-li.ui-btn-inner {
|
||||
border: inherit;
|
||||
border-width: 1px;
|
||||
margin: -1px;
|
||||
}
|
||||
.elFerm .ui-listview .ui-btn-inner,
|
||||
.elFerm .ui-listview .ui-btn-text,
|
||||
.elFerm .ui-listview .ui-link-inherit,
|
||||
.elFerm .ui-listview .ui-li-thumb {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
}
|
||||
.elFerm .ui-listview .ui-link-inherit {
|
||||
padding: 0 !important;
|
||||
position: relative;
|
||||
}
|
||||
/* Inherit the border-radius from the UL that has class .ui-corner-all in case of an inset listview. */
|
||||
.elFerm .ui-listview .ui-li,
|
||||
.elFerm .ui-listview .ui-btn-text,
|
||||
.elFerm .ui-listview .ui-link-inherit,
|
||||
.elFerm .ui-listview .ui-li-thumb {
|
||||
-webkit-border-radius: inherit;
|
||||
border-radius: inherit;
|
||||
}
|
||||
.elFerm .ui-listview .ui-li-thumb {
|
||||
height: auto;
|
||||
/* To keep aspect ratio. */
|
||||
max-width: 100%;
|
||||
max-height: none;
|
||||
margin: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
/* Hide the icon */
|
||||
.elFerm .ui-listview .ui-icon {
|
||||
display: none;
|
||||
}
|
||||
/* Make text wrap. */
|
||||
.elFerm .ui-listview .ui-li-heading,
|
||||
.elFerm .ui-listview .ui-li-desc {
|
||||
font-family: 'Open Sans Condensed', sans-serif;
|
||||
white-space: normal;
|
||||
overflow: visible;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
/* Text position */
|
||||
.elFerm .ui-listview .ui-li-heading {
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
bottom: 40%;
|
||||
}
|
||||
.elFerm .ui-listview .ui-li-desc {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
margin: 0;
|
||||
padding: 0 20px;
|
||||
min-height: 40%;
|
||||
bottom: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
/* Semi transparent background and different position if there is a thumb */
|
||||
.ui-li-dich {
|
||||
background: #111;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
-webkit-background-clip: padding;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
/*
|
||||
.ui-listview .ui-li-has-thumb .ui-li-heading
|
||||
{
|
||||
padding: 10px;
|
||||
bottom: 20%;
|
||||
}
|
||||
*/
|
||||
.ui-li-dich {
|
||||
padding: 0 10px;
|
||||
min-height: 20%;
|
||||
-webkit-border-bottom-left-radius: inherit;
|
||||
border-bottom-left-radius: inherit;
|
||||
-webkit-border-bottom-right-radius: inherit;
|
||||
border-bottom-right-radius: inherit;
|
||||
}
|
||||
/* ui-li-aside has class .ui-li-desc as well so we have to override some things. */
|
||||
.elFerm .ui-listview .ui-li-desc.ui-li-aside {
|
||||
padding: 2px 10px;
|
||||
width: auto;
|
||||
min-height: 0;
|
||||
top: 0;
|
||||
left: auto;
|
||||
bottom: auto;
|
||||
/* Custom styling. */
|
||||
color: #c0c0c0;
|
||||
background: #990099;
|
||||
background: rgba(153, 0, 153, 0.85);
|
||||
-webkit-border-top-right-radius: inherit;
|
||||
border-top-right-radius: inherit;
|
||||
-webkit-border-bottom-left-radius: inherit;
|
||||
border-bottom-left-radius: inherit;
|
||||
-webkit-border-bottom-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
/* If you want to add shadow, don't kill the focus style. */
|
||||
.elFerm .ui-listview .ui-btn:not(.ui-focus) {
|
||||
-moz-box-shadow: 0px 0px 9px #111;
|
||||
-webkit-box-shadow: 0px 0px 9px #111;
|
||||
box-shadow: 0px 0px 9px #111;
|
||||
}
|
||||
/* Images mask the hover bg color so we give desktop users feedback by applying the focus style on hover as well. */
|
||||
.elFerm .ui-listview .ui-btn:hover {
|
||||
-moz-box-shadow: 0px 0px 12px #387bbe;
|
||||
-webkit-box-shadow: 0px 0px 12px #387bbe;
|
||||
box-shadow: 0px 0px 12px #387bbe;
|
||||
}
|
||||
/* Animate focus and hover style, and resizing. */
|
||||
.elFerm .ui-listview .ui-btn {
|
||||
-webkit-transition: all 500ms ease;
|
||||
-moz-transition: all 500ms ease;
|
||||
-o-transition: all 500ms ease;
|
||||
-ms-transition: all 500ms ease;
|
||||
transition: all 500ms ease;
|
||||
}
|
||||
}
|
||||
/* Second breakpoint. 3 column layout. Tiles will be 150x150 pixels again at the breakpoint. */
|
||||
@media all and (min-width: 1300px) {
|
||||
.elFerm .ui-content {
|
||||
padding: 10px;
|
||||
}
|
||||
/* Set a max-width for the last breakpoint to prevent too much stretching on large screens.
|
||||
By setting the max-width equal to the breakpoint width minus padding we keep square tiles. */
|
||||
.elFerm .ui-listview {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
/* Because of the 1000px max-width the width will always be 230px (and margin left/right 10px),
|
||||
but we stick to percentage values for demo purposes. */
|
||||
.elFerm .ui-listview .ui-li.ui-btn {
|
||||
width: 30%;
|
||||
height: 44px;
|
||||
margin: 10px 1%;
|
||||
}
|
||||
}
|
||||
@@ -1,170 +0,0 @@
|
||||
/* First breakpoint is 460px. 2 column layout. Tiles 150x150 pixels at the breakpoint. */
|
||||
@media all and (min-width: 800px)
|
||||
{
|
||||
.elFerm .ui-content
|
||||
{
|
||||
padding: 9px;
|
||||
}
|
||||
.elFerm .ui-listview .ui-li.ui-btn
|
||||
{
|
||||
float: left;
|
||||
width: 47.6%; /* 50% incl. 2 x 1.2% margin */
|
||||
height: 40px;
|
||||
margin: 9px 1.2%;
|
||||
border-width: 0; /* The 1px border would break the layout so we set it on .ui-btn-inner instead. */
|
||||
}
|
||||
/* If you don't want a border at all, just set "border: none;" here to negate the semi white top border */
|
||||
.elFerm .ui-listview .ui-li.ui-btn-inner
|
||||
{
|
||||
border: inherit;
|
||||
border-width: 1px;
|
||||
margin: -1px;
|
||||
}
|
||||
.elFerm .ui-listview .ui-btn-inner, .elFerm .ui-listview .ui-btn-text, .elFerm .ui-listview .ui-link-inherit, .elFerm .ui-listview .ui-li-thumb
|
||||
{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
}
|
||||
.elFerm .ui-listview .ui-link-inherit
|
||||
{
|
||||
padding: 0 !important;
|
||||
position: relative;
|
||||
}
|
||||
/* Inherit the border-radius from the UL that has class .ui-corner-all in case of an inset listview. */
|
||||
.elFerm .ui-listview .ui-li, .elFerm .ui-listview .ui-btn-text, .elFerm .ui-listview .ui-link-inherit, .elFerm .ui-listview .ui-li-thumb
|
||||
{
|
||||
-webkit-border-radius: inherit;
|
||||
border-radius: inherit;
|
||||
}
|
||||
.elFerm .ui-listview .ui-li-thumb
|
||||
{
|
||||
height: auto; /* To keep aspect ratio. */
|
||||
max-width: 100%;
|
||||
max-height: none;
|
||||
margin: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
/* Hide the icon */
|
||||
.elFerm .ui-listview .ui-icon
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
/* Make text wrap. */
|
||||
.elFerm .ui-listview .ui-li-heading, .elFerm .ui-listview .ui-li-desc
|
||||
{
|
||||
font-family: 'Open Sans Condensed' , sans-serif;
|
||||
white-space: normal;
|
||||
overflow: visible;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
/* Text position */
|
||||
.elFerm .ui-listview .ui-li-heading
|
||||
{
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
bottom: 40%;
|
||||
}
|
||||
.elFerm .ui-listview .ui-li-desc
|
||||
{
|
||||
font-family: 'Open Sans' , sans-serif;
|
||||
margin: 0;
|
||||
padding: 0 20px;
|
||||
min-height: 40%;
|
||||
bottom: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
/* Semi transparent background and different position if there is a thumb */
|
||||
.ui-li-dich
|
||||
{
|
||||
background: #111;
|
||||
background: rgba(0,0,0,.8);
|
||||
-webkit-background-clip: padding;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
/*
|
||||
.ui-listview .ui-li-has-thumb .ui-li-heading
|
||||
{
|
||||
padding: 10px;
|
||||
bottom: 20%;
|
||||
}
|
||||
*/
|
||||
.ui-li-dich
|
||||
{
|
||||
padding: 0 10px;
|
||||
min-height: 20%;
|
||||
-webkit-border-bottom-left-radius: inherit;
|
||||
border-bottom-left-radius: inherit;
|
||||
-webkit-border-bottom-right-radius: inherit;
|
||||
border-bottom-right-radius: inherit;
|
||||
}
|
||||
/* ui-li-aside has class .ui-li-desc as well so we have to override some things. */
|
||||
.elFerm .ui-listview .ui-li-desc.ui-li-aside
|
||||
{
|
||||
padding: 2px 10px;
|
||||
width: auto;
|
||||
min-height: 0;
|
||||
top: 0;
|
||||
left: auto;
|
||||
bottom: auto; /* Custom styling. */
|
||||
color: #c0c0c0;
|
||||
background: #990099;
|
||||
background: rgba(153,0,153,.85);
|
||||
-webkit-border-top-right-radius: inherit;
|
||||
border-top-right-radius: inherit;
|
||||
-webkit-border-bottom-left-radius: inherit;
|
||||
border-bottom-left-radius: inherit;
|
||||
-webkit-border-bottom-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
/* If you want to add shadow, don't kill the focus style. */
|
||||
.elFerm .ui-listview .ui-btn:not(.ui-focus)
|
||||
{
|
||||
-moz-box-shadow: 0px 0px 9px #111;
|
||||
-webkit-box-shadow: 0px 0px 9px #111;
|
||||
box-shadow: 0px 0px 9px #111;
|
||||
}
|
||||
/* Images mask the hover bg color so we give desktop users feedback by applying the focus style on hover as well. */
|
||||
.elFerm .ui-listview .ui-btn:hover
|
||||
{
|
||||
-moz-box-shadow: 0px 0px 12px #387bbe;
|
||||
-webkit-box-shadow: 0px 0px 12px #387bbe;
|
||||
box-shadow: 0px 0px 12px #387bbe;
|
||||
}
|
||||
/* Animate focus and hover style, and resizing. */
|
||||
.elFerm .ui-listview .ui-btn
|
||||
{
|
||||
-webkit-transition: all 500ms ease;
|
||||
-moz-transition: all 500ms ease;
|
||||
-o-transition: all 500ms ease;
|
||||
-ms-transition: all 500ms ease;
|
||||
transition: all 500ms ease;
|
||||
}
|
||||
}
|
||||
/* Second breakpoint. 3 column layout. Tiles will be 150x150 pixels again at the breakpoint. */
|
||||
@media all and (min-width: 1300px)
|
||||
{
|
||||
.elFerm .ui-content
|
||||
{
|
||||
padding: 10px;
|
||||
}
|
||||
/* Set a max-width for the last breakpoint to prevent too much stretching on large screens.
|
||||
By setting the max-width equal to the breakpoint width minus padding we keep square tiles. */
|
||||
.elFerm .ui-listview
|
||||
{
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
/* Because of the 1000px max-width the width will always be 230px (and margin left/right 10px),
|
||||
but we stick to percentage values for demo purposes. */
|
||||
.elFerm .ui-listview .ui-li.ui-btn
|
||||
{
|
||||
width: 30%;
|
||||
height: 44px;
|
||||
margin: 10px 1%;
|
||||
}
|
||||
}
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
@media all and (min-width:800px){.elFerm .ui-content{padding:9px;}.elFerm .ui-listview .ui-li.ui-btn{float:left;width:47.6%;height:40px;margin:9px 1.2%;border-width:0;}.elFerm .ui-listview .ui-li.ui-btn-inner{border:inherit;border-width:1px;margin:-1px;}.elFerm .ui-listview .ui-btn-inner,.elFerm .ui-listview .ui-btn-text,.elFerm .ui-listview .ui-link-inherit,.elFerm .ui-listview .ui-li-thumb{width:100%;height:100%;display:block;overflow:hidden;}.elFerm .ui-listview .ui-link-inherit{padding:0 !important;position:relative;}.elFerm .ui-listview .ui-li,.elFerm .ui-listview .ui-btn-text,.elFerm .ui-listview .ui-link-inherit,.elFerm .ui-listview .ui-li-thumb{-webkit-border-radius:inherit;border-radius:inherit;}.elFerm .ui-listview .ui-li-thumb{height:auto;max-width:100%;max-height:none;margin:0;left:0;z-index:-1;}.elFerm .ui-listview .ui-icon{display:none;}.elFerm .ui-listview .ui-li-heading,.elFerm .ui-listview .ui-li-desc{font-family:'Open Sans Condensed',sans-serif;white-space:normal;overflow:visible;position:absolute;left:0;right:0;}.elFerm .ui-listview .ui-li-heading{margin:0;padding:20px;bottom:40%;}.elFerm .ui-listview .ui-li-desc{font-family:'Open Sans',sans-serif;margin:0;padding:0 20px;min-height:40%;bottom:0;line-height:1.5;}.ui-li-dich{background:#111;background:rgba(0,0,0,.8);-webkit-background-clip:padding;background-clip:padding-box;}.ui-li-dich{padding:0 10px;min-height:20%;-webkit-border-bottom-left-radius:inherit;border-bottom-left-radius:inherit;-webkit-border-bottom-right-radius:inherit;border-bottom-right-radius:inherit;}.elFerm .ui-listview .ui-li-desc.ui-li-aside{padding:2px 10px;width:auto;min-height:0;top:0;left:auto;bottom:auto;color:#c0c0c0;background:#909;background:rgba(153,0,153,.85);-webkit-border-top-right-radius:inherit;border-top-right-radius:inherit;-webkit-border-bottom-left-radius:inherit;border-bottom-left-radius:inherit;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;}.elFerm .ui-listview .ui-btn:not(.ui-focus){-moz-box-shadow:0 0 9px #111;-webkit-box-shadow:0 0 9px #111;box-shadow:0 0 9px #111;}.elFerm .ui-listview .ui-btn:hover{-moz-box-shadow:0 0 12px #387bbe;-webkit-box-shadow:0 0 12px #387bbe;box-shadow:0 0 12px #387bbe;}.elFerm .ui-listview .ui-btn{-webkit-transition:all 500ms ease;-moz-transition:all 500ms ease;-o-transition:all 500ms ease;-ms-transition:all 500ms ease;transition:all 500ms ease;}}@media all and (min-width:1300px){.elFerm .ui-content{padding:10px;}.elFerm .ui-listview{max-width:800px;margin:0 auto;}.elFerm .ui-listview .ui-li.ui-btn{width:30%;height:44px;margin:10px 1%;}}
|
||||
@@ -164,12 +164,6 @@
|
||||
<Content Include="Content\dichMan.min.css">
|
||||
<DependentUpon>dichMan.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\fermate.css">
|
||||
<DependentUpon>fermate.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\fermate.min.css">
|
||||
<DependentUpon>fermate.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\fonts.css">
|
||||
<DependentUpon>fonts.less</DependentUpon>
|
||||
</Content>
|
||||
@@ -292,7 +286,6 @@
|
||||
<Content Include="Content\OpenSans.woff" />
|
||||
<Content Include="Content\OpenSansCondensed.woff" />
|
||||
<Content Include="Content\fonts.less" />
|
||||
<Content Include="Content\fermate.less" />
|
||||
<Content Include="Content\dichMan.less" />
|
||||
<Content Include="compilerconfig.json" />
|
||||
<None Include="compilerconfig.json.defaults" />
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<add key="cookieDayExpire" value="3650" />
|
||||
<!--conf commenti e ricalcoli-->
|
||||
<add key="idxTipoCommento" value="999" />
|
||||
<add key="commEnableEditDel" value="false" />
|
||||
<add key="commEnableEditDel" value="true" />
|
||||
<add key="minAnticipoRicalcolo" value="-2" />
|
||||
<add key="dltMinRealtime" value="5" />
|
||||
<add key="rdm_nEvStep" value="100" />
|
||||
|
||||
@@ -1,52 +1,54 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_commenti.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_commenti" %>
|
||||
|
||||
|
||||
<div data-role="content">
|
||||
<asp:Label runat="server" ID="lblNumGG" Text="Commenti da mostrare" AssociatedControlID="rblPageSize" />
|
||||
<fieldset data-role="controlgroup" data-type="horizontal">
|
||||
<asp:RadioButtonList ID="rblPageSize" runat="server" RepeatDirection="Horizontal" AutoPostBack="true">
|
||||
<asp:ListItem Text="5" Value="5" Selected="True" />
|
||||
<asp:ListItem Text="10" Value="10" />
|
||||
<asp:ListItem Text="25" Value="25" />
|
||||
<asp:ListItem Text="50" Value="50" />
|
||||
</asp:RadioButtonList>
|
||||
</fieldset>
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<asp:Repeater ID="repComm" runat="server" DataSourceID="odsComm">
|
||||
<ItemTemplate>
|
||||
<li>
|
||||
<div class="divSx">
|
||||
<asp:ImageButton runat="server" ID="btnEdit" ImageUrl="~/images/edit_l.png" CommandArgument='<%# Eval("InizioStato") %>' OnClick="btnEdit_Click" Visible='<%# enableEdit %>' />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<asp:ImageButton runat="server" ID="btnDel" ImageUrl="~/images/elimina_l.png" CommandArgument='<%# Eval("InizioStato") %>' OnClick="btnDel_Click" Visible='<%# enableEdit %>' />
|
||||
</div>
|
||||
<div style="font-size: smaller;">
|
||||
<div>
|
||||
<div class="divSx" style="font-size: x-small;">
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Operatore", "<b>{0}</b>") %>' ForeColor="#ACACAC" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Value") %>' Font-Bold="false" />
|
||||
</div>
|
||||
<div class="clearDiv" style="font-size: xx-small; border-top: 1px solid #ACACAC; color: #ACACAC">
|
||||
<div class="divSx">
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# Eval("InizioStato", "{0:dd/MM/yyyy HH:mm:ss}") %>' Font-Bold="false" />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<asp:Label runat="server" ID="Label1" Text='<%# Eval("CodArticolo") %>' Font-Bold="false" />
|
||||
<asp:Label runat="server" ID="Label2" Text='<%# Eval("idxODL","ODL{0}") %>' Font-Bold="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearDiv"></div>
|
||||
</li>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
</ul>
|
||||
<asp:Label runat="server" ID="lblNumGG" Text="# Commenti" AssociatedControlID="rblPageSize" />
|
||||
<asp:RadioButtonList ID="rblPageSize" runat="server" RepeatDirection="Horizontal" AutoPostBack="true" CssClass="p-0">
|
||||
<asp:ListItem class="p-1 btn btn-primary" Text="5" Value="5" Selected="True" />
|
||||
<asp:ListItem class="p-1 btn btn-primary" Text="10" Value="10" />
|
||||
<asp:ListItem class="p-1 btn btn-primary" Text="25" Value="25" />
|
||||
<asp:ListItem class="p-1 btn btn-primary" Text="50" Value="50" />
|
||||
</asp:RadioButtonList>
|
||||
|
||||
<div class="d-flex flex-wrap">
|
||||
<asp:Repeater ID="repComm" runat="server" DataSourceID="odsComm">
|
||||
<ItemTemplate>
|
||||
<div class="my-1 ml-0 mr-1 p-0">
|
||||
<div class="card text-white dichBlock rCAll" style="min-width: 10rem;">
|
||||
<div class='card-title py-0 px-2 mb-0 rCTop bg-dark '>
|
||||
<b style="font-size: 1.1em;">
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Operatore", "<b>{0}</b>") %>' />
|
||||
</b>
|
||||
</div>
|
||||
<div class="card-text p-1 d-flex align-items-end">
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Value") %>' Font-Bold="false" />
|
||||
</div>
|
||||
<div class="card-text p-1 d-flex align-items-end">
|
||||
<div class="labelBottom text-left p-0">
|
||||
<asp:LinkButton runat="server" ID="lbtEdit" CommandArgument='<%# Eval("InizioStato") %>' OnClick="lbtEdit_Click" Visible='<%# enableEdit %>' CssClass="btn btn-sm btn-primary"><i class="fa fa-2x fa-edit"></i></asp:LinkButton>
|
||||
</div>
|
||||
<div class="labelBottom text-right p-0">
|
||||
<asp:LinkButton runat="server" ID="lbtDel" CommandArgument='<%# Eval("InizioStato") %>' OnClick="lbtDel_Click" Visible='<%# enableEdit %>' CssClass="btn btn-sm btn-danger"><i class="fa fa-2x fa-trash"></i></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-text p-1 d-flex align-items-end rCBot" style="font-size: 0.8em; border-top: 1px solid #ACACAC; color: #ACACAC">
|
||||
<div class="labelBottom text-left p-0">
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# Eval("InizioStato", "{0:dd/MM/yyyy HH:mm:ss}") %>' Font-Bold="false" />
|
||||
</div>
|
||||
<div class="labelBottom text-right p-0">
|
||||
<asp:Label runat="server" ID="Label1" Text='<%# Eval("CodArticolo") %>' Font-Bold="false" />
|
||||
<asp:Label runat="server" ID="Label2" Text='<%# Eval("idxODL","ODL{0}") %>' Font-Bold="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
<asp:ObjectDataSource ID="odsComm" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_UtilityTableAdapters.CommentiTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="0" Name="IdxMacchina" SessionField="idxMacchina" Type="String" />
|
||||
<asp:ControlParameter ControlID="rblPageSize" DefaultValue="10" Name="showMax" PropertyName="SelectedValue" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="0" Name="IdxMacchina" SessionField="idxMacchina" Type="String" />
|
||||
<asp:ControlParameter ControlID="rblPageSize" DefaultValue="10" Name="showMax" PropertyName="SelectedValue" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,75 +6,61 @@ using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
public partial class mod_commenti : System.Web.UI.UserControl
|
||||
public partial class mod_commenti : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// registrata richiesta
|
||||
/// </summary>
|
||||
public event EventHandler eh_reqEdit;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
/// <summary>
|
||||
/// registrata richiesta
|
||||
/// </summary>
|
||||
public event EventHandler eh_reqEdit;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// abilitazione edit commenti
|
||||
/// </summary>
|
||||
public bool enableEdit
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadBool("commEnableEditDel");
|
||||
}
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
repComm.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// carico x edit commento
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnEdit_Click(object sender, ImageClickEventArgs e)
|
||||
{
|
||||
ImageButton imgBtn = (ImageButton)sender;
|
||||
DateTime inizioStato = Convert.ToDateTime(imgBtn.CommandArgument);
|
||||
memLayer.ML.setSessionVal("inizioStato", inizioStato);
|
||||
// sollevo evento!
|
||||
if (eh_reqEdit != null)
|
||||
{
|
||||
eh_reqEdit(this, new EventArgs());
|
||||
}
|
||||
|
||||
|
||||
//string idxMacchina = memLayer.ML.StringSessionObj("idxMacchina");
|
||||
//DS_applicazione.EventListRow riga = null;
|
||||
//try
|
||||
//{
|
||||
// riga = DataLayer.obj.taEventi.GetByMacchinaPeriodo(idxMacchina, inizioStato, inizioStato)[0];
|
||||
//txtDate.Text = riga.InizioStato.ToString("yyyy-MM-dd");
|
||||
//txtTime.Text = riga.InizioStato.ToString("HH:mm");
|
||||
//txtCommento.Text = riga.Value;
|
||||
//}
|
||||
//catch
|
||||
//{ }
|
||||
//fixPanels(false, true, false);
|
||||
}
|
||||
/// <summary>
|
||||
/// elimina commento
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnDel_Click(object sender, ImageClickEventArgs e)
|
||||
{
|
||||
ImageButton imgBtn = (ImageButton)sender;
|
||||
DateTime inizioStato = Convert.ToDateTime(imgBtn.CommandArgument);
|
||||
string idxMacchina = memLayer.ML.StringSessionObj("idxMacchina");
|
||||
DataLayer.obj.taEventi.DeleteQuery(idxMacchina, inizioStato);
|
||||
doUpdate();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// abilitazione edit commenti
|
||||
/// </summary>
|
||||
public bool enableEdit
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadBool("commEnableEditDel");
|
||||
}
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
repComm.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// carico x edit commento
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
LinkButton imgBtn = (LinkButton)sender;
|
||||
DateTime inizioStato = Convert.ToDateTime(imgBtn.CommandArgument);
|
||||
memLayer.ML.setSessionVal("inizioStato", inizioStato);
|
||||
// sollevo evento!
|
||||
if (eh_reqEdit != null)
|
||||
{
|
||||
eh_reqEdit(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// elimina commento
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
LinkButton imgBtn = (LinkButton)sender;
|
||||
DateTime inizioStato = Convert.ToDateTime(imgBtn.CommandArgument);
|
||||
string idxMacchina = memLayer.ML.StringSessionObj("idxMacchina");
|
||||
DataLayer.obj.taEventi.DeleteQuery(idxMacchina, inizioStato);
|
||||
doUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
-21
@@ -1,51 +1,50 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
namespace MoonProTablet.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_commenti {
|
||||
|
||||
/// <summary>
|
||||
/// lblNumGG control.
|
||||
/// Controllo lblNumGG.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.Label lblNumGG;
|
||||
|
||||
/// <summary>
|
||||
/// rblPageSize control.
|
||||
/// Controllo rblPageSize.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.RadioButtonList rblPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// repComm control.
|
||||
/// Controllo repComm.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.Repeater repComm;
|
||||
|
||||
/// <summary>
|
||||
/// odsComm control.
|
||||
/// Controllo odsComm.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.ObjectDataSource odsComm;
|
||||
}
|
||||
|
||||
@@ -39,16 +39,17 @@
|
||||
<ItemTemplate>
|
||||
<div class="my-1 ml-0 mr-1 p-0">
|
||||
<asp:LinkButton runat="server" ID="btnEdit" CommandArgument='<%# Eval("InizioStato") %>' OnClick="btnEdit_Click">
|
||||
<div class="card text-white dichBlock rCAll" style="min-width: 10rem;">
|
||||
<div class="card text-white dichBlock rCAll" style="min-width: 9rem;">
|
||||
<div class='card-title p-2 mb-0 rCTop <%# Eval("Semaforo") %>'>
|
||||
<h4>
|
||||
<asp:Label ID="lblStato" runat="server" Text='<%# Eval("Stato", "<b>{0}</b>") %>' /></h4>
|
||||
<h6 class="text-right ml-auto">
|
||||
<b style="font-size: 1.3em;">
|
||||
<asp:Label ID="lblStato" runat="server" Text='<%# Eval("Stato", "<b>{0}</b>") %>' />
|
||||
</b>
|
||||
<div class="text-right ml-auto" style="font-size: 1.1em;">
|
||||
<asp:Label runat="server" ID="lblCodArticolo" Text='<%# Eval("CodArticolo") %>' />
|
||||
</h6>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-text p-0 d-flex align-items-end rCBot">
|
||||
<div class="labelBottom text-left p-2">
|
||||
<div class="card-text p-0 d-flex align-items-end rCBot" style="font-size: 0.8em;">
|
||||
<div class="labelBottom text-left p-1">
|
||||
<asp:Label ID="lblInizioStato" runat="server" Text='<%# Eval("InizioStato", "{0:dd/MM/yyyy HH:mm}") %>' />
|
||||
</div>
|
||||
<div class="labelBottom text-right p-1">
|
||||
@@ -56,11 +57,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
<asp:ObjectDataSource ID="odsFerm" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_UtilityTableAdapters.FermiNonQualTableAdapter">
|
||||
</asp:LinkButton></div></ItemTemplate></asp:Repeater><asp:ObjectDataSource ID="odsFerm" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_UtilityTableAdapters.FermiNonQualTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="0" Name="IdxMacchina" SessionField="idxMacchina" Type="String" />
|
||||
<asp:ControlParameter ControlID="ddlPrevDays" DefaultValue="3" Name="gg" PropertyName="SelectedValue" Type="Int32" />
|
||||
|
||||
Reference in New Issue
Block a user