123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNW10100" position="absolute 0 0 890 740" titletext="입원장 발급환자 조회/확인" oninit="SPMNW10100_oninit" onload="SPMNW10100_onload" ontimer="SPMNW10100_ontimer">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 885 730" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 855 35" align="align:center top;" id="group2" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="병동" position="absolute 10 10 70 27" id="caption2" class="search_name"/>
- <Button position="absolute 787 7 843 29" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick"/>
- <Combo position="absolute 65 8 195 27" id="cmb_wardcd" class="combo_search" innerdataset="@ds_init_wardlist_dept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="group3_group2_cmb_wardcd_onitemchanged"/>
- <Shape position="absolute 779 7 785 29" linetype="vertical" id="line9" class="line_4"/>
- <Radio position="absolute 220 9 390 25" id="radio2" class="radio_search" visible="false" columncount="4" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group2_radio2_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">확인전</Col>
- </Row>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">확인후</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 60 345 66" linetype="horizontal" id="line1" class="line_10"/>
- <Button position="absolute 248 40 345 59" id="button1" class="btn2" visible="false" text="간호사확인" onclick="group3_button1_onclick"/>
- <Grid position="absolute 0 65 345 708" id="grd_inreqhistlist" class="datagrid1" binddataset="ds_main_adrvlist_adrvlist" oncelldblclick="group3_grd_inreqhistlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="61"/>
- <Column size="72"/>
- <Column size="86"/>
- <Column size="85"/>
- <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="병실"/>
- <Cell col="2" text="등록번호"/>
- <Cell col="3" text="환자명"/>
- <Cell col="4" text="입원예정일"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- </Band>
- <Band id="body">
- <Cell text="bind:stat"/>
- <Cell col="1" text="bind:roomcd"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:hngnm"/>
- <Cell col="4" displaytype="date" text="bind:inhopedd" calendardisplaynulltype="none"/>
- <Cell col="5" text="bind:inrsrvacptdd"/>
- <Cell col="6" text="bind:orddeptcd"/>
- <Cell col="7" text="bind:inrsrvacptseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 350 44 869 710" id="import1" url="emr_prcpmngtxp::SPMMO14800_입원예약내역.xfdl"/>
- <Static text="[표]" position="absolute 858 715 885 729" id="caption1"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_wardlist_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_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="confstat" type="STRING" size="256" sumtext="확인구분"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_adrvlist_adrvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="stat" type="STRING" size="256" sumtext="구분"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="inhopedd" type="STRING" size="256" sumtext="입원예정일"/>
- <Column id="inrsrvacptdd" type="STRING" size="256" sumtext="예약접수일자"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="inrsrvacptseqno" type="INT" size="256" sumtext="접수번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="inrsrvacptdd" type="STRING" size="256" sumtext="예약접수일자"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="inrsrvacptseqno" type="INT" size="256" sumtext="접수번호"/>
- <Column id="execflg" type="STRING" size="256" sumtext="확인"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </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="confstat" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- <BindItem id="item1" compid="group3.group2.radio2" propid="value" datasetid="ds_main_cond" columnid="confstat"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_prcpmngtxp -> SPMNW10100
- * Creator : yjh
- * Make Date : 2016-10-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-10-24 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var sADRVLIST_PATH = "/root/main/adrvlist/adrvlist";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fInitialize()
- {
- appf_getDeptCodeList(sysf_getUserInfo("dutplceinstcd"), "orduseyn", "W", "depthngnm", "asc", "", "", "", "ds_init_wardlist_dept"); // 병동정보
- frmf_addComboItem("group3.group2.cmb_wardcd", "전체", "-", "above"); // 병동콤보 전체추가
- //combo1.select(0);
- //model.setValue("/root/main/cond/wardcd","3050107000");//getUserInfo("dutplcecd"));
- ds_main_cond.setColumn(0, "wardcd",sysf_getUserInfo("dutplcecd"));
-
- // 병동 디폴트 추가_20080804(ByJA)
- if( utlf_isNull(group3.group2.cmb_wardcd.text) ){
- ds_main_cond.setColumn(0, "wardcd", "-");
- }
-
- ds_main_adrvlist_adrvlist.clearData();
- // fSearch();
- //
- // group3.import1.fInitialize_SPMMO14800();
- this.setTimer(0, 100);
- }
- function fSearch()
- {
- ds_send_reqdata.copyRow(0, ds_main_cond, 0);
-
- var oParam = {};
- oParam.id = "TRMNW10101";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqGetInReqHistInfoList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_adrvlist_adrvlist=adrvlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNW10101";
- tranf_submit(oParam);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNW10100
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNW10100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNW10100
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNW10100_onload(obj:Form, e:LoadEventInfo)
- {
- ds_main_cond.setColumn(0, "confstat", "A");
-
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group3_group2_btn_search_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_group2_cmb_wardcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSearch();
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : radio2
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function group3_group2_radio2_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- // // 간호사확인취소기능삭제에 따른 조회옵션 hidden_요구사항삭제(소경화ITC)_2000804(ByJA)
- if( group3.group2.radio2.value == 'A' ){
- group3.button1.visible = false;
- }else if( group3.group2.radio2.value == 'N' ){
- group3.button1.visible = true;
- group3.button1.text = "간호사확인";
- }else if( group3.group2.radio2.value == 'Y' ){
- group3.button1.visible = true;
- group3.button1.text = "간호사확인취소";
- }
- 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)
- {
- // 간호사확인취소기능삭제(소경화ITC)_2000804(ByJA)
- if( group3.grd_inreqhistlist.currentrow < 0 ){
- sysf_messageBox("환자를", "C002"); // 메세지추가_20080802(ByJA)
- return;
- }
- var pid = ds_main_adrvlist_adrvlist.getColumn(ds_main_adrvlist_adrvlist.rowposition, "pid");
- var inrsrvacptdd = ds_main_adrvlist_adrvlist.getColumn(ds_main_adrvlist_adrvlist.rowposition, "inrsrvacptdd");
- var orddeptcd = ds_main_adrvlist_adrvlist.getColumn(ds_main_adrvlist_adrvlist.rowposition, "orddeptcd");
- var inrsrvacptseqno = ds_main_adrvlist_adrvlist.getColumn(ds_main_adrvlist_adrvlist.rowposition, "inrsrvacptseqno");
- var execflg = "";
- if( group3.group2.radio2.value == "N" ){
- execflg = 'N';
- }else if( group3.group2.radio2.value == "Y" ){
- execflg = 'Y';
- }
-
- ds_send.setColumn(0, "pid" , pid);
- ds_send.setColumn(0, "inrsrvacptdd" , inrsrvacptdd);
- ds_send.setColumn(0, "orddeptcd" , orddeptcd);
- ds_send.setColumn(0, "inrsrvacptseqno" , inrsrvacptseqno);
- ds_send.setColumn(0, "execflg" , execflg);
-
- var oParam = {};
- oParam.id = "TXMNW10101";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqExeSetAdrv";
- oParam.inds = "req=ds_send";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNW10101";
- tranf_submit(oParam);
-
- fSearch();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_inreqhistlist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function group3_grd_inreqhistlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- group3.import1.fReqInReqHistList(ds_main_adrvlist_adrvlist.getColumn(ds_main_adrvlist_adrvlist.rowposition, "pid"),
- ds_main_adrvlist_adrvlist.getColumn(ds_main_adrvlist_adrvlist.rowposition, "inrsrvacptdd"),
- ds_main_adrvlist_adrvlist.getColumn(ds_main_adrvlist_adrvlist.rowposition, "orddeptcd"),
- ds_main_adrvlist_adrvlist.getColumn(ds_main_adrvlist_adrvlist.rowposition, "inrsrvacptseqno")
- );
- }
- function SPMNW10100_ontimer(obj:Form, e:TimerEventInfo)
- {
- if( e.timerid == 0 ){
- this.killTimer(0);
-
- fSearch();
-
- group3.import1.fInitialize_SPMMO14800();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|