コード例 #1
0
ファイル: CntAriCli.cs プロジェクト: ragare62/AriClinic
 public static List<ServiceNote> GetServiceNotesByPerson(Person p, AriClinicContext ctx)
 {
     Customer cust;
     if (p is Patient)
         cust = (p as Patient).Customer;
     else if (p is Customer)
         cust = (p as Customer);
     else
         cust = new Customer();
             
     return (from anes in ctx.ServiceNotes
             orderby anes.ServiceNoteDate descending
             where anes.Customer == cust
             select anes).ToList<ServiceNote>();
 }
コード例 #2
0
ファイル: CntAriCli.cs プロジェクト: ragare62/AriClinic
 public static List<AnestheticServiceNote> GetAnestheticServiceNotesByPerson(Person p, AriClinicContext ctx)
 {
     Customer cust;
     if (p is Patient)
         cust = (p as Patient).Customer;
     else if (p is Customer)
         cust = (p as Customer);
     else
         cust = new Customer();
 
     return (from anes in ctx.AnestheticServiceNotes
             where anes.Customer == cust
             select anes).ToList<AnestheticServiceNote>();
 }