You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(1) |
Nov
(2) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(1) |
Feb
(29) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <mar...@us...> - 2010-02-06 23:01:51
|
Revision: 13 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=13&view=rev Author: marioarce Date: 2010-02-06 23:01:44 +0000 (Sat, 06 Feb 2010) Log Message: ----------- Ticket #5 Common library: added base files and structure This Library is created to implement Helper classes, miscellaneous and utility functionality, for general use by other libraries and the website Added Paths: ----------- source/trunk/CronosControl/Libraries/Common/Common.csproj source/trunk/CronosControl/Libraries/Common/Properties/ source/trunk/CronosControl/Libraries/Common/Properties/AssemblyInfo.cs source/trunk/CronosControl/Libraries/Common/Utils/ source/trunk/CronosControl/Libraries/Common/bin/ source/trunk/CronosControl/Libraries/Common/bin/Debug/ source/trunk/CronosControl/Libraries/Common/bin/Debug/CronosControl.Common.dll source/trunk/CronosControl/Libraries/Common/bin/Debug/CronosControl.Common.pdb source/trunk/CronosControl/Libraries/Common/obj/ source/trunk/CronosControl/Libraries/Common/obj/Debug/ source/trunk/CronosControl/Libraries/Common/obj/Debug/Common.csproj.FileListAbsolute.txt source/trunk/CronosControl/Libraries/Common/obj/Debug/CronosControl.Common.dll source/trunk/CronosControl/Libraries/Common/obj/Debug/CronosControl.Common.pdb source/trunk/CronosControl/Libraries/Common/obj/Debug/TempPE/ Added: source/trunk/CronosControl/Libraries/Common/Common.csproj =================================================================== --- source/trunk/CronosControl/Libraries/Common/Common.csproj (rev 0) +++ source/trunk/CronosControl/Libraries/Common/Common.csproj 2010-02-06 23:01:44 UTC (rev 13) @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<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>{D3EBAC29-E2B4-4E13-97B2-B09FD3F04254}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>CronosControl.Common</RootNamespace> + <AssemblyName>CronosControl.Common</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</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\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Core"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Web" /> + <Reference Include="System.Xml.Linq"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.DataSetExtensions"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="Utils\CommonHelper.cs" /> + <Compile Include="Utils\DateTimeHelper.cs" /> + </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. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: source/trunk/CronosControl/Libraries/Common/Properties/AssemblyInfo.cs =================================================================== --- source/trunk/CronosControl/Libraries/Common/Properties/AssemblyInfo.cs (rev 0) +++ source/trunk/CronosControl/Libraries/Common/Properties/AssemblyInfo.cs 2010-02-06 23:01:44 UTC (rev 13) @@ -0,0 +1,36 @@ +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.Common")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CronosControl.Common")] +[assembly: AssemblyCopyright("Copyright © 2010")] +[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("7d2446d1-3a10-4719-ad14-37bce16c372d")] + +// 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 Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: source/trunk/CronosControl/Libraries/Common/bin/Debug/CronosControl.Common.dll =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/Libraries/Common/bin/Debug/CronosControl.Common.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/Libraries/Common/bin/Debug/CronosControl.Common.pdb =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/Libraries/Common/bin/Debug/CronosControl.Common.pdb ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/Libraries/Common/obj/Debug/Common.csproj.FileListAbsolute.txt =================================================================== --- source/trunk/CronosControl/Libraries/Common/obj/Debug/Common.csproj.FileListAbsolute.txt (rev 0) +++ source/trunk/CronosControl/Libraries/Common/obj/Debug/Common.csproj.FileListAbsolute.txt 2010-02-06 23:01:44 UTC (rev 13) @@ -0,0 +1,5 @@ +G:\Mario\developer-SVN\Cronos Control\source\trunk\CronosControl\Libraries\Common\bin\Debug\CronosControl.Common.dll +G:\Mario\developer-SVN\Cronos Control\source\trunk\CronosControl\Libraries\Common\bin\Debug\CronosControl.Common.pdb +G:\Mario\developer-SVN\Cronos Control\source\trunk\CronosControl\Libraries\Common\obj\Debug\ResolveAssemblyReference.cache +G:\Mario\developer-SVN\Cronos Control\source\trunk\CronosControl\Libraries\Common\obj\Debug\CronosControl.Common.dll +G:\Mario\developer-SVN\Cronos Control\source\trunk\CronosControl\Libraries\Common\obj\Debug\CronosControl.Common.pdb Added: source/trunk/CronosControl/Libraries/Common/obj/Debug/CronosControl.Common.dll =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/Libraries/Common/obj/Debug/CronosControl.Common.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/Libraries/Common/obj/Debug/CronosControl.Common.pdb =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/Libraries/Common/obj/Debug/CronosControl.Common.pdb ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2010-02-06 20:45:45
|
Revision: 12 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=12&view=rev Author: marioarce Date: 2010-02-06 20:45:38 +0000 (Sat, 06 Feb 2010) Log Message: ----------- Ticket #5 base Libraries folders structure Added Paths: ----------- source/trunk/CronosControl/Libraries/ source/trunk/CronosControl/Libraries/BusinessLogic/ source/trunk/CronosControl/Libraries/Common/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2010-02-01 22:31:40
|
Revision: 11 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=11&view=rev Author: marioarce Date: 2010-02-01 22:31:32 +0000 (Mon, 01 Feb 2010) Log Message: ----------- Ticket #2 Added jQuery UI theme: 'Redmond' theme from the gallery http://jqueryui.com/themeroller/ Added Paths: ----------- source/trunk/CronosControl/CronosControlWeb/Scripts/images/ source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_flat_0_aaaaaa_40x100.png source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_glass_75_d0e5f5_1x400.png source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_glass_85_dfeffc_1x400.png source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_inset-hard_100_fcfdfd_1x100.png source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-icons_cd0a0a_256x240.png source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-icons_f9bd01_256x240.png source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-ui-1.7.2.custom.css source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-ui-1.7.2.custom.min.js Added: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_flat_0_aaaaaa_40x100.png =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_flat_0_aaaaaa_40x100.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_glass_75_d0e5f5_1x400.png =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_glass_75_d0e5f5_1x400.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_glass_85_dfeffc_1x400.png =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_glass_85_dfeffc_1x400.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_inset-hard_100_fcfdfd_1x100.png =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-bg_inset-hard_100_fcfdfd_1x100.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-icons_cd0a0a_256x240.png =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-icons_cd0a0a_256x240.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-icons_f9bd01_256x240.png =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/Scripts/images/ui-icons_f9bd01_256x240.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-ui-1.7.2.custom.css =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-ui-1.7.2.custom.css (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-ui-1.7.2.custom.css 2010-02-01 22:31:32 UTC (rev 11) @@ -0,0 +1,160 @@ +/* +* jQuery UI CSS Framework +* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) +* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. +*/ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { display: none; } +.ui-helper-hidden-accessible { position: absolute; left: -99999999px; } +.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } +.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } +.ui-helper-clearfix { display: inline-block; } +/* required comment for clearfix to work in Opera \*/ +* html .ui-helper-clearfix { height:1%; } +.ui-helper-clearfix { display:block; } +/* end clearfix */ +.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { cursor: default !important; } + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }/* Accordion +----------------------------------*/ +.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; } +.ui-accordion .ui-accordion-li-fix { display: inline; } +.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; } +.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em 2.2em; } +.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; } +.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; } +.ui-accordion .ui-accordion-content-active { display: block; }/* Datepicker +----------------------------------*/ +.ui-datepicker { width: 17em; padding: .2em .2em 0; } +.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; } +.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; } +.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; } +.ui-datepicker .ui-datepicker-prev { left:2px; } +.ui-datepicker .ui-datepicker-next { right:2px; } +.ui-datepicker .ui-datepicker-prev-hover { left:1px; } +.ui-datepicker .ui-datepicker-next-hover { right:1px; } +.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; } +.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; } +.ui-datepicker .ui-datepicker-title select { float:left; font-size:1em; margin:1px 0; } +.ui-datepicker select.ui-datepicker-month-year {width: 100%;} +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { width: 49%;} +.ui-datepicker .ui-datepicker-title select.ui-datepicker-year { float: right; } +.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; } +.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; } +.ui-datepicker td { border: 0; padding: 1px; } +.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; } +.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; } +.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; } +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; } + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { width:auto; } +.ui-datepicker-multi .ui-datepicker-group { float:left; } +.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; } +.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; } +.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; } +.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; } +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; } +.ui-datepicker-row-break { clear:both; width:100%; } + +/* RTL support */ +.ui-datepicker-rtl { direction: rtl; } +.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; } +.ui-datepicker-rtl .ui-datepicker-group { float:right; } +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; } +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; } + +/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */ +.ui-datepicker-cover { + display: none; /*sorry for IE5*/ + display/**/: block; /*sorry for IE5*/ + position: absolute; /*must have*/ + z-index: -1; /*must have*/ + filter: mask(); /*must have*/ + top: -4px; /*must have*/ + left: -4px; /*must have*/ + width: 200px; /*must have*/ + height: 200px; /*must have*/ +}/* Dialog +----------------------------------*/ +.ui-dialog { position: relative; padding: .2em; width: 300px; } +.ui-dialog .ui-dialog-titlebar { padding: .5em .3em .3em 1em; position: relative; } +.ui-dialog .ui-dialog-title { float: left; margin: .1em 0 .2em; } +.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } +.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } +.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } +.ui-dialog .ui-dialog-content { border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; } +.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; } +.ui-dialog .ui-dialog-buttonpane button { float: right; margin: .5em .4em .5em 0; cursor: pointer; padding: .2em .6em .3em .6em; line-height: 1.4em; width:auto; overflow:visible; } +.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } +.ui-draggable .ui-dialog-titlebar { cursor: move; } +/* Progressbar +----------------------------------*/ +.ui-progressbar { height:2em; text-align: left; } +.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }/* Resizable +----------------------------------*/ +.ui-resizable { position: relative;} +.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;} +.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } +.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0px; } +.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0px; } +.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0px; height: 100%; } +.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0px; height: 100%; } +.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; } +.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; } +.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; } +.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/* Slider +----------------------------------*/ +.ui-slider { position: relative; text-align: left; } +.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } +.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; } + +.ui-slider-horizontal { height: .8em; } +.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; } +.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } +.ui-slider-horizontal .ui-slider-range-min { left: 0; } +.ui-slider-horizontal .ui-slider-range-max { right: 0; } + +.ui-slider-vertical { width: .8em; height: 100px; } +.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; } +.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; } +.ui-slider-vertical .ui-slider-range-min { bottom: 0; } +.ui-slider-vertical .ui-slider-range-max { top: 0; }/* Tabs +----------------------------------*/ +.ui-tabs { padding: .2em; zoom: 1; } +.ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: .2em .2em 0; } +.ui-tabs .ui-tabs-nav li { position: relative; float: left; border-bottom-width: 0 !important; margin: 0 .2em -1px 0; padding: 0; } +.ui-tabs .ui-tabs-nav li a { float: left; text-decoration: none; padding: .5em 1em; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 1px; border-bottom-width: 0; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; } +.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ +.ui-tabs .ui-tabs-panel { padding: 1em 1.4em; display: block; border-width: 0; background: none; } +.ui-tabs .ui-tabs-hide { display: none !important; } Added: source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-ui-1.7.2.custom.min.js =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-ui-1.7.2.custom.min.js (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-ui-1.7.2.custom.min.js 2010-02-01 22:31:32 UTC (rev 11) @@ -0,0 +1,298 @@ +/* + * jQuery UI 1.7.2 + * + * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI + */ +jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;/* + * jQuery UI Draggable 1.7.2 + * + * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Draggables + * + * Depends: + * ui.core.js + */ +(function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger("start",b);this._cacheHelperProportions();if(a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();this._trigger("drag",b,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!d)||(this.options.revert=="valid"&&d)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c);b._clear()})}else{this._trigger("stop",c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper=="clone"?this.element.clone():this.element);if(!b.parents("body").length){b.appendTo((d.appendTo=="parent"?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&&!(/(fixed|absolute)/).test(b.css("position"))){b.css("position","absolute")}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&&e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f=="absolute"?1:-1;var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:(!(g-this.offset.click.top<this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:(!(f-this.offset.click.left<this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add("draggable","connectToSortable",{start:function(c,e){var d=a(this).data("draggable"),f=d.options,b=a.extend({},e,{item:d.element});d.sortables=[];a(f.connectToSortable).each(function(){var g=a.data(this,"sortable");if(g&&!g.options.disabled){d.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",c,b)}})},stop:function(c,e){var d=a(this).data("draggable"),b=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;if(d.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,b)}})},drag:function(c,f){var e=a(this).data("draggable"),b=this;var d=function(i){var n=this.offset.click.top,m=this.offset.click.left;var g=this.positionAbs.top,k=this.positionAbs.left;var j=i.height,l=i.width;var p=i.top,h=i.left;return a.ui.isOver(g+n,k+m,p,h,j,l)};a.each(e.sortables,function(g){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger("toSortable",c);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}if(this.instance.currentItem){this.instance._mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}e._trigger("fromSortable",c);e.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(c,d){var b=a("body"),e=a(this).data("draggable").options;if(b.css("cursor")){e._cursor=b.css("cursor")}b.css("cursor",e.cursor)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._cursor){a("body").css("cursor",d._cursor)}}});a.ui.plugin.add("draggable","iframeFix",{start:function(b,c){var d=a(this).data("draggable").options;a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(b,c){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("opacity")){e._opacity=b.css("opacity")}b.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._opacity){a(c.helper).css("opacity",d._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(c,d){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data("draggable"),f=c.options,b=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!f.axis||f.axis!="x"){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+f.scrollSpeed}else{if(d.pageY-c.overflowOffset.top<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-f.scrollSpeed}}}if(!f.axis||f.axis!="y"){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+f.scrollSpeed}else{if(d.pageX-c.overflowOffset.left<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-f.scrollSpeed}}}}else{if(!f.axis||f.axis!="x"){if(d.pageY-a(document).scrollTop()<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}else{if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}}if(!f.axis||f.axis!="y"){if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}}}if(b!==false&&a.ui.ddmanager&&!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d)}}});a.ui.plugin.add("draggable","snap",{start:function(c,d){var b=a(this).data("draggable"),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||":data(draggable)"):e.snap).each(function(){var g=a(this);var f=g.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})}})},drag:function(u,p){var g=a(this).data("draggable"),q=g.options;var y=q.snapTolerance;var x=p.offset.left,w=x+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var v=g.snapElements.length-1;v>=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y<x&&x<n+y&&m-y<f&&f<A+y)||(s-y<x&&x<n+y&&m-y<e&&e<A+y)||(s-y<w&&w<n+y&&m-y<f&&f<A+y)||(s-y<w&&w<n+y&&m-y<e&&e<A+y))){if(g.snapElements[v].snapping){(g.options.snap.release&&g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=false;continue}if(q.snapMode!="inner"){var c=Math.abs(m-e)<=y;var z=Math.abs(A-f)<=y;var j=Math.abs(s-w)<=y;var k=Math.abs(n-x)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m-g.helperProportions.height,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s-g.helperProportions.width}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n}).left-g.margins.left}}var h=(c||z||j||k);if(q.snapMode!="outer"){var c=Math.abs(m-f)<=y;var z=Math.abs(A-e)<=y;var j=Math.abs(s-x)<=y;var k=Math.abs(n-w)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A-g.helperProportions.height,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[v].snapping&&(c||z||j||k||h)){(g.options.snap.snap&&g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=(c||z||j||k||h)}}});a.ui.plugin.add("draggable","stack",{start:function(b,c){var e=a(this).data("draggable").options;var d=a.makeArray(a(e.stack.group)).sort(function(g,f){return(parseInt(a(g).css("zIndex"),10)||e.stack.min)-(parseInt(a(f).css("zIndex"),10)||e.stack.min)});a(d).each(function(f){this.style.zIndex=e.stack.min+f});this[0].style.zIndex=e.stack.min+d.length}});a.ui.plugin.add("draggable","zIndex",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("zIndex")){e._zIndex=b.css("zIndex")}b.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._zIndex){a(c.helper).css("zIndex",d._zIndex)}}})})(jQuery);;/* + * jQuery UI Droppable 1.7.2 + * + * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Droppables + * + * Depends: + * ui.core.js + * ui.draggable.js + */ +(function(a){a.widget("ui.droppable",{_init:function(){var c=this.options,b=c.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&a.isFunction(this.options.accept)?this.options.accept:function(e){return e.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&&this.element.addClass("ui-droppable"))},destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];for(var c=0;c<b.length;c++){if(b[c]==this){b.splice(c,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(b,c){if(b=="accept"){this.options.accept=c&&a.isFunction(c)?c:function(e){return e.is(c)}}else{a.widget.prototype._setData.apply(this,arguments)}},_activate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(b&&this._trigger("activate",c,this.ui(b)))},_deactivate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(b&&this._trigger("deactivate",c,this.ui(b)))},_over:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",c,this.ui(b))}},_out:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",c,this.ui(b))}},_drop:function(c,d){var b=d||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return false}var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var f=a.data(this,"droppable");if(f.options.greedy&&a.ui.intersect(b,a.extend(f,{offset:f.element.offset()}),f.options.tolerance)){e=true;return false}});if(e){return false}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",c,this.ui(b));return this.element}return false},ui:function(b){return{draggable:(b.currentItem||b.element),helper:b.helper,position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.7.2",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});a.ui.intersect=function(q,j,o){if(!j.offset){return false}var e=(q.positionAbs||q.position.absolute).left,d=e+q.helperProportions.width,n=(q.positionAbs||q.position.absolute).top,m=n+q.helperProportions.height;var g=j.offset.left,c=g+j.proportions.width,p=j.offset.top,k=p+j.proportions.height;switch(o){case"fit":return(g<e&&d<c&&p<n&&m<k);break;case"intersect":return(g<e+(q.helperProportions.width/2)&&d-(q.helperProportions.width/2)<c&&p<n+(q.helperProportions.height/2)&&m-(q.helperProportions.height/2)<k);break;case"pointer":var h=((q.positionAbs||q.position.absolute).left+(q.clickOffset||q.offset.click).left),i=((q.positionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top),f=a.ui.isOver(i,h,p,g,j.proportions.height,j.proportions.width);return f;break;case"touch":return((n>=p&&n<=k)||(m>=p&&m<=k)||(n<p&&m>k))&&((e>=g&&e<=c)||(d>=g&&d<=c)||(e<g&&d>c));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,g){var b=a.ui.ddmanager.droppables[e.options.scope];var f=g?g.type:null;var h=(e.currentItem||e.element).find(":data(droppable)").andSelf();droppablesLoop:for(var d=0;d<b.length;d++){if(b[d].options.disabled||(e&&!b[d].options.accept.call(b[d].element[0],(e.currentItem||e.element)))){continue}for(var c=0;c<h.length;c++){if(h[c]==b[d].element[0]){b[d].proportions.height=0;continue droppablesLoop}}b[d].visible=b[d].element.css("display")!="none";if(!b[d].visible){continue}b[d].offset=b[d].element.offset();b[d].proportions={width:b[d].element[0].offsetWidth,height:b[d].element[0].offsetHeight};if(f=="mousedown"){b[d]._activate.call(b[d],g)}}},drop:function(b,c){var d=false;a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)){d=this._drop.call(this,c)}if(!this.options.disabled&&this.visible&&this.options.accept.call(this.element[0],(b.currentItem||b.element))){this.isout=1;this.isover=0;this._deactivate.call(this,c)}});return d},drag:function(b,c){if(b.options.refreshPositions){a.ui.ddmanager.prepareOffsets(b,c)}a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var e=a.ui.intersect(b,this,this.options.tolerance);var g=!e&&this.isover==1?"isout":(e&&this.isover==0?"isover":null);if(!g){return}var f;if(this.options.greedy){var d=this.element.parents(":data(droppable):eq(0)");if(d.length){f=a.data(d[0],"droppable");f.greedyChild=(g=="isover"?1:0)}}if(f&&g=="isover"){f.isover=0;f.isout=1;f._out.call(f,c)}this[g]=1;this[g=="isout"?"isover":"isout"]=0;this[g=="isover"?"_over":"_out"].call(this,c);if(f&&g=="isout"){f.isout=0;f.isover=1;f._over.call(f,c)}})}}})(jQuery);;/* + * jQuery UI Resizable 1.7.2 + * + * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Resizables + * + * Depends: + * ui.core.js + */ +(function(c){c.widget("ui.resizable",c.extend({},c.ui.mouse,{_init:function(){var e=this,j=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!(j.aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:j.helper||j.ghost||j.animate?j.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&c.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"})}this.element.wrap(c('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=j.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var k=this.handles.split(",");this.handles={};for(var f=0;f<k.length;f++){var h=c.trim(k[f]),d="ui-resizable-"+h;var g=c('<div class="ui-resizable-handle '+d+'"></div>');if(/sw|se|ne|nw/.test(h)){g.css({zIndex:++j.zIndex})}if("se"==h){g.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[h]=".ui-resizable-"+h;this.element.append(g)}}this._renderAxis=function(p){p=p||this.element;for(var m in this.handles){if(this.handles[m].constructor==String){this.handles[m]=c(this.handles[m],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=c(this.handles[m],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(m)?n.outerHeight():n.outerWidth();var l=["padding",/ne|nw|n/.test(m)?"Top":/se|sw|s/.test(m)?"Bottom":/^e$/.test(m)?"Right":"Left"].join("");p.css(l,o);this._proportionallyResize()}if(!c(this.handles[m]).length){continue}}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}e.axis=i&&i[1]?i[1]:"se"}});if(j.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");e._handles.show()},function(){if(!e.resizing){c(this).addClass("ui-resizable-autohide");e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(f){c(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){d(this.element);var e=this.element;e.parent().append(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);d(this.originalElement)},_mouseCapture:function(e){var f=false;for(var d in this.handles){if(c(this.handles[d])[0]==e.target){f=true}}return this.options.disabled||!!f},_mouseStart:function(f){var i=this.options,e=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(d.is(".ui-draggable")||(/absolute/).test(d.css("position"))){d.css({position:"absolute",top:e.top,left:e.left})}if(c.browser.opera&&(/relative/).test(d.css("position"))){d.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var j=b(this.helper.css("left")),g=b(this.helper.css("top"));if(i.containment){j+=c(i.containment).scrollLeft()||0;g+=c(i.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:j,top:g};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:j,top:g};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=(typeof i.aspectRatio=="number")?i.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var h=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",h=="auto"?this.axis+"-resize":h);d.addClass("ui-resizable-resizing");this._propagate("start",f);return true},_mouseDrag:function(d){var g=this.helper,f=this.options,l={},p=this,i=this.originalMousePosition,m=this.axis;var q=(d.pageX-i.left)||0,n=(d.pageY-i.top)||0;var h=this._change[m];if(!h){return false}var k=h.apply(this,[d,q,n]),j=c.browser.msie&&c.browser.version<7,e=this.sizeDiff;if(this._aspectRatio||d.shiftKey){k=this._updateRatio(k,d)}k=this._respectSize(k,d);this._propagate("resize",d);g.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(k);this._trigger("resize",d,this.ui());return false},_mouseStop:function(g){this.resizing=false;var h=this.options,l=this;if(this._helper){var f=this._proportionallyResizeElements,d=f.length&&(/textarea/i).test(f[0].nodeName),e=d&&c.ui.hasScroll(f[0],"left")?0:l.sizeDiff.height,j=d?0:l.sizeDiff.width;var m={width:(l.size.width-j),height:(l.size.height-e)},i=(parseInt(l.element.css("left"),10)+(l.position.left-l.originalPosition.left))||null,k=(parseInt(l.element.css("top"),10)+(l.position.top-l.originalPosition.top))||null;if(!h.animate){this.element.css(c.extend(m,{top:k,left:i}))}l.helper.height(l.size.height);l.helper.width(l.size.width);if(this._helper&&!h.animate){this._proportionallyResize()}}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",g);if(this._helper){this.helper.remove()}return false},_updateCache:function(d){var e=this.options;this.offset=this.helper.offset();if(a(d.left)){this.position.left=d.left}if(a(d.top)){this.position.top=d.top}if(a(d.height)){this.size.height=d.height}if(a(d.width)){this.size.width=d.width}},_updateRatio:function(g,f){var h=this.options,i=this.position,e=this.size,d=this.axis;if(g.height){g.width=(e.height*this.aspectRatio)}else{if(g.width){g.height=(e.width/this.aspectRatio)}}if(d=="sw"){g.left=i.left+(e.width-g.width);g.top=null}if(d=="nw"){g.top=i.top+(e.height-g.height);g.left=i.left+(e.width-g.width)}return g},_respectSize:function(k,f){var i=this.helper,h=this.options,q=this._aspectRatio||f.shiftKey,p=this.axis,s=a(k.width)&&h.maxWidth&&(h.maxWidth<k.width),l=a(k.height)&&h.maxHeight&&(h.maxHeight<k.height),g=a(k.width)&&h.minWidth&&(h.minWidth>k.width),r=a(k.height)&&h.minHeight&&(h.minHeight>k.height);if(g){k.width=h.minWidth}if(r){k.height=h.minHeight}if(s){k.width=h.maxWidth}if(l){k.height=h.maxHeight}var e=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height;var j=/sw|nw|w/.test(p),d=/nw|ne|n/.test(p);if(g&&j){k.left=e-h.minWidth}if(s&&j){k.left=e-h.maxWidth}if(r&&d){k.top=n-h.minHeight}if(l&&d){k.top=n-h.maxHeight}var m=!k.width&&!k.height;if(m&&!k.left&&k.top){k.top=null}else{if(m&&!k.top&&k.left){k.left=null}}return k},_proportionallyResize:function(){var j=this.options;if(!this._proportionallyResizeElements.length){return}var f=this.helper||this.element;for(var e=0;e<this._proportionallyResizeElements.length;e++){var g=this._proportionallyResizeElements[e];if(!this.borderDif){var d=[g.css("borderTopWidth"),g.css("borderRightWidth"),g.css("borderBottomWidth"),g.css("borderLeftWidth")],h=[g.css("paddingTop"),g.css("paddingRight"),g.css("paddingBottom"),g.css("paddingLeft")];this.borderDif=c.map(d,function(k,m){var l=parseInt(k,10)||0,n=parseInt(h[m],10)||0;return l+n})}if(c.browser.msie&&!(!(c(f).is(":hidden")||c(f).parents(":hidden").length))){continue}g.css({height:(f.height()-this.borderDif[0]-this.borderDif[2])||0,width:(f.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var e=this.element,h=this.options;this.elementOffset=e.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var d=c.browser.msie&&c.browser.version<7,f=(d?1:0),g=(d?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++h.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(f,e,d){return{width:this.originalSize.width+e}},w:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{left:h.left+e,width:f.width-e}},n:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{top:h.top+d,height:f.height-d}},s:function(f,e,d){return{height:this.originalSize.height+d}},se:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},sw:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,e,d]))},ne:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},nw:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,e,d]))}},_propagate:function(e,d){c.ui.plugin.call(this,e,[d,this.ui()]);(e!="resize"&&this._trigger(e,d,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));c.extend(c.ui.resizable,{version:"1.7.2",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});c.ui.plugin.add("resizable","alsoResize",{start:function(e,f){var d=c(this).data("resizable"),g=d.options;_store=function(h){c(h).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)})})};if(typeof(g.alsoResize)=="object"&&!g.alsoResize.parentNode){if(g.alsoResize.length){g.alsoResize=g.alsoResize[0];_store(g.alsoResize)}else{c.each(g.alsoResize,function(h,i){_store(h)})}}else{_store(g.alsoResize)}},resize:function(f,h){var e=c(this).data("resizable"),i=e.options,g=e.originalSize,k=e.originalPosition;var j={height:(e.size.height-g.height)||0,width:(e.size.width-g.width)||0,top:(e.position.top-k.top)||0,left:(e.position.left-k.left)||0},d=function(l,m){c(l).each(function(){var p=c(this),q=c(this).data("resizable-alsoresize"),o={},n=m&&m.length?m:["width","height","top","left"];c.each(n||["width","height","top","left"],function(r,t){var s=(q[t]||0)+(j[t]||0);if(s&&s>=0){o[t]=s||null}});if(/relative/.test(p.css("position"))&&c.browser.opera){e._revertToRelativePosition=true;p.css({position:"absolute",top:"auto",left:"auto"})}p.css(o)})};if(typeof(i.alsoResize)=="object"&&!i.alsoResize.nodeType){c.each(i.alsoResize,function(l,m){d(l,m)})}else{d(i.alsoResi... [truncated message content] |
From: <mar...@us...> - 2010-02-01 22:29:12
|
Revision: 10 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=10&view=rev Author: marioarce Date: 2010-02-01 22:29:05 +0000 (Mon, 01 Feb 2010) Log Message: ----------- Ticket #2 Added information related with the project to the About page , copied from http://www.cronoscontrol.net/about/index.html Modified Paths: -------------- source/trunk/CronosControl/CronosControlWeb/Views/Home/About.aspx Modified: source/trunk/CronosControl/CronosControlWeb/Views/Home/About.aspx =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Views/Home/About.aspx 2010-02-01 22:26:20 UTC (rev 9) +++ source/trunk/CronosControl/CronosControlWeb/Views/Home/About.aspx 2010-02-01 22:29:05 UTC (rev 10) @@ -1,12 +1,47 @@ <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> <asp:Content ID="aboutTitle" ContentPlaceHolderID="TitleContent" runat="server"> - About Us + About Cronos Control </asp:Content> - <asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server"> - <h2>About</h2> - <p> - Put content here. - </p> + <h1> + <span>About the open source project</span></h1> + <div class="table"> + <h2> + Introduction</h2> + CC is an acronym for Cronos Control. It is a freely distributed program for such + companies or person who requires tracking time. + <br /> + <br /> + <h2> + About the project</h2> + Cronos Control is created as an Open Source Project in Costa Rica, due the needs + identified by a group of engineers. Is very common in many organizations have projects + where time tracking is the most important metric, many of these organizations depends + on this information to even price the efforts of these projects. For this requirement + and the enthusiasm to develop an Open Source project we create Cronos Control. + <br /> + <br /> + <h2> + CC Development</h2> + <a href="http://www.cronoscontrol.net/about/contributors.html" target="_blank">Authors + and Contributors</a><br /> + <a href="http://www.cronoscontrol.net/development/index.html" target="_blank">Development</a><br /> + <a href="http://www.cronoscontrol.net/development/programming.html" target="_blank"> + Programming details</a> + <br /> + <br /> + <h2> + Important CC Links</h2> + <a href="http://www.cronoscontrol.net/" target="_blank">Official Website</a> - www.cronoscontrol.net<br /> + <a href="http://sourceforge.net/projects/cronoscontrol" target="_blank">CC Project</a> + - sourceforge.net/projects/cronoscontrol<br /> + <a href="http://cronoscontrol.sourceforge.net/" target="_blank">CC Project Development</a> + - cronoscontrol.sourceforge.net<br /> + <a href="http://www.ohloh.net/projects/cronoscontrol" target="_blank">CC Contributors</a> + - www.ohloh.net/projects/cronoscontrol<br /> + <a href="http://twitter.com/cronoscontrol" target="_blank">CC Project on Twitter</a> + - twitter.com/cronoscontrol<br /> + <a href="http://twitter.com/ccdevelopment" target="_blank">CC Dev on Twitter</a> + - twitter.com/ccdevelopment </asp:Content> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2010-02-01 22:26:26
|
Revision: 9 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=9&view=rev Author: marioarce Date: 2010-02-01 22:26:20 +0000 (Mon, 01 Feb 2010) Log Message: ----------- Ticket #2 Added the graphical layout of the official website and base styles Modified Paths: -------------- source/trunk/CronosControl/CronosControlWeb/Content/Site.css source/trunk/CronosControl/CronosControlWeb/CronosControlWeb.csproj source/trunk/CronosControl/CronosControlWeb/Views/Shared/Site.Master Added Paths: ----------- source/trunk/CronosControl/CronosControlWeb/Content/SiteMaster.css source/trunk/CronosControl/CronosControlWeb/Content/images/ source/trunk/CronosControl/CronosControlWeb/Content/images/bottom.gif source/trunk/CronosControl/CronosControlWeb/Content/images/dot.gif source/trunk/CronosControl/CronosControlWeb/Content/images/logo.png source/trunk/CronosControl/CronosControlWeb/Content/images/top.gif Modified: source/trunk/CronosControl/CronosControlWeb/Content/Site.css =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Content/Site.css 2010-02-01 15:29:24 UTC (rev 8) +++ source/trunk/CronosControl/CronosControlWeb/Content/Site.css 2010-02-01 22:26:20 UTC (rev 9) @@ -5,12 +5,11 @@ ----------------------------------------------------------*/ body { - background-color: #5c87b2; - font-size: .75em; - font-family: Verdana, Helvetica, Sans-Serif; margin: 0; padding: 0; - color: #696969; + font-family: Arial, sans-serif; + font-size: 1em; + text-align: left; } a:link @@ -38,6 +37,12 @@ line-height: 1.6em; } +img +{ + border: 0 none; + display: block; +} + /* HEADINGS ----------------------------------------------------------*/ h1, h2, h3, h4, h5, h6 @@ -70,156 +75,58 @@ font-size: 1em; } -/* this rule styles <h2> tags that are the -first child of the left and right table columns */ -.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2 -{ - margin-top: 0; -} - -/* PRIMARY LAYOUT ELEMENTS +/* ALIGNMENT ----------------------------------------------------------*/ -/* you can specify a greater or lesser percentage for the -page width. Or, you can specify an exact pixel width. */ -.page +.left { - width: 90%; - margin-left: auto; - margin-right: auto; + float: left; } -#header +.right { - position: relative; - margin-bottom: 0px; - color: #000; - padding: 0; + float: right; } -#header h1 -{ - font-weight: bold; - padding: 5px 0; - margin: 0; - color: #fff; - border: none; - line-height: 2em; - font-family: Arial, Helvetica, sans-serif; - font-size: 32px !important; -} - -#main -{ - padding: 30px 30px 15px 30px; - background-color: #fff; - margin-bottom: 30px; - _height: 1px; /* only IE6 applies CSS properties starting with an underscrore */ -} - -#footer -{ - color: #999; - padding: 10px 0; - text-align: center; - line-height: normal; - margin: 0; - font-size: .9em; -} - -/* TAB MENU -----------------------------------------------------------*/ -ul#menu -{ - border-bottom: 1px #5C87B2 solid; - padding: 0 0 2px; - position: relative; - margin: 0; - text-align: right; -} - -ul#menu li -{ - display: inline; - list-style: none; -} - -ul#menu li#greeting -{ - padding: 10px 20px; - font-weight: bold; - text-decoration: none; - line-height: 2.8em; - color: #fff; -} - -ul#menu li a -{ - padding: 10px 20px; - font-weight: bold; - text-decoration: none; - line-height: 2.8em; - background-color: #e8eef4; - color: #034af3; -} - -ul#menu li a:hover -{ - background-color: #fff; - text-decoration: none; -} - -ul#menu li a:active -{ - background-color: #a6e2a6; - text-decoration: none; -} - -ul#menu li.selected a -{ - background-color: #fff; - color: #000; -} - /* FORM LAYOUT ELEMENTS ----------------------------------------------------------*/ -fieldset +fieldset { margin: 1em 0; padding: 1em; border: 1px solid #CCC; } -fieldset p +fieldset p { margin: 2px 12px 10px 10px; } -fieldset label +fieldset label { display: block; } -fieldset label.inline +fieldset label.inline { display: inline; } -legend +legend { font-size: 1.1em; font-weight: 600; padding: 2px 4px 8px 4px; } -input[type="text"] +input[type="text"] { width: 200px; border: 1px solid #CCC; } -input[type="password"] +input[type="password"] { width: 200px; border: 1px solid #CCC; @@ -228,57 +135,53 @@ /* TABLE ----------------------------------------------------------*/ -table +table { - border: solid 1px #e8eef4; - border-collapse: collapse; + border: solid 1px #e8eef4; + border-collapse: collapse; } -table td +table td { - padding: 5px; - border: solid 1px #e8eef4; + padding: 5px; + border: solid 1px #e8eef4; } table th { - padding: 6px 5px; - text-align: left; - background-color: #e8eef4; - border: solid 1px #e8eef4; + padding: 6px 5px; + text-align: left; + background-color: #F5F8F9; + border: solid 1px #F5F8F9; } /* MISC ----------------------------------------------------------*/ .clear { - clear: both; + width: 100%; + overflow: hidden; } .error { - color:Red; + color: Red; } -#menucontainer -{ - margin-top:40px; -} - div#title { - display:block; - float:left; - text-align:left; + display: block; + float: left; + text-align: left; } #logindisplay { - font-size:1.1em; - display:block; - text-align:right; - margin:10px; - color:White; + font-size: 1.1em; + display: block; + text-align: right; + margin: 10px; + color: White; } #logindisplay a:link Added: source/trunk/CronosControl/CronosControlWeb/Content/SiteMaster.css =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Content/SiteMaster.css (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Content/SiteMaster.css 2010-02-01 22:26:20 UTC (rev 9) @@ -0,0 +1,488 @@ +a, a:link +{ + text-decoration: underline; + cursor: pointer; + color: #0F76BC; +} + +a:visited +{ + color: #0F76BC; +} + +a:hover, a:focus, a:active +{ + color: #000; +} + +/*========== [layout] ========================================================*/ +body +{ + text-align: center; + font-family: Arial, sans-serif; + background: #000; + color: #444; + font-size: 1em; + line-height: 1.7; + padding-bottom: 0; +} + +table +{ + line-height: 1.7; +} + +div.content +{ + font-size: 0.77em; + width: 940px; + margin: 0 auto; + text-align: left; +} + +/*========== [header] ========================================================*/ +div#head +{ + color: #fff; + padding: 30px 0 37px; + background: #0F76BC url(/Content/images/top.gif) 0 100% repeat-x; +} + +#home div#head, #home div#body +{ + background: #0F76BC; +} + +div#logo +{ + width: 127px; + height: 37px; + float: left; +} + +div#menu +{ + width: 480px; + float: right; +} + +div#menu li +{ + float: right; + list-style-type: none; +} + +div#menu a, div#menu a:link, div#menu a:visited +{ + display: block; + color: #fff; + text-decoration: none; + font-weight: bold; + padding: 8px 20px 45px; +} + +div#menu a:hover +{ + color: #000; +} + +div#head a.fmenu, div#head a.fmenu:link, div#head a.fmenu:visited +{ + padding-right: 0; +} + +div#menu a.active, div#menu a.active:link, div#menu a.active:visited, div#menu a.active:hover +{ + color: #000; +} + +div.sm +{ + background: #000; +} + +div#sm +{ + float: right; + width: 500px; +} + +div#sm li +{ + float: right; +} + +div#sm a, div#sm a:link, div#sm a:visited +{ + display: block; + color: #fff; + text-decoration: none; + padding: 8px 15px 12px; +} + +div#sm a:hover +{ + text-decoration: underline; +} + +div#sm a.active +{ + font-weight: bold; +} + +div.pn +{ + width: 38px; + float: left; + font-size: 1.8em; + font-weight: bold; + line-height: 1.0; + padding-top: 2px; +} + +div.pn a +{ + text-decoration: none; + color: #fff; + display: block; + padding: 4px 4px; +} + +div.pn a.prev +{ + float: left; + padding-left: 0; +} + +a.next +{ + float: right; +} + +div.detail +{ + width: 580px; + float: right; +} + +/*========== [content] ========================================================*/ +div#body +{ + background: #fff; + padding-bottom: 20px; +} + +div.home +{ + padding-top: 20px; +} + +div.ref div +{ + width: 172px; + float: left; + margin: 0 20px 0 0; +} + +div.ref +{ + margin-bottom: 20px; +} + +div.ref div a +{ + border: 1px solid #e3e3e3; + display: block; +} + +div.ref div a:hover +{ + border: 1px solid #0F76BC; +} + +h1, h2 +{ + font-weight: bold; +} + +h1 +{ + font-size: 1.6em; + color: #0F76BC; + margin-bottom: 25px; +} + +h2 +{ + font-size: 1.4em; + margin-bottom: 20px; + color: #0079FF; +} + +div#body p, div#body ul +{ + padding-left: 5px; + margin-bottom: 1.4em; +} + +div#body ul li +{ + padding-left: 30px; + background: url(/Content/images/dot.gif) 12px 7px no-repeat; +} + +div.text +{ + width: 300px; + float: left; +} + +div.mImg a +{ + display: block; +} + +div.detail +{ + margin-top: 15px; +} + +div.popis +{ + width: 325px; + float: left; + padding-top: 6px; +} + +div.thumb +{ + width: 218px; + float: right; +} + +div.detailWrap +{ + padding: 4px 4px 1px 15px; + font-size: 0.89em; + color: #fff; + position: relative; +} + +div.thumb a +{ + display: block; + border: 1px solid #dddddd; +} + +div.thumb div +{ + float: left; + margin: 0 4px 4px 0; +} + +div.detail a, div.detail a:link, div.detail a:visited +{ + color: #fff; +} + +div.pn2 +{ + position: absolute; + top: -1px; + left: -20px; + line-height: 1.0; + font-size: 1.2em; +} + +div.pn2 a +{ + font-weight: bold; + padding: 2px 8px 6px; + display: block; + margin-bottom: 1px; + text-decoration: none; +} + +table.char +{ + width: 100%; +} + +table.char th +{ + color: #777; + font-size: 0.89em; + text-transform: uppercase; + padding-right: 10px; + border-right: 1px solid #ddd; + font-weight: normal; +} + +table.char td +{ + padding-left: 10px; +} + +div.pn a:hover +{ + color: #0F76BC; +} + +div.klienti div, div.klienti h3, div.klienti ul, div.klienti ul li +{ + float: left; + white-space: nowrap; +} + +div#body div.klienti ul, div#body div.klienti ul li +{ + padding: 0; + margin: 0 0 0 5px; + background: transparent; +} + +div#body div.klienti ul +{ + margin: 0; +} + +div.klienti div +{ + padding: 2px 4px 2px 7px; + margin-right: 5px; +} + +div.klienti div h3 +{ + color: #000; + font-weight: normal; +} + +div.klienti div h3:hover +{ + cursor: pointer; + color: #0F76BC; +} + +div.klienti div.active +{ + background: #0F76BC; +} + +div.klienti div.active h3 +{ + color: #fff; + text-decoration: none; + font-weight: bold; +} + +div.klienti div.active a, div.klienti div.active a:link, div.klienti div.active a:visited +{ + text-decoration: none; + background: #fff; + color: #0F76BC; + padding: 1px 3px 1px; +} + +div.klienti div.active a:hover +{ + background: #000; + color: #fff; +} + +div.klienti div ul, div.klienti h3 span +{ + display: none; +} + + +div.klienti div.active h3 span +{ + display: inline; +} + +div.klienti div.active h3:hover +{ + color: #fff; + text-decoration: none; +} + +div.klienti +{ + position: relative; + left: -7px; +} + +div.links a, div.links a:link, div.links a:visited +{ + margin-right: 5px; + color: #000; + text-decoration: none; + white-space: nowrap; +} + +div.links a:hover +{ + color: #0F76BC; +} + +div.num +{ + padding: 70px 0 160px; +} + +div.num div.right +{ + width: 430px; + height: 137px; +} + +/*========== [footer] ========================================================*/ +div#footer +{ + background: #000 url(/Content/images/bottom.gif) 0 0 repeat-x; + padding-top: 39px; + color: #fff; +} + +#home div#footer +{ + background: #000; + padding-top: 0; +} + +div#footer div.content div +{ + font-size: 0.89em; + padding: 8px 0 11px; +} + +div#footer a, div#footer a:link, div#footer a:visited +{ + color: #fff; +} + +div#footer div.left a +{ + text-decoration: underline; +} + +div#footer div.left a:hover +{ + text-decoration: none; +} + +div#footer a:hover +{ + text-decoration: none; +} + +div#footer i +{ + margin: 0 5px; +} + +.content_back +{ + text-align: justify; +} Added: source/trunk/CronosControl/CronosControlWeb/Content/images/bottom.gif =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/Content/images/bottom.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/Content/images/dot.gif =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/Content/images/dot.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/Content/images/logo.png =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/Content/images/logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/Content/images/top.gif =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/Content/images/top.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: source/trunk/CronosControl/CronosControlWeb/CronosControlWeb.csproj =================================================================== --- source/trunk/CronosControl/CronosControlWeb/CronosControlWeb.csproj 2010-02-01 15:29:24 UTC (rev 8) +++ source/trunk/CronosControl/CronosControlWeb/CronosControlWeb.csproj 2010-02-01 22:26:20 UTC (rev 9) @@ -76,8 +76,22 @@ <Content Include="App_Data\CronosControl_log.ldf"> <DependentUpon>CronosControl.mdf</DependentUpon> </Content> + <Content Include="Content\images\bottom.gif" /> + <Content Include="Content\images\dot.gif" /> + <Content Include="Content\images\logo.png" /> + <Content Include="Content\images\top.gif" /> + <Content Include="Content\SiteMaster.css" /> <Content Include="Default.aspx" /> <Content Include="Global.asax" /> + <Content Include="Scripts\images\ui-bg_flat_0_aaaaaa_40x100.png" /> + <Content Include="Scripts\images\ui-bg_glass_75_d0e5f5_1x400.png" /> + <Content Include="Scripts\images\ui-bg_glass_85_dfeffc_1x400.png" /> + <Content Include="Scripts\images\ui-bg_gloss-wave_55_5c9ccc_500x100.png" /> + <Content Include="Scripts\images\ui-bg_inset-hard_100_fcfdfd_1x100.png" /> + <Content Include="Scripts\images\ui-icons_cd0a0a_256x240.png" /> + <Content Include="Scripts\images\ui-icons_f9bd01_256x240.png" /> + <Content Include="Scripts\jquery-ui-1.7.2.custom.css" /> + <Content Include="Scripts\jquery-ui-1.7.2.custom.min.js" /> <Content Include="Views\Projects\ProjectsList.aspx" /> <Content Include="Web.config" /> <Content Include="Content\Site.css" /> Modified: source/trunk/CronosControl/CronosControlWeb/Views/Shared/Site.Master =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Views/Shared/Site.Master 2010-02-01 15:29:24 UTC (rev 8) +++ source/trunk/CronosControl/CronosControlWeb/Views/Shared/Site.Master 2010-02-01 22:26:20 UTC (rev 9) @@ -3,36 +3,55 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> - <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title> - <link href="../../Content/Site.css" rel="stylesheet" type="text/css" /> + <title> + <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> + </title> + <link href="/Content/Site.css" rel="stylesheet" type="text/css" /> + <link href="/Content/SiteMaster.css" rel="stylesheet" type="text/css" /> + <link href="/Scripts/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" /> + <script src="/Scripts/jquery-1.3.2.min.js" type="text/javascript"></script> + <script src="/Scripts/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script> </head> - <body> - <div class="page"> - - <div id="header"> - <div id="title"> - <h1>My MVC Application</h1> + <div id="main"> + <div id="head"> + <div class="content"> + <div class="clear"> + <div id="logo"> + <a href="/Default.aspx"> + <img src="../../Content/images/logo.png" alt="Cronos Control time tracker open source project" /></a></div> + <div id="menu"> + <ul class="menuitems"> + <!-- menu items --> + <li> + <%= Html.ActionLink("Home", "Index", "Home")%></li> + <li> + <%= Html.ActionLink("Projects", "Index", "Projects")%></li> + <!-- end menu items --> + </ul> + </div> + </div> </div> - - <div id="logindisplay"> - <% Html.RenderPartial("LogOnUserControl"); %> - </div> - - <div id="menucontainer"> - - <ul id="menu"> - <li><%= Html.ActionLink("Home", "Index", "Home")%></li> - <li><%= Html.ActionLink("About", "About", "Home")%></li> - </ul> - + </div> + <div id="body"> + <div class="content clear"> + <!-- content --> + <asp:ContentPlaceHolder ID="MainContent" runat="server" /> + <!-- end content --> </div> </div> - - <div id="main"> - <asp:ContentPlaceHolder ID="MainContent" runat="server" /> - - <div id="footer"> + <div id="footer"> + <div class="content clear"> + <div class="left"> + <!-- footer - left --> + Cronos Control v0.0 + <!-- end footer - left --> + </div> + <div class="right"> + <!-- footer - right --> + <%= Html.ActionLink("Home", "Index", "Home")%> + <!-- end footer - right --> + </div> </div> </div> </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2010-02-01 15:29:44
|
Revision: 8 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=8&view=rev Author: marioarce Date: 2010-02-01 15:29:24 +0000 (Mon, 01 Feb 2010) Log Message: ----------- Ticket #1 Initial database recreated for Microsoft SQL Server 2005 Express v09.00.1399 in order to avoid the error: "The database '...\APP_DATA\CRONOSCONTROL.MDF' cannot be opened because it is version 655. This server supports version 611 and earlier. A downgrade path is not supported." Modified Paths: -------------- source/trunk/CronosControl/CronosControlWeb/App_Data/CronosControl.mdf source/trunk/CronosControl/CronosControlWeb/App_Data/CronosControl_log.ldf Modified: source/trunk/CronosControl/CronosControlWeb/App_Data/CronosControl.mdf =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/CronosControlWeb/App_Data/CronosControl_log.ldf =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <all...@us...> - 2010-01-13 21:45:32
|
Revision: 7 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=7&view=rev Author: allancascante Date: 2010-01-13 21:45:19 +0000 (Wed, 13 Jan 2010) Log Message: ----------- Ticket #1: Added MVC project for presentation, added a demo view to show the interaction with all the pieces. Added business methods to the business classes to list entities, the implementation of each method is missing only Project list was added to support the demo page. Modified Paths: -------------- source/trunk/CronosControl/CronosControl.sln source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Business.cs 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/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 Added Paths: ----------- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/ExceptionBusinessError.cs source/trunk/CronosControl/CronosControlWeb/ source/trunk/CronosControl/CronosControlWeb/App_Data/ source/trunk/CronosControl/CronosControlWeb/App_Data/CronosControl.mdf source/trunk/CronosControl/CronosControlWeb/App_Data/CronosControl_log.ldf source/trunk/CronosControl/CronosControlWeb/Content/ source/trunk/CronosControl/CronosControlWeb/Content/Site.css source/trunk/CronosControl/CronosControlWeb/Controllers/ source/trunk/CronosControl/CronosControlWeb/Controllers/AccountController.cs source/trunk/CronosControl/CronosControlWeb/Controllers/HomeController.cs source/trunk/CronosControl/CronosControlWeb/Controllers/ProjectsController.cs source/trunk/CronosControl/CronosControlWeb/CronosControlWeb.csproj source/trunk/CronosControl/CronosControlWeb/Default.aspx source/trunk/CronosControl/CronosControlWeb/Default.aspx.cs source/trunk/CronosControl/CronosControlWeb/Global.asax source/trunk/CronosControl/CronosControlWeb/Global.asax.cs source/trunk/CronosControl/CronosControlWeb/Properties/ source/trunk/CronosControl/CronosControlWeb/Properties/AssemblyInfo.cs source/trunk/CronosControl/CronosControlWeb/Scripts/ source/trunk/CronosControl/CronosControlWeb/Scripts/MicrosoftAjax.debug.js source/trunk/CronosControl/CronosControlWeb/Scripts/MicrosoftAjax.js source/trunk/CronosControl/CronosControlWeb/Scripts/MicrosoftMvcAjax.debug.js source/trunk/CronosControl/CronosControlWeb/Scripts/MicrosoftMvcAjax.js source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-1.3.2-vsdoc.js source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-1.3.2.js source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-1.3.2.min-vsdoc.js source/trunk/CronosControl/CronosControlWeb/Scripts/jquery-1.3.2.min.js source/trunk/CronosControl/CronosControlWeb/Views/ source/trunk/CronosControl/CronosControlWeb/Views/Account/ source/trunk/CronosControl/CronosControlWeb/Views/Account/ChangePassword.aspx source/trunk/CronosControl/CronosControlWeb/Views/Account/ChangePasswordSuccess.aspx source/trunk/CronosControl/CronosControlWeb/Views/Account/LogOn.aspx source/trunk/CronosControl/CronosControlWeb/Views/Account/Register.aspx source/trunk/CronosControl/CronosControlWeb/Views/Home/ source/trunk/CronosControl/CronosControlWeb/Views/Home/About.aspx source/trunk/CronosControl/CronosControlWeb/Views/Home/Index.aspx source/trunk/CronosControl/CronosControlWeb/Views/Projects/ source/trunk/CronosControl/CronosControlWeb/Views/Projects/ProjectsList.aspx source/trunk/CronosControl/CronosControlWeb/Views/Shared/ source/trunk/CronosControl/CronosControlWeb/Views/Shared/Error.aspx source/trunk/CronosControl/CronosControlWeb/Views/Shared/LogOnUserControl.ascx source/trunk/CronosControl/CronosControlWeb/Views/Shared/Site.Master source/trunk/CronosControl/CronosControlWeb/Views/Web.config source/trunk/CronosControl/CronosControlWeb/Web.config source/trunk/CronosControl/CronosControlWeb.Tests/ source/trunk/CronosControl/CronosControlWeb.Tests/App.config source/trunk/CronosControl/CronosControlWeb.Tests/AuthoringTests.txt source/trunk/CronosControl/CronosControlWeb.Tests/Controllers/ source/trunk/CronosControl/CronosControlWeb.Tests/Controllers/AccountControllerTest.cs source/trunk/CronosControl/CronosControlWeb.Tests/Controllers/HomeControllerTest.cs source/trunk/CronosControl/CronosControlWeb.Tests/CronosControlWeb.Tests.csproj source/trunk/CronosControl/CronosControlWeb.Tests/Properties/ source/trunk/CronosControl/CronosControlWeb.Tests/Properties/AssemblyInfo.cs Modified: source/trunk/CronosControl/CronosControl.sln =================================================================== --- source/trunk/CronosControl/CronosControl.sln 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControl.sln 2010-01-13 21:45:19 UTC (rev 7) @@ -13,12 +13,11 @@ LocalTestRun.testrunconfig = LocalTestRun.testrunconfig EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControl", "CronosControl\CronosControl.csproj", "{93AD76A1-1973-434A-8677-8B19F02E30D8}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControlWeb", "CronosControlWeb\CronosControlWeb.csproj", "{F0208315-D73D-4A51-B247-FFFBF19BD9AC}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControlWeb.Tests", "CronosControlWeb.Tests\CronosControlWeb.Tests.csproj", "{9CC0D375-D6BD-418D-87EB-079A4114D8FB}" +EndProject Global - GlobalSection(TestCaseManagementSettings) = postSolution - CategoryFile = CronosControl.vsmdi - EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|.NET = Debug|.NET Debug|Any CPU = Debug|Any CPU @@ -48,16 +47,26 @@ {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 - {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 + {F0208315-D73D-4A51-B247-FFFBF19BD9AC}.Debug|.NET.ActiveCfg = Debug|Any CPU + {F0208315-D73D-4A51-B247-FFFBF19BD9AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F0208315-D73D-4A51-B247-FFFBF19BD9AC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F0208315-D73D-4A51-B247-FFFBF19BD9AC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {F0208315-D73D-4A51-B247-FFFBF19BD9AC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {F0208315-D73D-4A51-B247-FFFBF19BD9AC}.Release|.NET.ActiveCfg = Release|Any CPU + {F0208315-D73D-4A51-B247-FFFBF19BD9AC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F0208315-D73D-4A51-B247-FFFBF19BD9AC}.Release|Any CPU.Build.0 = Release|Any CPU + {F0208315-D73D-4A51-B247-FFFBF19BD9AC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {F0208315-D73D-4A51-B247-FFFBF19BD9AC}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {9CC0D375-D6BD-418D-87EB-079A4114D8FB}.Debug|.NET.ActiveCfg = Debug|Any CPU + {9CC0D375-D6BD-418D-87EB-079A4114D8FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9CC0D375-D6BD-418D-87EB-079A4114D8FB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9CC0D375-D6BD-418D-87EB-079A4114D8FB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {9CC0D375-D6BD-418D-87EB-079A4114D8FB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {9CC0D375-D6BD-418D-87EB-079A4114D8FB}.Release|.NET.ActiveCfg = Release|Any CPU + {9CC0D375-D6BD-418D-87EB-079A4114D8FB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9CC0D375-D6BD-418D-87EB-079A4114D8FB}.Release|Any CPU.Build.0 = Release|Any CPU + {9CC0D375-D6BD-418D-87EB-079A4114D8FB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {9CC0D375-D6BD-418D-87EB-079A4114D8FB}.Release|Mixed Platforms.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Business.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Business.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Business.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -9,7 +9,7 @@ namespace CronosControl.Business { - public class Business<T> : IBusiness<T> where T : IEntityWithKey + public abstract class Business<T> : IBusiness<T> where T : IEntityWithKey { private CronosControlEntities cronosControlEntities; @@ -78,6 +78,10 @@ } } + public abstract List<T> List(); + + public abstract List<T> List(int page, int elements); + #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -12,6 +12,16 @@ /// </summary> public class Calendars : Business<Calendar>, ICalendars { + #region Business<Calendar> abstract methods + public override List<Calendar> List() + { + throw new NotImplementedException(); + } + public override List<Calendar> List(int page, int elements) + { + throw new NotImplementedException(); + } + #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -11,5 +11,16 @@ /// </summary> public class Clients : Business<Client>, IClients { + #region Business<Client> abstract methods + public override List<Client> List() + { + throw new NotImplementedException(); + } + + public override List<Client> List(int page, int elements) + { + throw new NotImplementedException(); + } + #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -11,5 +11,16 @@ /// </summary> public class Companies : Business<Company>, ICompanies { + #region Business<Company> abstract methods + public override List<Company> List() + { + throw new NotImplementedException(); + } + + public override List<Company> List(int page, int elements) + { + throw new NotImplementedException(); + } + #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -11,5 +11,16 @@ /// </summary> public class CostCenters : Business<CostCenter>, ICostCenters { + #region Business<CostCenter> + public override List<CostCenter> List() + { + throw new NotImplementedException(); + } + + public override List<CostCenter> List(int page, int elements) + { + throw new NotImplementedException(); + } + #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -11,5 +11,16 @@ /// </summary> public class Documents : Business<Document>, IDocuments { + #region Business<Document> + public override List<Document> List() + { + throw new NotImplementedException(); + } + + public override List<Document> List(int page, int elements) + { + throw new NotImplementedException(); + } + #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -18,10 +18,33 @@ /// <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> + /// Get an entity for the given entity, the provided entity only needs to provide the key value for the entity to get. + /// </summary> + /// <param name="entity">The entity with the key value set to get</param> + /// <returns>The entity found null otherwise</returns> T Get(T entity); + /// <summary> + /// Find an entity for the given entity set with the values to search for. + /// </summary> + /// <param name="entity">The entity to find</param> + /// <returns>True if found, false otherwise</returns> bool Find(T entity); + /// <summary> + /// Returns a list with all elements for the entity + /// </summary> + /// <returns>A list with all elements found for the entity</returns> + List<T> List(); + /// <summary> + /// Returns a list with the <paramref name="elements"/> for the requested page. + /// </summary> + /// <param name="page">Page number</param> + /// <param name="elements">Elements by page</param> + /// <returns>List with the elements for the given page</returns> + List<T> List(int page, int elements); + } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -12,7 +12,19 @@ /// </summary> public class Projects : Business<Project>, IProjects { + CronosControlEntities cronosControlEntities; - + #region Bussiness Abstract Methods + public override List<Project> List() + { + cronosControlEntities = new CronosControlEntities(); + return cronosControlEntities.Project.ToList(); + } + + public override List<Project> List(int page, int elements) + { + throw new NotImplementedException(); + } + #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -11,5 +11,16 @@ /// </summary> public class Roles : Business<Role>, IRoles { + #region Business<Role> abstract methods + public override List<Role> List() + { + throw new NotImplementedException(); + } + + public override List<Role> List(int page, int elements) + { + throw new NotImplementedException(); + } + #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -11,5 +11,16 @@ /// </summary> public class Tasks : Business<Task>, ITasks { + #region Business<Task> + public override List<Task> List() + { + throw new NotImplementedException(); + } + + public override List<Task> List(int page, int elements) + { + throw new NotImplementedException(); + } + #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -11,5 +11,16 @@ /// </summary> public class TimeCategories : Business<TimeCategory>, ITimeCategories { + #region Business<TimeCategory> abstract methods + public override List<TimeCategory> List() + { + throw new NotImplementedException(); + } + + public override List<TimeCategory> List(int page, int elements) + { + throw new NotImplementedException(); + } + #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -11,5 +11,16 @@ /// </summary> public class TimeSheets : Business<TimeSheet>, ITimeSheets { + #region Business<TimeSheet> abstract methods + public override List<TimeSheet> List() + { + throw new NotImplementedException(); + } + + public override List<TimeSheet> List(int page, int elements) + { + throw new NotImplementedException(); + } + #endregion } } Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -24,5 +24,17 @@ } return base.Save(entity); } + + #region Business<User> abstract methods + public override List<User> List() + { + throw new NotImplementedException(); + } + + public override List<User> List(int page, int elements) + { + throw new NotImplementedException(); + } + #endregion } } Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/ExceptionBusinessError.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/ExceptionBusinessError.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/ExceptionBusinessError.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business.Util.ErrorHandling +{ + class ExceptionBusinessError : Exception, IBusinessError + { + private Exception ex; + + public ExceptionBusinessError(Exception ex) + : base(ex.Message) + { + this.ex = ex; + } + } +} Modified: source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj 2009-11-20 23:22:25 UTC (rev 6) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj 2010-01-13 21:45:19 UTC (rev 7) @@ -74,7 +74,7 @@ <Compile Include="Business\TimeCategories.cs" /> <Compile Include="Business\TimeSheets.cs" /> <Compile Include="Business\Users.cs" /> - <Compile Include="Business\Util\ErrorHandling\BusinessError.cs" /> + <Compile Include="Business\Util\ErrorHandling\ExceptionBusinessError.cs" /> <Compile Include="Business\Util\ErrorHandling\IBusinessError.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> </ItemGroup> Added: source/trunk/CronosControl/CronosControlWeb/App_Data/CronosControl.mdf =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/App_Data/CronosControl.mdf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/App_Data/CronosControl_log.ldf =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlWeb/App_Data/CronosControl_log.ldf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlWeb/Content/Site.css =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Content/Site.css (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Content/Site.css 2010-01-13 21:45:19 UTC (rev 7) @@ -0,0 +1,317 @@ +/*---------------------------------------------------------- +The base color for this template is #5c87b2. If you'd like +to use a different color start by replacing all instances of +#5c87b2 with your new color. +----------------------------------------------------------*/ +body +{ + background-color: #5c87b2; + font-size: .75em; + font-family: Verdana, Helvetica, Sans-Serif; + margin: 0; + padding: 0; + color: #696969; +} + +a:link +{ + color: #034af3; + text-decoration: underline; +} +a:visited +{ + color: #505abc; +} +a:hover +{ + color: #1d60ff; + text-decoration: none; +} +a:active +{ + color: #12eb87; +} + +p, ul +{ + margin-bottom: 20px; + line-height: 1.6em; +} + +/* HEADINGS +----------------------------------------------------------*/ +h1, h2, h3, h4, h5, h6 +{ + font-size: 1.5em; + color: #000; + font-family: Arial, Helvetica, sans-serif; +} + +h1 +{ + font-size: 2em; + padding-bottom: 0; + margin-bottom: 0; +} +h2 +{ + padding: 0 0 10px 0; +} +h3 +{ + font-size: 1.2em; +} +h4 +{ + font-size: 1.1em; +} +h5, h6 +{ + font-size: 1em; +} + +/* this rule styles <h2> tags that are the +first child of the left and right table columns */ +.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2 +{ + margin-top: 0; +} + +/* PRIMARY LAYOUT ELEMENTS +----------------------------------------------------------*/ + +/* you can specify a greater or lesser percentage for the +page width. Or, you can specify an exact pixel width. */ +.page +{ + width: 90%; + margin-left: auto; + margin-right: auto; +} + +#header +{ + position: relative; + margin-bottom: 0px; + color: #000; + padding: 0; +} + +#header h1 +{ + font-weight: bold; + padding: 5px 0; + margin: 0; + color: #fff; + border: none; + line-height: 2em; + font-family: Arial, Helvetica, sans-serif; + font-size: 32px !important; +} + +#main +{ + padding: 30px 30px 15px 30px; + background-color: #fff; + margin-bottom: 30px; + _height: 1px; /* only IE6 applies CSS properties starting with an underscrore */ +} + +#footer +{ + color: #999; + padding: 10px 0; + text-align: center; + line-height: normal; + margin: 0; + font-size: .9em; +} + +/* TAB MENU +----------------------------------------------------------*/ +ul#menu +{ + border-bottom: 1px #5C87B2 solid; + padding: 0 0 2px; + position: relative; + margin: 0; + text-align: right; +} + +ul#menu li +{ + display: inline; + list-style: none; +} + +ul#menu li#greeting +{ + padding: 10px 20px; + font-weight: bold; + text-decoration: none; + line-height: 2.8em; + color: #fff; +} + +ul#menu li a +{ + padding: 10px 20px; + font-weight: bold; + text-decoration: none; + line-height: 2.8em; + background-color: #e8eef4; + color: #034af3; +} + +ul#menu li a:hover +{ + background-color: #fff; + text-decoration: none; +} + +ul#menu li a:active +{ + background-color: #a6e2a6; + text-decoration: none; +} + +ul#menu li.selected a +{ + background-color: #fff; + color: #000; +} + +/* FORM LAYOUT ELEMENTS +----------------------------------------------------------*/ + +fieldset +{ + margin: 1em 0; + padding: 1em; + border: 1px solid #CCC; +} + +fieldset p +{ + margin: 2px 12px 10px 10px; +} + +fieldset label +{ + display: block; +} + +fieldset label.inline +{ + display: inline; +} + +legend +{ + font-size: 1.1em; + font-weight: 600; + padding: 2px 4px 8px 4px; +} + +input[type="text"] +{ + width: 200px; + border: 1px solid #CCC; +} + +input[type="password"] +{ + width: 200px; + border: 1px solid #CCC; +} + +/* TABLE +----------------------------------------------------------*/ + +table +{ + border: solid 1px #e8eef4; + border-collapse: collapse; +} + +table td +{ + padding: 5px; + border: solid 1px #e8eef4; +} + +table th +{ + padding: 6px 5px; + text-align: left; + background-color: #e8eef4; + border: solid 1px #e8eef4; +} + +/* MISC +----------------------------------------------------------*/ +.clear +{ + clear: both; +} + +.error +{ + color:Red; +} + +#menucontainer +{ + margin-top:40px; +} + +div#title +{ + display:block; + float:left; + text-align:left; +} + +#logindisplay +{ + font-size:1.1em; + display:block; + text-align:right; + margin:10px; + color:White; +} + +#logindisplay a:link +{ + color: white; + text-decoration: underline; +} + +#logindisplay a:visited +{ + color: white; + text-decoration: underline; +} + +#logindisplay a:hover +{ + color: white; + text-decoration: none; +} + +.field-validation-error +{ + color: #ff0000; +} + +.input-validation-error +{ + border: 1px solid #ff0000; + background-color: #ffeeee; +} + +.validation-summary-errors +{ + font-weight: bold; + color: #ff0000; +} Added: source/trunk/CronosControl/CronosControlWeb/Controllers/AccountController.cs =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Controllers/AccountController.cs (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Controllers/AccountController.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -0,0 +1,351 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Security.Principal; +using System.Web; +using System.Web.Mvc; +using System.Web.Security; +using System.Web.UI; + +namespace CronosControlWeb.Controllers +{ + + [HandleError] + public class AccountController : Controller + { + + // This constructor is used by the MVC framework to instantiate the controller using + // the default forms authentication and membership providers. + + public AccountController() + : this(null, null) + { + } + + // This constructor is not used by the MVC framework but is instead provided for ease + // of unit testing this type. See the comments at the end of this file for more + // information. + public AccountController(IFormsAuthentication formsAuth, IMembershipService service) + { + FormsAuth = formsAuth ?? new FormsAuthenticationService(); + MembershipService = service ?? new AccountMembershipService(); + } + + public IFormsAuthentication FormsAuth + { + get; + private set; + } + + public IMembershipService MembershipService + { + get; + private set; + } + + public ActionResult LogOn() + { + + return View(); + } + + [AcceptVerbs(HttpVerbs.Post)] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", + Justification = "Needs to take same parameter type as Controller.Redirect()")] + public ActionResult LogOn(string userName, string password, bool rememberMe, string returnUrl) + { + + if (!ValidateLogOn(userName, password)) + { + return View(); + } + + FormsAuth.SignIn(userName, rememberMe); + if (!String.IsNullOrEmpty(returnUrl)) + { + return Redirect(returnUrl); + } + else + { + return RedirectToAction("Index", "Home"); + } + } + + public ActionResult LogOff() + { + + FormsAuth.SignOut(); + + return RedirectToAction("Index", "Home"); + } + + public ActionResult Register() + { + + ViewData["PasswordLength"] = MembershipService.MinPasswordLength; + + return View(); + } + + [AcceptVerbs(HttpVerbs.Post)] + public ActionResult Register(string userName, string email, string password, string confirmPassword) + { + + ViewData["PasswordLength"] = MembershipService.MinPasswordLength; + + if (ValidateRegistration(userName, email, password, confirmPassword)) + { + // Attempt to register the user + MembershipCreateStatus createStatus = MembershipService.CreateUser(userName, password, email); + + if (createStatus == MembershipCreateStatus.Success) + { + FormsAuth.SignIn(userName, false /* createPersistentCookie */); + return RedirectToAction("Index", "Home"); + } + else + { + ModelState.AddModelError("_FORM", ErrorCodeToString(createStatus)); + } + } + + // If we got this far, something failed, redisplay form + return View(); + } + + [Authorize] + public ActionResult ChangePassword() + { + + ViewData["PasswordLength"] = MembershipService.MinPasswordLength; + + return View(); + } + + [Authorize] + [AcceptVerbs(HttpVerbs.Post)] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", + Justification = "Exceptions result in password not being changed.")] + public ActionResult ChangePassword(string currentPassword, string newPassword, string confirmPassword) + { + + ViewData["PasswordLength"] = MembershipService.MinPasswordLength; + + if (!ValidateChangePassword(currentPassword, newPassword, confirmPassword)) + { + return View(); + } + + try + { + if (MembershipService.ChangePassword(User.Identity.Name, currentPassword, newPassword)) + { + return RedirectToAction("ChangePasswordSuccess"); + } + else + { + ModelState.AddModelError("_FORM", "The current password is incorrect or the new password is invalid."); + return View(); + } + } + catch + { + ModelState.AddModelError("_FORM", "The current password is incorrect or the new password is invalid."); + return View(); + } + } + + public ActionResult ChangePasswordSuccess() + { + + return View(); + } + + protected override void OnActionExecuting(ActionExecutingContext filterContext) + { + if (filterContext.HttpContext.User.Identity is WindowsIdentity) + { + throw new InvalidOperationException("Windows authentication is not supported."); + } + } + + #region Validation Methods + + private bool ValidateChangePassword(string currentPassword, string newPassword, string confirmPassword) + { + if (String.IsNullOrEmpty(currentPassword)) + { + ModelState.AddModelError("currentPassword", "You must specify a current password."); + } + if (newPassword == null || newPassword.Length < MembershipService.MinPasswordLength) + { + ModelState.AddModelError("newPassword", + String.Format(CultureInfo.CurrentCulture, + "You must specify a new password of {0} or more characters.", + MembershipService.MinPasswordLength)); + } + + if (!String.Equals(newPassword, confirmPassword, StringComparison.Ordinal)) + { + ModelState.AddModelError("_FORM", "The new password and confirmation password do not match."); + } + + return ModelState.IsValid; + } + + private bool ValidateLogOn(string userName, string password) + { + if (String.IsNullOrEmpty(userName)) + { + ModelState.AddModelError("username", "You must specify a username."); + } + if (String.IsNullOrEmpty(password)) + { + ModelState.AddModelError("password", "You must specify a password."); + } + if (!MembershipService.ValidateUser(userName, password)) + { + ModelState.AddModelError("_FORM", "The username or password provided is incorrect."); + } + + return ModelState.IsValid; + } + + private bool ValidateRegistration(string userName, string email, string password, string confirmPassword) + { + if (String.IsNullOrEmpty(userName)) + { + ModelState.AddModelError("username", "You must specify a username."); + } + if (String.IsNullOrEmpty(email)) + { + ModelState.AddModelError("email", "You must specify an email address."); + } + if (password == null || password.Length < MembershipService.MinPasswordLength) + { + ModelState.AddModelError("password", + String.Format(CultureInfo.CurrentCulture, + "You must specify a password of {0} or more characters.", + MembershipService.MinPasswordLength)); + } + if (!String.Equals(password, confirmPassword, StringComparison.Ordinal)) + { + ModelState.AddModelError("_FORM", "The new password and confirmation password do not match."); + } + return ModelState.IsValid; + } + + private static string ErrorCodeToString(MembershipCreateStatus createStatus) + { + // See http://msdn.microsoft.com/en-us/library/system.web.security.membershipcreatestatus.aspx for + // a full list of status codes. + switch (createStatus) + { + case MembershipCreateStatus.DuplicateUserName: + return "Username already exists. Please enter a different user name."; + + case MembershipCreateStatus.DuplicateEmail: + return "A username for that e-mail address already exists. Please enter a different e-mail address."; + + case MembershipCreateStatus.InvalidPassword: + return "The password provided is invalid. Please enter a valid password value."; + + case MembershipCreateStatus.InvalidEmail: + return "The e-mail address provided is invalid. Please check the value and try again."; + + case MembershipCreateStatus.InvalidAnswer: + return "The password retrieval answer provided is invalid. Please check the value and try again."; + + case MembershipCreateStatus.InvalidQuestion: + return "The password retrieval question provided is invalid. Please check the value and try again."; + + case MembershipCreateStatus.InvalidUserName: + return "The user name provided is invalid. Please check the value and try again."; + + case MembershipCreateStatus.ProviderError: + return "The authentication provider returned an error. Please verify your entry and try again. If the problem persists, please contact your system administrator."; + + case MembershipCreateStatus.UserRejected: + return "The user creation request has been canceled. Please verify your entry and try again. If the problem persists, please contact your system administrator."; + + default: + return "An unknown error occurred. Please verify your entry and try again. If the problem persists, please contact your system administrator."; + } + } + #endregion + } + + // The FormsAuthentication type is sealed and contains static members, so it is difficult to + // unit test code that calls its members. The interface and helper class below demonstrate + // how to create an abstract wrapper around such a type in order to make the AccountController + // code unit testable. + + public interface IFormsAuthentication + { + void SignIn(string userName, bool createPersistentCookie); + void SignOut(); + } + + public class FormsAuthenticationService : IFormsAuthentication + { + public void SignIn(string userName, bool createPersistentCookie) + { + FormsAuthentication.SetAuthCookie(userName, createPersistentCookie); + } + public void SignOut() + { + FormsAuthentication.SignOut(); + } + } + + public interface IMembershipService + { + int MinPasswordLength { get; } + + bool ValidateUser(string userName, string password); + MembershipCreateStatus CreateUser(string userName, string password, string email); + bool ChangePassword(string userName, string oldPassword, string newPassword); + } + + public class AccountMembershipService : IMembershipService + { + private MembershipProvider _provider; + + public AccountMembershipService() + : this(null) + { + } + + public AccountMembershipService(MembershipProvider provider) + { + _provider = provider ?? Membership.Provider; + } + + public int MinPasswordLength + { + get + { + return _provider.MinRequiredPasswordLength; + } + } + + public bool ValidateUser(string userName, string password) + { + return _provider.ValidateUser(userName, password); + } + + public MembershipCreateStatus CreateUser(string userName, string password, string email) + { + MembershipCreateStatus status; + _provider.CreateUser(userName, password, email, null, null, true, null, out status); + return status; + } + + public bool ChangePassword(string userName, string oldPassword, string newPassword) + { + MembershipUser currentUser = _provider.GetUser(userName, true /* userIsOnline */); + return currentUser.ChangePassword(oldPassword, newPassword); + } + } +} Added: source/trunk/CronosControl/CronosControlWeb/Controllers/HomeController.cs =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Controllers/HomeController.cs (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Controllers/HomeController.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; + +namespace CronosControlWeb.Controllers +{ + [HandleError] + public class HomeController : Controller + { + public ActionResult Index() + { + ViewData["Message"] = "Welcome to ASP.NET MVC!"; + + return View(); + } + + public ActionResult About() + { + return View(); + } + } +} Added: source/trunk/CronosControl/CronosControlWeb/Controllers/ProjectsController.cs =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Controllers/ProjectsController.cs (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Controllers/ProjectsController.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using System.Web.Mvc.Ajax; +using CronosControl.Model; +using CronosControl.Business; + +namespace CronosControlWeb.Controllers +{ + public class ProjectsController : Controller + { + + /// <summary> + /// This is the default index action for the controller, GET: /Projects/ + /// </summary> + /// <returns>The result of the action for the MVC</returns> + public ActionResult Index() + { + Projects projectsBusiness = new Projects(); + List<Project> projects = projectsBusiness.List(); + return View("ProjectsList", projects); + } + + } +} Added: source/trunk/CronosControl/CronosControlWeb/CronosControlWeb.csproj =================================================================== --- source/trunk/CronosControl/CronosControlWeb/CronosControlWeb.csproj (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/CronosControlWeb.csproj 2010-01-13 21:45:19 UTC (rev 7) @@ -0,0 +1,144 @@ +<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>{F0208315-D73D-4A51-B247-FFFBF19BD9AC}</ProjectGuid> + <ProjectTypeGuids>{603c0e0b-db56-11dc-be95-000d561079b0};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>CronosControlWeb</RootNamespace> + <AssemblyName>CronosControlWeb</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <MvcBuildViews>false</MvcBuildViews> + </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.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> + <Reference Include="System.Xml.Linq"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Drawing" /> + <Reference Include="System.Web" /> + <Reference Include="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> + <Reference Include="System.Web.Abstractions" /> + <Reference Include="System.Web.Routing" /> + <Reference Include="System.Xml" /> + <Reference Include="System.Configuration" /> + <Reference Include="System.Web.Services" /> + <Reference Include="System.EnterpriseServices" /> + <Reference Include="System.Web.Mobile" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Controllers\AccountController.cs" /> + <Compile Include="Controllers\HomeController.cs" /> + <Compile Include="Controllers\ProjectsController.cs" /> + <Compile Include="Default.aspx.cs"> + <DependentUpon>Default.aspx</DependentUpon> + <SubType>ASPXCodeBehind</SubType> + </Compile> + <Compile Include="Global.asax.cs"> + <DependentUpon>Global.asax</DependentUpon> + </Compile> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <Content Include="App_Data\CronosControl.mdf"> + </Content> + <Content Include="App_Data\CronosControl_log.ldf"> + <DependentUpon>CronosControl.mdf</DependentUpon> + </Content> + <Content Include="Default.aspx" /> + <Content Include="Global.asax" /> + <Content Include="Views\Projects\ProjectsList.aspx" /> + <Content Include="Web.config" /> + <Content Include="Content\Site.css" /> + <Content Include="Scripts\jquery-1.3.2.js" /> + <Content Include="Scripts\jquery-1.3.2.min.js" /> + <Content Include="Scripts\jquery-1.3.2-vsdoc.js" /> + <Content Include="Scripts\jquery-1.3.2.min-vsdoc.js" /> + <Content Include="Scripts\MicrosoftAjax.js" /> + <Content Include="Scripts\MicrosoftAjax.debug.js" /> + <Content Include="Scripts\MicrosoftMvcAjax.js" /> + <Content Include="Scripts\MicrosoftMvcAjax.debug.js" /> + <Content Include="Views\Account\ChangePassword.aspx" /> + <Content Include="Views\Account\ChangePasswordSuccess.aspx" /> + <Content Include="Views\Account\LogOn.aspx" /> + <Content Include="Views\Account\Register.aspx" /> + <Content Include="Views\Home\About.aspx" /> + <Content Include="Views\Home\Index.aspx" /> + <Content Include="Views\Shared\Error.aspx" /> + <Content Include="Views\Shared\LogOnUserControl.ascx" /> + <Content Include="Views\Shared\Site.Master" /> + <Content Include="Views\Web.config" /> + </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="Models\" /> + </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" Condition="'$(MvcBuildViews)'=='true'"> + <AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)\..\$(ProjectName)" /> + </Target> + <ProjectExtensions> + <VisualStudio> + <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> + <WebProjectProperties> + <UseIIS>False</UseIIS> + <AutoAssignPort>True</AutoAssignPort> + <DevelopmentServerPort>3405</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/CronosControlWeb/Default.aspx =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Default.aspx (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Default.aspx 2010-01-13 21:45:19 UTC (rev 7) @@ -0,0 +1,3 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CronosControlWeb._Default" %> + +<%-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --%> Added: source/trunk/CronosControl/CronosControlWeb/Default.aspx.cs =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Default.aspx.cs (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Default.aspx.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -0,0 +1,22 @@ +using System.Web; +using System.Web.Mvc; +using System.Web.UI; + +namespace CronosControlWeb +{ + public partial class _Default : Page + { + public void Page_Load(object sender, System.EventArgs e) + { + // Change the current path so that the Routing handler can correctly interpret + // the request, then restore the original path so that the OutputCache module + // can correctly process the response (if caching is enabled). + + string originalPath = Request.Path; + HttpContext.Current.RewritePath(Request.ApplicationPath, false); + IHttpHandler httpHandler = new MvcHttpHandler(); + httpHandler.ProcessRequest(HttpContext.Current); + HttpContext.Current.RewritePath(originalPath, false); + } + } +} Added: source/trunk/CronosControl/CronosControlWeb/Global.asax =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Global.asax (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Global.asax 2010-01-13 21:45:19 UTC (rev 7) @@ -0,0 +1 @@ +<%@ Application Codebehind="Global.asax.cs" Inherits="CronosControlWeb.MvcApplication" Language="C#" %> Added: source/trunk/CronosControl/CronosControlWeb/Global.asax.cs =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Global.asax.cs (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Global.asax.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using System.Web.Routing; + +namespace CronosControlWeb +{ + // Note: For instructions on enabling IIS6 or IIS7 classic mode, + // visit http://go.microsoft.com/?LinkId=9394801 + + public class MvcApplication : System.Web.HttpApplication + { + public static void RegisterRoutes(RouteCollection routes) + { + routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); + + routes.MapRoute( + "Default", // Route name + "{controller}/{action}/{id}", // URL with parameters + new { controller = "Home", action = "Index", id = "" } // Parameter defaults + ); + + } + + protected void Application_Start() + { + RegisterRoutes(RouteTable.Routes); + } + } +} \ No newline at end of file Added: source/trunk/CronosControl/CronosControlWeb/Properties/AssemblyInfo.cs =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Properties/AssemblyInfo.cs (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Properties/AssemblyInfo.cs 2010-01-13 21:45:19 UTC (rev 7) @@ -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("CronosControlWeb")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CronosControlWeb")] +[assembly: AssemblyCopyright("Copyright © 2010")] +[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("f1b3f2af-0a98-4ff6-9087-ff910707a75e")] + +// 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/CronosControlWeb/Scripts/MicrosoftAjax.debug.js =================================================================== --- source/trunk/CronosControl/CronosControlWeb/Scripts/MicrosoftAjax.debug.js (rev 0) +++ source/trunk/CronosControl/CronosControlWeb/Scripts/MicrosoftAjax.debug.js 2010-01-13 21:45:19 UTC (rev 7) @@ -0,0 +1,6850 @@ +// Name: MicrosoftAjax.debug.js +// Assembly: System.Web.Extensions +// Version: 3.5.0.0 +// FileVersion: 3.5.30729.1 +//----------------------------------------------------------------------- +// Copyright (C) Microsoft Corporation. All rights reserved. +//----------------------------------------------------------------------- +// MicrosoftAjax.js +// Microsoft AJAX Framework. + +Function.__typeName = 'Function'; +Function.__class = true; +Function.createCallback = function Function$createCallback(method, context) { + /// <summary locid="M:J#Function.createCallback" /> + /// <param name="method" type="Function"></param> + /// <param name="context" mayBeNull="true"></param> + /// <returns type="Function"></returns> + var e = Function._validateParams(arguments, [ + {name: "method", type: Function}, + {name: "context", mayBeNull: true} + ]); + if (e) throw e; + return function() { + var l = arguments.length; + if (l > 0) { + var args = []; + for (var i = 0; i < l; i++) { + args[i] = arguments[i]; + } + args[l] = context; + return method.apply(this, args); + } + return method.call(this, context); + } +} +Function.createDelegate = function Function$createDelegate(instance, method) { + /// <summary locid="M:J#Function.createDelegate" /> + /// <param name="instance" mayBeNull="true"></param> + /// <param name="method" type="Function"></param> + /// <returns type="Function"></returns> + var e = Function._validateParams(arguments, [ + {name: "instance", mayBeNull: true}, + {name: "method", type: Function} + ]); + if (e) throw e; + return function() { + return method.apply(instance, arguments); + } +} +Function.emptyFunction = Function.emptyMethod = function Function$emptyMethod() { + /// <summary locid="M:J#Function.emptyMethod" /> + if (arguments.length !== 0) throw Error.parameterCount(); +} +Function._validateParams = function Function$_validateParams(params, expectedParams) { + var e; + e = Function._validateParameterCount(params, expectedParams); + if (e) { + e.popStackFrame(); + return e; + } + for (var i=0; i < params.length; i++) { + var expectedParam = expectedParams[Math.min(i, expectedParams.length - 1)]; + var paramName = expectedParam.name; + if (expectedParam.parameterArray) { + paramName += "[" + (i - expectedParams.length + 1) + "]"; + } + ... [truncated message content] |
From: <all...@us...> - 2009-11-20 23:22:33
|
Revision: 6 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=6&view=rev Author: allancascante Date: 2009-11-20 23:22:25 +0000 (Fri, 20 Nov 2009) Log Message: ----------- Ticket #1 added some a missing class. Added Paths: ----------- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Business.cs Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Business.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Business.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Business.cs 2009-11-20 23:22:25 UTC (rev 6) @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; +using CronosControl.Business.Util.ErrorHandling; +using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling; +using System.Data.Objects.DataClasses; + +namespace CronosControl.Business +{ + public class Business<T> : IBusiness<T> where T : IEntityWithKey + { + private CronosControlEntities cronosControlEntities; + + public CronosControlEntities CronosControlEntities + { + get { return cronosControlEntities; } + set { cronosControlEntities = value; } + } + + #region IBusiness<User> Members + + public virtual List<IBusinessError> Save(T entity) + { + List<IBusinessError> errors = new List<IBusinessError>(); + try + { + cronosControlEntities = new CronosControlEntities(); + Object savedEntity = null; + + if (entity.EntityKey != null && cronosControlEntities.TryGetObjectByKey(entity.EntityKey, out savedEntity)) + { + CronosControlEntities.Attach(entity); + CronosControlEntities.SaveChanges(); + return errors; + } + else + { + cronosControlEntities.AddObject(entity.GetType().Name, entity); + CronosControlEntities.SaveChanges(); + return errors; + } + } + catch (Exception ex) + { + ExceptionPolicy.HandleException(ex, "Exception Policy"); + errors.Add(new ExceptionBusinessError(ex)); + return errors; + } + } + + public virtual T Get(T entity) + { + cronosControlEntities = new CronosControlEntities(); + Object savedEntity = null; + if (entity.EntityKey != null && cronosControlEntities.TryGetObjectByKey(entity.EntityKey, out savedEntity)) + { + return (T)savedEntity; + } + else + { + return entity; + } + } + + public virtual bool Find(T entity) + { + cronosControlEntities = new CronosControlEntities(); + Object savedEntity = null; + if (entity.EntityKey != null && cronosControlEntities.TryGetObjectByKey(entity.EntityKey, out savedEntity)) + { + return true; + } + else + { + return false; + } + } + + #endregion + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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] |
From: <all...@us...> - 2009-10-29 02:49:04
|
Revision: 4 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=4&view=rev Author: allancascante Date: 2009-10-29 02:48:44 +0000 (Thu, 29 Oct 2009) Log Message: ----------- Ticket #1 added new project for business layer and some base classes still not functional just for project organization demonstration purposes. Modified Paths: -------------- source/trunk/CronosControl/CronosControl.sln source/trunk/CronosControl/CronosControlClassLibrary/CronosControl.mdf source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.edmx source/trunk/CronosControl/CronosControlClassLibrary/CronosControl_log.ldf source/trunk/CronosControl/CronosControlClassLibrary/app.config Added Paths: ----------- source/trunk/CronosControl/CronosControl.vsmdi source/trunk/CronosControl/CronosControlBusinessClassLibrary/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/App.config source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ 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/ICalendars.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IClients.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICompanies.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICostCenters.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IDocuments.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IProjects.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IRoles.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITasks.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeSheets.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IUsers.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/Business/Util/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/IBusinessError.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj source/trunk/CronosControl/CronosControlBusinessClassLibrary/Properties/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Properties/AssemblyInfo.cs source/trunk/CronosControl/CronosControlBusinessClassLibrary/bin/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/bin/Debug/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/obj/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/obj/Debug/ source/trunk/CronosControl/CronosControlBusinessClassLibrary/obj/Debug/TempPE/ source/trunk/CronosControl/LocalTestRun.testrunconfig Removed Paths: ------------- source/trunk/CronosControl/CronosControlClassLibrary/Business/ Modified: source/trunk/CronosControl/CronosControl.sln =================================================================== --- source/trunk/CronosControl/CronosControl.sln 2009-09-22 23:07:13 UTC (rev 3) +++ source/trunk/CronosControl/CronosControl.sln 2009-10-29 02:48:44 UTC (rev 4) @@ -5,30 +5,22 @@ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronosControlDataAccessClassLibrary", "CronosControlClassLibrary\CronosControlDataAccessClassLibrary.csproj", "{7191E8B4-4497-40E8-BD9A-04CD4EF802FC}" EndProject -Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "CronosControl", "..\..\WebSites\CronosControl\", "{FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}" - ProjectSection(WebsiteProperties) = preProject - TargetFramework = "3.5" - Debug.AspNetCompiler.VirtualPath = "/CronosControl" - Debug.AspNetCompiler.PhysicalPath = "..\..\WebSites\CronosControl\" - Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\CronosControl\" - Debug.AspNetCompiler.Updateable = "true" - Debug.AspNetCompiler.ForceOverwrite = "true" - Debug.AspNetCompiler.FixedNames = "false" - Debug.AspNetCompiler.Debug = "True" - Release.AspNetCompiler.VirtualPath = "/CronosControl" - Release.AspNetCompiler.PhysicalPath = "..\..\WebSites\CronosControl\" - Release.AspNetCompiler.TargetPath = "PrecompiledWeb\CronosControl\" - Release.AspNetCompiler.Updateable = "true" - Release.AspNetCompiler.ForceOverwrite = "true" - Release.AspNetCompiler.FixedNames = "false" - Release.AspNetCompiler.Debug = "False" - VWDPort = "3780" - DefaultWebSiteLanguage = "Visual C#" +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("{4F174C21-8C12-11D0-8340-0000F80270F8}") = "CronosControlDatabase", "CronosControlDatabase\CronosControlDatabase.dbp", "{D7DAE07A-C1B2-4EFF-B2C2-834DA1F4E940}" -EndProject Global + GlobalSection(TestCaseManagementSettings) = postSolution + CategoryFile = CronosControl.vsmdi + EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|.NET = Debug|.NET Debug|Any CPU = Debug|Any CPU @@ -58,16 +50,26 @@ {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|Any CPU.Build.0 = Release|Any CPU {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|.NET.ActiveCfg = Debug|.NET - {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|.NET.Build.0 = Debug|.NET - {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|Any CPU.ActiveCfg = Debug|.NET - {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|Mixed Platforms.ActiveCfg = Debug|.NET - {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|Mixed Platforms.Build.0 = Debug|.NET - {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|.NET.ActiveCfg = Debug|.NET - {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|.NET.Build.0 = Debug|.NET - {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|Any CPU.ActiveCfg = Debug|.NET - {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|Mixed Platforms.ActiveCfg = Debug|.NET - {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|Mixed Platforms.Build.0 = Debug|.NET + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Debug|.NET.ActiveCfg = Debug|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Release|.NET.ActiveCfg = Release|Any CPU + {2D8FF602-961B-470C-AECF-817AFF0C4E9C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {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 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE Added: source/trunk/CronosControl/CronosControl.vsmdi =================================================================== --- source/trunk/CronosControl/CronosControl.vsmdi (rev 0) +++ source/trunk/CronosControl/CronosControl.vsmdi 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2006"> + <TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6"> + <RunConfiguration id="217b22e8-edd5-4f11-8614-39748b0ef296" name="Local Test Run" storage="localtestrun.testrunconfig" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, PublicKeyToken=b03f5f7f11d50a3a" /> + </TestList> +</TestLists> \ No newline at end of file Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/App.config =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/App.config (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/App.config 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<configuration> + <configSections> + <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> + <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> + </configSections> + <loggingConfiguration name="Logging Application Block" tracingEnabled="true" + defaultCategory="General" logWarningsWhenNoCategoriesMatch="true"> + <listeners> + <add source="Enterprise Library Logging" formatter="Text Formatter" + log="Application" machineName="" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + traceOutputOptions="None" filter="All" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + name="Formatted EventLog TraceListener" /> + </listeners> + <formatters> + <add template="Timestamp: {timestamp}
Message: {message}
Category: {category}
Priority: {priority}
EventId: {eventid}
Severity: {severity}
Title:{title}
Machine: {machine}
Application Domain: {appDomain}
Process Id: {processId}
Process Name: {processName}
Win32 Thread Id: {win32ThreadId}
Thread Name: {threadName}
Extended Properties: {dictionary({key} - {value}
)}" + type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + name="Text Formatter" /> + </formatters> + <categorySources> + <add switchValue="All" name="General"> + <listeners> + <add name="Formatted EventLog TraceListener" /> + </listeners> + </add> + </categorySources> + <specialSources> + <allEvents switchValue="All" name="All Events" /> + <notProcessed switchValue="All" name="Unprocessed Category" /> + <errors switchValue="All" name="Logging Errors & Warnings"> + <listeners> + <add name="Formatted EventLog TraceListener" /> + </listeners> + </errors> + </specialSources> + </loggingConfiguration> + <exceptionHandling> + <exceptionPolicies> + <add name="Exception Policy"> + <exceptionTypes> + <add type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" + postHandlingAction="NotifyRethrow" name="Exception"> + <exceptionHandlers> + <add logCategory="General" eventId="100" severity="Error" title="Enterprise Library Exception Handling" + formatterType="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + priority="0" useDefaultLogger="false" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + name="Logging Handler" /> + </exceptionHandlers> + </add> + </exceptionTypes> + </add> + </exceptionPolicies> + </exceptionHandling> +</configuration> \ No newline at end of file Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Calendars.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Business.Util.ErrorHandling; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Calendar's Management + /// </summary> + public class Calendars : 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 + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Clients.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Client's Management + /// </summary> + public class Clients + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Companies.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Companies' Management + /// </summary> + public class Companies + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/CostCenters.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Cost Center's Management + /// </summary> + public class CostCenters + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Documents.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Document's Management + /// </summary> + class Documents + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IBusiness.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Business.Util.ErrorHandling; + +namespace CronosControl.Business +{ + public interface IBusiness<T> + { + /// <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> + /// <param name="entity">The entity to save</param> + /// <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); + + /// <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); + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICalendars.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICalendars.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICalendars.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Calendar's Management + /// </summary> + public interface ICalendars : IBusiness<Calendar> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IClients.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IClients.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IClients.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Client's Management + /// </summary> + public interface IClients : IBusiness<Client> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICompanies.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICompanies.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICompanies.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Companies' Management + /// </summary> + public interface ICompanies : IBusiness<Company> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICostCenters.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICostCenters.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ICostCenters.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Cost Center's Management + /// </summary> + public interface ICostCenters : IBusiness<CostCenter> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IDocuments.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IDocuments.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IDocuments.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Document's Management + /// </summary> + public interface IDocuments : IBusiness<Document> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IProjects.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IProjects.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IProjects.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Project's Management + /// </summary> + public interface IProjects : IBusiness<Project> + { + + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IRoles.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IRoles.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IRoles.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Roles's Management + /// </summary> + public interface IRoles : IBusiness<Role> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITasks.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITasks.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITasks.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Task's Management + /// </summary> + public interface ITasks : IBusiness<Task> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeCategories.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Time Categories' Management + /// </summary> + public interface ITimeCategories : IBusiness<TimeCategory> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeSheets.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeSheets.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/ITimeSheets.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for Time Sheet's Management + /// </summary> + public interface ITimeSheets : IBusiness<TimeSheet> + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IUsers.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IUsers.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/IUsers.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; + +namespace CronosControl.Business +{ + /// <summary> + /// Defines all business methods for User's Management + /// </summary> + public interface IUsers : IBusiness<User> + { + + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Projects.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using CronosControl.Model; +using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Project's Management + /// </summary> + public class Projects : 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 + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Roles.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Role's Management + /// </summary> + class Roles + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Tasks.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Task's Management + /// </summary> + class Tasks + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeCategories.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Time Categories' Management + /// </summary> + public class TimeCategory + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/TimeSheets.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for Time Sheet's Management + /// </summary> + public class TimeSheets + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Users.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,80 @@ +using System; +using CronosControl.Model; +using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling; +using System.Collections.Generic; +using CronosControl.Business.Util.ErrorHandling; + +namespace CronosControl.Business +{ + /// <summary> + /// Implements all business methods for User's Management + /// </summary> + public class Users : IUsers + { + private CronosControlEntities cronosControlEntities; + + public CronosControlEntities CronosControlEntities + { + 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 + { + Object savedEntity = null; + + if (cronosControlEntities.TryGetObjectByKey(entity.EntityKey, out savedEntity)) + { + CronosControlEntities.Attach(entity); + CronosControlEntities.SaveChanges(); + return errors; + } + cronosControlEntities.AddToUser(entity); + return errors; + } + catch (Exception ex) + { + ExceptionPolicy.HandleException(ex, "Exception Policy"); + errors.Add(new ExceptionBusinessError(ex)); + return errors; + } + } + + + 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 + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/IBusinessError.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/IBusinessError.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Business/Util/ErrorHandling/IBusinessError.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace CronosControl.Business.Util.ErrorHandling +{ + public interface IBusinessError + { + } +} Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/CronosControlBusinessClassLibrary.csproj 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,97 @@ +<?xml version="1.0" encoding="utf-8"?> +<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>{2D8FF602-961B-470C-AECF-817AFF0C4E9C}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>CronosControl</RootNamespace> + <AssemblyName>CronosControlBusinessClassLibrary</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</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\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> + <Reference Include="Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> + <Reference Include="System" /> + <Reference Include="System.Core"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.Entity"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Xml.Linq"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.DataSetExtensions"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Business\Calendars.cs" /> + <Compile Include="Business\Clients.cs" /> + <Compile Include="Business\Companies.cs" /> + <Compile Include="Business\CostCenters.cs" /> + <Compile Include="Business\Documents.cs" /> + <Compile Include="Business\IBusiness.cs" /> + <Compile Include="Business\ICalendars.cs" /> + <Compile Include="Business\IClients.cs" /> + <Compile Include="Business\ICompanies.cs" /> + <Compile Include="Business\ICostCenters.cs" /> + <Compile Include="Business\IDocuments.cs" /> + <Compile Include="Business\IProjects.cs" /> + <Compile Include="Business\IRoles.cs" /> + <Compile Include="Business\ITasks.cs" /> + <Compile Include="Business\ITimeCategories.cs" /> + <Compile Include="Business\ITimeSheets.cs" /> + <Compile Include="Business\IUsers.cs" /> + <Compile Include="Business\Projects.cs" /> + <Compile Include="Business\Roles.cs" /> + <Compile Include="Business\Tasks.cs" /> + <Compile Include="Business\TimeCategories.cs" /> + <Compile Include="Business\TimeSheets.cs" /> + <Compile Include="Business\Users.cs" /> + <Compile Include="Business\Util\ErrorHandling\BusinessError.cs" /> + <Compile Include="Business\Util\ErrorHandling\IBusinessError.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\CronosControlClassLibrary\CronosControlDataAccessClassLibrary.csproj"> + <Project>{7191E8B4-4497-40E8-BD9A-04CD4EF802FC}</Project> + <Name>CronosControlDataAccessClassLibrary</Name> + </ProjectReference> + </ItemGroup> + <ItemGroup> + <None Include="App.config" /> + </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. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: source/trunk/CronosControl/CronosControlBusinessClassLibrary/Properties/AssemblyInfo.cs =================================================================== --- source/trunk/CronosControl/CronosControlBusinessClassLibrary/Properties/AssemblyInfo.cs (rev 0) +++ source/trunk/CronosControl/CronosControlBusinessClassLibrary/Properties/AssemblyInfo.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -0,0 +1,36 @@ +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("CronosControlBusinessClassLibrary")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Personal")] +[assembly: AssemblyProduct("CronosControlBusinessClassLibrary")] +[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("9e2f6272-bbc8-48ff-83a4-0d8508695c72")] + +// 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 Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Modified: source/trunk/CronosControl/CronosControlClassLibrary/CronosControl.mdf =================================================================== (Binary files differ) Modified: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj 2009-09-22 23:07:13 UTC (rev 3) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj 2009-10-29 02:48:44 UTC (rev 4) @@ -86,7 +86,6 @@ <EntityDeploy Include="CronosControlModel.edmx"> <Generator>EntityModelCodeGenerator</Generator> <LastGenOutput>CronosControlModel.Designer.cs</LastGenOutput> - <CustomToolNamespace>CronosControl.Model</CustomToolNamespace> </EntityDeploy> <None Include="Properties\Settings.settings"> <Generator>SettingsSingleFileGenerator</Generator> @@ -135,9 +134,6 @@ <Install>true</Install> </BootstrapperPackage> </ItemGroup> - <ItemGroup> - <Folder Include="Business\" /> - </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. Modified: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs 2009-09-22 23:07:13 UTC (rev 3) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs 2009-10-29 02:48:44 UTC (rev 4) @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. -// Runtime Version:2.0.50727.3082 +// Runtime Version:2.0.50727.3603 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -14,29 +14,29 @@ [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Client_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "Client", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Client))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Project_Client", "Client", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Client), "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Project))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Role_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "Role", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Role))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeCategory_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "TimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeCategory))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectCostCenter_CostCenter", "CostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.CostCenter), "ProjectCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectCostCenter))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetCostCenter_CostCenter", "CostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.CostCenter), "TimeSheetCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetCostCenter))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_IdUserProjectRoleDocument_Document", "Document", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Document), "UserProjectRoleDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.UserProjectRoleDocument))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectDocument_Document", "Document", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Document), "ProjectDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectDocument))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Project_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.User), "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Project))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectCostCenter_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "ProjectCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectCostCenter))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectDocument_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "ProjectDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectDocument))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Tasks_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "Task", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Task))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheet_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.Project), "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheet))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_UserProjectRole_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "UserProjectRole", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.UserProjectRole))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_UserProjectRole_Role", "Role", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Role), "UserProjectRole", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.UserProjectRole))] -[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_TimeCategory", "TimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeCategory), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_Tasks", "Task", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.Task), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHourTimeCategory_TimeCategory", "TimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeCategory), "TimeSheetHourTimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHourTimeCategory))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheet_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.User), "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheet))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetCostCenter_TimeSheet", "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeSheet), "TimeSheetCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetCostCenter))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_TimeSheet", "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeSheet), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.User), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] -[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_User2", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.User), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] -[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Project_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.User), "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Project))] -[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheet_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.Project), "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheet))] -[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_IdUserProjectRoleDocument_Document", "Document", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Document), "IdUserProjectRoleDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.IdUserProjectRoleDocument))] -[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_IdUserProjectRoleDocument_UserProjectRole", "UserProjectRole", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.UserProjectRole), "IdUserProjectRoleDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.IdUserProjectRoleDocument))] -[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Tasks_Project1", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "Task", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Task))] -[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_Tasks", "Task", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.Task), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] -[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeCategory_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "TimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeCategory))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHourTimeCategory_TimeSheetHour", "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeSheetHour), "TimeSheetHourTimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHourTimeCategory))] +[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: 9/21/2009 5:38:44 PM +// Generation date: 10/28/2009 8:45:20 PM namespace CronosControl.Model { @@ -221,6 +221,21 @@ } private global::System.Data.Objects.ObjectQuery<Role> _Role; /// <summary> + /// There are no comments for Task in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Task> Task + { + get + { + if ((this._Task == null)) + { + this._Task = base.CreateQuery<Task>("[Task]"); + } + return this._Task; + } + } + private global::System.Data.Objects.ObjectQuery<Task> _Task; + /// <summary> /// There are no comments for TimeCategory in the schema. /// </summary> public global::System.Data.Objects.ObjectQuery<TimeCategory> TimeCategory @@ -281,6 +296,21 @@ } private global::System.Data.Objects.ObjectQuery<TimeSheetHour> _TimeSheetHour; /// <summary> + /// There are no comments for TimeSheetHourTimeCategory in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<TimeSheetHourTimeCategory> TimeSheetHourTimeCategory + { + get + { + if ((this._TimeSheetHourTimeCategory == null)) + { + this._TimeSheetHourTimeCategory = base.CreateQuery<TimeSheetHourTimeCategory>("[TimeSheetHourTimeCategory]"); + } + return this._TimeSheetHourTimeCategory; + } + } + private global::System.Data.Objects.ObjectQuery<TimeSheetHourTimeCategory> _TimeSheetHourTimeCategory; + /// <summary> /// There are no comments for User in the schema. /// </summary> public global::System.Data.Objects.ObjectQuery<User> User @@ -311,36 +341,21 @@ } private global::System.Data.Objects.ObjectQuery<UserProjectRole> _UserProjectRole; /// <summary> - /// There are no comments for IdUserProjectRoleDocument in the schema. + /// There are no comments for UserProjectRoleDocument in the schema. /// </summary> - public global::System.Data.Objects.ObjectQuery<IdUserProjectRoleDocument>... [truncated message content] |
From: <all...@us...> - 2009-09-22 23:07:29
|
Revision: 3 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=3&view=rev Author: allancascante Date: 2009-09-22 23:07:13 +0000 (Tue, 22 Sep 2009) Log Message: ----------- Ticket #1 base projects files, it includes the database with all the base entities planned for the project. Added Paths: ----------- source/trunk/CronosControl/ source/trunk/CronosControl/CronosControl.sln source/trunk/CronosControl/CronosControlClassLibrary/ source/trunk/CronosControl/CronosControlClassLibrary/Business/ source/trunk/CronosControl/CronosControlClassLibrary/CronosControl.mdf source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj.user source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.edmx source/trunk/CronosControl/CronosControlClassLibrary/CronosControl_log.ldf source/trunk/CronosControl/CronosControlClassLibrary/Properties/ source/trunk/CronosControl/CronosControlClassLibrary/Properties/AssemblyInfo.cs source/trunk/CronosControl/CronosControlClassLibrary/Properties/Settings.Designer.cs source/trunk/CronosControl/CronosControlClassLibrary/Properties/Settings.settings source/trunk/CronosControl/CronosControlClassLibrary/app.config source/trunk/CronosControl/CronosControlClassLibrary/bin/ source/trunk/CronosControl/CronosControlClassLibrary/bin/Debug/ source/trunk/CronosControl/CronosControlClassLibrary/obj/ source/trunk/CronosControl/CronosControlClassLibrary/obj/Debug/ source/trunk/CronosControl/CronosControlDatabase/ source/trunk/CronosControl/CronosControlDatabase/Change Scripts/ source/trunk/CronosControl/CronosControlDatabase/Create Scripts/ source/trunk/CronosControl/CronosControlDatabase/Create Scripts/CronosControl.sql source/trunk/CronosControl/CronosControlDatabase/Queries/ source/trunk/CronosControl/CronosControlWCFServices/ source/trunk/CronosControl/CronosControlWCFServices/App.config source/trunk/CronosControl/CronosControlWCFServices/CronosControlServices.csproj source/trunk/CronosControl/CronosControlWCFServices/Properties/ source/trunk/CronosControl/CronosControlWCFServices/Properties/AssemblyInfo.cs source/trunk/CronosControl/CronosControlWCFServices/bin/ source/trunk/CronosControl/CronosControlWCFServices/bin/Debug/ source/trunk/CronosControl/CronosControlWCFServices/obj/ source/trunk/CronosControl/CronosControlWCFServices/obj/Debug/ source/trunk/CronosControl/CronosControlWCFServices/obj/Debug/TempPE/ source/trunk/CronosControl/gpl-3.0.txt Added: source/trunk/CronosControl/CronosControl.sln =================================================================== --- source/trunk/CronosControl/CronosControl.sln (rev 0) +++ source/trunk/CronosControl/CronosControl.sln 2009-09-22 23:07:13 UTC (rev 3) @@ -0,0 +1,75 @@ + +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("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "CronosControl", "..\..\WebSites\CronosControl\", "{FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}" + ProjectSection(WebsiteProperties) = preProject + TargetFramework = "3.5" + Debug.AspNetCompiler.VirtualPath = "/CronosControl" + Debug.AspNetCompiler.PhysicalPath = "..\..\WebSites\CronosControl\" + Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\CronosControl\" + Debug.AspNetCompiler.Updateable = "true" + Debug.AspNetCompiler.ForceOverwrite = "true" + Debug.AspNetCompiler.FixedNames = "false" + Debug.AspNetCompiler.Debug = "True" + Release.AspNetCompiler.VirtualPath = "/CronosControl" + Release.AspNetCompiler.PhysicalPath = "..\..\WebSites\CronosControl\" + Release.AspNetCompiler.TargetPath = "PrecompiledWeb\CronosControl\" + Release.AspNetCompiler.Updateable = "true" + Release.AspNetCompiler.ForceOverwrite = "true" + Release.AspNetCompiler.FixedNames = "false" + Release.AspNetCompiler.Debug = "False" + VWDPort = "3780" + DefaultWebSiteLanguage = "Visual C#" + EndProjectSection +EndProject +Project("{4F174C21-8C12-11D0-8340-0000F80270F8}") = "CronosControlDatabase", "CronosControlDatabase\CronosControlDatabase.dbp", "{D7DAE07A-C1B2-4EFF-B2C2-834DA1F4E940}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|.NET = Debug|.NET + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Release|.NET = Release|.NET + Release|Any CPU = Release|Any CPU + 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 + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|.NET.ActiveCfg = Release|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|Any CPU.Build.0 = Release|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {7191E8B4-4497-40E8-BD9A-04CD4EF802FC}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|.NET.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|.NET.Build.0 = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|Any CPU.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|Mixed Platforms.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Debug|Mixed Platforms.Build.0 = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|.NET.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|.NET.Build.0 = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|Any CPU.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|Mixed Platforms.ActiveCfg = Debug|.NET + {FEAD1244-39DE-403E-8FDE-BBCAFF4CE1EB}.Release|Mixed Platforms.Build.0 = Debug|.NET + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Added: source/trunk/CronosControl/CronosControlClassLibrary/CronosControl.mdf =================================================================== (Binary files differ) Property changes on: source/trunk/CronosControl/CronosControlClassLibrary/CronosControl.mdf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj (rev 0) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj 2009-09-22 23:07:13 UTC (rev 3) @@ -0,0 +1,149 @@ +<?xml version="1.0" encoding="utf-8"?> +<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>{7191E8B4-4497-40E8-BD9A-04CD4EF802FC}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>CronosControl.Model</RootNamespace> + <AssemblyName>CronosControlClassLibrary</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + <IsWebBootstrapper>false</IsWebBootstrapper> + <PublishUrl>publish\</PublishUrl> + <Install>true</Install> + <InstallFrom>Disk</InstallFrom> + <UpdateEnabled>false</UpdateEnabled> + <UpdateMode>Foreground</UpdateMode> + <UpdateInterval>7</UpdateInterval> + <UpdateIntervalUnits>Days</UpdateIntervalUnits> + <UpdatePeriodically>false</UpdatePeriodically> + <UpdateRequired>false</UpdateRequired> + <MapFileExtensions>true</MapFileExtensions> + <ApplicationRevision>0</ApplicationRevision> + <ApplicationVersion>1.0.0.%2a</ApplicationVersion> + <UseApplicationTrust>false</UseApplicationTrust> + <BootstrapperEnabled>true</BootstrapperEnabled> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</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\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Core"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.Entity"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> + <Reference Include="System.Runtime.Serialization"> + <RequiredTargetFramework>3.0</RequiredTargetFramework> + </Reference> + <Reference Include="System.Security" /> + <Reference Include="System.Transactions" /> + <Reference Include="System.Xml.Linq"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.DataSetExtensions"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="CronosControlModel.Designer.cs"> + <AutoGen>True</AutoGen> + <DesignTime>True</DesignTime> + <DependentUpon>CronosControlModel.edmx</DependentUpon> + </Compile> + <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="Properties\Settings.Designer.cs"> + <AutoGen>True</AutoGen> + <DesignTimeSharedInput>True</DesignTimeSharedInput> + <DependentUpon>Settings.settings</DependentUpon> + </Compile> + </ItemGroup> + <ItemGroup> + <None Include="app.config" /> + <EntityDeploy Include="CronosControlModel.edmx"> + <Generator>EntityModelCodeGenerator</Generator> + <LastGenOutput>CronosControlModel.Designer.cs</LastGenOutput> + <CustomToolNamespace>CronosControl.Model</CustomToolNamespace> + </EntityDeploy> + <None Include="Properties\Settings.settings"> + <Generator>SettingsSingleFileGenerator</Generator> + <LastGenOutput>Settings.Designer.cs</LastGenOutput> + </None> + </ItemGroup> + <ItemGroup> + <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework Client Profile</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 2.0 %28x86%29</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.0 %28x86%29</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5</ProductName> + <Install>true</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5 SP1</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.SQL.Server.Compact.3.5"> + <Visible>False</Visible> + <ProductName>SQL Server Compact 3.5</ProductName> + <Install>true</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Sql.Server.Express.9.2"> + <Visible>False</Visible> + <ProductName>SQL Server 2005 Express Edition SP2 %28x86%29</ProductName> + <Install>true</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> + <Visible>False</Visible> + <ProductName>Windows Installer 3.1</ProductName> + <Install>true</Install> + </BootstrapperPackage> + </ItemGroup> + <ItemGroup> + <Folder Include="Business\" /> + </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. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj.user =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj.user (rev 0) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlDataAccessClassLibrary.csproj.user 2009-09-22 23:07:13 UTC (rev 3) @@ -0,0 +1,18 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <PublishUrlHistory> + </PublishUrlHistory> + <InstallUrlHistory> + </InstallUrlHistory> + <SupportUrlHistory> + </SupportUrlHistory> + <UpdateUrlHistory> + </UpdateUrlHistory> + <BootstrapperUrlHistory> + </BootstrapperUrlHistory> + <FallbackCulture>en-US</FallbackCulture> + <VerifyUploadedFiles>false</VerifyUploadedFiles> + <ErrorReportUrlHistory> + </ErrorReportUrlHistory> + </PropertyGroup> +</Project> \ No newline at end of file Added: source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs =================================================================== --- source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs (rev 0) +++ source/trunk/CronosControl/CronosControlClassLibrary/CronosControlModel.Designer.cs 2009-09-22 23:07:13 UTC (rev 3) @@ -0,0 +1,4813 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:2.0.50727.3082 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +[assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Calendar_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "Calendar", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Calendar))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Holiday_Calendar", "Calendar", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Calendar), "Holiday", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Holiday))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Client_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "Client", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Client))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Project_Client", "Client", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Client), "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Project))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Role_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "Role", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Role))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectCostCenter_CostCenter", "CostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.CostCenter), "ProjectCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectCostCenter))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetCostCenter_CostCenter", "CostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.CostCenter), "TimeSheetCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetCostCenter))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectDocument_Document", "Document", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Document), "ProjectDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectDocument))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectCostCenter_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "ProjectCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectCostCenter))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_ProjectDocument_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "ProjectDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.ProjectDocument))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_UserProjectRole_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "UserProjectRole", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.UserProjectRole))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_UserProjectRole_Role", "Role", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Role), "UserProjectRole", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.UserProjectRole))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_TimeCategory", "TimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeCategory), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheet_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.User), "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheet))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetCostCenter_TimeSheet", "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeSheet), "TimeSheetCostCenter", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetCostCenter))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_TimeSheet", "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.TimeSheet), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.User), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_User2", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.User), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Project_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.User), "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Project))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheet_Project", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.Project), "TimeSheet", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheet))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_IdUserProjectRoleDocument_Document", "Document", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Document), "IdUserProjectRoleDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.IdUserProjectRoleDocument))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_IdUserProjectRoleDocument_UserProjectRole", "UserProjectRole", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.UserProjectRole), "IdUserProjectRoleDocument", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.IdUserProjectRoleDocument))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_Tasks_Project1", "Project", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Project), "Task", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.Task))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeSheetHour_Tasks", "Task", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CronosControl.Model.Task), "TimeSheetHour", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeSheetHour))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("CronosControlModel", "FK_TimeCategory_Company", "Company", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(CronosControl.Model.Company), "TimeCategory", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CronosControl.Model.TimeCategory))] + +// Original file name: +// Generation date: 9/21/2009 5:38:44 PM +namespace CronosControl.Model +{ + + /// <summary> + /// There are no comments for CronosControlEntities in the schema. + /// </summary> + public partial class CronosControlEntities : global::System.Data.Objects.ObjectContext + { + /// <summary> + /// Initializes a new CronosControlEntities object using the connection string found in the 'CronosControlEntities' section of the application configuration file. + /// </summary> + public CronosControlEntities() : + base("name=CronosControlEntities", "CronosControlEntities") + { + this.OnContextCreated(); + } + /// <summary> + /// Initialize a new CronosControlEntities object. + /// </summary> + public CronosControlEntities(string connectionString) : + base(connectionString, "CronosControlEntities") + { + this.OnContextCreated(); + } + /// <summary> + /// Initialize a new CronosControlEntities object. + /// </summary> + public CronosControlEntities(global::System.Data.EntityClient.EntityConnection connection) : + base(connection, "CronosControlEntities") + { + this.OnContextCreated(); + } + partial void OnContextCreated(); + /// <summary> + /// There are no comments for Calendar in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Calendar> Calendar + { + get + { + if ((this._Calendar == null)) + { + this._Calendar = base.CreateQuery<Calendar>("[Calendar]"); + } + return this._Calendar; + } + } + private global::System.Data.Objects.ObjectQuery<Calendar> _Calendar; + /// <summary> + /// There are no comments for Client in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Client> Client + { + get + { + if ((this._Client == null)) + { + this._Client = base.CreateQuery<Client>("[Client]"); + } + return this._Client; + } + } + private global::System.Data.Objects.ObjectQuery<Client> _Client; + /// <summary> + /// There are no comments for Company in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Company> Company + { + get + { + if ((this._Company == null)) + { + this._Company = base.CreateQuery<Company>("[Company]"); + } + return this._Company; + } + } + private global::System.Data.Objects.ObjectQuery<Company> _Company; + /// <summary> + /// There are no comments for CostCenter in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<CostCenter> CostCenter + { + get + { + if ((this._CostCenter == null)) + { + this._CostCenter = base.CreateQuery<CostCenter>("[CostCenter]"); + } + return this._CostCenter; + } + } + private global::System.Data.Objects.ObjectQuery<CostCenter> _CostCenter; + /// <summary> + /// There are no comments for Document in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Document> Document + { + get + { + if ((this._Document == null)) + { + this._Document = base.CreateQuery<Document>("[Document]"); + } + return this._Document; + } + } + private global::System.Data.Objects.ObjectQuery<Document> _Document; + /// <summary> + /// There are no comments for Holiday in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Holiday> Holiday + { + get + { + if ((this._Holiday == null)) + { + this._Holiday = base.CreateQuery<Holiday>("[Holiday]"); + } + return this._Holiday; + } + } + private global::System.Data.Objects.ObjectQuery<Holiday> _Holiday; + /// <summary> + /// There are no comments for Project in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Project> Project + { + get + { + if ((this._Project == null)) + { + this._Project = base.CreateQuery<Project>("[Project]"); + } + return this._Project; + } + } + private global::System.Data.Objects.ObjectQuery<Project> _Project; + /// <summary> + /// There are no comments for ProjectCostCenter in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<ProjectCostCenter> ProjectCostCenter + { + get + { + if ((this._ProjectCostCenter == null)) + { + this._ProjectCostCenter = base.CreateQuery<ProjectCostCenter>("[ProjectCostCenter]"); + } + return this._ProjectCostCenter; + } + } + private global::System.Data.Objects.ObjectQuery<ProjectCostCenter> _ProjectCostCenter; + /// <summary> + /// There are no comments for ProjectDocument in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<ProjectDocument> ProjectDocument + { + get + { + if ((this._ProjectDocument == null)) + { + this._ProjectDocument = base.CreateQuery<ProjectDocument>("[ProjectDocument]"); + } + return this._ProjectDocument; + } + } + private global::System.Data.Objects.ObjectQuery<ProjectDocument> _ProjectDocument; + /// <summary> + /// There are no comments for Role in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Role> Role + { + get + { + if ((this._Role == null)) + { + this._Role = base.CreateQuery<Role>("[Role]"); + } + return this._Role; + } + } + private global::System.Data.Objects.ObjectQuery<Role> _Role; + /// <summary> + /// There are no comments for TimeCategory in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<TimeCategory> TimeCategory + { + get + { + if ((this._TimeCategory == null)) + { + this._TimeCategory = base.CreateQuery<TimeCategory>("[TimeCategory]"); + } + return this._TimeCategory; + } + } + private global::System.Data.Objects.ObjectQuery<TimeCategory> _TimeCategory; + /// <summary> + /// There are no comments for TimeSheet in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<TimeSheet> TimeSheet + { + get + { + if ((this._TimeSheet == null)) + { + this._TimeSheet = base.CreateQuery<TimeSheet>("[TimeSheet]"); + } + return this._TimeSheet; + } + } + private global::System.Data.Objects.ObjectQuery<TimeSheet> _TimeSheet; + /// <summary> + /// There are no comments for TimeSheetCostCenter in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<TimeSheetCostCenter> TimeSheetCostCenter + { + get + { + if ((this._TimeSheetCostCenter == null)) + { + this._TimeSheetCostCenter = base.CreateQuery<TimeSheetCostCenter>("[TimeSheetCostCenter]"); + } + return this._TimeSheetCostCenter; + } + } + private global::System.Data.Objects.ObjectQuery<TimeSheetCostCenter> _TimeSheetCostCenter; + /// <summary> + /// There are no comments for TimeSheetHour in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<TimeSheetHour> TimeSheetHour + { + get + { + if ((this._TimeSheetHour == null)) + { + this._TimeSheetHour = base.CreateQuery<TimeSheetHour>("[TimeSheetHour]"); + } + return this._TimeSheetHour; + } + } + private global::System.Data.Objects.ObjectQuery<TimeSheetHour> _TimeSheetHour; + /// <summary> + /// There are no comments for User in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<User> User + { + get + { + if ((this._User == null)) + { + this._User = base.CreateQuery<User>("[User]"); + } + return this._User; + } + } + private global::System.Data.Objects.ObjectQuery<User> _User; + /// <summary> + /// There are no comments for UserProjectRole in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<UserProjectRole> UserProjectRole + { + get + { + if ((this._UserProjectRole == null)) + { + this._UserProjectRole = base.CreateQuery<UserProjectRole>("[UserProjectRole]"); + } + return this._UserProjectRole; + } + } + private global::System.Data.Objects.ObjectQuery<UserProjectRole> _UserProjectRole; + /// <summary> + /// There are no comments for IdUserProjectRoleDocument in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<IdUserProjectRoleDocument> IdUserProjectRoleDocument + { + get + { + if ((this._IdUserProjectRoleDocument == null)) + { + this._IdUserProjectRoleDocument = base.CreateQuery<IdUserProjectRoleDocument>("[IdUserProjectRoleDocument]"); + } + return this._IdUserProjectRoleDocument; + } + } + private global::System.Data.Objects.ObjectQuery<IdUserProjectRoleDocument> _IdUserProjectRoleDocument; + /// <summary> + /// There are no comments for Task in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Task> Task + { + get + { + if ((this._Task == null)) + { + this._Task = base.CreateQuery<Task>("[Task]"); + } + return this._Task; + } + } + private global::System.Data.Objects.ObjectQuery<Task> _Task; + /// <summary> + /// There are no comments for Calendar in the schema. + /// </summary> + public void AddToCalendar(Calendar calendar) + { + base.AddObject("Calendar", calendar); + } + /// <summary> + /// There are no comments for Client in the schema. + /// </summary> + public void AddToClient(Client client) + { + base.AddObject("Client", client); + } + /// <summary> + /// There are no comments for Company in the schema. + /// </summary> + public void AddToCompany(Company company) + { + base.AddObject("Company", company); + } + /// <summary> + /// There are no comments for CostCenter in the schema. + /// </summary> + public void AddToCostCenter(CostCenter costCenter) + { + base.AddObject("CostCenter", costCenter); + } + /// <summary> + /// There are no comments for Document in the schema. + /// </summary> + public void AddToDocument(Document document) + { + base.AddObject("Document", document); + } + /// <summary> + /// There are no comments for Holiday in the schema. + /// </summary> + public void AddToHoliday(Holiday holiday) + { + base.AddObject("Holiday", holiday); + } + /// <summary> + /// There are no comments for Project in the schema. + /// </summary> + public void AddToProject(Project project) + { + base.AddObject("Project", project); + } + /// <summary> + /// There are no comments for ProjectCostCenter in the schema. + /// </summary> + public void AddToProjectCostCenter(ProjectCostCenter projectCostCenter) + { + base.AddObject("ProjectCostCenter", projectCostCenter); + } + /// <summary> + /// There are no comments for ProjectDocument in the schema. + /// </summary> + public void AddToProjectDocument(ProjectDocument projectDocument) + { + base.AddObject("ProjectDocument", projectDocument); + } + /// <summary> + /// There are no comments for Role in the schema. + /// </summary> + public void AddToRole(Role role) + { + base.AddObject("Role", role); + } + /// <summary> + /// There are no comments for TimeCategory in the schema. + /// </summary> + public void AddToTimeCategory(TimeCategory timeCategory) + { + base.AddObject("TimeCategory", timeCategory); + } + /// <summary> + /// There are no comments for TimeSheet in the schema. + /// </summary> + public void AddToTimeSheet(TimeSheet timeSheet) + { + base.AddObject("TimeSheet", timeSheet); + } + /// <summary> + /// There are no comments for TimeSheetCostCenter in the schema. + /// </summary> + public void AddToTimeSheetCostCenter(TimeSheetCostCenter timeSheetCostCenter) + { + base.AddObject("TimeSheetCostCenter", timeSheetCostCenter); + } + /// <summary> + /// There are no comments for TimeSheetHour in the schema. + /// </summary> + public void AddToTimeSheetHour(TimeSheetHour timeSheetHour) + { + base.AddObject("TimeSheetHour", timeSheetHour); + } + /// <summary> + /// There are no comments for User in the schema. + /// </summary> + public void AddToUser(User user) + { + base.AddObject("User", user); + } + /// <summary> + /// There are no comments for UserProjectRole in the schema. + /// </summary> + public void AddToUserProjectRole(UserProjectRole userProjectRole) + { + base.AddObject("UserProjectRole", userProjectRole); + } + /// <summary> + /// There are no comments for IdUserProjectRoleDocument in the schema. + /// </summary> + public void AddToIdUserProjectRoleDocument(IdUserProjectRoleDocument idUserProjectRoleDocument) + { + base.AddObject("IdUserProjectRoleDocument", idUserProjectRoleDocument); + } + /// <summary> + /// There are no comments for Task in the schema. + /// </summary> + public void AddToTask(Task task) + { + base.AddObject("Task", task); + } + } + /// <summary> + /// Base Calendars + /// </summary> + /// <LongDescription> + /// Calendar allows to define work schedules + /// </LongDescription> + /// <KeyProperties> + /// IdCalendar + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="CronosControlModel", Name="Calendar")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class Calendar : global::System.Data.Objects.DataClasses.EntityObject + { + /// <summary> + /// Create a new Calendar object. + /// </summary> + /// <param name="idCalendar">Initial value of IdCalendar.</param> + /// <param name="name">Initial value of Name.</param> + /// <param name="createdAt">Initial value of CreatedAt.</param> + /// <param name="enabled">Initial value of Enabled.</param> + public static Calendar CreateCalendar(int idCalendar, string name, global::System.DateTime createdAt, bool enabled) + { + Calendar calendar = new Calendar(); + calendar.IdCalendar = idCalendar; + calendar.Name = name; + calendar.CreatedAt = createdAt; + calendar.Enabled = enabled; + return calendar; + } + /// <summary> + /// Unique identifier + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public int IdCalendar + { + get + { + return this._IdCalendar; + } + set + { + this.OnIdCalendarChanging(value); + this.ReportPropertyChanging("IdCalendar"); + this._IdCalendar = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("IdCalendar"); + this.OnIdCalendarChanged(); + } + } + private int _IdCalendar; + partial void OnIdCalendarChanging(int value); + partial void OnIdCalendarChanged(); + /// <summary> + /// Calendar Name + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public string Name + { + get + { + return this._Name; + } + set + { + this.OnNameChanging(value); + this.ReportPropertyChanging("Name"); + this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("Name"); + this.OnNameChanged(); + } + } + private string _Name; + partial void OnNameChanging(string value); + partial void OnNameChanged(); + /// <summary> + /// Calendar Description + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public string Description + { + get + { + return this._Description; + } + set + { + this.OnDescriptionChanging(value); + this.ReportPropertyChanging("Description"); + this._Description = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("Description"); + this.OnDescriptionChanged(); + } + } + private string _Description; + partial void OnDescriptionChanging(string value); + partial void OnDescriptionChanged(); + /// <summary> + /// Data Until the calendar should be considered valid + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Nullable<global::System.DateTime> ValidUntil + { + get + { + return this._ValidUntil; + } + set + { + this.OnValidUntilChanging(value); + this.ReportPropertyChanging("ValidUntil"); + this._ValidUntil = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("ValidUntil"); + this.OnValidUntilChanged(); + } + } + private global::System.Nullable<global::System.DateTime> _ValidUntil; + partial void OnValidUntilChanging(global::System.Nullable<global::System.DateTime> value); + partial void OnValidUntilChanged(); + /// <summary> + /// Creation Date + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.DateTime CreatedAt + { + get + { + return this._CreatedAt; + } + set + { + this.OnCreatedAtChanging(value); + this.ReportPropertyChanging("CreatedAt"); + this._CreatedAt = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("CreatedAt"); + this.OnCreatedAtChanged(); + } + } + private global::System.DateTime _CreatedAt; + partial void OnCreatedAtChanging(global::System.DateTime value); + partial void OnCreatedAtChanged(); + /// <summary> + /// Updated Date + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Nullable<global::System.DateTime> UpdatedAt + { + get + { + return this._UpdatedAt; + } + set + { + this.OnUpdatedAtChanging(value); + this.ReportPropertyChanging("UpdatedAt"); + this._UpdatedAt = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("UpdatedAt"); + this.OnUpdatedAtChanged(); + } + } + private global::System.Nullable<global::System.DateTime> _UpdatedAt; + partial void OnUpdatedAtChanging(global::System.Nullable<global::System.DateTime> value); + partial void OnUpdatedAtChanged(); + /// <summary> + /// Enabled or disabled, calendars cannot be deleted + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public bool Enabled + { + get + { + return this._Enabled; + } + set + { + this.OnEnabledChanging(value); + this.ReportPropertyChanging("Enabled"); + this._Enabled = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("Enabled"); + this.OnEnabledChanged(); + } + } + private bool _Enabled; + partial void OnEnabledChanging(bool value); + partial void OnEnabledChanged(); + /// <summary> + /// Calendar Company + /// </summary> + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("CronosControlModel", "FK_Calendar_Company", "Company")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public Company Company + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Company>("CronosControlModel.FK_Calendar_Company", "Company").Value; + } + set + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Company>("CronosControlModel.FK_Calendar_Company", "Company").Value = value; + } + } + /// <summary> + /// Calendar Company + /// </summary> + [global::System.ComponentModel.BrowsableAttribute(false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityReference<Company> CompanyReference + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Company>("CronosControlModel.FK_Calendar_Company", "Company"); + } + set + { + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<Company>("CronosControlModel.FK_Calendar_Company", "Company", value); + } + } + } + /// <summary> + /// Calendar Holidays + /// </summary> + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("CronosControlModel", "FK_Holiday_Calendar", "Holiday")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityCollection<Holiday> Holiday + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<Holiday>("CronosControlModel.FK_Holiday_Calendar", "Holiday"); + } + set + { + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<Holiday>("CronosControlModel.FK_Holiday_Calendar", "Holiday", value); + } + } + } + } + /// <summary> + /// The client company or individual + /// </summary> + /// <LongDescription> + /// Client is a company or an individual requiring work for different projects + /// </LongDescription> + /// <KeyProperties> + /// IdClient + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="CronosControlModel", Name="Client")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class Client : global::System.Data.Objects.DataClasses.EntityObject + { + /// <summary> + /// Create a new Client object. + /// </summary> + /// <param name="idClient">Initial value of IdClient.</param> + /// <param name="name">Initial value of Name.</param> + /// <param name="createdAt">Initial value of CreatedAt.</param> + /// <param name="enabled">Initial value of Enabled.</param> + public static Client CreateClient(int idClient, string name, global::System.DateTime createdAt, bool enabled) + { + Client client = new Client(); + client.IdClient = idClient; + client.Name = name; + client.CreatedAt = createdAt; + client.Enabled = enabled; + return client; + } + /// <summary> + /// Unique Identifier + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public int IdClient + { + get + { + return this._IdClient; + } + set + { + this.OnIdClientChanging(value); + this.ReportPropertyChanging("IdClient"); + this._IdClient = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("IdClient"); + this.OnIdClientChanged(); + } + } + private int _IdClient; + partial void OnIdClientChanging(int value); + partial void OnIdClientChanged(); + /// <summary> + /// Client's name + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public string Name + { + get + { + return this._Name; + } + set + { + this.OnNameChanging(value); + this.ReportPropertyChanging("Name"); + this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("Name"); + this.OnNameChanged(); + } + } + private string _Name; + partial void OnNameChanging(string value); + partial void OnNameChanged(); + /// <summary> + /// Client's description + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public string Description + { + get + { + return this._Description; + } + set + { + this.OnDescriptionChanging(value); + this.ReportPropertyChanging("Description"); + this._Description = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("Description"); + this.OnDescriptionChanged(); + } + } + private string _Description; + partial void OnDescriptionChanging(string value); + partial void OnDescriptionChanged(); + /// <summary> + /// Cretion Date + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.DateTime CreatedAt + { + get + { + return this._CreatedAt; + } + set + { + this.OnCreatedAtChanging(value); + this.ReportPropertyChanging("CreatedAt"); + this._CreatedAt = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("CreatedAt"); + this.OnCreatedAtChanged(); + } + } + private global::System.DateTime _CreatedAt; + partial void OnCreatedAtChanging(global::System.DateTime value); + partial void OnCreatedAtChanged(); + /// <summary> + /// Updated date + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Nullable<global::System.DateTime> UpdatedAt + { + get + { + return this._UpdatedAt; + } + set + { + this.OnUpdatedAtChanging(value); + this.ReportPropertyChanging("UpdatedAt"); + this._UpdatedAt = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("UpdatedAt"); + this.OnUpdatedAtChanged(); + } + } + private global::System.Nullable<global::System.DateTime> _UpdatedAt; + partial void OnUpdatedAtChanging(global::System.Nullable<global::System.DateTime> value); + partial void OnUpdatedAtChanged(); + /// <summary> + /// Is Enabled + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public bool Enabled + { + get + { + return this._Enabled; + } + set + { + this.OnEnabledChanging(value); + this.ReportPropertyChanging("Enabled"); + this._Enabled = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("Enabled"); + this.OnEnabledChanged(); + } + } + private bool _Enabled; + partial void OnEnabledChanging(bool value); + partial void OnEnabledChanged(); + /// <summary> + /// This client's company + /// </summary> + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("CronosControlModel", "FK_Client_Company", "Company")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public Company Company + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.Ge... [truncated message content] |
From: <all...@us...> - 2009-09-22 22:51:16
|
Revision: 2 http://cronoscontrol.svn.sourceforge.net/cronoscontrol/?rev=2&view=rev Author: allancascante Date: 2009-09-22 22:51:07 +0000 (Tue, 22 Sep 2009) Log Message: ----------- Added repository folders for source code. Added Paths: ----------- source/ source/branches/ source/tags/ source/trunk/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |