using System; using System.Collections.Generic; namespace Cheongbuk_MegaPark_Key_Management { internal static class Setting { public static List RentDatas = new List(); public static List ProfitDatas = new List(); public static string DbLocation = "data.sqlite"; public static Dictionary CategoryDictionary = new Dictionary { {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 DiscountDatas = new Dictionary { {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; } }