SPADC62600_WHOUMC.xfdl 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPADC62600" position="absolute 0 0 692 535" titletext="약물인과관계평가" oninit="SPADC62600_oninit" onload="SPADC62600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_cfm" taborder="1" text="확인" class="btn4" position="absolute 576 508 632 530" onclick="btn_cfm_onclick"/>
  8. <Button id="btn_cls" taborder="2" text="닫기" class="btn4" position="absolute 635 508 691 530" onclick="btn_cls_onclick"/>
  9. <Grid id="grd_whoumc" taborder="3" binddataset="ds_main_whoumclist" useinputpanel="false" position="absolute 0 24 691 502" autofittype="allboth" oncellclick="grd_whoumc_oncellclick" cellclickbound="cell" selecttype="multirow">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="32"/>
  14. <Column size="178"/>
  15. <Column size="480"/>
  16. <Column size="0"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="24" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell style="align:center middle;" text="선택"/>
  24. <Cell col="1"/>
  25. <Cell col="2"/>
  26. <Cell col="3" text="value"/>
  27. </Band>
  28. <Band id="body">
  29. <Cell displaytype="checkbox" edittype="checkbox" style="align:center middle;" text="bind:chk" expr="expr:chk == &quot;Y&quot; || chk == &quot;1&quot; ? &quot;Y&quot; : &quot;&quot;"/>
  30. <Cell col="1" text="bind:gubun"/>
  31. <Cell col="2" displaytype="text" style="align:left middle;padding:5 0 0 10;" text="bind:cnts" wordwrap="word"/>
  32. <Cell col="3" text="bind:value"/>
  33. </Band>
  34. </Format>
  35. </Formats>
  36. </Grid>
  37. <Shape id="line1" class="line_1" position="absolute 0 19 691 25"/>
  38. <Static id="caption1" text="WHO-UMC causality category" class="tit_2" position="absolute 0 3 310 20"/>
  39. <Shape id="line00" class="line_1" position="absolute 0 18 691 24"/>
  40. <Shape id="line02" class="line_1" position="absolute 0 20 691 26"/>
  41. </Layout>
  42. </Layouts>
  43. <Objects>
  44. <Dataset id="ds_main_whoumclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_whoumclist_oncolumnchanged">
  45. <ColumnInfo>
  46. <Column id="chk" type="STRING"/>
  47. <Column id="gubun" type="STRING"/>
  48. <Column id="cnts" type="STRING"/>
  49. <Column id="value" type="STRING"/>
  50. </ColumnInfo>
  51. <Rows>
  52. <Row>
  53. <Col id="chk">N</Col>
  54. <Col id="gubun">확실함(Certain)</Col>
  55. <Col id="cnts">• 의약품등의 투여, 사용과의 전후관계가 타당
  56. • 다른 의약품이나 화학물질 또는 수반질환으로 설명되지 않음
  57. • 투여중단시 임상적으로 타당한 반응
  58. • 재투여시, 약물학적 또는 현상학적으로 결정적인 경우
  59. </Col>
  60. <Col id="value">4</Col>
  61. </Row>
  62. <Row>
  63. <Col id="chk">N</Col>
  64. <Col id="gubun">상당히 확실함
  65. (probable/likely)
  66. </Col>
  67. <Col id="cnts">• 의약품 등의 투여, 사용과의 시간적 관계가 합당
  68. • 다른 의약품이나 화학물질 또는 수반질환에 의한 것으로 보이지 않음
  69. • 투여 중단 시 임상적으로 합당한 반응을 보이는 경우(재투여 정보 없음)
  70. </Col>
  71. <Col id="value">5</Col>
  72. </Row>
  73. <Row>
  74. <Col id="chk">N</Col>
  75. <Col id="gubun">가능함 (possible)</Col>
  76. <Col id="cnts">• 의약품등의 투여, 사용과의 인과관계가 합당
  77. • 다른 의약품이나 화학물질 또는 수반하는 질환에 의한 것으로 설명
  78. • 투여중단에 관한 정보가 부족하거나 불명확한 경우
  79. </Col>
  80. <Col id="value">6</Col>
  81. </Row>
  82. <Row>
  83. <Col id="chk">N</Col>
  84. <Col id="gubun">가능성 적음 (unlikely)</Col>
  85. <Col id="cnts">• 의약품등의 투여, 사용과 인과관계가 있을 것 같지 않은 일시적 사례
  86. • 다른 의약품이나 화학물질 또는 잠재된 질환에 의한 것으로 타당하고 설명이 가능
  87. </Col>
  88. <Col id="value">7</Col>
  89. </Row>
  90. <Row>
  91. <Col id="chk">N</Col>
  92. <Col id="gubun">평가곤란
  93. (conditional/unclassified)
  94. </Col>
  95. <Col id="cnts">• 적정한 평가를 위해 더 많은 자료가 필요하거나 추가 자료를 검토중인 경우
  96. </Col>
  97. <Col id="value">8</Col>
  98. </Row>
  99. <Row>
  100. <Col id="chk">N</Col>
  101. <Col id="gubun">평가불가
  102. (unassessible/unclassifiable)
  103. </Col>
  104. <Col id="cnts">• 정보가 불충분하거나 상충되어 판단할 수 없고 이를 보완하거나 확인할 수 없는 경우
  105. </Col>
  106. <Col id="value">9</Col>
  107. </Row>
  108. </Rows>
  109. </Dataset>
  110. <Dataset id="ds_popdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  111. <ColumnInfo>
  112. <Column id="casrslt" type="STRING" size="256"/>
  113. <Column id="totscr" type="STRING" size="256"/>
  114. <Column id="naranjocmt" type="STRING" size="256"/>
  115. </ColumnInfo>
  116. <Rows>
  117. <Row>
  118. <Col id="casrslt"/>
  119. <Col id="totscr"/>
  120. <Col id="naranjocmt"/>
  121. </Row>
  122. </Rows>
  123. </Dataset>
  124. </Objects>
  125. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  126. * System Name :
  127. * Job Name :
  128. * Creator :
  129. * Make Date : 2015-11-13
  130. * Description :
  131. *---------------------------------------------------------------------------------------
  132. * Modify Date Modifier Modify Description
  133. *---------------------------------------------------------------------------------------
  134. * 2015-11-13 Live Converter TF->XP
  135. *
  136. *---------------------------------------------------------------------------------------
  137. ****************************************************************************************/
  138. include "com_commonxp::comm_main.xjs";
  139. /******************************************************************
  140. * Argument :
  141. * Description : 초기화
  142. ******************************************************************/
  143. function SPADC62600_oninit(obj:Form, e:InitEventInfo)
  144. {
  145. frmf_initForm(obj);
  146. }
  147. function SPADC62600_onload(obj:Form, e:LoadEventInfo)
  148. {
  149. try{
  150. dsf_copyDs(ds_popdata,arg_ds_popdata);
  151. }catch(e){}
  152. // var iscr = ds_popdata.getColumn(0, "naranjocmt");
  153. // var comArray;
  154. // if( !utlf_isNull(iscr)){
  155. // comArray = iscr.split("^");
  156. // }
  157. // var k = 0;
  158. //
  159. // if( !utlf_isNull(comArray) ){
  160. // for( var i = 1; i < comArray.length; i++ ) {trace(i + " / " + comArray[i]);
  161. // if(comArray[i] == "Y") {
  162. // ds_main_whoumclist.setColumn(k, "chk", "Y");
  163. // } else if(comArray[i] == "N"){
  164. // ds_main_whoumclist.setColumn(k, "chk", "N");
  165. // }
  166. // k = k + 1;
  167. // }
  168. // }
  169. var value = ds_popdata.getColumn(0, "casrslt");
  170. ds_main_whoumclist.setColumn(ds_main_whoumclist.findRow("value",value),"chk","Y");
  171. if(frmf_getoOpener().name == "SPMMD03301") {
  172. btn_cfm.visible = false;
  173. grd_whoumc.setFormatColProperty(0,"size",0);
  174. }
  175. }
  176. /******************************************************************
  177. * Argument :
  178. * Description : 체크박스 선택 시 event
  179. ******************************************************************/
  180. function grd_whoumc_oncellclick(obj:Grid, e:GridClickEventInfo)
  181. {
  182. var cCol = grd_whoumc.currentcol;
  183. var cRow = ds_main_whoumclist.rowposition;
  184. if( cCol == grd_whoumc.getBindCellIndex("body","chk") ){
  185. if( ds_main_whoumclist.getColumn(cRow, "chk") == "Y" ) {
  186. for( var iRowNo = 0 ; iRowNo < ds_main_whoumclist.rowcount; iRowNo++ ) {
  187. if( iRowNo != cRow ) {
  188. ds_main_whoumclist.setColumn(iRowNo, "chk", "N");
  189. }
  190. }
  191. }
  192. }
  193. }
  194. /******************************************************************
  195. * Argument :
  196. * Description : 확인 button event
  197. ******************************************************************/
  198. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  199. {
  200. var snaranjo = "who";
  201. var iChoRow = ds_main_whoumclist.findRow("chk", "Y");
  202. if(iChoRow > -1) {
  203. opener.ds_hidden.setColumn(0, "casrslt", ds_main_whoumclist.getColumn(iChoRow, "value"));
  204. } else {
  205. opener.ds_hidden.setColumn(0, "casrslt", "");
  206. }
  207. for( var iRowNo = 0 ; iRowNo < ds_main_whoumclist.rowcount; iRowNo++ ) {
  208. // if( ds_main_whoumclist.getColumn(iRowNo, "chk") == "1" ){
  209. // ds_main_whoumclist.setColumn(iRowNo, "chk", "Y");
  210. // }
  211. snaranjo += "^" + ds_main_whoumclist.getColumn(iRowNo, "chk");
  212. }
  213. opener.ds_hidden.setColumn(0, "naranjocmt", snaranjo);
  214. this.close();
  215. }
  216. /******************************************************************
  217. * Argument :
  218. * Description : 닫기 button event
  219. ******************************************************************/
  220. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  221. {
  222. this.close();
  223. }
  224. function ds_main_whoumclist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  225. {
  226. if(e.columnid=="chk") {
  227. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  228. }
  229. }
  230. ]]></Script>
  231. </Form>
  232. </FDL>