modifica salvataggio selezione idxNC (in querystring e non in session)
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -81,7 +81,8 @@
|
||||
<asp:SessionParameter Name="DataFrom" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="DataTo" SessionField="_fine" Type="DateTime" />
|
||||
<asp:SessionParameter Name="Note" SessionField="NoteNC" Type="String" />
|
||||
<asp:SessionParameter Name="idxNc" SessionField="idxNcSel" Type="Int32" />
|
||||
<%--<asp:SessionParameter Name="idxNc" SessionField="idxNcSel" Type="Int32" />--%>
|
||||
<asp:QueryStringParameter Name="idxNc" QueryStringField="idxNC" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<uc1:mod_righePag runat="server" ID="mod_righePag" />
|
||||
|
||||
@@ -120,12 +120,13 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.IntSessionObj("idxNcSel");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxNcSel", value);
|
||||
//return memLayer.ML.IntSessionObj("idxNcSel");
|
||||
return memLayer.ML.QSI("idxNC");
|
||||
}
|
||||
//set
|
||||
//{
|
||||
// memLayer.ML.setSessionVal("idxNcSel", value);
|
||||
//}
|
||||
}
|
||||
void mod_selPeriodo_eh_doUpdate(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -66,11 +66,13 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.IntSessionObj("idxNcSel");
|
||||
return memLayer.ML.QSI("idxNC");
|
||||
//return memLayer.ML.IntSessionObj("idxNcSel");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxNcSel", value);
|
||||
Response.Redirect(string.Format("{0}?idxNC={1}", user_std.pagCorrente, value));
|
||||
//memLayer.ML.setSessionVal("idxNcSel", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -122,9 +124,10 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
DataProxy.obj.taENC.insertQuery(txtSearch.Text.Trim(), txtSearch.Text.Trim(), "", adesso.AddMonths(-1), adesso, "", adesso);
|
||||
idxNcSel = 0;
|
||||
grView.SelectedIndex = 0;
|
||||
grView.DataBind();
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
//idxNcSel = 0;
|
||||
//grView.SelectedIndex = 0;
|
||||
//grView.DataBind();
|
||||
}
|
||||
|
||||
protected void lbReset_Click(object sender, EventArgs e)
|
||||
@@ -150,11 +153,12 @@ namespace GMW.WebUserControls
|
||||
/// </summary>
|
||||
private void resetSelezione()
|
||||
{
|
||||
idxNcSel = 0;
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
fixVisibility();
|
||||
raiseEvent();
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
//idxNcSel = 0;
|
||||
//grView.SelectedIndex = -1;
|
||||
//grView.DataBind();
|
||||
//fixVisibility();
|
||||
//raiseEvent();
|
||||
}
|
||||
/// <summary>
|
||||
/// selezionato valore IdxNC
|
||||
@@ -165,8 +169,8 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// salvo chiave IdxNC
|
||||
idxNcSel = Convert.ToInt32(grView.SelectedDataKey["IdxNC"]);
|
||||
fixVisibility();
|
||||
raiseEvent();
|
||||
//fixVisibility();
|
||||
//raiseEvent();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user