SPMMO90100_처방전확인리스트.xfdl 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO90100" position="absolute 0 0 865 380" titletext="처방전 확인 리스트" oninit="SPMMO90100_oninit" onload="SPMMO90100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 701 358 781 380" id="button1" class="btn4" text="계속저장" onclick="button1_onclick"/>
  8. <Static text="처방전 확인 리스트" position="absolute 0 0 171 20" id="caption1" class="tit_2"/>
  9. <Grid position="absolute 0 20 865 351" id="grd_prcpmsglist" binddataset="ds_result_prcpmsglist" cellsizingtype="col" selecttype="row" autosizingtype="row" extendsizetype="row" autofittype="col" oncelldblclick="grd_prcpmsglist_oncelldblclick">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="130"/>
  14. <Column size="80"/>
  15. <Column size="174"/>
  16. <Column size="55"/>
  17. <Column size="415"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell text="확인분류"/>
  25. <Cell col="1" text="처방코드"/>
  26. <Cell col="2" text="처방명"/>
  27. <Cell col="3" text="확인코드"/>
  28. <Cell col="4" text="확인내용"/>
  29. </Band>
  30. <Band id="body">
  31. <Cell displaytype="text" style="padding:3 3 3 3;linespace:3;" text="bind:errdisc" wordwrap="word"/>
  32. <Cell col="1" displaytype="text" style="padding:3 3 3 3;linespace:3;" text="bind:prcpcd" wordwrap="word"/>
  33. <Cell col="2" displaytype="text" style="padding:3 3 3 3;linespace:3;" text="bind:prcpnm" wordwrap="word"/>
  34. <Cell col="3" style="padding:3 3 3 3;linespace:3;" text="bind:errcd" wordwrap="word"/>
  35. <Cell col="4" displaytype="text" edittype="none" style="align:left middle;padding:3 3 3 3;linespace:2;" text="bind:errmsg" wordwrap="word" autosizerow="limitmin"/>
  36. </Band>
  37. </Format>
  38. </Formats>
  39. </Grid>
  40. <Static text="* 처방 저장전 확인 리스트가 있습니다. 저장하시겠습니까 ?" position="absolute 364 360 693 380" id="caption2"/>
  41. <Button position="absolute 785 358 865 380" id="button2" class="btn4" text="처방취소" onclick="button2_onclick"/>
  42. </Layout>
  43. </Layouts>
  44. <Objects>
  45. <Dataset id="ds_result_prcpmsglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  46. <ColumnInfo>
  47. <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
  48. <Column id="msgdd" type="STRING" size="256" sumtext="메세지일자"/>
  49. <Column id="msgno" type="STRING" size="256" sumtext="메세지번호"/>
  50. <Column id="histno" type="STRING" size="256" sumtext="메세지이력번호"/>
  51. <Column id="msgseq" type="STRING" size="256" sumtext="메세지상세번호"/>
  52. <Column id="msgcls" type="STRING" size="256" sumtext="메세지종류"/>
  53. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  54. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  55. <Column id="errcd" type="STRING" size="256" sumtext="오류코드"/>
  56. <Column id="errmsg" type="STRING" size="256" sumtext="오류메세지"/>
  57. <Column id="errdisc" type="STRING" size="256" sumtext="오류설명"/>
  58. <Column id="cnfcd" type="STRING" size="256" sumtext="확인코드"/>
  59. <Column id="cnfmsg" type="STRING" size="256" sumtext="확인메세지"/>
  60. </ColumnInfo>
  61. </Dataset>
  62. <Dataset id="ds_result_saveflaginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  63. <ColumnInfo>
  64. <Column id="msgdd" type="STRING" size="256" sumtext="메세지일자"/>
  65. <Column id="msgno" type="STRING" size="256" sumtext="메세지번호"/>
  66. <Column id="histno" type="STRING" size="256" sumtext="메세지이력번호"/>
  67. <Column id="msgcls" type="STRING" size="256" sumtext="메세지종류"/>
  68. </ColumnInfo>
  69. </Dataset>
  70. </Objects>
  71. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  72. * System Name :
  73. * Job Name :
  74. * Creator :
  75. * Make Date : 2014-08-29
  76. * Description :
  77. *---------------------------------------------------------------------------------------
  78. * Modify Date Modifier Modify Description
  79. *---------------------------------------------------------------------------------------
  80. * 2014-08-29 Live Converter TF->XP
  81. *
  82. *---------------------------------------------------------------------------------------
  83. ****************************************************************************************/
  84. include "com_commonxp::comm_main.xjs";
  85. function SPMMO90100_oninit(obj:Form, e:InitEventInfo)
  86. {
  87. frmf_initForm(obj);
  88. }
  89. function SPMMO90100_onload(obj:Form, e:LoadEventInfo)
  90. {
  91. ds_result_saveflaginfo.copyData(arg_ds_result_saveflaginfo);
  92. var msgno = ds_result_saveflaginfo.getColumn(0, "msgno");
  93. if(msgno == "0"){
  94. sysf_messageBox("메세지 정보가 정확하지 않습니다.", "E999");
  95. return;
  96. }
  97. ds_result_saveflaginfo.addColumn("msgcls", "string");
  98. ds_result_saveflaginfo.setColumn(0, "msgcls", "I"); // 정보 조회(I) 로 설정
  99. var oParam = {};
  100. oParam.id = "TRMMO90101";
  101. oParam.service = "prcpmngtapp.PrcpMngt";
  102. oParam.method = "reqGetPrcpMsgList";
  103. oParam.inds = "req=ds_result_saveflaginfo";
  104. oParam.outds = "ds_result_prcpmsglist=prcpmsglist";
  105. oParam.async = false;
  106. tranf_submit(oParam);
  107. }
  108. function button1_onclick(obj:Button, e:ClickEventInfo)
  109. {
  110. ds_result_saveflaginfo.setColumn(0, "msgcls", "I"); // 정보(I) 로 설정
  111. ds_result_saveflaginfo.addColumn("cnfcd", "string");
  112. ds_result_saveflaginfo.setColumn(0, "cnfcd", "Y"); // 확인 코드를 'Y' 로 설정
  113. dsf_setDefaultVal(ds_result_saveflaginfo, "cnfcd:-,cnfmsg:-,cnfrmk:-");
  114. var oParam = {};
  115. oParam.id = "TXMMO90101";
  116. oParam.service = "prcpmngtapp.PrcpMngt";
  117. oParam.method = "reqExePrcpMsgList";
  118. oParam.inds = "req=ds_result_saveflaginfo";
  119. oParam.async = false;
  120. oParam.callback = "cf_TXMMO90101";
  121. tranf_submit(oParam);
  122. }
  123. function cf_TXMMO90101(sSvcId, nErrorCode, sErrorMsg) {
  124. if(nErrorCode > -1)
  125. opener.frmf_setParameter("SPMMO90100_rtn", "Y");
  126. close();
  127. }
  128. function button2_onclick(obj:Button, e:ClickEventInfo)
  129. {
  130. opener.frmf_setParameter("SPMMO90100_rtn", "N");
  131. close();
  132. }
  133. function grd_prcpmsglist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  134. {
  135. if(e.row < 0 || e.col < 0) return;
  136. if(obj.getCellPos() == obj.getBindCellIndex("body", "errmsg")) {
  137. var sPrscGrantNo = ds_result_saveflaginfo.getColumn(0, "prsc_grant_no");
  138. var sErrCd = ds_result_prcpmsglist.getColumn(e.row, "errcd");
  139. var sPrcpDd = ds_result_prcpmsglist.getColumn(e.row, "prcpdd");
  140. var sPrcpNo = ds_result_prcpmsglist.getColumn(e.row, "prcpno");
  141. if(sErrCd.length > 2) {
  142. sErrCd = sErrCd.substring(0, 2);
  143. }
  144. if(!utlf_isNull(sPrscGrantNo) && sErrCd == "I7") { // DUR관련 사유 이면
  145. var mon = sysf_getCurrentMonitorNumber();
  146. var xpt = this.getOwnerFrame().position.x + 50;
  147. var ypt = this.getOwnerFrame().position.y + 50;
  148. frmf_setParameter("SPMMO90700_prsc_grant_no", sPrscGrantNo);
  149. frmf_setParameter("SPMMO90700_prcpdd", sPrcpDd);
  150. frmf_setParameter("SPMMO90700_prcpno", sPrcpNo);
  151. frmf_modal("SPMMO90700", "SPMMO90700", null, false, mon, xpt, ypt, null, null, null, null, null, "M");
  152. }
  153. }
  154. }
  155. ]]></Script>
  156. </Form>
  157. </FDL>