123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNW15000" position="absolute 0 0 640 645" titletext="재원환자 종교 현황" oninit="SMMNW15000_oninit" onload="SMMNW15000_onload" ontimer="SMMNW15000_ontimer">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 635 640" align="align:center middle;" id="group3">
- <Layouts>
- <Layout>
- <Static text="재원환자 종교 현황" position="absolute 0 0 145 20" align="align:center middle;" id="cpt_title" class="tit_1"/>
- <Div position="absolute 0 20 635 60" align="align:center top;" id="grp_sea" class="div_SA">
- <Layouts>
- <Layout>
- <Edit position="absolute 420 10 490 29" id="ipt_pid" autoselect="true"/>
- <Static text="등록번호 :" position="absolute 345 11 421 28" id="caption2" class="search_name"/>
- <Button position="absolute 513 10 569 32" id="button2" class="btn1" taborder="7" text="조회" onclick="group3_grp_sea_button2_onclick"/>
- <Shape position="absolute 502 8 508 33" linetype="vertical" id="line1" class="line_4"/>
- </Layout>
- </Layouts>
- </Div>
- <Combo position="absolute 65 30 160 49" id="cmb_wardcd" class="combo_s_essential" taborder="1" innerdataset="@ds_init_dept_dept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="group3_cmb_wardcd_onitemchanged"/>
- <Static text="병 동 :" position="absolute 10 31 67 48" id="caption25" class="search_name"/>
- <Button position="absolute 570 30 626 52" id="button1" class="btn7" taborder="7" text="엑셀" onclick="group3_button1_onclick"/>
- <Static text="재원환자 종교 현황" position="absolute 0 69 135 85" id="caption1" class="tit_2"/>
- <Shape position="absolute 0 85 635 91" linetype="horizontal" id="line4" class="line_10"/>
- <Static text="종 교 :" position="absolute 185 31 242 48" id="caption3" class="search_name"/>
- <Combo position="absolute 240 30 325 49" id="cmb_religncd" class="combo_s_essential" taborder="1" innerdataset="@ds_init_M0070_M0070" datacolumn="cdnm" codecolumn="cdid" onitemchanged="group3_cmb_religncd_onitemchanged"/>
- <Grid position="absolute 0 90 635 640" id="grd_relignlist" binddataset="ds_main_religninfo_relignlist" cellsizingtype="col" class="datagrid2">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="85"/>
- <Column size="40"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="120"/>
- <Column size="45"/>
- <Column size="35"/>
- <Column size="65"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="26" 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="성별"/>
- <Cell col="8" text="종교"/>
- <Cell col="9" text="개인정보사정 미동의"/>
- </Band>
- <Band id="body">
- <Cell displaytype="combo" style="padding:2 2 2 2;" text="bind:wardcd" combodataset="ds_init_dept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
- <Cell col="1" style="align:left;padding:2 2 2 2;" text="bind:roomcd"/>
- <Cell col="2" style="align:left;padding:2 2 2 2;" text="bind:pid"/>
- <Cell col="3" style="align:left;padding:2 2 2 2;" text="bind:patnm"/>
- <Cell col="4" style="padding:2 2 2 2;" text="bind:patnm2"/>
- <Cell col="5" style="padding:2 2 2 2;" text="bind:indt" mask="expr:utlf_isNull(indt) ? '' : '####-##-## ##:##'"/>
- <Cell col="6" style="padding:2 2 2 2;" text="bind:age"/>
- <Cell col="7" style="padding:2 2 2 2;" text="bind:sex"/>
- <Cell col="8" displaytype="combo" style="padding:2 2 2 2;" text="bind:religncd" combodataset="ds_init_M0070_M0070" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="9" style="padding:2 2 2 2;" text="bind:privacy"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_dept_dept" 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_init_M0070_M0070" 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_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
- <Column id="religncd" type="STRING" size="256" sumtext="종교코드"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_religninfo_relignlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="patnm2" type="STRING" size="256" sumtext="환자명2"/>
- <Column id="indt" type="STRING" size="256" sumtext="입원일자"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="religncd" type="STRING" size="256" sumtext="종교코드"/>
- <Column id="privacy" type="STRING" size="256" sumtext="개인정보사정 미동의 여부"/>
- </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="wardcd" type="STRING" size="256"/>
- <Column id="religncd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- <BindItem id="item1" compid="group3.cmb_religncd" propid="value" datasetid="ds_main_cond" columnid="religncd"/>
- <BindItem id="item2" compid="group3.grp_sea.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_wardcarexp -> SMMNW15000
- * Creator : yjh
- * Make Date : 2017-01-09
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-01-09 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fSearch() {
-
- ds_send_reqdata.copyData(ds_main_cond);
-
- var oParam = {};
- oParam.id = "TRMNW15000";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetRelignList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_religninfo_relignlist=relignlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNW15000";
- tranf_submit(oParam);
-
- ds_main_religninfo_relignlist.rowposition = -1;
-
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW15000
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNW15000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW15000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNW15000_onload(obj:Form, e:LoadEventInfo)
- {
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'W';
- var rslt_ref = "ds_init_dept_dept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
-
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, "", "", "", rslt_ref);
- frmf_addComboItem("group3.cmb_wardcd", "전 체", "", "above");
- group3.cmb_wardcd.value = "";
-
- // 공통코드 가져오기
- var arrParam = [{dsNm: "ds_init_M0070_M0070", cdGrpId: "M0070"}] // 급여구분에 대한 종류
- appf_getCodeList(arrParam);
- frmf_addComboItem("group3.cmb_religncd", "전 체", "", "above");
- group3.cmb_religncd.value = "";
-
- group3.cmb_wardcd.value = sysf_getUserInfo("dutplcecd");
- //fSearch() ;
- this.setTimer(0, 100);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group3_grp_sea_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_wardcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 콤보 값 변경시
- ****************************************************************************************/
- function group3_cmb_wardcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSearch();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀버튼 클릭시
- ****************************************************************************************/
- function group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if( group3.grd_relignlist.rowcount > 0 ){
- grdf_exportExcel(group3.grd_relignlist, "재원환자 종교 현황", "재원환자 종교 현황", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- return;
- }
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_religncd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 콤보 값 변경시
- ****************************************************************************************/
- function group3_cmb_religncd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSearch();
- }
- function SMMNW15000_ontimer(obj:Form, e:TimerEventInfo)
- {
- if( e.timerid == 0 ){
- this.killTimer(0);
-
- fSearch() ;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|