public bool CheckMemberExistance(string number) { MemberGateway aMemberGateway = new MemberGateway(); if (aMemberGateway.ChkMemebrExistance(number) == true) { return(true); } else { return(false); } }
public void ShowMemberInformation(int memberId, String date) { MealManager aMealManager = new MealManager(); List <MemberWithMeal> mealList = aMealManager.GetMeals(memberId, date); MemberManager aMemberManager = new MemberManager(); MemberGateway aGateway = new MemberGateway(); Member member = aGateway.GetMemberById(memberId); // CrystalReport crystalReport=new CrystalReport(); MealCrystalReport mealCrystal = new MealCrystalReport(); mealCrystal.SetDataSource(mealList); mealCrystal.SetParameterValue("mName", member.MemberName.ToString()); mealCrystal.SetParameterValue("mPhone", member.Phone.ToString()); mealCrystal.SetParameterValue("date", DateTime.Today); mealCrystalReportViewer.ReportSource = mealCrystal; }