diff --git a/XPS/Appunti.txt b/XPS/Appunti.txt
new file mode 100644
index 0000000..6f1409e
--- /dev/null
+++ b/XPS/Appunti.txt
@@ -0,0 +1,10 @@
+------------------------------------------------
+- 20081024
+------------------------------------------------
+OK 01 - togliere codCli (non gli serve)
+OK 02 - togliere data prev da ins magazziniere...
+03 - una vista x ogni funzione
+04 - barcode da web?
+05 - avanzamento stato: obj mamma ha stato min tra i vari child
+06 - agganciare filtraggi e filtro ricerca generica
+OK 07 - accettazione x magazziniere, che non possa accettare o cancellare post aver già accettato... idem x editing...
\ No newline at end of file
diff --git a/XPS/Web.config b/XPS/Web.config
index fe2bfef..3b5acf3 100644
--- a/XPS/Web.config
+++ b/XPS/Web.config
@@ -113,7 +113,7 @@
-
diff --git a/XPS/detComm.aspx.cs b/XPS/detComm.aspx.cs
index d480830..535cef8 100644
--- a/XPS/detComm.aspx.cs
+++ b/XPS/detComm.aspx.cs
@@ -10,6 +10,12 @@ public partial class detComm : System.Web.UI.Page
{
mod_dettComm1.eh_selValore += new EventHandler(mod_dettComm1_eh_selValore);
mod_dettComm1.eh_resetSelezione += new EventHandler(mod_dettComm1_eh_resetSelezione);
+ mod_ULP1.eh_nuovoValore += new EventHandler(mod_ULP1_eh_nuovoValore);
+ }
+
+ void mod_ULP1_eh_nuovoValore(object sender, EventArgs e)
+ {
+ mod_dettComm1.doUpdateNoReset();
}
void mod_dettComm1_eh_resetSelezione(object sender, EventArgs e)
diff --git a/XPS/elencoComm.aspx b/XPS/elencoComm.aspx
index 5afcb09..c477a7e 100644
--- a/XPS/elencoComm.aspx
+++ b/XPS/elencoComm.aspx
@@ -1,7 +1,9 @@
<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="elencoComm.aspx.cs" Inherits="elencoComm" Title="Untitled Page" %>
<%@ Register Src="mod_elencoComm.ascx" TagName="mod_elencoComm" TagPrefix="uc1" %>
+<%@ Register src="mod_fixCal.ascx" tagname="mod_fixCal" tagprefix="uc2" %>
+
diff --git a/XPS/mod_ULP.ascx b/XPS/mod_ULP.ascx
index 7138074..59288a6 100644
--- a/XPS/mod_ULP.ascx
+++ b/XPS/mod_ULP.ascx
@@ -4,7 +4,7 @@
<%@ Register Src="mod_navPath.ascx" TagName="mod_navPath" TagPrefix="uc2" %>
+ OnDataBound="grView_DataBound" OnRowUpdating="grView_RowUpdating" OnRowUpdated="grView_RowUpdated">
@@ -19,15 +19,15 @@
-
+ <%----%>
-
+ <%----%>
+ Visible='<%# userCanDel(Eval("CodStato")) %>' CommandName="Update" OnClick="imgClonaRow_Click" />
@@ -53,7 +53,8 @@
+ ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>'
+ Visible='<%# userCanDel(Eval("CodStato")) %>' />
-
-
+
+
+
+
+
+
+
+
+
+ Visible='<%# userCanDel(Eval("CodStato")) %>' />
@@ -113,7 +119,7 @@
-
@@ -123,6 +129,7 @@
+
diff --git a/XPS/mod_ULP.ascx.cs b/XPS/mod_ULP.ascx.cs
index 4b1fa8c..a3e26c3 100644
--- a/XPS/mod_ULP.ascx.cs
+++ b/XPS/mod_ULP.ascx.cs
@@ -229,14 +229,6 @@ public partial class mod_ULP : ApplicationUserControl
#endif
}
///
- /// determina se l'utente possa cancellare, x ora sempre si...
- ///
- ///
- public bool userCanDel()
- {
- return true;
- }
- ///
/// gestione cambio selezione valore
///
///
@@ -292,7 +284,38 @@ public partial class mod_ULP : ApplicationUserControl
break;
}
}
-
+ ///
+ /// righe aggiornate
+ ///
+ ///
+ ///
+ protected void grView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
+ {
+ // segnalo update...
+ if (eh_nuovoValore != null)
+ {
+ eh_nuovoValore(this, new EventArgs());
+ }
+ }
+ ///
+ /// restituisce se sia visibile il controllo di accettazione...
+ ///
+ ///
+ ///
+ public bool isAccettVisible(object codStato)
+ {
+ bool answ = true;
+ if (codStato.ToString().IndexOf("01") < 0) answ = false;
+ return answ;
+ }
+ ///
+ /// determina se l'utente possa cancellare, x ora sempre si...
+ ///
+ ///
+ public bool userCanDel(object codStato)
+ {
+ return isAccettVisible(codStato);
+ }
#endregion
}
\ No newline at end of file
diff --git a/XPS/mod_dettComm.ascx b/XPS/mod_dettComm.ascx
index 3ccf0e9..9ed7218 100644
--- a/XPS/mod_dettComm.ascx
+++ b/XPS/mod_dettComm.ascx
@@ -31,7 +31,7 @@
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
+ CommandName="Update" OnClick="imgClonaRow_Click" Visible='<%# userCanDel(Eval("CodStato")) %>' />
@@ -41,25 +41,14 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+ ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' Visible='<%# userCanDel(Eval("CodStato")) %>' />
+ Visible='<%# userCanDel(Eval("CodStato")) %>' />
diff --git a/XPS/mod_dettComm.ascx.cs b/XPS/mod_dettComm.ascx.cs
index 53484a2..db0b61b 100644
--- a/XPS/mod_dettComm.ascx.cs
+++ b/XPS/mod_dettComm.ascx.cs
@@ -78,6 +78,7 @@ public partial class mod_dettComm : ApplicationUserControl
eh_resetSelezione(this, new EventArgs());
}
}
+
#endregion
#region gestione eventi
@@ -246,14 +247,6 @@ public partial class mod_dettComm : ApplicationUserControl
#endif
}
///
- /// determina se l'utente possa cancellare, x ora sempre si...
- ///
- ///
- public bool userCanDel()
- {
- return true;
- }
- ///
/// gestione cambio selezione valore
///
///
@@ -309,7 +302,32 @@ public partial class mod_dettComm : ApplicationUserControl
break;
}
}
-
+ ///
+ /// effettua update del modulo
+ ///
+ public void doUpdateNoReset()
+ {
+ grView.DataBind();
+ }
+ ///
+ /// restituisce se sia visibile il controllo di accettazione...
+ ///
+ ///
+ ///
+ public bool isAccettVisible(object codStato)
+ {
+ bool answ = true;
+ if (codStato.ToString().IndexOf("01") < 0) answ = false;
+ return answ;
+ }
+ ///
+ /// determina se l'utente possa cancellare, x ora sempre si...
+ ///
+ ///
+ public bool userCanDel(object codStato)
+ {
+ return isAccettVisible(codStato);
+ }
#endregion
}
\ No newline at end of file
diff --git a/XPS/mod_elencoComm.ascx b/XPS/mod_elencoComm.ascx
index 77009f8..beaffa7 100644
--- a/XPS/mod_elencoComm.ascx
+++ b/XPS/mod_elencoComm.ascx
@@ -12,7 +12,7 @@
|
-
+
|
@@ -33,14 +33,19 @@
|
+
|
|
-
+
|
-
+
+
+
+
|
@@ -49,11 +54,12 @@
|
+
|
|
-
+
|
@@ -64,7 +70,7 @@
+ OnDataBound="grView_DataBound" onrowupdating="grView_RowUpdating">
@@ -85,8 +91,10 @@
+
-
+ <%--
-
+ --%>
@@ -106,6 +114,8 @@
+
@@ -116,11 +126,10 @@
Target="_blank" ToolTip='<%# traduci("stampaBarcode") %>' />
-
-
+
-
-
+
@@ -134,7 +143,7 @@
+ Visible='<%# userCanDel(Eval("CodStato")) %>' />
diff --git a/XPS/mod_elencoComm.ascx.cs b/XPS/mod_elencoComm.ascx.cs
index 3274dcc..88d43a5 100644
--- a/XPS/mod_elencoComm.ascx.cs
+++ b/XPS/mod_elencoComm.ascx.cs
@@ -161,8 +161,8 @@ public partial class mod_elencoComm : ApplicationUserControl
btnShowNew.Text = traduci("btnShowNew");
btnNewComm.Text = traduci("btnNewComm");
lblCli.Text = traduci("lblCli");
- lblNomeComm.Text = traduci("lblNomeComm");
lblNumDDT.Text = traduci("lblNumDDT");
+ lblDataDDT.Text = traduci("lblDataDDT");
lblDescr.Text = traduci("lblDescr");
}
@@ -210,10 +210,10 @@ public partial class mod_elencoComm : ApplicationUserControl
catch
{ }
// creazione di un nuovo set...
- taComm.sp_creaSetObj(string.Format("{0:yyMMdd}{1:00}", DateTime.Now, nextIdx), "EQUA", mf_cliNew.valore, txtDDT.Text, txtNome.Text, user_std.UtSn.utente, txtDescr.Text);
+ taComm.sp_creaSetObj(string.Format("{0:yyMMdd}{1:00}", DateTime.Now, nextIdx), "EQUA", mf_cliNew.valore, txtDDT.Text, Convert.ToDateTime(txtDataDDT.Text), "", user_std.UtSn.utente, txtDescr.Text);
// nascondo tutto...
txtDDT.Text = "";
- txtNome.Text = "";
+ txtDataDDT.Text = "";
txtDescr.Text = "";
scambiaVisibPnlNew();
// aggiorno pannello...
@@ -230,15 +230,67 @@ public partial class mod_elencoComm : ApplicationUserControl
// click su inserimento, chiamo il metodo insert dell'ObjectDataSource
ods.Insert();
}
-
+ ///
+ /// salvo in session che il prox comando è clonare...
+ ///
+ ///
+ ///
+ protected void imgAccetta_Click(object sender, ImageClickEventArgs e)
+ {
+ SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "accettaObj");
+ }
+ ///
+ /// in caso di aggiornamento verifico se sia salvato un comando accetta...
+ ///
+ ///
+ ///
+ protected void grView_RowUpdating(object sender, GridViewUpdateEventArgs e)
+ {
+ // quale comando?
+ // carico l'idx dell'oggetto
+ string idxObj = e.Keys["Cod"].ToString();
+ string _comando = "";
+ if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
+ {
+ _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
+ SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
+ }
+ // verifico il tipo di richiesta (up/down level, clona o update normale
+ switch (_comando)
+ {
+ case "accettaObj":
+ // aggiorno lo stato dell'oggetto e dei child, x aggiornare prendo tutto quanto INIZIA come l'idx principale (meno il campo "D" quindi del DDT...)
+ XPS.obj.taObj.UpdStatoTree("02_Accet", user_std.UtSn.utente, DateTime.Now, idxObj.Replace("D", "%"));
+ grView.EditIndex = -1;
+ grView.DataBind();
+ // blocco update!
+ e.Cancel = true;
+ break;
+ default:
+ // faccio update!
+ e.Cancel = true;
+ break;
+ }
+ }
+ ///
+ /// restituisce se sia visibile il controllo di accettazione...
+ ///
+ ///
+ ///
+ public bool isAccettVisible(object codStato)
+ {
+ bool answ = true;
+ if (codStato.ToString().IndexOf("01") < 0) answ = false;
+ return answ;
+ }
///
/// determina se l'utente possa cancellare, x ora sempre si...
///
///
- public bool userCanDel()
+ public bool userCanDel(object codStato)
{
- return true;
+ return isAccettVisible(codStato);
}
-
+
#endregion
}
\ No newline at end of file
diff --git a/XPS/mod_fixCal.ascx b/XPS/mod_fixCal.ascx
new file mode 100644
index 0000000..388fe1a
--- /dev/null
+++ b/XPS/mod_fixCal.ascx
@@ -0,0 +1,6 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_fixCal.ascx.cs" Inherits="mod_fixCal" %>
+<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
+
+
+
diff --git a/XPS/mod_fixCal.ascx.cs b/XPS/mod_fixCal.ascx.cs
new file mode 100644
index 0000000..5f419e1
--- /dev/null
+++ b/XPS/mod_fixCal.ascx.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+
+public partial class mod_fixCal : System.Web.UI.UserControl
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+}
diff --git a/db/SteamWare_XPS.zip b/db/SteamWare_XPS.zip
index fdc7a27..8ee1928 100644
Binary files a/db/SteamWare_XPS.zip and b/db/SteamWare_XPS.zip differ