public TaggedOefOifArrays(IndexedHashtable t) { if (t.Count == 0) { return; } arrays = new TaggedOefOifArray[t.Count]; for (int i = 0; i < t.Count; i++) { if (MdwsUtils.isException(t.GetValue(i))) { fault = new FaultTO((Exception)t.GetValue(i)); } else if (t.GetValue(i) == null) { arrays[i] = new TaggedOefOifArray((string)t.GetKey(i)); } else if (t.GetValue(i).GetType().IsArray) { arrays[i] = new TaggedOefOifArray((string)t.GetKey(i), (OEF_OIF[])t.GetValue(i)); } else { arrays[i] = new TaggedOefOifArray((string)t.GetKey(i), (OEF_OIF)t.GetValue(i)); } } count = t.Count; }
public TaggedOefOifArrays(IndexedHashtable t) { if (t.Count == 0) { return; } arrays = new TaggedOefOifArray[t.Count]; for (int i = 0; i < t.Count; i++) { if (MdwsUtils.isException(t.GetValue(i))) { fault = new FaultTO((Exception)t.GetValue(i)); } else if (t.GetValue(i) == null) { arrays[i] = new TaggedOefOifArray((string)t.GetKey(i)); } else if (t.GetValue(i).GetType().IsArray) { arrays[i] = new TaggedOefOifArray((string)t.GetKey(i), (OEF_OIF[])t.GetValue(i)); } else { arrays[i] = new TaggedOefOifArray((string)t.GetKey(i), (OEF_OIF)t.GetValue(i)); } } count = t.Count; }
public TaggedOefOifArray getOefOif() { TaggedOefOifArray result = new TaggedOefOifArray(); string msg = MdwsUtils.isAuthorizedConnection(mySession, null); if (msg != "OK") { result.fault = new FaultTO(msg); } if (result.fault != null) { return result; } string sitecode = mySession.ConnectionSet.BaseSiteId; try { AbstractConnection cxn = mySession.ConnectionSet.getConnection(sitecode); PatientApi api = new PatientApi(); OEF_OIF[] rex = api.getOefOif(cxn); result = new TaggedOefOifArray(sitecode, rex); } catch (Exception e) { result.fault = new FaultTO(e.Message); } return result; }