Update setup a applicazione corretta

git-svn-id: https://keyhammer.ath.cx/svn/XPS/trunk@4 43c8e981-f90d-406c-a89a-24a2c4268d51
This commit is contained in:
samuele
2008-09-17 09:25:14 +00:00
parent 92a92ac430
commit cbebfef09d
7 changed files with 31 additions and 23 deletions
+9 -9
View File
@@ -70,7 +70,7 @@
-->
</system.web>
<appSettings>
<add key="CodModulo" value="Anagrafica"/>
<add key="CodModulo" value="XPS"/>
<add key="dominio" value="VOSTRO410"/>
<add key="intUpdatePagina_ms" value="10000"/>
<add key="_righeDataGrid" value="30"/>
@@ -84,22 +84,22 @@
<add key="_allowForceUser" value="true"/>
<add key="_safePages" value="chLang.aspx#jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx"/>
<add key="_commonPages" value="menu.aspx"/>
<add key="_titoloPagina" value="URM"/>
<add key="titleApp" value="URM_titleApp"/>
<add key="welcomeApp" value="URM_welcomeApp"/>
<add key="appName" value="URM"/>
<add key="_titoloPagina" value="XPS"/>
<add key="titleApp" value="XPS_titleApp"/>
<add key="welcomeApp" value="XPS_welcomeApp"/>
<add key="appName" value="XPS"/>
<add key="mainRev" value="0.1"/>
<add key="copyRight" value="SteamWare © 2008"/>
<add key="defaultApp" value="URM_Appl"/>
<add key="defaultTitle" value="URM_ShortWelcome"/>
<add key="defaultBody" value="URM_LongWelcome"/>
<add key="defaultApp" value="XPS_Appl"/>
<add key="defaultTitle" value="XPS_ShortWelcome"/>
<add key="defaultBody" value="XPS_LongWelcome"/>
<add key="_treeMaxChar" value="45"/>
<add key="_showAllTree" value="false"/>
<add key="_jumpStart" value="10"/>
<add key="_adminEmail" value="info@steamware.net" />
<add key="_logDir" value="./logs/"/>
<add key="_smtpCli" value="localhost"/>
<add key="PermessiConnectionString" value="Data Source=localhost;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="PermessiConnectionString" value="Data Source=localhost;Initial Catalog=SteamWare_XPS;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="UtenteCdcConnectionString" value="Data Source=localhost;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="VocabolarioConnectionString" value="Data Source=localhost;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User id=sa;Password=keyhammer"/>
</appSettings>
+8
View File
@@ -44,6 +44,14 @@ public partial class mod_lemmiVocab : ApplicationUserControl
lblNumRec.Text = "";
}
}
/// <summary>
/// aggiorna i dati mostrati
/// </summary>
public void doUpdate()
{
ods.DataBind();
grView.DataBind();
}
#endregion
}
+2 -3
View File
@@ -1,5 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_menuBottom.ascx.cs"
Inherits="mod_menuBottom" %>
<asp:Label runat="server" ID="lblApp" Text="."></asp:Label><asp:Label ID="lblrev"
runat="server">153 - </asp:Label>
<asp:Label runat="server" ID="lblCopyRight" Text="..."></asp:Label>
<asp:Label runat="server" ID="lblApp" Text="."></asp:Label><asp:Label ID="lblrev" runat="server">153 - </asp:Label>
<asp:Label runat="server" ID="lblCopyRight" Text="..."></asp:Label>
-4
View File
@@ -17,8 +17,4 @@ public partial class mod_menuBottom : System.Web.UI.UserControl
lblApp.Text = string.Format("<b>{0}</b> v.{1}.", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev"));
lblCopyRight.Text = string.Format("<b>{0}</b>",ConfigurationManager.AppSettings.Get("copyRight"));
}
protected void Image1_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect("./chLang.aspx");
}
}
+1 -6
View File
@@ -25,11 +25,6 @@
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
<%--<asp:LinkButton ID="lnkSelect" runat="server" CausesValidation="False" CommandName="Select"
Text='<%# traduci("Select") %>'></asp:LinkButton>
<asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="False" CommandName="Edit"
Text='<%# traduci("Edit") %>'></asp:LinkButton>--%>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Lingua" SortExpression="Lingua">
@@ -77,7 +72,7 @@
</asp:GridView>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini"></asp:Label><asp:ObjectDataSource ID="ods" runat="server" SelectMethod="getVocabolario" TypeName="selData"
UpdateMethod="updateLemmaVoc" DeleteMethod="deleteLemmaVoc" OldValuesParameterFormatString="Original_{0}"
FilterExpression="Traduzione LIKE '%{0}%' OR Lemma LIKE '%{0}%' ">
FilterExpression="Traduzione LIKE '%{0}%' OR Lemma LIKE '%{0}%' " OnUpdated="ods_Updated">
<UpdateParameters>
<asp:Parameter Name="Traduzione" Type="String" />
<asp:Parameter Name="Original_Lingua" Type="String" />
+10 -1
View File
@@ -37,7 +37,9 @@ public partial class mod_vocabolario : ApplicationUserControl
{
creaNuovoLemma();
}
/// <summary>
/// creazione nuovo lemma
/// </summary>
private void creaNuovoLemma()
{
if (txtNewLemma.Text != "")
@@ -65,6 +67,7 @@ public partial class mod_vocabolario : ApplicationUserControl
{
base.aggiornaControlliDataGL();
grView.PageSize = _righeDataGridAnagr;
ods.DataBind();
}
protected void grView_DataBound(object sender, EventArgs e)
@@ -118,6 +121,11 @@ public partial class mod_vocabolario : ApplicationUserControl
selezionatoValore();
}
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
{
selezionatoValore();
}
#endregion
#region area public
@@ -137,6 +145,7 @@ public partial class mod_vocabolario : ApplicationUserControl
}
#endregion
}
+1
View File
@@ -31,6 +31,7 @@ public partial class vocabolario : System.Web.UI.Page
void Mod_vocabolario1_eh_selezioneValore(object sender, EventArgs e)
{
Mod_lemmiVocab1.Visible = true;
Mod_lemmiVocab1.doUpdate();
}
protected override void OnUnload(EventArgs e)