Rev | Line | |
---|
[1146] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Text;
|
---|
| 4 | using IndianHealthService.BMXNet.Model;
|
---|
| 5 |
|
---|
| 6 | namespace IndianHealthService.BMXNet.EHR.Model
|
---|
| 7 | {
|
---|
| 8 | internal class CiaDivision:CiaObject,Division
|
---|
| 9 | {
|
---|
| 10 | public override bool Equals(object obj)
|
---|
| 11 | {
|
---|
| 12 | CiaDivision div = obj as CiaDivision;
|
---|
| 13 | if (div == null)
|
---|
| 14 | {
|
---|
| 15 | return false;
|
---|
| 16 | }
|
---|
| 17 | else
|
---|
| 18 | {
|
---|
| 19 | return this.Ien.Equals(div.Ien);
|
---|
| 20 | }
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | public override int GetHashCode()
|
---|
| 24 | {
|
---|
| 25 | return this.Ien.GetHashCode();
|
---|
| 26 | }
|
---|
| 27 | private String _name = null;
|
---|
| 28 |
|
---|
| 29 | public String Name
|
---|
| 30 | {
|
---|
| 31 | get { return _name; }
|
---|
| 32 | set { _name = value; }
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | public override string ToString()
|
---|
| 36 | {
|
---|
| 37 | return this.Name;
|
---|
| 38 | }
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
| 41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.