SPMNE00200_처방에러.xfdl 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNE00200" position="absolute 0 0 815 526" titletext="처방오류리스트" oninit="SPMNE00200_oninit" onload="SPMNE00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 736 473 792 495" id="button1" class="btn4" text="확인" onclick="button1_onclick"/>
  8. <Static text="* 위의 오류사항을 수정후 저장하여 주십시오." position="absolute 6 473 265 493" id="caption2" style="color:#ff0000ff;"/>
  9. <Tab position="absolute 2 22 795 470" 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 793 416" id="errlist1" binddataset="ds_errlist1" autofittype="col">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="80"/>
  19. <Column size="302"/>
  20. <Column size="374"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="24" band="head"/>
  24. <Row size="24"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell text="처방코드"/>
  28. <Cell col="1" text="처방명"/>
  29. <Cell col="2" text="오류내용"/>
  30. </Band>
  31. <Band id="body">
  32. <Cell edittype="none" style="align:left;" text="bind:prcpcd" suppress="1" suppressalign="middle"/>
  33. <Cell col="1" style="align:left;" text="bind:prcpnm"/>
  34. <Cell col="2" style="align:left;" text="bind:prcperr"/>
  35. </Band>
  36. </Format>
  37. </Formats>
  38. </Grid>
  39. </Layout>
  40. </Layouts>
  41. </Tabpage>
  42. <Tabpage text="병용금기" id="case2">
  43. <Layouts>
  44. <Layout>
  45. <Grid position="absolute 0 0 793 416" id="errlist2" binddataset="ds_errlist2" autofittype="col">
  46. <Formats>
  47. <Format id="default">
  48. <Columns>
  49. <Column size="80"/>
  50. <Column size="302"/>
  51. <Column size="374"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="24" band="head"/>
  55. <Row size="24"/>
  56. </Rows>
  57. <Band id="head">
  58. <Cell text="처방코드"/>
  59. <Cell col="1" text="처방명"/>
  60. <Cell col="2" text="오류내용"/>
  61. </Band>
  62. <Band id="body">
  63. <Cell edittype="none" text="bind:prcpcd"/>
  64. <Cell col="1" text="bind:prcpnm"/>
  65. <Cell col="2" text="bind:prcperr"/>
  66. </Band>
  67. </Format>
  68. </Formats>
  69. </Grid>
  70. </Layout>
  71. </Layouts>
  72. </Tabpage>
  73. <Tabpage text="연령금기" id="case3">
  74. <Layouts>
  75. <Layout>
  76. <Grid position="absolute 0 0 793 416" id="errlist3" binddataset="ds_errlist3" autofittype="col" scrollbars="autovert">
  77. <Formats>
  78. <Format id="default">
  79. <Columns>
  80. <Column size="80"/>
  81. <Column size="302"/>
  82. <Column size="374"/>
  83. </Columns>
  84. <Rows>
  85. <Row size="24" band="head"/>
  86. <Row size="24"/>
  87. </Rows>
  88. <Band id="head">
  89. <Cell text="처방코드"/>
  90. <Cell col="1" text="처방명"/>
  91. <Cell col="2" text="오류내용"/>
  92. </Band>
  93. <Band id="body">
  94. <Cell edittype="none" text="bind:prcpcd"/>
  95. <Cell col="1" text="bind:prcpnm"/>
  96. <Cell col="2" text="bind:prcperr"/>
  97. </Band>
  98. </Format>
  99. </Formats>
  100. </Grid>
  101. </Layout>
  102. </Layouts>
  103. </Tabpage>
  104. </Tabpages>
  105. </Tab>
  106. </Layout>
  107. </Layouts>
  108. <Objects>
  109. <Dataset id="ds_errlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  110. <ColumnInfo>
  111. <Column id="prcpcd" type="STRING"/>
  112. <Column id="prcpnm" type="STRING"/>
  113. <Column id="prcperr" type="STRING"/>
  114. </ColumnInfo>
  115. </Dataset>
  116. <Dataset id="ds_errlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  117. <ColumnInfo>
  118. <Column id="prcpcd" type="STRING"/>
  119. <Column id="prcpnm" type="STRING"/>
  120. <Column id="prcperr" type="STRING"/>
  121. </ColumnInfo>
  122. </Dataset>
  123. <Dataset id="ds_errlist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  124. <ColumnInfo>
  125. <Column id="prcpcd" type="STRING"/>
  126. <Column id="prcpnm" type="STRING"/>
  127. <Column id="prcperr" type="STRING"/>
  128. </ColumnInfo>
  129. </Dataset>
  130. <Dataset id="ds_data_errlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  131. </Objects>
  132. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  133. * System Name :
  134. * Job Name :
  135. * Creator :
  136. * Make Date : 2015-11-13
  137. * Description :
  138. *---------------------------------------------------------------------------------------
  139. * Modify Date Modifier Modify Description
  140. *---------------------------------------------------------------------------------------
  141. * 2015-11-13 Live Converter TF->XP
  142. *
  143. *---------------------------------------------------------------------------------------
  144. ****************************************************************************************/
  145. include "com_commonxp::comm_main.xjs";
  146. include "com_commodulexp::SSZFM00701.xjs";
  147. function SPMNE00200_oninit(obj:Form, e:InitEventInfo){
  148. }
  149. function SPMNE00200_onload(obj:Form, e:LoadEventInfo){
  150. frmf_initForm(obj);
  151. try{
  152. ds_data_errlist.copyData(arg_ds_data_errlist, true);
  153. }catch(e){
  154. }
  155. var currow = 0;
  156. lf_setTabPageVisble(switch1, "case1", false);
  157. lf_setTabPageVisble(switch1, "case2", false);
  158. lf_setTabPageVisble(switch1, "case3", false);
  159. for ( var i=0; i < ds_data_errlist.rowcount; i++ ) {
  160. currow = i;
  161. flag = ds_data_errlist.getColumn(currow, "flag");
  162. if ( flag == "1" ) {
  163. lf_setTabPageVisble(switch1, "case1", true);
  164. var nRow = ds_errlist1.addRow();
  165. ds_errlist1.copyRow(nRow, ds_data_errlist, i);
  166. } else if ( flag == "2" ) {
  167. lf_setTabPageVisble(switch1, "case2", true);
  168. var nRow = ds_errlist2.addRow();
  169. ds_errlist2.copyRow(nRow, ds_data_errlist, i);
  170. } else if ( flag == "3" ) {
  171. lf_setTabPageVisble(switch1, "case3", true);
  172. var nRow = ds_errlist3.addRow();
  173. ds_errlist3.copyRow(nRow, ds_data_errlist, i);
  174. }
  175. }
  176. // 인덱스를 설정한다
  177. var tabindex = 0;
  178. if(ds_errlist1.getRowCount() > 0){
  179. tabindex = 0;
  180. }
  181. else if(ds_errlist2.getRowCount() > 0){
  182. tabindex = 1;
  183. }
  184. else if(ds_errlist3.getRowCount() > 0){
  185. tabindex = 2;
  186. }
  187. switch1.tabindex = tabindex;
  188. }
  189. function button1_onclick(obj:Button, e:ClickEventInfo){
  190. this.close();
  191. //window.close();
  192. }
  193. ]]></Script>
  194. </Form>
  195. </FDL>