completo bozza trattamenti con schemi elementi grafici
This commit is contained in:
@@ -121,6 +121,8 @@
|
||||
<add key="QtaImballoFusi" value="50" />
|
||||
<add key="CodImballoSterr" value="" />
|
||||
<add key="QtaImballoSterr" value="0" />
|
||||
<add key="CodImballoTratt" value="" />
|
||||
<add key="QtaImballoTratt" value="0" />
|
||||
<add key="CodImballoFiniti" value="" />
|
||||
<add key="QtaImballoFiniti" value="40" />
|
||||
<!--Setup urls stampa reports-->
|
||||
|
||||
@@ -51,14 +51,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div style="float: left; padding: 4px; text-align: left; width: 220px; height: 300px;">
|
||||
<div>
|
||||
<div style="float: left; padding: 4px; text-align: left;">
|
||||
<div class="divSx" style="width: 210px; height: 240px;">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblNumTratt" />
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
</div>
|
||||
<div style="padding: 2px;">
|
||||
<div class="clearDiv" style="padding: 2px;">
|
||||
<div style="float: left;">
|
||||
<asp:TextBox runat="server" ID="txtTratt" Height="56px" Width="160px" Font-Size="32pt" TabIndex="6" />
|
||||
<asp:RegularExpressionValidator ID="revNumTratt" runat="server" ErrorMessage="!!! [1...999999] !!!" ValidationExpression="\d{1,6}" ControlToValidate="txtTratt" Display="Dynamic" />
|
||||
@@ -67,104 +65,40 @@
|
||||
<asp:Button runat="server" ID="btnAdd" Height="56px" Width="40px" Font-Size="20pt" Text="+" OnClick="btnAdd_Click" TabIndex="7" />
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both;">
|
||||
</div>
|
||||
<div style="padding: 2px;">
|
||||
<div class="clearDiv" style="padding: 2px;">
|
||||
<div style="float: left;">
|
||||
<asp:ListBox ID="lbTrattamenti" runat="server" Height="160px" Width="166px" Font-Size="20pt" TabIndex="10" />
|
||||
<asp:ListBox ID="lbTrattamenti" runat="server" Height="140px" Width="166px" Font-Size="20pt" TabIndex="10" />
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
<asp:Button runat="server" ID="btnSvuota" Height="56px" Width="40px" Font-Size="20pt" Text="-" OnClick="btnSvuota_Click" TabIndex="8" />
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both;">
|
||||
</div>
|
||||
<div style="padding: 2px;">
|
||||
</div>
|
||||
<div class="divDx" style="width: 190px; height: 240px;">
|
||||
<div style="float: right;">
|
||||
<asp:Label runat="server" ID="lblAnnoTratt" />
|
||||
<br />
|
||||
<asp:TextBox runat="server" ID="txtAnno" Height="56px" Width="166px" Font-Size="32pt" TabIndex="9" Style="text-align: center" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearDiv" style="float: left; text-align: center;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnDataBound="grView_DataBound"
|
||||
DataKeyNames="UDC" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
|
||||
OnSorted="grView_Sorted">
|
||||
<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 ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
|
||||
Visible="true" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>--%>
|
||||
<asp:TemplateField HeaderText="lastMov" SortExpression="lastMov" ItemStyle-Wrap="false">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbllastMov" runat="server" Text='<%# Eval("lastMov", "{0:dd/MM HH:mm}") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle Wrap="False" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="UDC" SortExpression="UDC">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblUDC" runat="server" Text='<%# Eval("UDC") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<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>
|
||||
<asp:Label ID="lblQta" runat="server" Text='<%# Eval("Qta","{0:#}") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:RadioButtonList ID="rbl" runat="server" RepeatDirection="Horizontal" ToolTip='<%# Eval("UDC") %>' OnDataBinding="rbl_DataBinding" OnDataBound="rbl_DataBound" AutoPostBack="True" OnSelectedIndexChanged="rbl_SelectedIndexChanged">
|
||||
<asp:ListItem Value="P" Text="" />
|
||||
<asp:ListItem Value="C" Text="" />
|
||||
</asp:RadioButtonList>
|
||||
</ItemTemplate>
|
||||
<HeaderTemplate>
|
||||
P | C
|
||||
<%--<asp:CheckBox ID="btnSelAll" runat="server" Checked="false" ToolTip='<%# traduci("btnSelAll") %>'
|
||||
OnCheckedChanged="btnSelAll_Click" CssClass="ctrHeaderPager" AutoPostBack="true"></asp:CheckBox>--%>
|
||||
</HeaderTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getUdcDetailByIdxCella" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter"
|
||||
OnDataBinding="ods_DataBinding" FilterExpression="UDC LIKE '%{0}%' OR PARTICOLARE LIKE '%{0}%'">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="IdxCella" Type="Int32" SessionField="IdxCellaLinea" DefaultValue="0" />
|
||||
</SelectParameters>
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter Name="search" Type="String" SessionField="valoreCercatoSTO"
|
||||
DefaultValue="" />
|
||||
</FilterParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<div class="divSx" style="width: 400px; height: 240px;">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblUDC" />
|
||||
</div>
|
||||
<div class="divDx" style="padding: 2px;">
|
||||
<div style="float: left;">
|
||||
<asp:ListBox ID="lbUdc" runat="server" Height="160px" Width="246px" Font-Size="18pt" TabIndex="10" />
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
<asp:Button runat="server" ID="btnSvuotaUDC" Height="56px" Width="40px" Font-Size="20pt" Text="-" OnClick="btnSvuotaUDC_Click" TabIndex="8" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="float: right; padding: 4px; text-align: right; width: 220px; height: 300px;">
|
||||
<div style="float: right; padding: 4px; text-align: right; width: 400px; height: 300px;">
|
||||
<div style="float: right; text-align: center;">
|
||||
<asp:Label runat="server" ID="lblQta" />
|
||||
<br />
|
||||
@@ -175,7 +109,7 @@
|
||||
</div>
|
||||
<asp:Button runat="server" ID="btnStampa" Height="120px" Width="208px" Font-Size="20pt" OnClick="btnStampa_Click" TabIndex="7" />
|
||||
</div>
|
||||
<div style="float: none; padding: 4px; text-align: center; margin: auto;">
|
||||
<div style="float: none; padding: 4px; text-align: center; margin: auto; display: inline-block;">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
|
||||
<br />
|
||||
|
||||
@@ -14,10 +14,14 @@ namespace GMW.WebUserControls
|
||||
/// </summary>
|
||||
protected string flusso = "TT";
|
||||
/// <summary>
|
||||
/// stato associato (hard coded) a FUSI
|
||||
/// stato associato (hard coded) a Trattati
|
||||
/// </summary>
|
||||
protected string statoUDC = "Tratt";
|
||||
/// <summary>
|
||||
/// stato associato all'UDC precedente (Sterrato)
|
||||
/// </summary>
|
||||
protected string statoUDC_pre = "Sterr";
|
||||
/// <summary>
|
||||
/// tipo di evento associato alla creazione dell'UDC
|
||||
/// </summary>
|
||||
protected string eventoUDC = "UDC_TRATT";
|
||||
@@ -74,7 +78,7 @@ namespace GMW.WebUserControls
|
||||
storicoVisibile = false;
|
||||
fixStorico();
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.idxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneAnime");
|
||||
mod_storicoAzioniOperatore1.idxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneTrattati");
|
||||
}
|
||||
doChecks();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
@@ -87,7 +91,7 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
|
||||
{
|
||||
MagClass.magazzino.stampaUdc(udcReq, postazione_printer, tipoCartellino.cartAnime, Request.UserHostName);
|
||||
MagClass.magazzino.stampaUdc(udcReq, postazione_printer, tipoCartellino.cartTratt, Request.UserHostName);
|
||||
// registro ri-stampa UDC
|
||||
DateTime adesso = DateTime.Now;
|
||||
// calcolo particolare...
|
||||
@@ -100,9 +104,9 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore recupero particolare UDC AnimeExt {0}", udcReq), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format("Errore recupero particolare UDC Trattati {0}", udcReq), tipoLog.EXCEPTION);
|
||||
}
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, postazione_name, postazione_IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC Anime Mult");
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, postazione_name, postazione_IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC Trattati");
|
||||
}
|
||||
/// <summary>
|
||||
/// udc da stampare
|
||||
@@ -163,8 +167,12 @@ namespace GMW.WebUserControls
|
||||
lblQta.Text = traduci("lblQuantitaTotale");
|
||||
lblNote.Text = traduci("lblNote");
|
||||
lblCurrentPage.Text = traduci(PagCorrente);
|
||||
lblAnnoTratt.Text = traduci("lblAnnoTratt");
|
||||
lblNumTratt.Text = traduci("lblNumTratt");
|
||||
lblUDC.Text = traduci("lblUDC");
|
||||
//txtBox
|
||||
txtQta.Text = memLayer.ML.confReadString("QtaImballoAnime");
|
||||
txtQta.Text = memLayer.ML.confReadString("QtaImballoTratt");
|
||||
txtAnno.Text = DateTime.Now.Year.ToString();
|
||||
// buttons
|
||||
btnStampa.Text = traduci("btnStampa");
|
||||
btnEmptyNote.Text = traduci("btnEmptyNote");
|
||||
@@ -458,7 +466,6 @@ namespace GMW.WebUserControls
|
||||
private void doUpdate()
|
||||
{
|
||||
checkStampa();
|
||||
grView.DataBind();
|
||||
mod_storicoAzioniOperatore1.doUpdate();
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
@@ -526,7 +533,7 @@ namespace GMW.WebUserControls
|
||||
string[] stringSeparators = new string[] { "#" };
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC anime multiple
|
||||
// creo nuovo UDC trattati
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoSterr"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneSterrati"), "IdxPosizioneSterrati", eventoUDC, noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, postazione_name, postazione_IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Sterrato, qta: {0} {1}", qta, noteTrim));
|
||||
@@ -570,7 +577,7 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("ANIME MULTIPLE, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
httpLog(string.Format("TRATTATI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
mod_storicoAzioniOperatore1.doUpdate();
|
||||
@@ -752,36 +759,7 @@ namespace GMW.WebUserControls
|
||||
private void checkFixOds()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// traduce gli header delle colonne
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.Rows.Count > 0)
|
||||
{
|
||||
LinkButton lb;
|
||||
// aggiorno gli headers
|
||||
foreach (TableCell cella in grView.HeaderRow.Cells)
|
||||
{
|
||||
try
|
||||
{
|
||||
lb = (LinkButton)cella.Controls[0];
|
||||
lb.Text = traduci(lb.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
|
||||
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblNumRec.Text = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected void rbl_DataBinding(object sender, EventArgs e)
|
||||
{
|
||||
RadioButtonList rbl = (RadioButtonList)sender;
|
||||
@@ -892,5 +870,101 @@ namespace GMW.WebUserControls
|
||||
txtTratt.Text = "";
|
||||
updateListBoxTrattamenti();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// elenco dictionary dei trattamenti da associare ad UDC
|
||||
/// </summary>
|
||||
public Dictionary<string, string> elencoUDC
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return (Dictionary<string, string>)memLayer.ML.objSessionObj("elencoUDC");
|
||||
}
|
||||
catch
|
||||
{
|
||||
return new Dictionary<string, string>();
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("elencoUDC", value, false);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// svuota elenco trattamenti
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSvuotaUDC_Click(object sender, EventArgs e)
|
||||
{
|
||||
Dictionary<string, string> elenco = new Dictionary<string, string>();
|
||||
elencoUDC = elenco;
|
||||
//txtUDC.Text = "";
|
||||
//lblWarnUdc.Visible = false;
|
||||
updateListBoxUDC();
|
||||
doChecks();
|
||||
}
|
||||
/// <summary>
|
||||
/// controlla validità UDC x inserire in elenco...
|
||||
/// </summary>
|
||||
/// <param name="valore"></param>
|
||||
private void checkUdc4elenco(string valore)
|
||||
{
|
||||
#if false
|
||||
if (MagClass.magazzino.checkUDC(valore))
|
||||
{
|
||||
// controllo sia un cartellino F10...
|
||||
DS_Applicazione.ElencoCartelliniRow rigaCart;
|
||||
string tipoImballo = "";
|
||||
try
|
||||
{
|
||||
rigaCart = DataProxy.obj.taCartellini.stp_getByUdc(valore)[0];
|
||||
tipoImballo = rigaCart.CodImballo;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo il tipo imballo dell'UDC per decidere se sia F10...
|
||||
if (tipoImballo == memLayer.ML.confReadString("CodImballoLiquidi"))
|
||||
{
|
||||
Dictionary<string, string> elenco = elencoUDC;
|
||||
// controllo il valore non ci sia già...
|
||||
if (!elenco.ContainsKey(valore))
|
||||
{
|
||||
elenco.Add(valore, valore);
|
||||
elencoUDC = elenco;
|
||||
}
|
||||
txtUDC.Text = "";
|
||||
lblWarnUdc.Visible = false;
|
||||
updateListBoxUDC();
|
||||
}
|
||||
else
|
||||
{
|
||||
// elimino UDC con imballo non valido!
|
||||
txtUDC.Text = "";
|
||||
lblWarnUdc.Text = traduci("UdcImballoErrato");
|
||||
lblWarnUdc.Visible = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// elimino UDC non valido!
|
||||
txtUDC.Text = "";
|
||||
lblWarnUdc.Text = traduci("UdcNonTrovato");
|
||||
lblWarnUdc.Visible = true;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna la listbox
|
||||
/// </summary>
|
||||
private void updateListBoxUDC()
|
||||
{
|
||||
lbUdc.DataSource = elencoUDC;
|
||||
lbUdc.DataTextField = "Value";
|
||||
lbUdc.DataValueField = "Key";
|
||||
lbUdc.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
-6
@@ -211,31 +211,31 @@ namespace GMW.WebUserControls {
|
||||
protected global::System.Web.UI.WebControls.TextBox txtAnno;
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// lblUDC 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;
|
||||
protected global::System.Web.UI.WebControls.Label lblUDC;
|
||||
|
||||
/// <summary>
|
||||
/// ods control.
|
||||
/// lbUdc 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;
|
||||
protected global::System.Web.UI.WebControls.ListBox lbUdc;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumRec control.
|
||||
/// btnSvuotaUDC 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 lblNumRec;
|
||||
protected global::System.Web.UI.WebControls.Button btnSvuotaUDC;
|
||||
|
||||
/// <summary>
|
||||
/// lblQta control.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -146,6 +146,7 @@ public enum tipoCartellino
|
||||
cartMP,
|
||||
cartSterr,
|
||||
cartTara,
|
||||
cartTratt,
|
||||
cartWip
|
||||
}
|
||||
public enum tipoSelettore
|
||||
|
||||
Reference in New Issue
Block a user