-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD Добавлены инструменты для работы с датами.
ADD Добавлены инструменты для работы с электронной почтой. ADD Добавлены инструменты для работы с сущностями. ADD Добавлены инструменты для работы с запросами FetchXML. ADD Добавлены инструменты для работы с файлами. ADD Добавлены инструменты для работы со строками в формате JSON. ADD Добавлены инструменты для работы с полями поиска. ADD Добавлены инструменты для работы с файлами PDF.
- Loading branch information
Showing
81 changed files
with
5,046 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.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>{E06E4993-27E7-43E7-8A41-4C45006723FC}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>PZone.DaDataTools</RootNamespace> | ||
<AssemblyName>PZone.DaDataTools</AssemblyName> | ||
<TargetFrameworkVersion>v4.5.2</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> | ||
<PropertyGroup> | ||
<SignAssembly>true</SignAssembly> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<AssemblyOriginatorKeyFile>PZone.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Microsoft.Crm.Sdk.Proxy, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\..\..\packages\Microsoft.CrmSdk.CoreAssemblies.8.2.0\lib\net45\Microsoft.Crm.Sdk.Proxy.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\..\..\packages\Microsoft.IdentityModel.6.1.7600.16394\lib\net35\Microsoft.IdentityModel.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\..\..\packages\Microsoft.CrmSdk.CoreAssemblies.8.2.0\lib\net45\Microsoft.Xrm.Sdk.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Xrm.Sdk.Workflow, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\..\..\packages\Microsoft.CrmSdk.Workflow.8.2.0.2\lib\net452\Microsoft.Xrm.Sdk.Workflow.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> | ||
<HintPath>..\..\..\packages\Newtonsoft.Json.6.0.5\lib\net45\Newtonsoft.Json.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="PresentationFramework" /> | ||
<Reference Include="PZone.Core"> | ||
<HintPath>..\..\..\..\..\PZone SDK Core\Source\PZone.Core\bin\Debug\PZone.Core.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Activities" /> | ||
<Reference Include="System.Activities.Presentation" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.DirectoryServices" /> | ||
<Reference Include="System.DirectoryServices.AccountManagement" /> | ||
<Reference Include="System.IdentityModel" /> | ||
<Reference Include="System.Runtime.Serialization" /> | ||
<Reference Include="System.Security" /> | ||
<Reference Include="System.ServiceModel" /> | ||
<Reference Include="System.ServiceModel.Web" /> | ||
<Reference Include="System.Web" /> | ||
<Reference Include="System.Workflow.Activities" /> | ||
<Reference Include="System.Workflow.ComponentModel" /> | ||
<Reference Include="System.Workflow.Runtime" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Services\Class1.cs" /> | ||
<Compile Include="Services\Class2.cs" /> | ||
<Compile Include="Workflow\Class1.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="packages.config" /> | ||
<None Include="PZone.snk" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\Common\Common Workflow\Common Workflow.csproj"> | ||
<Project>{284e4b2f-4072-4f7b-8d5f-c91f7108e839}</Project> | ||
<Name>Common Workflow</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\..\..\Common\Common\Common.csproj"> | ||
<Project>{ba975349-739a-4b4f-8003-499e62dea6bc}</Project> | ||
<Name>Common</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<PropertyGroup> | ||
<PostBuildEvent>md "$(TargetDir)Release" | ||
"$(SolutionDir)packages\ILMerge.2.14.1208\tools\ILMerge" /t:library /targetplatform:"v4,C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2" /copyattrs /keyfile:"$(ProjectDir)PZone.snk" /out:"$(TargetDir)Release\$(TargetFileName)" "$(TargetPath)" "$(TargetDir)PZone.Core.dll" "$(TargetDir)PZone.Common.dll" "$(TargetDir)PZone.Common.Workflow.dll"</PostBuildEvent> | ||
</PropertyGroup> | ||
<!-- 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> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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("DaData")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("DaData")] | ||
[assembly: AssemblyCopyright("Copyright © 2017")] | ||
[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("e06e4993-27e7-43e7-8a41-4c45006723fc")] | ||
|
||
// 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")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
//using System; | ||
//using System.IO; | ||
//using System.Net; | ||
//using System.Text; | ||
//using System.Text.RegularExpressions; | ||
//using System.Web; | ||
//using Microsoft.Xrm.Sdk; | ||
//using Newtonsoft.Json; | ||
|
||
|
||
//namespace PZone.DaDataTools.Services | ||
//{ | ||
// public class DaDataService | ||
// { | ||
// /// <summary> | ||
// /// Ссылка на сервис CRM. | ||
// /// </summary> | ||
// protected readonly IOrganizationService Service; | ||
|
||
|
||
// private readonly Lazy<DaDataSettings> _settings; | ||
|
||
|
||
// /// <summary> | ||
// /// Конструтор класса. | ||
// /// </summary> | ||
// /// <param name="service">Ссылка на сервис CRM.</param> | ||
// public DaDataService(IOrganizationService service) | ||
// { | ||
// Service = service; | ||
// _settings = new Lazy<DaDataSettings>(() => new DaDataSettingsService(Service).Retrieve()); | ||
// } | ||
|
||
|
||
// public string RetrieveAddresses(string query, int count) | ||
// { | ||
// query = new Regex(@"[\\""']").Replace(query, ""); | ||
// HttpWebRequest request; | ||
// if (_settings.Value.UseProxy) | ||
// { | ||
// request = WebRequest.CreateHttp($@"{_settings.Value.AddressesUrl}?query={HttpUtility.UrlEncode(query)}&count={count}"); | ||
// request.Method = "GET"; | ||
// if (_settings.Value.UseAuthentication) | ||
// request.UseDefaultCredentials = true; | ||
// } | ||
// else | ||
// { | ||
// var data = JsonConvert.SerializeObject(new { query = query, count = count }); | ||
// var postData = Encoding.UTF8.GetBytes(data); | ||
// request = WebRequest.CreateHttp(_settings.Value.AddressesUrl); | ||
// request.Method = "POST"; | ||
// request.ContentType = "application/json"; | ||
// request.Accept = "application/json"; | ||
// request.Headers.Add(HttpRequestHeader.Authorization, $@"Token {_settings.Value.ApiKey}"); | ||
// request.ContentLength = postData.Length; | ||
// using (var dataStream = request.GetRequestStream()) | ||
// { | ||
// dataStream.Write(postData, 0, postData.Length); | ||
// } | ||
// } | ||
// string json; | ||
// using (var response = request.GetResponse()) | ||
// { | ||
// var responseStream = response.GetResponseStream(); | ||
// if (responseStream == null) | ||
// throw new Exception("Сервис DaData вернул пустой ответ."); | ||
// using (var streamReader = new StreamReader(responseStream)) | ||
// { | ||
// json = streamReader.ReadToEnd(); | ||
// } | ||
// } | ||
// return json; | ||
// } | ||
// } | ||
//} |
Oops, something went wrong.