|
|
@@ -189,7 +189,7 @@ public class EFormSaveHandler implements IEventHandler<ResultEventArgs> {
|
|
|
resultMap.put("deviceIdentNo", deviceIdentNo);
|
|
|
resultMap.put("vistType", vistType);
|
|
|
resultMap.put("hosType", hosType);
|
|
|
- resultMap.put("clnDate", clnDate);
|
|
|
+ resultMap.put("clnDate", Util.removeSlashStr(clnDate));
|
|
|
resultMap.put("ward", ward);
|
|
|
resultMap.put("roomcd", roomcd);
|
|
|
resultMap.put("orderNo", orderNo);
|
|
|
@@ -273,7 +273,7 @@ public class EFormSaveHandler implements IEventHandler<ResultEventArgs> {
|
|
|
public void result(String result) {
|
|
|
Log.e(TAG, "save result -- > " + result);
|
|
|
if (buttonType.equals("TEMP_SAVE")) {
|
|
|
- if (result == null) {
|
|
|
+ if (result == null || result.equals("")) {
|
|
|
stop();
|
|
|
} else {
|
|
|
JSONObject object = Util.xmltoJsonObject(result);
|
|
|
@@ -305,7 +305,7 @@ public class EFormSaveHandler implements IEventHandler<ResultEventArgs> {
|
|
|
String res = Util.xmlToJsonString(object);
|
|
|
ArrayList<HashMap<String, String>> mapArrayList = Util.parseJSON(mContext, res);
|
|
|
|
|
|
- String rts = mapArrayList.get(0).get("SaveCompleteAll");
|
|
|
+ String rts = mapArrayList.get(0).get("SaveCompleteAllResult");
|
|
|
|
|
|
Log.e(TAG, "mapArrayList -- > " + mapArrayList);
|
|
|
|
|
|
@@ -321,7 +321,7 @@ public class EFormSaveHandler implements IEventHandler<ResultEventArgs> {
|
|
|
|
|
|
}
|
|
|
|
|
|
- if (apiType.equals("paitient") || apiType.equals("write")) {
|
|
|
+ if (apiType.equals("patient") || apiType.equals("write")) {
|
|
|
instance.history.getHistoryConsentList(apiType);
|
|
|
}
|
|
|
|