Avanzamento in gestione attributi su DataMatrix
This commit is contained in:
@@ -1,7 +1,34 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="DtxExtraCiclo.aspx.cs" Inherits="GMW.DtxExtraCiclo" %>
|
||||
<%@ Register Src="WebUserControls/mod_recAttributiDtx.ascx" TagName="mod_recAttributiDtx" TagPrefix="uc1" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div style="background-color: #dedede;">
|
||||
<div class="row" style="padding: 1px; text-align: center; margin: auto;">
|
||||
<div class="col-sm-6 col-sm-offset-3">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="msgBoxBarcode">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblMessaggi" Text="..." Font-Size="18pt" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblWarning" Text="" Font-Size="XX-Large" ForeColor="Red" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<uc1:mod_recAttributiDtx ID="mod_recAttributiDtx1" runat="server" tipologia="ExtraCiclo" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</asp:Content>
|
||||
|
||||
Generated
+41
-7
@@ -3,15 +3,49 @@
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
|
||||
|
||||
public partial class DtxExtraCiclo
|
||||
{
|
||||
namespace GMW {
|
||||
|
||||
|
||||
public partial class DtxExtraCiclo {
|
||||
|
||||
/// <summary>
|
||||
/// pnlAll 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.Panel pnlAll;
|
||||
|
||||
/// <summary>
|
||||
/// lblMessaggi 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.Label lblMessaggi;
|
||||
|
||||
/// <summary>
|
||||
/// lblWarning 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.Label lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// mod_recAttributiDtx1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_recAttributiDtx mod_recAttributiDtx1;
|
||||
}
|
||||
}
|
||||
|
||||
+27
-2
@@ -1,11 +1,36 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="DtxProveDim.aspx.cs" Inherits="GMW.DtxProveDim" %>
|
||||
|
||||
<%@ Register src="WebUserControls/mod_recAttributiDtx.ascx" tagname="mod_recAttributiDtx" tagprefix="uc1" %>
|
||||
<%@ Register Src="WebUserControls/mod_recAttributiDtx.ascx" TagName="mod_recAttributiDtx" TagPrefix="uc1" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<uc1:mod_recAttributiDtx ID="mod_recAttributiDtx1" runat="server" tipologia="tipoAttrDtx.ProveDimensionali" />
|
||||
<div style="background-color: #dedede;">
|
||||
<div class="row" style="padding: 1px; text-align: center; margin: auto;">
|
||||
<div class="col-sm-6 col-sm-offset-3">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="msgBoxBarcode">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblMessaggi" Text="..." Font-Size="18pt" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblWarning" Text="" Font-Size="XX-Large" ForeColor="Red" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<uc1:mod_recAttributiDtx ID="mod_recAttributiDtx1" runat="server" tipologia="ProveDimensionali" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</asp:Content>
|
||||
|
||||
Generated
+27
@@ -12,6 +12,33 @@ namespace GMW {
|
||||
|
||||
public partial class DtxProveDim {
|
||||
|
||||
/// <summary>
|
||||
/// pnlAll 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.Panel pnlAll;
|
||||
|
||||
/// <summary>
|
||||
/// lblMessaggi 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.Label lblMessaggi;
|
||||
|
||||
/// <summary>
|
||||
/// lblWarning 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.Label lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// mod_recAttributiDtx1 control.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,7 +1,34 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="DtxProveDistr.aspx.cs" Inherits="GMW.DtxProveDistr" %>
|
||||
<%@ Register Src="WebUserControls/mod_recAttributiDtx.ascx" TagName="mod_recAttributiDtx" TagPrefix="uc1" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div style="background-color: #dedede;">
|
||||
<div class="row" style="padding: 1px; text-align: center; margin: auto;">
|
||||
<div class="col-sm-6 col-sm-offset-3">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="msgBoxBarcode">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblMessaggi" Text="..." Font-Size="18pt" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblWarning" Text="" Font-Size="XX-Large" ForeColor="Red" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<uc1:mod_recAttributiDtx ID="mod_recAttributiDtx1" runat="server" tipologia="ProveDistruttive" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</asp:Content>
|
||||
|
||||
Generated
+41
-7
@@ -3,15 +3,49 @@
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
|
||||
|
||||
public partial class DtxProveDistr
|
||||
{
|
||||
namespace GMW {
|
||||
|
||||
|
||||
public partial class DtxProveDistr {
|
||||
|
||||
/// <summary>
|
||||
/// pnlAll 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.Panel pnlAll;
|
||||
|
||||
/// <summary>
|
||||
/// lblMessaggi 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.Label lblMessaggi;
|
||||
|
||||
/// <summary>
|
||||
/// lblWarning 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.Label lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// mod_recAttributiDtx1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_recAttributiDtx mod_recAttributiDtx1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<div class="col-xs-12">
|
||||
<div class="msgBoxBarcode">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblMessaggi" Text=".." Font-Size="18pt" />
|
||||
<asp:Label runat="server" ID="lblMessaggi" Text="..." Font-Size="18pt" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblWarning" Text="" Font-Size="XX-Large" ForeColor="Red" />
|
||||
|
||||
@@ -1 +1,30 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_recAttributiDtx.ascx.cs" Inherits="GMW.WebUserControls.mod_recAttributiDtx" %>
|
||||
<div class="row">
|
||||
<%--<div class="col-sm-3 col-lg-2">
|
||||
<div class="panel panel-success panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("Origine") %></b> (AL)
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
</div>
|
||||
</div>
|
||||
</div>--%>
|
||||
<div class="col-sm-6 col-sm-offset-3 col-lg-8 col-lg-offset-2">
|
||||
<div class="panel panel-success panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci(tipologia) %></b> (<%: traduci("Registrazione") %>)
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblDataMatrix" AssociatedControlID="txtBarcode"><%: traduci("lblDataMatrix") %></asp:Label>
|
||||
</div>
|
||||
<asp:TextBox runat="server" ID="txtBarcode" Height="56px" Width="100%" Font-Size="32pt" AutoPostBack="True" Style="text-align: center" TabIndex="1" />
|
||||
<div class="btn-group" style="width: 100%;">
|
||||
<label id="lblAdd" runat="server" class="btn btn-success" style="width: 100%;">
|
||||
<asp:CheckBox runat="server" ID="chkAdd" AutoPostBack="true" TabIndex="3" OnCheckedChanged="chkAdd_CheckedChanged" Width="100%" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -4,19 +4,212 @@ using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.WebUserControls
|
||||
{
|
||||
public partial class mod_recAttributiDtx : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Avvio pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
resetIN();
|
||||
}
|
||||
checkBarcode();
|
||||
}
|
||||
/// <summary>
|
||||
/// restta input
|
||||
/// </summary>
|
||||
private void resetIN()
|
||||
{
|
||||
AddAttr = true;
|
||||
}
|
||||
/// <summary>
|
||||
/// Aggiungi/Rimuovi attributo
|
||||
/// </summary>
|
||||
public bool AddAttr
|
||||
{
|
||||
get
|
||||
{
|
||||
return chkAdd.Checked;
|
||||
}
|
||||
set
|
||||
{
|
||||
chkAdd.Checked = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// tipologia di attributo registrato con DataMatrix
|
||||
/// </summary>
|
||||
public tipoAttrDtx tipologia { get; set; }
|
||||
/// <summary>
|
||||
/// valore barcode
|
||||
/// </summary>
|
||||
public string barcodeIn
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtBarcode.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
txtBarcode.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// controlla se ci sia un barcode
|
||||
/// </summary>
|
||||
private void checkBarcode()
|
||||
{
|
||||
#if false
|
||||
if (barcodeIn != "")
|
||||
{
|
||||
Postazione.messaggiText = string.Format("{0}: {1}", traduci("BCodeIns"), barcodeIn);
|
||||
switch (MagClass.tipoBCode(barcodeIn))
|
||||
{
|
||||
case tipoCodiceBarcode.AL:
|
||||
// verifico AL
|
||||
if (checkAL(barcodeIn))
|
||||
{
|
||||
sourceAL = barcodeIn;
|
||||
}
|
||||
doUpdate();
|
||||
break;
|
||||
case tipoCodiceBarcode.UDC:
|
||||
// verifico UDC
|
||||
if (checkUDC(barcodeIn))
|
||||
{
|
||||
string AL = "";
|
||||
// recupero da UDC
|
||||
try
|
||||
{
|
||||
AL = MagClass.magazzino.taAL2UDC.getByUDC(barcodeIn)[0].AL;
|
||||
}
|
||||
catch
|
||||
{
|
||||
Postazione.warningText = traduci("ErroreUdcNonAl");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
if (AL != "")
|
||||
{
|
||||
// verifico AL
|
||||
if (checkAL(AL))
|
||||
{
|
||||
sourceAL = AL;
|
||||
}
|
||||
}
|
||||
}
|
||||
doUpdate();
|
||||
break;
|
||||
case tipoCodiceBarcode.Comando:
|
||||
// se è reset cancello tutto!
|
||||
if (barcodeIn == memLayer.ML.confReadString("cmdReset"))
|
||||
{
|
||||
resetIN();
|
||||
Postazione.messaggiText = "";
|
||||
Postazione.warningText = "";
|
||||
doUpdate();
|
||||
}
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
break;
|
||||
default:
|
||||
Postazione.messaggiText = "";
|
||||
Postazione.warningText = traduci("CodNonRicon");
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
#endif
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// modificato attributo registra/elimina attributo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void chkAdd_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna componenti + focus a barcode
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
if (AddAttr)
|
||||
{
|
||||
chkAdd.Text = traduci("AggiungiAttr");
|
||||
lblAdd.Attributes.Remove("class");
|
||||
lblAdd.Attributes.Add("class", "btn btn-warning");
|
||||
}
|
||||
else
|
||||
{
|
||||
chkAdd.Text = traduci("TogliAttr");
|
||||
lblAdd.Attributes.Remove("class");
|
||||
lblAdd.Attributes.Add("class", "btn btn-danger");
|
||||
}
|
||||
#if false
|
||||
grViewSource.DataBind();
|
||||
updateBtns();
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
// controllo SE ho AL allora seleziono NumTratt o Durezza...
|
||||
if (sourceAL == "")
|
||||
{
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (NumTratt == "")
|
||||
{
|
||||
txtNumTratt.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!Durezza)
|
||||
{
|
||||
chkDurezza.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (txtNote.Text.Trim() == "")
|
||||
{
|
||||
txtNote.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
lbtStampaAL.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
+41
-7
@@ -3,15 +3,49 @@
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GMW.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_recAttributiDtx
|
||||
{
|
||||
namespace GMW.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_recAttributiDtx {
|
||||
|
||||
/// <summary>
|
||||
/// lblDataMatrix 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.Label lblDataMatrix;
|
||||
|
||||
/// <summary>
|
||||
/// txtBarcode 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.TextBox txtBarcode;
|
||||
|
||||
/// <summary>
|
||||
/// lblAdd 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 lblAdd;
|
||||
|
||||
/// <summary>
|
||||
/// chkAdd 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 chkAdd;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user