From b793104c0f158ab2fab8f601b8f64981ac9259cf Mon Sep 17 00:00:00 2001 From: Ray Shaw Date: Wed, 25 Dec 2024 17:52:31 +0800 Subject: [PATCH 1/6] develop/xl_20241225_hcpcxz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 耗材盘存入库单位帐盘数以允许小数 --- WEB-INF/conf/sysds_mms.xml | 4 ++-- release/20241225_1153.text | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/WEB-INF/conf/sysds_mms.xml b/WEB-INF/conf/sysds_mms.xml index 775b607..50febbb 100644 --- a/WEB-INF/conf/sysds_mms.xml +++ b/WEB-INF/conf/sysds_mms.xml @@ -1490,7 +1490,7 @@ select a.PKEY,a.PDPKEY,a.XH,a.SFX_BM,a.DJH,a.KSKC_PC_PKEY,a.DW,a.ZPS,a.RKDWZPS,a - + @@ -1660,7 +1660,7 @@ select b.PKEY,b.PH,b.YXQ,b.SL,b.KYSL,b.DJSL,c.BM,c.MC,c.JBDW,c.ZHXS,c.RKDW,c.JG, - + diff --git a/release/20241225_1153.text b/release/20241225_1153.text index a29b5fe..d82b6dc 100644 --- a/release/20241225_1153.text +++ b/release/20241225_1153.text @@ -45,6 +45,9 @@ develop/xl_20241225_bbxg1 ........................................................................................................................................... <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +develop/xl_20241225_hcpcxz + +耗材盘存入库单位帐盘数以允许小数 ........................................................................................................................................... <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< From 2cfd43c53b2c758e97b2f631f1d467fc3eac9afd Mon Sep 17 00:00:00 2001 From: Ray Shaw Date: Wed, 25 Dec 2024 17:55:25 +0800 Subject: [PATCH 2/6] develop/lyx_20241225_zfjsd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.增加自费结算单模板 --- WEB-INF/conf/sysds_Report_template.xml | 3 ++- WEB-INF/src/com/his/yb/util/GdYbRequest.java | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/WEB-INF/conf/sysds_Report_template.xml b/WEB-INF/conf/sysds_Report_template.xml index 82fa39c..e546c4c 100644 --- a/WEB-INF/conf/sysds_Report_template.xml +++ b/WEB-INF/conf/sysds_Report_template.xml @@ -2826,7 +2826,7 @@ select '' 费用类别1,'' 金额1,'' 费用类别2,'' 金额2,'' 费用类别3, - select '' mtbz,'' bzbm,'' ndje1,'' ndje2,'' ndje3,'' ndje4,'' jbr,'' mdtrt_id,'' setl_id,'' xm,'' xb,'' nl,'' sfzh,'' sbkh,'' cbd,'' xz,'' rylx,'' jyd,'' jgbm,'' jgmc,'' yydj,'' ryfs,'' zyh,'' cyks,'' zyzd,'' cyzd,'' ryrq,'' cyrq,'' zyts,'' jssj,'' zfy01,'' zf01,'' xx01,'' cxj01,'' zfy02,'' zf02,'' xx02,'' cxj02,'' zfy03,'' zf03,'' xx03,'' cxj03,'' zfy04,'' zf04,'' xx04,'' cxj04,'' zfy05,'' zf05,'' xx05,'' cxj05,'' zfy06,'' zf06,'' xx06,'' cxj06,'' zfy07,'' zf07,'' xx07,'' cxj07,'' zfy08,'' zf08,'' xx08,'' cxj08,'' zfy09,'' zf09,'' xx09,'' cxj09,'' zfy10,'' zf10,'' xx10,'' cxj10,'' zfy11,'' zf11,'' xx11,'' cxj11,'' zfy12,'' zf12,'' xx12,'' cxj12,'' zfy13,'' zf13,'' xx13,'' cxj13,'' zfy14,'' zf14,'' xx14,'' cxj14,'' zfy,'' tcjj,'' xxzf,'' cxj,'' zf,'' jjzf,'' xjzf,'' qfx,'' jj1,'' jj2,'' jj3,'' jj4,'' jj5,'' jj6,'' jj7,'' jjje1,'' jjje2,'' jjje3,'' jjje4,'' jjje5,'' jjje6,'' jjje7,'' jjje8,'' jjje9,'' jjje10,'' dysj from dual where 1=2 + select '' mtbz,'' bzbm,'' ndje1,'' ndje2,'' ndje3,'' ndje4,'' jbr,'' mdtrt_id,'' setl_id,'' xm,'' xb,'' nl,'' sfzh,'' sbkh,'' cbd,'' xz,'' rylx,'' jyd,'' jgbm,'' jgmc,'' yydj,'' ryfs,'' zyh,'' cyks,'' zyzd,'' cyzd,'' ryrq,'' cyrq,'' zyts,'' jssj,'' zfy01,'' zf01,'' xx01,'' cxj01,'' zfy02,'' zf02,'' xx02,'' cxj02,'' zfy03,'' zf03,'' xx03,'' cxj03,'' zfy04,'' zf04,'' xx04,'' cxj04,'' zfy05,'' zf05,'' xx05,'' cxj05,'' zfy06,'' zf06,'' xx06,'' cxj06,'' zfy07,'' zf07,'' xx07,'' cxj07,'' zfy08,'' zf08,'' xx08,'' cxj08,'' zfy09,'' zf09,'' xx09,'' cxj09,'' zfy10,'' zf10,'' xx10,'' cxj10,'' zfy11,'' zf11,'' xx11,'' cxj11,'' zfy12,'' zf12,'' xx12,'' cxj12,'' zfy13,'' zf13,'' xx13,'' cxj13,'' zfy14,'' zf14,'' xx14,'' cxj14,'' zfy,'' tcjj,'' xxzf,'' cxj,'' zf,'' jjzf,'' xjzf,'' qfx,'' jj1,'' jj2,'' jj3,'' jj4,'' jj5,'' jj6,'' jj7,'' jjje1,'' jjje2,'' jjje3,'' jjje4,'' jjje5,'' jjje6,'' jjje7,'' jjje8,'' jjje9,'' jjje10,'' dysj,'' brlx from dual where 1=2 @@ -2941,6 +2941,7 @@ select '' 费用类别1,'' 金额1,'' 费用类别2,'' 金额2,'' 费用类别3, + diff --git a/WEB-INF/src/com/his/yb/util/GdYbRequest.java b/WEB-INF/src/com/his/yb/util/GdYbRequest.java index 74d44e6..2982b5d 100644 --- a/WEB-INF/src/com/his/yb/util/GdYbRequest.java +++ b/WEB-INF/src/com/his/yb/util/GdYbRequest.java @@ -26,10 +26,8 @@ import java.util.zip.ZipEntry; import java.util.zip.ZipFile; import java.util.zip.ZipInputStream; import java.util.zip.ZipOutputStream; - import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; - import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.NameValuePair; @@ -43,7 +41,6 @@ import org.apache.http.client.methods.HttpRequestBase; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.util.EntityUtils; - import com.cloud.apigateway.sdk.utils.Client; import com.cloud.apigateway.sdk.utils.Request; import com.his.util.SSLProtocolSocketFactory; @@ -68,7 +65,6 @@ import com.wat.core.util.MathUtil; import com.wat.delphi.util.Delphi; import com.wat.delphi.util.MoneyUtil; import com.wat.delphi.util.WatHttpClientUtil; - import sun.misc.BASE64Encoder; public class GdYbRequest { @@ -5652,6 +5648,7 @@ public class GdYbRequest { DesktopPageTaskbarForm pform = (DesktopPageTaskbarForm)AppInstance.getInstance().getWatDesktopTaskBar(); String type="四川结算单"; + if(mdtrt_id.startsWith("ZF")) type="四川自费结算单"; DxNormalDataManager reportTemplateDao = DaoCreator.getNormalDao("reportTemplateDao"); reportTemplateDao.setNormalParameters(new Object[] {companyid,type}); reportTemplateDao.reload(); From 16da02162539b884b2497836480cbefdaa924e7d Mon Sep 17 00:00:00 2001 From: Ray Shaw Date: Wed, 25 Dec 2024 17:55:33 +0800 Subject: [PATCH 3/6] develop/lyx_20241225_zfjsd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.增加自费结算单模板 --- release/20241225_1153.text | 3 +++ 1 file changed, 3 insertions(+) diff --git a/release/20241225_1153.text b/release/20241225_1153.text index d82b6dc..5d0544f 100644 --- a/release/20241225_1153.text +++ b/release/20241225_1153.text @@ -51,6 +51,9 @@ develop/xl_20241225_hcpcxz ........................................................................................................................................... <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +develop/lyx_20241225_zfjsd + +1.增加自费结算单模板 ........................................................................................................................................... <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< From 6767e89ab764cbc8d756788156dbc40fc4f1bd08 Mon Sep 17 00:00:00 2001 From: Ray Shaw Date: Fri, 27 Dec 2024 16:09:12 +0800 Subject: [PATCH 4/6] develop/lyx_20241225_zycfdp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.住院医嘱点评调整:只查询出院患者、增加医嘱类型、同组号、停止医嘱时间、皮试结果 --- WEB-INF/conf/sysds_his_mzsf.xml | 3 ++- WEB-INF/src/com/his/mz/cfdp/manage/ZyCfdpWindow.xml | 4 ++++ release/20241225_1153.text | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/WEB-INF/conf/sysds_his_mzsf.xml b/WEB-INF/conf/sysds_his_mzsf.xml index 6456978..e38d837 100644 --- a/WEB-INF/conf/sysds_his_mzsf.xml +++ b/WEB-INF/conf/sysds_his_mzsf.xml @@ -2726,7 +2726,8 @@ where JGID=? and jzlx=? and (cxzt='1' and OLD_SETL_ID is not null) order by zd WHERE a.jzlx='Z' and b.YZSHZT=1 and a.JGID=? and (YZLX='0' or YZLX='1') and (b.yzlb='01' or b.yzlb='02' or b.yzlb='03') - and a.JJRQ between ? and ? + and a.CYRQ between ? and ? + and a.JZZT='C' #select# order by a.isjz desc,a.ZYNO,a.JJRQ desc) where nvl(yzjzpkey,0) != 0 ]]> diff --git a/WEB-INF/src/com/his/mz/cfdp/manage/ZyCfdpWindow.xml b/WEB-INF/src/com/his/mz/cfdp/manage/ZyCfdpWindow.xml index 1dedc0e..5aa4c49 100644 --- a/WEB-INF/src/com/his/mz/cfdp/manage/ZyCfdpWindow.xml +++ b/WEB-INF/src/com/his/mz/cfdp/manage/ZyCfdpWindow.xml @@ -192,6 +192,8 @@ 序号 处方 + 长临 + 医嘱同组号 医嘱编码 医嘱 单价 @@ -199,9 +201,11 @@ 数量单位 金额 医嘱备注 + 皮试结果 基药 抗生素 开嘱时间 + 停嘱时间 开单科室 开单医生 diff --git a/release/20241225_1153.text b/release/20241225_1153.text index 5d0544f..b6dc962 100644 --- a/release/20241225_1153.text +++ b/release/20241225_1153.text @@ -57,6 +57,9 @@ develop/lyx_20241225_zfjsd ........................................................................................................................................... <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +develop/lyx_20241225_zycfdp + +1.住院医嘱点评调整:只查询出院患者、增加医嘱类型、同组号、停止医嘱时间、皮试结果 ........................................................................................................................................... <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< From 53914e14371b989edc0dbbad010cc19c0d4519a3 Mon Sep 17 00:00:00 2001 From: Ray Shaw Date: Fri, 27 Dec 2024 16:11:39 +0800 Subject: [PATCH 5/6] develop/hrl_20241226_bjhzcrb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 就诊患者艾滋/梅毒/乙肝记录 门诊日志统计,艾滋/梅毒/乙肝 阳性变红 住院退药单查询页面 病区过滤不生效 --- WEB-INF/conf/sysds_his.xml | 7 +++- WEB-INF/conf/sysds_his_gzz.xml | 6 ++- .../src/com/his/mz/gzzmanage/HisMzJbzdForm.java | 49 ++++++++++++++++++++++ WEB-INF/src/com/his/mz/gzzmanage/HisMzJbzdForm.xml | 33 +++++++++++++++ .../src/com/his/zy/zyyfcxmanage/ZyTydFindForm.xml | 2 +- .../normalQuery/mzsr/MzrzCountForm.java | 2 +- .../normalQuery/mzsr/MzrzCountForm.xml | 2 +- release/20241225_1153.text | 5 +++ 8 files changed, 100 insertions(+), 6 deletions(-) diff --git a/WEB-INF/conf/sysds_his.xml b/WEB-INF/conf/sysds_his.xml index 9825335..08d538d 100644 --- a/WEB-INF/conf/sysds_his.xml +++ b/WEB-INF/conf/sysds_his.xml @@ -4970,7 +4970,7 @@ bl.XBS , bl.CLCS, sum(decode(l.XH, null, 0, 1)) jcgs, - nvl(SUBSTR(a.JZNL, 1, INSTR(a.JZNL, '岁') - 1),a.JZNL) nl + nvl(SUBSTR(a.JZNL, 1, INSTR(a.JZNL, '岁') - 1),a.JZNL) nl,nvl(a.IFYG,0) IFYG,nvl(a.IFMD,0) IFMD ,nvl(a.IFAZ,0) IFAZ FROM HIS_JZ_BASEINFO a LEFT JOIN HIS_HZINFO b ON @@ -5015,7 +5015,7 @@ bl.XT , bl.ZS , bl.XBS , - bl.CLCS + bl.CLCS,nvl(a.IFYG,0),nvl(a.IFMD,0) ,nvl(a.IFAZ,0) ]]> //JJRQ,JJYS,XM,XB,JZNL,ZJHM,ZY,PHONE,XZDZ,MZNO,JYJG,JBBM,JBMC,JZZT,JZZB,FPRQ,SSY,SZY,XT,ZS,XBS,CLCS @@ -5044,6 +5044,9 @@ + + +

12

diff --git a/WEB-INF/conf/sysds_his_gzz.xml b/WEB-INF/conf/sysds_his_gzz.xml index c2fa449..8b6c590 100644 --- a/WEB-INF/conf/sysds_his_gzz.xml +++ b/WEB-INF/conf/sysds_his_gzz.xml @@ -2711,6 +2711,7 @@ SELECT JGID,BM,MC,YZDL,YZZL,ISDDYZ,ISXSYZ,ISMZSY,ISJZSY,ISZYSY,DCZDJL,MTZDJL,ZDL select a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,b.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,b.XM,b.XB,b.CSRQ,b.SFZH,b.ZJLX,b.ZJHM,b.TEL,b.EMAIL,b.PIC,b.SIGNPIC,b.ZT,b.MZ,b.NL,b.HYZK,b.YBKH,b.ZY,b.GZDW,b.PHONE,b.BGDH,b.ZGGH,b.HZMJ,b.HZJB,b.LXRGX,b.LXR,b.LXRDH,b.LXRZJLX,b.LXRZJHM,b.GJ,b.XZDZ,b.XZDZJGH,b.JGDZ,b.JGDZJGH,b.CSDZ,b.CSDZJGH,b.YBLX,a.CYBED,a.JZZDNAMELIST,a.JZZDBMLIST + ,IFYG,IFMD,IFAZ from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.pkey=? and a.hzpkey=? @@ -2840,7 +2841,10 @@ SELECT JGID,BM,MC,YZDL,YZZL,ISDDYZ,ISXSYZ,ISMZSY,ISJZSY,ISZYSY,DCZDJL,MTZDJL,ZDL - + + + +

12

diff --git a/WEB-INF/src/com/his/mz/gzzmanage/HisMzJbzdForm.java b/WEB-INF/src/com/his/mz/gzzmanage/HisMzJbzdForm.java index cedf7a1..5ffa334 100644 --- a/WEB-INF/src/com/his/mz/gzzmanage/HisMzJbzdForm.java +++ b/WEB-INF/src/com/his/mz/gzzmanage/HisMzJbzdForm.java @@ -53,6 +53,9 @@ public class HisMzJbzdForm extends WatWebForm implements IJbMbContainer{ private DxTitlePanel titlePanel4; private DxTitlePanel titlePanel5; private DxDataRadioGroup dbradio1; + private DxDataRadioGroup dbradio2; + private DxDataRadioGroup dbradio3; + private DxDataRadioGroup dbradio4; private DxDataGrid dbgrid2; private DxPopGridText dbedit1; private DxCoolDataTextField dbedit2; @@ -741,6 +744,33 @@ public class HisMzJbzdForm extends WatWebForm implements IJbMbContainer{ setLabelShow("提示:就诊诊别保存成功"); } } + + private void dbradio2Action() { + DxNormalDataManager mzjzBaseInfoDao = DaoCreator.getNormalDao(getWindow(),"mzjzBaseInfoDao"); + if(!mzjzBaseInfoDao.commit()) { + setLabelShow("提示:记录保存失败"); + }else { + setLabelShow("提示:记录保存成功"); + } + } + + private void dbradio3Action() { + DxNormalDataManager mzjzBaseInfoDao = DaoCreator.getNormalDao(getWindow(),"mzjzBaseInfoDao"); + if(!mzjzBaseInfoDao.commit()) { + setLabelShow("提示:记录保存失败"); + }else { + setLabelShow("提示:记录保存成功"); + } + } + + private void dbradio4Action() { + DxNormalDataManager mzjzBaseInfoDao = DaoCreator.getNormalDao(getWindow(),"mzjzBaseInfoDao"); + if(!mzjzBaseInfoDao.commit()) { + setLabelShow("提示:记录保存失败"); + }else { + setLabelShow("提示:记录保存成功"); + } + } private void dbcheckbox1Action() { @@ -873,6 +903,25 @@ public class HisMzJbzdForm extends WatWebForm implements IJbMbContainer{ dbradio1Action(); } }); + + dbradio2.addActionListener(new ActionListener(){ + public void actionPerformed(ActionEvent actionevent) { + dbradio2Action(); + } + }); + + dbradio3.addActionListener(new ActionListener(){ + public void actionPerformed(ActionEvent actionevent) { + dbradio3Action(); + } + }); + + dbradio4.addActionListener(new ActionListener(){ + public void actionPerformed(ActionEvent actionevent) { + dbradio4Action(); + } + }); + dbcheckbox1.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent actionevent) { diff --git a/WEB-INF/src/com/his/mz/gzzmanage/HisMzJbzdForm.xml b/WEB-INF/src/com/his/mz/gzzmanage/HisMzJbzdForm.xml index 5862d1d..f897036 100644 --- a/WEB-INF/src/com/his/mz/gzzmanage/HisMzJbzdForm.xml +++ b/WEB-INF/src/com/his/mz/gzzmanage/HisMzJbzdForm.xml @@ -44,6 +44,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WEB-INF/src/com/his/zy/zyyfcxmanage/ZyTydFindForm.xml b/WEB-INF/src/com/his/zy/zyyfcxmanage/ZyTydFindForm.xml index 71543bd..2320869 100644 --- a/WEB-INF/src/com/his/zy/zyyfcxmanage/ZyTydFindForm.xml +++ b/WEB-INF/src/com/his/zy/zyyfcxmanage/ZyTydFindForm.xml @@ -91,7 +91,7 @@ - + diff --git a/WEB-INF/src/com/openIntegratedQuery/normalQuery/mzsr/MzrzCountForm.java b/WEB-INF/src/com/openIntegratedQuery/normalQuery/mzsr/MzrzCountForm.java index c855e2a..189b7f1 100644 --- a/WEB-INF/src/com/openIntegratedQuery/normalQuery/mzsr/MzrzCountForm.java +++ b/WEB-INF/src/com/openIntegratedQuery/normalQuery/mzsr/MzrzCountForm.java @@ -1 +1 @@ -package com.openIntegratedQuery.normalQuery.mzsr; import java.util.Calendar; import com.lis.jygl.LisForGzzShow; import com.util.MainUtil; import com.wat.component.DxCheckBox; import com.wat.component.DxComboBox; import com.wat.component.DxDateTimePick; import com.wat.component.DxPanelBar; import com.wat.component.DxPopGridText; import com.wat.component.coolcomponent.DxCoolTextField; import com.wat.component.datagrid.DxDataGrid; import com.wat.component.datagrid.event.DataGridCalcFieldListener; import com.wat.component.datagrid.event.DxHtmlCallListener; 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.DxNormalDataManager; import com.wat.delphi.util.Delphi; public class MzrzCountForm extends WatWebForm { private DxDateTimePick datetimepicker1; private DxDateTimePick datetimepicker2; private DxDataGrid dbgrid1; private DxPopGridText popgrid1; private DxPopGridText popgrid2; private DxPopGridText popgrid3; private DxPanelBar panelBar1; private DxPanelBar panelBar2; private DxComboBox combobox1; private DxCoolTextField edit1; private DxCheckBox checkbox1; private DxCheckBox checkbox2; private DxCheckBox checkbox3; private DxCheckBox checkbox4; public MzrzCountForm() { super(); } public static MzrzCountForm newWindow() { return (MzrzCountForm) WatForm.newWindow(MzrzCountForm.class.getName()); } public void initUI() { super.initUI(); customerInitUI(); } public void customerInitUI() { super.customerInitUI(); combobox1.addItem("统计今天", "1"); combobox1.addItem("统计昨天", "2"); combobox1.addItem("统计上月", "3"); combobox1.addItem("统计本月", "4"); combobox1.addItem("统计本年", "5"); combobox1.addItem("统计上午", "6"); combobox1.addItem("统计下午", "7"); combobox1.addItem("统计晚上", "8"); } public void beforeShowLoad() { super.beforeShowLoad(); DxNormalDataManager jgrydicdao = DaoCreator.getNormalDao(this, "jgrydicdao"); jgrydicdao.setNormalParameters(new Object[] { MainUtil.getCurCompanyID() }); jgrydicdao.reloadByDictionary("NAME", "USERACCOUNT"); edit1.setText(""); popgrid1.setValue(""); combobox1.setSelectedIndex(3); changetime(); } public void modalFunction(int flag, Object para) { if (flag == 110) { } } private void panelBar2Action(String command) { if ("select".equals(command)) { panelBar2selectAction(); } else if ("reset".equals(command)) { panelBar2resetAction(); } else if ("export".equals(command)) { panelBar2exportAction(); } } private void panelBar2exportAction() { dbgrid1.exportExcelByXls(Delphi.getDateTimeStr(datetimepicker1.getTime()) + "至" + Delphi.getDateTimeStr(datetimepicker2.getTime()) + "门诊日志统计"); } private void panelBar2selectAction() { DxNormalDataManager dao = DaoCreator.getNormalDao(this, "mzrztjdao"); String orignsql = dao.getOrignSql(); String select = ""; //select = " and b.YZXZYS='"+MainUtil.getCurUserAccount()+"'"; //select+=" and b.CFSHZT='1'"; String ks = popgrid3.getValue(); if (!Delphi.isNullString(ks)) { select += "and a.JJKS LIKE '%" + ks + "%'"; } String ys = popgrid2.getValue(); if (!Delphi.isNullString(ys)) { select += "and a.JJYS LIKE '%" + ys + "%'"; } String xm = edit1.getText(); if (!Delphi.isNullString(xm)) { select += "and b.XM LIKE '%" + xm + "%'"; } String bm = popgrid1.getValue(); if (!Delphi.isNullString(bm)) { select += "and zd.JBBM = '" + bm + "'"; } if (checkbox1.isSelected()) { select += "and zd.JBBM is null "; } if (checkbox2.isSelected()) { select += "and bl.SSY is null "; } if (checkbox3.isSelected()) { select += "and bl.XT is null "; } if (checkbox4.isSelected()) { select += "and nvl(SUBSTR(a.JZNL, 1, INSTR(a.JZNL, '岁') - 1),a.JZNL) >35 "; } orignsql = orignsql.replaceAll("#select#", select); dao.setSelect(orignsql, false, false); dao.reload(new Object[] { MainUtil.getCurCompanyID(), datetimepicker1.getTimeStamp(), datetimepicker2.getTimeStamp() }); dbgrid1.setDataObjectManager(dao); dbgrid1.reload(); //dbgrid1.reload(new Object[] {MainUtil.getCurCompanyID(),datetimepicker1.getTimeStamp(),datetimepicker2.getTimeStamp()}); } private void panelBar2resetAction() { edit1.setText(""); popgrid1.setValue(""); popgrid1.setText(""); popgrid2.setValue(""); popgrid2.setText(""); popgrid3.setValue(""); popgrid3.setText(""); checkbox1.setSelected(false); checkbox2.setSelected(false); checkbox3.setSelected(false); checkbox4.setSelected(false); } private void changetime() { Calendar begin = Calendar.getInstance(); Calendar end = Calendar.getInstance(); int selected = combobox1.getSelectedIndex(); if (selected == 0) { begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); end.set(Calendar.HOUR_OF_DAY, 23); end.set(Calendar.MINUTE, 59); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 1) { begin.set(Calendar.DAY_OF_MONTH, begin.get(Calendar.DAY_OF_MONTH) - 1); begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); end.set(Calendar.DAY_OF_MONTH, end.get(Calendar.DAY_OF_MONTH) - 1); end.set(Calendar.HOUR_OF_DAY, 23); end.set(Calendar.MINUTE, 59); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 2) { begin.set(Calendar.MONTH, begin.get(Calendar.MONTH) - 1); begin.set(Calendar.DAY_OF_MONTH, 1); begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); end.set(Calendar.DAY_OF_MONTH, 1); end.set(Calendar.DAY_OF_MONTH, end.get(Calendar.DAY_OF_MONTH) - 1); end.set(Calendar.HOUR_OF_DAY, 23); end.set(Calendar.MINUTE, 59); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 3) { begin.set(Calendar.DAY_OF_MONTH, 1); begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); end.set(Calendar.MONTH, begin.get(Calendar.MONTH) + 1); end.set(Calendar.DAY_OF_MONTH, 1); end.set(Calendar.DAY_OF_MONTH, end.get(Calendar.DAY_OF_MONTH) - 1); end.set(Calendar.HOUR_OF_DAY, 23); end.set(Calendar.MINUTE, 59); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 4) { begin.set(Calendar.MONTH, 0); begin.set(Calendar.DAY_OF_MONTH, 1); begin.set(Calendar.DAY_OF_MONTH, begin.get(Calendar.DAY_OF_MONTH) - 1); begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); end.set(Calendar.MONTH, begin.get(Calendar.MONTH) + 1); end.set(Calendar.DAY_OF_MONTH, 1); end.set(Calendar.DAY_OF_MONTH, end.get(Calendar.DAY_OF_MONTH) - 1); end.set(Calendar.HOUR_OF_DAY, 23); end.set(Calendar.MINUTE, 59); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 5) { begin.set(Calendar.HOUR_OF_DAY, 8); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 1); end.set(Calendar.HOUR_OF_DAY, 12); end.set(Calendar.MINUTE, 0); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 6) { begin.set(Calendar.HOUR_OF_DAY, 13); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 1); end.set(Calendar.HOUR_OF_DAY, 17); end.set(Calendar.MINUTE, 30); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 7) { begin.set(Calendar.HOUR_OF_DAY, 20); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 1); end.set(Calendar.DAY_OF_MONTH, end.get(Calendar.DAY_OF_MONTH) + 1); end.set(Calendar.HOUR_OF_DAY, 0); end.set(Calendar.MINUTE, 0); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } } private void popgrid1Action(String Command) { if (Command == null) { popgrid1.loadListSource(); } else { } } private void dbgrijyjgquery2Action() { LisForGzzShow form = LisForGzzShow.newWindow(); form.setWindow(this); form.setWinParams("JZPKEY", dbgrid1.getColumnValue("PKEY")); form.showAsModal(); } private void closeAction() { if ("true".equals(getWinParams("saveflag"))) { this.doModalCallbackAction(null); } } private void popgrid3Action(String command) { if(command == null) { String key = popgrid3.getText(); if (key != null && !"".equals(key.trim())) { key = "%" + key.toUpperCase() + "%"; } else { key = "%"; } popgrid3.getListSource().setNormalParameters(new Object[]{MainUtil.getCurCompanyID(),key,key,key}); popgrid3.loadListSource(); }else{ } } private void popgrid2Action(String command) { String key = popgrid2.getText(); if (command == null) { if (!Delphi.isNullString(key)) { key = "%" + key.toUpperCase() + "%"; } else { key="%"; } popgrid2.setListSourceParameters(new Object[] {MainUtil.getCurCompanyID(),"%","%",key,key,key }); popgrid2.loadListSource(); } } protected void initEvent() { super.initEvent(); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent windowevent) { closeAction(); } }); panelBar2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionevent) { panelBar2Action(actionevent.getActionCommand()); } }); combobox1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionevent) { changetime(); } }); popgrid1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { popgrid1Action(arg0.getActionCommand()); } }); popgrid2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { popgrid2Action(arg0.getActionCommand()); } }); popgrid3.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { popgrid3Action(arg0.getActionCommand()); } }); dbgrid1.addHtmlCallListener(new DxHtmlCallListener() { public void actionPerformed(ActionEvent actionevent) { String command = actionevent.getActionCommand(); if ("jyjg".equals(command)) { dbgrijyjgquery2Action(); } } }); dbgrid1.addDataGridCalcFieldListener(new DataGridCalcFieldListener() { public void calcField(int rowNum) { int jcgs = dbgrid1.getColumnValueAsInt(rowNum, "jcgs"); if (jcgs > 0) { String html = "
检验结果查询√
"; dbgrid1.setCalcFieldValue(rowNum, "jyjg", html); } else { String html = "
检验结果查询
"; dbgrid1.setCalcFieldValue(rowNum, "", html); } String jbbm = dbgrid1.getColumnValueAsString(rowNum, "JBBM") + ""; String jbmc = dbgrid1.getColumnValueAsString(rowNum, "JBMC") + ""; //艾滋 if (jbbm.startsWith("B20") || jbbm.startsWith("B21") || jbbm.startsWith("B22") || jbbm.startsWith("B23")) { dbgrid1.setCalcFieldValue(rowNum, "JBAZ", "✓"); } if (jbmc.contains("艾滋") || jbmc.contains("HIV") || jbmc.contains("人类免疫缺陷病毒") || jbmc.contains("艾滋其他标识")) { dbgrid1.setCalcFieldValue(rowNum, "JBAZ", "✓"); } //梅毒 if (jbbm.startsWith("A50") || jbbm.startsWith("A51") || jbbm.startsWith("A52") || jbbm.startsWith("A53")) { dbgrid1.setCalcFieldValue(rowNum, "JBMD", "✓"); } if (jbmc.contains("梅毒") || jbmc.contains("梅毒其他标识")) { dbgrid1.setCalcFieldValue(rowNum, "JBMD", "✓"); } //乙肝 if (jbbm.startsWith("B16") || jbbm.startsWith("B18.0") || jbbm.startsWith("B18.1")) { dbgrid1.setCalcFieldValue(rowNum, "JBYG", "✓"); } if (jbmc.contains("乙肝") || jbmc.contains("乙肝其他标识")) { dbgrid1.setCalcFieldValue(rowNum, "JBYG", "✓"); } } }); } } \ No newline at end of file +package com.openIntegratedQuery.normalQuery.mzsr; import java.util.Calendar; import com.lis.jygl.LisForGzzShow; import com.util.MainUtil; import com.wat.component.DxCheckBox; import com.wat.component.DxComboBox; import com.wat.component.DxDateTimePick; import com.wat.component.DxPanelBar; import com.wat.component.DxPopGridText; import com.wat.component.coolcomponent.DxCoolTextField; import com.wat.component.datagrid.DxDataGrid; import com.wat.component.datagrid.event.DataGridCalcFieldListener; import com.wat.component.datagrid.event.DataGridCellColorListener; import com.wat.component.datagrid.event.DxHtmlCallListener; 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.DxNormalDataManager; import com.wat.delphi.util.Delphi; public class MzrzCountForm extends WatWebForm { private DxDateTimePick datetimepicker1; private DxDateTimePick datetimepicker2; private DxDataGrid dbgrid1; private DxPopGridText popgrid1; private DxPopGridText popgrid2; private DxPopGridText popgrid3; private DxPanelBar panelBar1; private DxPanelBar panelBar2; private DxComboBox combobox1; private DxCoolTextField edit1; private DxCheckBox checkbox1; private DxCheckBox checkbox2; private DxCheckBox checkbox3; private DxCheckBox checkbox4; public MzrzCountForm() { super(); } public static MzrzCountForm newWindow() { return (MzrzCountForm) WatForm.newWindow(MzrzCountForm.class.getName()); } public void initUI() { super.initUI(); customerInitUI(); } public void customerInitUI() { super.customerInitUI(); combobox1.addItem("统计今天", "1"); combobox1.addItem("统计昨天", "2"); combobox1.addItem("统计上月", "3"); combobox1.addItem("统计本月", "4"); combobox1.addItem("统计本年", "5"); combobox1.addItem("统计上午", "6"); combobox1.addItem("统计下午", "7"); combobox1.addItem("统计晚上", "8"); } public void beforeShowLoad() { super.beforeShowLoad(); DxNormalDataManager jgrydicdao = DaoCreator.getNormalDao(this, "jgrydicdao"); jgrydicdao.setNormalParameters(new Object[] { MainUtil.getCurCompanyID() }); jgrydicdao.reloadByDictionary("NAME", "USERACCOUNT"); edit1.setText(""); popgrid1.setValue(""); combobox1.setSelectedIndex(3); changetime(); } public void modalFunction(int flag, Object para) { if (flag == 110) { } } private void panelBar2Action(String command) { if ("select".equals(command)) { panelBar2selectAction(); } else if ("reset".equals(command)) { panelBar2resetAction(); } else if ("export".equals(command)) { panelBar2exportAction(); } } private void panelBar2exportAction() { dbgrid1.exportExcelByXls(Delphi.getDateTimeStr(datetimepicker1.getTime()) + "至" + Delphi.getDateTimeStr(datetimepicker2.getTime()) + "门诊日志统计"); } private void panelBar2selectAction() { DxNormalDataManager dao = DaoCreator.getNormalDao(this, "mzrztjdao"); String orignsql = dao.getOrignSql(); String select = ""; //select = " and b.YZXZYS='"+MainUtil.getCurUserAccount()+"'"; //select+=" and b.CFSHZT='1'"; String ks = popgrid3.getValue(); if (!Delphi.isNullString(ks)) { select += "and a.JJKS LIKE '%" + ks + "%'"; } String ys = popgrid2.getValue(); if (!Delphi.isNullString(ys)) { select += "and a.JJYS LIKE '%" + ys + "%'"; } String xm = edit1.getText(); if (!Delphi.isNullString(xm)) { select += "and b.XM LIKE '%" + xm + "%'"; } String bm = popgrid1.getValue(); if (!Delphi.isNullString(bm)) { select += "and zd.JBBM = '" + bm + "'"; } if (checkbox1.isSelected()) { select += "and zd.JBBM is null "; } if (checkbox2.isSelected()) { select += "and bl.SSY is null "; } if (checkbox3.isSelected()) { select += "and bl.XT is null "; } if (checkbox4.isSelected()) { select += "and nvl(SUBSTR(a.JZNL, 1, INSTR(a.JZNL, '岁') - 1),a.JZNL) >35 "; } orignsql = orignsql.replaceAll("#select#", select); dao.setSelect(orignsql, false, false); dao.reload(new Object[] { MainUtil.getCurCompanyID(), datetimepicker1.getTimeStamp(), datetimepicker2.getTimeStamp() }); dbgrid1.setDataObjectManager(dao); dbgrid1.reload(); //dbgrid1.reload(new Object[] {MainUtil.getCurCompanyID(),datetimepicker1.getTimeStamp(),datetimepicker2.getTimeStamp()}); } private void panelBar2resetAction() { edit1.setText(""); popgrid1.setValue(""); popgrid1.setText(""); popgrid2.setValue(""); popgrid2.setText(""); popgrid3.setValue(""); popgrid3.setText(""); checkbox1.setSelected(false); checkbox2.setSelected(false); checkbox3.setSelected(false); checkbox4.setSelected(false); } private void changetime() { Calendar begin = Calendar.getInstance(); Calendar end = Calendar.getInstance(); int selected = combobox1.getSelectedIndex(); if (selected == 0) { begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); end.set(Calendar.HOUR_OF_DAY, 23); end.set(Calendar.MINUTE, 59); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 1) { begin.set(Calendar.DAY_OF_MONTH, begin.get(Calendar.DAY_OF_MONTH) - 1); begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); end.set(Calendar.DAY_OF_MONTH, end.get(Calendar.DAY_OF_MONTH) - 1); end.set(Calendar.HOUR_OF_DAY, 23); end.set(Calendar.MINUTE, 59); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 2) { begin.set(Calendar.MONTH, begin.get(Calendar.MONTH) - 1); begin.set(Calendar.DAY_OF_MONTH, 1); begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); end.set(Calendar.DAY_OF_MONTH, 1); end.set(Calendar.DAY_OF_MONTH, end.get(Calendar.DAY_OF_MONTH) - 1); end.set(Calendar.HOUR_OF_DAY, 23); end.set(Calendar.MINUTE, 59); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 3) { begin.set(Calendar.DAY_OF_MONTH, 1); begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); end.set(Calendar.MONTH, begin.get(Calendar.MONTH) + 1); end.set(Calendar.DAY_OF_MONTH, 1); end.set(Calendar.DAY_OF_MONTH, end.get(Calendar.DAY_OF_MONTH) - 1); end.set(Calendar.HOUR_OF_DAY, 23); end.set(Calendar.MINUTE, 59); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 4) { begin.set(Calendar.MONTH, 0); begin.set(Calendar.DAY_OF_MONTH, 1); begin.set(Calendar.DAY_OF_MONTH, begin.get(Calendar.DAY_OF_MONTH) - 1); begin.set(Calendar.HOUR_OF_DAY, 0); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 0); end.set(Calendar.MONTH, begin.get(Calendar.MONTH) + 1); end.set(Calendar.DAY_OF_MONTH, 1); end.set(Calendar.DAY_OF_MONTH, end.get(Calendar.DAY_OF_MONTH) - 1); end.set(Calendar.HOUR_OF_DAY, 23); end.set(Calendar.MINUTE, 59); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 5) { begin.set(Calendar.HOUR_OF_DAY, 8); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 1); end.set(Calendar.HOUR_OF_DAY, 12); end.set(Calendar.MINUTE, 0); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 6) { begin.set(Calendar.HOUR_OF_DAY, 13); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 1); end.set(Calendar.HOUR_OF_DAY, 17); end.set(Calendar.MINUTE, 30); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } else if (selected == 7) { begin.set(Calendar.HOUR_OF_DAY, 20); begin.set(Calendar.MINUTE, 0); begin.set(Calendar.SECOND, 1); end.set(Calendar.DAY_OF_MONTH, end.get(Calendar.DAY_OF_MONTH) + 1); end.set(Calendar.HOUR_OF_DAY, 0); end.set(Calendar.MINUTE, 0); end.set(Calendar.SECOND, 59); datetimepicker1.setTime(begin.getTimeInMillis()); datetimepicker2.setTime(end.getTimeInMillis()); } } private void popgrid1Action(String Command) { if (Command == null) { popgrid1.loadListSource(); } else { } } private void dbgrijyjgquery2Action() { LisForGzzShow form = LisForGzzShow.newWindow(); form.setWindow(this); form.setWinParams("JZPKEY", dbgrid1.getColumnValue("PKEY")); form.showAsModal(); } private void closeAction() { if ("true".equals(getWinParams("saveflag"))) { this.doModalCallbackAction(null); } } private void popgrid3Action(String command) { if(command == null) { String key = popgrid3.getText(); if (key != null && !"".equals(key.trim())) { key = "%" + key.toUpperCase() + "%"; } else { key = "%"; } popgrid3.getListSource().setNormalParameters(new Object[]{MainUtil.getCurCompanyID(),key,key,key}); popgrid3.loadListSource(); }else{ } } private void popgrid2Action(String command) { String key = popgrid2.getText(); if (command == null) { if (!Delphi.isNullString(key)) { key = "%" + key.toUpperCase() + "%"; } else { key="%"; } popgrid2.setListSourceParameters(new Object[] {MainUtil.getCurCompanyID(),"%","%",key,key,key }); popgrid2.loadListSource(); } } private String dbgrid1CellColorAction(int rowNum,int column, int datagridcolumnnum) { if("1".equals(dbgrid1.getColumnValueAsString(rowNum,"IFMD")) && datagridcolumnnum == 13) { return "#FF0000"; }else if ("1".equals(dbgrid1.getColumnValueAsString(rowNum,"IFAZ")) && datagridcolumnnum == 14) { return "#FF0000"; }else if ("1".equals(dbgrid1.getColumnValueAsString(rowNum,"IFYG")) && datagridcolumnnum == 15) { return "#FF0000"; } return null; } protected void initEvent() { super.initEvent(); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent windowevent) { closeAction(); } }); panelBar2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionevent) { panelBar2Action(actionevent.getActionCommand()); } }); combobox1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionevent) { changetime(); } }); popgrid1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { popgrid1Action(arg0.getActionCommand()); } }); popgrid2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { popgrid2Action(arg0.getActionCommand()); } }); popgrid3.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { popgrid3Action(arg0.getActionCommand()); } }); dbgrid1.addHtmlCallListener(new DxHtmlCallListener() { public void actionPerformed(ActionEvent actionevent) { String command = actionevent.getActionCommand(); if ("jyjg".equals(command)) { dbgrijyjgquery2Action(); } } }); dbgrid1.addDataGridCalcFieldListener(new DataGridCalcFieldListener() { public void calcField(int rowNum) { int jcgs = dbgrid1.getColumnValueAsInt(rowNum, "jcgs"); if (jcgs > 0) { String html = "
检验结果查询√
"; dbgrid1.setCalcFieldValue(rowNum, "jyjg", html); } else { String html = "
检验结果查询
"; dbgrid1.setCalcFieldValue(rowNum, "", html); } String jbbm = dbgrid1.getColumnValueAsString(rowNum, "JBBM") + ""; String jbmc = dbgrid1.getColumnValueAsString(rowNum, "JBMC") + ""; //艾滋 if (jbbm.startsWith("B20") || jbbm.startsWith("B21") || jbbm.startsWith("B22") || jbbm.startsWith("B23")) { dbgrid1.setCalcFieldValue(rowNum, "JBAZ", "✓"); } if (jbmc.contains("艾滋") || jbmc.contains("HIV") || jbmc.contains("人类免疫缺陷病毒") || jbmc.contains("艾滋其他标识")) { dbgrid1.setCalcFieldValue(rowNum, "JBAZ", "✓"); } //梅毒 if (jbbm.startsWith("A50") || jbbm.startsWith("A51") || jbbm.startsWith("A52") || jbbm.startsWith("A53")) { dbgrid1.setCalcFieldValue(rowNum, "JBMD", "✓"); } if (jbmc.contains("梅毒") || jbmc.contains("梅毒其他标识")) { dbgrid1.setCalcFieldValue(rowNum, "JBMD", "✓"); } //乙肝 if (jbbm.startsWith("B16") || jbbm.startsWith("B18.0") || jbbm.startsWith("B18.1")) { dbgrid1.setCalcFieldValue(rowNum, "JBYG", "✓"); } if (jbmc.contains("乙肝") || jbmc.contains("乙肝其他标识")) { dbgrid1.setCalcFieldValue(rowNum, "JBYG", "✓"); } } }); dbgrid1.addDataGridCellColorListener(new DataGridCellColorListener() { public String fieldColor(int rowNum, int column,int datagridcolumnnum) { System.err.println("======="+datagridcolumnnum); return dbgrid1CellColorAction(rowNum,column,datagridcolumnnum); } }); } } \ No newline at end of file diff --git a/WEB-INF/src/com/openIntegratedQuery/normalQuery/mzsr/MzrzCountForm.xml b/WEB-INF/src/com/openIntegratedQuery/normalQuery/mzsr/MzrzCountForm.xml index 6f8f585..0631d4c 100644 --- a/WEB-INF/src/com/openIntegratedQuery/normalQuery/mzsr/MzrzCountForm.xml +++ b/WEB-INF/src/com/openIntegratedQuery/normalQuery/mzsr/MzrzCountForm.xml @@ -1 +1 @@ - 就诊日期 就诊医生 姓名 性别 就诊年龄 证件号码 职业 联系电话 住址 门诊号 检验结果查询 诊断编码 诊断名称 梅毒 艾滋 乙肝 确拟诊 诊别 发病时间 收缩压 舒张压 血糖 主诉 简要病史 处理措施 \ No newline at end of file + 就诊日期 就诊医生 姓名 性别 就诊年龄 证件号码 职业 联系电话 住址 门诊号 检验结果查询 诊断编码 诊断名称 梅毒 艾滋 乙肝 确拟诊 诊别 发病时间 收缩压 舒张压 血糖 主诉 简要病史 处理措施 \ No newline at end of file diff --git a/release/20241225_1153.text b/release/20241225_1153.text index b6dc962..d7c09ec 100644 --- a/release/20241225_1153.text +++ b/release/20241225_1153.text @@ -63,6 +63,11 @@ develop/lyx_20241225_zycfdp ........................................................................................................................................... <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +develop/hrl_20241226_bjhzcrb + +就诊患者艾滋/梅毒/乙肝记录 +门诊日志统计,艾滋/梅毒/乙肝 阳性变红 +住院退药单查询页面 病区过滤不生效 ........................................................................................................................................... <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< From 2088b573077b4a71725489afead2133b2d7f17ce Mon Sep 17 00:00:00 2001 From: Ray Shaw Date: Fri, 27 Dec 2024 16:13:13 +0800 Subject: [PATCH 6/6] develop/lyx_20241227_zyyz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 住院医嘱SQL优化 1.住院医生工作站-进入患者诊疗与病历 2.住院护士工作站-患者护理文书与诊疗 --- WEB-INF/conf/sysds_his_zyyz.xml | 227 ++++++++++++++++++++- .../zy/doctorworkstation/PatientOrderViewForm.java | 6 +- .../zy/doctorworkstation/PatientOrderViewForm.xml | 2 +- .../com/his/zy/gzyzmanage/FollowOrderViewForm.java | 7 +- .../com/his/zy/gzyzmanage/FollowOrderViewForm.xml | 2 +- release/20241225_1153.text | 5 + 6 files changed, 243 insertions(+), 6 deletions(-) diff --git a/WEB-INF/conf/sysds_his_zyyz.xml b/WEB-INF/conf/sysds_his_zyyz.xml index 350c459..de57fda 100644 --- a/WEB-INF/conf/sysds_his_zyyz.xml +++ b/WEB-INF/conf/sysds_his_zyyz.xml @@ -2975,7 +2975,7 @@ select a.PKEY,a.HZPKEY,a.JZPKEY,a.JZH,a.CFH,a.YZCL,a.YZLB,a.YZLX,a.YZXPKEY,a.YZS (select sum(ZXJE) yffjzje from HIS_YZ_EXEC where YFBDZYZPKEY=a.pkey and jzpkey=a.jzpkey and hzpkey=a.hzpkey and JGID=a.JGID and ZXFLAG='1' and SFFLAG='1') yffjzje, a.HZSZKS,a.LOCKFLAG,a.SFXSYZ,a.GLLX,a.OPAPKEY,a.ANESPKEY,a.ISOPAORDER,a.ISANESORDER, (select sum(yzsl) from HIS_YFFY_PYB pyb left join HIS_YZ_EXEC exec on pyb.DFYPKEY=exec.pkey and pyb.JGID=exec.JGID where pyb.yzmx=a.pkey and pyb.JGID=a.JGID and exec.ZXFLAG=1 and pyb.FYCX=0 and exec.SFFLAG=1 and pyb.FYZT=0) sfdfysl,a.SMORDERPKEY,a.LMT_USED_FLAG,a.XZSYFW,a.CHRGITM_LV,a.YBBM,a.YBMC,a.YZGG,a.YZDXRL,a.YPFYSJMS,a.YPPCSJ,a.YPPCJBSJ,a.YPMRPC,a.DMJYZ,a.DMJSFZ,a.DMJDBRSFZ,a.DMJDBRXM,a.DMJDBRDH,a.YZCFLX,a.YZSFKS,a.YZSFYS,a.YZSFTIME,a.YZSFBZ,a.YZYWBZ,a.YZPSYPPC,a.YZPSDS,a.YZPSDSBEGIN,a.YZPSDSMINUTE,a.PSDSMAN,a.PSDSTIME,a.PSZXKS,a.DDD,a.YZTPKEY,a.SFQYSHCF,a.SHCFZT,a.DCZDJL,a.MTZDJL,a.ZDL,a.SZSYTS,a.YZHOURBEGIN,a.YZHOUREND - from HIS_YZ_MXB a where a.JGID=? and a.HZPKEY=? and a.JZPKEY=? and (a.YZLX='0' or a.YZLX='4' or a.YZLX='5' or a.YZLX='3' or a.YZLX='8' or a.YZLX='9') and (1=? or a.ZYYZFL=?) and a.YZSHZT=1 #select# order by a.yzxh + from HIS_YZ_MXB a where a.JGID=? and a.HZPKEY=? and a.JZPKEY=? and (a.YZLX='0' or a.YZLX='4' or a.YZLX='5' or a.YZLX='3' or a.YZLX='8' or a.YZLX='9') and (1=? or a.ZYYZFL=?) and a.YZSHZT=1 #select# order by a.yzxh @@ -3181,6 +3181,231 @@ select a.PKEY,a.HZPKEY,a.JZPKEY,a.JZH,a.CFH,a.YZCL,a.YZLB,a.YZLX,a.YZXPKEY,a.YZS

12

+ + + + + #must_remove# + with T_HIS_YFFY_ZYFYMXB as ( + select t1.* from HIS_YFFY_ZYFYMXB t1 where t1.jzpkey='#jzpkey#' and t1.hzpkey='#hzpkey#' and t1.JGID='#jgid#' + ), T_HIS_YFFY_PYB as ( + select t2.* from HIS_YFFY_PYB t2 where t2.jzpkey='#jzpkey#' and t2.hzpkey='#hzpkey#' and t2.JGID='#jgid#' + ), T_HIS_YZ_EXEC as ( + select t3.* from HIS_YZ_EXEC t3 where t3.jzpkey='#jzpkey#' and t3.hzpkey='#hzpkey#' and t3.JGID='#jgid#' + ) + select + a.PKEY,a.HZPKEY,a.JZPKEY,a.JZH,a.CFH,a.YZCL,a.YZLB,a.YZLX,a.YZXPKEY,a.YZSHZT,a.YZXH,a.YZJL,a.YZJLDW,a.YZPC,a.YZTS,a.YZYF,a.YZZCYYF,a.YZZCYYFMS,a.YZTZH,a.YZXZSJ,a.YZXZYS,a.YZLRYS,a.YZJE,a.YZSL,a.YZJX,a.YZBEGINJDSJ,a.YZENDJDSJ,a.YZBEGINZXSJ,a.YZZXSJ,a.YZYTZSJ,a.YZTZSJ,a.YZDJ,a.YZBEGINJDHS,a.YZENDJDHS,a.YZTZYS,a.YZZT,a.YZFYLB,a.YZDAYCS,a.YZJDBZ,a.YZYX,a.YZZDY,a.YZXZSXYS,a.YZTZSXYS,a.ZYCS,a.YZXZRLX,a.YZCXR,a.YZCXBZ,a.YZCXSJ,a.YZCXYY,a.YZFYZH,a.YZSFZYZ,a.YZSCZXCS,a.YZZTPKEY,a.YZDS,a.YZJJBZ,a.CJR,a.CJRQ,a.JGID,a.YZLC,a.YZGLYZ,a.YZSYCS,a.YZZXKS,a.YZKZXTS,a.PS,a.PSBZ,a.YZFJSM,a.YZFB,a.YZSYLS,a.YZLSDW,a.YZSFPY,a.YZCLTM,a.YZCLYY,a.YZBZ,a.YZBBLX,a.YZDW,a.YZXZKS,a.YZZL,a.YZJZJLXS,a.YZJZZHXS,a.YPYZJBJG,a.YPYZJBDW,a.YPYZBZJG,a.YPYZBZDW,a.YPYZDXDW,a.YPYZDXSL,a.YPYZZHXS,a.YZMC,a.YZSFZT,a.YZTFSL,a.YZDJSL,a.YZYL,a.YZZCYFSKEY,a.YZZCYFS,a.YZZCYJX,a.YZZCYDJF,a.ISDJJS,a.DJJSSL,a.ISZCYDJCL,a.IZZCYDJFJF,a.ISGFFJ,a.YZZCYBZ,a.SQDTYPE,a.SQDPKEY,a.SQDJSPKEY,a.SQDTFJE,a.ZYYZFL,a.YZSHYS,a.YZSHRQ,a.ISZPC,a.YZZPC,a.YZPCFFSJ,a.PSJG,a.ZCYGLCZLX,a.YZZFR,a.YZZFSJ,a.YZZFYY,a.PSJGSJ,a.PSJGR,a.ISDPBCL, + (select sum(yzsl) from T_HIS_YFFY_PYB pyb left join T_HIS_YZ_EXEC exec on pyb.DFYPKEY=exec.pkey and pyb.JGID=exec.JGID where pyb.yzmx=a.pkey and pyb.JGID='#jgid#' and exec.ZXFLAG=1 and pyb.FYCX=0) dfysl, + (select sum(aa.yzsl) from T_HIS_YFFY_ZYFYMXB aa left join T_HIS_YFFY_PYB bb on aa.PYBPKEY=bb.pkey and aa.yzmx=bb.yzmx and bb.FYZT='1' where aa.yzmx=a.pkey and aa.jzpkey='#jzpkey#' and aa.hzpkey='#hzpkey#' and aa.JGID=a.JGID ) yffysl, + (select sum(TYSL) from T_HIS_YFFY_ZYFYMXB where yzmx=a.pkey and jzpkey='#jzpkey#' and hzpkey='#hzpkey#' and JGID='#jgid#') yftysl, + (select sum(ZXSL) zxsl from T_HIS_YZ_EXEC where yzmx=a.pkey and jzpkey='#jzpkey#' and hzpkey='#hzpkey#' and JGID='#jgid#' and ZXFLAG='1' and SFFLAG='1') zxsl, + (select sum(ZXJE) zxje from T_HIS_YZ_EXEC where yzmx=a.pkey and jzpkey='#jzpkey#' and hzpkey='#hzpkey#' and JGID='#jgid#' and ZXFLAG='1' and SFFLAG='1') zxje, + (select sum(sfx.SFXZFY) yffyzje from T_HIS_YFFY_ZYFYMXB aa left join T_HIS_YFFY_PYB bb on aa.PYBPKEY=bb.pkey and aa.yzmx=bb.yzmx and bb.FYZT='1' right join HIS_SFZD_SFXMXB sfx on aa.SFXPKEY=sfx.pkey and aa.JGID=sfx.JGID where aa.yzmx=a.pkey and aa.JGID='#jgid#' and aa.hzpkey='#hzpkey#' and aa.jzpkey='#jzpkey#') yffyzje, + (select sum(sfx.SFXZFY) from T_HIS_YFFY_ZYFYMXB aa left join HIS_SFZD_SFXMXB sfx on aa.sfxpkey=sfx.pkey and aa.JGID=sfx.JGID and aa.tysl>0 where aa.yzmx=a.pkey and aa.jzpkey='#jzpkey#' and aa.hzpkey='#hzpkey#' and aa.JGID='#jgid#') yztyzje, + (select sum(yzsl*exec.zxje) from T_HIS_YFFY_PYB pyb left join T_HIS_YZ_EXEC exec on pyb.DFYPKEY=exec.pkey and pyb.JGID=exec.JGID where pyb.yzmx=a.pkey and pyb.JGID='#jgid#' and exec.ZXFLAG=1 and pyb.FYCX=0 and exec.SFFLAG=1 and pyb.FYZT=0) sfdfyzje, + (select sum(ZXJE) yffjzje from T_HIS_YZ_EXEC where YFBDZYZPKEY=a.pkey and jzpkey='#jzpkey#' and hzpkey='#hzpkey#' and JGID='#jgid#' and ZXFLAG='1' and SFFLAG='1') yffjzje,a.HZSZKS,a.LOCKFLAG,a.SFXSYZ,a.GLLX,a.OPAPKEY,a.ANESPKEY,a.ISOPAORDER,a.ISANESORDER, + (select sum(yzsl) from T_HIS_YFFY_PYB pyb left join T_HIS_YZ_EXEC exec on pyb.DFYPKEY=exec.pkey and pyb.JGID=exec.JGID where pyb.yzmx=a.pkey and pyb.JGID='#jgid#' and exec.ZXFLAG=1 and pyb.FYCX=0 and exec.SFFLAG=1 and pyb.FYZT=0) sfdfysl,a.SMORDERPKEY,a.LMT_USED_FLAG,a.XZSYFW,a.CHRGITM_LV,a.YBBM,a.YBMC,a.YZGG,a.YZDXRL,a.YPFYSJMS,a.YPPCSJ,a.YPPCJBSJ,a.YPMRPC,a.DMJYZ,a.DMJSFZ,a.DMJDBRSFZ,a.DMJDBRXM,a.DMJDBRDH,a.YZCFLX,a.YZSFKS,a.YZSFYS,a.YZSFTIME,a.YZSFBZ,a.YZYWBZ,a.YZPSYPPC,a.YZPSDS,a.YZPSDSBEGIN,a.YZPSDSMINUTE,a.PSDSMAN,a.PSDSTIME,a.PSZXKS,a.DDD,a.YZTPKEY,a.SFQYSHCF,a.SHCFZT,a.DCZDJL,a.MTZDJL,a.ZDL,a.SZSYTS,a.YZHOURBEGIN,a.YZHOUREND + from HIS_YZ_MXB a where a.JGID=? and a.HZPKEY=? and a.JZPKEY=? and (a.YZLX='0' or a.YZLX='4' or a.YZLX='5' or a.YZLX='3' or a.YZLX='8' or a.YZLX='9') and (1=? or a.ZYYZFL=?) and a.YZSHZT=1 #select# order by a.yzxh + + + + + + + + PKEY + HZPKEY + JZPKEY + YZZT +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

12

+

12

+

12

+

12

+

12

+
+
diff --git a/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderViewForm.java b/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderViewForm.java index ad87798..ada1e8c 100644 --- a/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderViewForm.java +++ b/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderViewForm.java @@ -3,7 +3,6 @@ package com.his.zy.doctorworkstation; import java.text.ParseException; import java.util.HashSet; import java.util.Set; - import com.his.base.yzt.YztManageContainerWindow; import com.his.mz.gzzmanage.GzzYzMbManageWindow; import com.his.mz.gzzmanage.mapper.GzzMzYsNormalYzDaoMapper; @@ -489,6 +488,11 @@ public class PatientOrderViewForm extends WatWebForm { orderSql = orderSql.replaceAll("#select#", select); zcyOrderSql = zcyOrderSql.replaceAll("#select#", select); + + orderSql = orderSql.replaceAll("#must_remove#", ""); + orderSql = orderSql.replaceAll("#jzpkey#", model.getJzpkey()); + orderSql = orderSql.replaceAll("#hzpkey#", model.getHzpkey()); + orderSql = orderSql.replaceAll("#jgid#", model.getCompanyId()); dbgrid1.getDataObjectManager().setSelect(orderSql); zyyzViewZcyOrderDao.setSelect(zcyOrderSql); diff --git a/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderViewForm.xml b/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderViewForm.xml index 78490bb..032e6d0 100644 --- a/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderViewForm.xml +++ b/WEB-INF/src/com/his/zy/doctorworkstation/PatientOrderViewForm.xml @@ -43,7 +43,7 @@ - + 序号 长临 diff --git a/WEB-INF/src/com/his/zy/gzyzmanage/FollowOrderViewForm.java b/WEB-INF/src/com/his/zy/gzyzmanage/FollowOrderViewForm.java index f9a6657..3652f95 100644 --- a/WEB-INF/src/com/his/zy/gzyzmanage/FollowOrderViewForm.java +++ b/WEB-INF/src/com/his/zy/gzyzmanage/FollowOrderViewForm.java @@ -2,7 +2,6 @@ package com.his.zy.gzyzmanage; import java.util.HashSet; import java.util.Set; - import com.his.zy.doctorworkstation.ChanageTzOrderTimeWindow; import com.his.zy.doctorworkstation.PatientStopOrderWindow; import com.his.zy.doctorworkstation.PatientZfORCxOrderWindow; @@ -24,7 +23,6 @@ import com.wat.component.DxRadioGroup; import com.wat.component.coolcomponent.DxCoolTextField; import com.wat.component.datagrid.DxDataGrid; import com.wat.component.datagrid.DxDataGridCheckBoxCell; -import com.wat.component.datagrid.event.DxDblCellFocusListener; import com.wat.component.datagrid.event.DxHeadPageButtonActionListener; import com.wat.component.datagrid.event.DxReloadActionListener; import com.wat.component.datagrid.event.DxSelectRowListener; @@ -245,6 +243,11 @@ public class FollowOrderViewForm extends WatWebForm { } orderSql = orderSql.replaceAll("#select#", select); zcyOrderSql = zcyOrderSql.replaceAll("#select#", select); + + orderSql = orderSql.replaceAll("#must_remove#", ""); + orderSql = orderSql.replaceAll("#jzpkey#", model.getJzpkey()); + orderSql = orderSql.replaceAll("#hzpkey#", model.getHzpkey()); + orderSql = orderSql.replaceAll("#jgid#", model.getCompanyId()); dbgrid1.getDataObjectManager().setSelect(orderSql); zyyzViewZcyOrderDao.setSelect(zcyOrderSql); diff --git a/WEB-INF/src/com/his/zy/gzyzmanage/FollowOrderViewForm.xml b/WEB-INF/src/com/his/zy/gzyzmanage/FollowOrderViewForm.xml index 4ab4dfe..0d9243e 100644 --- a/WEB-INF/src/com/his/zy/gzyzmanage/FollowOrderViewForm.xml +++ b/WEB-INF/src/com/his/zy/gzyzmanage/FollowOrderViewForm.xml @@ -28,7 +28,7 @@ - + 序号 长临 diff --git a/release/20241225_1153.text b/release/20241225_1153.text index d7c09ec..8b541c8 100644 --- a/release/20241225_1153.text +++ b/release/20241225_1153.text @@ -71,6 +71,11 @@ develop/hrl_20241226_bjhzcrb ........................................................................................................................................... <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +develop/lyx_20241227_zyyz + +住院医嘱SQL优化 +1.住院医生工作站-进入患者诊疗与病历 +2.住院护士工作站-患者护理文书与诊疗 ........................................................................................................................................... <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<