imbastita (di amssima) la pagina delle delibere delle PM
This commit is contained in:
@@ -8,17 +8,10 @@
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<uc1:mod_selLineaNtDt ID="mod_selLineaNtDt1" runat="server" urlNT="POST_PRE_TT" urlDT="POST_PRE_TT_DT" preCodLineNT="W70" preCodLineDT="W70" cssNormal="btn btn-inverse btn-lg" cssSelected="btn btn-primary btn-lg active" showSelNtDt="false" />
|
||||
<uc1:mod_selLineaNtDt ID="mod_selLineaNtDt1" runat="server" urlNT="POST_PRE_TT" urlDT="POST_PRE_TT_DT" preCodLineNT="W00" preCodLineDT="W00" cssNormal="btn btn-inverse btn-lg" cssSelected="btn btn-primary btn-lg active" showSelNtDt="false" showSelPostazione="false" showStorico="false" />
|
||||
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa">
|
||||
<div class="container-fluid">
|
||||
<asp:Panel ID="pnlSAO" runat="server" ScrollBars="None" CssClass="nav sidebar ombra" BackColor="#696969">
|
||||
<div style="float: left; height: 100%; min-height: 300px; min-width: 240px; margin: -15px;">
|
||||
<div style="background-color: #696969; margin: 4px;">
|
||||
<uc2:mod_storicoAzioniOperatore ID="mod_storicoAzioniOperatore1" runat="server" showDelete="false" />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="msgBoxBarcode">
|
||||
<div>
|
||||
|
||||
@@ -23,35 +23,11 @@ namespace GMW
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.idxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneTT");
|
||||
}
|
||||
// update vari...
|
||||
doUpdate();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
mod_PostProveMecc1.doUpdate();
|
||||
mod_PostProveMecc1.eh_reqUpdate += mod_PostProveMecc1_eh_reqUpdate;
|
||||
mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh;
|
||||
mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico;
|
||||
}
|
||||
/// <summary>
|
||||
/// Handles the showHideStorico event of the mod_selLineaNtDt1_eh control.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void mod_selLineaNtDt1_eh_showHideStorico(object sender, EventArgs e)
|
||||
{
|
||||
fixStorico();
|
||||
}
|
||||
/// <summary>
|
||||
/// Handles the doRefresh event of the mod_selLineaNtDt1_eh control.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void mod_selLineaNtDt1_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
mod_PostProveMecc1.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta update del controllo SAO
|
||||
@@ -72,26 +48,6 @@ namespace GMW
|
||||
pnlAll.CssClass = Postazione.CssClass;
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
|
||||
{
|
||||
mod_PostProveMecc1.ristampa();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemo visualizzazione pannelli
|
||||
/// </summary>
|
||||
private void fixPanels()
|
||||
{
|
||||
// default: moduli NON visibili SE non ho linea indicata..
|
||||
bool enableBtn = false;
|
||||
if (Postazione.currCodCella != "") enableBtn = true;
|
||||
mod_PostProveMecc1.Visible = enableBtn;
|
||||
fixStorico();
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
@@ -101,20 +57,11 @@ namespace GMW
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// toggle controllo storico
|
||||
/// </summary>
|
||||
private void fixStorico()
|
||||
{
|
||||
pnlSAO.Visible = Postazione.showStorico;
|
||||
}
|
||||
/// <summary>
|
||||
/// update generale controlli
|
||||
/// </summary>
|
||||
private void doUpdate()
|
||||
{
|
||||
updateMessCss();
|
||||
fixPanels();
|
||||
mod_storicoAzioniOperatore1.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// calcola postazione corrente (ip, name, printer)
|
||||
|
||||
Generated
-18
@@ -30,24 +30,6 @@ namespace GMW {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlAll;
|
||||
|
||||
/// <summary>
|
||||
/// pnlSAO 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 pnlSAO;
|
||||
|
||||
/// <summary>
|
||||
/// mod_storicoAzioniOperatore1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_storicoAzioniOperatore mod_storicoAzioniOperatore1;
|
||||
|
||||
/// <summary>
|
||||
/// lblMessaggi control.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_PostProveMecc.ascx.cs" Inherits="GMW.WebUserControls.mod_PostProveMecc" %>
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-lg-2">
|
||||
<div class="col-sm-4">
|
||||
<div class="panel panel-success panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("Origine") %></b> (AL)
|
||||
<b><%: traduci("ProveMeccDelib") %></b>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="bg-primary">
|
||||
<asp:Label runat="server" ID="lblAL" />
|
||||
<asp:Label runat="server" ID="lblNtDelib" />
|
||||
</div>
|
||||
<asp:GridView ID="grViewSource" runat="server" AllowSorting="True" AutoGenerateColumns="False"
|
||||
DataKeyNames="UDC" DataSourceID="odsSource" Width="100%">
|
||||
<asp:GridView ID="grViewDPM" runat="server" AllowSorting="True" AutoGenerateColumns="False"
|
||||
DataKeyNames="UDC" DataSourceID="odsDPM" Width="100%">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
@@ -39,52 +39,81 @@
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsSource" runat="server" OldValuesParameterFormatString="{0}"
|
||||
<asp:ObjectDataSource ID="odsDPM" runat="server" OldValuesParameterFormatString="{0}"
|
||||
SelectMethod="getByAL" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="lblAL" DefaultValue="AL0000" Name="AL" PropertyName="Text" Type="String" />
|
||||
<asp:ControlParameter ControlID="lblNtDelib" DefaultValue="AL0000" Name="AL" PropertyName="Text" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-8">
|
||||
<div class="col-sm-4">
|
||||
<div id="divBarcode" runat="server">
|
||||
<div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblBarcode" AssociatedControlID="txtBarcode"><%: traduci("lblBarcode") %></asp:Label>
|
||||
</div>
|
||||
<asp:TextBox runat="server" ID="txtBarcode" Height="56px" Width="400px" Font-Size="32pt" AutoPostBack="True" Style="text-align: center" TabIndex="1" />
|
||||
<asp:TextBox runat="server" ID="txtBarcode" Height="56px" Width="100%" Font-Size="32pt" AutoPostBack="True" Style="text-align: center" TabIndex="1" />
|
||||
</div>
|
||||
</div>
|
||||
<div id="divNote" runat="server">
|
||||
<div>
|
||||
<%: traduci("Note") %>
|
||||
<div id="divEsitoPM" runat="server" class="panel panel-primary panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("EsitoPM") %></b>(AL)
|
||||
</div>
|
||||
<div>
|
||||
<asp:TextBox runat="server" ID="txtNote" Height="120px" Width="400px" Font-Size="24pt" TextMode="MultiLine" />
|
||||
<div class="panel-body">
|
||||
<asp:TextBox runat="server" ID="txtEsitoPM" Width="100%" Font-Size="28pt" Style="text-align: center" AutoPostBack="True" OnTextChanged="txtEsitoPM_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
<div id="divStampa" runat="server">
|
||||
<asp:LinkButton runat="server" ID="lbtStampaAL" Width="400px" CssClass="btn btn-warning btn-lg" OnClick="lbtStampaAL_Click"><i aria-hidden='true' class='fa fa-print fa-2x'></i> <%: traduci("lbtStampaAL") %></asp:LinkButton>
|
||||
<div id="divDelibera" runat="server">
|
||||
<asp:LinkButton runat="server" ID="lbtDeliberaTT" Width="100%" CssClass="btn btn-warning btn-lg" OnClick="lbtDeliberaTT_Click"><i aria-hidden='true' class='fa fa-print fa-2x'></i> <%: traduci("lbtDeliberaTT") %></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 col-lg-2">
|
||||
<div id="divNumTratt" runat="server" class="panel panel-primary panel-sm">
|
||||
<div class="col-sm-4">
|
||||
<div class="panel panel-primary panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("NumTrattamento") %></b>
|
||||
<b><%: traduci("TrattNoProveMecc") %></b>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<asp:TextBox runat="server" ID="txtNumTratt" Width="100%" Font-Size="28pt" Style="text-align: center" AutoPostBack="True" OnTextChanged="txtNumTratt_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
<div id="divDurezza" runat="server" class="panel panel-primary panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("Durezza") %></b>(AL)
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<asp:TextBox runat="server" ID="txtDurezza" Width="100%" Font-Size="28pt" Style="text-align: center" AutoPostBack="True" OnTextChanged="txtDurezza_TextChanged" />
|
||||
<div class="bg-primary">
|
||||
<asp:Label runat="server" ID="lblNtNoDelib" />
|
||||
</div>
|
||||
<asp:GridView ID="grViewTT" runat="server" AllowSorting="True" AutoGenerateColumns="False"
|
||||
DataKeyNames="UDC" DataSourceID="odsTratt" Width="100%">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Qta" SortExpression="Qta" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<span style="padding: 0px 4px;">
|
||||
<b>
|
||||
<asp:Label ID="lblQta" runat="server" Text='<%# Eval("Qta","{0:#}") %>' /></b>
|
||||
</span>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsTratt" runat="server" OldValuesParameterFormatString="{0}"
|
||||
SelectMethod="getByAL" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="lblNtNoDelib" DefaultValue="AL0000" Name="AL" PropertyName="Text" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -16,57 +16,49 @@ namespace GMW.WebUserControls
|
||||
/// </summary>
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// flusso associato (hard coded) a RX
|
||||
/// Codice attributo da salvare x Prove Meccaniche
|
||||
/// </summary>
|
||||
protected string flusso = "TT";
|
||||
protected string CodAttr = "PM";
|
||||
/// <summary>
|
||||
/// stato associato (hard coded) a Controllato RX
|
||||
/// Numero Trattamento (già deliberato)
|
||||
/// </summary>
|
||||
protected string statoUDC = "Tratt";
|
||||
/// <summary>
|
||||
/// codice evento dell'UDC che si crea
|
||||
/// </summary>
|
||||
protected string codEventoUdc = "UDC_TRATT";
|
||||
/// <summary>
|
||||
/// Codice AL sorgente da avanzare RX --> TT
|
||||
/// </summary>
|
||||
protected string sourceAL
|
||||
protected string NumTT_Delib
|
||||
{
|
||||
get
|
||||
{
|
||||
return lblAL.Text.Trim();
|
||||
return lblNtDelib.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
lblAL.Text = value;
|
||||
lblNtDelib.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Numero trattamento
|
||||
/// Numero Trattamento (NON ANCORA deliberato)
|
||||
/// </summary>
|
||||
protected string NumTratt
|
||||
protected string NumTT_NoDelib
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtNumTratt.Text.Trim();
|
||||
return lblNtNoDelib.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
txtNumTratt.Text = value;
|
||||
lblNtNoDelib.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Durezza
|
||||
/// EsitoPM
|
||||
/// </summary>
|
||||
public string Durezza
|
||||
public string EsitoPM
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtDurezza.Text.Trim();
|
||||
return txtEsitoPM.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
txtDurezza.Text = value;
|
||||
txtEsitoPM.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -83,14 +75,13 @@ namespace GMW.WebUserControls
|
||||
checkBarcode();
|
||||
}
|
||||
/// <summary>
|
||||
/// restta input
|
||||
/// resetta input
|
||||
/// </summary>
|
||||
private void resetIN()
|
||||
{
|
||||
sourceAL = "";
|
||||
NumTratt = "";
|
||||
Durezza = "";
|
||||
txtNote.Text = "";
|
||||
NumTT_Delib = "";
|
||||
NumTT_Delib = "";
|
||||
EsitoPM = "";
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
@@ -120,6 +111,23 @@ namespace GMW.WebUserControls
|
||||
/// </summary>
|
||||
private void checkBarcode()
|
||||
{
|
||||
/**********************************
|
||||
* check barcode deve funzioanre così:
|
||||
* - accetta reset
|
||||
* - cerca in TUTTI i trattamenti se sia valido codice BCode / manuale (fare che select laterale seleziona stesso valore)
|
||||
* - se è in DPM (già deliberato) filtro li (e nascondo tutto su TT da deliberare)
|
||||
* - se è TT non deliberati al contrario mostro li e non in DPM (sempre con filtro su ods)
|
||||
* - mostro txt x inserire valore della PM
|
||||
* - mostro button deliberare
|
||||
* - post delibera aggiorno (togliendo filtri e selezioni valori)
|
||||
*
|
||||
* nb:
|
||||
* - delibere in ordine cronologico DESC
|
||||
* - trattamenti FIFO (ASC)
|
||||
*
|
||||
* */
|
||||
|
||||
#if false
|
||||
if (barcodeIn != "")
|
||||
{
|
||||
Postazione.messaggiText = string.Format("{0}: {1}", traduci("BCodeIns"), barcodeIn);
|
||||
@@ -182,9 +190,11 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
doUpdate();
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// Verifica l'AL se sia ok x procedere:
|
||||
/// - Tipo "R"
|
||||
@@ -238,20 +248,23 @@ namespace GMW.WebUserControls
|
||||
Postazione.warningText = "";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
/// <summary>
|
||||
/// aggiorna componenti + focus a barcode
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
grViewSource.DataBind();
|
||||
grViewDPM.DataBind();
|
||||
grViewTT.DataBind();
|
||||
updateBtns();
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
// controllo SE ho AL allora seleziono NumTratt o Durezza...
|
||||
#if false
|
||||
// controllo SE ho AL allora seleziono NumTratt o EsitoPM...
|
||||
if (sourceAL == "")
|
||||
{
|
||||
txtBarcode.Focus();
|
||||
@@ -264,80 +277,51 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Durezza == "")
|
||||
if (EsitoPM == "")
|
||||
{
|
||||
txtDurezza.Focus();
|
||||
txtEsitoPM.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (txtNote.Text.Trim() == "")
|
||||
{
|
||||
txtNote.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
lbtStampaAL.Focus();
|
||||
}
|
||||
lbtDeliberaTT.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// fix visibilità btnStampa
|
||||
/// </summary>
|
||||
private void updateBtns()
|
||||
{
|
||||
// posso stampare se ho AL, ho num tratt e durezza..
|
||||
bool btnVis = (sourceAL != "");
|
||||
divNumTratt.Visible = btnVis;
|
||||
divDurezza.Visible = btnVis;
|
||||
// posso stampare se ho AL, ho num tratt e durezza..
|
||||
btnVis = (sourceAL != "" && NumTratt != "" && Durezza != "");
|
||||
divStampa.Visible = btnVis;
|
||||
// posso vedere esito PM se ho un numero tratt
|
||||
bool btnVis = (NumTT_Delib != "" || NumTT_NoDelib!="");
|
||||
divEsitoPM.Visible = btnVis;
|
||||
// posso stampare se ho numero tratt ed EsitoPM..
|
||||
btnVis = (NumTT_Delib != "" || NumTT_NoDelib != "" && EsitoPM != "");
|
||||
divDelibera.Visible = btnVis;
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// salva/aggiorna delibera di un TT
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public void ristampa()
|
||||
{
|
||||
MagClass.magazzino.stampaAL(udcReq, Postazione.printer, tipoCartellino.cartAL, Request.UserHostName);
|
||||
// registro ri-stampa UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(DateTime.Now, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, udcReq, "", "stampaAL", "Ri-Stampato AL TT");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
/// <summary>
|
||||
/// udc da stampare
|
||||
/// </summary>
|
||||
protected string udcReq
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("udcSelSAO");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// (ri)stampa AL
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtStampaAL_Click(object sender, EventArgs e)
|
||||
protected void lbtDeliberaTT_Click(object sender, EventArgs e)
|
||||
{
|
||||
#if false
|
||||
/* generazione e stampa AL */
|
||||
string AL = "";
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
// creazione AL ed associazione UDC / spostamento...
|
||||
try
|
||||
{
|
||||
AL = MagClass.magazzino.creaAssociaAlTT(sourceAL, tipoAL.AL_TT, MagClass.magazzino.CodSoggCurrUser, noteTrim, NumTratt, Durezza);
|
||||
AL = MagClass.magazzino.creaAssociaAlTT(sourceAL, tipoAL.AL_TT, MagClass.magazzino.CodSoggCurrUser, noteTrim, NumTratt, EsitoPM);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (AL != "")
|
||||
{
|
||||
// lancio stampa
|
||||
MagClass.magazzino.stampaAL(AL, Postazione.printer, tipoCartellino.cartAL, Request.UserHostName);
|
||||
MagClass.magazzino.DeliberaTT(AL, Postazione.printer, tipoCartellino.cartAL, Request.UserHostName);
|
||||
// registro creazione AL
|
||||
MagClass.magazzino.taSAO.insertQuery(DateTime.Now, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, AL, "", "creaAL", string.Format("Creato AL TT su linea {0}, note: {1} ", Postazione.currCodLinea, noteTrim));
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
@@ -351,7 +335,8 @@ namespace GMW.WebUserControls
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
Postazione.warningText = traduci("ErroreCreazioneALTT");
|
||||
Postazione.messaggiText = "";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -364,11 +349,11 @@ namespace GMW.WebUserControls
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// inserita durezza
|
||||
/// inserita EsitoPM
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtDurezza_TextChanged(object sender, EventArgs e)
|
||||
protected void txtEsitoPM_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
+20
-29
@@ -13,31 +13,31 @@ namespace GMW.WebUserControls {
|
||||
public partial class mod_PostProveMecc {
|
||||
|
||||
/// <summary>
|
||||
/// lblAL control.
|
||||
/// lblNtDelib 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 lblAL;
|
||||
protected global::System.Web.UI.WebControls.Label lblNtDelib;
|
||||
|
||||
/// <summary>
|
||||
/// grViewSource control.
|
||||
/// grViewDPM 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 grViewSource;
|
||||
protected global::System.Web.UI.WebControls.GridView grViewDPM;
|
||||
|
||||
/// <summary>
|
||||
/// odsSource control.
|
||||
/// odsDPM 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 odsSource;
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsDPM;
|
||||
|
||||
/// <summary>
|
||||
/// divBarcode control.
|
||||
@@ -67,75 +67,66 @@ namespace GMW.WebUserControls {
|
||||
protected global::System.Web.UI.WebControls.TextBox txtBarcode;
|
||||
|
||||
/// <summary>
|
||||
/// divNote control.
|
||||
/// divEsitoPM 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 divNote;
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divEsitoPM;
|
||||
|
||||
/// <summary>
|
||||
/// txtNote control.
|
||||
/// txtEsitoPM 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 txtNote;
|
||||
protected global::System.Web.UI.WebControls.TextBox txtEsitoPM;
|
||||
|
||||
/// <summary>
|
||||
/// divStampa control.
|
||||
/// divDelibera 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 divStampa;
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDelibera;
|
||||
|
||||
/// <summary>
|
||||
/// lbtStampaAL control.
|
||||
/// lbtDeliberaTT 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.LinkButton lbtStampaAL;
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtDeliberaTT;
|
||||
|
||||
/// <summary>
|
||||
/// divNumTratt control.
|
||||
/// lblNtNoDelib 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 divNumTratt;
|
||||
protected global::System.Web.UI.WebControls.Label lblNtNoDelib;
|
||||
|
||||
/// <summary>
|
||||
/// txtNumTratt control.
|
||||
/// grViewTT 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 txtNumTratt;
|
||||
protected global::System.Web.UI.WebControls.GridView grViewTT;
|
||||
|
||||
/// <summary>
|
||||
/// divDurezza control.
|
||||
/// odsTratt 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 divDurezza;
|
||||
|
||||
/// <summary>
|
||||
/// txtDurezza 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 txtDurezza;
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsTratt;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -394,5 +394,19 @@ namespace GMW.WebUserControls
|
||||
lbtNT.Visible = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// determina visibilità btn storico
|
||||
/// </summary>
|
||||
public bool showStorico
|
||||
{
|
||||
get
|
||||
{
|
||||
return lbtShowHideStorico.Visible;
|
||||
}
|
||||
set
|
||||
{
|
||||
lbtShowHideStorico.Visible = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user