From: <all...@us...> - 2009-11-20 23:02:15
|
Revision: 5 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=5&view=rev Author: allancascante Date: 2009-11-20 23:02:03 +0000 (Fri, 20 Nov 2009) Log Message: ----------- Ticket #1 added some mods to the base classes and a web project to test the code, it is functional but require to implement all methods for all classes. Modified Paths: -------------- source/trunk/CronosControl/CronosControl.sln source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.edmx source/trunk/CronosControl/CronosControlClassLibrary/app.config source/trunk/CronosControl/CronosControlDatabase/Create Scripts/CronosControl.sql Added Paths: ----------- source/trunk/CronosControl/CronosControl/ source/trunk/CronosControl/CronosControl/App_Data/ source/trunk/CronosControl/CronosControl/CronosControl.csproj source/trunk/CronosControl/CronosControl/Default.aspx source/trunk/CronosControl/CronosControl/Default.aspx.cs source/trunk/CronosControl/CronosControl/Default.aspx.designer.cs source/trunk/CronosControl/CronosControl/Properties/ source/trunk/CronosControl/CronosControl/Properties/AssemblyInfo.cs source/trunk/CronosControl/CronosControl/Web.config Added: source/trunk/CronosControl/CronosControl/CronosControl.csproj =================================================================== --- source/trunk/CronosControl/CronosControl/CronosControl.csproj (rev 0) +++ source/trunk/CronosControl/CronosControl/CronosControl.csproj 2009-11-20 23:02:03 UTC (rev 5) @@ -0,0 +1,113 @@ +<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.30729</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{93AD76A1-1973-434A-8677-8B19F02E30D8}</ProjectGuid> + <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>CronosControl</RootNamespace> + <AssemblyName>CronosControl</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Core"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.DataSetExtensions"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.Entity"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Web.Extensions"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Xml.Linq"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Drawing" /> + <Reference Include="System.Web" /> + <Reference Include="System.Xml" /> + <Reference Include="System.Configuration" /> + <Reference Include="System.Web.Services" /> + <Reference Include="System.EnterpriseServices" /> + <Reference Include="System.Web.Mobile" /> + </ItemGroup> + <ItemGroup> + <Content Include="Default.aspx" /> + <Content Include="Web.config" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Default.aspx.cs"> + <SubType>ASPXCodeBehind</SubType> + <DependentUpon>Default.aspx</DependentUpon> + </Compile> + <Compile Include="Default.aspx.designer.cs"> + <DependentUpon>Default.aspx</DependentUpon> + </Compile> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\CronosControlBusinessClassLibrary\CronosControlBusinessClassLibrary.csproj"> + <Project>{2D8FF602-961B-470C-AECF-817AFF0C4E9C}</Project> + <Name>CronosControlBusinessClassLibrary</Name> + </ProjectReference> + <ProjectReference Include="..\CronosControlClassLibrary\CronosControlDataAccessClassLibrary.csproj"> + <Project>{7191E8B4-4497-40E8-BD9A-04CD4EF802FC}</Project> + <Name>CronosControlDataAccessClassLibrary</Name> + </ProjectReference> + </ItemGroup> + <ItemGroup> + <Folder Include="App_Data\" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.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. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> + <ProjectExtensions> + <VisualStudio> + <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> + <WebProjectProperties> + <UseIIS>False</UseIIS> + <AutoAssignPort>True</AutoAssignPort> + <DevelopmentServerPort>4266</DevelopmentServerPort> + <DevelopmentServerVPath>/</DevelopmentServerVPath> + <IISUrl> + </IISUrl> + <NTLMAuthentication>False</NTLMAuthentication> + <UseCustomServer>False</UseCustomServer> + <CustomServerUrl> + </CustomServerUrl> + <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> + </WebProjectProperties> + </FlavorProperties> + </VisualStudio> + </ProjectExtensions> +</Project> \ No newline at end of file Added: source/trunk/CronosControl/CronosControl/Default.aspx =================================================================== --- source/trunk/CronosControl/CronosControl/Default.aspx (rev 0) +++ source/trunk/CronosControl/CronosControl/Default.aspx 2009-11-20 23:02:03 UTC (rev 5) @@ -0,0 +1,23 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CronosControl._Default" %> + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml" > +<head runat="server"> + <title></title> +</head> +<body> + <form id="form1" runat="server"> + <div> + <asp:Label ID="nameLabel" runat="server" Text="First Name"></asp:Label><asp:TextBox ID="nameTextBox" runat="server"></asp:TextBox> + <asp:Label ID="lastnameLabel" runat="server" Text="Last Name"></asp:Label><asp:TextBox ID="lastnameTextBox" runat="server"></asp:TextBox> + <asp:Label ID="emailLabel" runat="server" Text="Email"></asp:Label><asp:TextBox ID="emailTextBox" runat="server"></asp:TextBox> + <asp:Label ID="usernameLabel" runat="server" Text="Username"></asp:Label><asp:TextBox ID="usernameTextBox" runat="server"></asp:TextBox> + <asp:Label ID="passwordLabel" runat="server" Text="Password"></asp:Label><asp:TextBox ID="passwordTextBox" runat="server"></asp:TextBox> + + <asp:Button ID="SaveButton" runat="server" Text="Save User" + onclick="SaveButton_Click" /> + </div> + </form> +</body> +</html> Added: source/trunk/CronosControl/CronosControl/Default.aspx.cs =================================================================== --- source/trunk/CronosControl/CronosControl/Default.aspx.cs (rev 0) +++ source/trunk/CronosControl/CronosControl/Default.aspx.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using CronosControl.Business; +using CronosControl.Model; + +namespace CronosControl +{ + public partial class _Default : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + + } + + protected void SaveButton_Click(object sender, EventArgs e) + { + Users usersBusiness = new Users(); + User user = new User() + { + Name = usernameTextBox.Text, + Lastname = lastnameTextBox.Text, + Email = emailTextBox.Text, + Password = passwordTextBox.Text, + Username = usernameTextBox.Text + }; + usersBusiness.Save(user); + } + + + } +} Added: source/trunk/CronosControl/CronosControl/Default.aspx.designer.cs =================================================================== --- source/trunk/CronosControl/CronosControl/Default.aspx.designer.cs (rev 0) +++ source/trunk/CronosControl/CronosControl/Default.aspx.designer.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -0,0 +1,124 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:2.0.50727.3603 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +namespace CronosControl { + + + public partial class _Default { + + /// <summary> + /// form1 control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// <summary> + /// nameLabel control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.Label nameLabel; + + /// <summary> + /// nameTextBox control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.TextBox nameTextBox; + + /// <summary> + /// lastnameLabel control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.Label lastnameLabel; + + /// <summary> + /// lastnameTextBox control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.TextBox lastnameTextBox; + + /// <summary> + /// emailLabel control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.Label emailLabel; + + /// <summary> + /// emailTextBox control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.TextBox emailTextBox; + + /// <summary> + /// usernameLabel control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.Label usernameLabel; + + /// <summary> + /// usernameTextBox control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.TextBox usernameTextBox; + + /// <summary> + /// passwordLabel control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.Label passwordLabel; + + /// <summary> + /// passwordTextBox control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.TextBox passwordTextBox; + + /// <summary> + /// SaveButton control. + /// </summary> + /// <remarks> + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// </remarks> + protected global::System.Web.UI.WebControls.Button SaveButton; + } +} Added: source/trunk/CronosControl/CronosControl/Properties/AssemblyInfo.cs =================================================================== --- source/trunk/CronosControl/CronosControl/Properties/AssemblyInfo.cs (rev 0) +++ source/trunk/CronosControl/CronosControl/Properties/AssemblyInfo.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("CronosControl")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Personal")] +[assembly: AssemblyProduct("CronosControl")] +[assembly: AssemblyCopyright("Copyright © Personal 2009")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("3d5900ae-111a-45be-96b3-d9e4606ca793")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: source/trunk/CronosControl/CronosControl/Web.config =================================================================== --- source/trunk/CronosControl/CronosControl/Web.config (rev 0) +++ source/trunk/CronosControl/CronosControl/Web.config 2009-11-20 23:02:03 UTC (rev 5) @@ -0,0 +1,110 @@ +<?xml version="1.0"?> +<configuration> + <configSections> + <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> + <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> + <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> + <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> + <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/> + <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> + <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> + <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> + </sectionGroup> + </sectionGroup> + </sectionGroup> + </configSections> + <appSettings/> + <connectionStrings> + <add name="CronosControlEntities" connectionString="metadata=res://*/CronosControlModel.csdl|res://*/CronosControlModel.ssdl|res://*/CronosControlModel.msl;provider=System.Data.SqlClient;provider connection string='Data Source=.\SQLEXPRESS;AttachDbFilename="f:\Visual Studio 2008\Projects\CronosControl\CronosControlClassLibrary\CronosControl.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True;MultipleActiveResultSets=True'" + providerName="System.Data.EntityClient" /> + </connectionStrings> + <system.web> + <!-- + Set compilation debug="true" to insert debugging + symbols into the compiled page. Because this + affects performance, set this value to true only + during development. + --> + <compilation debug="true"> + <assemblies> + <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> + <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> + <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> + <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> + </assemblies> + </compilation> + <!-- + The <authentication> section enables configuration + of the security authentication mode used by + ASP.NET to identify an incoming user. + --> + <authentication mode="Windows"/> + <!-- + The <customErrors> section enables configuration + of what to do if/when an unhandled error occurs + during the execution of a request. Specifically, + it enables developers to configure html error pages + to be displayed in place of a error stack trace. + + <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> + <error statusCode="403" redirect="NoAccess.htm" /> + <error statusCode="404" redirect="FileNotFound.htm" /> + </customErrors> + --> + <pages> + <controls> + <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> + <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> + </controls> + </pages> + <httpHandlers> + <remove verb="*" path="*.asmx"/> + <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> + <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> + <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> + </httpHandlers> + <httpModules> + <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> + </httpModules> + </system.web> + <system.codedom> + <compilers> + <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <providerOption name="CompilerVersion" value="v3.5"/> + <providerOption name="WarnAsError" value="false"/> + </compiler> + </compilers> + </system.codedom> + <!-- + The system.webServer section is required for running ASP.NET AJAX under Internet + Information Services 7.0. It is not necessary for previous version of IIS. + --> + <system.webServer> + <validation validateIntegratedModeConfiguration="false"/> + <modules> + <remove name="ScriptModule"/> + <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> + </modules> + <handlers> + <remove name="WebServiceHandlerFactory-Integrated"/> + <remove name="ScriptHandlerFactory"/> + <remove name="ScriptHandlerFactoryAppServices"/> + <remove name="ScriptResource"/> + <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> + <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> + <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> + </handlers> + </system.webServer> + <runtime> + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> + <dependentAssembly> + <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> + <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> + <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> + </dependentAssembly> + </assemblyBinding> + </runtime> +</configuration> Modified: source/trunk/CronosControl/CronosControl.sln =================================================================== --- source/trunk/CronosControl/CronosControl.sln 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControl.sln 2009-11-20 23:02:03 UTC (rev 5) @@ -1,22 +1,20 @@ Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControlServices", "CronosControlWCFServices\CronosControlServices.csproj", "{2743F502-58BF-47B9-81BC-781B77A43CAB}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControlDataAccessClassLibrary", "CronosControlClassLibrary\CronosControlDataAccessClassLibrary.csproj", "{7191E8B4-4497-40E8-BD9A-04CD4EF802FC}" EndProject Project("{4F174C21-8C12-11D0-8340-0000F80270F8}") = "CronosControlDatabase", "CronosControlDatabase\CronosControlDatabase.dbp", "{D7DAE07A-C1B2-4EFF-B2C2-834DA1F4E940}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControlBusinessClassLibrary", "CronosControlBusinessClassLibrary\CronosControlBusinessClassLibrary.csproj", "{2D8FF602-961B-470C-AECF-817AFF0C4E9C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControlBusinessClassLibraryTestProject", "CronosControlBusinessClassLibraryTestProject\CronosControlBusinessClassLibraryTestProject.csproj", "{16F82131-ABDB-46C6-9CB1-803FDFD7620C}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A476650C-6685-4050-A3F2-1F911CA5791A}" ProjectSection(SolutionItems) = preProject CronosControl.vsmdi = CronosControl.vsmdi LocalTestRun.testrunconfig = LocalTestRun.testrunconfig EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControl", "CronosControl\CronosControl.csproj", "{93AD76A1-1973-434A-8677-8B19F02E30D8}" +EndProject Global GlobalSection(TestCaseManagementSettings) = postSolution CategoryFile = CronosControl.vsmdi @@ -30,16 +28,6 @@ Release|Mixed Platforms = Release|Mixed Platforms EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {2743F502-58BF-47B9-81BC-781B77A43CAB}.Debug|.NET.ActiveCfg = Debug|Any CPU - {2743F502-58BF-47B9-81BC-781B77A43CAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2743F502-58BF-47B9-81BC-781B77A43CAB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2743F502-58BF-47B9-81BC-781B77A43CAB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {2743F502-58BF-47B9-81BC-781B77A43CAB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {2743F502-58BF-47B9-81BC-781B77A43CAB}.Release|.NET.ActiveCfg = Release|Any CPU - {2743F502-58BF-47B9-81BC-781B77A43CAB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2743F502-58BF-47B9-81BC-781B77A43CAB}.Release|Any CPU.Build.0 = Release|Any CPU - {2743F502-58BF-47B9-81BC-781B77A43CAB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {2743F502-58BF-47B9-81BC-781B77A43CAB}.Release|Mixed Platforms.Build.0 = Release|Any CPU {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Debug|.NET.ActiveCfg = Debug|Any CPU {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Debug|Any CPU.Build.0 = Debug|Any CPU @@ -60,16 +48,16 @@ {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Release|Any CPU.Build.0 = Release|Any CPU {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Debug|.NET.ActiveCfg = Debug|Any CPU - {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Release|.NET.ActiveCfg = Release|Any CPU - {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Release|Any CPU.Build.0 = Release|Any CPU - {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {16F82131-ABDB-46C6-9CB1-803FDFD7620C}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {93AD76A1-1973-434A-8677-8B19F02E30D8}.Debug|.NET.ActiveCfg = Debug|Any CPU + {93AD76A1-1973-434A-8677-8B19F02E30D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {93AD76A1-1973-434A-8677-8B19F02E30D8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {93AD76A1-1973-434A-8677-8B19F02E30D8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {93AD76A1-1973-434A-8677-8B19F02E30D8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {93AD76A1-1973-434A-8677-8B19F02E30D8}.Release|.NET.ActiveCfg = Release|Any CPU + {93AD76A1-1973-434A-8677-8B19F02E30D8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {93AD76A1-1973-434A-8677-8B19F02E30D8}.Release|Any CPU.Build.0 = Release|Any CPU + {93AD76A1-1973-434A-8677-8B19F02E30D8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {93AD76A1-1973-434A-8677-8B19F02E30D8}.Release|Mixed Platforms.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -10,26 +10,8 @@ /// <summary> /// Implements all business methods for Calendar's Management /// </summary> - public class Calendars : ICalendars + public class Calendars : Business<Calendar>, ICalendars { - #region IBusiness<Calendar> Members - - public List<IBusinessError> Save(Calendar entity) - { - throw new NotImplementedException(); - } - - public List<IBusinessError> Enable(Calendar entity, bool enable) - { - throw new NotImplementedException(); - } - - public List<IBusinessError> Validate(Calendar entity) - { - throw new NotImplementedException(); - } - - #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using CronosControl.Model; namespace CronosControl.Business { /// <summary> /// Implements all business methods for Client's Management /// </summary> - public class Clients + public class Clients : Business<Client>, IClients { } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using CronosControl.Model; namespace CronosControl.Business { /// <summary> /// Implements all business methods for Companies' Management /// </summary> - public class Companies + public class Companies : Business<Company>, ICompanies { } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using CronosControl.Model; namespace CronosControl.Business { /// <summary> /// Implements all business methods for Cost Center's Management /// </summary> - public class CostCenters + public class CostCenters : Business<CostCenter>, ICostCenters { } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using CronosControl.Model; namespace CronosControl.Business { /// <summary> /// Implements all business methods for Document's Management /// </summary> - class Documents + public class Documents : Business<Document>, IDocuments { } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -3,11 +3,14 @@ using System.Linq; using System.Text; using CronosControl.Business.Util.ErrorHandling; +using CronosControl.Model; namespace CronosControl.Business { public interface IBusiness<T> { + CronosControlEntities CronosControlEntities { get; set; } + /// <summary> /// Saves or updates the given entity, if it was saved before it will be updated if is a new instance it will saved as a new entry /// </summary> @@ -15,19 +18,10 @@ /// <returns>an empty error list in case the entity was saved successfully, an error list with the errors encounter for the operation in other case</returns> List<IBusinessError> Save(T entity); - /// <summary> - /// Enables the given entity. It has to be a valid previously saved entity - /// </summary> - /// <param name="entity">The entity to enable</param> - /// <param name="enable">Enable</param> - /// <returns>an empty error list in case the entity was disabled successfully, an error list with the errors encounter for the operation in other case</returns> - List<IBusinessError> Enable(T entity, bool enable); + T Get(T entity); - /// <summary> - /// Validates the values in the entity attributes - /// </summary> - /// <param name="entity">the entity with the values to validate</param> - /// <returns>the list of errors found</returns> - List<IBusinessError> Validate(T entity); + bool Find(T entity); + + } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using CronosControl.Model; namespace CronosControl.Business { Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -10,26 +10,9 @@ /// <summary> /// Implements all business methods for Project's Management /// </summary> - public class Projects : IProjects + public class Projects : Business<Project>, IProjects { - #region IBusiness<Project> Members - - public List<CronosControl.Business.Util.ErrorHandling.IBusinessError> Save(Project entity) - { - throw new NotImplementedException(); - } - - public List<CronosControl.Business.Util.ErrorHandling.IBusinessError> Enable(Project entity, bool enable) - { - throw new NotImplementedException(); - } - - public List<CronosControl.Business.Util.ErrorHandling.IBusinessError> Validate(Project entity) - { - throw new NotImplementedException(); - } - - #endregion + } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using CronosControl.Model; namespace CronosControl.Business { /// <summary> /// Implements all business methods for Role's Management /// </summary> - class Roles + public class Roles : Business<Role>, IRoles { } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using CronosControl.Model; namespace CronosControl.Business { /// <summary> /// Implements all business methods for Task's Management /// </summary> - class Tasks + public class Tasks : Business<Task>, ITasks { } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using CronosControl.Model; namespace CronosControl.Business { /// <summary> /// Implements all business methods for Time Categories' Management /// </summary> - public class TimeCategory + public class TimeCategories : Business<TimeCategory>, ITimeCategories { } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using CronosControl.Model; namespace CronosControl.Business { /// <summary> /// Implements all business methods for Time Sheet's Management /// </summary> - public class TimeSheets + public class TimeSheets : Business<TimeSheet>, ITimeSheets { } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -9,72 +9,20 @@ /// <summary> /// Implements all business methods for User's Management /// </summary> - public class Users : IUsers + public class Users : Business<User>, IUsers { - private CronosControlEntities cronosControlEntities; - - public CronosControlEntities CronosControlEntities + public override List<IBusinessError> Save(User entity) { - get { return cronosControlEntities; } - set { cronosControlEntities = value; } - } - - #region IBusiness<User> Members - - public List<IBusinessError> Save(User entity) - { - cronosControlEntities = new CronosControlEntities(); - List<IBusinessError> errors = new List<IBusinessError>(); - try + if (this.Find(entity)) { - Object savedEntity = null; - - if (cronosControlEntities.TryGetObjectByKey(entity.EntityKey, out savedEntity)) - { - CronosControlEntities.Attach(entity); - CronosControlEntities.SaveChanges(); - return errors; - } - cronosControlEntities.AddToUser(entity); - return errors; + entity.UpdatedAt = DateTime.Now; } - catch (Exception ex) + else { - ExceptionPolicy.HandleException(ex, "Exception Policy"); - errors.Add(new ExceptionBusinessError(ex)); - return errors; + entity.CreatedAt = DateTime.Now; + entity.Enabled = true; } + return base.Save(entity); } - - - public List<IBusinessError> Enable(User entity, bool enable) - { - cronosControlEntities = new CronosControlEntities(); - List<IBusinessError> errors = new List<IBusinessError>(); - try - { - if (entity.Enabled) - { - return errors; - } - cronosControlEntities.Attach(entity); - entity.Enabled = enable; - cronosControlEntities.SaveChanges(); - return errors; - } - catch (Exception ex) - { - ExceptionPolicy.HandleException(ex, "Exception Policy"); - errors.Add(new ExceptionBusinessError(ex)); - return errors; - } - } - - public List<IBusinessError> Validate(User entity) - { - throw new NotImplementedException(); - } - - #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj 2009-11-20 23:02:03 UTC (rev 5) @@ -50,6 +50,7 @@ <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> + <Compile Include="Business\Business.cs" /> <Compile Include="Business\Calendars.cs" /> <Compile Include="Business\Clients.cs" /> <Compile Include="Business\Companies.cs" /> Modified: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs 2009-11-20 23:02:03 UTC (rev 5) @@ -36,7 +36,7 @@ [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_IdUserProjectRoleDocument_UserProjectRole", "UserProjectRole", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.UserProjectRole), "UserProjectRoleDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.UserProjectRoleDocument))] // Original file name: -// Generation date: 10/28/2009 8:45:20 PM +// Generation date: 11/20/2009 4:28:23 PM namespace CronosControl.Model { @@ -619,7 +619,7 @@ { return this._CreatedAt; } - set + private set { this.OnCreatedAtChanging(value); this.ReportPropertyChanging("CreatedAt"); @@ -843,7 +843,7 @@ { return this._CreatedAt; } - set + private set { this.OnCreatedAtChanging(value); this.ReportPropertyChanging("CreatedAt"); @@ -1067,7 +1067,7 @@ { return this._CreatedAt; } - set + private set { this.OnCreatedAtChanging(value); this.ReportPropertyChanging("CreatedAt"); @@ -1317,7 +1317,7 @@ { return this._CreatedAt; } - set + private set { this.OnCreatedAtChanging(value); this.ReportPropertyChanging("CreatedAt"); @@ -1594,7 +1594,7 @@ { return this._CreatedAt; } - set + private set { this.OnCreatedAtChanging(value); this.ReportPropertyChanging("CreatedAt"); @@ -1829,7 +1829,7 @@ { return this._CreatedAt; } - set + private set { this.OnCreatedAtChanging(value); this.ReportPropertyChanging("CreatedAt"); @@ -2078,7 +2078,7 @@ { return this._CreatedAt; } - set + private set { this.OnCreatedAtChanging(value); this.ReportPropertyChanging("CreatedAt"); @@ -2661,7 +2661,7 @@ { return this._CreatedAt; } - set + private set { this.OnCreatedAtChanging(value); this.ReportPropertyChanging("CreatedAt"); @@ -2956,7 +2956,7 @@ { return this._CreatedAt; } - set + private set { this.OnCreatedAtChanging(value); this.ReportPropertyChanging("CreatedAt"); @@ -3157,7 +3157,7 @@ { return this._CreatedAt; } - set + private set { this.OnCreatedAtChanging(value); this.ReportPropertyChanging("CreatedAt"); @@ -3216,6 +3216,29 @@ partial void OnEnabledChanging(bool value); partial void OnEnabledChanged(); /// <summary> + /// There are no comments for Property Code in the schema. + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public string Code + { + get + { + return this._Code; + } + set + { + this.OnCodeChanging(value); + this.ReportPropertyChanging("Code"); + this._Code = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("Code"); + this.OnCodeChanged(); + } + } + private string _Code; + partial void OnCodeChanging(string value); + partial void OnCodeChanged(); + /// <summary> /// There are no comments for Company in the schema. /// </summary> [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("CronosControlModel", "FK_TimeCategory_Company", "Company")] @@ -4152,7 +4175,7 @@ { return this._CreatedAt; } - set + private set { this.OnCreatedAtChanging(value); this.ReportPropertyChanging("CreatedAt"); Modified: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.edmx =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.edmx 2009-10-29 02:48:44 UTC (rev 4) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.edmx 2009-11-20 23:02:03 UTC (rev 5) @@ -4,7 +4,7 @@ <edmx:Runtime> <!-- SSDL content --> <edmx:StorageModels> - <Schema Namespace="CronosControlModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2006/04/edm/ssdl"> + <Schema Namespace="CronosControlModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2006/04/edm/ssdl"> <EntityContainer Name="CronosControlModelStoreContainer"> <EntitySet Name="Calendar" EntityType="CronosControlModel.Store.Calendar" store:Type="Tables" Schema="dbo" /> <EntitySet Name="Client" EntityType="CronosControlModel.Store.Client" store:Type="Tables" Schema="dbo" /> @@ -263,6 +263,7 @@ </Key> <Property Name="IdTimeCategory" Type="int" Nullable="false" StoreGeneratedPattern="Identity" /> <Property Name="IdCompany" Type="int" Nullable="false" /> + <Property Name="Code" Type="nchar" MaxLength="10" /> <Property Name="Name" Type="varchar" Nullable="false" MaxLength="100" /> <Property Name="Description" Type="varchar" MaxLength="255" /> <Property Name="CreatedAt" Type="datetime" Nullable="false" /> @@ -713,8 +714,7 @@ </Dependent> </ReferentialConstraint> </Association>--> - </Schema> - </edmx:StorageModels> + </Schema></edmx:StorageModels> <!-- CSDL content --> <edmx:ConceptualModels> <Schema Namespace="CronosControlModel" Alias="Self" xmlns="http://schemas.microsoft.com/ado/2006/04/edm"> @@ -847,7 +847,7 @@ <Property Name="Name" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" /> <Property Name="Description" Type="String" MaxLength="255" Unicode="false" FixedLength="false" /> <Property Name="ValidUntil" Type="DateTime" /> - <Property Name="CreatedAt" Type="DateTime" Nullable="false" /> + <Property Name="CreatedAt" Type="DateTime" Nullable="false" a:SetterAccess="Private" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" /> <Property Name="UpdatedAt" Type="DateTime" /> <Property Name="Enabled" Type="Boolean" Nullable="false" /> <NavigationProperty Name="Company" Relationship="CronosControlModel.FK_Calendar_Company" FromRole="Calendar" ToRole="Company" /> @@ -860,7 +860,7 @@ <Property Name="IdClient" Type="Int32" Nullable="false" /> <Property Name="Name" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" /> <Property Name="Description" Type="String" MaxLength="255" Unicode="false" FixedLength="false" /> - <Property Name="CreatedAt" Type="DateTime" Nullable="false" /> + <Property Name="CreatedAt" Type="DateTime" Nullable="false" a:SetterAccess="Private" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" /> <Property Name="UpdatedAt" Type="DateTime" /> <Property Name="Enabled" Type="Boolean" Nullable="false" /> <NavigationProperty Name="Company" Relationship="CronosControlModel.FK_Client_Company" FromRole="Client" ToRole="Company" /> @@ -873,14 +873,14 @@ <Property Name="IdCompany" Type="Int32" Nullable="false" /> <Property Name="Name" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" /> <Property Name="Description" Type="String" MaxLength="255" Unicode="false" FixedLength="false" /> - <Property Name="CreatedAt" Type="DateTime" Nullable="false" /> + <Property Name="CreatedAt" Type="DateTime" Nullable="false" a:SetterAccess="Private" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" /> <Property Name="UpdatedAt" Type="DateTime" /> <Property Name="Enabled" Type="Boolean" Nullable="false" /> <NavigationProperty Name="Calendar" Relationship="CronosControlModel.FK_Calendar_Company" FromRole="Company" ToRole="Calendar" /> <NavigationProperty Name="Client" Relationship="CronosControlModel.FK_Client_Company" FromRole="Company" ToRole="Client" /> <NavigationProperty Name="Role" Relationship="CronosControlModel.FK_Role_Company" FromRole="Company" ToRole="Role" /> <NavigationProperty Name="TimeCategory" Relationship="CronosControlModel.FK_TimeCategory_Company" FromRole="Company" ToRole="TimeCategory" /> - </EntityType> + </EntityType> <EntityType Name="CostCenter"> <Key> <PropertyRef Name="IdCostCenter" /> @@ -888,7 +888,7 @@ <Property Name="IdCostCenter" Type="Int32" Nullable="false" /> <Property Name="Name" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" /> <Property Name="Description" Type="String" MaxLength="255" Unicode="false" FixedLength="false" /> - <Property Name="CreatedAt" Type="DateTime" Nullable="false" /> + <Property Name="CreatedAt" Type="DateTime" Nullable="false" a:SetterAccess="Private" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" /> <Property Name="UpdatedAt" Type="DateTime" /> <Property Name="Enabled" Type="Boolean" Nullable="false" /> <NavigationProperty Name="ProjectCostCenter" Relationship="CronosControlModel.FK_ProjectCostCenter_CostCenter" FromRole="CostCenter" ToRole="ProjectCostCenter" /> @@ -904,7 +904,7 @@ <Property Name="ValidFrom" Type="DateTime" /> <Property Name="ValidUntil" Type="DateTime" /> <Property Name="DocumentContents" Type="Binary" MaxLength="Max" FixedLength="false" /> - <Property Name="CreatedAt" Type="DateTime" Nullable="false" /> + <Property Name="CreatedAt" Type="DateTime" Nullable="false" a:SetterAccess="Private" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" /> <Property Name="UpdatedAt" Type="DateTime" /> <Property Name="Enabled" Type="Boolean" Nullable="false" /> <NavigationProperty Name="UserProjectRoleDocument" Relationship="CronosControlModel.FK_IdUserProjectRoleDocument_Document" FromRole="Document" ToRole="UserProjectRoleDocument" /> @@ -918,7 +918,7 @@ <Property Name="Name" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" /> <Property Name="Description" Type="String" MaxLength="255" Unicode="false" FixedLength="false" /> <Property Name="Date" Type="DateTime" Nullable="false" /> - <Property Name="CreatedAt" Type="DateTime" Nullable="false" /> + <Property Name="CreatedAt" Type="DateTime" Nullable="false" a:SetterAccess="Private" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" /> <Property Name="UpdatedAt" Type="DateTime" Nullable="false" /> <Property Name="Enabled" Type="Boolean" Nullable="false" /> <NavigationProperty Name="Calendar" Relationship="CronosControlModel.FK_Holiday_Calendar" FromRole="Holiday" ToRole="Calendar" /> @@ -932,7 +932,7 @@ <Property Name="Description" Type="String" MaxLength="255" Unicode="false" FixedLength="false" /> <Property Name="StartDate" Type="DateTime" /> <Property Name="EndDate" Type="DateTime" /> - <Property Name="CreatedAt" Type="DateTime" Nullable="false" /> + <Property Name="CreatedAt" Type="DateTime" Nullable="false" a:SetterAccess="Private" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" /> <Property Name="UpdatedAt" Type="DateTime" /> <Property Name="Enabled" Type="Boolean" Nullable="false" /> <NavigationProperty Name="Client" Relationship="CronosControlModel.FK_Project_Client" FromRole="Project" ToRole="Client" /> @@ -966,7 +966,7 @@ <Property Name="IdRole" Type="Int32" Nullable="false" /> <Property Name="Name" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" /> <Property Name="Description" Type="String" MaxLength="255" Unicode="false" FixedLength="false" /> - <Property Name="CreatedAt" Type="DateTime" Nullable="false" /> + <Property Name="CreatedAt" Type="DateTime" Nullable="false" a:SetterAccess="Private" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" /> <Property Name="UpdatedAt" Type="DateTime" /> <Property Name="Enabled" Type="Boolean" Nullable="false" /> <NavigationProperty Name="Company" Relationship="CronosControlModel.FK_Role_Company" FromRole="Role" ToRole="Company" /> @@ -982,7 +982,7 @@ <Property Name="Work" Type="Int32" Nullable="false" /> <Property Name="StartDate" Type="DateTime" Nullable="false" /> <Property Name="EndDate" Type="DateTime" Nullable="false" /> - <Property Name="CreatedAt" Type="DateTime" /> + <Property Name="CreatedAt" Type="DateTime" a:SetterAccess="Private" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" /> <Property Name="UpdatedAt" Type="DateTime" /> <NavigationProperty Name="Project" Relationship="CronosControlModel... [truncated message content] |