* 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
main
Paul Schneider 11 years ago
parent 8e2c21a3db
commit 3d1a515558
4 changed files with 19 additions and 4 deletions

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

@ -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>

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

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

Loading…