* Web.csproj:

* Web.config:
* Global.asax:
* Global.asax.cs:
* packages.config:
* Web.config:
* NightFlashServer.csproj:
* ITContentProvider.csproj:
* Index.aspx: 

* NpgsqlContentProvider.cs: Edit estimates with no client specified
This commit is contained in:
Paul Schneider
2015-04-22 15:20:45 +02:00
parent 8e2c21a3db
commit 3d1a515558
4 changed files with 19 additions and 4 deletions

View File

@ -36,6 +36,10 @@
<Reference Include="System.Data" />
<Reference Include="System.Configuration" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Web.Mvc" />
<Reference Include="System.Web.Http" />
<Reference Include="System.Web.Http.WebHost" />
<Reference Include="System.Web" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
@ -56,5 +60,10 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Model\" />
<Folder Include="Views\" />
<Folder Include="Views\Modules\" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Modules\IT\Index.aspx" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,5 @@
<%@ Page Title="Front office" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>

View File

@ -361,10 +361,12 @@ namespace Yavsc
est = new Estimate ();
est.Title = rdr.GetString(
rdr.GetOrdinal("title"));
est.Responsible = rdr.GetString(
rdr.GetOrdinal("username"));
est.Client = rdr.GetString (
rdr.GetOrdinal ("client"));
int clientidx = rdr.GetOrdinal ("client");
if (!rdr.IsDBNull (clientidx))
est.Client = rdr.GetString (clientidx);
int index = rdr.GetOrdinal ("description");
if (!rdr.IsDBNull (index))
est.Description = rdr.GetString (index);
@ -566,8 +568,6 @@ namespace Yavsc
cnxstr = ConfigurationManager.ConnectionStrings [config ["connectionStringName"]].ConnectionString;
applicationName = config["applicationName"] ?? "/";
}
/// <summary>

View File

@ -121,6 +121,7 @@
<Folder Include="xmldoc\" />
<Folder Include="Views\PayPal\" />
<Folder Include="ApiControllers\" />
<Folder Include="Views\Modules\" />
</ItemGroup>
<ItemGroup>
<Compile Include="Controllers\HomeController.cs" />