v 1.8.081
fix eliminazione a cascata famiglie macchine Aggiunta cloning schede in tab machcine da altra famiglia esistente
This commit is contained in:
@@ -40,6 +40,18 @@ namespace CMS_SC.WebUserControls
|
||||
// update!
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// clona una combinazione schede famiglia ad un altra
|
||||
/// </summary>
|
||||
/// <param name="codFamSrc"></param>
|
||||
/// <param name="codFamDest"></param>
|
||||
public void clonaFamMacc(string codFamSrc, string codFamDest)
|
||||
{
|
||||
// inserisco nuovo record
|
||||
DtProxy.man.taSCFM.clonaFamMacc(codFamSrc, codFamDest);
|
||||
// update!
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
internal void doUpdate()
|
||||
{
|
||||
|
||||
@@ -11,14 +11,18 @@ namespace CMS_SC.WebUserControls
|
||||
{
|
||||
public partial class mod_selFamMaccUrl : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// valore QueryString x parametro selezionato...
|
||||
/// </summary>
|
||||
protected string QSName = "CodFam";
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// cerco in URL cod scheda, se c'è seleziono...
|
||||
if (memLayer.ML.QSS("CodFam") != "")
|
||||
if (memLayer.ML.QSS(QSName) != "")
|
||||
{
|
||||
ddlSelFamMacc.SelectedValue = memLayer.ML.QSS("CodFam");
|
||||
ddlSelFamMacc.SelectedValue = memLayer.ML.QSS(QSName);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -26,7 +30,7 @@ namespace CMS_SC.WebUserControls
|
||||
{
|
||||
ddlSelFamMacc.DataBind();
|
||||
ddlSelFamMacc.SelectedIndex = 0;
|
||||
Response.Redirect(string.Format("{0}?CodFam={1}&CodSchedaVers={2}", devicesAuthProxy.pagCorrente, ddlSelFamMacc.SelectedValue, memLayer.ML.QSS("CodSchedaVers")));
|
||||
Response.Redirect(string.Format("{0}?{3}={1}&CodSchedaVers={2}", devicesAuthProxy.pagCorrente, ddlSelFamMacc.SelectedValue, memLayer.ML.QSS("CodSchedaVers"), QSName));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -43,7 +47,7 @@ namespace CMS_SC.WebUserControls
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = DtProxy.man.taASC.getByCodScheda(memLayer.ML.QSS("CodFam"))[0].Path;
|
||||
answ = DtProxy.man.taASC.getByCodScheda(memLayer.ML.QSS(QSName))[0].Path;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -57,7 +61,7 @@ namespace CMS_SC.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void ddlSelFamMacc_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect(string.Format("{0}?CodFam={1}&CodSchedaVers={2}", devicesAuthProxy.pagCorrente, ddlSelFamMacc.SelectedValue, memLayer.ML.QSS("CodSchedaVers")));
|
||||
Response.Redirect(string.Format("{0}?{3}={1}&CodSchedaVers={2}", devicesAuthProxy.pagCorrente, ddlSelFamMacc.SelectedValue, memLayer.ML.QSS("CodSchedaVers"), QSName));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user