J
Jeff0803
Guest
I want to print List<ActivePatient> to the ReportViewer.
I created ActivePatient and ActivePatientList like followings.
public class ActivePatient
{
private double m_patientid;
private string m_cellphone;
private Int16 m_messageno;
private Int16 m_recallmessageno;
private bool m_avoidreminder;
private DateTime m_active_datetime;
private string m_fullname;
private DateTime m_last_prophy;
private DateTime m_next_prophy;
public double PatientID
{
get { return m_patientid; }
set { this.m_patientid = value; }
}
public string CellPhone
{
get { return m_cellphone; }
set { m_cellphone = value; }
}
public Int16 MessageNo
{
get { return m_messageno; }
set { m_messageno = value; }
}
public Int16 RecallMessageNo
{
get { return m_recallmessageno; }
set { m_recallmessageno = value; }
}
public bool AvoidReminder
{
get { return m_avoidreminder; }
set { m_avoidreminder = value; }
}
public DateTime ActiveDatetime
{
get { return m_active_datetime; }
set { m_active_datetime = value; }
}
public DateTime LastProphy
{
get { return m_last_prophy; }
set { m_last_prophy = value; }
}
public DateTime NextProphy
{
get { return m_next_prophy; }
set { m_next_prophy = value; }
}
public string FullName
{
get { return m_fullname; }
set { m_fullname = value; }
}
}
public class ActivePatientList
{
private List<ActivePatient> m_activepatientlist;
public ActivePatientList(List<ActivePatient> activepatientlist)
{
m_activepatientlist = new List<ActivePatient>();
m_activepatientlist = activepatientlist;
}
public List<ActivePatient> GetActivePatientList()
{
return m_activepatientlist;
}
}
I chose ActivePatientList from the Data Source Configuration Wizard like following.
However if I open the Data Sources window, can't see the AcitvePatient's properties like PatientID, CellPhone, MessageNo... from under the ActivePatientList object.
My VS version is Visual Studio Pro2017.
Can anybody give me some advice?
Continue reading...
I created ActivePatient and ActivePatientList like followings.
public class ActivePatient
{
private double m_patientid;
private string m_cellphone;
private Int16 m_messageno;
private Int16 m_recallmessageno;
private bool m_avoidreminder;
private DateTime m_active_datetime;
private string m_fullname;
private DateTime m_last_prophy;
private DateTime m_next_prophy;
public double PatientID
{
get { return m_patientid; }
set { this.m_patientid = value; }
}
public string CellPhone
{
get { return m_cellphone; }
set { m_cellphone = value; }
}
public Int16 MessageNo
{
get { return m_messageno; }
set { m_messageno = value; }
}
public Int16 RecallMessageNo
{
get { return m_recallmessageno; }
set { m_recallmessageno = value; }
}
public bool AvoidReminder
{
get { return m_avoidreminder; }
set { m_avoidreminder = value; }
}
public DateTime ActiveDatetime
{
get { return m_active_datetime; }
set { m_active_datetime = value; }
}
public DateTime LastProphy
{
get { return m_last_prophy; }
set { m_last_prophy = value; }
}
public DateTime NextProphy
{
get { return m_next_prophy; }
set { m_next_prophy = value; }
}
public string FullName
{
get { return m_fullname; }
set { m_fullname = value; }
}
}
public class ActivePatientList
{
private List<ActivePatient> m_activepatientlist;
public ActivePatientList(List<ActivePatient> activepatientlist)
{
m_activepatientlist = new List<ActivePatient>();
m_activepatientlist = activepatientlist;
}
public List<ActivePatient> GetActivePatientList()
{
return m_activepatientlist;
}
}
I chose ActivePatientList from the Data Source Configuration Wizard like following.
However if I open the Data Sources window, can't see the AcitvePatient's properties like PatientID, CellPhone, MessageNo... from under the ActivePatientList object.
My VS version is Visual Studio Pro2017.
Can anybody give me some advice?
Continue reading...