SMAHR03500_간이종건판정.xfdl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHR03500" position="absolute 0 0 780 573" titletext="Untitle" oninit="SMAHR03500_oninit" onload="SMAHR03500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 5 1 405 559" id="grd_rsltlst" binddataset="ds_main_acptinfo_rsltlst_item">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="24"/>
  12. <Column size="0"/>
  13. <Column size="0"/>
  14. <Column size="0"/>
  15. <Column size="0"/>
  16. <Column size="105"/>
  17. <Column size="71"/>
  18. <Column size="136"/>
  19. <Column size="76"/>
  20. <Column size="40"/>
  21. <Column size="40"/>
  22. <Column size="65"/>
  23. <Column size="58"/>
  24. <Column size="43"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="24" band="head"/>
  31. <Row size="24"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell/>
  35. <Cell col="1" text="처방일자"/>
  36. <Cell col="2" text="실시처방&#10;유일번호"/>
  37. <Cell col="3" text="처방번호"/>
  38. <Cell col="4" text="검사코드"/>
  39. <Cell col="5" text="명칭"/>
  40. <Cell col="6" text="연계결과"/>
  41. <Cell col="7" text="결과"/>
  42. <Cell col="8" text="공단연계"/>
  43. <Cell col="9" text="Low"/>
  44. <Cell col="10" text="High"/>
  45. <Cell col="11" text="판정값"/>
  46. <Cell col="12" text="단위"/>
  47. <Cell col="13" text="종류"/>
  48. <Cell col="14" text="비고"/>
  49. <Cell col="15" text="판정코드"/>
  50. <Cell col="16" text="LIS판정"/>
  51. </Band>
  52. <Band id="body">
  53. <Cell celltype="head"/>
  54. <Cell col="1" text="bind:prcpdd"/>
  55. <Cell col="2" text="bind:execprcpuniqno"/>
  56. <Cell col="3" text="bind:prcpno"/>
  57. <Cell col="4" text="bind:testcd"/>
  58. <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:testnm" wordwrap="word"/>
  59. <Cell col="6" style="align:left top;padding:5 2 1 2;" text="bind:outtestrsltcnts" wordwrap="word"/>
  60. <Cell col="7" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;background:EXPR(col7bkcolor);background2:EXPR(col7bkcolor);" text="bind:testrsltcnts" wordwrap="word"/>
  61. <Cell col="8" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:assorsltcnts" wordwrap="word"/>
  62. <Cell col="9" text="bind:minval"/>
  63. <Cell col="10" text="bind:maxval"/>
  64. <Cell col="11" style="background:EXPR(col13bkcolor);background2:EXPR(col13bkcolor);" text="bind:judgrsltcnts"/>
  65. <Cell col="12" text="bind:rsltunit"/>
  66. <Cell col="13" displaytype="combo" edittype="combo" text="bind:rsltflag" enable="false"/>
  67. <Cell col="14" displaytype="text" edittype="text" class="gridinput" text="bind:remcnts"/>
  68. <Cell col="15" text="bind:judgcd"/>
  69. <Cell col="16" text="bind:judgmark"/>
  70. </Band>
  71. </Format>
  72. </Formats>
  73. </Grid>
  74. <Div position="absolute 40 175 308 359" id="grp_answ" visible="false" style="background:snow;">
  75. <Layouts>
  76. <Layout>
  77. <Grid position="absolute 8 8 263 177" id="grd_answlst" visible="true" binddataset="ds_hidden_answlst_item" anchor="default">
  78. <Formats>
  79. <Format id="default">
  80. <Columns>
  81. <Column size="24"/>
  82. <Column size="30"/>
  83. <Column size="180"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. </Columns>
  87. <Rows>
  88. <Row size="24" band="head"/>
  89. <Row size="24"/>
  90. </Rows>
  91. <Band id="head">
  92. <Cell/>
  93. <Cell col="1" text="코드"/>
  94. <Cell col="2" text="답안내용"/>
  95. <Cell col="3" text="검사코드"/>
  96. <Cell col="4" text="문진구분"/>
  97. </Band>
  98. <Band id="body">
  99. <Cell celltype="head" expr="currow + 1"/>
  100. <Cell col="1" text="bind:answcd"/>
  101. <Cell col="2" style="align:left top;padding:5 2 1 2;" text="bind:answcnts" wordwrap="word"/>
  102. <Cell col="3" text="bind:judginqrcd"/>
  103. <Cell col="4" text="bind:inqrflag"/>
  104. </Band>
  105. </Format>
  106. </Formats>
  107. </Grid>
  108. </Layout>
  109. </Layouts>
  110. </Div>
  111. <Button position="absolute 707 2 771 21" id="btn_save" class="btn5" text="판정저장" onclick="btn_save_onclick"/>
  112. <Shape position="absolute 410 22 771 28" linetype="horizontal" id="line17" class="line_10"/>
  113. <Calendar position="absolute 490 29 585 48" id="ipt_judgdd" autoselect="true"/>
  114. <Static text="판정일자" position="absolute 412 27 487 50" align="align:center middle;" id="caption10" class="cell_1"/>
  115. <Combo position="absolute 670 29 765 48" id="cmb_judgdr" innerdataset="ds_init_baseinfo_drlst_itemdr" datacolumn="drnm" codecolumn="drid" onitemchanged="cmb_judgdr_onitemchanged"/>
  116. <Static text="판 정 의" position="absolute 592 27 667 50" align="align:center middle;" id="caption7" class="cell_1"/>
  117. <TextArea position="absolute 410 296 770 559" id="tar_judghangcnts" wordwrap="word"/>
  118. <Button position="absolute 663 54 716 73" id="btn_grdpkgadd" class="btn2" text="행추가" onclick="btn_grdpkgadd_onclick"/>
  119. <Button position="absolute 718 54 771 73" id="btn_grdpkgdel" class="btn2" text="행삭제" onclick="btn_grdpkgdel_onclick"/>
  120. <Grid position="absolute 410 76 770 290" id="grd_smpljudglst" binddataset="ds_main_acptinfo_judginfo_smpljudg" autoenter="select" onexpanddown="grd_smpljudglst_onexpanddown">
  121. <Formats>
  122. <Format id="default">
  123. <Columns>
  124. <Column size="24"/>
  125. <Column size="0"/>
  126. <Column size="100"/>
  127. <Column size="210"/>
  128. <Column size="0"/>
  129. </Columns>
  130. <Rows>
  131. <Row size="24" band="head"/>
  132. <Row size="24"/>
  133. </Rows>
  134. <Band id="head">
  135. <Cell/>
  136. <Cell col="1" text="판정순번"/>
  137. <Cell col="2" text="소견코드"/>
  138. <Cell col="3" text="소견명"/>
  139. <Cell col="4" text="장문소견"/>
  140. </Band>
  141. <Band id="body">
  142. <Cell celltype="head"/>
  143. <Cell col="1" text="bind:judgseq"/>
  144. <Cell col="2" displaytype="text" edittype="text" text="bind:judgexmpcd" expandshow="show"/>
  145. <Cell col="3" style="align:left top;padding:5 2 1 2;" text="bind:judghangshrtcnts" wordwrap="word"/>
  146. <Cell col="4" text="bind:judghangcnts"/>
  147. </Band>
  148. </Format>
  149. </Formats>
  150. </Grid>
  151. <Shape position="absolute 410 49 771 55" linetype="horizontal" id="line7" class="line_2"/>
  152. <Static text="간이종합건진 판정" position="absolute 410 6 556 23" id="caption1" class="tit_2"/>
  153. <Static text="판정내역" position="absolute 410 59 511 76" id="caption2" class="tit_2"/>
  154. <Div position="absolute 75 60 350 305" id="grp_asso" visible="false" style="background:snow;">
  155. <Layouts>
  156. <Layout>
  157. <Static text="공단결과입력" position="absolute 5 2 121 18" id="caption57" class="tit_2" anchor="default"/>
  158. <Grid position="absolute 5 23 270 238" id="grd_assorsltlst" binddataset="ds_main_tempinfo_assorsltlst_itemasso" anchor="default" oncelldblclick="grp_asso_grd_assorsltlst_oncelldblclick">
  159. <Formats>
  160. <Format id="default">
  161. <Columns>
  162. <Column size="24"/>
  163. <Column size="36"/>
  164. <Column size="185"/>
  165. </Columns>
  166. <Rows>
  167. <Row size="24" band="head"/>
  168. <Row size="24"/>
  169. </Rows>
  170. <Band id="head">
  171. <Cell/>
  172. <Cell col="1" text="코드"/>
  173. <Cell col="2" text="결과내용"/>
  174. </Band>
  175. <Band id="body">
  176. <Cell celltype="head" expr="currow + 1"/>
  177. <Cell col="1" text="bind:rsltcd"/>
  178. <Cell col="2" style="align:left top;padding:5 2 1 2;" text="bind:rsltnm" wordwrap="word"/>
  179. </Band>
  180. </Format>
  181. </Formats>
  182. </Grid>
  183. <Shape position="absolute 5 18 270 24" linetype="horizontal" id="line19" class="line_10" anchor="default"/>
  184. <Button position="absolute 255 4 268 19" id="btn_assoclose" class="icon_plus" text="" anchor="default" onclick="grp_asso_btn_assoclose_onclick"/>
  185. </Layout>
  186. </Layouts>
  187. </Div>
  188. </Layout>
  189. </Layouts>
  190. <Objects>
  191. <Dataset id="ds_hidden_count_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  192. </Objects>
  193. <Bind>
  194. <BindItem id="item0" compid="ipt_judgdd" propid="value" datasetid="ds_main_acptinfo_judginfo_smplinfo" columnid="judgdd"/>
  195. <BindItem id="item1" compid="cmb_judgdr" propid="value" datasetid="ds_main_acptinfo_judginfo_smplinfo" columnid="judgdrid"/>
  196. <BindItem id="item2" compid="tar_judghangcnts" propid="value" datasetid="ds_main_acptinfo_judginfo_smplinfo" columnid="lastjudg"/>
  197. </Bind>
  198. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  199. * System Name :
  200. * Job Name :
  201. * Creator :
  202. * Make Date : 2015-11-13
  203. * Description :
  204. *---------------------------------------------------------------------------------------
  205. * Modify Date Modifier Modify Description
  206. *---------------------------------------------------------------------------------------
  207. * 2015-11-13 Live Converter TF->XP
  208. *
  209. *---------------------------------------------------------------------------------------
  210. ****************************************************************************************/
  211. include "com_commonxp::comm_main.xjs";
  212. include "ast_healexamxp::AHA001.xjs";
  213. include "pam_pamcomnxp::PAM.xjs";
  214. include "ast_healthexambasexp::healcombolist.xjs";
  215. include "ast_healthexamrsrvacptxp::AHA.xjs"
  216. var arErrorCode = new HashArray();
  217. function SMAHR03500_oninit(obj:Form, e:InitEventInfo)
  218. {
  219. frmf_initForm(obj); //폼 초기화
  220. grdf_setRowTypeIcon(grd_rsltlst, 0);
  221. grdf_setRowTypeIcon(grd_smpljudglst, 0);
  222. }
  223. function SMAHR03500_onload(obj:Form, e:LoadEventInfo)
  224. {
  225. m_vHealexamflag = "G";
  226. m_vHealexamdetlflag = ds_send.getColumn(0, "srchhealexamdetlflag");
  227. }
  228. function fViewNum(){
  229. vidx = "1";
  230. }
  231. var nodenumber = "";
  232. /*부모폼에서 iviewer로 호출될때 해당 노드에 값 셋팅 - 모폼의 fGetEtcInfo 함수 호출*/
  233. function fInitDasplay() {
  234. nodenumber = 0;
  235. fSetGridInitState(grd_rsltlst);
  236. }
  237. function fSetGridInitState(vGrdObj){
  238. if(vGrdObj == null ) return ;
  239. var dataset:Dataset;
  240. dataset = eval(vGrdObj.binddataset);
  241. var cnt = dataset.rowcount;
  242. if(utlf_isNull(dataset.getColumnInfo("col13bkcolor"))){
  243. dataset.addColumn("col13bkcolor", "string");
  244. }
  245. if(utlf_isNull(dataset.getColumnInfo("col7bkcolor"))){
  246. dataset.addColumn("col7bkcolor", "string");
  247. }
  248. dataset.enableevent = false;
  249. dataset.updatecontrol = false;
  250. for( var i = 0; i < cnt ; i++){
  251. var testrslt = dataset.getColumn(i, "testrsltcnts");
  252. var low = dataset.getColumn(i, "minval");
  253. var high = dataset.getColumn(i, "maxval");
  254. // 기준치에 따른 색깔변경
  255. if("H" == dataset.getColumn(i, "judgrsltcnts") ) {
  256. dataset.setColumn(i, "col13bkcolor", "#ff7a85");
  257. }
  258. if("L" == dataset.getColumn(i, "judgrsltcnts") ) {
  259. dataset.setColumn(i, "col13bkcolor", "#ccffcc");
  260. }
  261. //결과값이 하한가와 상한가 범위를 벗어난 경우 색으로 구분(녹색:하한가보다 작은 경우, 분홍색:상한가보다 큰 경우)
  262. if(!utlf_isNull(testrslt)){
  263. if(!isNaN(testrslt)){
  264. if(!utlf_isNull(low)){
  265. if(eval(testrslt) < eval(low)){
  266. dataset.setColumn(i, "col7bkcolor", "#ccffcc");
  267. }
  268. }
  269. if(!utlf_isNull(high)){
  270. if(eval(testrslt) > eval(high)){
  271. dataset.setColumn(i, "col7bkcolor", "#ff7a85");
  272. }
  273. }
  274. }
  275. }else{
  276. continue;
  277. }
  278. }
  279. dataset.updatecontrol = true;
  280. dataset.enableevent = true;
  281. }
  282. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  283. {
  284. fCheckSaveInfo();
  285. }
  286. /*판정내용 저장*/
  287. function fCheckSaveInfo(){
  288. if(utlf_isNull(ds_send.getColumn(0, "srchpid"))){
  289. sysf_messageBox("판정정보를 저장할 수진자를 선택해 주세요.", "I999"); return;
  290. }
  291. if(!fValChk()) return;
  292. ds_hidden_count_item.clearData();
  293. if(sysf_messageBox("판정정보를 ", "Q002") == 6){
  294. //저장하기 위한 노드 값 이동
  295. dsf_makeValue(ds_send_save, "healexamflag", "string", ds_send.getColumn(0, "srchhealexamflag"));
  296. dsf_makeValue(ds_send_save, "healexamdetlflag", "string", ds_send.getColumn(0, "srchhealexamdetlflag"));
  297. dsf_makeValue(ds_send_save, "rsrvdd", "string", ds_send.getColumn(0, "srchrsrvdd"));
  298. dsf_makeValue(ds_send_save, "rsrvno", "string", ds_send.getColumn(0, "srchrsrvno"));
  299. dsf_makeValue(ds_send_save, "pid", "string", ds_send.getColumn(0, "srchpid"));
  300. dsf_makeValue(ds_send_save, "pkgcd", "string", ds_send.getColumn(0, "srchpkgcd"));
  301. dsf_makeValue(ds_send_save, "orddd", "string", ds_send.getColumn(0, "srchorddd"));
  302. dsf_makeValue(ds_send_save, "judgdd", "string", ds_main_acptinfo_judginfo_smplinfo.getColumn(0, "judgdd"));
  303. dsf_makeValue(ds_send_save, "judgdrid", "string", ds_main_acptinfo_judginfo_smplinfo.getColumn(0, "judgdrid"));
  304. dsf_makeValue(ds_send_save, "lastjudg", "string", ds_main_acptinfo_judginfo_smplinfo.getColumn(0, "lastjudg"));
  305. var updateData = grdf_getGridUpdateData(grd_smpljudglst);
  306. grdf_setStatusColumn(updateData, "m");
  307. ds_send_save_savegrid.copyData(updateData, true);
  308. ds_send_save_savegrid.updateColID("judgexmpcd", "judg1st");
  309. ds_send_save_savegrid.updateColID("judghangshrtcnts", "judg1stnm");
  310. var oParam = {};
  311. oParam.id = "TXAHR04002";
  312. oParam.service = "healexamrsltjudgapp.GnrlJudgInpt";
  313. oParam.method = "reqExeSmplJudg";
  314. oParam.inds = "req=ds_send_save reqgrid=ds_send_save_savegrid";
  315. oParam.outds = "ds_hidden_count_item=item";
  316. oParam.async = false;
  317. oParam.callback = "cf_TXAHR04002";
  318. tranf_submit(oParam);
  319. if (arErrorCode.pop("TXAHR04002") > -1){
  320. ds_send.updateColID("srchhealexamflag", "healexamflag");
  321. ds_send.updateColID("srchhealexamdetlflag", "healexamdetlflag");
  322. ds_send.updateColID("srchrsrvdd", "rsrvdd");
  323. ds_send.updateColID("srchrsrvno", "rsrvno");
  324. ds_send.updateColID("srchpid", "pid");
  325. ds_send.updateColID("srchorddd", "orddd");
  326. ds_send.updateColID("srchcretno", "cretno");
  327. ds_send.updateColID("srchpkgcd", "pkgcd");
  328. var oParam = {};
  329. oParam.id = "TRAHR04006";
  330. oParam.service = "healexamrsltjudgapp.GnrlJudgInpt";
  331. oParam.method = "reqGetsmplJudgInfo";
  332. oParam.inds = "req=ds_send";
  333. oParam.outds = "ds_main_acptinfo_judginfo_smplinfo=smplinfo ds_main_acptinfo_judginfo_smpljudg=smpljudg";
  334. oParam.async = false;
  335. tranf_submit(oParam);
  336. ds_send.updateColID("healexamflag", "srchhealexamflag");
  337. ds_send.updateColID("healexamdetlflag", "srchhealexamdetlflag");
  338. ds_send.updateColID("rsrvdd", "srchrsrvdd");
  339. ds_send.updateColID("rsrvno", "srchrsrvno");
  340. ds_send.updateColID("pid", "srchpid");
  341. ds_send.updateColID("orddd", "srchorddd");
  342. ds_send.updateColID("cretno", "srchcretno");
  343. ds_send.updateColID("pkgcd", "srchpkgcd");
  344. }
  345. }
  346. }
  347. function cf_TXAHR04002(sSvcId, nErrorCode, sErrorMsg) {
  348. arErrorCode.push(sSvcId, nErrorCode);
  349. }
  350. /*validation check*/
  351. function fValChk(){
  352. for(var i = 0; i < ds_main_acptinfo_judginfo_smpljudg.rowcount; i++){
  353. if(ds_main_acptinfo_judginfo_smpljudg.getRowType(i) != 8){
  354. var frsCd = ds_main_acptinfo_judginfo_smpljudg.valueMatrix(i, "judgexmpcd");
  355. if(utlf_isNull(frsCd)){
  356. alert(i + "번째 행의 소견코드를 입력해주세요.");
  357. return;
  358. }
  359. for(var j = 0; j < ds_main_acptinfo_judginfo_smpljudg.rowcount; j++){
  360. if(ds_main_acptinfo_judginfo_smpljudg.getRowType(j) != 8){
  361. var secCd = ds_main_acptinfo_judginfo_smpljudg.getColumn(j, "judgexmpcd");
  362. if(i != j){
  363. if(frsCd == secCd){
  364. alert(j + "번째 행에서 중복된 소견코드가 있습니다.");
  365. return;
  366. }
  367. }
  368. }
  369. }
  370. }
  371. }
  372. return true;
  373. }
  374. function cmb_judgdr_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  375. {
  376. sysf_setModelProperty("judgdr", cmb_judgdr.value);
  377. }
  378. function btn_grdpkgadd_onclick(obj:Button, e:ClickEventInfo)
  379. {
  380. if(utlf_isNull(ds_send.getColumn(0, "srchpid"))){
  381. sysf_messageBox("판정할 수진자를 선택해 주세요.", "I999"); return;
  382. }
  383. ds_main_acptinfo_judginfo_smpljudg.addRow();
  384. //model.makeNode(grd_smpljudglst.nodeset);
  385. fSetGrid();
  386. }
  387. /*판정내역의 장문소견을 뿌려주는 함수*/
  388. function fSetGrid(){
  389. var str = "";
  390. for (var i = 0; i < ds_main_acptinfo_judginfo_smpljudg.rowcount; i++) {
  391. if(ds_main_acptinfo_judginfo_smpljudg.getRowType(i) != 8){
  392. if(!utlf_isNull(ds_main_acptinfo_judginfo_smpljudg.getColumn(i, "judgexmpcd"))){
  393. if(!utlf_isNull(ds_main_acptinfo_judginfo_smpljudg.getColumn(i, "judghangcnts"))){
  394. str += ds_main_acptinfo_judginfo_smpljudg.getColumn(i, "judghangcnts") + "\n\n";
  395. }else{
  396. str += ds_main_acptinfo_judginfo_smpljudg.getColumn(i, "judghangcnts");
  397. }
  398. }
  399. }
  400. }
  401. dsf_makeValue(ds_main_acptinfo_judginfo_smplinfo, "lastjudg", "string", str);
  402. }
  403. function btn_grdpkgdel_onclick(obj:Button, e:ClickEventInfo)
  404. {
  405. if(ds_main_acptinfo_judginfo_smpljudg.rowcount == 0) return;
  406. lf_deleteSelectedRows(grd_smpljudglst, true);
  407. fSetGrid();
  408. }
  409. function lf_deleteSelectedRows(grd, markonly) {
  410. var rowIdx;
  411. var bindDs = eval(grd.binddataset);
  412. var arrSelected = new Array();
  413. var sSelectType = grd.selecttype;
  414. if (sSelectType == "row" || sSelectType == "currow" || sSelectType == "cell") {
  415. arrSelected[0] = bindDs.rowposition;
  416. } else {
  417. for (var i = 0; i < bindDs.getRowCount(); i++) {
  418. //선택된 행인지 체크
  419. if (bindDs.getSelect(i) == true) {
  420. arrSelected.push(i);
  421. }
  422. }
  423. }
  424. if (arrSelected.length > 0) {
  425. // mark delete row 상태만 변경
  426. // if()
  427. // markonly =
  428. if(bindDs.getRowType(bindDs.rowposition) != 8){
  429. markonly = false;
  430. }else{
  431. markonly = true;
  432. }
  433. if (markonly == true) {
  434. for (var k = arrSelected.length - 1; k >= 0; k--) {
  435. bindDs.updatecontrol = false;
  436. bindDs.setRowType(arrSelected[k], "D");
  437. bindDs.updatecontrol = true;
  438. }
  439. }
  440. //row 삭제
  441. else {
  442. for (var k = arrSelected.length - 1; k >= 0; k--) {
  443. //bindDs.updatecontrol = false;
  444. bindDs.deleteRow(arrSelected[k]);
  445. //bindDs.updatecontrol = true;
  446. }
  447. }
  448. }
  449. }
  450. function grd_smpljudglst_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  451. {
  452. if(utlf_isNull(ds_main_acptinfo_item.getColumn(0, "pid"))) return;
  453. //popup호출
  454. dsf_makeValue(ds_temp, "healexamdetlflag", "string", "G11"); //특수건진
  455. dsf_makeValue(ds_temp, "healexamflag", "string", "G");
  456. //window.load("SPAHR00410.xrw", "modal", "", "", "/root/temp", "/root/temp");
  457. var objArg = new Object();
  458. objArg.arg_ds_temp = ds_temp;
  459. frmf_modal("SPAHR00410", "SPAHR00410", objArg, null, "", "", "", null, null, null, null, null, "M");
  460. //관련 노드값 셋팅
  461. fSetGrid();
  462. }
  463. function grp_asso_grd_assorsltlst_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  464. {
  465. //그리드의 셀 이외의 곳을 클릭하면 종료한다.
  466. // 그리드의 헤더부분을 클릭하면 종료한다.
  467. if(e.row < 0 || e.col < 0)return false;
  468. var idx = ds_main_tempinfo_assorsltlst_itemasso.rowposition;
  469. if( idx < 0) return ;
  470. ds_main_acptinfo_rsltlst_item.setColumn(ds_main_acptinfo_rsltlst_item.rowposition, "assorsltcnts", ds_main_tempinfo_assorsltlst_itemasso.getColumn(idx, "rsltnm" ));
  471. ds_main_acptinfo_rsltlst_item.setColumn(ds_main_acptinfo_rsltlst_item.rowposition, "assorsltcd", ds_main_tempinfo_assorsltlst_itemasso.getColumn(idx, "rsltcd" ));
  472. ds_main_acptinfo_rsltlst_item.enableevent = false;
  473. ds_main_acptinfo_rsltlst_item.updatecontrol = false;
  474. ds_main_acptinfo_rsltlst_item.setRowType(ds_main_acptinfo_rsltlst_item.rowposition, 4);
  475. ds_main_acptinfo_rsltlst_item.updatecontrol = true;
  476. ds_main_acptinfo_rsltlst_item.enableevent = true;
  477. var nextRow = ds_main_acptinfo_rsltlst_item.rowposition + 1
  478. if(grd_rsltlst.getCellProperty("body", grd_rsltlst.currentcol, "edittype") != "none" && nextRow < ds_main_acptinfo_rsltlst_item.rowcount) {
  479. ds_main_acptinfo_rsltlst_item.selectRow(nextRow, true);
  480. grd_rsltlst.showEditor(true);
  481. }
  482. if(ds_main_acptinfo_rsltlst_item.getColumn(nextRow, "rsltflag") != "O"){
  483. grp_asso.visible = false;
  484. }else{
  485. grp_asso.visible = true;
  486. }
  487. }
  488. function grp_asso_btn_assoclose_onclick(obj:Button, e:ClickEventInfo)
  489. {
  490. grp_asso.visible = false;
  491. }
  492. ]]></Script>
  493. </Form>
  494. </FDL>