SPADC62800_한국형알고리즘V20.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPADC62800" position="absolute 0 0 650 840" titletext="한국형 알고리즘 V20" oninit="SPADC62800_oninit" onload="SPADC62800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="roundrect2" type="roundrectangle" position="absolute 0 776 650 806"/>
  8. <Static id="caption8" text="Certain : &gt;= 12" position="absolute 483 784 568 798"/>
  9. <Static id="caption9" class="color_2" position="absolute 465 783 480 798"/>
  10. <Static id="caption6" text="Probable : 6~11" position="absolute 363 784 454 798"/>
  11. <Static id="caption7" class="color_2" position="absolute 345 783 360 798"/>
  12. <Static id="caption4" text="Possible : 2~5" position="absolute 243 784 327 798"/>
  13. <Static id="caption5" class="color_2" position="absolute 225 783 240 798"/>
  14. <Static id="caption51" text="Unlikely : &lt;= 1" position="absolute 123 784 204 798"/>
  15. <Static id="caption49" class="color_2" position="absolute 105 783 120 798"/>
  16. <Static id="caption47" text="범 례" class="cell_2" position="absolute 15 781 85 801"/>
  17. <Static id="caption2" text="Total Score" class="tit_2" position="absolute 0 755 97 772"/>
  18. <Edit id="input3" taborder="3" readonly="true" position="absolute 100 752 195 773"/>
  19. <Static id="caption3" text="인과관계" class="tit_2" position="absolute 255 755 330 772"/>
  20. <Combo id="combo5" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" enable="false" position="absolute 330 752 650 773">
  21. <Dataset id="innerdataset">
  22. <ColumnInfo>
  23. <Column id="codecolumn"/>
  24. <Column id="datacolumn"/>
  25. </ColumnInfo>
  26. <Rows>
  27. <Row>
  28. <Col id="codecolumn">1</Col>
  29. <Col id="datacolumn">Certain</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">2</Col>
  33. <Col id="datacolumn">probable</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">3</Col>
  37. <Col id="datacolumn">possible</Col>
  38. </Row>
  39. <Row>
  40. <Col id="codecolumn">4</Col>
  41. <Col id="datacolumn">unlikely</Col>
  42. </Row>
  43. </Rows>
  44. </Dataset>
  45. </Combo>
  46. <Grid id="grd_koralgo" taborder="5" binddataset="ds_main_koalgolist" useinputpanel="false" position="absolute 0 24 650 746" autofittype="col" oncellclick="grd_koralgo_oncellclick">
  47. <Formats>
  48. <Format id="default">
  49. <Columns>
  50. <Column size="111"/>
  51. <Column size="182"/>
  52. <Column size="300"/>
  53. <Column size="28"/>
  54. <Column size="27"/>
  55. </Columns>
  56. <Rows>
  57. <Row size="24" band="head"/>
  58. <Row size="24"/>
  59. </Rows>
  60. <Band id="head">
  61. <Cell/>
  62. <Cell col="1"/>
  63. <Cell col="2"/>
  64. <Cell col="3"/>
  65. <Cell col="4"/>
  66. </Band>
  67. <Band id="body">
  68. <Cell style="align:left middle;" text="bind:cmt" wordwrap="word" suppress="1" suppressalign="middle,over"/>
  69. <Cell col="1" style="align:left middle;" text="bind:req" wordwrap="word" editlimitbymask="none" suppress="2" suppressalign="middle,over"/>
  70. <Cell col="2" style="align:left middle;" text="bind:ans"/>
  71. <Cell col="3" text="bind:scor"/>
  72. <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr : (chk==&quot;Y&quot;||chk==1)?1:0"/>
  73. </Band>
  74. </Format>
  75. </Formats>
  76. </Grid>
  77. <Shape id="line1" class="line_1" position="absolute 0 18 650 24"/>
  78. <Static id="caption1" text="한국형 알고리즘 V2.0" class="tit_2" position="absolute 0 3 210 20"/>
  79. <Button id="btn_cfm" taborder="6" text="확인" class="btn4" position="absolute 534 811 590 833" onclick="btn_cfm_onclick"/>
  80. <Button id="btn_cls" taborder="7" text="닫기" class="btn4" position="absolute 593 811 649 833" onclick="btn_cls_onclick"/>
  81. <Shape id="line00" class="line_1" position="absolute 0 19 650 25"/>
  82. <Shape id="line02" class="line_1" position="absolute 0 20 650 26"/>
  83. </Layout>
  84. </Layouts>
  85. <Objects>
  86. <Dataset id="ds_main_koalgolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_koalgolist_oncolumnchanged">
  87. <ColumnInfo>
  88. <Column id="cmt" type="STRING"/>
  89. <Column id="req" type="STRING"/>
  90. <Column id="ans" type="STRING"/>
  91. <Column id="scor" type="STRING"/>
  92. <Column id="chk" type="STRING"/>
  93. </ColumnInfo>
  94. <Rows>
  95. <Row>
  96. <Col id="cmt">시작적 선후관계</Col>
  97. <Col id="req">약물 투여와 유해사례 발현의 선후관계에 관한 정보가 있는가?</Col>
  98. <Col id="ans">시간적 선후관계 합당</Col>
  99. <Col id="scor">+3</Col>
  100. <Col id="chk"/>
  101. </Row>
  102. <Row>
  103. <Col id="cmt">시작적 선후관계</Col>
  104. <Col id="req">약물 투여와 유해사례 발현의 선후관계에 관한 정보가 있는가?</Col>
  105. <Col id="ans">선후관계 모순</Col>
  106. <Col id="scor">-3</Col>
  107. <Col id="chk"/>
  108. </Row>
  109. <Row>
  110. <Col id="cmt">시작적 선후관계</Col>
  111. <Col id="req">약물 투여와 유해사례 발현의 선후관계에 관한 정보가 있는가?</Col>
  112. <Col id="ans">정보없음</Col>
  113. <Col id="scor">0</Col>
  114. <Col id="chk"/>
  115. </Row>
  116. <Row>
  117. <Col id="cmt">감량 또는 중단</Col>
  118. <Col id="req">감량 또는 중단에 대한 정보가 있는가?</Col>
  119. <Col id="ans">감량 또는 중단 후 임상적 호전이 관찰됨</Col>
  120. <Col id="scor">+3</Col>
  121. <Col id="chk"/>
  122. </Row>
  123. <Row>
  124. <Col id="cmt">감량 또는 중단</Col>
  125. <Col id="req">감량 또는 중단에 대한 정보가 있는가?</Col>
  126. <Col id="ans">감량 또는 중단과 무관한 임상경과를 보임</Col>
  127. <Col id="scor">-2</Col>
  128. <Col id="chk"/>
  129. </Row>
  130. <Row>
  131. <Col id="cmt">감량 또는 중단</Col>
  132. <Col id="req">감량 또는 중단에 대한 정보가 있는가?</Col>
  133. <Col id="ans">감량 또는 중단을 시행하지 않음</Col>
  134. <Col id="scor">0</Col>
  135. <Col id="chk"/>
  136. </Row>
  137. <Row>
  138. <Col id="cmt">감량 또는 중단</Col>
  139. <Col id="req">감량 또는 중단에 대한 정보가 있는가?</Col>
  140. <Col id="ans">정보없음</Col>
  141. <Col id="scor">0</Col>
  142. <Col id="chk"/>
  143. </Row>
  144. <Row>
  145. <Col id="cmt">유해사례의 과거력</Col>
  146. <Col id="req">이전에 동일한 또는 유사한 약물로 유해사례를 경험한 적이 있는가?</Col>
  147. <Col id="ans">예</Col>
  148. <Col id="scor">+1</Col>
  149. <Col id="chk"/>
  150. </Row>
  151. <Row>
  152. <Col id="cmt">유해사례의 과거력</Col>
  153. <Col id="req">이전에 동일한 또는 유사한 약물로 유해사례를 경험한 적이 있는가?</Col>
  154. <Col id="ans">아니오</Col>
  155. <Col id="scor">-1</Col>
  156. <Col id="chk"/>
  157. </Row>
  158. <Row>
  159. <Col id="cmt">유해사례의 과거력</Col>
  160. <Col id="req">이전에 동일한 또는 유사한 약물로 유해사례를 경험한 적이 있는가?</Col>
  161. <Col id="ans">정보없음</Col>
  162. <Col id="scor">0</Col>
  163. <Col id="chk"/>
  164. </Row>
  165. <Row>
  166. <Col id="cmt">병용약물</Col>
  167. <Col id="req">병용약물에 대한 정보가 있는가?</Col>
  168. <Col id="ans">병용약물로 유해사례를 설명할 수 없는 경우</Col>
  169. <Col id="scor">+2</Col>
  170. <Col id="chk"/>
  171. </Row>
  172. <Row>
  173. <Col id="cmt">병용약물</Col>
  174. <Col id="req">병용약물에 대한 정보가 있는가?</Col>
  175. <Col id="ans">병용약물 단독으로 설명할 수 있는 경우</Col>
  176. <Col id="scor">-3</Col>
  177. <Col id="chk"/>
  178. </Row>
  179. <Row>
  180. <Col id="cmt">병용약물</Col>
  181. <Col id="req">병용약물에 대한 정보가 있는가?</Col>
  182. <Col id="ans">의심약물과 상호작용으로 설명되는 경우</Col>
  183. <Col id="scor">+2</Col>
  184. <Col id="chk"/>
  185. </Row>
  186. <Row>
  187. <Col id="cmt">병용약물</Col>
  188. <Col id="req">병용약물에 대한 정보가 있는가?</Col>
  189. <Col id="ans">병용약물에 대한 설명이 없는 경우</Col>
  190. <Col id="scor">0</Col>
  191. <Col id="chk"/>
  192. </Row>
  193. <Row>
  194. <Col id="cmt">병용약물</Col>
  195. <Col id="req">병용약물에 대한 정보가 있는가?</Col>
  196. <Col id="ans">정보없음</Col>
  197. <Col id="scor">0</Col>
  198. <Col id="chk"/>
  199. </Row>
  200. <Row>
  201. <Col id="cmt">비약물요인</Col>
  202. <Col id="req">비약물요인에 대한 정보가 있는가?</Col>
  203. <Col id="ans">비약물요인으로 유해사례가 설명되지 않음</Col>
  204. <Col id="scor">+1</Col>
  205. <Col id="chk"/>
  206. </Row>
  207. <Row>
  208. <Col id="cmt">비약물요인</Col>
  209. <Col id="req">비약물요인에 대한 정보가 있는가?</Col>
  210. <Col id="ans">비약물요인으로 유해사례가 설명됨</Col>
  211. <Col id="scor">-1</Col>
  212. <Col id="chk"/>
  213. </Row>
  214. <Row>
  215. <Col id="cmt">비약물요인</Col>
  216. <Col id="req">비약물요인에 대한 정보가 있는가?</Col>
  217. <Col id="ans">정보없음</Col>
  218. <Col id="scor">0</Col>
  219. <Col id="chk"/>
  220. </Row>
  221. <Row>
  222. <Col id="cmt">약물에 대해 알려진 정보</Col>
  223. <Col id="req"/>
  224. <Col id="ans">허가사항(label, insert 등)에 반영되어 있음</Col>
  225. <Col id="scor">+3</Col>
  226. <Col id="chk"/>
  227. </Row>
  228. <Row>
  229. <Col id="cmt">약물에 대해 알려진 정보</Col>
  230. <Col id="req"/>
  231. <Col id="ans">허가사항에 반영되어 있지 않으나 증례보고가 있었음</Col>
  232. <Col id="scor">+2</Col>
  233. <Col id="chk"/>
  234. </Row>
  235. <Row>
  236. <Col id="cmt">약물에 대해 알려진 정보</Col>
  237. <Col id="req"/>
  238. <Col id="ans">알려진바 없음</Col>
  239. <Col id="scor">0</Col>
  240. <Col id="chk"/>
  241. </Row>
  242. <Row>
  243. <Col id="cmt">재투약</Col>
  244. <Col id="req">약물 재투여에 관한 정보가 있는가?</Col>
  245. <Col id="ans">재투약으로 동일한 유해사례가 발생함</Col>
  246. <Col id="scor">+3</Col>
  247. <Col id="chk"/>
  248. </Row>
  249. <Row>
  250. <Col id="cmt">재투약</Col>
  251. <Col id="req">약물 재투여에 관한 정보가 있는가?</Col>
  252. <Col id="ans">재투약으로 동일한 유해사례가 발생하지 않음</Col>
  253. <Col id="scor">-2</Col>
  254. <Col id="chk"/>
  255. </Row>
  256. <Row>
  257. <Col id="cmt">재투약</Col>
  258. <Col id="req">약물 재투여에 관한 정보가 있는가?</Col>
  259. <Col id="ans">재투약하지 않음</Col>
  260. <Col id="scor">0</Col>
  261. <Col id="chk"/>
  262. </Row>
  263. <Row>
  264. <Col id="cmt">재투약</Col>
  265. <Col id="req">약물 재투여에 관한 정보가 있는가?</Col>
  266. <Col id="ans">정보없음</Col>
  267. <Col id="scor">0</Col>
  268. <Col id="chk"/>
  269. </Row>
  270. <Row>
  271. <Col id="cmt">특이적인 검사</Col>
  272. <Col id="req">약물검사, 약물농도 검사와 같은 특이적인 검사를 시행하였는가?</Col>
  273. <Col id="ans">양성</Col>
  274. <Col id="scor">+3</Col>
  275. <Col id="chk"/>
  276. </Row>
  277. <Row>
  278. <Col id="cmt">특이적인 검사</Col>
  279. <Col id="req">약물검사, 약물농도 검사와 같은 특이적인 검사를 시행하였는가?</Col>
  280. <Col id="ans">음성</Col>
  281. <Col id="scor">-1</Col>
  282. <Col id="chk"/>
  283. </Row>
  284. <Row>
  285. <Col id="cmt">특이적인 검사</Col>
  286. <Col id="req">약물검사, 약물농도 검사와 같은 특이적인 검사를 시행하였는가?</Col>
  287. <Col id="ans">결과를 알 수 없음</Col>
  288. <Col id="scor">0</Col>
  289. <Col id="chk"/>
  290. </Row>
  291. <Row>
  292. <Col id="cmt">특이적인 검사</Col>
  293. <Col id="req">약물검사, 약물농도 검사와 같은 특이적인 검사를 시행하였는가?</Col>
  294. <Col id="ans">정보없음</Col>
  295. <Col id="scor">0</Col>
  296. <Col id="chk"/>
  297. </Row>
  298. </Rows>
  299. </Dataset>
  300. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  301. <ColumnInfo>
  302. <Column id="totscr" type="STRING" size="256"/>
  303. <Column id="casrslt" type="STRING" size="256"/>
  304. </ColumnInfo>
  305. <Rows>
  306. <Row/>
  307. </Rows>
  308. </Dataset>
  309. <Dataset id="ds_popdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  310. <ColumnInfo>
  311. <Column id="casrslt" type="STRING" size="256"/>
  312. <Column id="totscr" type="STRING" size="256"/>
  313. <Column id="koralgo" type="STRING" size="256"/>
  314. </ColumnInfo>
  315. <Rows>
  316. <Row/>
  317. </Rows>
  318. </Dataset>
  319. <Dataset id="ds_hidden_koalgolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  320. </Objects>
  321. <Bind>
  322. <BindItem id="item0" compid="input3" propid="value" datasetid="ds_send_data" columnid="totscr"/>
  323. <BindItem id="item1" compid="combo5" propid="value" datasetid="ds_send_data" columnid="casrslt"/>
  324. </Bind>
  325. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  326. * System Name :
  327. * Job Name :
  328. * Creator :
  329. * Make Date : 2015-11-13
  330. * Description :
  331. *---------------------------------------------------------------------------------------
  332. * Modify Date Modifier Modify Description
  333. *---------------------------------------------------------------------------------------
  334. * 2015-11-13 Live Converter TF->XP
  335. *
  336. *---------------------------------------------------------------------------------------
  337. ****************************************************************************************/
  338. include "com_commonxp::comm_main.xjs";
  339. /******************************************************************
  340. * Argument :
  341. * Description : 초기화
  342. ******************************************************************/
  343. function SPADC62800_oninit(obj:Form, e:InitEventInfo)
  344. {
  345. frmf_initForm(obj);
  346. }
  347. function SPADC62800_onload(obj:Form, e:LoadEventInfo)
  348. {
  349. try{
  350. dsf_copyDs(ds_popdata,arg_ds_popdata);
  351. }catch(e){}
  352. var iscr = ds_popdata.getColumn(0, "koralgo");
  353. var comArray = iscr.split("^");
  354. if( comArray.length > 0 ){
  355. for( var i = 1; i < comArray.length; i++) {
  356. if( !utlf_isNull(comArray[i])) {
  357. ds_main_koalgolist.setColumn(comArray[i]-1, "chk", "Y");
  358. }
  359. }
  360. }
  361. fSetCalc();
  362. ds_hidden_koalgolist.copyData(ds_main_koalgolist);
  363. }
  364. /******************************************************************
  365. * Argument :
  366. * Description : fSetCalc()
  367. ******************************************************************/
  368. function fSetCalc(){
  369. var iTotScor = 0;
  370. for( var iRowNo = 0 ; iRowNo <= ds_main_koalgolist.rowcount; iRowNo++ ) {
  371. if( ds_main_koalgolist.getColumn(iRowNo, "chk") == "Y" ) {
  372. iTotScor += Number(ds_main_koalgolist.getColumn(iRowNo, "scor"));
  373. }
  374. }
  375. ds_send_data.setColumn(0, "totscr", iTotScor);
  376. if(iTotScor >= 12) {
  377. ds_send_data.setColumn(0, "casrslt", "1");
  378. } else if(6 <= iTotScor && iTotScor<= 11) {
  379. ds_send_data.setColumn(0, "casrslt", "2");
  380. } else if(2 <= iTotScor && iTotScor<= 5) {
  381. ds_send_data.setColumn(0, "casrslt", "3");
  382. } else {
  383. ds_send_data.setColumn(0, "casrslt", "4");
  384. }
  385. }
  386. /******************************************************************
  387. * Argument :
  388. * Description :
  389. ******************************************************************/
  390. function grd_koralgo_oncellclick(obj:Grid, e:GridClickEventInfo)
  391. {
  392. var iRowNo = ds_main_koalgolist.rowposition;
  393. var cCol = grd_koralgo.currentcol;
  394. if(0 <= iRowNo && iRowNo <= 2) {
  395. if( cCol == grd_koralgo.getBindCellIndex("body","chk") ){
  396. if( ds_main_koalgolist.getColumn(iRowNo, "chk") == "Y" ){
  397. for( var i = 0; i <= 2; i++ ){
  398. if( i != iRowNo ){
  399. ds_main_koalgolist.setColumn(i, "chk", "N");
  400. }
  401. }
  402. } else {
  403. return;
  404. }
  405. }
  406. } else if(3 <= iRowNo && iRowNo <= 6) {
  407. if( cCol == grd_koralgo.getBindCellIndex("body","chk") ){
  408. if( ds_main_koalgolist.getColumn(iRowNo, "chk") == "Y" ){
  409. for( var i = 3; i <= 6; i++ ){
  410. if( i != iRowNo ){
  411. ds_main_koalgolist.setColumn(i, "chk", "N");
  412. }
  413. }
  414. } else {
  415. return;
  416. }
  417. }
  418. } else if(7 <= iRowNo && iRowNo <= 9) {
  419. if( cCol == grd_koralgo.getBindCellIndex("body","chk") ){
  420. if( ds_main_koalgolist.getColumn(iRowNo, "chk") == "Y" ){
  421. for( var i = 7; i <= 9; i++ ){
  422. if( i != iRowNo ){
  423. ds_main_koalgolist.setColumn(i, "chk", "N");
  424. }
  425. }
  426. } else {
  427. return;
  428. }
  429. }
  430. } else if(10 <= iRowNo && iRowNo <= 14) {
  431. if( cCol == grd_koralgo.getBindCellIndex("body","chk") ){
  432. if( ds_main_koalgolist.getColumn(iRowNo, "chk") == "Y" ){
  433. for( var i = 10; i <= 14; i++ ){
  434. if( i != iRowNo ){
  435. ds_main_koalgolist.setColumn(i, "chk", "N");
  436. }
  437. }
  438. } else {
  439. return;
  440. }
  441. }
  442. } else if(15 <= iRowNo && iRowNo <= 17) {
  443. if( cCol == grd_koralgo.getBindCellIndex("body","chk") ){
  444. if( ds_main_koalgolist.getColumn(iRowNo, "chk") == "Y" ){
  445. for( var i = 15; i <= 17; i++ ){
  446. if( i != iRowNo ){
  447. ds_main_koalgolist.setColumn(i, "chk", "N");
  448. }
  449. }
  450. } else {
  451. return;
  452. }
  453. }
  454. } else if(18 <= iRowNo && iRowNo <= 20) {
  455. if( cCol == grd_koralgo.getBindCellIndex("body","chk") ){
  456. if( ds_main_koalgolist.getColumn(iRowNo, "chk") == "Y" ){
  457. for( var i = 18; i <= 20; i++ ){
  458. if( i != iRowNo ){
  459. ds_main_koalgolist.setColumn(i, "chk", "N");
  460. }
  461. }
  462. } else {
  463. return;
  464. }
  465. }
  466. } else if(21 <= iRowNo && iRowNo <= 24) {
  467. if( cCol == grd_koralgo.getBindCellIndex("body","chk") ){
  468. if( ds_main_koalgolist.getColumn(iRowNo, "chk") == "Y" ){
  469. for( var i = 21; i <= 24; i++ ){
  470. if( i != iRowNo ){
  471. ds_main_koalgolist.setColumn(i, "chk", "N");
  472. }
  473. }
  474. } else {
  475. return;
  476. }
  477. }
  478. } else {
  479. if( cCol == grd_koralgo.getBindCellIndex("body","chk") ){
  480. if( ds_main_koalgolist.getColumn(iRowNo, "chk") == "Y" ){
  481. for( var i = 25; i <= 28; i++ ){
  482. if( i != iRowNo ){
  483. ds_main_koalgolist.setColumn(i, "chk", "N");
  484. }
  485. }
  486. } else {
  487. return;
  488. }
  489. }
  490. }
  491. ds_main_koalgolist.setColumn(iRowNo, "chk", "Y");
  492. fSetCalc();
  493. }
  494. /******************************************************************
  495. * Argument :
  496. * Description : 확인 button event
  497. ******************************************************************/
  498. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  499. {
  500. var skorAlgo = "v20";
  501. var sTemp = "";
  502. for( var iRowNo = 0 ; iRowNo <= 7 ; iRowNo++) {
  503. if(iRowNo == 0) {
  504. sTemp = "";
  505. for( var iNo = 0 ; iNo <= 2 ; iNo++) {
  506. if( ds_main_koalgolist.getColumn(iNo, "chk") == "Y") {
  507. sTemp = iNo+1;
  508. }
  509. }
  510. skorAlgo += "^" + sTemp;
  511. } else if(iRowNo == 1) {
  512. sTemp = "";
  513. for( var iNo = 3 ; iNo <= 6 ; iNo++ ) {
  514. if( ds_main_koalgolist.getColumn(iNo, "chk") == "Y") {
  515. sTemp = iNo+1;
  516. }
  517. }
  518. skorAlgo += "^" + sTemp;
  519. } else if(iRowNo == 2) {
  520. sTemp = "";
  521. for(var iNo = 7 ; iNo <= 9 ; iNo++) {
  522. if( ds_main_koalgolist.getColumn(iNo, "chk") == "Y") {
  523. sTemp = iNo+1;
  524. }
  525. }
  526. skorAlgo += "^" + sTemp;
  527. } else if(iRowNo == 3) {
  528. sTemp = "";
  529. for(var iNo = 10 ; iNo <= 14 ; iNo++) {
  530. if( ds_main_koalgolist.getColumn(iNo, "chk") == "Y") {
  531. sTemp = iNo+1;
  532. }
  533. }
  534. skorAlgo += "^" + sTemp;
  535. } else if(iRowNo == 4) {
  536. for(var iNo = 15 ; iNo <= 17 ; iNo++) {
  537. if( ds_main_koalgolist.getColumn(iNo, "chk") == "Y") {
  538. sTemp = iNo+1;
  539. }
  540. }
  541. skorAlgo += "^" + sTemp;
  542. } else if(iRowNo == 5) {
  543. sTemp = "";
  544. for(var iNo = 18 ; iNo <=20 ; iNo++) {
  545. if( ds_main_koalgolist.getColumn(iNo, "chk") == "Y") {
  546. sTemp = iNo+1;
  547. }
  548. }
  549. skorAlgo += "^" + sTemp;
  550. } else if(iRowNo == 7) {
  551. sTemp = "";
  552. for(var iNo = 21 ; iNo <= 24 ; iNo++) {
  553. if( ds_main_koalgolist.getColumn(iNo, "chk") == "Y") {
  554. sTemp = iNo+1;
  555. }
  556. }
  557. skorAlgo += "^" + sTemp;
  558. } else {
  559. sTemp = "";
  560. for(var iNo = 25 ; iNo <= 28 ; iNo++) {
  561. if( ds_main_koalgolist.getColumn(iNo, "chk") == "Y") {
  562. sTemp = iNo+1;
  563. }
  564. }
  565. skorAlgo += "^" + sTemp;
  566. }
  567. }
  568. opener.ds_hidden.setColumn(0, "koralgo", skorAlgo);
  569. opener.ds_hidden.setColumn(0, "totscr", ds_send_data.getColumn(0, "totscr"));
  570. this.close();
  571. }
  572. /******************************************************************
  573. * Argument :
  574. * Description :
  575. ******************************************************************/
  576. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  577. {
  578. this.close();
  579. }
  580. function ds_main_koalgolist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  581. {
  582. if(e.columnid=="chk") {
  583. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  584. }
  585. }
  586. ]]></Script>
  587. </Form>
  588. </FDL>