123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMO50200" position="absolute 0 0 865 325" titletext="민원확인" class="frm_POP" oninit="SPMMO50200_oninit">
- <Layouts>
- <Layout>
- <Button id="Button00" taborder="0" onclick="Button00_onclick" class="btn_POP_cls" position="absolute 836 12 850 25"/>
- <Static id="caption6" text="민원확인" class="sta_POP_title" position="absolute 16 8 466 23" onclick="caption6_onclick"/>
- <Grid id="Grid00" taborder="1" useinputpanel="false" position="absolute 9 47 857 288" binddataset="ds_patcomp" autosizingtype="row" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="50"/>
- <Column size="510"/>
- <Column size="270"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="상태"/>
- <Cell col="1" text="알림"/>
- <Cell col="2" text="심사팀 메세지"/>
- </Band>
- <Band id="body">
- <Cell style="padding:2 2 2 2;" text="bind:status"/>
- <Cell col="1" displaytype="text" style="padding:3 3 3 3;linespace:2;" text="bind:msg" wordwrap="word" autosizerow="limitmin" autosizecol="default"/>
- <Cell col="2" displaytype="text" style="padding:3 3 3 3;linespace:3;" text="bind:judmsg" wordwrap="word" autosizerow="limitmin"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btnConfirm" taborder="2" text="확인" onclick="button3_onclick" class="btn4" position="absolute 800 295 856 315"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ioflag" type="STRING" size="256" sumtext="진료구분"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_patcomp" 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="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="의사ID"/>
- <Column id="status" type="STRING" size="256" sumtext="상태값"/>
- <Column id="refundflag" type="STRING" size="256" sumtext="환불플래그"/>
- <Column id="msg" type="STRING" size="256" sumtext="메시지"/>
- <Column id="judmsg" type="STRING" size="256" sumtext="심사팀 전달사항"/>
- <Column id="ofidocacptdd" type="STRING" size="256" sumtext=""/>
- <Column id="ofidocretno" type="STRING" size="256" sumtext=""/>
- <Column id="seqno" type="STRING" size="256" sumtext=""/>
- <Column id="tretflag" type="STRING" size="256" sumtext=""/>
- <Column id="histstat" type="STRING" size="256" sumtext="상태"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KNUH2.0
- * Job Name : EMR
- * Creator : 엄영만
- * Make Date : 2015-09-02
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-09-02 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "emr_prcpmngtxp::MMO001.xjs"
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- function SPMMO50200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- //sysf_trace(gds_userInfo.saveXML());
- dsf_makeValue(ds_send, "pid", "string", opener.frmf_getParameter("SPMMO50200_pid"));
- dsf_makeValue(ds_send, "ioflag", "string", opener.frmf_getParameter("SPMMO50200_ioflag"));
- var oParam = {};
- oParam.id = "TRMMO04115";
- oParam.service = "prcpmngtapp.EtcPrcpMngt";
- oParam.method = "reqGetPatcompMsg";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_patcomp=patcomp";
- oParam.async = true;
- tranf_submit(oParam);
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- var sUserId = "";
- var sUserDeptCd = "";
-
- var sTretFlag = "";
- var sRefundFlag = "";
- var sDeptCd = "";
- var sOrddrId = "";
-
- var nRow = 0;
-
- var nCheckLength = ds_patcomp.rowcount;
- if(nCheckLength > 0) {
- sUserId = sysf_getUserInfo("userid");
- sUserDeptCd = sysf_getUserInfo("dutplcecd"); // 로그인 부서
-
- dsf_createDs("ds_TXMMO04115");
- dsf_copyColInfo(ds_TXMMO04115, ds_patcomp);
-
- for ( var i = 0; i < nCheckLength; i++ ) {
- sDeptCd = ds_patcomp.getColumn(i, "deptcd");
- sOrddrId = ds_patcomp.getColumn(i, "orddrid");
- sTretFlag = ds_patcomp.getColumn(i, "tretflag");
- sRefundFlag = ds_patcomp.getColumn(i, "refundflag");
-
- if(sUserDeptCd==sDeptCd && sUserId==sOrddrId){ // 민원 의사이면
- if(sTretFlag=="2" ||(sTretFlag=="3" && (sRefundFlag=="1" || sRefundFlag=="2"))){
- nRow = ds_TXMMO04115.addRow();
- ds_TXMMO04115.copyRow(nRow, ds_patcomp, i);
- }
- }
- }
-
- dsf_setDefaultVal(ds_TXMMO04115, "status:u,doccnfchk:Y");
-
- var oParam = {};
- oParam.id = "TXMMO04115";
- oParam.service = "patinfomngtapp.PatSpecPat";
- oParam.method = "reqExeJudgMemoChkInfo";
- oParam.inds = "req=ds_TXMMO04115";
- oParam.outds = "";
- oParam.async = false;
-
- tranf_submit(oParam);
- this.close();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|