diff --git a/.project b/.project index a278d67..67c4296 100644 --- a/.project +++ b/.project @@ -1,6 +1,6 @@ - klhis2 + klhis_git diff --git a/WEB-INF/conf/sysds_emr.xml b/WEB-INF/conf/sysds_emr.xml index 3541c8e..2e3e4a1 100644 --- a/WEB-INF/conf/sysds_emr.xml +++ b/WEB-INF/conf/sysds_emr.xml @@ -1796,7 +1796,7 @@ select PKEY,HZPKEY,JZPKEY,ZYNO,ZLLB,SSLCLJ,ISZYZJ,ISZYZLSB,ISZYZLJS,ISBZSH,BLFX,LCLJBL,QJCS,CGCS,BRLY,ZYBZZLF,ZYBZHZF,ZYZDBM,ZYZDMC,ZYWZ,ZYGS,ZYZCZF,ZYTNZL,ZYGCZL,ZYTSZL,ZYQT,ZYTSTPJG,ZYBZSS,ZYZJF,A01,A02,A48,A49,B12,B15,A47,A46C,A11,A12C,A13,A14,A15C,A21C,A38C,A19C,A20N,A20,A22,A23C,A24,A25C,A26,A27,A28C,A29,A30,A31C,A32,A33C,A34,A35,B38,B11C,B13C,B14,B21C,B16C,B17,B20,C01C,C02N,F01,F02C,F03N,F04,C09C,C10N,C11,F07X01C,F08X01N,F09X01,F07X02C,F08X02N,F09X02,C12C,C13N,C24C,C25,F10,F11,F12,B22C,B22,B23C,B23,B24C,B24,B25C,B25,B26C,B26,B27,B28,B29,B30C,B31,B32,B33,C34C,C26C,C27C,F17,F18,F19,F20,F21,F22,F23,F24,F25,F26,A16,A18X01,A18X02,A18X03,A18X04,A18X05,A17,C28,C29,C30,C31,C32,C33,C47,B36C,B37,B34C,B35,D01,D09,D11,D12,D13,D14,D15,D16,D17,D18,D19,D19X01,D20,D20X01,D20X02,D21,D22,D23,D23X01,D24,D25,D26,D27,D28,D29,D30,D31,D32,D33,D34,CJR,CJRQ,XGR,XGRQ,JGID,XSERYFS,A17X02,A17X03,A17X04,A17X05,YBXYZD,YBXYZDMC,YBZYZD,YBZYZDMC,B35C,DIEFLAG,YBFFFS,CYZLJG,C47X01,C47X02,C47X03,ZYZD,A23C1,RYSQK,ZYZHBM1,ZYZHMC1,YBZYZHBM1,YBZYZHMC1,ZYZHBM2,ZYZHMC2,YBZYZHBM2,YBZYZHMC2,PFKLF, - WCLCLJ,TCYY,YYGRQK,SFFSYC,YCFQ,SYFY,YFFYDYW,ZYQJSFFSDDHZC,ZYQJSTYS + WCLCLJ,TCYY,YYGRQK,SFFSYC,YCFQ,SYFY,YFFYDYW,ZYQJSFFSDDHZC,ZYQJSTYS,LYSTSNSDZ from HIS_EMR_BASY where JGID=? and PKEY=? @@ -2019,6 +2019,7 @@ +

12

diff --git a/WEB-INF/conf/sysds_his.xml b/WEB-INF/conf/sysds_his.xml index bb0f87b..ef75ee5 100644 --- a/WEB-INF/conf/sysds_his.xml +++ b/WEB-INF/conf/sysds_his.xml @@ -4573,12 +4573,15 @@ - select a.JGID,a.BM,a.MC,a.JBDW,a.FYDL,a.FYZL,a.HSZFL,a.KJZFL,a.MZZFL,a.ZYZFL,a.BASYFL,a.KCFL,a.RKDW,a.ZHXS,a.MZFYDW,a.ZYFYDW,a.JG,a.JBJG,a.SFYJ,a.SFXMSM,a.BZ,a.ZT,b.CSXX,b.GG,a.DWVIEW,c.LASTJJ,d.value2 kclz,a.YBBM,a.YBMC,kc.SL from HIS_SFX a + select a.JGID,a.BM,a.MC,a.JBDW,a.FYDL,a.FYZL,a.HSZFL,a.KJZFL,a.MZZFL,a.ZYZFL,a.BASYFL,a.KCFL,a.RKDW,a.ZHXS,a.MZFYDW,a.ZYFYDW,a.JG,a.JBJG,a.SFYJ,a.SFXMSM,a.BZ,a.ZT,b.CSXX,b.GG,a.DWVIEW,c.LASTJJ,d.value2 kclz,a.YBBM,a.YBMC,kc.SL + from HIS_SFX a left join HIS_YPXX b on a.BM=b.BM left join HIS_YFYK_YPJJ c on a.bm=c.SFX_BM and a.JGID=c.JGID left join HIS_KSKC kc on a.bm=kc.SFX_BM and a.JGID=kc.JGID and kc.DPTID=? left join MAIN_JGZDB d on a.kcfl=d.bh and d.jgzdlb_bh='Z00008' and d.JGID=a.JGID - where a.JGID=? and a.GLLX='Y' and b.zt='1' and a.KCFL in (select bh from MAIN_JGZDB where JGID=a.JGID and jgzdlb_bh='Z00008' and value2 like ?) and (a.BM like ? or a.MC like ? or EXISTS (SELECT 1 FROM HIS_SFX_ZJM b WHERE b.SFX_BM = a.BM and b.JGID=a.JGID and b.PYM like ?)) + left join HIS_YZX y on a.BM=y.BM + where a.JGID=? and y.JGID=? and a.zt='1' + and a.GLLX='Y' and b.zt='1' and a.KCFL in (select bh from MAIN_JGZDB where JGID=a.JGID and jgzdlb_bh='Z00008' and value2 like ?) and (a.BM like ? or a.MC like ? or EXISTS (SELECT 1 FROM HIS_SFX_ZJM b WHERE b.SFX_BM = a.BM and b.JGID=a.JGID and b.PYM like ?)) @@ -4626,6 +4629,7 @@

12

12

12

+

12

diff --git a/WEB-INF/src/com/emr/Basy/EmrBasyBaseForm.java b/WEB-INF/src/com/emr/Basy/EmrBasyBaseForm.java index 4551e84..43ef5cb 100644 --- a/WEB-INF/src/com/emr/Basy/EmrBasyBaseForm.java +++ b/WEB-INF/src/com/emr/Basy/EmrBasyBaseForm.java @@ -314,6 +314,7 @@ public class EmrBasyBaseForm extends WatWebForm { private DxCoolDataTextField dbedit113; private DxCoolDataTextField dbedit114; private DxCoolDataTextField dbedit121; + private DxCoolDataTextField dctLystxxtftnsdz; public EmrBasyBaseForm() { @@ -1560,6 +1561,9 @@ public class EmrBasyBaseForm extends WatWebForm { if ("ZYQJSTYS".equals(arr[i])) { dcbYs.setFocus(); } + if ("LYSTSNSDZ".equals(arr[i])) { + dctLystxxtftnsdz.setFocus(); + } } } } diff --git a/WEB-INF/src/com/his/crb/CrbManager.java b/WEB-INF/src/com/his/crb/CrbManager.java index a2b069c..5314c89 100644 --- a/WEB-INF/src/com/his/crb/CrbManager.java +++ b/WEB-INF/src/com/his/crb/CrbManager.java @@ -1,4 +1,4 @@ -package com.his.crb; import java.io.StringReader; import java.sql.Timestamp; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.List; import org.apache.commons.collections.iterators.ObjectGraphIterator; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.methods.PostMethod; import org.apache.commons.httpclient.methods.StringRequestEntity; import org.jdom.Document; import org.jdom.Element; import org.jdom.input.SAXBuilder; import org.json.XML; import org.xml.sax.InputSource; import com.his.mz.service.GzzNPCService; import com.util.MainLog; import com.util.MainUtil; import com.wat.component.DxComboBox; import com.wat.component.DxLabel; import com.wat.component.DxPanelBar; import com.wat.component.DxPrinter; import com.wat.component.DxStatisticsReport; import com.wat.component.coolcomponent.DxCoolTextField; import com.wat.component.datagrid.DxDataGrid; import com.wat.component.json.JSONObject; import com.wat.core.component.WatForm; import com.wat.core.component.WatWebForm; import com.wat.core.component.event.ActionEvent; import com.wat.core.component.event.ActionListener; import com.wat.core.component.event.WindowAdapter; import com.wat.core.component.event.WindowEvent; import com.wat.core.config.DaoCreator; import com.wat.core.dal.DxDataManager; import com.wat.core.dal.DxNormalDataManager; import com.wat.delphi.util.Delphi; public class CrbManager extends WatWebForm { private DxDataGrid dbgrid1; +package com.his.crb; import java.io.StringReader; import java.sql.Timestamp; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.List; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.methods.PostMethod; import org.apache.commons.httpclient.methods.StringRequestEntity; import org.jdom.Document; import org.jdom.Element; import org.jdom.input.SAXBuilder; import org.json.XML; import org.xml.sax.InputSource; import com.his.mz.service.GzzNPCService; import com.util.MainLog; import com.util.MainUtil; import com.wat.component.DxComboBox; import com.wat.component.DxLabel; import com.wat.component.DxPanelBar; import com.wat.component.DxPrinter; import com.wat.component.DxStatisticsReport; import com.wat.component.coolcomponent.DxCoolTextField; import com.wat.component.datagrid.DxDataGrid; import com.wat.component.json.JSONObject; import com.wat.core.component.WatForm; import com.wat.core.component.WatWebForm; import com.wat.core.component.event.ActionEvent; import com.wat.core.component.event.ActionListener; import com.wat.core.component.event.WindowAdapter; import com.wat.core.component.event.WindowEvent; import com.wat.core.config.DaoCreator; import com.wat.core.dal.DxDataManager; import com.wat.core.dal.DxNormalDataManager; import com.wat.delphi.util.Delphi; public class CrbManager extends WatWebForm { private DxDataGrid dbgrid1; private DxPanelBar panelBar1; private DxPanelBar panelBar2; private DxPanelBar panelBar3; @@ -42,7 +42,7 @@ package com.his.crb; import java.io.StringReader; import java.sql.Timestamp; im private void panelBar1editAction() { if(MainUtil.getFunctionValue((String)this.getWinParams("formid"), "Edit").equals("0")){ setLabelShow("提示:当前模块未开通该功能项,不允许操作!"); return; } if(MainUtil.getUserAuthorityValues((String)this.getWinParams("formid"), "Edit")==0){ setLabelShow("提示:你没有该功能项权限,不允许操作!"); return; } if(dbgrid1.getSelectedRow() < 0) { setLabelShow("请选择需要编辑的机构"); return; } CrbManagerEdit form = CrbManagerEdit.newWindow(); form.setWindow(this); form.setWinParams("formstate", "editflag"); form.setWinParams("dbgridmaster", dbgrid1); form.setWinParams("companyid", MainUtil.getCurCompanyID()); form.setWinParams("formid",this.getWinParams("formid")); form.setWinParams("formtitle",this.getWinParams("formtitle")); form.setWinParams("pkey",dbgrid1.getColumnValueAsString(dbgrid1.getSelectedRow(), "PKEY")); form.setFlag(100); form.showAsModal(); } private String CrbResponse(String strXml) { // strXml="\r" // + "\r" // + " \r" // + " 01-513434003-20240427120500535\r" // + " true\r" // + " \r" // + " \r" // + " 513434003-2024-00067\r" // + " 2404271233750820186259456\r" // + " 1233750820186259456\r" // + " \r" // + " \r" // + " 2024-04-27 12:05:17\r" // + " 发送成功\r" // + " \r" // + ""; try { //初始化 //创建一个新的字符串 StringReader stringReader = new StringReader(strXml); //创建新的输入源SAX 解析器将使用 InputSource 对象来确定如何读取 XML 输入 InputSource inputSource = new InputSource(stringReader); //创建一个新的SAXBuilder SAXBuilder saxBuilder = new SAXBuilder(); //通过输入源构造一个Document Document document = saxBuilder.build(inputSource); //取的根元素 Element eleRoot = document.getRootElement(); //System.err.println("1"+eleRoot.getName()); //System.err.println("1"+eleRoot.getValue()); Element eventBody=eleRoot.getChild("eventBody"); Element ids=eventBody.getChild("ids"); Element diseaseInfo=ids.getChild("diseaseInfo"); String CardId=diseaseInfo.getChild("CardId").getValue(); System.err.println(CardId); return CardId; } catch (Exception e) { // TODO: handle exception return ""; } } - private void panelBar1lookAction() { String jgid=MainUtil.getCurCompanyID(); String pkey=dbgrid1.getColumnValueAsString(dbgrid1.getSelectedRow(), "PKEY"); DxNormalDataManager crbdata = DaoCreator.getNormalDao(this,"crbupdao"); crbdata.reload(new Object[] {jgid,pkey}); JSONObject rJson=new JSONObject(); System.err.println(GzzNPCService.getInstance(jgid).crhsbhj()); rJson.put("env", GzzNPCService.getInstance(jgid).crhsbhj()); rJson.put("content", crbdata.getColumnValueAsString("EVENTID")); rJson.put("method","getChinaXml"); String result=sendPost("http://10.35.0.62:8093/crbrquest/crbsb",rJson.toString()); if(Delphi.isNullString(result)) { dlg.messageDlg("获取失败,请联系管理员"); }else { try { JSONObject result_Json=new JSONObject(result); System.out.println(result_Json.toString()); String data =result_Json.getString("data"); System.err.println(data); if("0".equals(result_Json.getString("code"))) { if (data.contains("error-code")) { org.json.JSONObject object = XML.toJSONObject(data); System.err.println(object.toString()); String errormsg=object.getJSONObject("DataExchange").getJSONObject("eventBody").getJSONObject("desc").getString("error-msg"); String errordesc=object.getJSONObject("DataExchange").getJSONObject("eventBody").getJSONObject("desc").getString("error-desc"); dlg.messageDlg("获取失败【"+errormsg+"】【"+errordesc+"】"); return; } DxNormalDataManager crb_infodao = (DxNormalDataManager)DaoCreator.getNormalDao(this,"crb_infodao_bypkey"); crb_infodao.reload(new Object[] {jgid,pkey}); crb_infodao.setColumnValue("SBZT","2"); String CARDID = CrbResponse(data); if (Delphi.isNullString(CARDID)) { dlg.messageDlg("未获取到卡ID,请重新获取!"); } crb_infodao.setColumnValue("CARDID",CARDID); if(crb_infodao.commit()) { dlg.messageDlg("获取成功!"); }else { dlg.messageDlg("获取成功,但是his保存失败!"); } }else { dlg.messageDlg("获取失败【"+result_Json.getString("msg")+"】"); } } catch (Exception e) { e.printStackTrace(); } } } + private void panelBar1lookAction() { String jgid=MainUtil.getCurCompanyID(); String pkey=dbgrid1.getColumnValueAsString(dbgrid1.getSelectedRow(), "PKEY"); DxNormalDataManager crbdata = DaoCreator.getNormalDao(this,"crbupdao"); crbdata.reload(new Object[] {jgid,pkey}); JSONObject rJson=new JSONObject(); System.err.println(GzzNPCService.getInstance(jgid).crhsbhj()); rJson.put("env", GzzNPCService.getInstance(jgid).crhsbhj()); rJson.put("content", crbdata.getColumnValueAsString("EVENTID")); rJson.put("method","getChinaXml"); String result=sendPost("http://10.35.0.62:8093/crbrquest/crbsb",rJson.toString()); if(Delphi.isNullString(result)) { dlg.messageDlg("获取失败,请联系管理员"); }else { try { JSONObject result_Json=new JSONObject(result); System.out.println(result_Json.toString()); String data =result_Json.getString("data"); System.err.println(data); if("0".equals(result_Json.getString("code"))) { if (data.contains("error-code")) { org.json.JSONObject object = XML.toJSONObject(data); System.err.println(object.toString()); String errormsg=object.getJSONObject("DataExchange").getJSONObject("eventBody").getJSONObject("desc").getString("error-msg"); String errordesc=object.getJSONObject("DataExchange").getJSONObject("eventBody").getJSONObject("desc").getString("error-desc"); dlg.messageDlg("获取失败【"+errormsg+"】【"+errordesc+"】"); return; } DxNormalDataManager crb_infodao = (DxNormalDataManager)DaoCreator.getNormalDao(this,"crb_infodao_bypkey"); crb_infodao.reload(new Object[] {jgid,pkey}); crb_infodao.setColumnValue("SBZT","2"); String CARDID = CrbResponse(data); if (Delphi.isNullString(CARDID)) { dlg.messageDlg("未获取到卡ID,请稍等后再重新获取!"); return; } crb_infodao.setColumnValue("CARDID",CARDID); if(crb_infodao.commit()) { dlg.messageDlg("获取成功!"); }else { dlg.messageDlg("获取成功,但是his保存失败!"); } }else { dlg.messageDlg("获取失败【"+result_Json.getString("msg")+"】"); } } catch (Exception e) { e.printStackTrace(); } } } private void panelBar1selectAction() { dbgrid1.setParameters(new Object[]{MainUtil.getCurCompanyID()}); dbgrid1.reloadBySelect(this.getXmlSelectControl("s1")); } @@ -73,6 +73,6 @@ package com.his.crb; import java.io.StringReader; import java.sql.Timestamp; im dataList.add(dbgrid1.getDataObjectManager()); Object result = Delphi.transCommit(dataList, this, "保存失败"); if("ok".equals(result)){ - this.setWinParams("saveflag", "true"); setLabelShow("提示:编辑保存成功!"); return; } else{ setLabelShow("提示:编辑保存失败!"); return; } } private void closeAction() { if("true".equals(getWinParams("saveflag"))) { this.doModalCallbackAction(null); } } //上报 private void upAction() { String jgid=MainUtil.getCurCompanyID(); String pkey=dbgrid1.getColumnValueAsString(dbgrid1.getSelectedRow(), "PKEY"); DxNormalDataManager crbdata = DaoCreator.getNormalDao(this,"crbupdao"); crbdata.reload(new Object[] {jgid,pkey}); String str=""; String type=""; if("0".equals(crbdata.getColumnValueAsString("SBZT"))) { type="Add"; }else if("1".equals(crbdata.getColumnValueAsString("SBZT"))) { type="Mod"; }else if("2".equals(crbdata.getColumnValueAsString("SBZT"))) { type="Mod"; }else if("3".equals(crbdata.getColumnValueAsString("SBZT"))) { type="Res"; }else { type="Add"; } SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); /** * "" */ String eventId=crbdata.getColumnValueAsString("BGDWBM")+"-"+MainUtil.format(System.currentTimeMillis(), "yyyyMMddHHmmss")+"-"+crbdata.getColumnValueAsString("ID").substring(crbdata.getColumnValueAsString("ID").length() - 3); String CardID=crbdata.getColumnValueAsString("CARDID"); if ("Add".equals(type)) { CardID=""; }else { eventId=crbdata.getColumnValueAsString("EVENTID"); } //D8 2003-01-05 //D10 2003-01-05 09 //D12 2003-01-05 09:48 //D14 2003-01-05 09:48:43 String DiagnosisDate=MainUtil.format(crbdata.getColumnValueAsLong("ZDRQ"),"yyyy-MM-dd HH");//D10 String CardFillingTime=MainUtil.format(crbdata.getColumnValueAsLong("BGRQ"),"yyyy-MM-dd");//D8 String CreatingTime=MainUtil.format(crbdata.getColumnValueAsLong("CJRQ"),"yyyy-MM-dd HH:mm:ss");//D14 String OnsetDate=MainUtil.format(crbdata.getColumnValueAsLong("FBRQ"),"yyyy-MM-dd");//D8 String Customer=crbdata.getColumnValueAsString("CJR"); DxNormalDataManager crbuserdao = DaoCreator.getNormalDao(this,"crbuserdao"); crbuserdao.reload(new Object[] {Customer}); Customer=crbuserdao.getColumnValueAsString("IDENTITYID");//证件号 String IDR_OccupationCode=crbdata.getColumnValueAsString("ZY"); String OtherOccupationName=crbdata.getColumnValueAsString("QTZY"); if (!"99".equals(IDR_OccupationCode)) { OtherOccupationName=""; } DxNormalDataManager regiondic = DaoCreator.getNormalDao(this,"regiondic"); String XZDZ_SHENG=regiondic.getDicValue(crbdata.getColumnValueAsString("XZDZ_SHENG")); String XZDZ_SHI=regiondic.getDicValue(crbdata.getColumnValueAsString("XZDZ_SHI")); String XZDZ_XIAN=regiondic.getDicValue(crbdata.getColumnValueAsString("XZDZ_XIAN")); String XZDZ_ZHEN=regiondic.getDicValue(crbdata.getColumnValueAsString("XZDZ_ZHEN")); String XZDZ_CUN=regiondic.getDicValue(crbdata.getColumnValueAsString("XZDZ_CUN")); String LivingAddressName=XZDZ_SHENG+XZDZ_SHI+XZDZ_XIAN+XZDZ_ZHEN+XZDZ_CUN; str="" + "" + "" + ""+eventId+"" + "IDR" + ""+type+"" + "" + "" + "" + ""+crbdata.getColumnValueAsString("NAME")+"" + ""+sdf.format(crbdata.getColumnValueAsLong("BRDY"))+"" + ""+crbdata.getColumnValueAsString("SEX")+"" + ""+crbdata.getColumnValueAsString("SEX_MC")+"" + ""+crbdata.getColumnValueAsString("MZ")+"" + ""+crbdata.getColumnValueAsString("MZ_MC")+"" + ""+crbdata.getColumnValueAsString("GZDW")+"" + ""+IDR_OccupationCode+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" + ""+crbdata.getColumnValueAsString("ZY_MC")+"" + ""+OtherOccupationName+"" + ""+crbdata.getColumnValueAsString("JZ_NAME")+"" + ""+crbdata.getColumnValueAsString("LXDH")+"" + "51343400" + "四川省凉山彝族自治州越西县" + ""+crbdata.getColumnValueAsString("BGDWBM")+"" + ""+crbdata.getColumnValueAsString("BGDWMC")+"" + ""+crbdata.getColumnValueAsString("BRSY")+"" + ""+crbdata.getColumnValueAsString("BRSY_MC")+"" + ""+crbdata.getColumnValueAsString("XZDZ")+"" + ""+LivingAddressName+"" + ""+LivingAddressName+crbdata.getColumnValueAsString("XZDZ_XX")+"" + "1" + ""+crbdata.getColumnValueAsString("SFZH")+"" + ""+DiagnosisDate+"" + ""+crbdata.getColumnValueAsString("JBBM")+"" + ""+crbdata.getColumnValueAsString("JBMC")+"" + ""+crbdata.getColumnValueAsString("JBBM")+"" + ""+crbdata.getColumnValueAsString("BZ")+""//备注信息 + ""+crbdata.getColumnValueAsString("SWRQ")+"" + ""+crbdata.getColumnValueAsString("TKYS")+"" + ""+CardFillingTime+"" + ""+crbdata.getColumnValueAsString("HJDZ")+"" + ""+crbdata.getColumnValueAsString("HJDZ_MC")+"" + ""+crbdata.getColumnValueAsString("HZDZ_XX")+"" + ""+crbdata.getColumnValueAsString("HJDLX")+"" + ""+crbdata.getColumnValueAsString("HJDLX_MC")+"" + "中国大陆" + ""+crbdata.getColumnValueAsString("HYZK")+"" + ""+crbdata.getColumnValueAsString("HYZK_MC")+"" + ""+crbdata.getColumnValueAsString("WHCD")+"" + ""+crbdata.getColumnValueAsString("WHCD_MC")+"" // + ""+crbdata.getColumnValueAsString("XZDZ")+" " // + ""+crbdata.getColumnValueAsString("XZDZ")+"" // + ""// // + "1" // + ""//-户籍所在村编码 + "2" + ""+crbdata.getColumnValueAsString("ZDLX")+"" + ""+crbdata.getColumnValueAsString("ZDLX_MC")+"" + ""+crbdata.getColumnValueAsString("ZYH")+"" + ""+CardID+""// + ""+CreatingTime+"" + "" // + "" + ""+crbdata.getColumnValueAsString("BLFL")+"" + ""+crbdata.getColumnValueAsString("BLFL_MC")+"" + ""+crbdata.getColumnValueAsString("QTJBMC")+"" + ""+OnsetDate+"" + ""+crbdata.getColumnValueAsString("MJZYWXTZZ")+"" + ""+crbdata.getColumnValueAsString("MJZYWXTZZ_MC")+"" + ""+Customer+"" + "" + "" + "" // + "" // + "" // + "" // + "" // + "" // + "" // + "" //艾滋病 + "" + ""+CardID+"" + ""+crbdata.getColumnValueAsString("JCS")+"" + ""+crbdata.getColumnValueAsString("JCS_MC")+"" + ""+crbdata.getColumnValueAsString("JCS_DPZSRS")+"" + ""+crbdata.getColumnValueAsString("JSC_XJCSRS")+"" + ""+crbdata.getColumnValueAsString("JSC_NNRS")+"" + ""+crbdata.getColumnValueAsString("JSC_QTNR")+"" + ""+crbdata.getColumnValueAsString("XBS")+"" + ""+crbdata.getColumnValueAsString("XBS_MC")+"" + ""+crbdata.getColumnValueAsString("ZYKNGRTJ")+"" + ""+crbdata.getColumnValueAsString("ZYKNGRTJ_MC")+"" + ""+crbdata.getColumnValueAsString("GRTJQT")+"" + ""+crbdata.getColumnValueAsString("HIV_YBLY")+"" + ""+crbdata.getColumnValueAsString("HIV_YBLY_MC")+"" + ""+crbdata.getColumnValueAsString("HIV_YBLYQT")+"" + ""+crbdata.getColumnValueAsString("SYSJCJL")+"" + ""+crbdata.getColumnValueAsString("SYSJCJL_MC")+"" + ""+crbdata.getColumnValueAsString("HIV_JCYXRQ")+"" + ""+crbdata.getColumnValueAsString("HIV_JCDW")+"" + ""+crbdata.getColumnValueAsString("HIVZDRQ")+"" + ""+crbdata.getColumnValueAsString("SZDSYYYTGR")+"" + ""+crbdata.getColumnValueAsString("SZDSYYYTGR_MC")+"" + "" //" + ""+CardID+"" + ""+crbdata.getColumnValueAsString("SZK_ZZHZ")+"" + ""+crbdata.getColumnValueAsString("SZK_ZZHZ_MC")+"" + ""+crbdata.getColumnValueAsString("SZK_SYSJG")+"" + ""+crbdata.getColumnValueAsString("SZK_SYSJG_MC")+"" + "" //HB乙肝填写此栏 +"" + ""+CardID+"" + ""+crbdata.getColumnValueAsString("HB_YXSJ")+"" + ""+crbdata.getColumnValueAsString("HB_YXSJ_MC")+"" + ""+crbdata.getColumnValueAsString("HB_SCSJ")+"" + ""+crbdata.getColumnValueAsString("HB_ALT")+"" + ""+crbdata.getColumnValueAsString("HB_1000")+"" + ""+crbdata.getColumnValueAsString("HB_1000_MC")+"" + ""+crbdata.getColumnValueAsString("HB_GCJCJG")+"" + ""+crbdata.getColumnValueAsString("HB_GCJCJG_MC")+"" + ""+crbdata.getColumnValueAsString("HB_SAG")+"" + ""+crbdata.getColumnValueAsString("HB_SAG_MC")+"" + ""+crbdata.getColumnValueAsString("HB_SCSJCHECK")+"" + "" //" //+ " "+crbdata.getColumnValueAsString("ID")+"" //+ "" //+ " "+crbdata.getColumnValueAsString("BRSY")+"" //+ " "+crbdata.getColumnValueAsString("BRSY_MC")+"" //+ " " //+ " "+crbdata.getColumnValueAsString("")+"" //+ "" //+ " "+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ " "+crbdata.getColumnValueAsString("")+"" //+ "" //+ " "+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ " " //+ " " //+ "" //+ "" //+ "< PalsySymptom >"+crbdata.getColumnValueAsString("")+"" //+ "" + "" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "33020300" //+ "330203002" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "1" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //" */ String eventId=crbdata.getColumnValueAsString("BGDWBM")+"-"+MainUtil.format(System.currentTimeMillis(), "yyyyMMddHHmmss")+"-"+crbdata.getColumnValueAsString("ID").substring(crbdata.getColumnValueAsString("ID").length() - 3); String CardID=crbdata.getColumnValueAsString("CARDID"); if ("Add".equals(type)) { CardID=""; }else { eventId=crbdata.getColumnValueAsString("EVENTID"); } //D8 2003-01-05 //D10 2003-01-05 09 //D12 2003-01-05 09:48 //D14 2003-01-05 09:48:43 String DiagnosisDate=MainUtil.format(crbdata.getColumnValueAsLong("ZDRQ"),"yyyy-MM-dd HH");//D10 String CardFillingTime=MainUtil.format(crbdata.getColumnValueAsLong("BGRQ"),"yyyy-MM-dd");//D8 String CreatingTime=MainUtil.format(crbdata.getColumnValueAsLong("CJRQ"),"yyyy-MM-dd HH:mm:ss");//D14 String OnsetDate=MainUtil.format(crbdata.getColumnValueAsLong("FBRQ"),"yyyy-MM-dd");//D8 String Customer=crbdata.getColumnValueAsString("CJR"); DxNormalDataManager crbuserdao = DaoCreator.getNormalDao(this,"crbuserdao"); crbuserdao.reload(new Object[] {Customer}); Customer=crbuserdao.getColumnValueAsString("IDENTITYID");//证件号 String IDR_OccupationCode=crbdata.getColumnValueAsString("ZY"); String OtherOccupationName=crbdata.getColumnValueAsString("QTZY"); if (!"99".equals(IDR_OccupationCode)) { OtherOccupationName=""; } DxNormalDataManager regiondic = DaoCreator.getNormalDao(this,"regiondic"); String XZDZ_SHENG=regiondic.getDicValue(crbdata.getColumnValueAsString("XZDZ_SHENG")); String XZDZ_SHI=regiondic.getDicValue(crbdata.getColumnValueAsString("XZDZ_SHI")); String XZDZ_XIAN=regiondic.getDicValue(crbdata.getColumnValueAsString("XZDZ_XIAN")); String XZDZ_ZHEN=regiondic.getDicValue(crbdata.getColumnValueAsString("XZDZ_ZHEN")); String XZDZ_CUN=regiondic.getDicValue(crbdata.getColumnValueAsString("XZDZ_CUN")); String LivingAddressName=XZDZ_SHENG+XZDZ_SHI+XZDZ_XIAN+XZDZ_ZHEN+XZDZ_CUN; str="" + "" + "" + ""+eventId+"" + "IDR" + ""+type+"" + "" + "" + "" + ""+crbdata.getColumnValueAsString("NAME")+"" + ""+sdf.format(crbdata.getColumnValueAsLong("BRDY"))+"" + ""+crbdata.getColumnValueAsString("SEX")+"" + ""+crbdata.getColumnValueAsString("SEX_MC")+"" + ""+crbdata.getColumnValueAsString("MZ")+"" + ""+crbdata.getColumnValueAsString("MZ_MC")+"" + ""+crbdata.getColumnValueAsString("GZDW")+"" + ""+IDR_OccupationCode+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" + ""+crbdata.getColumnValueAsString("ZY_MC")+"" + ""+OtherOccupationName+"" + ""+crbdata.getColumnValueAsString("JZ_NAME")+"" + ""+crbdata.getColumnValueAsString("LXDH")+"" + "51343400" + "四川省凉山彝族自治州越西县" + ""+crbdata.getColumnValueAsString("BGDWBM")+"" + ""+crbdata.getColumnValueAsString("BGDWMC")+"" + ""+crbdata.getColumnValueAsString("BRSY")+"" + ""+crbdata.getColumnValueAsString("BRSY_MC")+"" + ""+crbdata.getColumnValueAsString("XZDZ")+"" + ""+LivingAddressName+"" + ""+LivingAddressName+crbdata.getColumnValueAsString("XZDZ_XX")+"" + "1" + ""+crbdata.getColumnValueAsString("SFZH")+"" + ""+DiagnosisDate+"" + ""+crbdata.getColumnValueAsString("JBBM")+"" + ""+crbdata.getColumnValueAsString("JBMC")+"" //+ ""+crbdata.getColumnValueAsString("JBBM")+"" + "" + ""+crbdata.getColumnValueAsString("BZ")+""//备注信息 + ""+crbdata.getColumnValueAsString("SWRQ")+"" + ""+crbdata.getColumnValueAsString("TKYS")+"" + ""+CardFillingTime+"" + ""+crbdata.getColumnValueAsString("HJDZ")+"" + ""+crbdata.getColumnValueAsString("HJDZ_MC")+"" + ""+crbdata.getColumnValueAsString("HZDZ_XX")+"" + ""+crbdata.getColumnValueAsString("HJDLX")+"" + ""+crbdata.getColumnValueAsString("HJDLX_MC")+"" + "中国大陆" + ""+crbdata.getColumnValueAsString("HYZK")+"" + ""+crbdata.getColumnValueAsString("HYZK_MC")+"" + ""+crbdata.getColumnValueAsString("WHCD")+"" + ""+crbdata.getColumnValueAsString("WHCD_MC")+"" // + ""+crbdata.getColumnValueAsString("XZDZ")+" " // + ""+crbdata.getColumnValueAsString("XZDZ")+"" // + ""// // + "1" // + ""//-户籍所在村编码 + "2" + ""+crbdata.getColumnValueAsString("ZDLX")+"" + ""+crbdata.getColumnValueAsString("ZDLX_MC")+"" + ""+crbdata.getColumnValueAsString("ZYH")+"" + ""+CardID+""// + ""+CreatingTime+"" + "" // + "" + ""+crbdata.getColumnValueAsString("BLFL")+"" + ""+crbdata.getColumnValueAsString("BLFL_MC")+"" + ""+crbdata.getColumnValueAsString("QTJBMC")+"" + ""+OnsetDate+"" + ""+crbdata.getColumnValueAsString("MJZYWXTZZ")+"" + ""+crbdata.getColumnValueAsString("MJZYWXTZZ_MC")+"" + ""+Customer+"" + "" + "" + "" // + "" // + "" // + "" // + "" // + "" // + "" // + "" //艾滋病 + "" + ""+CardID+"" + ""+crbdata.getColumnValueAsString("JCS")+"" + ""+crbdata.getColumnValueAsString("JCS_MC")+"" + ""+crbdata.getColumnValueAsString("JCS_DPZSRS")+"" + ""+crbdata.getColumnValueAsString("JSC_XJCSRS")+"" + ""+crbdata.getColumnValueAsString("JSC_NNRS")+"" + ""+crbdata.getColumnValueAsString("JSC_QTNR")+"" + ""+crbdata.getColumnValueAsString("XBS")+"" + ""+crbdata.getColumnValueAsString("XBS_MC")+"" + ""+crbdata.getColumnValueAsString("ZYKNGRTJ")+"" + ""+crbdata.getColumnValueAsString("ZYKNGRTJ_MC")+"" + ""+crbdata.getColumnValueAsString("GRTJQT")+"" + ""+crbdata.getColumnValueAsString("HIV_YBLY")+"" + ""+crbdata.getColumnValueAsString("HIV_YBLY_MC")+"" + ""+crbdata.getColumnValueAsString("HIV_YBLYQT")+"" + ""+crbdata.getColumnValueAsString("SYSJCJL")+"" + ""+crbdata.getColumnValueAsString("SYSJCJL_MC")+"" + ""+crbdata.getColumnValueAsString("HIV_JCYXRQ")+"" + ""+crbdata.getColumnValueAsString("HIV_JCDW")+"" + ""+crbdata.getColumnValueAsString("HIVZDRQ")+"" + ""+crbdata.getColumnValueAsString("SZDSYYYTGR")+"" + ""+crbdata.getColumnValueAsString("SZDSYYYTGR_MC")+"" + "" //" + ""+CardID+"" + ""+crbdata.getColumnValueAsString("SZK_ZZHZ")+"" + ""+crbdata.getColumnValueAsString("SZK_ZZHZ_MC")+"" + ""+crbdata.getColumnValueAsString("SZK_SYSJG")+"" + ""+crbdata.getColumnValueAsString("SZK_SYSJG_MC")+"" + "" //HB乙肝填写此栏 +"" + ""+CardID+"" + ""+crbdata.getColumnValueAsString("HB_YXSJ")+"" + ""+crbdata.getColumnValueAsString("HB_YXSJ_MC")+"" + ""+crbdata.getColumnValueAsString("HB_SCSJ")+"" + ""+crbdata.getColumnValueAsString("HB_ALT")+"" + ""+crbdata.getColumnValueAsString("HB_1000")+"" + ""+crbdata.getColumnValueAsString("HB_1000_MC")+"" + ""+crbdata.getColumnValueAsString("HB_GCJCJG")+"" + ""+crbdata.getColumnValueAsString("HB_GCJCJG_MC")+"" + ""+crbdata.getColumnValueAsString("HB_SAG")+"" + ""+crbdata.getColumnValueAsString("HB_SAG_MC")+"" + ""+crbdata.getColumnValueAsString("HB_SCSJCHECK")+"" + "" //" //+ " "+crbdata.getColumnValueAsString("ID")+"" //+ "" //+ " "+crbdata.getColumnValueAsString("BRSY")+"" //+ " "+crbdata.getColumnValueAsString("BRSY_MC")+"" //+ " " //+ " "+crbdata.getColumnValueAsString("")+"" //+ "" //+ " "+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ " "+crbdata.getColumnValueAsString("")+"" //+ "" //+ " "+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ " " //+ " " //+ "" //+ "" //+ "< PalsySymptom >"+crbdata.getColumnValueAsString("")+"" //+ "" + "" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "33020300" //+ "330203002" //+ ""+crbdata.getColumnValueAsString("")+"" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "1" //+ ""+crbdata.getColumnValueAsString("")+"" //+ "" // + + diff --git a/WEB-INF/src/com/his/yp/HisSfx.java b/WEB-INF/src/com/his/yp/HisSfx.java index 300ea9a..9beeb8c 100644 --- a/WEB-INF/src/com/his/yp/HisSfx.java +++ b/WEB-INF/src/com/his/yp/HisSfx.java @@ -4,7 +4,6 @@ import java.sql.Types; import java.util.HashMap; import java.util.List; import java.util.Map; - import com.util.FileUpNewWindow; import com.util.GetCh2SpellBusi; import com.util.GetWubiBusi; @@ -372,6 +371,8 @@ public class HisSfx extends WatWebForm { panelBar3selectAction(); }else if("reset".equals(command)) { panelBar3resetAction(); + }else if("match".equals(command)) { + panelBar1matchAction(); } } private void panelBar3selectAction() { @@ -452,6 +453,34 @@ public class HisSfx extends WatWebForm { } combobox3.setSelectedIndex(0); } + + private void panelBar1matchAction() { + if(MainUtil.getFunctionValue((String)this.getWinParams("formid"), "Edit").equals("0")){ + setLabelShow("提示:当前模块未开通该功能项,不允许操作!"); + return; + } + if(MainUtil.getUserAuthorityValues((String)this.getWinParams("formid"), "Edit")==0){ + setLabelShow("提示:你没有该功能项权限,不允许操作!"); + return; + } + if(dbgrid1.getSelectedRow() < 0) { + setLabelShow("请选择需要编辑的机构"); + return; + } + + HisSfxEditNew form = HisSfxEditNew.newWindow(); + form.setWindow(this); + form.setWinParams("formstate", "editflag"); + form.setWinParams("dbgridmaster", dbgrid1); + form.setWinParams("companyid", MainUtil.getCurCompanyID()); + form.setWinParams("formid",this.getWinParams("formid")); + form.setWinParams("formtitle",this.getWinParams("formtitle")); + form.setWinParams("flag", "1"); + form.setFlag(100); + form.showAsModal(); + } + + protected void initEvent() { super.initEvent(); panelBar1.addActionListener(new ActionListener(){ diff --git a/WEB-INF/src/com/his/yp/HisSfx.xml b/WEB-INF/src/com/his/yp/HisSfx.xml index 9f5225f..8e00cb4 100644 --- a/WEB-INF/src/com/his/yp/HisSfx.xml +++ b/WEB-INF/src/com/his/yp/HisSfx.xml @@ -64,6 +64,7 @@ + diff --git a/WEB-INF/src/com/his/yp/HisSfxEditNew.java b/WEB-INF/src/com/his/yp/HisSfxEditNew.java index 10316f0..d9835df 100644 --- a/WEB-INF/src/com/his/yp/HisSfxEditNew.java +++ b/WEB-INF/src/com/his/yp/HisSfxEditNew.java @@ -1,7 +1,6 @@ package com.his.yp; import java.sql.Types; - import com.his.util.HisYfykUtil; import com.his.yfyk.service.YpBaseService; import com.util.GetCh2SpellBusi; @@ -242,6 +241,18 @@ public class HisSfxEditNew extends WatSDIWindow { setWindowEnable(false); } + String flag=""+getWinParams("flag"); + String mc=dbedit2.getText(); + String bm=popgridyb.getValue(); + if ("1".equals(flag)&&Delphi.isNullString(bm)) { + popgridyb.setText(mc); + String txt=popgridyb.getText(); + if(!Delphi.isNullString(txt)) txt="%"+txt.toUpperCase()+"%"; + popgridyb.setListSourceParameters(new Object[]{txt,txt,txt,txt}); + popgridyb.loadListSource(); + } + + } public void modalFunction(int flag, Object para) { diff --git a/WEB-INF/src/com/his/yp/HisYpxxSFXInfoForm.java b/WEB-INF/src/com/his/yp/HisYpxxSFXInfoForm.java index 30ba977..30f3796 100644 --- a/WEB-INF/src/com/his/yp/HisYpxxSFXInfoForm.java +++ b/WEB-INF/src/com/his/yp/HisYpxxSFXInfoForm.java @@ -193,6 +193,18 @@ public class HisYpxxSFXInfoForm extends WatWebForm { setWindowEnable(false); } + + String flag=""+getWinParams("flag"); + String mc=dbedit2.getText(); + String ybbm=popgridyb.getValue(); + if ("1".equals(flag)&&Delphi.isNullString(ybbm)) { + popgridyb.setText(mc); + String txt=popgridyb.getText(); + if(!Delphi.isNullString(txt)) txt="%"+txt.toUpperCase()+"%"; + popgridyb.setListSourceParameters(new Object[]{txt,txt,txt,txt}); + popgridyb.loadListSource(); + } + } public void modalFunction(int flag, Object para) { diff --git a/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderInputForm.xml b/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderInputForm.xml index 747165b..7b69242 100644 --- a/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderInputForm.xml +++ b/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderInputForm.xml @@ -71,7 +71,7 @@ 单次剂量 剂量单位 用法 - 频次 + 频次 首日 疗程 备注 diff --git a/WEB-INF/src/com/his/zy/service/ZyYzService.java b/WEB-INF/src/com/his/zy/service/ZyYzService.java index 3558bec..645bce8 100644 --- a/WEB-INF/src/com/his/zy/service/ZyYzService.java +++ b/WEB-INF/src/com/his/zy/service/ZyYzService.java @@ -7085,7 +7085,14 @@ public class ZyYzService { String mc = zyyzOrderMapper.getDataManager().getColumnValueAsString(currrow,"mc"); GzzNPCService service = GzzNPCService.getInstance(MainUtil.getCurCompanyID()); - boolean zyyzdwzyzshow = service.isZygzzYzdshow(); + boolean isprintpc = service.isYZNRPcbmShow(); + Boolean pcbyzw = service.isYZNRPcByChinese(); + if(isprintpc && !pcbyzw) { + int in = yypcDic.find("BM", yzpc); + if(in >= 0) { + yzpc = yypcDic.getColumnValueAsString(in,"PRINTNAME"); + } + } if(service.isNoShowGGInYzd()) { if(!Delphi.isNullString(mc)) { yzmc = mc; @@ -7106,6 +7113,8 @@ public class ZyYzService { if(!Delphi.isNullString(yzbz) && !"3".equals(yzlx) && !"8".equals(yzlx) && !"9".equals(yzlx)) { yzbz = yzbz.replaceAll("null", ""); + yzbz = yzbz.replaceAll("nullnull", ""); + yzbz = yzbz.replaceAll("nullnullnull", ""); if(!Delphi.isNullString(yzbz)) { yzbz = " 嘱托:"+yzbz; } @@ -7113,7 +7122,7 @@ public class ZyYzService { } String content = ""; - Boolean pcbmshow = service.isYzdPcbmShow(); + if("1".equals(yzlx)) {//草药 DxNormalDataManager zycfbzdic = DaoCreator.getNormalDao("zycfbzdic"); zycfbzdic.reloadByDictionary("MC", "BH"); @@ -7148,9 +7157,12 @@ public class ZyYzService { } - if(!pcbmshow) { + if(pcbyzw) { yzpc = yypcDic.getDicValue(yzpc); } + if(!pcbyzw && service.yzdRmfhShow()) { + yzpc = yzpc.replace(".",""); + } content = yzmcstr+" "+yzyf+" "+yzpc; if("1".equals(yzcl)) { if(!Delphi.isNullString(yzpc)) { @@ -7178,30 +7190,34 @@ public class ZyYzService { if("3".equals(yzcl)) { content = "(出院带药)"; } - if(!pcbmshow) { + if(pcbyzw) { yzpc = yypcDic.getDicValue(yzpc); } + if(!pcbyzw && service.yzdRmfhShow()) { + yzpc = yzpc.replace(".",""); + } content += yzmc +" "+yzjl+yzjldw+" "+yzyf+" "+yzpc; - if("1".equals(yzcl)) { - if(!Delphi.isNullString(yzpc)) { - content += " 首日:"+srzx; - } - content += " 一天:"+yzsl+yzdw; - if(!iszyz) { - zyyzOrderMapper.getDataManager().setCalcFieldValue(currrow,"xzsj", Delphi.getDateTimeStr(zyyzOrderMapper.getYZXZSJ(currrow))); - } - }else if("2".equals(yzcl)) { - content += " "+yzlc+" 共:"+yzsl+yzdw; - if(!iszyz) { - zyyzOrderMapper.getDataManager().setCalcFieldValue(currrow,"xzsj", Delphi.getDateTimeStr(zyyzOrderMapper.getYZXZSJ(currrow))); - } - }else if("3".equals(yzcl)) { - content += " "+yzlc+" 共:"+yzsl+yzdw; - if(!iszyz) { - zyyzOrderMapper.getDataManager().setCalcFieldValue(currrow,"xzsj", Delphi.getDateTimeStr(zyyzOrderMapper.getYZXZSJ(currrow))); + if(!service.isZygzzYzdshow()) { + if("1".equals(yzcl)) { + if(!Delphi.isNullString(yzpc)) { + content += " 首日:"+srzx; + } + content += " 一天:"+yzsl+yzdw; + if(!iszyz) { + zyyzOrderMapper.getDataManager().setCalcFieldValue(currrow,"xzsj", Delphi.getDateTimeStr(zyyzOrderMapper.getYZXZSJ(currrow))); + } + }else if("2".equals(yzcl)) { + content += " "+yzlc+" 共:"+yzsl+yzdw; + if(!iszyz) { + zyyzOrderMapper.getDataManager().setCalcFieldValue(currrow,"xzsj", Delphi.getDateTimeStr(zyyzOrderMapper.getYZXZSJ(currrow))); + } + }else if("3".equals(yzcl)) { + content += " "+yzlc+" 共:"+yzsl+yzdw; + if(!iszyz) { + zyyzOrderMapper.getDataManager().setCalcFieldValue(currrow,"xzsj", Delphi.getDateTimeStr(zyyzOrderMapper.getYZXZSJ(currrow))); + } } } - content += yzbz; } diff --git a/WEB-INF/src/com/his/zy/zyyzdmanage/ZyDoctorOrderNewWindow.java b/WEB-INF/src/com/his/zy/zyyzdmanage/ZyDoctorOrderNewWindow.java index b806f73..99c5bfa 100644 --- a/WEB-INF/src/com/his/zy/zyyzdmanage/ZyDoctorOrderNewWindow.java +++ b/WEB-INF/src/com/his/zy/zyyzdmanage/ZyDoctorOrderNewWindow.java @@ -137,6 +137,10 @@ public class ZyDoctorOrderNewWindow extends WatWebForm { }else{ dbgrid1.setHeadPageButtonVisible("save", false); } + + panelBar2.setPanelButtonVisible("open",true); + panelBar2.setPanelButtonVisible("close",false); + setWinParams("xdbkflag", 0); } private void initData(boolean isClear,boolean isTime) { @@ -217,7 +221,7 @@ public class ZyDoctorOrderNewWindow extends WatWebForm { String yzfjsm = zyyzViewOrderDaoMapper.getYZFJSM(i); String yzlb = zyyzViewOrderDaoMapper.getYZLB(i); String yzxpkey = zyyzViewOrderDaoMapper.getYZXPKEY(i); - + String yzbz = zyyzViewOrderDaoMapper.getYZBZ(i); if("006".equals(yzfjsm)) { continue;//补录药品不显示在医嘱单里面 } @@ -241,16 +245,8 @@ public class ZyDoctorOrderNewWindow extends WatWebForm { zyDoctorOrderDao.setColumnValue("YZXH", zyDoctorOrderDao.getRowCount()+1); zyDoctorOrderDao.setColumnValue("YZCL", zyyzViewOrderDaoMapper.getYZCL(i)); zyDoctorOrderDao.setColumnValue("YZKS", zyyzViewOrderDaoMapper.getHZSZKS(i)); - if(("01".equals(yzlb) || "02".equals(yzlb) || "03".equals(yzlb)) || !service.isZygzzYzdshow()) { - zyDoctorOrderDao.setColumnValue("YZNR", zyyzViewOrderDaoMapper.getDataManager().getCalcFieldValue(i,"yzxshow"));//""+zyyzViewOrderDaoMapper.getDataManager().getCalcFieldValue(i,"zbs")+ - }else { - hisyzxdao.setNormalParameters(new Object[]{model.getCompanyId(),yzxpkey}); - hisyzxdao.reload(); - if(hisyzxdao.getRowCount() > 0) { - zyDoctorOrderDao.setColumnValue("YZNR", hisyzxdao.getColumnValueAsString(0,"MC")); - } - - } + + zyDoctorOrderDao.setColumnValue("YZNR", zyyzViewOrderDaoMapper.getDataManager().getCalcFieldValue(i,"yzxshow"));//""+zyyzViewOrderDaoMapper.getDataManager().getCalcFieldValue(i,"zbs")+ zyDoctorOrderDao.setColumnValue("XZYS", jgrydicdao.getDicValue(zyyzViewOrderDaoMapper.getYZXZYS(i))); zyDoctorOrderDao.setColumnValue("XZRQ", Delphi.getDateStr(zyyzViewOrderDaoMapper.getYZXZSJ(i))); @@ -807,6 +803,8 @@ public class ZyDoctorOrderNewWindow extends WatWebForm { model.setCompanyid(MainUtil.getCurCompanyID()); model.setCompanyname(MainUtil.getCurCompanyName()); model.setPageno(page+1); + + model.setXdbkflag(""+getWinParams("xdbkflag")); // model.setQdbqkb(yzdparamsService.isQDBQKB()); // model.setDyqmys(yzdparamsService.isDYQMYS()); // model.setDyqmrq(yzdparamsService.isDYQMRQ()); @@ -1018,8 +1016,15 @@ public class ZyDoctorOrderNewWindow extends WatWebForm { } }else if("init".equals(command)) { initData(false,false); + }else if("open".equals(command)) { + setWinParams("xdbkflag", "1"); + panelBar2.setPanelButtonVisible("open", false); + panelBar2.setPanelButtonVisible("close", true); + }else if("close".equals(command)) { + setWinParams("xdbkflag", "0"); + panelBar2.setPanelButtonVisible("open", true); + panelBar2.setPanelButtonVisible("close", false); } - } private void closeAction() { diff --git a/WEB-INF/src/com/his/zy/zyyzdmanage/ZyDoctorOrderNewWindow.xml b/WEB-INF/src/com/his/zy/zyyzdmanage/ZyDoctorOrderNewWindow.xml index 028af4e..eb4d825 100644 --- a/WEB-INF/src/com/his/zy/zyyzdmanage/ZyDoctorOrderNewWindow.xml +++ b/WEB-INF/src/com/his/zy/zyyzdmanage/ZyDoctorOrderNewWindow.xml @@ -71,7 +71,9 @@ - + + + diff --git a/WEB-INF/src/com/his/zy/zyyzdmanage/model/YzdShowModel.java b/WEB-INF/src/com/his/zy/zyyzdmanage/model/YzdShowModel.java index 6f700c0..c3dd2c8 100644 --- a/WEB-INF/src/com/his/zy/zyyzdmanage/model/YzdShowModel.java +++ b/WEB-INF/src/com/his/zy/zyyzdmanage/model/YzdShowModel.java @@ -27,6 +27,7 @@ public class YzdShowModel { // private boolean dyqmys;//打印签名医生 // private boolean dyqmrq;//打印签名日期 // private int rownum;//打印总行数 + private String xdbkflag;//续打边框标志开关 private List pageInfoList = new ArrayList(); public DxDataManager getZyDoctorOrderPrintDao() { @@ -41,6 +42,15 @@ public class YzdShowModel { public void setPrintContent(String printContent) { this.printContent = printContent; } + + public void setXdbkflag(String xdbkflag) { + this.xdbkflag = xdbkflag; + } + + public String getXdbkflag() { + return xdbkflag; + } + public boolean isIsxd() { return isxd; } diff --git a/WEB-INF/src/com/his/zy/zyyzdmanage/service/YzdShowService.java b/WEB-INF/src/com/his/zy/zyyzdmanage/service/YzdShowService.java index ce23078..44fc07e 100644 --- a/WEB-INF/src/com/his/zy/zyyzdmanage/service/YzdShowService.java +++ b/WEB-INF/src/com/his/zy/zyyzdmanage/service/YzdShowService.java @@ -283,19 +283,19 @@ public class YzdShowService { String cfh = zyDoctorOrderPrintDao.getColumnValueAsString(i,"CFH"); // if(!Delphi.isNullString(yztzh) && !Delphi.isNullString(cfh)) { // String key = cfh+yztzh; - if(!Delphi.isNullString(yztzh)) { - String key = yztzh; - if(!tzbzMap.containsKey(key)) { - tzbzMap.put(key,i); - }else{ - String yznr = zyDoctorOrderPrintDao.getColumnValueAsString(i,"YZNR"); - - int fyzindex = tzbzMap.get(key); - zyDoctorOrderPrintDao.setColumnValue(fyzindex,"YZNR",zyDoctorOrderPrintDao.getColumnValueAsString(fyzindex,"YZNR")+"
"+yznr); - - zyDoctorOrderPrintDao.setCalcFieldValue(i,"select", "0"); - } - } +// if(!Delphi.isNullString(yztzh)) { +// String key = yztzh; +// if(!tzbzMap.containsKey(key)) { +// tzbzMap.put(key,i); +// }else{ +// String yznr = zyDoctorOrderPrintDao.getColumnValueAsString(i,"YZNR"); +// +// int fyzindex = tzbzMap.get(key); +// zyDoctorOrderPrintDao.setColumnValue(fyzindex,"YZNR",zyDoctorOrderPrintDao.getColumnValueAsString(fyzindex,"YZNR")+"
"+yznr); +// +// zyDoctorOrderPrintDao.setCalcFieldValue(i,"select", "0"); +// } +// } } boolean isprinttzsj = model.isIsprinttzsj();//是否套打停嘱时间 @@ -312,6 +312,8 @@ public class YzdShowService { } int dyrownum = 0; for(int i = 0;i < zyDoctorOrderPrintDao.getRowCount();i++) { + zyDoctorOrderPrintDao.setSort( "YZXH asc"); + zyDoctorOrderPrintDao.sort(); if("0".equals(zyDoctorOrderPrintDao.getCalcFieldValue(i,"select"))) { continue; } @@ -333,7 +335,15 @@ public class YzdShowService { String tzys = zyDoctorOrderPrintDao.getColumnValueAsString(i,"TZYS"); String tzhs = zyDoctorOrderPrintDao.getColumnValueAsString(i,"TZHS"); - + String tzbzzd = zyDoctorOrderPrintDao.getColumnValueAsString(i,"TZBZ"); + String tzbz = ""; + if("001".equals(tzbzzd)) { + tzbz = "┓"; + }else if("002".equals(tzbzzd)) { + tzbz = "┃"; + }else if("003".equals(tzbzzd)) { + tzbz = "┛"; + } if(!zyDoctorOrderSetupDaoMapper.isCZTZYSQM()) { tzys = ""; } @@ -404,7 +414,7 @@ public class YzdShowService { temp = temp.replaceAll("\\^TZHS\\^", tzhs); temp = temp.replaceAll("\\^YZNR\\^", ""); - + temp = temp.replaceAll("\\^TZBZ\\^", ""); String yzdybz = zyDoctorOrderPrintDao.getColumnValueAsString(i,"YZDYBZ"); if("1".equals(yzdybz)) {//已经打印的才会进行补打停嘱时间,没有打印的,不用进行补打 String yztz = ystzrq+" "+ystzsj; @@ -436,7 +446,7 @@ public class YzdShowService { temp = temp.replaceAll("\\^YZNR\\^", yznr); - + temp = temp.replaceAll("\\^TZBZ\\^", tzbz); if(isxd) { String yzdybz = zyDoctorOrderPrintDao.getColumnValueAsString(i,"YZDYBZ"); @@ -445,8 +455,12 @@ public class YzdShowService { temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: transparent 1px solid; BORDER-BOTTOM: transparent 1px solid; BORDER-LEFT: transparent 1px solid"); }else{ temp = temp.replaceAll("\\$color\\$", "color:#0000FF"); - temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: #0000ff 1px solid; BORDER-BOTTOM: #0000ff 1px solid; BORDER-LEFT: #0000ff 1px solid"); - + //temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: #0000ff 1px solid; BORDER-BOTTOM: #0000ff 1px solid; BORDER-LEFT: #0000ff 1px solid"); + if("0".equals(model.getXdbkflag()) ) { + temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: #FFFFFF 1px solid; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #FFFFFF 1px solid"); + }else { + temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: #0000ff 1px solid; BORDER-BOTTOM: #0000ff 1px solid; BORDER-LEFT: #0000ff 1px solid"); + } } }else{ temp = temp.replaceAll("\\$color\\$", "color:#0000FF"); @@ -454,10 +468,6 @@ public class YzdShowService { } } - - - - yzcontent += temp; } @@ -483,7 +493,7 @@ public class YzdShowService { temp = temp.replaceAll("\\^YZNR\\^", ""); - + temp = temp.replaceAll("\\^TZBZ\\^", ""); temp = temp.replaceAll("\\$color\\$", "color:#0000FF"); temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: #0000ff 1px solid; BORDER-BOTTOM: #0000ff 1px solid; BORDER-LEFT: #0000ff 1px solid"); @@ -522,19 +532,19 @@ public class YzdShowService { String cfh = zyDoctorOrderPrintDao.getColumnValueAsString(i,"CFH"); // if(!Delphi.isNullString(yztzh) && !Delphi.isNullString(cfh)) { // String key = cfh+yztzh; - if(!Delphi.isNullString(yztzh)) { - String key = yztzh; - if(!tzbzMap.containsKey(key)) { - tzbzMap.put(key,i); - }else{ - String yznr = zyDoctorOrderPrintDao.getColumnValueAsString(i,"YZNR"); - - int fyzindex = tzbzMap.get(key); - zyDoctorOrderPrintDao.setColumnValue(fyzindex,"YZNR",zyDoctorOrderPrintDao.getColumnValueAsString(fyzindex,"YZNR")+"
"+yznr); - - zyDoctorOrderPrintDao.setCalcFieldValue(i,"select", "0"); - } - } +// if(!Delphi.isNullString(yztzh)) { +// String key = yztzh; +// if(!tzbzMap.containsKey(key)) { +// tzbzMap.put(key,i); +// }else{ +// String yznr = zyDoctorOrderPrintDao.getColumnValueAsString(i,"YZNR"); +// +// int fyzindex = tzbzMap.get(key); +// zyDoctorOrderPrintDao.setColumnValue(fyzindex,"YZNR",zyDoctorOrderPrintDao.getColumnValueAsString(fyzindex,"YZNR")+"
"+yznr); +// +// zyDoctorOrderPrintDao.setCalcFieldValue(i,"select", "0"); +// } +// } } ZyDoctorOrderSetupDaoMapper zyDoctorOrderSetupDaoMapper = new ZyDoctorOrderSetupDaoMapper(new Object[]{model.getCompanyid()}); @@ -556,7 +566,8 @@ public class YzdShowService { if("0".equals(zyDoctorOrderPrintDao.getCalcFieldValue(i,"select"))) { continue; } - + zyDoctorOrderPrintDao.setSort( "YZXH asc"); + zyDoctorOrderPrintDao.sort(); String temp = body; String xzrq = zyDoctorOrderPrintDao.getColumnValueAsString(i,"XZRQ"); String xzsj = zyDoctorOrderPrintDao.getColumnValueAsString(i,"XZSJ"); @@ -579,7 +590,15 @@ public class YzdShowService { String zxhs = zyDoctorOrderPrintDao.getColumnValueAsString(i,"ZXHS"); String zxrq = zyDoctorOrderPrintDao.getColumnValueAsString(i,"ZXRQ"); String zxsj = zyDoctorOrderPrintDao.getColumnValueAsString(i,"ZXSJ"); - + String tzbzzd = zyDoctorOrderPrintDao.getColumnValueAsString(i,"TZBZ"); + String tzbz = ""; + if("001".equals(tzbzzd)) { + tzbz = "┓"; + }else if("002".equals(tzbzzd)) { + tzbz = "┃"; + }else if("003".equals(tzbzzd)) { + tzbz = "┛"; + } if(!zyDoctorOrderSetupDaoMapper.isLZHSQM()) { jdhs = ""; zxhs = ""; @@ -643,7 +662,7 @@ public class YzdShowService { temp = temp.replaceAll("\\^ZXHS\\^", zxhs); temp = temp.replaceAll("\\^ZXSJ\\^", zxsj); - + temp = temp.replaceAll("\\^TZBZ\\^", tzbz); if(isxd) { String yzdybz = zyDoctorOrderPrintDao.getColumnValueAsString(i,"YZDYBZ"); if("1".equals(yzdybz)) { @@ -651,8 +670,12 @@ public class YzdShowService { temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: transparent 1px solid; BORDER-BOTTOM: transparent 1px solid; BORDER-LEFT: transparent 1px solid"); }else{ temp = temp.replaceAll("\\$color\\$", "color:#0000FF"); - temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: #0000ff 1px solid; BORDER-BOTTOM: #0000ff 1px solid; BORDER-LEFT: #0000ff 1px solid"); - + //temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: #0000ff 1px solid; BORDER-BOTTOM: #0000ff 1px solid; BORDER-LEFT: #0000ff 1px solid"); + if("0".equals(model.getXdbkflag()) ) { + temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: #FFFFFF 1px solid; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #FFFFFF 1px solid"); + }else { + temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: #0000ff 1px solid; BORDER-BOTTOM: #0000ff 1px solid; BORDER-LEFT: #0000ff 1px solid"); + } } }else{ temp = temp.replaceAll("\\$color\\$", "color:#0000FF"); @@ -687,7 +710,7 @@ public class YzdShowService { temp = temp.replaceAll("\\^ZXHS\\^", ""); temp = temp.replaceAll("\\^ZXSJ\\^", ""); - + temp = temp.replaceAll("\\^TZBZ\\^", ""); temp = temp.replaceAll("\\$color\\$", "color:#0000FF"); temp = temp.replaceAll("\\$border\\$","BORDER-TOP: transparent 1px solid; BORDER-RIGHT: #0000ff 1px solid; BORDER-BOTTOM: #0000ff 1px solid; BORDER-LEFT: #0000ff 1px solid"); diff --git a/release/20241023_1403.text b/release/20241023_1403.text new file mode 100644 index 0000000..a03c088 --- /dev/null +++ b/release/20241023_1403.text @@ -0,0 +1,43 @@ +20241023_1403 + +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +develop/lyx_20241025_bbgj +=================== +1.药品入库 增加医嘱项过滤、收费项停用过滤 +2.门诊住院共济撤销补充冲销信息 +3.收入分类统计表 调整 +4.病案附页调整,离院时透析血透腹透尿素氮值 增加数值判断 +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> + +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +develop/lyx_20241028_ybpp +=================== +1.传染病上报调整,Mod修改无权限 暂时上报都默认为Add重新上传 +2.药品项、收费项增加 快速医保匹配 +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> + +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +develop/hrl_20241028_yzdtz +=================== +1.医嘱单调整 +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> + +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +develop/hrl20241028_yzdtz2 +=================== +1.医嘱单调整 +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> + +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +develop/hrl_20241029_yzdshow +=================== +医嘱单调整 +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> + +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +develop/hrl_20241030_zyyzshow_1 +=================== +医嘱单调整:1.增加去除'.'符号,2.增加医嘱单频次显示打印名称。3.医嘱单增加同组列。4.增加是否显示边框开关 +住院医嘱录入:频次pop增加打印名称 +医嘱单频次是否以中文显示开关 +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> \ No newline at end of file diff --git a/sql/202410/20241023_1357.sql b/sql/202410/20241023_1357.sql new file mode 100644 index 0000000..1a1ac4b --- /dev/null +++ b/sql/202410/20241023_1357.sql @@ -0,0 +1,2 @@ +--测试用 +--测试用1 \ No newline at end of file