diff --git a/WEB-INF/conf/sysds_main.xml b/WEB-INF/conf/sysds_main.xml index 3a3e186..f4b26d8 100644 --- a/WEB-INF/conf/sysds_main.xml +++ b/WEB-INF/conf/sysds_main.xml @@ -2517,6 +2517,20 @@ + + + SELECT COUNT(1) RC FROM HIS_HIE_RYBQ d + WHERE d.JGID =? AND d.JZPKEY =? AND d.HJD_FLAG ='1' + +//ZJHM,ZYNO,JJRQ,YJZJE + + + + +

12

+

12

+
+
diff --git a/WEB-INF/src/com/his/zy/zysfmanage/ZysfPatientBillWindow.java b/WEB-INF/src/com/his/zy/zysfmanage/ZysfPatientBillWindow.java index 9379a8a..74cffa1 100644 --- a/WEB-INF/src/com/his/zy/zysfmanage/ZysfPatientBillWindow.java +++ b/WEB-INF/src/com/his/zy/zysfmanage/ZysfPatientBillWindow.java @@ -1,11 +1,8 @@ package com.his.zy.zysfmanage; import java.sql.Timestamp; - import com.dzfp.model.DzfpModel; import com.dzfp.service.EIService; -import com.emr.model.BasyModel; -import com.emr.service.BasyService; import com.his.hie.service.ScHieService; import com.his.hie.util.ScHieRybqData; import com.his.hie.util.ScHieUtil; @@ -746,8 +743,10 @@ public class ZysfPatientBillWindow extends WatWebForm { String jsbpkey=dbgrid1.getColumnValueAsString("YBJSB"); Object[] aObjRtn =null; if ("0".equals(type)) { + //正常结算 aObjRtn =ScHieService.insOrUpdMedRecDataJs(hzpkey,jzpkey,jsbpkey,edit20.getText(),edit21.getText()); }else { + //冲销 aObjRtn =ScHieService.insOrUpdMedRecDataCx(hzpkey,jzpkey,jsbpkey); } setLabelShow("提示:"+aObjRtn[1]); @@ -996,10 +995,18 @@ public class ZysfPatientBillWindow extends WatWebForm { panelBar1.setPanelButtonVisible("cxcf", false); panelBar5.setPanelButtonVisible("zdrq", true); + //判断 是否上传诊疗信息,已上传取重点欠费金额 if ("1".equals(dbgrid1.getColumnValueAsString("ZDZT"))) { edit20.setText(dbgrid1.getColumnValueAsString("DATA_DEFICIENT_FEE")); }else { - edit20.setText(dbedit3.getText()); + //判断 是否重点人群,是取自付金额 + //edit20.setText(dbedit3.getText()); + DxNormalDataManager ScHieZddao= DaoCreator.getNormalDao("ScHieZddao");// + ScHieZddao.reload(new Object[] {dbgrid1.getColumnValueAsString("JGID"),dbgrid1.getColumnValueAsString("JZPKEY")}); + String keyCrowd=ScHieZddao.getColumnValueAsString("RC"); + if (!"0".equals(keyCrowd)) { + edit20.setText(dbedit3.getText()); + } }