update con metodi di rimbalzo x particolari
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@161 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
BIN
Binary file not shown.
@@ -11,10 +11,10 @@
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<uc1:mod_listParticolari ID="mod_listParticolari1" runat="server" />
|
||||
<uc2:mod_execParticolari ID="mod_execParticolari1" runat="server" />
|
||||
</td>
|
||||
<td valign="top">
|
||||
<uc3:mod_detailParticolari ID="mod_detailParticolari1" runat="server" />
|
||||
<uc2:mod_execParticolari ID="mod_execParticolari1" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -20,6 +20,27 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
mod_listParticolari1.eh_selValore += new EventHandler(mod_listParticolari1_eh_selValore);
|
||||
mod_listParticolari1.eh_resetSelezione += new EventHandler(mod_listParticolari1_eh_resetSelezione);
|
||||
mod_execParticolari1.eh_btnGoToMagPressed += new EventHandler(mod_execParticolari1_eh_btnGoToMagPressed);
|
||||
mod_execParticolari1.eh_btnListaPrelievoPressed += new EventHandler(mod_execParticolari1_eh_btnListaPrelievoPressed);
|
||||
}
|
||||
/// <summary>
|
||||
/// evento crea lista di prelievo chiamato
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_execParticolari1_eh_btnListaPrelievoPressed(object sender, EventArgs e)
|
||||
{
|
||||
memLayer.ML.setSessionVal("PrecompilaListaPrelievo", true);
|
||||
Response.Redirect("~/ElencoListePrelievo.aspx");
|
||||
}
|
||||
/// <summary>
|
||||
/// evento vai a magazzino chiamato
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_execParticolari1_eh_btnGoToMagPressed(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/DettaglioBlocco.aspx");
|
||||
}
|
||||
|
||||
void mod_listParticolari1_eh_resetSelezione(object sender, EventArgs e)
|
||||
@@ -59,5 +80,6 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -40,15 +40,6 @@ namespace GMW.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_listParticolari mod_listParticolari1;
|
||||
|
||||
/// <summary>
|
||||
/// mod_execParticolari1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_execParticolari mod_execParticolari1;
|
||||
|
||||
/// <summary>
|
||||
/// mod_detailParticolari1 control.
|
||||
/// </summary>
|
||||
@@ -57,5 +48,14 @@ namespace GMW.WebUserControls {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_detailParticolari mod_detailParticolari1;
|
||||
|
||||
/// <summary>
|
||||
/// mod_execParticolari1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_execParticolari mod_execParticolari1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_detailParticolari.ascx.cs" Inherits="GMW.WebUserControls.mod_detailParticolari" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_detailParticolari.ascx.cs"
|
||||
Inherits="GMW.WebUserControls.mod_detailParticolari" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="DescStato,Esponente" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
|
||||
DataKeyNames="DescStato,Esponente,CodMag,IdxBlocco" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
|
||||
OnSorted="grView_Sorted">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
@@ -20,7 +21,7 @@
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
CommandArgument='<%# Eval("CodMag") %>' ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodMag" SortExpression="CodMag">
|
||||
@@ -63,8 +64,7 @@
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getParetoByParticolare"
|
||||
TypeName="GMW_data.DS_magazzinoTableAdapters.V_DettMagPartTableAdapter">
|
||||
SelectMethod="getParetoByParticolare" TypeName="GMW_data.DS_magazzinoTableAdapters.V_DettMagPartTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
|
||||
<asp:SessionParameter Name="Particolare" Type="String" SessionField="Particolare_sel"
|
||||
|
||||
@@ -168,10 +168,14 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
//// salvo in session il lo stato scelto...
|
||||
//SteamWare.memLayer.ML.setSessionVal("DescStato_sel", grView.SelectedDataKey["DescStato"], false);
|
||||
//// salvo anche l'esponente scelto...
|
||||
//SteamWare.memLayer.ML.setSessionVal("Esponente_sel", grView.SelectedDataKey["Esponente"], false);
|
||||
// leggo chiave
|
||||
string DescStato = grView.SelectedDataKey["DescStato"].ToString();
|
||||
string Esponente = grView.SelectedDataKey["Esponente"].ToString();
|
||||
string CodMag = grView.SelectedDataKey["CodMag"].ToString();
|
||||
int IdxBlocco = Convert.ToInt32(grView.SelectedDataKey["IdxBlocco"]);
|
||||
// salvo in session
|
||||
SteamWare.memLayer.ML.setSessionVal("CodMag_sel", CodMag, false);
|
||||
SteamWare.memLayer.ML.setSessionVal("IdxBlocco_sel", IdxBlocco, false);
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selValore != null)
|
||||
{
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
Inherits="GMW.WebUserControls.mod_dettCelleBlocco" %>
|
||||
<asp:Table runat="server" ID="tblBlocco" Width="100%" CellPadding="0" CellSpacing="0">
|
||||
</asp:Table>
|
||||
<asp:Button runat="server" ID="btnReset" Text="reset"
|
||||
onclick="btnReset_Click" />
|
||||
<div style="text-align: center;">
|
||||
<asp:Button runat="server" ID="btnReset" Text="reset" Width="200px" OnClick="btnReset_Click" Visible="false" />
|
||||
</div>
|
||||
|
||||
@@ -201,6 +201,7 @@ namespace GMW.WebUserControls
|
||||
if (BloccoCelle[pos_x, pos_y].KeyVal == IdxCella)
|
||||
{
|
||||
cell.CssClass = "selectedCell";
|
||||
btnReset.Visible = true;
|
||||
}
|
||||
cell.Controls.Add(lnkb);
|
||||
// carico in cella di tabella il linkButton
|
||||
|
||||
@@ -10,7 +10,6 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
public partial class mod_dettaglioBlocco : SteamWare.ApplicationUserControl
|
||||
{
|
||||
|
||||
#region area codice variabile
|
||||
|
||||
/// <summary>
|
||||
@@ -70,6 +69,11 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
mostraOperazioniUdc();
|
||||
}
|
||||
if (memLayer.ML.isInSessionObject("Particolare_sel"))
|
||||
{
|
||||
pnlDetail.Visible = true;
|
||||
mod_paretoPartByFullSpec1.doUpdate();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// nascondo dettagli UDC
|
||||
@@ -78,9 +82,6 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
void mod_operazioniUdc1_eh_hidden(object sender, EventArgs e)
|
||||
{
|
||||
//mod_operazioniUdc1.Visible = false;
|
||||
//mod_dettCelleBlocco1.doUpdate();
|
||||
//updateControlli();
|
||||
memLayer.ML.emptySessionVal("IdxCellaMag");
|
||||
Response.Redirect("~/DettaglioBlocco.aspx");
|
||||
}
|
||||
@@ -116,23 +117,19 @@ namespace GMW.WebUserControls
|
||||
void mod_paretoPartByFullSpec1_eh_resetSelezione(object sender, EventArgs e)
|
||||
{
|
||||
// aggiorno la visualizzazione del magazzino!
|
||||
mod_dettCelleBlocco1.doUpdate();
|
||||
Response.Redirect("~/DettaglioBlocco.aspx");
|
||||
}
|
||||
|
||||
void mod_paretoPartByFullSpec1_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
// aggiorno la visualizzazione del magazzino!
|
||||
mod_dettCelleBlocco1.doUpdate();
|
||||
Response.Redirect("~/DettaglioBlocco.aspx");
|
||||
}
|
||||
|
||||
void mod_paretoUdcBlocco1_eh_resetSelezione(object sender, EventArgs e)
|
||||
{
|
||||
// aggiorno la visualizzazione del magazzino!
|
||||
mod_dettCelleBlocco1.reset();
|
||||
mod_dettCelleBlocco1.doUpdate();
|
||||
mod_paretoPartByFullSpec1.resetSelezione();
|
||||
pnlDetail.Visible = false;
|
||||
mod_operazioniUdc1.Visible = false;
|
||||
Response.Redirect("~/DettaglioBlocco.aspx");
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna in caso di selezione valore x un dato Particolare
|
||||
@@ -142,9 +139,7 @@ namespace GMW.WebUserControls
|
||||
void mod_paretoUdcBlocco1_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
// aggiorno la visualizzazione del magazzino!
|
||||
mod_dettCelleBlocco1.doUpdate();
|
||||
mod_paretoPartByFullSpec1.resetSelezione();
|
||||
pnlDetail.Visible = true;
|
||||
Response.Redirect("~/DettaglioBlocco.aspx");
|
||||
}
|
||||
void mod_filtroBlock_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -291,9 +291,19 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
btnNewLista.Text = traduci("NuovaListaPrelievo");
|
||||
mod_viewRigheListaPrelievo1.Visible = false;
|
||||
mod_nuovaListaPrelievo1.Visible = false;
|
||||
mod_periodoAnalisi1.setPeriodoFree();
|
||||
mod_filtroStato.ods = odsFiltroStati;
|
||||
// controllo se ci sia richiesta x creare nuova lista, nel caso precompilo valori...
|
||||
if (memLayer.ML.BoolSessionObj("PrecompilaListaPrelievo"))
|
||||
{
|
||||
mod_nuovaListaPrelievo1.Visible = true;
|
||||
mod_nuovaListaPrelievo1.ParticolareRichiesto = memLayer.ML.StringSessionObj("Particolare_sel");
|
||||
memLayer.ML.emptySessionVal("PrecompilaListaPrelievo");
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_nuovaListaPrelievo1.Visible = false;
|
||||
}
|
||||
}
|
||||
// registro evento update
|
||||
mod_viewRigheListaPrelievo1.eh_nuovoValore += new EventHandler(mod_viewRigheListaPrelievo1_eh_nuovoValore);
|
||||
|
||||
@@ -1,24 +1,23 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_execParticolari.ascx.cs" Inherits="GMW.WebUserControls.mod_execParticolari" %>
|
||||
modulo operazioni consentite su Particolari
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_execParticolari.ascx.cs"
|
||||
Inherits="GMW.WebUserControls.mod_execParticolari" %>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Button ID="Button1" runat="server" Text="uno" Width="100px" />
|
||||
<asp:Button ID="btnGo2Mag" runat="server" Width="120px" OnClick="btnGo2Mag_Click" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="btnCreaListaPrelievo" runat="server" Width="120px" OnClick="btnCreaListaPrelievo_Click" />
|
||||
</td>
|
||||
<%--
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Button ID="Button2" runat="server" Text="due" Width="100px" />
|
||||
<asp:Button ID="Button3" runat="server" Width="120px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Button ID="Button3" runat="server" Text="tre" Width="100px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Button ID="Button4" runat="server" Text="quattro" Width="100px" />
|
||||
<asp:Button ID="Button4" runat="server" Width="120px" />
|
||||
</td>
|
||||
--%>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace GMW.WebUserControls
|
||||
{
|
||||
@@ -11,7 +12,58 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
traduciObj();
|
||||
}
|
||||
/// <summary>
|
||||
/// traduzione oggetti
|
||||
/// </summary>
|
||||
private void traduciObj()
|
||||
{
|
||||
btnGo2Mag.Text = traduci("btnGo2Mag");
|
||||
btnCreaListaPrelievo.Text = traduci("btnCreaListaPrelievo");
|
||||
}
|
||||
/// <summary>
|
||||
/// evento btnGoToMag
|
||||
/// </summary>
|
||||
public event EventHandler eh_btnGoToMagPressed;
|
||||
/// <summary>
|
||||
/// evento btn1
|
||||
/// </summary>
|
||||
public event EventHandler eh_btnListaPrelievoPressed;
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// va a dettaglio magazzino...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnGo2Mag_Click(object sender, EventArgs e)
|
||||
{
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_btnGoToMagPressed != null)
|
||||
{
|
||||
eh_btnGoToMagPressed(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// crea listsa di prelievo x il particolare indicato (precompila...)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnCreaListaPrelievo_Click(object sender, EventArgs e)
|
||||
{
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_btnListaPrelievoPressed != null)
|
||||
{
|
||||
eh_btnListaPrelievoPressed(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
-22
@@ -14,39 +14,21 @@ namespace GMW.WebUserControls {
|
||||
public partial class mod_execParticolari {
|
||||
|
||||
/// <summary>
|
||||
/// Button1 control.
|
||||
/// btnGo2Mag 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.Button Button1;
|
||||
protected global::System.Web.UI.WebControls.Button btnGo2Mag;
|
||||
|
||||
/// <summary>
|
||||
/// Button2 control.
|
||||
/// btnCreaListaPrelievo 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.Button Button2;
|
||||
|
||||
/// <summary>
|
||||
/// Button3 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.Button Button3;
|
||||
|
||||
/// <summary>
|
||||
/// Button4 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.Button Button4;
|
||||
protected global::System.Web.UI.WebControls.Button btnCreaListaPrelievo;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_listParticolari.ascx.cs" Inherits="GMW.WebUserControls.mod_listParticolari" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_listParticolari.ascx.cs"
|
||||
Inherits="GMW.WebUserControls.mod_listParticolari" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="Particolare" DataSourceID="ods"
|
||||
onpageindexchanged="grView_PageIndexChanged" onsorting="grView_Sorting">
|
||||
DataKeyNames="Particolare" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
|
||||
OnSorting="grView_Sorting">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
@@ -54,11 +55,11 @@
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByParticolareFull"
|
||||
TypeName="GMW_data.DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter"
|
||||
ondatabinding="ods_DataBinding">
|
||||
SelectMethod="getByParticolareFull" TypeName="GMW_data.DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter"
|
||||
OnDataBinding="ods_DataBinding">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="searchVal" Type="String" SessionField="FullSearchValue" DefaultValue="PPP" />
|
||||
<asp:SessionParameter Name="searchVal" Type="String" SessionField="FullSearchValue"
|
||||
DefaultValue="PPP" />
|
||||
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
@@ -211,7 +211,6 @@ namespace GMW.WebUserControls
|
||||
// fix dell'ODS
|
||||
checkFixOds();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
@@ -3,16 +3,18 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Button ID="Button1" runat="server" Text="uno" Width="100px" />
|
||||
<asp:Button ID="btnListePrelievo" runat="server" Width="100px"
|
||||
onclick="btnListePrelievo_Click" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="Button2" runat="server" Text="due" Width="100px" />
|
||||
<asp:Button ID="btnStatoMag" runat="server" Width="100px"
|
||||
onclick="btnStatoMag_Click" />
|
||||
</td>
|
||||
<%-- <td>
|
||||
<asp:Button ID="Button3" runat="server" Width="100px" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="Button3" runat="server" Text="tre" Width="100px" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="Button4" runat="server" Text="quattro" Width="100px" />
|
||||
</td>
|
||||
<asp:Button ID="Button4" runat="server" Width="100px" />
|
||||
</td>--%>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace GMW.WebUserControls
|
||||
{
|
||||
@@ -11,7 +12,42 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
traduciObj();
|
||||
}
|
||||
/// <summary>
|
||||
/// traduzione oggetti
|
||||
/// </summary>
|
||||
private void traduciObj()
|
||||
{
|
||||
btnListePrelievo.Text = traduci("btnListePrelievo");
|
||||
btnStatoMag.Text = traduci("btnStatoMag");
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnListePrelievo_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/ElencoListePrelievo.aspx");
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnStatoMag_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/StatoMag.aspx");
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
-22
@@ -14,39 +14,21 @@ namespace GMW.WebUserControls {
|
||||
public partial class mod_metodiNoSearch {
|
||||
|
||||
/// <summary>
|
||||
/// Button1 control.
|
||||
/// btnListePrelievo 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.Button Button1;
|
||||
protected global::System.Web.UI.WebControls.Button btnListePrelievo;
|
||||
|
||||
/// <summary>
|
||||
/// Button2 control.
|
||||
/// btnStatoMag 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.Button Button2;
|
||||
|
||||
/// <summary>
|
||||
/// Button3 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.Button Button3;
|
||||
|
||||
/// <summary>
|
||||
/// Button4 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.Button Button4;
|
||||
protected global::System.Web.UI.WebControls.Button btnStatoMag;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace GMW.WebUserControls
|
||||
btnCreaNuova.Visible = false;
|
||||
btnCreaNuova.Text = traduci("CreaNuovaListaPrelievo");
|
||||
}
|
||||
checkParticolare();
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
@@ -51,6 +52,11 @@ namespace GMW.WebUserControls
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtParticolare_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
checkParticolare();
|
||||
}
|
||||
|
||||
private void checkParticolare()
|
||||
{
|
||||
// controllo se cod particoalre è valido...
|
||||
if (particolareOk(txtParticolare.Text.Trim()))
|
||||
@@ -101,5 +107,21 @@ namespace GMW.WebUserControls
|
||||
/// evento nuovo valore
|
||||
/// </summary>
|
||||
public event EventHandler eh_nuovoValore;
|
||||
/// <summary>
|
||||
/// valore del aprticolare della lsita prelievo get/set
|
||||
/// </summary>
|
||||
public string ParticolareRichiesto
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtParticolare.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtParticolare.Text = value;
|
||||
checkParticolare();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="DescStato,Esponente" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
|
||||
OnSorted="grView_Sorted">
|
||||
OnSorted="grView_Sorted" onrowdatabound="grView_RowDataBound">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
|
||||
@@ -112,7 +112,6 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
base.OnInit(e);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// segnalo nuovo valore filtro attivo...
|
||||
/// </summary>
|
||||
@@ -164,7 +163,6 @@ namespace GMW.WebUserControls
|
||||
eh_selValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
@@ -187,7 +185,27 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
checkFixOds();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// controllo se è da selezionare la riga...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
// se riga di dati...
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
// ottengo la riga tipizzata...
|
||||
System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
|
||||
DS_magazzino.V_DettMagPartRow riga = (DS_magazzino.V_DettMagPartRow)_drv.Row;
|
||||
bool cond1 = SteamWare.memLayer.ML.StringSessionObj("DescStato_sel") == riga.DescStato.ToString();
|
||||
bool cond2 = SteamWare.memLayer.ML.StringSessionObj("Esponente_sel") == riga.Esponente.ToString();
|
||||
if (cond1 && cond2)
|
||||
{
|
||||
grView.SelectedIndex = e.Row.RowIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="Particolare" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
|
||||
OnSorted="grView_Sorted">
|
||||
OnSorted="grView_Sorted" onrowdatabound="grView_RowDataBound">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// collega i controlli
|
||||
@@ -87,7 +87,7 @@ namespace GMW.WebUserControls
|
||||
#endregion
|
||||
|
||||
#region area codice variabile
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// carico le tabelle
|
||||
/// </summary>
|
||||
@@ -178,7 +178,7 @@ namespace GMW.WebUserControls
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
lblWarning.Visible = false;
|
||||
@@ -194,6 +194,25 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// controllo se è da selezionare la riga...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
// se riga di dati...
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
// ottengo la riga tipizzata...
|
||||
System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
|
||||
DS_magazzino.V_DettMagPartRow riga = (DS_magazzino.V_DettMagPartRow)_drv.Row;
|
||||
if (SteamWare.memLayer.ML.StringSessionObj("Particolare_sel") == riga.Particolare.ToString())
|
||||
{
|
||||
grView.SelectedIndex = e.Row.RowIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -4,9 +4,10 @@
|
||||
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc2" %>
|
||||
<%@ Register Src="mod_metodiNoSearch.ascx" TagName="mod_metodiNoSearch" TagPrefix="uc3" %>
|
||||
<%@ Register Src="mod_SearchProvUDC.ascx" TagName="mod_SearchProvUDC" TagPrefix="uc1" %>
|
||||
<%@ Register src="mod_SearchProvCelle.ascx" tagname="mod_SearchProvCelle" tagprefix="uc4" %>
|
||||
<%@ Register src="mod_SearchProvParticolari.ascx" tagname="mod_SearchProvParticolari" tagprefix="uc5" %>
|
||||
<%@ Register src="Mod_SearchProvImballi.ascx" tagname="Mod_SearchProvImballi" tagprefix="uc6" %>
|
||||
<%@ Register Src="mod_SearchProvCelle.ascx" TagName="mod_SearchProvCelle" TagPrefix="uc4" %>
|
||||
<%@ Register Src="mod_SearchProvParticolari.ascx" TagName="mod_SearchProvParticolari"
|
||||
TagPrefix="uc5" %>
|
||||
<%@ Register Src="Mod_SearchProvImballi.ascx" TagName="Mod_SearchProvImballi" TagPrefix="uc6" %>
|
||||
<div style="width: 1024px; margin: 0 auto; background: white; vertical-align: text-top;">
|
||||
<div style="font-size: 48pt; font-family: 'times New Roman', Times, serif; text-align: center;
|
||||
width: 100%;">
|
||||
@@ -41,19 +42,20 @@
|
||||
<table cellspacing="0" cellpadding="4" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<asp:CheckBox runat="server" ID="chkLikeType" OnCheckedChanged="chkLikeType_CheckedChanged" AutoPostBack="True" />
|
||||
<asp:CheckBox runat="server" ID="chkLikeType" OnCheckedChanged="chkLikeType_CheckedChanged"
|
||||
AutoPostBack="True" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<asp:Panel runat="server" ID="pnlResults">
|
||||
<uc1:mod_SearchProvUDC ID="mod_SearchProvUDC1" runat="server" />
|
||||
<br />
|
||||
<uc4:mod_SearchProvCelle ID="mod_SearchProvCelle1" runat="server" />
|
||||
<br />
|
||||
<uc5:mod_SearchProvParticolari ID="mod_SearchProvParticolari1" runat="server" />
|
||||
<br />
|
||||
<uc6:Mod_SearchProvImballi ID="Mod_SearchProvImballi1" runat="server" />
|
||||
<uc5:mod_SearchProvParticolari ID="mod_SearchProvParticolari1" runat="server" />
|
||||
<br />
|
||||
<uc1:mod_SearchProvUDC ID="mod_SearchProvUDC1" runat="server" />
|
||||
<br />
|
||||
<uc4:mod_SearchProvCelle ID="mod_SearchProvCelle1" runat="server" />
|
||||
<%--<br />
|
||||
<uc6:Mod_SearchProvImballi ID="Mod_SearchProvImballi1" runat="server" />--%>
|
||||
</asp:Panel>
|
||||
<asp:Panel runat="server" ID="pnlEmpty" Height="100px">
|
||||
</asp:Panel>
|
||||
|
||||
@@ -57,8 +57,8 @@ namespace GMW.WebUserControls
|
||||
mod_SearchProvCelle1.doSearch();
|
||||
mod_SearchProvParticolari1.Visible = true;
|
||||
mod_SearchProvParticolari1.doSearch();
|
||||
Mod_SearchProvImballi1.Visible = true;
|
||||
Mod_SearchProvImballi1.doSearch();
|
||||
//Mod_SearchProvImballi1.Visible = true;
|
||||
//Mod_SearchProvImballi1.doSearch();
|
||||
|
||||
}
|
||||
else
|
||||
@@ -70,29 +70,29 @@ namespace GMW.WebUserControls
|
||||
mod_SearchProvUDC1.Visible = false;
|
||||
mod_SearchProvCelle1.Visible = false;
|
||||
mod_SearchProvParticolari1.Visible = false;
|
||||
Mod_SearchProvImballi1.Visible = true;
|
||||
Mod_SearchProvImballi1.doSearch();
|
||||
//Mod_SearchProvImballi1.Visible = true;
|
||||
//Mod_SearchProvImballi1.doSearch();
|
||||
break;
|
||||
case "C":
|
||||
mod_SearchProvUDC1.Visible = false;
|
||||
mod_SearchProvCelle1.Visible = true;
|
||||
mod_SearchProvCelle1.doSearch();
|
||||
mod_SearchProvParticolari1.Visible = false;
|
||||
Mod_SearchProvImballi1.Visible = false;
|
||||
//Mod_SearchProvImballi1.Visible = false;
|
||||
break;
|
||||
case "P":
|
||||
mod_SearchProvUDC1.Visible = false;
|
||||
mod_SearchProvCelle1.Visible = false;
|
||||
mod_SearchProvParticolari1.Visible = true;
|
||||
mod_SearchProvParticolari1.doSearch();
|
||||
Mod_SearchProvImballi1.Visible = false;
|
||||
//Mod_SearchProvImballi1.Visible = false;
|
||||
break;
|
||||
case "U":
|
||||
mod_SearchProvUDC1.Visible = true;
|
||||
mod_SearchProvUDC1.doSearch();
|
||||
mod_SearchProvCelle1.Visible = false;
|
||||
mod_SearchProvParticolari1.Visible = false;
|
||||
Mod_SearchProvImballi1.Visible = false;
|
||||
//Mod_SearchProvImballi1.Visible = false;
|
||||
break;
|
||||
default:
|
||||
mod_SearchProvUDC1.Visible = true;
|
||||
@@ -101,8 +101,8 @@ namespace GMW.WebUserControls
|
||||
mod_SearchProvCelle1.doSearch();
|
||||
mod_SearchProvParticolari1.Visible = true;
|
||||
mod_SearchProvParticolari1.doSearch();
|
||||
Mod_SearchProvImballi1.Visible = true;
|
||||
Mod_SearchProvImballi1.doSearch();
|
||||
//Mod_SearchProvImballi1.Visible = true;
|
||||
//Mod_SearchProvImballi1.doSearch();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
+9
-18
@@ -67,6 +67,15 @@ namespace GMW.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlResults;
|
||||
|
||||
/// <summary>
|
||||
/// mod_SearchProvParticolari1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_SearchProvParticolari mod_SearchProvParticolari1;
|
||||
|
||||
/// <summary>
|
||||
/// mod_SearchProvUDC1 control.
|
||||
/// </summary>
|
||||
@@ -85,24 +94,6 @@ namespace GMW.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_SearchProvCelle mod_SearchProvCelle1;
|
||||
|
||||
/// <summary>
|
||||
/// mod_SearchProvParticolari1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_SearchProvParticolari mod_SearchProvParticolari1;
|
||||
|
||||
/// <summary>
|
||||
/// Mod_SearchProvImballi1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.Mod_SearchProvImballi Mod_SearchProvImballi1;
|
||||
|
||||
/// <summary>
|
||||
/// pnlEmpty control.
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -38,5 +38,23 @@ namespace GMW.WS
|
||||
return suggerimenti.ToArray();
|
||||
}
|
||||
|
||||
[System.Web.Services.WebMethod]
|
||||
public string[] elencoCelle(string prefixText, int count)
|
||||
{
|
||||
// inizializzo risposta
|
||||
List<string> suggerimenti = new List<string>();
|
||||
// proseguo SOLO SE min "MinCharAutocomplete" char...
|
||||
if (count > memLayer.ML.confReadInt("MinCharAutocomplete"))
|
||||
{
|
||||
// elenco candidati
|
||||
DS_magazzino.CelleDataTable tabCelle = MagClass.magazzino.taCelle.getByCodCellaLike(prefixText, memLayer.ML.confReadString("CodCS"));
|
||||
// aggiungo ogni riga...
|
||||
foreach (DS_magazzino.CelleRow riga in tabCelle)
|
||||
{
|
||||
suggerimenti.Add(riga.CodCella);
|
||||
}
|
||||
}
|
||||
return suggerimenti.ToArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -350,7 +350,7 @@
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW"
|
||||
"ProductCode" = "8:{44EF12AC-C76E-4C7D-BED1-43F08AB636E4}"
|
||||
"PackageCode" = "8:{5BE1C147-CEA9-4F17-94DB-6B37027E316C}"
|
||||
"PackageCode" = "8:{94CD7F4C-97FF-4212-A4E1-E600A5C7858B}"
|
||||
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
@@ -801,7 +801,7 @@
|
||||
{
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_4FD0E5B75A7F47B79080EC0983BE6583"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Debug\\SetDirectoryPermission.exe"
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Release\\SetDirectoryPermission.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
@@ -829,7 +829,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_8BDD7AA9D46A46EC80880F83F13C902E"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Debug\\IISConsoleVB.exe"
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Release\\IISConsoleVB.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
|
||||
Reference in New Issue
Block a user