SPMMO00600_처방에러.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO00600" position="absolute 0 0 795 500" titletext="처방오류리스트" oninit="SPMMO00600_oninit" onload="SPMMO00600_onload" onclose="SPMMO00600_onclose">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 736 475 792 497" id="button1" class="btn4" text="확인" onclick="button1_onclick"/>
  8. <Static text="* 위의 오류사항을 수정후 저장하여 주십시오." position="absolute 6 475 265 495" id="caption2" style="color:#ff0000ff;"/>
  9. <Tab position="absolute 2 0 795 472" id="switch1">
  10. <Tabpages>
  11. <Tabpage text="처방에러" position="absolute 0 0 793 448" id="case1">
  12. <Layouts>
  13. <Layout>
  14. <Grid position="absolute 0 0 791 445" id="errlist1" binddataset="ds_errlist1" cellsizingtype="col" autofittype="col" extendsizetype="row" autosizingtype="row">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="80"/>
  19. <Column size="252"/>
  20. <Column size="60"/>
  21. <Column size="364"/>
  22. </Columns>
  23. <Rows>
  24. <Row size="24" band="head"/>
  25. <Row size="24"/>
  26. </Rows>
  27. <Band id="head">
  28. <Cell text="처방코드"/>
  29. <Cell col="1" text="처방명"/>
  30. <Cell col="2" text="오류코드"/>
  31. <Cell col="3" text="오류내용"/>
  32. </Band>
  33. <Band id="body">
  34. <Cell displaytype="normal" edittype="none" style="align:left middle;padding:3;linespace:2;" text="bind:prcpcd" wordwrap="char" suppress="1" suppressalign="middle,over" autosizerow="limitmin"/>
  35. <Cell col="1" style="align:left middle;padding:3;linespace:2;" text="bind:prcpnm" wordwrap="char" suppress="2" suppressalign="middle,over" autosizerow="limitmin"/>
  36. <Cell col="2" style="align:center middle;padding:3;linespace:2;" text="bind:errcd" wordwrap="char" suppress="1" autosizerow="limitmin"/>
  37. <Cell col="3" style="align:left middle;padding:3 3 3 3;linespace:2;" text="bind:prcperr" wordwrap="char" suppress="1" autosizerow="limitmin"/>
  38. </Band>
  39. </Format>
  40. </Formats>
  41. </Grid>
  42. </Layout>
  43. </Layouts>
  44. </Tabpage>
  45. <Tabpage text="범용금기" id="case2">
  46. <Layouts>
  47. <Layout>
  48. <Grid position="absolute 0 0 791 445" id="errlist2" binddataset="ds_errlist2" cellsizingtype="col" autofittype="col" extendsizetype="row" autosizingtype="row">
  49. <Formats>
  50. <Format id="default">
  51. <Columns>
  52. <Column size="80"/>
  53. <Column size="302"/>
  54. <Column size="374"/>
  55. </Columns>
  56. <Rows>
  57. <Row size="24" band="head"/>
  58. <Row size="24"/>
  59. </Rows>
  60. <Band id="head">
  61. <Cell text="처방코드"/>
  62. <Cell col="1" text="처방명"/>
  63. <Cell col="2" text="오류내용"/>
  64. </Band>
  65. <Band id="body">
  66. <Cell displaytype="normal" edittype="none" style="align:left middle;" text="bind:prcpcd" wordwrap="char" suppress="1" suppressalign="middle,over" autosizerow="limitmin"/>
  67. <Cell col="1" style="align:left middle;" text="bind:prcpnm" wordwrap="char" suppress="2" suppressalign="middle,over" autosizerow="limitmin"/>
  68. <Cell col="2" style="align:left middle;" text="bind:prcperr" wordwrap="char" autosizerow="limitmin"/>
  69. </Band>
  70. </Format>
  71. </Formats>
  72. </Grid>
  73. </Layout>
  74. </Layouts>
  75. </Tabpage>
  76. <Tabpage text="연령금기" id="case3">
  77. <Layouts>
  78. <Layout>
  79. <Grid position="absolute 0 0 791 445" id="errlist3" binddataset="ds_errlist3" cellsizingtype="col" autofittype="col" extendsizetype="row" autosizingtype="row">
  80. <Formats>
  81. <Format id="default">
  82. <Columns>
  83. <Column size="80"/>
  84. <Column size="302"/>
  85. <Column size="374"/>
  86. </Columns>
  87. <Rows>
  88. <Row size="24" band="head"/>
  89. <Row size="24"/>
  90. </Rows>
  91. <Band id="head">
  92. <Cell text="처방코드"/>
  93. <Cell col="1" text="처방명"/>
  94. <Cell col="2" text="오류내용"/>
  95. </Band>
  96. <Band id="body">
  97. <Cell displaytype="normal" edittype="none" style="align:left middle;" text="bind:prcpcd" wordwrap="char" suppress="1" suppressalign="middle,over" autosizerow="limitmin"/>
  98. <Cell col="1" style="align:left middle;" text="bind:prcpnm" wordwrap="char" suppress="2" suppressalign="middle,over" autosizerow="limitmin"/>
  99. <Cell col="2" style="align:left middle;" text="bind:prcperr" wordwrap="char" autosizerow="limitmin"/>
  100. </Band>
  101. </Format>
  102. </Formats>
  103. </Grid>
  104. </Layout>
  105. </Layouts>
  106. </Tabpage>
  107. </Tabpages>
  108. </Tab>
  109. </Layout>
  110. </Layouts>
  111. <Objects>
  112. <Dataset id="ds_errlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  113. <ColumnInfo>
  114. <Column id="prcpcd" type="STRING"/>
  115. <Column id="prcpnm" type="STRING"/>
  116. <Column id="errcd" type="STRING"/>
  117. <Column id="prcperr" type="STRING"/>
  118. </ColumnInfo>
  119. </Dataset>
  120. <Dataset id="ds_errlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  121. <ColumnInfo>
  122. <Column id="prcpcd" type="STRING"/>
  123. <Column id="prcpnm" type="STRING"/>
  124. <Column id="prcperr" type="STRING"/>
  125. </ColumnInfo>
  126. </Dataset>
  127. <Dataset id="ds_errlist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  128. <ColumnInfo>
  129. <Column id="prcpcd" type="STRING"/>
  130. <Column id="prcpnm" type="STRING"/>
  131. <Column id="prcperr" type="STRING"/>
  132. </ColumnInfo>
  133. </Dataset>
  134. <Dataset id="ds_result_prcperrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  135. </Objects>
  136. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  137. * System Name :
  138. * Job Name :
  139. * Creator :
  140. * Make Date : 2014-10-21
  141. * Description :
  142. *---------------------------------------------------------------------------------------
  143. * Modify Date Modifier Modify Description
  144. *---------------------------------------------------------------------------------------
  145. * 2014-10-21 Live Converter TF->XP
  146. *
  147. *---------------------------------------------------------------------------------------
  148. ****************************************************************************************/
  149. //=======================================================================================
  150. // Lib Include
  151. //---------------------------------------------------------------------------------------
  152. include "com_commonxp::comm_main.xjs"
  153. include "emr_prcpmngtxp::MMO001.xjs"
  154. //=======================================================================================
  155. // Global Form Variable
  156. //---------------------------------------------------------------------------------------
  157. var arErrorCode = new HashArray();
  158. //=======================================================================================
  159. // Function
  160. //---------------------------------------------------------------------------------------
  161. /****************************************************************************************
  162. * Argument : 01.sKey : 코드아이디
  163. * : 02.sValue : 코드명
  164. * Description : 공통코드를 가져온다.
  165. ****************************************************************************************/
  166. // 화면 open, 저장시 초기화 기능을 수행한다.
  167. function fClose() {
  168. this.close();
  169. }
  170. //=======================================================================================
  171. // Transaction Callback
  172. //---------------------------------------------------------------------------------------
  173. /****************************************************************************************
  174. * Argument : 01.sSvcId : 서비스 ID
  175. * : 02.nErrorCode : 에러코드
  176. * : 03.sErrorMsg : 에러메시지
  177. * Description : tr_getCodeList의 콜백함수
  178. ****************************************************************************************/
  179. function cf_(sSvcId, nErrorCode, sErrorMsg) {
  180. if(nErrorCode < 0) return;
  181. arErrorCode.push(sSvcId, nErrorCode);
  182. sysf_trace("***** cf_ *****");
  183. }
  184. //=======================================================================================
  185. // Event
  186. //---------------------------------------------------------------------------------------
  187. /****************************************************************************************
  188. * Components :
  189. * Components ID : button5
  190. * Event : onlbuttonup
  191. * Argument : 01.obj : Object Event has occurred
  192. * : 02.e : Event Object
  193. * Description :
  194. ****************************************************************************************/
  195. function SPMMO00600_oninit(obj:Form, e:InitEventInfo)
  196. {
  197. frmf_initForm(obj);
  198. /* 상위 호출하는 화면에 arg_ds_result_prcperrlist 로 dataset을 전달 */
  199. //try {
  200. sysf_trace("222 : " + arg_ds_result_prcperrlist.saveXML());
  201. ds_result_prcperrlist.copyData(arg_ds_result_prcperrlist);
  202. //} catch(e) {}
  203. }
  204. function SPMMO00600_onload(obj:Form, e:LoadEventInfo)
  205. {
  206. var flag = "";
  207. var currow = 0;
  208. var cnt1 = 0;
  209. var cnt2 = 0;
  210. var cnt3 = 0;
  211. //try{
  212. var srcNodeListCnt = ds_result_prcperrlist.rowcount;
  213. for ( var i=0; i < srcNodeListCnt; i++ ) {
  214. flag = ds_result_prcperrlist.getColumn(i, "flag" );
  215. sysf_trace(flag);
  216. if ( flag == "1" ) {
  217. var nRow = ds_errlist1.addRow();
  218. ds_errlist1.copyRow(nRow, ds_result_prcperrlist, i);
  219. cnt1++;
  220. } else if ( flag == "2" ) {
  221. var nRow = ds_errlist2.addRow();
  222. ds_errlist2.copyRow(nRow, ds_result_prcperrlist, i);
  223. cnt2++;
  224. } else if ( flag == "3" ) {
  225. var nRow = ds_errlist3.addRow();
  226. ds_errlist3.copyRow(nRow, ds_result_prcperrlist, i);
  227. cnt3++;
  228. }
  229. }
  230. if ( cnt1 > 0 ) {
  231. switch1.tabindex = 0;
  232. } else if ( cnt2 > 0 ) {
  233. switch1.tabindex = 1;
  234. } else if ( cnt3 > 0 ) {
  235. switch1.tabindex = 2;
  236. }
  237. if ( cnt3 == 0 ) switch1.removeTabpage(2);
  238. if ( cnt2 == 0 ) switch1.removeTabpage(1);
  239. if ( cnt1 == 0 ) switch1.removeTabpage(0);
  240. //}catch(e){
  241. // sysf_trace("ds_result_prcperrlist 가 존재하지 않습니다. 확인바랍니다.");
  242. //}
  243. }
  244. function SPMMO00600_onclose(obj:Form, e:CloseEventInfo)
  245. {
  246. ds_errlist1.clearData();
  247. ds_errlist2.clearData();
  248. ds_errlist3.clearData();
  249. }
  250. function button1_onclick(obj:Button, e:ClickEventInfo)
  251. {
  252. this.close();
  253. }
  254. ]]></Script>
  255. </Form>
  256. </FDL>