SPMMO50200_민원확인.xfdl 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO50200" position="absolute 0 0 865 325" titletext="민원확인" class="frm_POP" oninit="SPMMO50200_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Button id="Button00" taborder="0" onclick="Button00_onclick" class="btn_POP_cls" position="absolute 836 12 850 25"/>
  8. <Static id="caption6" text="민원확인" class="sta_POP_title" position="absolute 16 8 466 23" onclick="caption6_onclick"/>
  9. <Grid id="Grid00" taborder="1" useinputpanel="false" position="absolute 9 47 857 288" binddataset="ds_patcomp" autosizingtype="row" extendsizetype="row">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="50"/>
  14. <Column size="510"/>
  15. <Column size="270"/>
  16. </Columns>
  17. <Rows>
  18. <Row size="24" band="head"/>
  19. <Row size="24"/>
  20. </Rows>
  21. <Band id="head">
  22. <Cell text="상태"/>
  23. <Cell col="1" text="알림"/>
  24. <Cell col="2" text="심사팀 메세지"/>
  25. </Band>
  26. <Band id="body">
  27. <Cell style="padding:2 2 2 2;" text="bind:status"/>
  28. <Cell col="1" displaytype="text" style="padding:3 3 3 3;linespace:2;" text="bind:msg" wordwrap="word" autosizerow="limitmin" autosizecol="default"/>
  29. <Cell col="2" displaytype="text" style="padding:3 3 3 3;linespace:3;" text="bind:judmsg" wordwrap="word" autosizerow="limitmin"/>
  30. </Band>
  31. </Format>
  32. </Formats>
  33. </Grid>
  34. <Button id="btnConfirm" taborder="2" text="확인" onclick="button3_onclick" class="btn4" position="absolute 800 295 856 315"/>
  35. </Layout>
  36. </Layouts>
  37. <Objects>
  38. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  39. <ColumnInfo>
  40. <Column id="ioflag" type="STRING" size="256" sumtext="진료구분"/>
  41. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  42. </ColumnInfo>
  43. </Dataset>
  44. <Dataset id="ds_patcomp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  45. <ColumnInfo>
  46. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  47. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  48. <Column id="orddrid" type="STRING" size="256" sumtext="의사ID"/>
  49. <Column id="status" type="STRING" size="256" sumtext="상태값"/>
  50. <Column id="refundflag" type="STRING" size="256" sumtext="환불플래그"/>
  51. <Column id="msg" type="STRING" size="256" sumtext="메시지"/>
  52. <Column id="judmsg" type="STRING" size="256" sumtext="심사팀 전달사항"/>
  53. <Column id="ofidocacptdd" type="STRING" size="256" sumtext=""/>
  54. <Column id="ofidocretno" type="STRING" size="256" sumtext=""/>
  55. <Column id="seqno" type="STRING" size="256" sumtext=""/>
  56. <Column id="tretflag" type="STRING" size="256" sumtext=""/>
  57. <Column id="histstat" type="STRING" size="256" sumtext="상태"/>
  58. </ColumnInfo>
  59. </Dataset>
  60. </Objects>
  61. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  62. * System Name : KNUH2.0
  63. * Job Name : EMR
  64. * Creator : 엄영만
  65. * Make Date : 2015-09-02
  66. * Description :
  67. *---------------------------------------------------------------------------------------
  68. * Modify Date Modifier Modify Description
  69. *---------------------------------------------------------------------------------------
  70. * 2015-09-02 Live Converter TF->XP
  71. *
  72. *---------------------------------------------------------------------------------------
  73. ****************************************************************************************/
  74. //=======================================================================================
  75. // Lib Include
  76. //---------------------------------------------------------------------------------------
  77. include "com_commonxp::comm_main.xjs"
  78. include "emr_prcpmngtxp::MMO001.xjs"
  79. //=======================================================================================
  80. // Event
  81. //---------------------------------------------------------------------------------------
  82. function SPMMO50200_oninit(obj:Form, e:InitEventInfo)
  83. {
  84. frmf_initForm(obj);
  85. //sysf_trace(gds_userInfo.saveXML());
  86. dsf_makeValue(ds_send, "pid", "string", opener.frmf_getParameter("SPMMO50200_pid"));
  87. dsf_makeValue(ds_send, "ioflag", "string", opener.frmf_getParameter("SPMMO50200_ioflag"));
  88. var oParam = {};
  89. oParam.id = "TRMMO04115";
  90. oParam.service = "prcpmngtapp.EtcPrcpMngt";
  91. oParam.method = "reqGetPatcompMsg";
  92. oParam.inds = "req=ds_send";
  93. oParam.outds = "ds_patcomp=patcomp";
  94. oParam.async = true;
  95. tranf_submit(oParam);
  96. }
  97. function Button00_onclick(obj:Button, e:ClickEventInfo)
  98. {
  99. this.close();
  100. }
  101. function button3_onclick(obj:Button, e:ClickEventInfo)
  102. {
  103. var sUserId = "";
  104. var sUserDeptCd = "";
  105. var sTretFlag = "";
  106. var sRefundFlag = "";
  107. var sDeptCd = "";
  108. var sOrddrId = "";
  109. var nRow = 0;
  110. var nCheckLength = ds_patcomp.rowcount;
  111. if(nCheckLength > 0) {
  112. sUserId = sysf_getUserInfo("userid");
  113. sUserDeptCd = sysf_getUserInfo("dutplcecd"); // 로그인 부서
  114. dsf_createDs("ds_TXMMO04115");
  115. dsf_copyColInfo(ds_TXMMO04115, ds_patcomp);
  116. for ( var i = 0; i < nCheckLength; i++ ) {
  117. sDeptCd = ds_patcomp.getColumn(i, "deptcd");
  118. sOrddrId = ds_patcomp.getColumn(i, "orddrid");
  119. sTretFlag = ds_patcomp.getColumn(i, "tretflag");
  120. sRefundFlag = ds_patcomp.getColumn(i, "refundflag");
  121. if(sUserDeptCd==sDeptCd && sUserId==sOrddrId){ // 민원 의사이면
  122. if(sTretFlag=="2" ||(sTretFlag=="3" && (sRefundFlag=="1" || sRefundFlag=="2"))){
  123. nRow = ds_TXMMO04115.addRow();
  124. ds_TXMMO04115.copyRow(nRow, ds_patcomp, i);
  125. }
  126. }
  127. }
  128. dsf_setDefaultVal(ds_TXMMO04115, "status:u,doccnfchk:Y");
  129. var oParam = {};
  130. oParam.id = "TXMMO04115";
  131. oParam.service = "patinfomngtapp.PatSpecPat";
  132. oParam.method = "reqExeJudgMemoChkInfo";
  133. oParam.inds = "req=ds_TXMMO04115";
  134. oParam.outds = "";
  135. oParam.async = false;
  136. tranf_submit(oParam);
  137. this.close();
  138. }
  139. }
  140. ]]></Script>
  141. </Form>
  142. </FDL>