123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPASI03000" position="absolute 0 0 1197 792" titletext="삽입기구관련대상자조회" oninit="SPASI03000_oninit" onload="SPASI03000_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 6 1195 790" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout width="1195" height="784"/>
- </Layouts>
- </Div>
- <Div position="absolute 0 763 1195 790" id="grp_btn">
- <Layouts>
- <Layout>
- <Button position="absolute 5 3 61 25" id="btn_print" class="btn6" visible="false" text="출력"/>
- <Button position="absolute 1126 3 1194 25" id="btn_init" class="btn4" text="초기화"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="삽입기구 관련 대상자 조회" class="tit_1" position="absolute 0 0 189 25"/>
- <Shape id="line6" linetype="vertical" class="line_3" position="absolute -1 136 1193 142"/>
- <Shape id="line5" linetype="vertical" class="line_1" position="absolute -1 107 1193 113"/>
- <Div id="group6" taborder="1" class="div_SA" position="absolute 0 26 1194 86">
- <Layouts>
- <Layout>
- <Shape id="line8" linetype="vertical" class="line_4" position="absolute 1107 10 1113 53"/>
- <Static id="caption15" text="삽입기구종류 :" class="search_name" position="absolute 435 10 547 27"/>
- <Static id="caption21" text="등록번호 :" class="search_name" position="absolute 15 35 101 52"/>
- <Static id="caption2" text="~" class="search_no_b" position="absolute 220 14 232 31"/>
- <Static id="caption1" text="병동 :" class="search_name" position="absolute 780 9 846 26"/>
- <Calendar id="ipt_fromdd" taborder="1" class="input_s_essential" position="absolute 108 11 218 30"/>
- <Calendar id="ipt_todd" taborder="2" class="input_s_essential" position="absolute 232 11 342 30"/>
- <Edit id="ipt_pid" taborder="3" class="input_default" enable="false" position="absolute 108 34 218 53"/>
- <Combo id="cmb_catheter" taborder="4" innerdataset="ds_init_cmb_catheter" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 559 9 689 28"/>
- <Combo id="cmb_wardcd" taborder="5" innerdataset="ds_init_cmb_wardcd" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 850 9 955 28"/>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1126 21 1182 43" onclick="group6_btn_search_onclick"/>
- <Static id="cap_fromdd" text="기간선택 :" class="search_name" visible="false" position="absolute 15 9 104 26"/>
- <Static id="cap_todd" text="기간선택 :" class="search_name" position="absolute 15 9 104 26"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" class="line_10" position="absolute -1 111 1193 117"/>
- <Button id="btn_excel" taborder="2" text="선택" class="btn2" position="absolute 1061 89 1103 108"/>
- <Button id="btn_spread" taborder="3" text="펼침" class="btn2" position="absolute 1106 89 1148 108"/>
- <Button id="btn_close" taborder="4" text="닫침" class="btn2" position="absolute 1151 89 1193 108"/>
- <Grid id="grd_catpatlist" taborder="5" binddataset="ds_grd_catpatlist" useinputpanel="false" position="absolute 1 115 1195 756">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="76"/>
- <Column size="35"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="73"/>
- <Column size="93"/>
- <Column size="73"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="200"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="등록번호"/>
- <Cell col="1" text="level"/>
- <Cell col="2" text="성명"/>
- <Cell col="3" text="성별"/>
- <Cell col="4" text="나이"/>
- <Cell col="5" text="삽입기구코드"/>
- <Cell col="6" text="삽입기구"/>
- <Cell col="7" text="삽입일"/>
- <Cell col="8" text="제거일"/>
- <Cell col="9" text="진료과"/>
- <Cell col="10" text="주치의코드"/>
- <Cell col="11" text="주치의"/>
- <Cell col="12" text="병동"/>
- <Cell col="13" text="병실"/>
- <Cell col="14" text="입원일"/>
- <Cell col="15" text="퇴원일"/>
- <Cell col="16" text="진단명"/>
- <Cell col="17" text="cretno"/>
- <Cell col="18" text="seqno"/>
- <Cell col="19" text="instcd"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" text="bind:levl"/>
- <Cell col="2" text="bind:name"/>
- <Cell col="3" text="bind:sexflag"/>
- <Cell col="4" text="bind:age"/>
- <Cell col="5" text="bind:itemcd"/>
- <Cell col="6" text="bind:itemnm"/>
- <Cell col="7" text="bind:opdt" mask="yyyy-mm-dd"/>
- <Cell col="8" text="bind:cncldt" mask="yyyy-mm-dd"/>
- <Cell col="9" text="bind:orddeptcd"/>
- <Cell col="10" text="bind:atdoct"/>
- <Cell col="11" text="bind:atdoctnm"/>
- <Cell col="12" enable="false" text="bind:wardcd"/>
- <Cell col="13" text="bind:roomcd"/>
- <Cell col="14" enable="false" text="bind:indd" mask="yyyy-mm-dd"/>
- <Cell col="15" text="bind:dschdd" mask="yyyy-mm-dd"/>
- <Cell col="16" text="bind:diagnm"/>
- <Cell col="17" text="bind:cretno"/>
- <Cell col="18" text="bind:seqno"/>
- <Cell col="19" text="bind:instcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption25" text="삽입기구사용환자" class="tit_2" position="absolute 1 95 129 112"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cmb_catheter" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_catpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING"/>
- <Column id="levl" type="STRING"/>
- <Column id="name" type="STRING"/>
- <Column id="sexflag" type="STRING"/>
- <Column id="age" type="STRING"/>
- <Column id="itemcd" type="STRING"/>
- <Column id="itemnm" type="STRING"/>
- <Column id="opdt" type="STRING"/>
- <Column id="cncldt" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="atdoct" type="STRING"/>
- <Column id="atdoctnm" type="STRING"/>
- <Column id="wardcd" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- <Column id="indd" type="STRING"/>
- <Column id="dschdd" type="STRING"/>
- <Column id="diagnm" type="STRING"/>
- <Column id="cretno" type="STRING"/>
- <Column id="seqno" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="catheter" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_warddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group6.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item1" compid="group6.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- <BindItem id="item2" compid="group6.cmb_catheter" propid="value" datasetid="ds_main_cond" columnid="catheter"/>
- <BindItem id="item3" compid="group6.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- <BindItem id="item4" compid="group6.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- include "com_departmentcodexp::ZSD001.xjs";
- function SPASI03000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grd_catpatlist);
- }
- function SPASI03000_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize();
- ds_grd_catpatlist.clearData();
- }
- function fInitialize()
- {
- // 부모창에서 환자 등록번호 조회
- //var pid = opener.model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid");
- var pid = opener.ds_main_hospinfcinfo_hospinfc_info.getColumn(0, "pid");
- //model.setValue("/root/main/cond/pid", pid);
- ds_main_cond.setColumn(0, "pid", pid);
- // 공통코드를 조회한다.
-
- //삽입기구종류
- //addComboItem("cmb_catheter","","","above");
- var arrParam = [{dsNm: "ds_init_A0358", cdGrpId: "A0358" }];
- appf_getCodeList(arrParam);
-
- switch1.case1.setFocus();
- // 진료과
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "ds_init_deptlist";
- sort_field = "deptcd";
- sort_method = "asc";
- var dt = utlf_getCurrentDate();
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, dt, "", "",rslt_ref ,false, "");
-
- //병동
- standard_yn = "orduseyn";
- ord_deptflag = "W";
- rslt_ref = "ds_init_warddeptlist";
- sort_field = "deptcd";
- sort_method = "asc";
- var dt = utlf_getCurrentDate();
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, dt, "", "",rslt_ref ,false, "");
- var today = utlf_getCurrentDate();
- var idate = new Date();
- var peveDate = idate.getAddDate(-1, "D");
- //model.setValue("/root/init/initdate/today", today);
- ds_init_initdate.setColumn(0, "today", today);
- //model.makeValue("/root/send/cond/trgtmancnt", "I");
- ds_send_cond.setColumn(0, "trgtmancnt", "I");
- // model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
- // model.makeValue("/root/send/cond/todd", today);
- //model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- //model.setValue("/root/main/cond/todd", today);
- ds_main_cond.setColumn(0, "fromdd", peveDate.getDateFormat());
- ds_main_cond.setColumn(0, "todd", today);
- }]]></Script>
- </Form>
- </FDL>
|