source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/BMX41000/IHS BMX Framework/IndianHealthService.BMXNet.WinForm/DesktopVisit.cs@ 1672

Last change on this file since 1672 was 1146, checked in by Sam Habiel, 14 years ago

Initial Import of BMX4

File size: 2.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using IndianHealthService.BMXNet.Model;
5using System.Globalization;
6
7namespace IndianHealthService.BMXNet.WinForm
8{
9 internal class DesktopVisit : DesktopObject, Visit
10 {
11
12 public static DesktopVisit FindCurrent(DesktopSession aSession)
13 {
14 DesktopVisit answer = new DesktopVisit();
15
16
17 return answer;
18
19 }
20
21 private DateTime _dateTime;
22
23 public DateTime DateTime
24 {
25 get { return _dateTime; }
26 set { _dateTime = value; }
27 }
28
29
30 private String _locationName;
31
32 public String LocationName
33 {
34 get { return _locationName; }
35 set { _locationName = value; }
36 }
37 private String _locationAbbr;
38
39 public String LocationAbbr
40 {
41 get { return _locationAbbr; }
42 set { _locationAbbr = value; }
43 }
44 private String _providerName;
45
46 public String ProviderName
47 {
48 get { return _providerName; }
49 set { _providerName = value; }
50 }
51
52 public override string ToString()
53 {
54 return this.Label;
55 }
56
57 public String Label
58 {
59
60 get { return this.DateTime.ToShortDateString() + " " + this.LocationName; }
61 }
62
63 private String _serviceCategory = null;
64
65 public String ServiceCategory
66 {
67 get { return _serviceCategory; }
68 set { _serviceCategory = value; }
69 }
70
71
72 public void FillFromRow(System.Data.DataRow aRow)
73 {
74
75 //PATIENT
76 this.Ien = aRow["BMXIEN"].ToString();
77 this.DateTime = DateTime.ParseExact(aRow["VISIT TIMESTAMP"].ToString(), "MMM dd, yyyy@HH:mm", CultureInfo.InvariantCulture);
78 this.LocationName = aRow["LOCATION"].ToString();
79 this.ServiceCategory = aRow["SERVICE CATEGORY"].ToString();
80 this.LocationName = aRow["CLINIC"].ToString();
81 this.ProviderName = aRow["PROVIDER"].ToString();
82 }
83
84 }
85}
Note: See TracBrowser for help on using the repository browser.