public List <PostInfoModel> getPostInfoList() { List <PostInfoModel> postInfoList = new List <PostInfoModel>(); PostInfoModel postInfo1 = new PostInfoModel(); postInfo1.ENNumber = "EN09000001"; postInfo1.ProdName = "P1"; postInfo1.CompanyInfoList = new List <CompanyInfoModel>(); CompanyInfoModel companyInfo1 = new CompanyInfoModel(); companyInfo1.CompanyName = "A公司"; companyInfo1.CompanyAddress = "台北市大安區信義路四段88號5樓"; companyInfo1.PendingOrder = false; companyInfo1.StoreInfoList = new List <StoreInfoModel>(); StoreInfoModel storeInfo1 = new StoreInfoModel(); storeInfo1.StoreName = "A1門市"; storeInfo1.StoreAddress = "台北市大安區信義路四段88號5樓"; storeInfo1.Contacts = "王小明"; storeInfo1.ContactsTel = "02-23445961"; companyInfo1.StoreInfoList.Add(storeInfo1); StoreInfoModel storeInfo2 = new StoreInfoModel(); storeInfo2.StoreName = "A2門市"; storeInfo2.StoreAddress = "台北市大安區信義路四段74巷11號5樓"; storeInfo2.Contacts = "王大明"; storeInfo2.ContactsTel = "02-23267891"; companyInfo1.StoreInfoList.Add(storeInfo2); postInfo1.CompanyInfoList.Add(companyInfo1); CompanyInfoModel companyInfo2 = new CompanyInfoModel(); companyInfo2.CompanyName = "B公司"; companyInfo2.CompanyAddress = "台北市中正區信義路一段21-3樓1202室"; companyInfo2.PendingOrder = false; companyInfo2.StoreInfoList = new List <StoreInfoModel>(); StoreInfoModel storeInfo3 = new StoreInfoModel(); storeInfo3.StoreName = "B1門市"; storeInfo3.StoreAddress = "台北市中正區杭州南路一段26號7樓"; storeInfo3.Contacts = "王中明"; storeInfo3.ContactsTel = "0910-111213"; companyInfo2.StoreInfoList.Add(storeInfo3); StoreInfoModel storeInfo4 = new StoreInfoModel(); storeInfo4.StoreName = "B2門市"; storeInfo4.StoreAddress = "台北市信義區松德路168巷20號2樓"; storeInfo4.Contacts = "王又明"; storeInfo4.ContactsTel = "02-87447509"; companyInfo2.StoreInfoList.Add(storeInfo4); postInfo1.CompanyInfoList.Add(companyInfo2); postInfoList.Add(postInfo1); List <PostInfoModel> postInfoList2 = new List <PostInfoModel>(); PostInfoModel postInfo2 = new PostInfoModel(); postInfo2.ENNumber = "EN09000002"; postInfo2.ProdName = "P5"; postInfo2.CompanyInfoList = new List <CompanyInfoModel>(); CompanyInfoModel companyInfo3 = new CompanyInfoModel(); companyInfo3.CompanyName = "A公司"; companyInfo3.CompanyAddress = "台北市大安區信義路四段88號5樓"; companyInfo3.PendingOrder = true; companyInfo3.StoreInfoList = new List <StoreInfoModel>(); StoreInfoModel storeInfo5 = new StoreInfoModel(); storeInfo5.StoreName = "A1門市"; storeInfo5.StoreAddress = "台北市大安區信義路四段88號5樓"; storeInfo5.Contacts = "王小明"; storeInfo5.ContactsTel = "02-23445961"; companyInfo3.StoreInfoList.Add(storeInfo5); StoreInfoModel storeInfo6 = new StoreInfoModel(); storeInfo6.StoreName = "A2門市"; storeInfo6.StoreAddress = "台北市大安區信義路四段74巷11號5樓"; storeInfo6.Contacts = "王大明"; storeInfo6.ContactsTel = "02-23267891"; companyInfo3.StoreInfoList.Add(storeInfo6); postInfo2.CompanyInfoList.Add(companyInfo3); CompanyInfoModel companyInfo4 = new CompanyInfoModel(); companyInfo4.CompanyName = "B公司"; companyInfo4.CompanyAddress = "台北市中正區信義路一段21-3樓1202室"; companyInfo4.PendingOrder = false; companyInfo4.StoreInfoList = new List <StoreInfoModel>(); StoreInfoModel storeInfo7 = new StoreInfoModel(); storeInfo7.StoreName = "B1門市"; storeInfo7.StoreAddress = "台北市中正區杭州南路一段26號7樓"; storeInfo7.Contacts = "王中明"; storeInfo7.ContactsTel = "0910-111213"; companyInfo4.StoreInfoList.Add(storeInfo7); StoreInfoModel storeInfo8 = new StoreInfoModel(); storeInfo8.StoreName = "B2門市"; storeInfo8.StoreAddress = "台北市信義區松德路168巷20號2樓"; storeInfo8.Contacts = "王又明"; storeInfo8.ContactsTel = "02-87447509"; companyInfo4.StoreInfoList.Add(storeInfo8); postInfo2.CompanyInfoList.Add(companyInfo4); postInfoList.Add(postInfo2); return(postInfoList); }
public List<PostInfoModel> getPostInfoList() { List<PostInfoModel> postInfoList = new List<PostInfoModel>(); PostInfoModel postInfo1 = new PostInfoModel(); postInfo1.ENNumber = "EN09000001"; postInfo1.ProdName = "P1"; postInfo1.CompanyInfoList = new List<CompanyInfoModel>(); CompanyInfoModel companyInfo1 = new CompanyInfoModel(); companyInfo1.CompanyName = "A公司"; companyInfo1.CompanyAddress = "台北市大安區信義路四段88號5樓"; companyInfo1.PendingOrder = false; companyInfo1.StoreInfoList = new List<StoreInfoModel>(); StoreInfoModel storeInfo1 = new StoreInfoModel(); storeInfo1.StoreName = "A1門市"; storeInfo1.StoreAddress = "台北市大安區信義路四段88號5樓"; storeInfo1.Contacts = "王小明"; storeInfo1.ContactsTel = "02-23445961"; companyInfo1.StoreInfoList.Add(storeInfo1); StoreInfoModel storeInfo2 = new StoreInfoModel(); storeInfo2.StoreName = "A2門市"; storeInfo2.StoreAddress = "台北市大安區信義路四段74巷11號5樓"; storeInfo2.Contacts = "王大明"; storeInfo2.ContactsTel = "02-23267891"; companyInfo1.StoreInfoList.Add(storeInfo2); postInfo1.CompanyInfoList.Add(companyInfo1); CompanyInfoModel companyInfo2 = new CompanyInfoModel(); companyInfo2.CompanyName = "B公司"; companyInfo2.CompanyAddress = "台北市中正區信義路一段21-3樓1202室"; companyInfo2.PendingOrder = false; companyInfo2.StoreInfoList = new List<StoreInfoModel>(); StoreInfoModel storeInfo3 = new StoreInfoModel(); storeInfo3.StoreName = "B1門市"; storeInfo3.StoreAddress = "台北市中正區杭州南路一段26號7樓"; storeInfo3.Contacts = "王中明"; storeInfo3.ContactsTel = "0910-111213"; companyInfo2.StoreInfoList.Add(storeInfo3); StoreInfoModel storeInfo4 = new StoreInfoModel(); storeInfo4.StoreName = "B2門市"; storeInfo4.StoreAddress = "台北市信義區松德路168巷20號2樓"; storeInfo4.Contacts = "王又明"; storeInfo4.ContactsTel = "02-87447509"; companyInfo2.StoreInfoList.Add(storeInfo4); postInfo1.CompanyInfoList.Add(companyInfo2); postInfoList.Add(postInfo1); List<PostInfoModel> postInfoList2 = new List<PostInfoModel>(); PostInfoModel postInfo2 = new PostInfoModel(); postInfo2.ENNumber = "EN09000002"; postInfo2.ProdName = "P5"; postInfo2.CompanyInfoList = new List<CompanyInfoModel>(); CompanyInfoModel companyInfo3 = new CompanyInfoModel(); companyInfo3.CompanyName = "A公司"; companyInfo3.CompanyAddress = "台北市大安區信義路四段88號5樓"; companyInfo3.PendingOrder = true; companyInfo3.StoreInfoList = new List<StoreInfoModel>(); StoreInfoModel storeInfo5 = new StoreInfoModel(); storeInfo5.StoreName = "A1門市"; storeInfo5.StoreAddress = "台北市大安區信義路四段88號5樓"; storeInfo5.Contacts = "王小明"; storeInfo5.ContactsTel = "02-23445961"; companyInfo3.StoreInfoList.Add(storeInfo5); StoreInfoModel storeInfo6 = new StoreInfoModel(); storeInfo6.StoreName = "A2門市"; storeInfo6.StoreAddress = "台北市大安區信義路四段74巷11號5樓"; storeInfo6.Contacts = "王大明"; storeInfo6.ContactsTel = "02-23267891"; companyInfo3.StoreInfoList.Add(storeInfo6); postInfo2.CompanyInfoList.Add(companyInfo3); CompanyInfoModel companyInfo4 = new CompanyInfoModel(); companyInfo4.CompanyName = "B公司"; companyInfo4.CompanyAddress = "台北市中正區信義路一段21-3樓1202室"; companyInfo4.PendingOrder = false; companyInfo4.StoreInfoList = new List<StoreInfoModel>(); StoreInfoModel storeInfo7 = new StoreInfoModel(); storeInfo7.StoreName = "B1門市"; storeInfo7.StoreAddress = "台北市中正區杭州南路一段26號7樓"; storeInfo7.Contacts = "王中明"; storeInfo7.ContactsTel = "0910-111213"; companyInfo4.StoreInfoList.Add(storeInfo7); StoreInfoModel storeInfo8 = new StoreInfoModel(); storeInfo8.StoreName = "B2門市"; storeInfo8.StoreAddress = "台北市信義區松德路168巷20號2樓"; storeInfo8.Contacts = "王又明"; storeInfo8.ContactsTel = "02-87447509"; companyInfo4.StoreInfoList.Add(storeInfo8); postInfo2.CompanyInfoList.Add(companyInfo4); postInfoList.Add(postInfo2); return postInfoList ; }