3. Доделаны Model and BindingModel
This commit is contained in:
parent
b54b879743
commit
310fb183e1
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace BankContracts.BindingModels
|
||||
{
|
||||
internal class ClientBindingModel : IClientModel
|
||||
public class ClientBindingModel : IClientModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Login { get; set; } = string.Empty;
|
||||
|
16
Bank/BankContracts/BindingModels/DealBindingModel.cs
Normal file
16
Bank/BankContracts/BindingModels/DealBindingModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankContracts.BindingModels
|
||||
{
|
||||
public class DealBindingModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime DateConclusions { get; set; } = DateTime.Now;
|
||||
public DateTime DateClose { get; set; } = DateTime.Now;
|
||||
public int ClientId { get; set; }
|
||||
}
|
||||
}
|
@ -9,5 +9,9 @@ namespace BankContracts.BindingModels
|
||||
{
|
||||
public class ExpensesBindingModel : IExpensesModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public decimal Cost { get; set; }
|
||||
public int WorkerId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankContracts.BindingModels
|
||||
{
|
||||
internal class ExpensesForDealBindingModel
|
||||
{
|
||||
}
|
||||
}
|
12
Bank/BankContracts/BindingModels/OperationsBindingModel.cs
Normal file
12
Bank/BankContracts/BindingModels/OperationsBindingModel.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankContracts.BindingModels
|
||||
{
|
||||
internal class OperationsBindingModel
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankContracts.BindingModels
|
||||
{
|
||||
internal class OperationsInDealBindingModel
|
||||
{
|
||||
}
|
||||
}
|
17
Bank/BankContracts/BindingModels/PaymentBindingModel.cs
Normal file
17
Bank/BankContracts/BindingModels/PaymentBindingModel.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using BankDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankContracts.BindingModels
|
||||
{
|
||||
public class PaymentBindingModel : IPaymentModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public decimal Sum { get; set; }
|
||||
public decimal PaidSum { get; set; }
|
||||
public int OperationsInDealId { get; set; }
|
||||
}
|
||||
}
|
27
Bank/BankDataModels/Models/IDeal.cs
Normal file
27
Bank/BankDataModels/Models/IDeal.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Сделка
|
||||
/// </summary>
|
||||
public interface IDeal : IId
|
||||
{
|
||||
/// <summary>
|
||||
/// дата заключения
|
||||
/// </summary>
|
||||
DateTime DateConclusions { get; }
|
||||
/// <summary>
|
||||
/// дата закрытия
|
||||
/// </summary>
|
||||
DateTime DateClose { get; }
|
||||
/// <summary>
|
||||
/// Клиент id
|
||||
/// </summary>
|
||||
int ClientId { get; }
|
||||
}
|
||||
}
|
12
Bank/BankDataModels/Models/IExpensesForDealModel.cs
Normal file
12
Bank/BankDataModels/Models/IExpensesForDealModel.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
internal class IExpensesForDeal
|
||||
{
|
||||
}
|
||||
}
|
@ -19,6 +19,10 @@ namespace BankDataModels.Models
|
||||
/// <summary>
|
||||
/// Стоимость
|
||||
/// </summary>
|
||||
double Cost { get; }
|
||||
decimal Cost { get; }
|
||||
/// <summary>
|
||||
/// Сотрудник id
|
||||
/// </summary>
|
||||
int WorkerId { get; }
|
||||
}
|
||||
}
|
||||
|
12
Bank/BankDataModels/Models/IOperationsInDealModel.cs
Normal file
12
Bank/BankDataModels/Models/IOperationsInDealModel.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
internal class IOperationsInDealModel
|
||||
{
|
||||
}
|
||||
}
|
12
Bank/BankDataModels/Models/IOperationsModel.cs
Normal file
12
Bank/BankDataModels/Models/IOperationsModel.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
internal class IOperationsModel
|
||||
{
|
||||
}
|
||||
}
|
28
Bank/BankDataModels/Models/IPaymentModel.cs
Normal file
28
Bank/BankDataModels/Models/IPaymentModel.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BankDataModels.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Оплата
|
||||
/// </summary>
|
||||
public interface IPaymentModel : IId
|
||||
{
|
||||
/// <summary>
|
||||
/// Стоимость
|
||||
/// </summary>
|
||||
decimal Sum { get; }
|
||||
/// <summary>
|
||||
/// Оплаченная сумма
|
||||
/// </summary>
|
||||
decimal PaidSum { get; }
|
||||
/// <summary>
|
||||
/// Операции в сделке ID
|
||||
/// </summary>
|
||||
int OperationsInDealId { get; }
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user