Files
Crudelis 42bbb17256 기능 추가 및 수정
- DB 기본 기능 수정
- 추가 요금 2000원 수정
- 라이센스 기능 추가
2023-01-11 09:04:41 +09:00

87 lines
2.6 KiB
C#

using System;
using System.Collections.Generic;
namespace Cheongbuk_MegaPark_Key_Management
{
internal static class Setting
{
public static List<RentData> RentDatas = new List<RentData>();
public static List<ProfitData> ProfitDatas = new List<ProfitData>();
public static string DbLocation = "data.sqlite";
public static Dictionary<int, Category> CategoryDictionary = new Dictionary<int, Category>
{
{0, new Category {CategoryProfit = 90000, CategoryName = "종일권"}},
{1, new Category {CategoryProfit = 10000, CategoryName = "1시간권"}},
{2, new Category {CategoryProfit = 18000, CategoryName = "2시간권"}},
{4, new Category {CategoryProfit = 30000, CategoryName = "4시간권"}},
};
public static Dictionary<int, DiscountData> DiscountDatas = new Dictionary<int, DiscountData>
{
{91, new DiscountData {Name = "식사권 할인", Value = 3000}},
{0, new DiscountData {Name = "전액할인", Value = 99999999}},
{1, new DiscountData {Name = "1,000 할인", Value = 1000}},
{2, new DiscountData {Name = "2,000 할인", Value = 2000}},
{3, new DiscountData {Name = "3,000 할인", Value = 3000}},
{4, new DiscountData {Name = "4,000 할인", Value = 4000}},
{5, new DiscountData {Name = "5,000 할인", Value = 5000}}
};
public static int OverTime = 10;
public static int OverAmount = 2000;
}
public struct ChargesStruct
{
public int Code;
public string ChargesName;
public int ChargesValue;
public bool OverTeim;
// 오버타임
}
public struct DiscountStruct
{
public int Code;
public string DiscountName;
public int DiscountValue;
}
public struct RentData
{
public int KeyCode;
public int Category;
public DateTime StartDateTime;
public int People;
}
public struct ProfitData
{
public int Id;
public int KeyCode;
public int Category;
public DateTime StartDateTime;
public int People;
public DateTime EndDateTime;
public int UseTime;
public int ProfitBase;
public int ProfitAdd;
public int ProfitDiscount;
}
public struct Category
{
public int CategoryProfit;
public string CategoryName;
}
public struct DiscountData
{
public string Name;
public int Value;
}
}