Inserito wrapper e prime config in web.config
This commit is contained in:
@@ -11,17 +11,18 @@
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<ItemTemplate>
|
||||
<div class="ui-nodisc-icon ui-alt-icon" style="white-space:nowrap;">
|
||||
<asp:LinkButton CssClass="ui-btn ui-shadow ui-corner-all ui-icon-user ui-btn-icon-notext ui-btn-inline" ID="LinkButton1" data-icon="star" runat="server" CausesValidation="False" CommandArgument="select" CommandName="Select" Text="Sel"></asp:LinkButton>
|
||||
<asp:LinkButton ID="LinkButton2" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Select" Text="Edit"></asp:LinkButton>
|
||||
</div>
|
||||
<div class="ui-nodisc-icon ui-alt-icon" style="white-space: nowrap;">
|
||||
<asp:LinkButton CssClass="ui-btn ui-shadow ui-corner-all ui-icon-user ui-btn-icon-notext ui-btn-inline" ID="LinkButton1" data-icon="star" runat="server" CausesValidation="False" CommandArgument="select" CommandName="Select" Text="Sel"></asp:LinkButton>
|
||||
<asp:LinkButton ID="LinkButton2" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Select" Text="Edit"></asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nominativo" SortExpression="Cognome">
|
||||
<ItemTemplate>
|
||||
<b><asp:Label ID="Label2" runat="server" Text='<%# Eval("Cognome") %>' /></b>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Nome") %>' /> -
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("DataNasc","{0:dd/MM/yyyy}") %>' />
|
||||
<b>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Eval("Cognome") %>' /></b>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Nome") %>' />,
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("DataNasc","{0:dd/MM/yy}") %>' />
|
||||
<br />
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Eval("CodF") %>' Font-Size="0.8em" />
|
||||
</ItemTemplate>
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
using MedPred_Data;
|
||||
|
||||
namespace MedPred
|
||||
{
|
||||
@@ -31,7 +32,17 @@ namespace MedPred
|
||||
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
memLayer.ML.setSessionVal("Paziente", string.Format("Paziente {0}", grView.SelectedDataKey["IdxPaziente"]));
|
||||
// recupero dati paziente...
|
||||
int IdxPaziente=0;
|
||||
try
|
||||
{
|
||||
IdxPaziente = Convert.ToInt32(grView.SelectedDataKey["IdxPaziente"]);
|
||||
memLayer.ML.setSessionVal("IdxPaziente", IdxPaziente);
|
||||
DS_Applicazione.AnagPazientiRow riga = DtProxy.man.taAP.getByKey(IdxPaziente)[0];
|
||||
memLayer.ML.setSessionVal("Paziente", string.Format("{0} {1} ({2:dd/MM/yyyy})", riga.Cognome, riga.Nome,riga.DataNasc));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (lastCmd == "edit")
|
||||
{
|
||||
// richiamo pagina con edit del record richiesto
|
||||
|
||||
@@ -55,7 +55,9 @@
|
||||
</div>--%>
|
||||
<!-- /panel -->
|
||||
<div data-role="header" data-position="fixed">
|
||||
<h1>MedPred</h1>
|
||||
<h1>
|
||||
MedPred
|
||||
</h1>
|
||||
<a href="#" data-icon="gear" class="ui-btn-right">Options</a>
|
||||
<%--<div data-role="navbar">
|
||||
<ul>
|
||||
|
||||
@@ -324,6 +324,10 @@
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="Properties\PublishProfiles\218.pubxml" />
|
||||
<Content Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</Content>
|
||||
<None Include="Scripts\jquery-2.1.0.intellisense.js" />
|
||||
<Content Include="Scripts\jquery-2.1.0.js" />
|
||||
<Content Include="Scripts\jquery-2.1.0.min.js" />
|
||||
@@ -377,6 +381,11 @@
|
||||
<DependentUpon>JQMob.Master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Visite.aspx.cs">
|
||||
<DependentUpon>Visite.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
Generated
+35
@@ -0,0 +1,35 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34011
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MedPred.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("1234")]
|
||||
public string MedPredConnectionString {
|
||||
get {
|
||||
return ((string)(this["MedPredConnectionString"]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="MedPred.Properties" GeneratedClassName="Settings">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="MedPredConnectionString" Type="System.String" Scope="Application">
|
||||
<Value Profile="(Default)">1234</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
@@ -13,7 +13,16 @@
|
||||
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
|
||||
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
|
||||
</sectionGroup>
|
||||
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||
<section name="MedPred.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<appSettings>
|
||||
<!--nome sw e versioni-->
|
||||
<add key="CodModulo" value="MedPred" />
|
||||
<!--stringhe connessione-->
|
||||
<add key="MedPredConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=MedPred;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5" />
|
||||
<httpRuntime targetFramework="4.5" />
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using SteamWare;
|
||||
|
||||
namespace MedPred_Data
|
||||
{
|
||||
public class DtProxy
|
||||
{
|
||||
#region area protected
|
||||
|
||||
protected DtProxy()
|
||||
{
|
||||
// inizializzo i table adapters
|
||||
avvioTableAdapters();
|
||||
setupConnectionString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// procedura di avvio dei tableAdapter
|
||||
/// </summary>
|
||||
protected virtual void avvioTableAdapters()
|
||||
{
|
||||
taAP = new DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config della singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionString()
|
||||
{
|
||||
string connStr = memLayer.ML.confReadString("MedPredConnectionString");
|
||||
// connections del db vocabolario
|
||||
taAP.Connection.ConnectionString = connStr;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
public DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter taAP;
|
||||
|
||||
public static DtProxy man = new DtProxy();
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_Applicazione.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="DtProxy.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
@@ -75,6 +75,12 @@
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\SteamWareLibrary\SteamWare\SteamWare.csproj">
|
||||
<Project>{2872dcfe-8b46-43b2-baa0-842a816a2dd5}</Project>
|
||||
<Name>SteamWare</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MedPred_Data
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<!--
|
||||
See http://nlog-project.org/wiki/Configuration_file
|
||||
for information on customizing logging rules and outputs.
|
||||
-->
|
||||
<targets>
|
||||
<!-- add your targets here -->
|
||||
|
||||
<!--
|
||||
<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
|
||||
layout="${longdate} ${uppercase:${level}} ${message}" />
|
||||
-->
|
||||
</targets>
|
||||
|
||||
<rules>
|
||||
<!-- add your logging rules here -->
|
||||
|
||||
<!--
|
||||
<logger name="*" minlevel="Trace" writeTo="f" />
|
||||
-->
|
||||
</rules>
|
||||
</nlog>
|
||||
Binary file not shown.
Reference in New Issue
Block a user