Merge branch 'master' into develop

This commit is contained in:
Samuele Locatelli
2022-04-08 12:03:16 +02:00
21 changed files with 2687 additions and 164 deletions
+21 -4
View File
@@ -37,6 +37,23 @@ body {
width: 100%;
}
}
.GridPager a,
.GridPager span {
display: block;
height: 1.5em;
min-width: 1.5em;
text-align: center;
text-decoration: none;
}
.GridPager a {
background-color: #f5f5f5;
color: #969696;
}
.GridPager span {
background-color: #A1DCF2;
color: #000;
font-weight: bold;
}
.border-thick {
border-width: 3px !important;
}
@@ -138,7 +155,7 @@ body {
min-width: 12rem;
min-height: 6rem;
display: inline-block;
padding: 1rem 0;
padding: 3rem/3 0;
margin: 0 2px 1em;
vertical-align: top;
text-decoration: none;
@@ -151,13 +168,13 @@ body {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffeeeeee', GradientType=0);
border: 1px solid #ddd;
box-sizing: border-box;
border-radius: 0.75rem;
border-radius: 1.5rem/2;
}
.shortcuts .shortcut-sm {
min-width: 6.75rem;
min-height: 4.5rem;
display: inline-block;
padding: 0.375rem 0;
padding: 1.5rem/4 0;
margin: 0 2px 1em;
vertical-align: top;
text-decoration: none;
@@ -170,7 +187,7 @@ body {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffeeeeee', GradientType=0);
border: 1px solid #ddd;
box-sizing: border-box;
border-radius: 0.75rem;
border-radius: 1.5rem/2;
}
.shortcuts .shortcut .shortcut-icon {
width: 100%;
+21 -1
View File
@@ -45,6 +45,26 @@ body {
}
}
.GridPager a,
.GridPager span {
display: block;
height: 1.5em;
min-width: 1.5em;
text-align: center;
text-decoration: none;
}
.GridPager a {
background-color: #f5f5f5;
color: #969696;
}
.GridPager span {
background-color: #A1DCF2;
color: #000;
font-weight: bold;
}
@borderThick: 3px;
.border-thick {
@@ -266,4 +286,4 @@ body {
margin-top: .75em;
font-weight: 400;
color: #666;
}
}
+1 -1
View File
@@ -1 +1 @@
body{font-family:'Roboto Condensed',sans-serif;padding-top:50px;padding-bottom:20px;}.textCondens{font-family:'Open Sans Condensed',sans-serif;}.textNormal{font-family:'Roboto',sans-serif;}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}.body-content{padding:0;}body{font-family:'Roboto',sans-serif;}}@media(max-width:992px){.container{width:100%;}}.border-thick{border-width:3px !important;}.flashColor{border:3px solid #00f;-webkit-animation-name:blueFlash;-webkit-animation-duration:.5s;-webkit-animation-timing-function:linear;-webkit-animation-delay:0s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-name:blueFlash;animation-duration:.5s;animation-timing-function:linear;animation-delay:0s;animation-iteration-count:infinite;animation-direction:alternate;}@-webkit-keyframes blueFlash{0%{border-color:#c4dbff;}25%{border-color:#9dc4ff;}50%{border-color:#5ca5ff;}75%{border-color:#1b82ff;}100%{border-color:#005ccc;}}.bigText{font-size:1.3em;}.smallText{font-size:.8em;}.dl-horizontal dt{white-space:normal;}.deleted{text-decoration:line-through;}.padZL{padding-left:.2em;}.padZR{padding-right:.2em;}.padZRL{padding-left:.2em;padding-right:.2em;}.colAlt{color:#c93;}.fontBig{font-size:2em;}.tNote{color:#8a8a8a;font-style:italic;}.tNoWrap{white-space:nowrap;}.navbar{min-height:0;color:#696969;}.pagination{margin:5px 0;}.pageSelDD{width:6em;}.zeroWidth{width:0;}.shortcuts{text-align:center;}.shortcuts .shortcut{min-width:12rem;min-height:6rem;display:inline-block;padding:1rem 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:.75rem;}.shortcuts .shortcut-sm{min-width:6.75rem;min-height:4.5rem;display:inline-block;padding:.375rem 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:.75rem;}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:3rem;color:#333;}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:3rem;color:#333;}.shortcuts .shortcut:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut-sm:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut-sm:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut:hover .shortcut-icon{color:#c93;}.shortcuts .shortcut-sm:hover .shortcut-icon{color:#666;}.shortcuts .shortcut-label{display:block;margin-top:.75em;font-weight:400;color:#666;}
body{font-family:'Roboto Condensed',sans-serif;padding-top:50px;padding-bottom:20px;}.textCondens{font-family:'Open Sans Condensed',sans-serif;}.textNormal{font-family:'Roboto',sans-serif;}@media screen and (min-width:768px){.jumbotron{margin-top:20px;}.body-content{padding:0;}body{font-family:'Roboto',sans-serif;}}@media(max-width:992px){.container{width:100%;}}.GridPager a,.GridPager span{display:block;height:1.5em;min-width:1.5em;text-align:center;text-decoration:none;}.GridPager a{background-color:#f5f5f5;color:#969696;}.GridPager span{background-color:#a1dcf2;color:#000;font-weight:bold;}.border-thick{border-width:3px !important;}.flashColor{border:3px solid #00f;-webkit-animation-name:blueFlash;-webkit-animation-duration:.5s;-webkit-animation-timing-function:linear;-webkit-animation-delay:0s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-name:blueFlash;animation-duration:.5s;animation-timing-function:linear;animation-delay:0s;animation-iteration-count:infinite;animation-direction:alternate;}@-webkit-keyframes blueFlash{0%{border-color:#c4dbff;}25%{border-color:#9dc4ff;}50%{border-color:#5ca5ff;}75%{border-color:#1b82ff;}100%{border-color:#005ccc;}}.bigText{font-size:1.3em;}.smallText{font-size:.8em;}.dl-horizontal dt{white-space:normal;}.deleted{text-decoration:line-through;}.padZL{padding-left:.2em;}.padZR{padding-right:.2em;}.padZRL{padding-left:.2em;padding-right:.2em;}.colAlt{color:#c93;}.fontBig{font-size:2em;}.tNote{color:#8a8a8a;font-style:italic;}.tNoWrap{white-space:nowrap;}.navbar{min-height:0;color:#696969;}.pagination{margin:5px 0;}.pageSelDD{width:6em;}.zeroWidth{width:0;}.shortcuts{text-align:center;}.shortcuts .shortcut{min-width:12rem;min-height:6rem;display:inline-block;padding:3rem/3 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:1.5rem/2;}.shortcuts .shortcut-sm{min-width:6.75rem;min-height:4.5rem;display:inline-block;padding:1.5rem/4 0;margin:0 2px 1em;vertical-align:top;text-decoration:none;background:#f3f3f3;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff,0%,#eee,100%);background-image:-moz-linear-gradient(top,#fff 0%,#eee 100%);background-image:linear-gradient(to bottom,#fff 0%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffeeeeee',GradientType=0);border:1px solid #ddd;box-sizing:border-box;border-radius:1.5rem/2;}.shortcuts .shortcut .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:3rem;color:#333;}.shortcuts .shortcut-sm .shortcut-icon{width:100%;margin-top:0;margin-bottom:0;font-size:3rem;color:#333;}.shortcuts .shortcut:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut-sm:hover{background:#e8e8e8;background-image:-webkit-gradient(linear,left 0%,left 100%,from(#fafafa),to(#e1e1e1));background-image:-webkit-linear-gradient(top,#fafafa,0%,#e1e1e1,100%);background-image:-moz-linear-gradient(top,#fafafa 0%,#e1e1e1 100%);background-image:linear-gradient(to bottom,#fafafa 0%,#e1e1e1 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa',endColorstr='#ffe1e1e1',GradientType=0);}.shortcuts .shortcut:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut-sm:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125);}.shortcuts .shortcut:hover .shortcut-icon{color:#c93;}.shortcuts .shortcut-sm:hover .shortcut-icon{color:#666;}.shortcuts .shortcut-label{display:block;margin-top:.75em;font-weight:400;color:#666;}
+32
View File
@@ -329,6 +329,13 @@
<Compile Include="Site.Master.designer.cs">
<DependentUpon>Site.Master</DependentUpon>
</Compile>
<Compile Include="SMART\AnagCliFor.aspx.cs">
<DependentUpon>AnagCliFor.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="SMART\AnagCliFor.aspx.designer.cs">
<DependentUpon>AnagCliFor.aspx</DependentUpon>
</Compile>
<Compile Include="SMART\Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -336,6 +343,13 @@
<Compile Include="SMART\Default.aspx.designer.cs">
<DependentUpon>Default.aspx</DependentUpon>
</Compile>
<Compile Include="SMART\DiBa.aspx.cs">
<DependentUpon>DiBa.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="SMART\DiBa.aspx.designer.cs">
<DependentUpon>DiBa.aspx</DependentUpon>
</Compile>
<Compile Include="SMART\EnrollDevice.aspx.cs">
<DependentUpon>EnrollDevice.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -413,6 +427,13 @@
<Compile Include="WebUserControls\cmp_activeParams.ascx.designer.cs">
<DependentUpon>cmp_activeParams.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_AnagCliFor.ascx.cs">
<DependentUpon>cmp_AnagCliFor.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\cmp_AnagCliFor.ascx.designer.cs">
<DependentUpon>cmp_AnagCliFor.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_barcode.ascx.cs">
<DependentUpon>cmp_barcode.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -469,6 +490,13 @@
<Compile Include="WebUserControls\cmp_currODL.ascx.designer.cs">
<DependentUpon>cmp_currODL.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_destClienti.ascx.cs">
<DependentUpon>cmp_destClienti.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\cmp_destClienti.ascx.designer.cs">
<DependentUpon>cmp_destClienti.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_dettLotti.ascx.cs">
<DependentUpon>cmp_dettLotti.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -890,7 +918,9 @@
<Content Include="Reports\queueConf.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="SMART\AnagCliFor.aspx" />
<Content Include="SMART\Default.aspx" />
<Content Include="SMART\DiBa.aspx" />
<Content Include="SMART\EnrollDevice.aspx" />
<Content Include="SMART\jumper.aspx" />
<Content Include="SMART\login.aspx" />
@@ -905,6 +935,7 @@
<Content Include="webfonts\fa-regular-400.svg" />
<Content Include="webfonts\fa-solid-900.svg" />
<Content Include="WebUserControls\cmp_activeParams.ascx" />
<Content Include="WebUserControls\cmp_AnagCliFor.ascx" />
<Content Include="WebUserControls\cmp_barcode.ascx" />
<Content Include="SMART\elencoLotti.aspx" />
<Content Include="SMART\prtFiniti.aspx" />
@@ -912,6 +943,7 @@
<Content Include="SMART\prtSemilav.aspx" />
<Content Include="WebUserControls\cmp_creaLottoOUT.ascx" />
<Content Include="WebUserControls\cmp_currODL.ascx" />
<Content Include="WebUserControls\cmp_destClienti.ascx" />
<Content Include="WebUserControls\cmp_dettLotti.ascx" />
<Content Include="WebUserControls\cmp_elencoLotti.ascx" />
<Content Include="WebUserControls\cmp_elencoPedane.ascx" />
+11
View File
@@ -0,0 +1,11 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AnagCliFor.aspx.cs" Inherits="MP_MAG.SMART.AnagCliFor" %>
<%@ Register Src="~/WebUserControls/cmp_AnagCliFor.ascx" TagPrefix="uc1" TagName="cmp_AnagCliFor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<div class="row m-0">
<div class="col-12">
<uc1:cmp_AnagCliFor runat="server" id="cmp_AnagCliFor" />
</div>
</div>
</asp:Content>
+17
View File
@@ -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 MP_MAG.SMART
{
public partial class AnagCliFor : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+26
View File
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <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 MP_MAG.SMART
{
public partial class AnagCliFor
{
/// <summary>
/// cmp_AnagCliFor control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::MP_MAG.WebUserControls.cmp_AnagCliFor cmp_AnagCliFor;
}
}
+3
View File
@@ -0,0 +1,3 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DiBa.aspx.cs" Inherits="MP_MAG.SMART.DiBa" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>
+17
View File
@@ -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 MP_MAG.SMART
{
public partial class DiBa : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+17
View File
@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <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 MP_MAG.SMART
{
public partial class DiBa
{
}
}
+165
View File
@@ -0,0 +1,165 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_AnagCliFor.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_AnagCliFor" %>
<%@ Register Src="~/WebUserControls/cmp_numRow.ascx" TagPrefix="uc1" TagName="cmp_numRow" %>
<%@ Register Src="~/WebUserControls/cmp_destClienti.ascx" TagPrefix="uc1" TagName="cmp_destClienti" %>
<div class="card">
<div class="card-header">
<div class="d-flex flex-row-reverse">
<div class="px-2">
<asp:CheckBox runat="server" ID="chkShowCli" Text="Clienti" Checked="true" AutoPostBack="true" />
</div>
<div class="px-2">
<asp:CheckBox runat="server" ID="chkShoFor" Text="Fornitori" Checked="true" AutoPostBack="true" />
</div>
<div class="px-2 flex-fill">
<h3>Anagrafica Clienti / Fornitori</h3>
</div>
</div>
</div>
<div class="card-body">
<div class="row">
<div runat="server" id="divMain" class="col-12">
<asp:HiddenField runat="server" ID="hfShowDet" />
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="CodCliente" DataSourceID="ods" CssClass="table table-sm table-striped small" AllowPaging="True" OnRowDeleted="grView_RowDeleted" OnRowEditing="grView_RowEditing" OnPageIndexChanged="grView_PageIndexChanged" OnSelectedIndexChanged="grView_SelectedIndexChanged">
<HeaderStyle CssClass="default" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<SelectedRowStyle CssClass="table-info" />
<Columns>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:LinkButton ID="lbtReset" runat="server" OnClick="lbtReset_Click" CssClass="btn btn-primary btn-sm" Visible="true" ToolTip="Reset"><i class="fas fa-sync-alt"></i></asp:LinkButton>
</HeaderTemplate>
<EditItemTemplate>
<div class="text-nowrap">
<asp:LinkButton ID="lbtUpdate1" runat="server" CausesValidation="True" CommandName="Update" Text="Update" CssClass="btn btn-sm btn-success"><i class="fas fa-check-circle"></i></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtCancel1" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" CssClass="btn btn-sm btn-warning"><i class="fas fa-ban"></i></asp:LinkButton>
</div>
</EditItemTemplate>
<ItemTemplate>
<div class="text-nowrap">
<asp:LinkButton ID="lbtSel" runat="server" CausesValidation="False" CommandName="Select" Text="Select" CssClass="btn btn-sm btn-info"><i class="fa fa-search"></i></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" CssClass="btn btn-sm btn-primary"><i class="fa fa-edit"></i></asp:LinkButton>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Cod" SortExpression="CodCliente">
<EditItemTemplate>
<asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("CodCliente") %>' Width="10em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label7" runat="server" Text='<%# Eval("CodCliente") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Rag Sociale" SortExpression="RagSociale">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RagSociale") %>' Width="20em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("RagSociale") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Indirizzo" SortExpression="Indirizzo">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Indirizzo") %>' Width="15em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("Indirizzo") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Localita" SortExpression="Localita">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Localita") %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Localita") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Cap" SortExpression="Cap">
<EditItemTemplate>
<asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Cap") %>' Width="5em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Cap") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Provincia" SortExpression="Provincia">
<EditItemTemplate>
<asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Provincia") %>' Width="5em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label5" runat="server" Text='<%# Eval("Provincia") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Nazione" SortExpression="Nazione">
<EditItemTemplate>
<asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Nazione") %>' Width="2em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label6" runat="server" Text='<%# Eval("Nazione") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:CheckBoxField DataField="IsCli" HeaderText="Cli" SortExpression="IsCli" />
<asp:CheckBoxField DataField="IsFor" HeaderText="For" SortExpression="IsFor" />
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:LinkButton ID="lbtAddNew" runat="server" OnClick="lbtAddNew_Click" CssClass="btn btn-success btn-sm" Visible="true" ToolTip="Add New" OnClientClick="return confirm('Sicuro di voler inserire un nuovo record?');"><i class="fas fa-plus"></i></asp:LinkButton>
</HeaderTemplate>
<EditItemTemplate>
<div class="text-nowrap">
<asp:LinkButton ID="lbtUpdate2" runat="server" CausesValidation="True" CommandName="Update" Text="Update" CssClass="btn btn-sm btn-success"><i class="fas fa-check-circle"></i></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtCancel2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" CssClass="btn btn-sm btn-warning"><i class="fas fa-ban"></i></asp:LinkButton>
</div>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" OnClientClick="return confirm('Sicuro di voler procedere con eliminazione?');" CssClass="btn btn-sm btn-danger"><i class="fas fa-trash"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="Original_{0}" SelectMethod="getBySearch" TypeName="MagData.DS_MagTableAdapters.AnagClientiTableAdapter" DeleteMethod="deleteQuery" InsertMethod="insertQuery" UpdateMethod="updateQuery">
<DeleteParameters>
<asp:Parameter Name="Original_CodCliente" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="CodCliente" Type="String" />
<asp:Parameter Name="RagSociale" Type="String" />
<asp:Parameter Name="Indirizzo" Type="String" />
<asp:Parameter Name="Localita" Type="String" />
<asp:Parameter Name="Cap" Type="String" />
<asp:Parameter Name="Provincia" Type="String" />
<asp:Parameter Name="Nazione" Type="String" />
<asp:Parameter Name="IsCli" Type="Boolean" />
<asp:Parameter Name="IsFor" Type="Boolean" />
</InsertParameters>
<SelectParameters>
<asp:SessionParameter DefaultValue="" Name="searchVal" SessionField="valoreSearch" Type="String" />
<asp:ControlParameter ControlID="chkShowCli" DefaultValue="true" Name="showCli" PropertyName="Checked" Type="Boolean" />
<asp:ControlParameter ControlID="chkShoFor" DefaultValue="true" Name="showFor" PropertyName="Checked" Type="Boolean" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="CodCliente" Type="String" />
<asp:Parameter Name="RagSociale" Type="String" />
<asp:Parameter Name="Indirizzo" Type="String" />
<asp:Parameter Name="Localita" Type="String" />
<asp:Parameter Name="Cap" Type="String" />
<asp:Parameter Name="Provincia" Type="String" />
<asp:Parameter Name="Nazione" Type="String" />
<asp:Parameter Name="IsCli" Type="Boolean" />
<asp:Parameter Name="IsFor" Type="Boolean" />
<asp:Parameter Name="Original_CodCliente" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
</div>
<div runat="server" id="divDetail" class="col-5 table-info p-1">
<div class="table-light p-0">
<uc1:cmp_destClienti runat="server" ID="cmp_destClienti" />
</div>
</div>
</div>
</div>
<div class="card-footer text-right py-1">
<uc1:cmp_numRow runat="server" ID="cmp_numRow" />
</div>
</div>
@@ -0,0 +1,119 @@
using System;
using System.Web.UI;
namespace MP_MAG.WebUserControls
{
public partial class cmp_AnagCliFor : BaseUserControl
{
#region Protected Properties
protected bool showDet
{
get
{
bool answ = false;
bool.TryParse(hfShowDet.Value, out answ);
return answ;
}
set
{
hfShowDet.Value = $"{value}";
fixDetailView(value);
}
}
#endregion Protected Properties
#region Private Methods
private void Cmp_numRow_eh_doRefresh(object sender, EventArgs e)
{
grView.PageSize = cmp_numRow.numRow;
grView.PageIndex = 0;
doReset();
}
#endregion Private Methods
#region Protected Methods
protected void fixDetailView(bool showDetail)
{
divMain.Visible = true;
divDetail.Visible = showDetail;
string mainCss = showDetail ? "col-7 pr-0" : "col-12";
divMain.Attributes.Remove("class");
divMain.Attributes.Add("class", mainCss);
for (int i = 7; i < 11; i++)
{
grView.Columns[i].Visible = !showDet;
}
}
protected void grView_RowDeleted(object sender, System.Web.UI.WebControls.GridViewDeletedEventArgs e)
{
doReset();
}
protected void grView_RowEditing(object sender, System.Web.UI.WebControls.GridViewEditEventArgs e)
{
grView.SelectedIndex = e.NewEditIndex;
}
/// <summary>
/// Aggiunta nuovo record
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbtAddNew_Click(object sender, EventArgs e)
{
MagDataLayerObj.taACF.insertQuery("__CodiceCliente", "Nuova Ragione Sociale", "Nuovo Indirizzo", "Nuova Località", "00000", "BA", "IT", false, true);
doReset();
}
/// <summary>
/// comando reset
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbtReset_Click(object sender, EventArgs e)
{
doReset();
raiseReset();
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
grView.PageSize = cmp_numRow.numRow;
showDet = false;
}
cmp_numRow.eh_doRefresh += Cmp_numRow_eh_doRefresh;
}
#endregion Protected Methods
#region Public Methods
public void doReset()
{
grView.SelectedIndex = -1;
grView.DataBind();
showDet = false;
}
#endregion Public Methods
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
showDet = true;
cmp_destClienti.codCli = $"{grView.SelectedValue}";
}
protected void grView_PageIndexChanged(object sender, EventArgs e)
{
doReset();
}
}
}
+98
View File
@@ -0,0 +1,98 @@
//------------------------------------------------------------------------------
// <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 MP_MAG.WebUserControls
{
public partial class cmp_AnagCliFor
{
/// <summary>
/// chkShowCli 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.CheckBox chkShowCli;
/// <summary>
/// chkShoFor 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.CheckBox chkShoFor;
/// <summary>
/// divMain control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMain;
/// <summary>
/// hfShowDet 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.HiddenField hfShowDet;
/// <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;
/// <summary>
/// divDetail control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDetail;
/// <summary>
/// cmp_destClienti control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::MP_MAG.WebUserControls.cmp_destClienti cmp_destClienti;
/// <summary>
/// cmp_numRow control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::MP_MAG.WebUserControls.cmp_numRow cmp_numRow;
}
}
@@ -0,0 +1,28 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_destClienti.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_destClienti" %>
<asp:HiddenField runat="server" ID="hfCodCli" />
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="CodCliente,CodDestinazione" DataSourceID="ods" CssClass="table table-sm table-striped small" AllowPaging="True">
<EmptyDataTemplate>
<div class="alert alert-warning">
<h4>0 Record Found</h4>
</div>
</EmptyDataTemplate>
<Columns>
<%--<asp:BoundField DataField="CodCliente" HeaderText="CodCliente" ReadOnly="True" SortExpression="CodCliente" />--%>
<asp:BoundField DataField="CodDestinazione" HeaderText="Cod." ReadOnly="True" SortExpression="CodDestinazione" />
<asp:BoundField DataField="DescDestinazione" HeaderText="Descr" SortExpression="DescDestinazione" />
<asp:BoundField DataField="Indirizzo" HeaderText="Indirizzo" SortExpression="Indirizzo" />
<asp:BoundField DataField="Localita" HeaderText="Localita" SortExpression="Localita" />
<asp:BoundField DataField="Cap" HeaderText="Cap" SortExpression="Cap" />
<asp:BoundField DataField="Provincia" HeaderText="Provincia" SortExpression="Provincia" />
<asp:BoundField DataField="Nazione" HeaderText="Naz." SortExpression="Nazione" />
</Columns>
<HeaderStyle CssClass="default" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<SelectedRowStyle CssClass="table-info" />
</asp:GridView>
<asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="original_{0}" SelectMethod="getByCodCli" TypeName="MagData.DS_MagTableAdapters.AnagDestinClientiTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="hfCodCli" DefaultValue="###" Name="CodCliente" PropertyName="Value" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MP_MAG.WebUserControls
{
public partial class cmp_destClienti : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
public string codCli
{
get
{
return hfCodCli.Value;
}
set
{
hfCodCli.Value = value;
grView.DataBind();
grView.SelectedIndex = -1;
}
}
}
}
+44
View File
@@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <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 MP_MAG.WebUserControls
{
public partial class cmp_destClienti
{
/// <summary>
/// hfCodCli 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.HiddenField hfCodCli;
/// <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;
}
}
+1 -1
View File
@@ -67,7 +67,7 @@ namespace MP_MAG.WebUserControls
// se l'operatore in sessione è DIVERSO da quello appena inviato --> effettuo NUOVO login
if (MatrOpr == memLayer.ML.IntSessionObj("MatrOpr"))
{
// rimando a pagina di stampax ODL
// rimando a pagina di stampa x ODL
tgtPage = "printCartOdl";
}
else
+1652 -22
View File
File diff suppressed because it is too large Load Diff
+372 -127
View File
File diff suppressed because it is too large Load Diff
+8 -8
View File
@@ -4,18 +4,18 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:ElencoLotti" ZOrder="10" X="241" Y="15" Height="515" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="349" />
<Shape ID="DesignTable:ElencoUdc" ZOrder="9" X="561" Y="17" Height="476" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="349" />
<Shape ID="DesignTable:ElencoLotti" ZOrder="10" X="241" Y="15" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:ElencoUdc" ZOrder="9" X="561" Y="17" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagArt" ZOrder="5" X="279" Y="548" Height="191" Width="193" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:ODL" ZOrder="1" X="930" Y="30" Height="411" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:Elencopost2Queue" ZOrder="4" X="30" Y="753" Height="192" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="97" />
<Shape ID="DesignTable:ODL" ZOrder="1" X="930" Y="30" Height="343" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Elencopost2Queue" ZOrder="4" X="30" Y="753" Height="134" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ElencoAL" ZOrder="8" X="882" Y="491" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagClienti" ZOrder="2" X="320" Y="783" Height="210" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:ElencoAL2UDC" ZOrder="7" X="16" Y="357" Height="176" Width="213" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:AnagClienti" ZOrder="2" X="320" Y="783" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:ElencoAL2UDC" ZOrder="7" X="16" Y="357" Height="172" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:AnagArticoli2Clienti" ZOrder="6" X="8" Y="549" Height="172" Width="262" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:Macchine" ZOrder="3" X="621" Y="553" Height="227" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="147" />
<Shape ID="DesignTable:Macchine" ZOrder="3" X="621" Y="553" Height="267" Width="200" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
</Shapes>
<Connectors />
</DiagramLayout>
+3
View File
@@ -38,6 +38,7 @@ namespace MagData
public static string redReportConf = "MP-CTRACK:MAG:reportConf";
public DS_MagTableAdapters.AnagArtTableAdapter taAA;
public DS_MagTableAdapters.AnagClientiTableAdapter taACF;
public DS_MagTableAdapters.AnagArticoli2ClientiTableAdapter taAA2C;
public DS_ReportTableAdapters.stp_prt_CartellinoFinitiOdetteTableAdapter taCFOdette;
public DS_ReportTableAdapters.stp_prt_CartellinoPedaneTableAdapter taCPed;
@@ -325,6 +326,7 @@ namespace MagData
taRepPLFull = new DS_ReportTableAdapters.stp_prt_ReportPackListFullTableAdapter();
taAA = new DS_MagTableAdapters.AnagArtTableAdapter();
taACF = new DS_MagTableAdapters.AnagClientiTableAdapter();
taAA2C = new DS_MagTableAdapters.AnagArticoli2ClientiTableAdapter();
taEA2U = new DS_MagTableAdapters.ElencoAL2UDCTableAdapter();
taEAL = new DS_MagTableAdapters.ElencoALTableAdapter();
@@ -350,6 +352,7 @@ namespace MagData
taRepPLFull.Connection.ConnectionString = connString;
taAA.Connection.ConnectionString = connString;
taACF.Connection.ConnectionString = connString;
taAA2C.Connection.ConnectionString = connString;
taEA2U.Connection.ConnectionString = connString;
taEAL.Connection.ConnectionString = connString;