vers 0.7.74
inserita correzione visualizzazione modifica stato anche x simulazioni
This commit is contained in:
@@ -11,6 +11,16 @@ namespace C2P.WebUserControls
|
||||
{
|
||||
public partial class mod_QuoteDet : SteamWare.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
/// </summary>
|
||||
public string uid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UniqueID.Replace("$", "_").Replace("-", "_");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// tipo di quote x la scheda corrente
|
||||
/// </summary>
|
||||
@@ -80,7 +90,7 @@ namespace C2P.WebUserControls
|
||||
{
|
||||
lblIdxQState.Text = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// precedente valore richiesto...
|
||||
/// </summary>
|
||||
@@ -88,13 +98,13 @@ namespace C2P.WebUserControls
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("prevReqQD");
|
||||
return memLayer.ML.StringSessionObj("prevReq_" + uid);
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("prevReqQD", value);
|
||||
memLayer.ML.setSessionVal("prevReq_" + uid, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica se sia attivo in modalità editing qualche modulo
|
||||
/// </summary>
|
||||
@@ -102,11 +112,11 @@ namespace C2P.WebUserControls
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.BoolSessionObj("editActiveQD");
|
||||
return memLayer.ML.BoolSessionObj("editActive_" + uid);
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("editActiveQD", value);
|
||||
memLayer.ML.setSessionVal("editActive_" + uid, value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -366,7 +376,7 @@ namespace C2P.WebUserControls
|
||||
// aggiorno!
|
||||
updateBaseData();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// CONVERTE offerta in simulazione
|
||||
/// </summary>
|
||||
@@ -385,7 +395,7 @@ namespace C2P.WebUserControls
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// rifiuta e riporta in draft
|
||||
/// </summary>
|
||||
|
||||
@@ -28,6 +28,15 @@ namespace C2P.WebUserControls
|
||||
frmView.ChangeMode(FormViewMode.ReadOnly);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// indica se il controllo sia in modalità editing
|
||||
/// </summary>
|
||||
public bool isEditing
|
||||
{
|
||||
get
|
||||
{
|
||||
return (frmView.CurrentMode == FormViewMode.Edit);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -29,5 +29,15 @@ namespace C2P.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// indica se il controllo sia in modalità editing
|
||||
/// </summary>
|
||||
public bool isEditing
|
||||
{
|
||||
get
|
||||
{
|
||||
return (frmView.CurrentMode == FormViewMode.Edit);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,16 @@ namespace C2P.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica se il controllo sia in modalità editing
|
||||
/// </summary>
|
||||
public bool isEditing
|
||||
{
|
||||
get
|
||||
{
|
||||
return (frmView.CurrentMode == FormViewMode.Edit);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta modalità insert...
|
||||
/// </summary>
|
||||
public void setInsertMode()
|
||||
|
||||
@@ -29,5 +29,15 @@ namespace C2P.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// indica se il controllo sia in modalità editing
|
||||
/// </summary>
|
||||
public bool isEditing
|
||||
{
|
||||
get
|
||||
{
|
||||
return (frmView.CurrentMode == FormViewMode.Edit);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,16 @@ namespace C2P.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// indica se il controllo sia in modalità editing
|
||||
/// </summary>
|
||||
public bool isEditing
|
||||
{
|
||||
get
|
||||
{
|
||||
return (frmView.CurrentMode == FormViewMode.Edit);
|
||||
}
|
||||
}
|
||||
protected void odsQuotes_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
if (eh_update != null)
|
||||
|
||||
@@ -11,6 +11,16 @@ namespace C2P.WebUserControls
|
||||
{
|
||||
public partial class mod_newProduct : SteamWare.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
/// </summary>
|
||||
public string uid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UniqueID.Replace("$", "_").Replace("-", "_");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// tipo di quote x la scheda corrente
|
||||
/// </summary>
|
||||
@@ -88,11 +98,25 @@ namespace C2P.WebUserControls
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("prevReqQD");
|
||||
return memLayer.ML.StringSessionObj("prevReq_" + uid);
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("prevReqQD", value);
|
||||
memLayer.ML.setSessionVal("prevReq_" + uid, value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica se sia attivo in modalità editing qualche modulo
|
||||
/// </summary>
|
||||
protected bool editActive
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.BoolSessionObj("editActive_" + uid);
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("editActive_" + uid, value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -203,6 +227,7 @@ namespace C2P.WebUserControls
|
||||
{
|
||||
LinkButton lBtn = ((LinkButton)sender);
|
||||
setModVisibility(lBtn.CommandArgument);
|
||||
setBtnVisibility();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemazione della visibilità dei moduli di dettaglio/editing
|
||||
@@ -277,6 +302,8 @@ namespace C2P.WebUserControls
|
||||
mod_S_Dies1.Visible = false;
|
||||
break;
|
||||
}
|
||||
// verifica se sia attivo editing
|
||||
editActive = (mod_S_ExtrPar1.isEditing || mod_S_Header1.isEditing || mod_S_PackPar1.isEditing || mod_S_Dies1.isEditing || mod_S_Quot1.isEditing);
|
||||
prevReq = req;
|
||||
// controllo SE sia visibile il pulsante crea offerta (netMargin > 0... DA VERIFICARE)
|
||||
DS_Quotes.QuoteFull_QRow riga;
|
||||
@@ -311,7 +338,10 @@ namespace C2P.WebUserControls
|
||||
private void setBtnVisibility()
|
||||
{
|
||||
// in base a stato corrente offerta decide cosa mostrare...
|
||||
switch (IdxQState)
|
||||
string currState = IdxQState;
|
||||
// se è in edit UNO dei panels allora devo evitare editing con buttons finali...
|
||||
if (editActive) currState = "-1";
|
||||
switch (currState)
|
||||
{
|
||||
case "0":
|
||||
divStato0.Visible = true;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2
-2
@@ -5,7 +5,7 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("0.7.73.171")]
|
||||
[assembly: AssemblyFileVersion("0.7.73.171")]
|
||||
[assembly: AssemblyVersion("0.7.74.171")]
|
||||
[assembly: AssemblyFileVersion("0.7.74.171")]
|
||||
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-2014")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("0.7.73.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("0.7.73.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyVersion("0.7.74.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("0.7.74.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
<#+
|
||||
|
||||
Reference in New Issue
Block a user