зеркало из
1
0
Форкнуть 0
This commit is contained in:
KirilNN 2015-05-05 09:38:20 +03:00
Родитель 1207408b47
Коммит 21b24e7829
155 изменённых файлов: 378221 добавлений и 0 удалений

22
KendoUISharepoint.sln Normal file
Просмотреть файл

@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KendoUISharepoint", "KendoUISharepoint\KendoUISharepoint.csproj", "{C6A9FB33-4C07-4B47-89F2-0E5750736984}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C6A9FB33-4C07-4B47-89F2-0E5750736984}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C6A9FB33-4C07-4B47-89F2-0E5750736984}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C6A9FB33-4C07-4B47-89F2-0E5750736984}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{C6A9FB33-4C07-4B47-89F2-0E5750736984}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C6A9FB33-4C07-4B47-89F2-0E5750736984}.Release|Any CPU.Build.0 = Release|Any CPU
{C6A9FB33-4C07-4B47-89F2-0E5750736984}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Двоичные данные
KendoUISharepoint.suo Normal file

Двоичный файл не отображается.

Двоичные данные
KendoUISharepoint.v11.suo Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
<App xmlns="http://schemas.microsoft.com/sharepoint/2012/app/manifest"
Name="KendoUI"
ProductID="{de103f61-c75c-4806-a54d-6f88a22b9d12}"
Version="1.0.0.0"
SharePointMinVersion="15.0.0.0"
>
<Properties>
<StartPage>~appWebUrl/Pages/Default.aspx?{StandardTokens}</StartPage>
<Title>Kendo UI Leaves</Title>
</Properties>
<AppPrincipal>
<Internal />
</AppPrincipal>
<AppPermissionRequests AllowAppOnlyPolicy="false">
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl" />
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web/list" Right="FullControl" />
<AppPermissionRequest Scope="http://sharepoint/bcs/connection" Right="Read" />
</AppPermissionRequests>
</App>

Просмотреть файл

@ -0,0 +1,210 @@
#sidebar {
float:left;
width: 180px;
position: relative;
}
#right-content {
position: absolute;
left: 220px;
right: 20px;
}
.k-scheduler-layout > tbody > tr:first-child .k-scheduler-times tr + tr, .k-scheduler-header tr + tr {
display:none;
}
#employee-name {
display: block;
position: absolute;
top: 180px;
left: 0px;
box-sizing: border-box;
width: 180px;
padding: 0 15px;
height: 40px;
line-height: 40px;
font-size: 14px;
color: #ffffff;
background-color: rgba(0,0,0,.45);
text-overflow: ellipsis;
}
.subtitle {
font-size: 11px;
font-weight: 500;
text-transform: uppercase;
color: #666666;
margin: 0;
padding: 15px 0 0;
}
#remaining-days {
font-size: 32px;
font-weight: normal;
color: #333333;
}
ul.remaining-by-type {
margin: 10px 0 0;
padding: 10px 0 0;
list-style-type: none;
border-top: 1px solid #e3e3e3;
}
ul.remaining-by-type li {
display: block;
position: relative;
padding: 0 0 0 18px;
font-size: 12px;
line-height: 22px;
height: 22px;
}
ul.remaining-by-type li:after {
display: block;
content: " ";
position: absolute;
left: 0;
top: 50%;
margin-top: -6px;
width: 12px;
height: 12px;
border-radius: 50%;
background-color: #0072c6;
}
ul.remaining-by-type li.bonus:after {
background-color: #ec236a;
}
ul.remaining-by-type li span {
display: block;
float: right;
text-align: right;
font-weight: bold;
color: #333333;
}
.scheduler-header:after {
display: block;
clear: both;
content: " ";
height: 0;
line-height: 0;
}
.scheduler-header {
padding: 15px 0;
}
h1 {
margin: -10px 0 0;
padding: 0;
}
.team-picker {
float: right;
line-height: 28px;
vertical-align: bottom;
}
.action-button {
display: block;
float: left;
font-size: 20px;
padding-left: 20px;
position: relative;
color: #0072c6;
}
.action-button:after {
display: block;
position: absolute;
content: " ";
left: 0;
top: 9px;
width: 16px;
height: 16px;
background: url(/_layouts/15/images/spcommon.png) no-repeat -233px -138px;
}
.action-button:hover {
text-decoration: none;
color: #004d85;
}
.action-button:hover:after {
background: url(/_layouts/15/images/spcommon.png) no-repeat -233px -120px;
}
.employee-card {
position: relative;
height: 70px;
width: 205px;
}
.employee-photo {
position: absolute;
left: 10px;
top: 10px;
width: 50px;
height: 50px;
border-radius: 50%;
}
.employee-name {
display: block;
position: absolute;
left: 70px;
top: 18px;
font-size: 14px;
color: #333333;
}
.employee-jobtitle {
display: block;
position: absolute;
left: 70px;
top: 38px;
font-size: 9px;
text-transform: uppercase;
color: #787878;
}
.k-scheduler-monthview .k-scheduler-table td,
.k-scheduler-monthview .k-hidden {
height: 55px;
}
.k-edit-form-container .k-button:visited {
color: #333;
}
.k-edit-form-container .k-button.k-primary:visited {
color: #fff;
}
.k-nav-current>.k-link span+span {
vertical-align: bottom;
}
#chart,
#chart-totals {
height: 180px;
margin-top: 15px;
}
.left-col,
.right-col {
display: inline-block;
width: 30%;
box-sizing: border-box;
padding: 0 20px 30px 0;
}
.right-col {
width: 69.5%;
padding: 0 0 30px 0;
}
#ctl00_PlaceHolderSiteName_onetidProjectPropertyTitle {
font-size:42px;
text-decoration:none;
}

Просмотреть файл

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Content">
<File Path="Content\App.css" Url="Content/App.css" ReplaceContent="TRUE" />
<File Path="Content\Office365\sprite.png" Url="Content/Office365/sprite.png" ReplaceContent="TRUE" />
<File Path="Content\kendo.dataviz.min.css" Url="Content/kendo.dataviz.min.css" ReplaceContent="TRUE" />
<File Path="Content\kendo.dataviz.office365.min.css" Url="Content/kendo.dataviz.office365.min.css" ReplaceContent="TRUE" />
<File Path="Content\kendo.office365.min.css" Url="Content/kendo.office365.min.css" ReplaceContent="TRUE" />
<File Path="Content\kendo.common-office365.min.css" Url="Content/kendo.common-office365.min.css" ReplaceContent="TRUE" />
<File Path="Content\Office365\loading.gif" Url="Content/Office365/loading.gif" ReplaceContent="TRUE" />
</Module>
</Elements>

Двоичные данные
KendoUISharepoint/Content/Office365/loading.gif Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 557 B

Двоичные данные
KendoUISharepoint/Content/Office365/sprite.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 16 KiB

Просмотреть файл

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Target="Content\" Type="ElementManifest" />
<ProjectItemFile Source="App.css" Target="Content\" Type="ElementFile" />
<ProjectItemFile Source="Office365\sprite.png" Target="Content\Office365\" Type="ElementFile" />
<ProjectItemFile Source="kendo.dataviz.min.css" Target="Content\" Type="ElementFile" />
<ProjectItemFile Source="kendo.dataviz.office365.min.css" Target="Content\" Type="ElementFile" />
<ProjectItemFile Source="kendo.office365.min.css" Target="Content\" Type="ElementFile" />
<ProjectItemFile Source="kendo.common-office365.min.css" Target="Content\" Type="ElementFile" />
<ProjectItemFile Source="Office365\loading.gif" Target="Content\Office365\" Type="ElementFile" />
</Files>
</ProjectItem>

1
KendoUISharepoint/Content/kendo.common-office365.min.css поставляемый Normal file

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

1
KendoUISharepoint/Content/kendo.dataviz.min.css поставляемый Normal file

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

1
KendoUISharepoint/Content/kendo.dataviz.office365.min.css поставляемый Normal file
Просмотреть файл

@ -0,0 +1 @@
.k-chart .k-mask{background-color:#fff;filter:alpha(opacity=68);-moz-opacity:.68;opacity:.68}.k-chart .k-selection{border-color:#e5e5e5}.k-chart .k-handle{width:15px;height:15px;background-color:#00b0ff;-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}.k-chart .k-leftHandle{left:-8px}.k-chart .k-rightHandle{right:-8px}.k-chart .k-handle:hover{background-color:#00b0ff;border-color:#00b0ff}.k-chart .k-navigator-hint .k-tooltip{border:3px solid #fff;-moz-box-shadow:0 0 0 3px rgba(0,0,0,0.2);-webkit-box-shadow:0 0 0 3px rgba(0,0,0,0.2);box-shadow:0 0 0 3px rgba(0,0,0,0.2);background:#fff;color:#242424}.k-chart .k-navigator-hint .k-scroll{background:#3f51b5;height:4px}.k-chart-tooltip{background-image:none}.k-map .k-marker{background-image:url("Default/markers.png")}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){.k-map .k-marker{background-image:url("Default/markers_2x.png")}}.k-map .k-attribution{color:#666}

1
KendoUISharepoint/Content/kendo.office365.min.css поставляемый Normal file

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/">
</Feature>

Просмотреть файл

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<feature xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" dslVersion="1.0.0.0" Id="efd7b186-2303-4274-bc50-e2865726bea9" description="SharePoint App Feature" featureId="efd7b186-2303-4274-bc50-e2865726bea9" imageUrl="" solutionId="00000000-0000-0000-0000-000000000000" title="SharePointApp1 Feature1" version="" deploymentPath="$SharePoint.Project.FileNameWithoutExtension$_$SharePoint.Feature.FileNameWithoutExtension$" xmlns="http://schemas.microsoft.com/VisualStudio/2008/SharePointTools/FeatureModel">
<projectItems>
<projectItemReference itemId="de103f61-c75c-4806-a54d-6f88a22b9d12" />
<projectItemReference itemId="f3d14cef-d552-4183-8113-e5ae8f73e6a3" />
<projectItemReference itemId="52e646de-bf4a-41a9-8478-ebb4bca7bf4d" />
<projectItemReference itemId="eae8e8c3-ac96-41ad-828c-d4e39ed89e86" />
<projectItemReference itemId="fa2a956c-8362-4bed-ab41-690d583221b0" />
<projectItemReference itemId="c8472ae4-5a4b-4ebb-b50f-814cbbf4d630" />
<projectItemReference itemId="4c981345-9122-48a4-9099-337a265e24a0" />
<projectItemReference itemId="016de1ea-7331-4479-b81d-70fff4b53ebe" />
</projectItems>
</feature>

Двоичные данные
KendoUISharepoint/Images/180.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 60 KiB

Двоичные данные
KendoUISharepoint/Images/180x64.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 4.2 KiB

Двоичные данные
KendoUISharepoint/Images/AppIcon.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 6.8 KiB

Просмотреть файл

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Images">
<File Path="Images\AppIcon.png" Url="Images/AppIcon.png" ReplaceContent="TRUE" />
<File Path="Images\180x64.png" Url="Images/180x64.png" ReplaceContent="TRUE" />
<File Path="Images\180.png" Url="Images/180.png" ReplaceContent="TRUE" />
</Module>
</Elements>

Просмотреть файл

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Target="Images\" Type="ElementManifest" />
<ProjectItemFile Source="AppIcon.png" Target="Images\" Type="ElementFile" />
<ProjectItemFile Source="180x64.png" Target="Images\" Type="ElementFile" />
<ProjectItemFile Source="180.png" Target="Images\" Type="ElementFile" />
</Files>
</ProjectItem>

Просмотреть файл

@ -0,0 +1,133 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C6A9FB33-4C07-4B47-89F2-0E5750736984}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>KendoUISharepoint</RootNamespace>
<AssemblyName>KendoUISharepoint</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetOfficeVersion>15.0</TargetOfficeVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{C1CDDADD-2546-481F-9697-4EA41081F2FC};{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<IncludeAssemblyInPackage>False</IncludeAssemblyInPackage>
<ProjectMode>SharePointApp</ProjectMode>
<AppFeaturePartId>{d480547e-49dd-471d-ad09-d3abf8ef1f01}</AppFeaturePartId>
<WspPartId>{cf3a559f-c64c-4b68-9535-d1569139a4c5}</WspPartId>
<WorkflowPartId>{19484f02-33f4-4c6b-bc44-070a277daaf1}</WorkflowPartId>
<CspkgPartId>{d0c58dbe-c680-426f-98df-a82747bdfeb6}</CspkgPartId>
<SqlPackagePartId>{f3d14cef-d552-4183-8113-e5ae8f73e6a3}</SqlPackagePartId>
</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>
<UseVSHostingProcess>false</UseVSHostingProcess>
</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>
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<ItemGroup>
<Content Include="Content\kendo.common-office365.min.css" />
<Content Include="Content\kendo.dataviz.min.css" />
<Content Include="Content\kendo.dataviz.office365.min.css" />
<Content Include="Content\kendo.office365.min.css" />
<Content Include="Content\Office365\loading.gif" />
<Content Include="Images\180x64.png" />
<Content Include="Scripts\grid.js" />
<Content Include="Scripts\utils.js" />
<Content Include="Teams\Elements.xml" />
<Content Include="Teams\Schema.xml" />
<Content Include="Teams\TeamsInstance\Elements.xml" />
<None Include="Leaves\LeavesInstance\SharePointProjectItem.spdata">
<SharePointProjectItemId>{fa2a956c-8362-4bed-ab41-690d583221b0}</SharePointProjectItemId>
</None>
<None Include="Leaves\SharePointProjectItem.spdata">
<SharePointProjectItemId>{c8472ae4-5a4b-4ebb-b50f-814cbbf4d630}</SharePointProjectItemId>
</None>
<None Include="packages.config" />
<None Include="Pages\SharePointProjectItem.spdata">
<SharePointProjectItemId>{de103f61-c75c-4806-a54d-6f88a22b9d12}</SharePointProjectItemId>
</None>
<Content Include="Images\180.png" />
<Content Include="Content\Office365\sprite.png" />
<Content Include="Leaves\Elements.xml" />
<Content Include="Leaves\LeavesInstance\Elements.xml" />
<Content Include="Leaves\Schema.xml" />
<Content Include="Pages\Elements.xml" />
<Content Include="Pages\Default.aspx" />
<None Include="Teams\SharePointProjectItem.spdata">
<SharePointProjectItemId>{016de1ea-7331-4479-b81d-70fff4b53ebe}</SharePointProjectItemId>
</None>
<None Include="Teams\TeamsInstance\SharePointProjectItem.spdata">
<SharePointProjectItemId>{4c981345-9122-48a4-9099-337a265e24a0}</SharePointProjectItemId>
</None>
</ItemGroup>
<ItemGroup>
<None Include="Scripts\jquery-1.10.2.min.map" />
<None Include="Scripts\SharePointProjectItem.spdata">
<SharePointProjectItemId>{f3d14cef-d552-4183-8113-e5ae8f73e6a3}</SharePointProjectItemId>
</None>
<Content Include="Scripts\Elements.xml" />
<Content Include="Scripts\app.js" />
<Content Include="Scripts\jquery-1.10.2.intellisense.js" />
<Content Include="Scripts\jquery-1.10.2.js" />
<Content Include="Scripts\jquery-1.10.2.min.js" />
<Content Include="Scripts\kendo.all.min.js" />
<Content Include="Scripts\_references.js" />
</ItemGroup>
<ItemGroup>
<None Include="Content\SharePointProjectItem.spdata">
<SharePointProjectItemId>{52e646de-bf4a-41a9-8478-ebb4bca7bf4d}</SharePointProjectItemId>
</None>
<Content Include="Content\Elements.xml" />
<Content Include="Content\App.css" />
</ItemGroup>
<ItemGroup>
<Content Include="Images\AppIcon.png">
<OpcRelationship>manifest-icon</OpcRelationship>
</Content>
<Content Include="Images\Elements.xml" />
<None Include="Images\SharePointProjectItem.spdata">
<SharePointProjectItemId>{eae8e8c3-ac96-41ad-828c-d4e39ed89e86}</SharePointProjectItemId>
</None>
</ItemGroup>
<ItemGroup>
<None Include="Package\Package.package">
<PackageId>{b4f11268-da3a-479f-92da-2135831fcb18}</PackageId>
</None>
<None Include="Package\Package.Template.xml">
<DependentUpon>Package.package</DependentUpon>
</None>
<None Include="Features\Feature1\Feature1.feature">
<FeatureId>{efd7b186-2303-4274-bc50-e2865726bea9}</FeatureId>
</None>
<None Include="Features\Feature1\Feature1.Template.xml">
<DependentUpon>Feature1.feature</DependentUpon>
</None>
</ItemGroup>
<ItemGroup>
<AppManifestFile Include="AppManifest.xml">
<SubType>Designer</SubType>
</AppManifestFile>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0'">11.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<Import Project="$(VSToolsPath)\SharePointTools\Microsoft.VisualStudio.SharePoint.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SharePointSiteUrl>https://kendosharepoint.sharepoint.com/</SharePointSiteUrl>
</PropertyGroup>
</Project>

Просмотреть файл

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SharePointSiteUrl>https://sharep.sharepoint.com/</SharePointSiteUrl>
<ProjectView>ShowAllFiles</ProjectView>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{C1CDDADD-2546-481F-9697-4EA41081F2FC}">
<ProjectStore>
<AppInstancePackageModifiedTime>2015-04-02T08:23:48.2988244Z</AppInstancePackageModifiedTime>
<AppInstanceId>93ab50b2-0e58-4a8c-9d3f-436f631f8474</AppInstanceId>
</ProjectStore>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>

Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Do not change the value of the Name attribute below. If it does not match the folder name of the List project item, an error will occur when the project is run. -->
<ListTemplate
Name="Leaves"
Type="10001"
BaseType="0"
OnQuickLaunch="TRUE"
SecurityBits="11"
Sequence="410"
DisplayName="Leaves"
Description="My List Definition"
Image="/_layouts/15/images/itgen.png"/>
</Elements>

Просмотреть файл

@ -0,0 +1,217 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListInstance Title="Leaves" OnQuickLaunch="TRUE" TemplateType="10001" Url="Lists/Leaves" Description="My List Instance">
<Data>
<Rows>
<Row>
<Field Name="EmployeeID">1</Field>
<Field Name="StartTime">2015-01-01</Field>
<Field Name="EndTime">2015-01-03</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Margaret Peacock</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">5</Field>
<Field Name="VacationType">1</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">1</Field>
<Field Name="StartTime">2015-03-20</Field>
<Field Name="EndTime">2015-03-22</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Margaret Peacock</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">5</Field>
<Field Name="VacationType">1</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">1</Field>
<Field Name="StartTime">2015-04-01</Field>
<Field Name="EndTime">2015-04-03</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Margaret Peacock</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">5</Field>
<Field Name="VacationType">2</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">1</Field>
<Field Name="StartTime">2015-10-01</Field>
<Field Name="EndTime">2015-10-03</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Margaret Peacock</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">5</Field>
<Field Name="VacationType">1</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">1</Field>
<Field Name="StartTime">2015-06-11</Field>
<Field Name="EndTime">2015-06-12</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Margaret Peacock</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">5</Field>
<Field Name="VacationType">2</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">1</Field>
<Field Name="StartTime">2015-04-17</Field>
<Field Name="EndTime">2015-04-20</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Margaret Peacock</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">5</Field>
<Field Name="VacationType">1</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">1</Field>
<Field Name="StartTime">2015-09-17</Field>
<Field Name="EndTime">2015-09-19</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Margaret Peacock</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">5</Field>
<Field Name="VacationType">1</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">1</Field>
<Field Name="StartTime">2015-08-17</Field>
<Field Name="EndTime">2015-08-19</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Margaret Peacock</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">5</Field>
<Field Name="VacationType">1</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">2</Field>
<Field Name="StartTime">2015-04-03</Field>
<Field Name="EndTime">2015-04-07</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Steven Buchanan</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">0</Field>
<Field Name="VacationType">1</Field>
<Field Name="JobTitle">Sales Manager</Field>
</Row>
<Row>
<Field Name="EmployeeID">3</Field>
<Field Name="StartTime">2015-04-21</Field>
<Field Name="EndTime">2015-04-24</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Michael Suyama</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">0</Field>
<Field Name="VacationType">1</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">4</Field>
<Field Name="StartTime">2015-04-13</Field>
<Field Name="EndTime">2015-04-17</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Robert King</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">0</Field>
<Field Name="VacationType">2</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">5</Field>
<Field Name="StartTime">2015-04-15</Field>
<Field Name="EndTime">2015-04-17</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
<Field Name="Person">Laura Callahan</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">0</Field>
<Field Name="VacationType">2</Field>
<Field Name="JobTitle">Inside Sales Coordinator</Field>
</Row>
<Row>
<Field Name="EmployeeID">6</Field>
<Field Name="StartTime">2015-04-04</Field>
<Field Name="EndTime">2015-04-06</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Telerik Platform</Field>
<Field Name="TeamID">2</Field>
<Field Name="Person">Anne Dodsworth</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">5</Field>
<Field Name="VacationType">2</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">7</Field>
<Field Name="StartTime">2015-04-21</Field>
<Field Name="EndTime">2015-04-26</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Telerik Platform</Field>
<Field Name="TeamID">2</Field>
<Field Name="Person">Janet Leverling</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">0</Field>
<Field Name="VacationType">2</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
<Row>
<Field Name="EmployeeID">8</Field>
<Field Name="StartTime">2015-04-01</Field>
<Field Name="EndTime">2015-04-02</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Telerik Platform</Field>
<Field Name="TeamID">2</Field>
<Field Name="Person">Andrew Fuller</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">5</Field>
<Field Name="VacationType">1</Field>
<Field Name="JobTitle">Vice President, Sales</Field>
</Row>
<Row>
<Field Name="EmployeeID">9</Field>
<Field Name="StartTime">2015-04-10</Field>
<Field Name="EndTime">2015-04-15</Field>
<Field Name="AllDay">true</Field>
<Field Name="Team">Telerik Platform</Field>
<Field Name="TeamID">2</Field>
<Field Name="Person">Nancy Davolio</Field>
<Field Name="VacationDays">20</Field>
<Field Name="BonusDays">5</Field>
<Field Name="VacationType">1</Field>
<Field Name="JobTitle">Sales Representative</Field>
</Row>
</Rows>
</Data>
</ListInstance>
</Elements>

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.ListInstance" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Target="LeavesInstance\" Type="ElementManifest" />
</Files>
</ProjectItem>

Просмотреть файл

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<List xmlns:ows="Microsoft SharePoint" Title="Leaves" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/Leaves" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">
<MetaData>
<ContentTypes>
<ContentType ID="0x010080877789a4484f9498c47a346d8799ea" Name="ListFieldsContentType"><FieldRefs><FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" /><FieldRef ID="{9d9095a2-3507-45d1-8a38-77a2598b8c24}" Name="EventTitle" /><FieldRef ID="{2404385d-219c-4e70-bcf0-644f9646decc}" Name="StartTime" /><FieldRef ID="{c2a85cdf-0e62-47cb-b3ba-ab7f72ed720f}" Name="EndTime" /><FieldRef ID="{902e30ef-59e2-407f-8cda-83477a7c42cc}" Name="AllDay" /><FieldRef ID="{de82cafe-710f-4ea1-a576-c722c85267b1}" Name="Team" /><FieldRef ID="{e0a76276-e914-472a-9fa4-4955cc6993cf}" Name="Person" /><FieldRef ID="{9baf3a83-e4cf-46f3-abd6-76bf9bebe022}" Name="TeamID" /><FieldRef ID="{f7b19a21-8a43-4fee-a926-5d2662602e75}" Name="VacationDays" /><FieldRef ID="{911303ed-3311-4aa4-a31f-7f9ba0b0b7f9}" Name="BonusDays" /><FieldRef ID="{0692691e-81c7-4c14-979f-68823aea95d4}" Name="VacationType" /><FieldRef ID="{775aa836-9533-45b6-a5c6-acdbf1478a6b}" Name="EmployeeID" /><FieldRef ID="{5c5e280a-d231-4ef8-9c64-135f94b05f8d}" Name="JobTitle1" /></FieldRefs></ContentType><ContentTypeRef ID="0x01">
<Folder TargetName="Item" />
</ContentTypeRef><ContentTypeRef ID="0x0120" /></ContentTypes>
<Fields>
<Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="$Resources:core,Title;" Required="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" MaxLength="255" /><Field Name="EventTitle" ID="{9d9095a2-3507-45d1-8a38-77a2598b8c24}" DisplayName="EventTitle" Type="Text" /><Field Name="StartTime" ID="{2404385d-219c-4e70-bcf0-644f9646decc}" DisplayName="StartTime" Type="DateTime" /><Field Name="EndTime" ID="{c2a85cdf-0e62-47cb-b3ba-ab7f72ed720f}" DisplayName="EndTime" Type="DateTime" /><Field Name="AllDay" ID="{902e30ef-59e2-407f-8cda-83477a7c42cc}" DisplayName="AllDay" Type="Boolean" /><Field Name="Team" ID="{de82cafe-710f-4ea1-a576-c722c85267b1}" DisplayName="Team" Type="Text" /><Field Name="Person" ID="{e0a76276-e914-472a-9fa4-4955cc6993cf}" DisplayName="Person" Type="Text" /><Field Name="TeamID" ID="{9baf3a83-e4cf-46f3-abd6-76bf9bebe022}" DisplayName="TeamID" Type="Number" /><Field Name="VacationDays" ID="{f7b19a21-8a43-4fee-a926-5d2662602e75}" DisplayName="VacationDays" Type="Number" /><Field Name="BonusDays" ID="{911303ed-3311-4aa4-a31f-7f9ba0b0b7f9}" DisplayName="BonusDays" Type="Number" /><Field Name="VacationType" ID="{0692691e-81c7-4c14-979f-68823aea95d4}" DisplayName="VacationType" Type="Number" /><Field Name="EmployeeID" ID="{775aa836-9533-45b6-a5c6-acdbf1478a6b}" DisplayName="EmployeeID" Type="Number" /><Field Name="JobTitle1" ID="{5c5e280a-d231-4ef8-9c64-135f94b05f8d}" DisplayName="JobTitle" Type="Text" /></Fields>
<Views>
<View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="LinkTitleNoMenu"></FieldRef></ViewFields>
<Query>
<OrderBy>
<FieldRef Name="Modified" Ascending="FALSE"></FieldRef></OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />
</ParameterBindings>
</View><View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/15/images/generic.png?rev=23" Url="AllItems.aspx">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<JSLink>clienttemplates.js</JSLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="LinkTitle"></FieldRef><FieldRef Name="EventTitle" /><FieldRef Name="StartTime" /><FieldRef Name="EndTime" /><FieldRef Name="AllDay" /><FieldRef Name="Team" /><FieldRef Name="Person" /><FieldRef Name="TeamID" /><FieldRef Name="VacationDays" /><FieldRef Name="BonusDays" /><FieldRef Name="VacationType" /><FieldRef Name="EmployeeID" /><FieldRef Name="JobTitle1" /></ViewFields>
<Query>
<OrderBy>
<FieldRef Name="ID"></FieldRef></OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
</ParameterBindings>
</View></Views>
<Forms>
<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
</Forms>
</MetaData>
</List>

Просмотреть файл

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.ListDefinition" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Target="Leaves\" Type="ElementManifest" />
<ProjectItemFile Source="Schema.xml" Target="Leaves\" Type="ElementFile" />
</Files>
<ExtensionData>
<ExtensionDataItem Key="Microsoft.VisualStudio.SharePoint.ListSettings.ListFieldsContentTypeID" Value="0x010080877789a4484f9498c47a346d8799ea" />
</ExtensionData>
</ProjectItem>

Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Do not change the value of the Name attribute below. If it does not match the folder name of the List project item, an error will occur when the project is run. -->
<ListTemplate
Name="Legis"
Type="10000"
BaseType="0"
OnQuickLaunch="TRUE"
SecurityBits="11"
Sequence="410"
DisplayName="Legis"
Description="My List Definition"
Image="/_layouts/15/images/itgen.png"/>
</Elements>

Просмотреть файл

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListInstance Title="Legis"
OnQuickLaunch="TRUE"
TemplateType="10000"
Url="Lists/Legis"
Description="My List Instance">
</ListInstance>
<ListInstance Title="CustomOne"
OnQuickLaunch="TRUE"
TemplateType="10000"
Url="Lists/Legis"
Description="My List Instance">
</ListInstance>
</Elements>

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.ListInstance" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Target="LegisInstance\" Type="ElementManifest" />
</Files>
</ProjectItem>

Просмотреть файл

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<List xmlns:ows="Microsoft SharePoint" Title="Legis" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/Legis" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">
<MetaData>
<ContentTypes>
<ContentTypeRef ID="0x01">
<Folder TargetName="Item" />
</ContentTypeRef>
<ContentTypeRef ID="0x0120" />
</ContentTypes>
<Fields>
<Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="$Resources:core,Title;" Required="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" MaxLength="255" />
</Fields>
<Views>
<View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="LinkTitleNoMenu"></FieldRef>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />
</ParameterBindings>
</View>
<View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/15/images/generic.png?rev=23" Url="AllItems.aspx">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<JSLink>clienttemplates.js</JSLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="LinkTitle"></FieldRef>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="ID"></FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
</ParameterBindings>
</View>
</Views>
<Forms>
<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
</Forms>
</MetaData>
</List>

Просмотреть файл

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.ListDefinition" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Target="Legis\" Type="ElementManifest" />
<ProjectItemFile Source="Schema.xml" Target="Legis\" Type="ElementFile" />
</Files>
</ProjectItem>

Просмотреть файл

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Parent ContentType: Item (0x01) -->
<ContentType ID="0x0100852185A5069E45DAB59AF275233AB1B4" Name="Legislation" Group="Custom Content Types" Description="My Content Type" Inherits="TRUE" Version="0">
<FieldRefs>
<FieldRef ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" DisplayName="$Resources:core,Title;" Name="LinkTitle" ReadOnly="TRUE" />
<FieldRef ID="{4a722dd4-d406-4356-93f9-2550b8f50dd0}" DisplayName="$Resources:core,First_Name;" Name="FirstName" />
<FieldRef ID="{475c2610-c157-4b91-9e2d-6855031b3538}" DisplayName="$Resources:core,Full_Name;" Name="FullName" />
<FieldRef ID="{475c2610-c157-4b91-9e2d-6855031b3123}" DisplayName="Twitter" Type="number" Name="FullName" />
</FieldRefs>
</ContentType>
</Elements>

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.ContentType" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Target="Legislation\" Type="ElementManifest" />
</Files>
</ProjectItem>

Просмотреть файл

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<Solution xmlns="http://schemas.microsoft.com/sharepoint/">
</Solution>

Просмотреть файл

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<package dslVersion="1.0.0.0"
Id="b4f11268-da3a-479f-92da-2135831fcb18"
solutionId="b4f11268-da3a-479f-92da-2135831fcb18"
xmlns="http://schemas.microsoft.com/VisualStudio/2008/SharePointTools/PackageModel"
name="SharePointApp1"
sharePointProductVersion="15.0">
<features>
<featureReference itemId="efd7b186-2303-4274-bc50-e2865726bea9" />
</features>
</package>

Просмотреть файл

@ -0,0 +1,114 @@
<%-- The following 4 lines are ASP.NET directives needed when using SharePoint components --%>
<%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~masterurl/default.master" Language="C#" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%-- The markup and script in the following Content element will be placed in the <head> of the page --%>
<asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<link href="../Content/App.css" rel="stylesheet" />
<script type="text/javascript" src="../Scripts/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
<%--<script type="text/javascript" src="/_layouts/15/sp.js"></script>--%>
<!-- Add your CSS styles to the following file -->
<link rel="Stylesheet" type="text/css" href="../Content/kendo.common-office365.min.css" />
<link rel="Stylesheet" type="text/css" href="../Content/kendo.office365.min.css" />
<link rel="Stylesheet" type="text/css" href="../Content/kendo.dataviz.min.css" />
<link rel="Stylesheet" type="text/css" href="../Content/kendo.dataviz.office365.min.css" />
<!-- Add your JavaScript to the following file -->
<script type="text/javascript" src="../Scripts/utils.js"></script>
<script type="text/javascript" src="../Scripts/app.js"></script>
<script type="text/javascript" src="../Scripts/kendo.all.min.js"></script>
</asp:Content>
<%-- The markup in the following Content element will be placed in the TitleArea of the page --%>
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
</asp:Content>
<%-- The markup and script in the following Content element will be placed in the <body> of the page --%>
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
<div id="sidebar">
<img src="../Images/180.png" alt="Avatar" />
<span id="employee-name">Margaret Peacock</span>
<div>
<h3 class="subtitle">Remaining days</h3>
<span id="remaining-days"></span>
<ul class="remaining-by-type">
<li class="vacation">Vacation <span id="vacation-days"></span></li>
<li class="bonus">Bonus <span id="bonus-days"></span></li>
</ul>
</div>
</div>
<div id="right-content">
<div class="left-col">
<h1>My leaves</h1>
<div id="chart-totals"></div>
</div>
<div class="right-col">
<h1>Leaves per month</h1>
<div id="chart"></div>
</div>
<h1>Leaves Schedule</h1>
<div class="scheduler-header">
<a href="#" id="new-request" class="action-button">new leave request</a>
<div class="team-picker">
Select a team: <select id="dropdown"></select>
</div>
</div>
<div id="scheduler"></div>
</div>
<script type="text/x-kendo-template" id="detail-template">
<img src="#:data.assignee.avatar_url#" alt="" style="width:20px;height:20px; border-radius:10px" />
<span>#:data.title#</span><br />
<span>\\##:data.number#</span><br />
<span>Opened: #:calculateDays(data.created_at)# by #:data.user.login#</span><br />
Tags: <span>#:getLabels(data.labels)# </span>
</script>
<script id="customEditorTemplate" type="text/x-kendo-template">
<div class="k-edit-label"><label for="name">Name: </label></div>
<div data-container-for="name" class="k-edit-field">
<input type="text" class="k-input k-textbox" name="name" required="required" data-bind="value:person">
</div>
<div class="k-edit-label">
<label for="start">Start: </label>
</div>
<div data-container-for="start" class="k-edit-field">
<input type="text"
data-role="datepicker"
data-type="date"
data-bind="value:start"
name="start"/>
</div>
<div class="k-edit-label">
<label for="end">End: </label>
</div>
<div data-container-for="end" class="k-edit-field">
<input type="text"
data-role="datepicker"
data-type="date"
data-bind="value:end"
name="end"/>
</div>
<div class="k-edit-label"><label for="vacationType">Vacation Type</label></div>
<div data-container-for="vacationType" class="k-edit-field">
<select id="vacationType" data-bind="value:vacationType" data-role="dropdownlist">
<option value="1">Vacation</option>
<option value="2">Bonus</option>
</select>
</div>
</script>
</asp:Content>

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Pages">
<File Path="Pages\Default.aspx" Url="Pages/Default.aspx" ReplaceContent="TRUE" />
</Module>
</Elements>

Просмотреть файл

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Target="Pages\" Type="ElementManifest" />
<ProjectItemFile Source="Default.aspx" Target="Pages\" Type="ElementFile" />
</Files>
</ProjectItem>

Просмотреть файл

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Scripts">
<File Path="Scripts\App.js" Url="Scripts/App.js" ReplaceContent="TRUE" />
<File Path="Scripts\jquery-1.10.2.min.map" Url="Scripts/jquery-1.10.2.min.map" ReplaceContent="TRUE" />
<File Path="Scripts\jquery-1.10.2.min.js" Url="Scripts/jquery-1.10.2.min.js" ReplaceContent="TRUE" />
<File Path="Scripts\jquery-1.10.2.js" Url="Scripts/jquery-1.10.2.js" ReplaceContent="TRUE" />
<File Path="Scripts\jquery-1.10.2.intellisense.js" Url="Scripts/jquery-1.10.2.intellisense.js" ReplaceContent="TRUE" />
<File Path="Scripts\kendo.all.min.js" Url="Scripts/kendo.all.min.js" ReplaceContent="TRUE" />
<File Path="Scripts\grid.js" Url="Scripts/grid.js" ReplaceContent="TRUE" />
<File Path="Scripts\utils.js" Url="Scripts/utils.js" ReplaceContent="TRUE" />
</Module>
</Elements>

Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Target="Scripts\" Type="ElementManifest" />
<ProjectItemFile Source="app.js" Target="Scripts\" Type="ElementFile" />
<ProjectItemFile Source="jquery-1.10.2.min.map" Target="Scripts\" Type="ElementFile" />
<ProjectItemFile Source="jquery-1.10.2.min.js" Target="Scripts\" Type="ElementFile" />
<ProjectItemFile Source="jquery-1.10.2.js" Target="Scripts\" Type="ElementFile" />
<ProjectItemFile Source="jquery-1.10.2.intellisense.js" Target="Scripts\" Type="ElementFile" />
<ProjectItemFile Source="kendo.all.min.js" Target="Scripts\" Type="ElementFile" />
<ProjectItemFile Source="grid.js" Target="Scripts\" Type="ElementFile" />
<ProjectItemFile Source="utils.js" Target="Scripts\" Type="ElementFile" />
</Files>
</ProjectItem>

Просмотреть файл

@ -0,0 +1,7 @@
/// <reference path="jquery-1.10.2.js" />
/// <reference name="MicrosoftAjax.js" />
/// <reference path="~/_layouts/15/init.js" />
/// <reference path="~/_layouts/15/SP.Core.js" />
/// <reference path="~/_layouts/15/SP.Runtime.js" />
/// <reference path="~/_layouts/15/SP.UI.Dialog.js" />
/// <reference path="~/_layouts/15/SP.js" />

Просмотреть файл

@ -0,0 +1,373 @@
$(document).ready(function () {
var origin = document.location.origin;
var leavesUrl = "/KendoUI/_api/web/lists/GetByTitle('Leaves')/items";
var teamsUrl = "/KendoUI/_api/web/lists/GetByTitle('Teams')/items";
var username = null;
var teamId = null
var user = null;
var employeeId = null;
$.ajax({
url: origin + "/KendoUI/_api/web/lists/GetByTitle('Leaves')/items?$filter=substringof('Margaret Peacock',Person)",
dataType: "json",
headers: {
"accept": "application/json; odata=verbose"
},
success: function (data) {
username = data.d.results[0].Person;
teamId = data.d.results[0].TeamID;
user = data.d.results[0];
employeeId = data.d.results[0].EmployeeID;
init();
}
})
updateLogo();
function init() {
initChart();
initScheduler();
$("#new-request").on("click", function () {
var scheduler = $("#scheduler").data("kendoScheduler");
scheduler.addEvent();
})
$("#dropdown").kendoDropDownList({
change: function () {
var value = parseInt(this.value())
var scheduler = $("#scheduler").data("kendoScheduler");
scheduler.dataSource.filter({ field: "teamId", operator: "eq", value: value });
scheduler.resources[0].dataSource.filter({ field: "teamId", operator: "eq", value: value });
scheduler.view(scheduler.view().name);
},
dataSource: {
schema: {
data: function (data) {
return data.d.results
}
},
transport: {
read: {
dataType: "json",
headers: {
"accept": "application/json; odata=verbose"
},
url: origin + teamsUrl
}
}
},
dataTextField: "Team",
dataValueField: "TeamID"
})
}
function initScheduler() {
$("#scheduler").kendoScheduler({
dataBound: onSchedulerDataBound,
save: redrawCharts,
remove: redrawCharts,
date: new Date(),
views: [{
type: "timelineMonth",
selected: true,
columnWidth: 20,
eventHeight: 50,
workDayStart: new Date("2001/01/01 00:00"),
workDayEnd: new Date("2001/01/01 23:59")
}, "month", "day", "week" ],
eventTemplate: function (data) {
return data.person
},
groupHeaderTemplate: function (data) {
var jobTitle = getJobTitle(data.value);
return "<div class='employee-card'><img class='employee-photo' src='https://demos.telerik.com/aspnet-mvc/html5-dashboard-sample-app/content/employees/" + data.value + ".png' /><span class='employee-name'>" + data.text + "</span><span class='employee-jobtitle'>" + jobTitle + "</span></div>"
},
editable: {
template: $("#customEditorTemplate").html(),
},
dateHeaderTemplate: function (data) {
return data.date.getDate();
},
group: {
resources: ["employeeId"],
orientation: "vertical"
},
dataSource: {
filter: {
field: "teamId",
operator: "eq",
value: 1
},
schema: {
model: {
id: "Id",
fields: {
title: { from: "EventTitle" },
employeeId: { from: "EmployeeID", defaultValue: employeeId },
start: { type: "date", from: "StartTime", defaultValue: new Date() },
end: { type: "date", from: "EndTime", defaultValue: new Date() },
isAllDay: { type: "boolean", from: "AllDay", defaultValue: true },
person: { from: "Person", defaultValue: username },
team: { from: "Team", defaultValue: "Kendo UI" },
teamId: { from: "TeamID", defaultValue: teamId },
vacationType: { from: "VacationType", defaultValue: 1 }
}
},
data: function (data) {
return data.d && data.d.results ? data.d.results : [data.d];
}
},
transport: {
parameterMap: function (data, type) {
if (type != "read") {
return kendo.stringify({
EventTitle: data.EventTitle,
StartTime: data.StartTime,
EndTime: data.EndTime,
Team: data.Team,
TeamID: data.TeamID,
Person: data.Person,
VacationType: data.VacationType,
EmployeeID: data.EmployeeID,
Id: type != "create" ? data.Id : undefined,
__metadata: type == "create" ? { type: GetItemTypeForListName("Leaves") } : undefined
});
}
return kendo.data.transports["odata"].parameterMap.apply(this, arguments);
},
read: {
dataType: "json",
headers: {
"accept": "application/json; odata=verbose"
},
url: origin + leavesUrl
},
create: {
headers: {
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
"accept": "application/json; odata=verbose"
},
type: "POST",
contentType: "application/json;odata=verbose",
url: origin + leavesUrl
},
update: {
headers: {
"accept": "application/json; odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
"X-HTTP-Method": "MERGE",
"If-Match": "*"
},
contentType: "application/json; charset=utf-8",
type: "POST",
url: function (model) {
return origin + leavesUrl + "(" + model.Id + ")"
}
},
destroy: {
headers: {
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
"X-Http-Method": "DELETE",
"If-Match": "*"
},
type: "POST",
url: function (model) {
return origin + leavesUrl + "(" + model.Id + ")"
}
}
}
},
resources: [
{
field: "employeeId",
dataSource: {
data: [
{ value: 1, teamId: 1, text: "Margaret Peacock", color: "#e03163" },
{ value: 2, teamId: 1, text: "Steven Buchanan", color: "#6544b4" },
{ value: 3, teamId: 1, text: "Michael Suyama", color: "#3a97f1" },
{ value: 4, teamId: 1, text: "Robert King", color: "#3abad2" },
{ value: 5, teamId: 1, text: "Laura Callahan", color: "#59ab54" },
{ value: 6, teamId: 2, text: "Anne Dodsworth", color: "#cdd846" },
{ value: 7, teamId: 2, text: "Janet Leverling", color: "#f6cb32" },
{ value: 8, teamId: 2, text: "Andrew Fuller", color: "#f75b2c" },
{ value: 9, teamId: 2, text: "Nancy Davolio", color: "#af2923" }
],
filter: { field: "teamId", operator: "eq", value: 1 }
},
title: "Person",
name: "employeeId"
}
]
})
}
function initChart() {
$("#chart").kendoChart({
dataSource: {
group: {
field: "type"
},
transport: {
read: {
url: origin + "/KendoUI/_api/web/lists/GetByTitle('Leaves')/items?$filter=substringof('Margaret Peacock',Person)",
dataType: "json",
headers: {
"accept": "application/json; odata=verbose"
}
}
},
schema: {
parse: function (response) {
var result = [];
for (var i = 0; i < response.d.results.length; i++) {
var item = {};
var date = new Date(response.d.results[i].StartTime);
date.setHours(0, 0, 0, 0);
date.setDate(1);
item.type = response.d.results[i].VacationType;
item.month = date
item.days = Math.floor((Date.parse(response.d.results[i].EndTime) - Date.parse(response.d.results[i].StartTime)) / 86400000) + 1;
result.push(item);
}
return result
}
}
},
chartArea: {
background: "transparent"
},
seriesColors: ["#0072c6", "#ec236a"],
series: [{
stack: true,
field: "days",
categoryField: "month",
gap: 0.2,
spacing: 0,
overlay: {
gradient: "none"
}
}],
valueAxis: [{
labels: {
format: "{0}"
},
line: {
visible: false
},
majorTicks: {
visible: false
}
}],
categoryAxis: [{
majorTicks: {
visible: false
},
labels: {
format: "{0:MMM}"
},
min: new Date("2015/01/01"),
max: new Date("2015/12/01")
}],
legend: {
visible: false
},
tooltip: {
visible: true,
template: "#:kendo.toString(category, 'MMM')#: #:value# day#:value > 1 ? 's': ''# off"
}
})
$.ajax({
url: origin + "/KendoUI/_api/web/lists/GetByTitle('Leaves')/items?$filter=substringof('Margaret Peacock',Person)",
dataType: "json",
headers: {
"accept": "application/json; odata=verbose"
},
success: function (data) {
var data = parseLeavesData(data.d.results);
initLeavesChart(data);
}
})
}
function initLeavesChart(data) {
$("#chart-totals").kendoChart({
legend: {
visible: false
},
chartArea: {
background: "transparent"
},
seriesColors: ["#0072c6", "#ec236a"],
seriesDefaults: {
type: "bar",
stack: true,
overlay: {
gradient: "none"
}
},
series: [{
name: "Paid",
data: [data.paidTotal, data.paidUsed, data.paidLeft]
}, {
name: "Bonus",
data: [data.bonusTotal, data.bonusUsed, data.bonusLeft]
}],
valueAxis: {
labels: {
format: "{0}"
},
line: {
visible: false
},
majorTicks: {
visible: false
}
},
categoryAxis: {
categories: ["Entitled", "Used", "Remaining"],
majorTicks: {
visible: false
},
line: {
visible: false
}
},
tooltip: {
visible: true,
format: "{0}%",
template: "#= series.name #: #= value #"
}
});
}
function onSchedulerDataBound(e) {
var data = this.dataSource.data();
var days = 0;
var remaining = 0;
var vacation = 0;
var bonus = 0;
for (var i = 0; i < data.length; i++) {
if (data[i].employeeId == employeeId) {
var from = new Date(data[i].start);
var to = new Date(data[i].end);
if (data[i].vacationType == 1) {
vacation += calculateWorkDays(from, to);
} else {
bonus += calculateWorkDays(from, to);
}
}
}
remaining = user.VacationDays + user.BonusDays - (vacation + bonus);
$("#remaining-days").html(remaining + " days left");
setDaysTotal(user.VacationDays - vacation, user.BonusDays - bonus);
}
function redrawCharts() {
$("#chart").data("kendoChart").dataSource.read();
$("#chart-totals").data("kendoChart").dataSource.read();
}
});

Просмотреть файл

@ -0,0 +1,77 @@
function initGrid() {
$("#grid").kendoGrid({
toolbar: ["add"],
editable: "popup",
columns: [
{ field: "FirstName" },
{ field: "FullName" },
{ field: "Twitter" },
{ command: ["edit", "destroy"] }
],
filterable: true,
sortable: true,
pageable: true,
dataSource: {
serverFiltering: true,
serverSprting: true,
type: "odata",
schema: {
model: {
id: "Id"
},
data: function (data) {
return data.d && data.d.results ? data.d.results : [];
}
},
transport: {
parameterMap: function (data, type) {
if (type != "read") {
return kendo.stringify({
FirstName: data.FirstName,
FullName: data.FullName,
Twitter: data.Twitter,
Id: type != "create" ? data.Id : undefined
});
}
return kendo.data.transports["odata"].parameterMap.apply(this, arguments);
},
read: {
dataType: "json",
headers: {
"accept": "application/json; odata=verbose"
},
url: origin + "/SPGrid2/_api/web/lists/GetByTitle('MyList')/items"
},
update: {
headers: {
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
"X-HTTP-Method": "MERGE",
"If-Match": "*"
},
type: "POST",
url: function (model) {
return origin + "/SPGrid2/_api/web/lists/GetByTitle('MyList')/items(" + model.Id + ")"
}
},
create: {
headers: {
"X-RequestDigest": $("#__REQUESTDIGEST").val()
},
type: "POST",
url: origin + "/SPGrid2/_api/web/lists/GetByTitle('MyList')/items"
},
destroy: {
headers: {
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
"X-Http-Method": "DELETE",
"If-Match": "*"
},
type: "POST",
url: function (model) {
return origin + "/SPGrid2/_api/web/lists/GetByTitle('MyList')/items(" + model.Id + ")"
}
}
}
}
})
}

2671
KendoUISharepoint/Scripts/jquery-1.10.2.intellisense.js поставляемый Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу

9803
KendoUISharepoint/Scripts/jquery-1.10.2.js поставляемый Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу

23
KendoUISharepoint/Scripts/jquery-1.10.2.min.js поставляемый Normal file

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

164684
KendoUISharepoint/Scripts/kendo.all.min.js поставляемый Normal file

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,87 @@
function calculateWorkDays(from, to) {
var total = 1;
while (from.getDate() !== to.getDate()) {
if (from.getDay() !== 6 && from.getDay() !== 0) {
total++;
}
from.setDate(from.getDate() + 1);
}
return total;
}
function getJobTitle(id) {
var data = ["Sales Representative", "Sales Manager", "Sales Representative", "Sales Representative", "Inside Sales Coordinator", "Sales Representative", "Sales Representative", "Vice President", "Sales Representative"];
return data[id]
}
function initLoginFailed() {
alert("Did not authenticate");
}
function parseLeavesData(data) {
var result = {};
var paidUsed = 0;
var bonusUsed = 0;
for (var i = 0; i < data.length; i++) {
if (data[i].VacationType == 1) {
paidUsed += calculateWorkDays(new Date(data[i].StartTime), new Date(data[i].EndTime))
} else {
bonusUsed += calculateWorkDays(new Date(data[i].StartTime), new Date(data[i].EndTime))
}
}
result.paidTotal = data[0].VacationDays;
result.paidUsed = paidUsed;
result.paidLeft = result.paidTotal - result.paidUsed;
result.bonusTotal = data[0].BonusDays;
result.bonusUsed = bonusUsed;
result.bonusLeft = result.bonusTotal - result.bonusUsed;
setDaysTotal(result.paidLeft, result.bonusLeft);
return result;
}
function setDaysTotal(paidLeft, bonusLeft) {
if (paidLeft == 1) {
$("#vacation-days").html(paidLeft + " days left");
} else {
$("#vacation-days").html(paidLeft + " days left");
}
if (bonusLeft == 1) {
$("#bonus-days").html(bonusLeft + " day left");
} else {
$("#bonus-days").html(bonusLeft + " days left");
}
}
function columnTemplate(dataItem) {
if (dataItem.assignee) {
return dataItem.assignee.login
} else {
return "unassigned"
}
}
function GetItemTypeForListName(name) {
return "SP.Data." + name.charAt(0).toUpperCase() + name.slice(1) + "ListItem";
}
function assigneeTemplate(data) {
if (data.assignee) {
return "<img src=" + data.assignee.avatar_url + " style='width:20px; height:20px; border-radius:10px'/> " + data.assignee.login;
} else {
return "unassigned"
}
}
function authorTemplate(data) {
return data.user.login;
}
function updateLogo() {
$("#ctl00_onetidHeadbnnr2").attr("src", "../Images/180x64.png");
}

Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Do not change the value of the Name attribute below. If it does not match the folder name of the List project item, an error will occur when the project is run. -->
<ListTemplate
Name="Teams"
Type="10000"
BaseType="0"
OnQuickLaunch="TRUE"
SecurityBits="11"
Sequence="410"
DisplayName="Teams"
Description="My List Definition"
Image="/_layouts/15/images/itgen.png"/>
</Elements>

Просмотреть файл

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<List xmlns:ows="Microsoft SharePoint" Title="Teams" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/Teams" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">
<MetaData>
<ContentTypes>
<ContentType ID="0x01002557193f886a476ea7ae7158e06115cf" Name="ListFieldsContentType"><FieldRefs><FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" /><FieldRef ID="{c0e42980-0d45-4c41-80c6-f02f5f28806f}" Name="Team" /><FieldRef ID="{e949369f-cae7-4cfc-ac04-f9802f4a39a3}" Name="TeamID" /></FieldRefs></ContentType><ContentTypeRef ID="0x01">
<Folder TargetName="Item" />
</ContentTypeRef><ContentTypeRef ID="0x0120" /></ContentTypes>
<Fields>
<Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="$Resources:core,Title;" Required="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" MaxLength="255" /><Field Name="Team" ID="{c0e42980-0d45-4c41-80c6-f02f5f28806f}" DisplayName="Team" Type="Text" /><Field Name="TeamID" ID="{e949369f-cae7-4cfc-ac04-f9802f4a39a3}" DisplayName="TeamID" Type="Text" /></Fields>
<Views>
<View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="LinkTitleNoMenu"></FieldRef></ViewFields>
<Query>
<OrderBy>
<FieldRef Name="Modified" Ascending="FALSE"></FieldRef></OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />
</ParameterBindings>
</View><View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/15/images/generic.png?rev=23" Url="AllItems.aspx">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<JSLink>clienttemplates.js</JSLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="LinkTitle"></FieldRef><FieldRef Name="Team" /><FieldRef Name="TeamID" /></ViewFields>
<Query>
<OrderBy>
<FieldRef Name="ID"></FieldRef></OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
</ParameterBindings>
</View></Views>
<Forms>
<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
</Forms>
</MetaData>
</List>

Просмотреть файл

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.ListDefinition" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Target="Teams\" Type="ElementManifest" />
<ProjectItemFile Source="Schema.xml" Target="Teams\" Type="ElementFile" />
</Files>
<ExtensionData>
<ExtensionDataItem Key="Microsoft.VisualStudio.SharePoint.ListSettings.ListFieldsContentTypeID" Value="0x01002557193f886a476ea7ae7158e06115cf" />
</ExtensionData>
</ProjectItem>

Просмотреть файл

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListInstance Title="Teams" OnQuickLaunch="TRUE" TemplateType="10000" Url="Lists/Teams" Description="My List Instance">
<Data>
<Rows>
<Row>
<Field Name="Team">Kendo UI</Field>
<Field Name="TeamID">1</Field>
</Row>
<Row>
<Field Name="Team">Sitefinity</Field>
<Field Name="TeamID">2</Field>
</Row>
</Rows>
</Data>
</ListInstance>
</Elements>

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.ListInstance" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Target="TeamsInstance\" Type="ElementManifest" />
</Files>
</ProjectItem>

Двоичные данные
KendoUISharepoint/UpgradeLog.htm Normal file

Двоичный файл не отображается.

Двоичные данные
KendoUISharepoint/bin/Debug/KendoUISharepoint.debugapp Normal file

Двоичный файл не отображается.

Двоичные данные
KendoUISharepoint/bin/Debug/KendoUISharepoint.pdb Normal file

Двоичный файл не отображается.

Двоичные данные
KendoUISharepoint/bin/Debug/SharePointApp1.debugapp Normal file

Двоичный файл не отображается.

Двоичные данные
KendoUISharepoint/bin/Debug/SharePointApp1.pdb Normal file

Двоичный файл не отображается.

Двоичные данные
KendoUISharepoint/bin/Debug/SharePointApp1.wsp Normal file

Двоичный файл не отображается.

Двоичные данные
KendoUISharepoint/bin/Debug/app.publish/1.0.0.0/SharePointApp1.app Normal file

Двоичный файл не отображается.

Двоичный файл не отображается.

Двоичный файл не отображается.

Просмотреть файл

Просмотреть файл

@ -0,0 +1 @@
C:\Users\knnikolov\Downloads\SharePointApp1\KendoUISharepoint\bin\Debug\KendoUISharepoint.debugapp

Просмотреть файл

@ -0,0 +1,9 @@
C:\Users\knnikolov\Downloads\SharePointApp1\KendoUISharepointApp\bin\Debug\SharePointApp1.pdb
C:\Users\knnikolov\Downloads\SharePointApp1\KendoUISharepointApp\obj\Debug\SharePointApp1.dll
C:\Users\knnikolov\Downloads\SharePointApp1\KendoUISharepointApp\obj\Debug\SharePointApp1.pdb
C:\Users\knnikolov\Downloads\SharePointApp1\KendoUISharepoint\bin\Debug\KendoUISharepoint.pdb
C:\Users\knnikolov\Downloads\SharePointApp1\KendoUISharepoint\obj\Debug\KendoUISharepoint.dll
C:\Users\knnikolov\Downloads\SharePointApp1\KendoUISharepoint\obj\Debug\KendoUISharepoint.pdb
C:\Work\sharepoint-demo\KendoUISharepoint\KendoUISharepoint\bin\Debug\KendoUISharepoint.pdb
C:\Work\sharepoint-demo\KendoUISharepoint\KendoUISharepoint\obj\Debug\KendoUISharepoint.dll
C:\Work\sharepoint-demo\KendoUISharepoint\KendoUISharepoint\obj\Debug\KendoUISharepoint.pdb

Просмотреть файл

@ -0,0 +1 @@
True

Просмотреть файл

@ -0,0 +1 @@
False

Просмотреть файл

@ -0,0 +1 @@
bin\Debug\SharePointApp1.wsp

Просмотреть файл

Двоичные данные
KendoUISharepoint/obj/Debug/KendoUISharepoint.dll Normal file

Двоичный файл не отображается.

Двоичные данные
KendoUISharepoint/obj/Debug/KendoUISharepoint.pdb Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1 @@
C:\Users\knnikolov\Downloads\SharePointApp1\SharePointApp1\bin\Debug\app.publish\1.0.0.0\SharePointApp1.app

Просмотреть файл

Просмотреть файл

@ -0,0 +1 @@
C:\Work\tutorial\SharePointApp1\SharePointApp1\bin\Debug\SharePointApp1.debugapp

Просмотреть файл

@ -0,0 +1,8 @@
C:\Users\knnikolov\Downloads\SharePointApp1\SharePointApp1\bin\Debug\SharePointApp1.pdb
C:\Users\knnikolov\Downloads\SharePointApp1\SharePointApp1\obj\Debug\SharePointApp1.dll
C:\Users\knnikolov\Downloads\SharePointApp1\SharePointApp1\obj\Debug\SharePointApp1.pdb
C:\Users\knnikolov\Downloads\SharePointApp1\SharePointApp1\obj\Debug\SharePointApp1.csprojResolveAssemblyReference.cache
C:\Work\tutorial\SharePointApp1\SharePointApp1\bin\Debug\SharePointApp1.pdb
C:\Work\tutorial\SharePointApp1\SharePointApp1\obj\Debug\SharePointApp1.csprojResolveAssemblyReference.cache
C:\Work\tutorial\SharePointApp1\SharePointApp1\obj\Debug\SharePointApp1.dll
C:\Work\tutorial\SharePointApp1\SharePointApp1\obj\Debug\SharePointApp1.pdb

Просмотреть файл

@ -0,0 +1 @@
True

Просмотреть файл

@ -0,0 +1 @@
False

Просмотреть файл

@ -0,0 +1 @@
bin\Debug\SharePointApp1.wsp

Просмотреть файл

Просмотреть файл

Двоичный файл не отображается.

Двоичные данные
KendoUISharepoint/obj/Debug/SharePointApp1.dll Normal file

Двоичный файл не отображается.

Двоичные данные
KendoUISharepoint/obj/Debug/SharePointApp1.pdb Normal file

Двоичный файл не отображается.

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="jQuery" version="1.10.2" targetFramework="net45" />
</packages>

Просмотреть файл

@ -0,0 +1,210 @@
#sidebar {
float:left;
width: 180px;
position: relative;
}
#right-content {
position: absolute;
left: 220px;
right: 20px;
}
.k-scheduler-layout > tbody > tr:first-child .k-scheduler-times tr + tr, .k-scheduler-header tr + tr {
display:none;
}
#employee-name {
display: block;
position: absolute;
top: 180px;
left: 0px;
box-sizing: border-box;
width: 180px;
padding: 0 15px;
height: 40px;
line-height: 40px;
font-size: 14px;
color: #ffffff;
background-color: rgba(0,0,0,.45);
text-overflow: ellipsis;
}
.subtitle {
font-size: 11px;
font-weight: 500;
text-transform: uppercase;
color: #666666;
margin: 0;
padding: 15px 0 0;
}
#remaining-days {
font-size: 32px;
font-weight: normal;
color: #333333;
}
ul.remaining-by-type {
margin: 10px 0 0;
padding: 10px 0 0;
list-style-type: none;
border-top: 1px solid #e3e3e3;
}
ul.remaining-by-type li {
display: block;
position: relative;
padding: 0 0 0 18px;
font-size: 12px;
line-height: 22px;
height: 22px;
}
ul.remaining-by-type li:after {
display: block;
content: " ";
position: absolute;
left: 0;
top: 50%;
margin-top: -6px;
width: 12px;
height: 12px;
border-radius: 50%;
background-color: #0072c6;
}
ul.remaining-by-type li.bonus:after {
background-color: #ec236a;
}
ul.remaining-by-type li span {
display: block;
float: right;
text-align: right;
font-weight: bold;
color: #333333;
}
.scheduler-header:after {
display: block;
clear: both;
content: " ";
height: 0;
line-height: 0;
}
.scheduler-header {
padding: 15px 0;
}
h1 {
margin: -10px 0 0;
padding: 0;
}
.team-picker {
float: right;
line-height: 28px;
vertical-align: bottom;
}
.action-button {
display: block;
float: left;
font-size: 20px;
padding-left: 20px;
position: relative;
color: #0072c6;
}
.action-button:after {
display: block;
position: absolute;
content: " ";
left: 0;
top: 9px;
width: 16px;
height: 16px;
background: url(/_layouts/15/images/spcommon.png) no-repeat -233px -138px;
}
.action-button:hover {
text-decoration: none;
color: #004d85;
}
.action-button:hover:after {
background: url(/_layouts/15/images/spcommon.png) no-repeat -233px -120px;
}
.employee-card {
position: relative;
height: 70px;
width: 205px;
}
.employee-photo {
position: absolute;
left: 10px;
top: 10px;
width: 50px;
height: 50px;
border-radius: 50%;
}
.employee-name {
display: block;
position: absolute;
left: 70px;
top: 18px;
font-size: 14px;
color: #333333;
}
.employee-jobtitle {
display: block;
position: absolute;
left: 70px;
top: 38px;
font-size: 9px;
text-transform: uppercase;
color: #787878;
}
.k-scheduler-monthview .k-scheduler-table td,
.k-scheduler-monthview .k-hidden {
height: 55px;
}
.k-edit-form-container .k-button:visited {
color: #333;
}
.k-edit-form-container .k-button.k-primary:visited {
color: #fff;
}
.k-nav-current>.k-link span+span {
vertical-align: bottom;
}
#chart,
#chart-totals {
height: 180px;
margin-top: 15px;
}
.left-col,
.right-col {
display: inline-block;
width: 30%;
box-sizing: border-box;
padding: 0 20px 30px 0;
}
.right-col {
width: 69.5%;
padding: 0 0 30px 0;
}
#ctl00_PlaceHolderSiteName_onetidProjectPropertyTitle {
font-size:42px;
text-decoration:none;
}

Просмотреть файл

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Content">
<File Path="Content\App.css" Url="Content/App.css" ReplaceContent="TRUE" />
<File Path="Content\Office365\sprite.png" Url="Content/Office365/sprite.png" ReplaceContent="TRUE" />
<File Path="Content\kendo.dataviz.min.css" Url="Content/kendo.dataviz.min.css" ReplaceContent="TRUE" />
<File Path="Content\kendo.dataviz.office365.min.css" Url="Content/kendo.dataviz.office365.min.css" ReplaceContent="TRUE" />
<File Path="Content\kendo.office365.min.css" Url="Content/kendo.office365.min.css" ReplaceContent="TRUE" />
<File Path="Content\kendo.common-office365.min.css" Url="Content/kendo.common-office365.min.css" ReplaceContent="TRUE" />
<File Path="Content\Office365\loading.gif" Url="Content/Office365/loading.gif" ReplaceContent="TRUE" />
</Module>
</Elements>

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 557 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 16 KiB

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1 @@
.k-chart .k-mask{background-color:#fff;filter:alpha(opacity=68);-moz-opacity:.68;opacity:.68}.k-chart .k-selection{border-color:#e5e5e5}.k-chart .k-handle{width:15px;height:15px;background-color:#00b0ff;-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}.k-chart .k-leftHandle{left:-8px}.k-chart .k-rightHandle{right:-8px}.k-chart .k-handle:hover{background-color:#00b0ff;border-color:#00b0ff}.k-chart .k-navigator-hint .k-tooltip{border:3px solid #fff;-moz-box-shadow:0 0 0 3px rgba(0,0,0,0.2);-webkit-box-shadow:0 0 0 3px rgba(0,0,0,0.2);box-shadow:0 0 0 3px rgba(0,0,0,0.2);background:#fff;color:#242424}.k-chart .k-navigator-hint .k-scroll{background:#3f51b5;height:4px}.k-chart-tooltip{background-image:none}.k-map .k-marker{background-image:url("Default/markers.png")}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){.k-map .k-marker{background-image:url("Default/markers_2x.png")}}.k-map .k-attribution{color:#666}

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Description="SharePoint App Feature" Id="efd7b186-2303-4274-bc50-e2865726bea9" Scope="Web" Title="SharePointApp1 Feature1" Version="1.0.0.0">
<ElementManifests>
<ElementManifest Location="Pages\Elements.xml" />
<ElementFile Location="Pages\Default.aspx" />
<ElementManifest Location="Scripts\Elements.xml" />
<ElementFile Location="Scripts\app.js" />
<ElementFile Location="Scripts\jquery-1.10.2.min.map" />
<ElementFile Location="Scripts\jquery-1.10.2.min.js" />
<ElementFile Location="Scripts\jquery-1.10.2.js" />
<ElementFile Location="Scripts\jquery-1.10.2.intellisense.js" />
<ElementFile Location="Scripts\kendo.all.min.js" />
<ElementFile Location="Scripts\grid.js" />
<ElementFile Location="Scripts\utils.js" />
<ElementManifest Location="Content\Elements.xml" />
<ElementFile Location="Content\App.css" />
<ElementFile Location="Content\Office365\sprite.png" />
<ElementFile Location="Content\kendo.dataviz.min.css" />
<ElementFile Location="Content\kendo.dataviz.office365.min.css" />
<ElementFile Location="Content\kendo.office365.min.css" />
<ElementFile Location="Content\kendo.common-office365.min.css" />
<ElementFile Location="Content\Office365\loading.gif" />
<ElementManifest Location="Images\Elements.xml" />
<ElementFile Location="Images\AppIcon.png" />
<ElementFile Location="Images\180x64.png" />
<ElementFile Location="Images\180.png" />
<ElementManifest Location="LeavesInstance\Elements.xml" />
<ElementManifest Location="Leaves\Elements.xml" />
<ElementFile Location="Leaves\Schema.xml" />
<ElementManifest Location="TeamsInstance\Elements.xml" />
<ElementManifest Location="Teams\Elements.xml" />
<ElementFile Location="Teams\Schema.xml" />
</ElementManifests>
<UpgradeActions>
<VersionRange>
<ApplyElementManifests>
<ElementManifest Location="Pages\Elements.xml" />
<ElementManifest Location="Scripts\Elements.xml" />
<ElementManifest Location="Content\Elements.xml" />
<ElementManifest Location="Images\Elements.xml" />
<ElementManifest Location="LeavesInstance\Elements.xml" />
<ElementManifest Location="Leaves\Elements.xml" />
<ElementManifest Location="TeamsInstance\Elements.xml" />
<ElementManifest Location="Teams\Elements.xml" />
</ApplyElementManifests>
</VersionRange>
</UpgradeActions>
</Feature>

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 60 KiB

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше