123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNW01300" position="absolute 0 0 1100 665" titletext="전동신청내역" oninit="SMMNW01300_oninit" onload="SMMNW01300_onload" ontimer="SMMNW01300_ontimer">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 70 1100 605" id="grd_transList" binddataset="ds_grd_transList" oncelldblclick="grd_transList_oncelldblclick" onheadclick="grd_transList_onheadclick" anchor="all" cellsizingtype="both" cellsizebandtype="allband" extendsizetype="row" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="40"/>
- <Column size="160"/>
- <Column size="90"/>
- <Column size="160"/>
- <Column size="90"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <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="신청일자"/>
- <Cell col="10" text="신청시간"/>
- <Cell col="11" text="신청간호사"/>
- <Cell col="12" text="기록여부"/>
- <Cell col="13" text="구분"/>
- <Cell col="14" text="기록구분"/>
- <Cell col="15"/>
- <Cell col="16"/>
- <Cell col="17"/>
- <Cell col="18"/>
- <Cell col="19"/>
- <Cell col="20"/>
- <Cell col="21"/>
- <Cell col="22"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:chkflagnm"/>
- <Cell col="2" text="bind:pwardnm"/>
- <Cell col="3" text="bind:prestroomcd"/>
- <Cell col="4" text="bind:cwardnm"/>
- <Cell col="5" text="bind:chngroomcd"/>
- <Cell col="6" text="bind:pid"/>
- <Cell col="7" text="bind:hngnm"/>
- <Cell col="8" text="bind:indd"/>
- <Cell col="9" text="bind:appdd"/>
- <Cell col="10" text="bind:apptm"/>
- <Cell col="11" text="bind:nrname"/>
- <Cell col="12" text="bind:trsmyn"/>
- <Cell col="13" text="bind:flag"/>
- <Cell col="14" text="bind:chkflag"/>
- <Cell col="15" text="bind:indd1"/>
- <Cell col="16" text="bind:appdd1"/>
- <Cell col="17" text="bind:apptm1"/>
- <Cell col="18" text="bind:cretno"/>
- <Cell col="19" text="bind:instcd"/>
- <Cell col="20" text="bind:seqno"/>
- <Cell col="21" text="bind:orddeptcd"/>
- <Cell col="22" text="bind:medispclid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="* 기본조회 : 전실신청 승인된건만 조회 * 전동취소건포함 : 전실승인되고 기록된 후 전실승인 취소된건 포함해서 조회" position="absolute 5 609 839 629" id="caption1" style="font:Dotum,9,bold;" anchor="left bottom"/>
- <Div position="absolute 0 24 1100 61" align="align:center top;" id="group2" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Button position="absolute 1032 9 1088 29" id="btn_srchhdpatinfo" class="btn1" text="조회" onclick="group2_btn_srchhdpatinfo_onclick" anchor="top right"/>
- <Shape position="absolute 1023 9 1029 29" linetype="vertical" id="line3" class="line_1" anchor="top right"/>
- <Static text="신청일자 :" position="absolute 440 9 516 29" id="caption5" class="search_name" anchor="default"/>
- <Combo position="absolute 235 9 405 29" id="cmb_wardlist" class="combo_search" enable="true" innerdataset="@ds_init_wardlist" datacolumn="wardnm" codecolumn="wardcd" anchor="default"/>
- <Calendar position="absolute 519 9 619 29" id="ipt_sdd" class="input_s_essential" enable="true" anchor="default" autoselect="true" autoskip="true"/>
- <Calendar position="absolute 640 9 740 29" id="ipt_edd" class="input_s_essential" enable="true" anchor="default" autoselect="true"/>
- <Static text="~" position="absolute 625 9 640 29" id="caption2" anchor="default"/>
- <Radio position="absolute 5 9 230 29" id="radio1" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group2_radio1_onitemchanged" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">req</Col>
- <Col id="datacolumn">신청병동</Col>
- </Row>
- <Row>
- <Col id="codecolumn">res</Col>
- <Col id="datacolumn">전실병동</Col>
- </Row>
- <Row>
- <Col id="codecolumn">pid</Col>
- <Col id="datacolumn">등록번호</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Edit position="absolute 235 9 335 29" id="ipt_pid" class="input_search" anchor="default"/>
- <CheckBox position="absolute 755 9 865 29" id="chk_chkyn" text="전동취소건포함" truevalue="Y" onclick="group2_chk_chkyn_onclick" anchor="default"/>
- <Radio id="rdo_chkflag" taborder="1" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 869 9 998 29" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">전동</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">전입</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Static text="[표]" position="absolute 1071 639 1100 654" id="caption3" style="font:Dotum,9,bold;" anchor="right bottom"/>
- <Static text="전동 전입 신청내역" position="absolute 0 0 152 25" id="caption4" class="tit_1"/>
- <Shape position="absolute 0 65 1100 71" linetype="horizontal" id="line2" class="line_10" anchor="left top right"/>
- <Static text="기록후 취소건" position="absolute 794 609 883 627" id="caption7" style="font:Dotum,9,bold;" anchor="left bottom"/>
- <Static text="* 전동기록 : 인계병동에서 반드시 인증저장 해야함 ( N - 기록 없는 상태, T - 기록은 있으나 인증저장 되지 않은 상태, Y - 인증저장 완료된 상태 )" position="absolute 5 626 891 646" id="caption8" style="font:Dotum,9,bold;" anchor="left bottom"/>
- <Static id="caption14" class="color_2" position="absolute 745 609 780 624" style="background:yellow;" anchor="left bottom"/>
- <Static id="caption9" text="*" position="absolute 730 609 746 629" style="font:Dotum,9,bold;" anchor="left bottom"/>
- <Static id="caption00" text="* 전입기록 : 인수병동에서 반드시 인증저장 해야함" position="absolute 5 645 320 661" style="font:Dotum,9,bold;" anchor="left bottom"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_transList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pwardnm" type="STRING"/>
- <Column id="prestroomcd" type="STRING"/>
- <Column id="cwardnm" type="STRING"/>
- <Column id="chngroomcd" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="indd" type="STRING"/>
- <Column id="appdd" type="STRING"/>
- <Column id="apptm" type="STRING"/>
- <Column id="nrname" type="STRING"/>
- <Column id="trsmyn" type="STRING"/>
- <Column id="flag" type="STRING"/>
- <Column id="indd1" type="STRING"/>
- <Column id="appdd1" type="STRING"/>
- <Column id="apptm1" type="STRING"/>
- <Column id="cretno" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="seqno" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="medispclid" type="STRING"/>
- <Column id="chkflagnm" type="STRING"/>
- <Column id="chkflag" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_wardlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardnm" type="STRING"/>
- <Column id="wardcd" 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="wardcd" type="STRING" size="256"/>
- <Column id="sdd" type="STRING" size="256"/>
- <Column id="edd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="gbn" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="chkyn" type="STRING" size="256"/>
- <Column id="chkflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.radio1" propid="value" datasetid="ds_main_cond" columnid="gbn"/>
- <BindItem id="item1" compid="group2.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
- <BindItem id="item2" compid="group2.cmb_wardlist" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- <BindItem id="item3" compid="group2.ipt_sdd" propid="value" datasetid="ds_main_cond" columnid="sdd"/>
- <BindItem id="item4" compid="group2.ipt_edd" propid="value" datasetid="ds_main_cond" columnid="edd"/>
- <BindItem id="item5" compid="group2.chk_chkyn" propid="value" datasetid="ds_main_cond" columnid="chkyn"/>
- <BindItem id="item6" compid="group2.rdo_chkflag" propid="value" datasetid="ds_main_cond" columnid="chkflag"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_carecomxp::CareCom.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- include "com_departmentcodexp::ZSD001.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW01300
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNW01300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW01300
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNW01300_onload(obj:Form, e:LoadEventInfo)
- {
- fInit();
- //fGetTransList();
- this.setTimer(0, 100);
- }
- function fInit(){
- ds_main_cond.setColumn(0,"gbn","req");
- ds_main_cond.setColumn(0,"chkyn","");
-
- group2.cmb_wardlist.visible = true;
- group2.ipt_pid.visible = false;
-
- ds_main_cond.setColumn(0, "wardcd", sysf_getUserInfo("dutplcecd"));
- ds_main_cond.setColumn(0, "chkflag", "0");
- ds_send.clear();
- dsf_makeValue(ds_send,"wardcd","string", ds_main_cond.getColumn(0, "wardcd"));
-
- var oParam = {};
- oParam.id = "TRMNW00101";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetWMInitData";
- oParam.inds = "reqcond=ds_";
- oParam.outds = "ds_init_wardlist=ward";
- oParam.async = false;
- oParam.callback = "cf_TRMNW00101";
- tranf_submit(oParam);
- //model.setValue("/root/main/cond/wardcd", getUserInfo("dutplcecd"));
- var tempdd = utlf_getCurrentDate();
- dsf_makeValue(ds_main_cond,"sdd","string", tempdd);
- dsf_makeValue(ds_main_cond,"edd","string", tempdd);
- }
- function cf_TRMNW00101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function fGetTransList(){
- //grd_transList.rebuild();
- ds_send.clear();
- dsf_makeValue(ds_send,"wardcd","string", ds_main_cond.getColumn(0,"wardcd"));
- dsf_makeValue(ds_send,"sdd","string", ds_main_cond.getColumn(0,"sdd"));
- dsf_makeValue(ds_send,"edd","string", ds_main_cond.getColumn(0,"edd"));
- dsf_makeValue(ds_send,"instcd","string", sysf_getUserInfo("dutplceinstcd"));
- dsf_makeValue(ds_send,"gbn","string", ds_main_cond.getColumn(0,"gbn"));
- dsf_makeValue(ds_send,"pid","string", ds_main_cond.getColumn(0,"pid"));
- dsf_makeValue(ds_send,"chkyn","string", ds_main_cond.getColumn(0,"chkyn"));
- dsf_makeValue(ds_send,"chkflag","string", ds_main_cond.getColumn(0,"chkflag"));
-
- //alert(instance1.selectNodesXml("/root/send/req"));
-
- var oParam = {};
- oParam.id = "TRMNW01302";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetTransList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grd_transList=translist";
- oParam.async = false;
- oParam.callback = "cf_TRMNW01302";
- tranf_submit(oParam);
- //setColor
- var flag;
- var trsmyn;
- trsmyn = ds_grd_transList.getColumn(i,"trsmyn");
- //grdf_setRowStyle(grd_transList , "15" , "2" , "flag" , "equal");
- //grdf_setCellStyle(grd_transList,"0^1^2","xx^xx^T","trsmyn","trsmyn","B");
-
-
- grd_transList.setCellProperty("body", 12, "background", "EXPR((flag == '2') ? '#ffff00' : (trsmyn =='T') ? '#FFCC66': '#ffffff')" );
- grd_transList.setCellProperty("body", 12, "background2", "EXPR((flag == '2') ? '#ffff00' : (trsmyn =='T') ? '#FFCC66': '#ffffff')" );
-
- }
- function cf_TRMNW01302(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function grd_transList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var iRow = ds_grd_transList.rowcount;
- if (iRow == "" || iRow > ds_grd_transList.rowcount) return;
-
- //setParameter("SMMNW01301_PID", model.getValue("/root/main/trans/translist[" + grd_transList.row + "]/pid"));
-
- var chkflag = ds_grd_transList.getColumn(ds_grd_transList.rowposition, "chkflag");
- if(chkflag == "2"){
- frmf_setParameter("SMMNW01302_PID", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "pid"));
- frmf_setParameter("SMMNW01302_INDD", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "indd1"));
- frmf_setParameter("SMMNW01302_CRETNO", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "cretno"));
- frmf_setParameter("SMMNW01302_APPDD", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "appdd1"));
- frmf_setParameter("SMMNW01302_APPTM", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "apptm1"));
- frmf_setParameter("SMMNW01302_INSTCD", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "instcd"));
- frmf_setParameter("SMMNW01302_SEQNO", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "seqno"));
- frmf_setParameter("SMMNW01302_ORDDEPTCD", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "orddeptcd"));
- frmf_setParameter("SMMNW01302_ORDDRID", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "medispclid"));
- frmf_modal("SMMNW01302", "SMMNW01302", null, null, null, null, null, null, null, null, null, null, "M");
- //frmf_open("SMMNW01301", "SMMNW01301", objArg, false, mon, xpt, ypt, null, null, null, null, null, "M"); //yjh : 커밋
- }else{
- frmf_setParameter("SMMNW01301_PID", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "pid"));
- frmf_setParameter("SMMNW01301_INDD", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "indd1"));
- frmf_setParameter("SMMNW01301_CRETNO", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "cretno"));
- frmf_setParameter("SMMNW01301_APPDD", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "appdd1"));
- frmf_setParameter("SMMNW01301_APPTM", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "apptm1"));
- frmf_setParameter("SMMNW01301_INSTCD", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "instcd"));
- frmf_setParameter("SMMNW01301_SEQNO", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "seqno"));
- frmf_setParameter("SMMNW01301_ORDDEPTCD", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "orddeptcd"));
- frmf_setParameter("SMMNW01301_ORDDRID", ds_grd_transList.getColumn(ds_grd_transList.rowposition, "medispclid"));
- frmf_modal("SMMNW01301", "SMMNW01301", null, null, null, null, null, null, null, null, null, null, "M");
- //frmf_open("SMMNW01301", "SMMNW01301", objArg, false, mon, xpt, ypt, null, null, null, null, null, "M"); //yjh : 커밋
- }
- }
- /******************************************************************
- * Argument :
- * Description : 조회 button event
- ******************************************************************/
- function group2_btn_srchhdpatinfo_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetTransList(); // 당일입원전과전실리스트조회
- }
- /******************************************************************
- * Argument :
- * Description : 병동선택 radio event
- ******************************************************************/
- function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- group2.cmb_wardlist.value = "";
- group2.ipt_pid.value = "";
- if(ds_main_cond.getColumn(0,"gbn") == "req" || ds_main_cond.getColumn(0,"gbn") == "res" ){
- group2.cmb_wardlist.visible = true;
- group2.ipt_pid.visible = false;
- }else{
- group2.cmb_wardlist.visible = false;
- group2.ipt_pid.visible = true;
- }
- }
- /******************************************************************
- * Argument :
- * Description : 전동취소건 Check Box event
- ******************************************************************/
- function group2_chk_chkyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(group2.chk_chkyn.value == false){
- //alert("1");
- //group2.chk_chkyn.value ="";
- ds_main_cond.setColumn(0,"chkyn","");
- }
- }
- function grd_transList_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- grdf_gridSort(grd_transList,e);
- }
- function SMMNW01300_ontimer(obj:Form, e:TimerEventInfo)
- {
- if( e.timerid == 0 ){
- this.killTimer(0);
-
- fGetTransList();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|