|
@@ -50,30 +50,49 @@ public class ViewController extends Controller {
|
|
|
|
|
|
public void posttolis() {
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
- jsonObject.put("pcode", this.getPara("tcbh"));
|
|
|
+ jsonObject.put("ecode", this.getPara("tcbh"));
|
|
|
jsonObject.put("sampleNum", this.getPara("ybbh"));
|
|
|
jsonObject.put("testDate", this.getPara("jyrq"));
|
|
|
JSONObject jsonObject2 = new JSONObject();
|
|
|
- jsonObject2.put("result", "19.01");
|
|
|
+ if (this.getPara("jyz")==null) {
|
|
|
+ jsonObject2.put("result", "21.01");
|
|
|
+
|
|
|
+ }else {
|
|
|
+ jsonObject2.put("result", this.getPara("jyz"));
|
|
|
+
|
|
|
+ }
|
|
|
+ if (this.getPara("jyzt")==null) {
|
|
|
+ jsonObject2.put("resultState", "正常");
|
|
|
+
|
|
|
+ }else {
|
|
|
+ jsonObject2.put("resultState", this.getPara("jyzt"));
|
|
|
+
|
|
|
+ }
|
|
|
switch (this.getPara("tcbh")) {
|
|
|
case "1":
|
|
|
- jsonObject2.put("name_en", "URO");
|
|
|
+ jsonObject2.put("name_en", "WBC");
|
|
|
break;
|
|
|
case "2":
|
|
|
- jsonObject2.put("name_en", "TP");
|
|
|
+ jsonObject2.put("name_en", "CRP");
|
|
|
break;
|
|
|
case "3":
|
|
|
- jsonObject2.put("name_en", "WBC");
|
|
|
+ jsonObject2.put("name_en", "URO");
|
|
|
break;
|
|
|
case "4":
|
|
|
- jsonObject2.put("name_en", "RI");
|
|
|
+ jsonObject2.put("name_en", "TP");
|
|
|
break;
|
|
|
case "5":
|
|
|
- jsonObject2.put("name_en", "CRP");
|
|
|
+ jsonObject2.put("name_en", "POP");
|
|
|
break;
|
|
|
case "6":
|
|
|
jsonObject2.put("name_en", "APTT");
|
|
|
break;
|
|
|
+ case "7":
|
|
|
+ jsonObject2.put("name_en", "cTnI");
|
|
|
+ break;
|
|
|
+ case "8":
|
|
|
+ jsonObject2.put("name_en", "TB");
|
|
|
+ break;
|
|
|
|
|
|
default:
|
|
|
break;
|
|
@@ -84,7 +103,7 @@ public class ViewController extends Controller {
|
|
|
jsonObject.put("resultArray", array.toString());
|
|
|
|
|
|
// doPost(getControllerKey(), getKv())
|
|
|
- String contentString = postWithJson("http://"+this.getPara("ip")+":8080/lisserver/lis/equipmentInteraction/synchronizedResult", jsonObject);
|
|
|
+ String contentString = postWithJson("http://"+this.getPara("ip")+":8080/lisserver/jianyan/equipmentInteraction/synchronizedResult", jsonObject);
|
|
|
System.out.println(contentString);
|
|
|
renderText(contentString);
|
|
|
}
|