Merge branch 'feature/PianoProd' into develop

This commit is contained in:
Samuele Locatelli
2021-04-19 19:22:46 +02:00
9 changed files with 359 additions and 340 deletions
+4 -4
View File
@@ -110,8 +110,8 @@ body .ui-overlay-c {
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
-webkit-transition: 0.4s;
transition: 0.4s;
}
.slider:before {
position: absolute;
@@ -121,8 +121,8 @@ body .ui-overlay-c {
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
-webkit-transition: 0.4s;
transition: 0.4s;
}
input:checked + .slider {
background-color: #2196F3;
+131 -139
View File
@@ -1,142 +1,137 @@
/* Gestione blocchi base */
body {
font-family: 'Open Sans', sans-serif;
color: #FFF;
background-image: linear-gradient(#444, #222);
font-family: 'Open Sans', sans-serif;
color: #FFF;
background-image: linear-gradient(#444, #222);
}
body .ui-body-a, body .ui-body-c, body .ui-overlay-c {
body .ui-body-a, body .ui-body-c, body .ui-overlay-c {
text-shadow: 0 0 0;
}
}
.bodyDark {
color: #FFF;
background-image: linear-gradient(#444, #222);
color: #FFF;
background-image: linear-gradient(#444, #222);
}
.bg-black {
color: #FFF;
background-image: linear-gradient(#111, #000);
color: #FFF;
background-image: linear-gradient(#111, #000);
}
.titleBlock {
font-family: 'Open Sans Condensed', sans-serif;
font-family: 'Open Sans Condensed', sans-serif;
}
.textCondens {
font-family: 'Open Sans Condensed', sans-serif;
font-family: 'Open Sans Condensed', sans-serif;
}
.mapBlock {
font-family: 'Open Sans Condensed', sans-serif;
color: #FFF;
background-image: linear-gradient(#111, #000);
/*box-shadow: 15px 15px 20px 0 rgba(150, 150, 150, 0.2), 10px 10px 20px 0 rgba(200, 200, 200, 0.39);*/
/*min-height: 15em;*/
min-width: 8em;
font-family: 'Open Sans Condensed', sans-serif;
color: #FFF;
background-image: linear-gradient(#111, #000);
/*box-shadow: 15px 15px 20px 0 rgba(150, 150, 150, 0.2), 10px 10px 20px 0 rgba(200, 200, 200, 0.39);*/
/*min-height: 15em;*/
min-width: 8em;
}
/* QR CODE*/
.rCAll {
border-radius: 10px;
border-radius: 10px;
}
.rCTop {
border-radius: 10px 10px 0 0;
border-radius: 10px 10px 0 0;
}
.rCBot {
border-radius: 0 0 10px 10px;
border-radius: 0 0 10px 10px;
}
.labelTopDx {
padding: 0.1em 0.4em;
width: auto;
min-height: 0;
top: 0;
left: auto;
bottom: auto; /* Custom styling. */
color: #c0c0c0;
background: #990099;
background: rgba(153,0,153,.80);
-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;
padding: 0.1em 0.4em;
width: auto;
min-height: 0;
top: 0;
left: auto;
bottom: auto; /* Custom styling. */
color: #c0c0c0;
background: #990099;
background: rgba(153,0,153,.80);
-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;
}
/* END: gestione blocchi base */
/* ----------- gestione sidenav ----------- */
@media (max-width: 576px) {
.modal-dialog.modal-dialog-slideout {
width: 70%
}
.modal-dialog.modal-dialog-slideout {
width: 70%
}
}
@media (max-width: 600px) {
.modal-dialog.modal-dialog-slideout {
width: 65%
}
.modal-dialog.modal-dialog-slideout {
width: 65%
}
}
.modal-dialog-slideout {
min-height: 100%;
margin: 0 auto 0 0;
background: #fff;
min-height: 100%;
margin: 0 auto 0 0;
background: #fff;
}
.modal.fade .modal-dialog.modal-dialog-slideout {
-webkit-transform: translate(-100%,0);
transform: translate(-100%,0);
-webkit-transform: translate(-100%,0);
transform: translate(-100%,0);
}
.modal.fade.show .modal-dialog.modal-dialog-slideout {
-webkit-transform: translate(0,0);
transform: translate(0,0);
flex-flow: column;
-webkit-transform: translate(0,0);
transform: translate(0,0);
flex-flow: column;
}
.modal-dialog-slideout .modal-content {
border: 0;
border: 0;
}
/* ----------- END SideNav ----------- */
/* Gestione switch*/
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
/* Hide default HTML checkbox */
.switch input {
/* Hide default HTML checkbox */
.switch input {
display: none;
}
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
.slider:before {
position: absolute;
content: "";
height: 26px;
@@ -146,129 +141,126 @@ body {
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
}
input:checked + .slider {
background-color: #2196F3;
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
border-radius: 34px;
}
.slider.round:before {
.slider.round:before {
border-radius: 50%;
}
}
/* zona blocchi Sx/DX */
.divSx {
float: left;
padding: 0;
margin: 0;
float: left;
padding: 0;
margin: 0;
}
.divDx {
float: right;
padding: 0;
margin: 0;
float: right;
padding: 0;
margin: 0;
}
.divCenter {
float: none;
text-align: center;
padding: 0;
margin: 0 auto 0 auto;
float: none;
text-align: center;
padding: 0;
margin: 0 auto 0 auto;
}
.clearDiv {
clear: both;
clear: both;
}
.stdFont {
color: Black;
text-shadow: 0 0px 0 #111;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
color: Black;
text-shadow: 0 0px 0 #111;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
/* @end */
/* classi x controlli tabellari */
.rowStyle {
/*background-color: #DEE2EA;*/
background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 ));
background-image: -webkit-linear-gradient( #fff,#f1f1f1 );
background-image: -moz-linear-gradient( #fff,#f1f1f1 );
background-image: -ms-linear-gradient( #fff,#f1f1f1 );
background-image: -o-linear-gradient( #fff,#f1f1f1 );
background-image: linear-gradient( #fff,#f1f1f1 );
border: 1px solid #CDCDCD;
/*background-color: #DEE2EA;*/
background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 ));
background-image: -webkit-linear-gradient( #fff,#f1f1f1 );
background-image: -moz-linear-gradient( #fff,#f1f1f1 );
background-image: -ms-linear-gradient( #fff,#f1f1f1 );
background-image: -o-linear-gradient( #fff,#f1f1f1 );
background-image: linear-gradient( #fff,#f1f1f1 );
border: 1px solid #CDCDCD;
}
.alternatingRowStyle {
/*background-color: White;*/
border: 1px solid #CDCDCD;
background-image: -webkit-gradient(linear,left top,left bottom,from( #ddf ),to( #e1f1ff ));
background-image: -webkit-linear-gradient( #ddf,#e1f1ff );
background-image: -moz-linear-gradient( #ddf,#e1f1ff );
background-image: -ms-linear-gradient( #ddf,#e1f1ff );
background-image: -o-linear-gradient( #ddf,#e1f1ff );
background-image: linear-gradient( #ddf,#e1f1ff );
/*background-color: White;*/
border: 1px solid #CDCDCD;
background-image: -webkit-gradient(linear,left top,left bottom,from( #ddf ),to( #e1f1ff ));
background-image: -webkit-linear-gradient( #ddf,#e1f1ff );
background-image: -moz-linear-gradient( #ddf,#e1f1ff );
background-image: -ms-linear-gradient( #ddf,#e1f1ff );
background-image: -o-linear-gradient( #ddf,#e1f1ff );
background-image: linear-gradient( #ddf,#e1f1ff );
}
/* END classi x controlli tabellari*/
/* area semafori*/
.sVe {
text-align: left;
background: #009036;
background: rgba(0,255,80,.6);
/*padding: 0px 4px 0px 4px;*/
color: Yellow;
text-align: left;
background: #009036;
background: rgba(0,255,80,.6);
/*padding: 0px 4px 0px 4px;*/
color: Yellow;
}
.sGi {
text-align: left;
background: #ffec00;
background: rgba(255,220,0,.6);
/*padding: 0px 4px 0px 4px;*/
text-align: left;
background: #ffec00;
background: rgba(255,220,0,.6);
/*padding: 0px 4px 0px 4px;*/
}
.sRo {
text-align: left;
background-color: #e2001a;
background: rgba(240,0,10,.6);
/*padding: 0px 4px 0px 4px;*/
text-align: left;
background-color: #e2001a;
background: rgba(240,0,10,.6);
/*padding: 0px 4px 0px 4px;*/
}
.sBl {
text-align: left;
background: #3690FF;
background: rgba(0,80,255,.6);
/*padding: 0px 4px 0px 4px;*/
color: Yellow;
text-align: left;
background: #3690FF;
background: rgba(0,80,255,.6);
/*padding: 0px 4px 0px 4px;*/
color: Yellow;
}
.sGr {
text-align: left;
background-color: #bcbcbc;
background: rgba(180,180,180,.6);
/*padding: 0px 4px 0px 4px;*/
text-align: left;
background-color: #bcbcbc;
background: rgba(180,180,180,.6);
/*padding: 0px 4px 0px 4px;*/
}
/*end semafori */
/*end semafori */
+18 -15
View File
@@ -1,28 +1,31 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Bootstrap.Master" AutoEventWireup="true" CodeBehind="PianoProd.aspx.cs" Inherits="MoonProTablet.PianoProd" %>
<%@ Register Src="~/WebUserControls/mod_directLinks.ascx" TagPrefix="uc1" TagName="mod_directLinks" %>
<%@ Register Src="~/WebUserControls/mod_dettMacchina.ascx" TagName="mod_dettMacchina" TagPrefix="uc6" %>
<%@ Register Src="~/WebUserControls/mod_pianoProdMacc.ascx" TagPrefix="uc1" TagName="mod_pianoProdMacc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="container-flow m-3" role="main">
<div class="row">
<div class="col-12 col-md-8 col-lg-9 col-xl-10">
<uc6:mod_dettMacchina ID="mod_dettMacchina1" runat="server" />
<style type="text/css" media="print">
.dontPrint {
display: none;
}
</style>
<div class="container-flow m-3" role="main">
<div class="row">
<div class="col-12">
<uc1:mod_pianoProdMacc runat="server" ID="mod_pianoProdMacc" />
</div>
<div class="col-12 col-md-8 col-lg-9 col-xl-10">
<uc6:mod_dettMacchina ID="mod_dettMacchina1" runat="server" />
<div class="row">
<div class="col-12">
<uc1:mod_pianoProdMacc runat="server" ID="mod_pianoProdMacc" />
</div>
</div>
</div>
<div class="col-12 col-md-4 col-lg-3 col-xl-2 dontPrint">
<uc1:mod_directLinks runat="server" ID="mod_directLinks" />
</div>
</div>
</div>
<div class="col-12 col-md-4 col-lg-3 col-xl-2">
<uc1:mod_directLinks runat="server" ID="mod_directLinks" />
</div>
</div>
</div>
</asp:Content>
</asp:Content>
+23 -21
View File
@@ -1,41 +1,43 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MoonProTablet {
public partial class PianoProd {
namespace MoonProTablet
{
public partial class PianoProd
{
/// <summary>
/// Controllo mod_dettMacchina1.
/// mod_dettMacchina1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::MoonProTablet.WebUserControls.mod_dettMacchina mod_dettMacchina1;
/// <summary>
/// Controllo mod_pianoProdMacc.
/// mod_pianoProdMacc control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::MoonProTablet.WebUserControls.mod_pianoProdMacc mod_pianoProdMacc;
/// <summary>
/// Controllo mod_directLinks.
/// mod_directLinks control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::MoonProTablet.WebUserControls.mod_directLinks mod_directLinks;
}
+13 -13
View File
@@ -1,17 +1,17 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_directLinks.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_directLinks" %>
<div class="list-group textCondens">
<asp:Label runat="server" ID="lblHead" class="list-group-item list-group-item-action bg-dark text-light">
<asp:Label runat="server" ID="lblHead" class="list-group-item list-group-item-action bg-dark text-light">
<i class="fa fa-map-marker"></i> LINK DIRETTI
</asp:Label>
<asp:Repeater ID="repLI" runat="server" DataSourceID="ods">
<ItemTemplate>
<asp:HyperLink runat="server" ID="btnMenuItem" CssClass='<%# cssPage(Eval("NavigateUrl")) %>' NavigateUrl='<%# Eval("NavigateUrl") %>'><i class="fa fa-angle-double-right" aria-hidden="true"></i> <b><i class='fa fa-lg <%# Eval("icona") %>'></i> <%# Eval("Testo") %></b></asp:HyperLink>
</ItemTemplate>
</asp:Repeater>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByTipo" TypeName="MapoDb.DS_applicazioneTableAdapters.LinkMenuJQMTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="-" Name="TipoLink" SessionField="TipoLink" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</asp:Label>
<asp:Repeater ID="repLI" runat="server" DataSourceID="ods">
<ItemTemplate>
<asp:HyperLink runat="server" ID="btnMenuItem" CssClass='<%# cssPage(Eval("NavigateUrl")) %>' NavigateUrl='<%# Eval("NavigateUrl") %>'><i class="fa fa-angle-double-right" aria-hidden="true"></i> <b><i class='fa fa-lg <%# Eval("icona") %>'></i> <%# Eval("Testo") %></b></asp:HyperLink>
</ItemTemplate>
</asp:Repeater>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByTipo" TypeName="MapoDb.DS_applicazioneTableAdapters.LinkMenuJQMTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="-" Name="TipoLink" SessionField="TipoLink" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
+23 -21
View File
@@ -1,41 +1,43 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MoonProTablet.WebUserControls {
public partial class mod_directLinks {
namespace MoonProTablet.WebUserControls
{
public partial class mod_directLinks
{
/// <summary>
/// Controllo lblHead.
/// lblHead control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblHead;
/// <summary>
/// Controllo repLI.
/// repLI control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Repeater repLI;
/// <summary>
/// Controllo ods.
/// ods control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
}
+98 -94
View File
@@ -1,98 +1,102 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_pianoProdMacc.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_pianoProdMacc" %>
<div class="text-center small">
<div class="text-center small1">
<h3>Previsione P-ODL</h3>
<div class="row">
<div class="col-12" runat="server" id="divSelMacc">
<asp:DropDownList runat="server" ID="ddlSubMacc" DataSourceID="odsMacc" CssClass="form-control" DataTextField="CodMaccArticolo" DataValueField="IdxMacchina" AutoPostBack="True" OnSelectedIndexChanged="ddlSubMacc_SelectedIndexChanged" OnDataBound="ddlSubMacc_DataBound"></asp:DropDownList>
<asp:ObjectDataSource runat="server" ID="odsMacc" OldValuesParameterFormatString="original_{0}" SelectMethod="getMulti" TypeName="MapoDb.DS_applicazioneTableAdapters.MSFDTableAdapter" FilterExpression="idxMacchina LIKE '%#%'">
<SelectParameters>
<asp:SessionParameter DefaultValue="0" Name="IdxMacchina" SessionField="IdxMacchina" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<h3>Previsione P-ODL</h3>
<div class="row">
<div class="col-12" runat="server" id="divSelMacc">
<asp:DropDownList runat="server" ID="ddlSubMacc" DataSourceID="odsMacc" CssClass="form-control" DataTextField="CodMaccArticolo" DataValueField="IdxMacchina" AutoPostBack="True" OnSelectedIndexChanged="ddlSubMacc_SelectedIndexChanged" OnDataBound="ddlSubMacc_DataBound"></asp:DropDownList>
<asp:ObjectDataSource runat="server" ID="odsMacc" OldValuesParameterFormatString="original_{0}" SelectMethod="getMulti" TypeName="MapoDb.DS_applicazioneTableAdapters.MSFDTableAdapter" FilterExpression="idxMacchina LIKE '%#%'">
<SelectParameters>
<asp:SessionParameter DefaultValue="0" Name="IdxMacchina" SessionField="IdxMacchina" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
<div class="col-6">
<asp:CheckBox runat="server" ID="chkOnlyMacc" Text="Solo assegnazione diretta" Checked="true" AutoPostBack="true" />
</div>
<div class="col-6">
<asp:CheckBox runat="server" ID="chkShowAll" Text="Mostra tutti" Checked="false" AutoPostBack="true" OnCheckedChanged="chkShowAll_CheckedChanged" />
</div>
</div>
</div>
<asp:CheckBox runat="server" ID="chkOnlyMacc" Text="Solo assegnazione diretta" Checked="true" AutoPostBack="true" />
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="idxPromessa" DataSourceID="ods" AllowPaging="true" CssClass="table table-dark table-striped small">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
<SelectedRowStyle CssClass="ctrSelRowStyle" />
<FooterStyle CssClass="ctrFooter" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
<EmptyDataRowStyle CssClass="ctrRowStyle" />
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text="Nessun record trovato" />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField HeaderText="Data" SortExpression="DueDate">
<ItemTemplate>
<div class="row">
<div class="col-12 text-nowrap">
<%# Eval("DueDate","{0:dd.MM.yy}") %>
<br />
[<%# Eval("IdxPromessa") %>]
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Articolo" SortExpression="CodArticolo">
<ItemTemplate>
<div class="row small">
<div class="col-6 text-left">
<b>
<asp:Label runat="server" ID="txtCodArticolo" Text='<%# Eval("CodArticolo") %>' /></b>
</div>
<div class="col-6 text-right text-nowrap">
<asp:Label runat="server" ID="Label1" Text='<%# Eval("KeyRichiesta") %>' />
</div>
<div class="col-12 text-center small">
<asp:Label runat="server" ID="txtDescArticolo" CssClass="text-warning" Text='<%# Eval("DescArticolo") %>' />
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Macchina" SortExpression="CodMacchina">
<ItemTemplate>
<div class="row">
<div class="col-12 text-nowrap">
<b>
<asp:Label runat="server" ID="txtCodMacchina" Text='<%# Eval("CodMacchina") %>' /></b>
<br />
<asp:Label runat="server" ID="txtNome" CssClass="text-warning" Text='<%# Eval("Nome") %>' />
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Pezzi" SortExpression="NumPezzi">
<ItemTemplate>
<div class="row">
<div class="col-12 col-lg-6 text-nowrap text-success">
Tot: <%# Eval("NumPezzi") %>
<div class="text-secondary">
<%# Eval("PzPallet") %> pz/pal
</div>
</div>
<div class="col-12 col-lg-6 text-nowrap text-success">
TC: <%# Eval("TCAssegnato","{0:0.000}") %>
<div class="text-secondary small">
<%# TCMinSec(Eval("TCAssegnato")) %> (min:sec)
</div>
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByIdxMacc" TypeName="MapoDb.DS_ProdTempiTableAdapters.PromesseODLTableAdapter" FilterExpression=" Attivabile = 1">
<SelectParameters>
<asp:SessionParameter Type="String" DefaultValue="0" SessionField="IdxMacchinaPianoProd" Name="IdxMacchina" />
<asp:Parameter DefaultValue="True" Name="onlyFree" Type="Boolean" />
<asp:ControlParameter ControlID="chkOnlyMacc" DefaultValue="" Name="onlyDirect" PropertyName="Checked" Type="Boolean" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="idxPromessa" DataSourceID="ods" AllowPaging="true" CssClass="table table-dark table-striped table-sm">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
<SelectedRowStyle CssClass="ctrSelRowStyle" />
<FooterStyle CssClass="ctrFooter" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
<EmptyDataRowStyle CssClass="ctrRowStyle" />
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text="Nessun record trovato" />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField HeaderText="Data" SortExpression="DueDate">
<ItemTemplate>
<div class="row">
<div class="col-12 text-nowrap">
<%# Eval("DueDate","{0:dd.MM.yy}") %>
<br />
[<%# Eval("IdxPromessa") %>]
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Articolo" SortExpression="CodArticolo">
<ItemTemplate>
<div class="row">
<div class="col-6 text-left">
<b>
<asp:Label runat="server" ID="txtCodArticolo" Text='<%# Eval("CodArticolo") %>' /></b>
</div>
<div class="col-6 text-right text-nowrap">
<asp:Label runat="server" ID="Label1" Text='<%# Eval("KeyRichiesta") %>' />
</div>
<div class="col-12 text-center textCondens">
<asp:Label runat="server" ID="txtDescArticolo" CssClass="text-warning" Text='<%# Eval("DescArticolo") %>' />
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Macchina" SortExpression="CodMacchina">
<ItemTemplate>
<div class="row">
<div class="col-12 text-nowrap">
<b>
<asp:Label runat="server" ID="txtCodMacchina" Text='<%# Eval("CodMacchina") %>' /></b>
<br />
<asp:Label runat="server" ID="txtNome" CssClass="text-warning" Text='<%# Eval("Nome") %>' />
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Pezzi" SortExpression="NumPezzi">
<ItemTemplate>
<div class="row">
<div class="col-12 col-lg-6 text-nowrap text-success">
Tot: <%# Eval("NumPezzi") %>
<div class="text-secondary textCondens">
<%# Eval("PzPallet") %> pz/pal
</div>
</div>
<div class="col-12 col-lg-6 text-nowrap text-success">
TC: <%# Eval("TCAssegnato","{0:0.000}") %>
<div class="text-secondary textCondens">
<%# TCMinSec(Eval("TCAssegnato")) %> (min:sec)
</div>
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByIdxMacc" TypeName="MapoDb.DS_ProdTempiTableAdapters.PromesseODLTableAdapter" FilterExpression=" Attivabile = 1">
<SelectParameters>
<asp:SessionParameter Type="String" DefaultValue="0" SessionField="IdxMacchinaPianoProd" Name="IdxMacchina" />
<asp:Parameter DefaultValue="True" Name="onlyFree" Type="Boolean" />
<asp:ControlParameter ControlID="chkOnlyMacc" DefaultValue="" Name="onlyDirect" PropertyName="Checked" Type="Boolean" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
@@ -65,6 +65,11 @@ namespace MoonProTablet.WebUserControls
#region Protected Methods
protected void chkShowAll_CheckedChanged(object sender, EventArgs e)
{
grView.AllowPaging = !chkShowAll.Checked;
}
protected void ddlSubMacc_DataBound(object sender, EventArgs e)
{
// se ho in memoria un valore LO REIMPOSTO...
+44 -33
View File
@@ -1,68 +1,79 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MoonProTablet.WebUserControls {
public partial class mod_pianoProdMacc {
namespace MoonProTablet.WebUserControls
{
public partial class mod_pianoProdMacc
{
/// <summary>
/// Controllo divSelMacc.
/// divSelMacc control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSelMacc;
/// <summary>
/// Controllo ddlSubMacc.
/// ddlSubMacc control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlSubMacc;
/// <summary>
/// Controllo odsMacc.
/// odsMacc control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsMacc;
/// <summary>
/// Controllo chkOnlyMacc.
/// chkOnlyMacc control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox chkOnlyMacc;
/// <summary>
/// Controllo grView.
/// chkShowAll control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox chkShowAll;
/// <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>
/// Controllo ods.
/// ods control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
}