basic ProductType entity

master
syneffort 3 years ago
parent 2288d01308
commit 4ba6bed095
  1. 6
      TinyPOS/TinyPosDBGen/Program.cs
  2. 31
      TinyPOS/TinyPosEntity/EntityController.cs

@ -17,6 +17,10 @@ namespace TinyPosDBGen
string userId = "sa"; string userId = "sa";
string userPassword = ""; string userPassword = "";
Console.WriteLine("데이터베이스를 초기화합니다.");
Console.WriteLine("(※※※ 경고: 기존 데이터베이스 데이터는 모두 삭제됩니다. ※※※)");
Console.WriteLine();
InputValue("서버 이름", ref source); InputValue("서버 이름", ref source);
InputValue("데이터베이스 이름", ref catalog); InputValue("데이터베이스 이름", ref catalog);
InputValue("인증 사용자 계정", ref userId); InputValue("인증 사용자 계정", ref userId);
@ -33,7 +37,7 @@ namespace TinyPosDBGen
Console.WriteLine("초기화가 완료되었습니다."); Console.WriteLine("초기화가 완료되었습니다.");
Console.WriteLine(); Console.WriteLine();
Console.WriteLine("종료를 위해 아무키나 누르세요."); Console.WriteLine("종료를 위해 아무키나 누르세요.");
Console.ReadLine(); Console.ReadKey();
//Student student = new Student() //Student student = new Student()
//{ //{
// StudentName = "테스트용", // StudentName = "테스트용",

@ -45,30 +45,13 @@ namespace TinyPosEntity
private List<ProductType> GetDefaultProductTypes() private List<ProductType> GetDefaultProductTypes()
{ {
List<ProductType> productTypeList = new List<ProductType>(); List<ProductType> productTypeList = new List<ProductType>();
productTypeList.Add(new ProductType() productTypeList.Add(new ProductType() { Name = "담배" });
{ productTypeList.Add(new ProductType() { Name = "주류" });
Name = "담배" productTypeList.Add(new ProductType() { Name = "음료" });
}); productTypeList.Add(new ProductType() { Name = "과자" });
productTypeList.Add(new ProductType() productTypeList.Add(new ProductType() { Name = "식료품" });
{ productTypeList.Add(new ProductType() { Name = "잡화" });
Name = "주류" productTypeList.Add(new ProductType() { Name = "기타" });
});
productTypeList.Add(new ProductType()
{
Name = "음료"
});
productTypeList.Add(new ProductType()
{
Name = "생필품"
});
productTypeList.Add(new ProductType()
{
Name = "과자"
});
productTypeList.Add(new ProductType()
{
Name = "기타"
});
return productTypeList; return productTypeList;
} }

Loading…
Cancel
Save