Browse Source

first commit

Демин Константин Иванович 4 years ago
commit
1a9654bf10

BIN
.vs/PaymentList/v16/.suo


+ 0 - 0
.vs/PaymentList/v16/Server/sqlite3/db.lock


BIN
.vs/PaymentList/v16/Server/sqlite3/storage.ide


+ 25 - 0
PaymentList.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30621.155
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PaymentList", "PaymentList\PaymentList.csproj", "{260F2100-0B5B-4062-A0DF-DFDE804551A5}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{260F2100-0B5B-4062-A0DF-DFDE804551A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{260F2100-0B5B-4062-A0DF-DFDE804551A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{260F2100-0B5B-4062-A0DF-DFDE804551A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{260F2100-0B5B-4062-A0DF-DFDE804551A5}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {CBB1EB28-D59D-449C-9110-B4A143D96D83}
+	EndGlobalSection
+EndGlobal

+ 10 - 0
PaymentList/App.config

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+  <startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
+  </startup>
+  <appSettings>
+    <add key="provider" value="System.Data.SqlClient"/>
+    <add key="conStr" value="Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=Z:\РКИС\CАМОСТОЯТЕЛЬНАЯ\USERR.MDF;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"/>
+  </appSettings>
+</configuration>

+ 54 - 0
PaymentList/PaymentList.csproj

@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" 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>{260F2100-0B5B-4062-A0DF-DFDE804551A5}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <RootNamespace>PaymentList</RootNamespace>
+    <AssemblyName>PaymentList</AssemblyName>
+    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+    <Deterministic>true</Deterministic>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <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' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <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.Configuration" />
+    <Reference Include="System.Core" />
+    <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="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

+ 59 - 0
PaymentList/Program.cs

@@ -0,0 +1,59 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Configuration;
+ using System.Data.Common;
+
+
+
+namespace UserList1
+
+{
+    class Program
+    {
+        static void Main(string[] args)
+        {
+            string dp = ConfigurationManager.AppSettings["provider"];
+            string cnStr = ConfigurationManager.AppSettings["conStr"];
+            DbProviderFactory df = DbProviderFactories.GetFactory(dp);
+            using (DbConnection cn = df.CreateConnection())
+            {
+                Console.WriteLine("Объект подключения: " + cn.GetType().Name);
+                cn.ConnectionString = cnStr;
+                cn.Open();
+                
+                DbCommand cmd = df.CreateCommand();
+                Console.WriteLine("Объект команды: " + cmd.GetType().Name);
+                cmd.Connection = cn;
+                
+                string strSQL = "Select * From ";
+
+
+                cmd.CommandText = strSQL + "Пользователь";
+                using (DbDataReader dr = cmd.ExecuteReader())
+                {
+                    Console.WriteLine("Объект чтения данных: " + dr.GetType().Name);
+                    Console.WriteLine("\n Cписок пользователей");
+                    while (dr.Read())
+                        Console.WriteLine("-> ID - {0} | FIO -{1} | Login - {2} | Password - {3} | Pincode - {4} ",
+               dr[0], dr[1], dr[2], dr[3], dr[4]);
+                }
+
+                cmd.CommandText = strSQL + "Payments";
+                using (DbDataReader dr = cmd.ExecuteReader())
+                {
+                    Console.WriteLine("Объект чтения данных: " + dr.GetType().Name);
+                    Console.WriteLine("\n Список платежей");
+                    while (dr.Read())
+                        Console.WriteLine("-> ID - {0} | Дата - {1} | Категория - {2} | Наименование платежа - {3} | Количество - {4} | Цена - {5} | Стоимость - {6}",
+                            dr[0], dr[1], dr[2], dr[3], dr[4], dr[5], dr[6]);
+                }
+                
+                Console.ReadLine();
+            }
+        }
+    }
+}
+   

+ 36 - 0
PaymentList/Properties/AssemblyInfo.cs

@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Общие сведения об этой сборке предоставляются следующим набором
+// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
+// связанные с этой сборкой.
+[assembly: AssemblyTitle("PaymentList")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("PaymentList")]
+[assembly: AssemblyCopyright("Copyright ©  2020")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
+// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
+// из модели COM задайте для атрибута ComVisible этого типа значение true.
+[assembly: ComVisible(false)]
+
+// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM
+[assembly: Guid("260f2100-0b5b-4062-a0df-dfde804551a5")]
+
+// Сведения о версии сборки состоят из указанных ниже четырех значений:
+//
+//      Основной номер версии
+//      Дополнительный номер версии
+//      Номер сборки
+//      Номер редакции
+//
+// Можно задать все значения или принять номера сборки и редакции по умолчанию 
+// используя "*", как показано ниже:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

BIN
PaymentList/bin/Debug/PaymentList.exe


+ 10 - 0
PaymentList/bin/Debug/PaymentList.exe.config

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+  <startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
+  </startup>
+  <appSettings>
+    <add key="provider" value="System.Data.SqlClient"/>
+    <add key="conStr" value="Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=Z:\РКИС\CАМОСТОЯТЕЛЬНАЯ\USERR.MDF;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"/>
+  </appSettings>
+</configuration>

BIN
PaymentList/bin/Debug/PaymentList.pdb


+ 4 - 0
PaymentList/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs

@@ -0,0 +1,4 @@
+// <autogenerated />
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

BIN
PaymentList/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


+ 1 - 0
PaymentList/obj/Debug/PaymentList.csproj.CoreCompileInputs.cache

@@ -0,0 +1 @@
+cac4858e9050c6e286bb9f058bbb81961a25835f

+ 14 - 0
PaymentList/obj/Debug/PaymentList.csproj.FileListAbsolute.txt

@@ -0,0 +1,14 @@
+C:\Users\malce\source\repos\ркис\PaymentList\PaymentList\bin\Debug\PaymentList.exe.config
+C:\Users\malce\source\repos\ркис\PaymentList\PaymentList\bin\Debug\PaymentList.exe
+C:\Users\malce\source\repos\ркис\PaymentList\PaymentList\bin\Debug\PaymentList.pdb
+C:\Users\malce\source\repos\ркис\PaymentList\PaymentList\obj\Debug\PaymentList.csprojAssemblyReference.cache
+C:\Users\malce\source\repos\ркис\PaymentList\PaymentList\obj\Debug\PaymentList.csproj.CoreCompileInputs.cache
+C:\Users\malce\source\repos\ркис\PaymentList\PaymentList\obj\Debug\PaymentList.exe
+C:\Users\malce\source\repos\ркис\PaymentList\PaymentList\obj\Debug\PaymentList.pdb
+Z:\РКИС\Cамостоятельная\Платежи\PaymentList\bin\Debug\PaymentList.exe.config
+Z:\РКИС\Cамостоятельная\Платежи\PaymentList\bin\Debug\PaymentList.exe
+Z:\РКИС\Cамостоятельная\Платежи\PaymentList\bin\Debug\PaymentList.pdb
+Z:\РКИС\Cамостоятельная\Платежи\PaymentList\obj\Debug\PaymentList.csprojAssemblyReference.cache
+Z:\РКИС\Cамостоятельная\Платежи\PaymentList\obj\Debug\PaymentList.csproj.CoreCompileInputs.cache
+Z:\РКИС\Cамостоятельная\Платежи\PaymentList\obj\Debug\PaymentList.exe
+Z:\РКИС\Cамостоятельная\Платежи\PaymentList\obj\Debug\PaymentList.pdb

BIN
PaymentList/obj/Debug/PaymentList.csprojAssemblyReference.cache


BIN
PaymentList/obj/Debug/PaymentList.exe


BIN
PaymentList/obj/Debug/PaymentList.pdb


+ 4 - 0
PaymentList/obj/Release/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs

@@ -0,0 +1,4 @@
+// <autogenerated />
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]