123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMR05700" position="absolute 0 0 590 360" titletext="환자수진이력" onload="SPMMR05700_onload" oninit="SPMMR05700_oninit">
- <Layouts>
- <Layout>
- <Static text="환자수진이력" position="absolute 0 4 114 20" id="caption1" class="tit_2"/>
- <Shape position="absolute 5 24 590 30" linetype="vertical" id="line1" class="line_1"/>
- <Button position="absolute 477 336 533 358" id="button3" class="btn4" text="확인" onclick="button3_onclick"/>
- <Button position="absolute 534 336 590 358" id="button4" class="btn4" text="취소" onclick="button4_onclick"/>
- <Grid position="absolute 0 24 590 332" id="grd_pathistlist" binddataset="ds_main_result_pathistlist" oncelldblclick="grd_pathistlist_oncelldblclick" onkeydown="grd_pathistlist_onkeydown" scrollbars="autovert" cellsizingtype="col" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="75"/>
- <Column size="87"/>
- <Column size="77"/>
- <Column size="66"/>
- <Column size="100"/>
- <Column size="62"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="주유형"/>
- <Cell col="1" text="보조유형"/>
- <Cell col="2" text="등록번호"/>
- <Cell col="3" text="환자명"/>
- <Cell col="4" text="진료일"/>
- <Cell col="5" text="구분"/>
- <Cell col="6" text="진료과"/>
- <Cell col="7" text="주치의"/>
- </Band>
- <Band id="body">
- <Cell displaytype="combo" edittype="none" style="align:left top;padding:2 0 0 2;" text="bind:insukind" combodataset="ds_init_P0008" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="1" displaytype="combo" edittype="none" style="align:left top;padding:2 0 0 2;" text="bind:suppkind" wordwrap="word" combodataset="ds_init_P0010" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="2" style="align:center middle;" text="bind:pid"/>
- <Cell col="3" style="align:center middle;" text="bind:hngnm"/>
- <Cell col="4" style="align:center middle;" text="bind:orddd" mask="####-##-##"/>
- <Cell col="5" style="align:center middle;" text="bind:ordtypenm"/>
- <Cell col="6" style="align:left middle;" text="bind:orddeptnm" wordwrap="word"/>
- <Cell col="7" style="align:center middle;" text="bind:orddrnm" wordwrap="word"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <CheckBox position="absolute 110 1 130 21" id="bool1" onchanged="bool1_onchanged"/>
- <Static text="진단 가접수" position="absolute 128 2 208 22" id="caption2"/>
- <CheckBox id="bool2" taborder="1" position="absolute 198 1 274 21" falsevalue="N" truevalue="Y" text="건진제외" onchanged="bool2_onchanged"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_result_pathistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvflag" type="STRING" size="256"/>
- <Column id="exceptordtype" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="exceptordtype">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0010" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="bool1" propid="value" datasetid="ds_main_cond" columnid="rsrvflag"/>
- <BindItem id="item1" compid="bool2" propid="value" datasetid="ds_main_cond" columnid="exceptordtype"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-10-15
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-10-15 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMOCommon.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- //include "emr_medirecxp::SPMMR05500.xjs";
- function SPMMR05700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMR05700_onload(obj:Form, e:LoadEventInfo)
- {
- try{
- ds_main_result_pathistlist.copyData(arg_ds_main_result_pathistlist);
- }catch(e){
- sysf_catchTrace(e);
- }
-
- var oOpener = frmf_getoOpener();
- if( !utlf_isNull(oOpener) && oOpener.frmf_getScreenID() == "SMMMR02900"){
- ds_main_cond.setColumn(0, "exceptordtype", "Y");
- }
-
- grd_pathistlist.setFocus();
- ds_main_result_pathistlist.rowposition = 0;
- //zbcfGetCodeList(new Array("P0008"), new Array("/root/init/item")); //공통코드 보험유형(건강보험,의료급여,산재,자보 등)
- //zbcfGetCodeList(new Array("P0010"), new Array("/root/init/item")); //공통코드 보조유형(정상급여,본인부담100% 등)
-
- var arrParam = [{dsNm: "ds_init_P0008", cdGrpId: "P0008"},
- {dsNm: "ds_init_P0010", cdGrpId: "P0010"}
- ]
- appf_getCodeList(arrParam); //공통코드 보험유형 조회
- }
- function fReqGetPatHistList(pid, rsrvflag, exceptordtype){
- ds_send_reqdata.clear();
- dsf_makeValue(ds_send_reqdata,"pid" ,"string" , pid);
- dsf_makeValue(ds_send_reqdata,"orddeptcd" ,"string" , "-");
- dsf_makeValue(ds_send_reqdata,"orddrid" ,"string" , "-");
-
- if( utlf_isNull(rsrvflag) ){
- rsrvflag = ds_main_cond.getColumn(0, "rsrvflag");
- }
- if(rsrvflag == "Y"){
- dsf_makeValue(ds_send_reqdata,"rsrvflag" ,"string", "Y");
- }
-
- if( utlf_isNull(exceptordtype) ){
- exceptordtype = ds_main_cond.getColumn(0, "exceptordtype");
- }
- if(exceptordtype == "Y"){
- dsf_makeValue(ds_send_reqdata,"exceptordtype" ,"string", "Y");
- }
-
- var oParam = {};
- oParam.id = "TRMMR05501";
- oParam.service = "medirecapp.ExtnMediRec";
- oParam.method = "reqGetPatHistList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_result_pathistlist=pathistlist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- opener.frmf_setParameter("SPMMR05700_useyn", "Y");
- opener.ds_main_result_pathistlist.clearData();
- var newrow = opener.ds_main_result_pathistlist.addRow();
- opener.ds_main_result_pathistlist.copyRow(newrow,ds_main_result_pathistlist,ds_main_result_pathistlist.rowposition);
- close();
- }
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- opener.frmf_setParameter("SPMMR05700_useyn", "N");
- close();
- }
- function grd_pathistlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- opener.frmf_setParameter("SPMMR05700_useyn", "Y");
- opener.ds_main_result_pathistlist.clearData();
- var newrow = opener.ds_main_result_pathistlist.addRow();
- opener.ds_main_result_pathistlist.copyRow(newrow,ds_main_result_pathistlist,ds_main_result_pathistlist.rowposition);
- close();
- }
- function grd_pathistlist_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == "13"){
- opener.frmf_setParameter("SPMMR05700_useyn", "Y");
- opener.ds_main_result_pathistlist.clearData();
- var newrow = opener.ds_main_result_pathistlist.addRow();
- opener.ds_main_result_pathistlist.copyRow(newrow,ds_main_result_pathistlist,ds_main_result_pathistlist.rowposition);
- close();
- }
- }
- function bool1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- var pid = ds_main_result_pathistlist.getColumn(0,"pid");
- if(bool1.value == true){
- fReqGetPatHistList(pid, "Y");
-
- }else{
- fReqGetPatHistList(pid, "N");
-
- }
- }
- function bool2_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- var pid = ds_main_result_pathistlist.getColumn(0,"pid");
- if(bool2.value == "Y"){
- fReqGetPatHistList(pid, null, "Y");
-
- }else{
- fReqGetPatHistList(pid, null, "N");
-
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|