SMAHR03400_특수건진판정.xrw 85 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <acptinfo>
  11. <item>
  12. <pid/>
  13. <hngnm/>
  14. <rgstno1/>
  15. <rgstno2/>
  16. <sex/>
  17. <age/>
  18. <cmpycd/>
  19. <cmpynm/>
  20. <pkgcd/>
  21. <pkgnm/>
  22. <schlgrde/>
  23. <clsid/>
  24. <stuid/>
  25. <plceflag/>
  26. <orddd/>
  27. <judgdd/>
  28. <judgdrid/>
  29. <drnm/>
  30. <reexamfg/>
  31. </item>
  32. <rsltlst>
  33. <item>
  34. <prcpdd/>
  35. <execprcpuniqno/>
  36. <prcpno/>
  37. <testcd/>
  38. <testnm/>
  39. <testrsltcnts>
  40. </testrsltcnts>
  41. <outtestrsltcnts/>
  42. <rsltunit/>
  43. <rsltflag/>
  44. <remcnts/>
  45. <assorsltcnts/>
  46. <judgcd/>
  47. <judgrsltcnts/>
  48. <inptflag/>
  49. <choirslt>
  50. <item/>
  51. </choirslt>
  52. <judgmark/>
  53. <refh/>
  54. <refl/>
  55. </item>
  56. </rsltlst>
  57. <rsltlst2>
  58. <item>
  59. <prcpdd/>
  60. <execprcpuniqno/>
  61. <prcpno/>
  62. <testcd/>
  63. <testnm/>
  64. <testrsltcnts>
  65. </testrsltcnts>
  66. <outtestrsltcnts/>
  67. <rsltunit/>
  68. <rsltflag/>
  69. <remcnts/>
  70. <assorsltcnts/>
  71. <judgcd/>
  72. <judgrsltcnts/>
  73. <inptflag/>
  74. <choirslt>
  75. <item/>
  76. </choirslt>
  77. <judgmark/>
  78. <refh/>
  79. <refl/>
  80. </item>
  81. </rsltlst2>
  82. <judginfo>
  83. <specinfo>
  84. <judgchs>1</judgchs>
  85. <inqryn/>
  86. <judgdd/>
  87. <judgdrid/>
  88. <pjjgcd/>
  89. <sjsayoucd/>
  90. <pkgcd/>
  91. <pkgnm/>
  92. <judg1st/>
  93. <judg1stnm/>
  94. <judg2st/>
  95. <judg2stnm/>
  96. <jchcd/>
  97. <jchnm/>
  98. <judgcd/>
  99. <jhcd/>
  100. <jhnm/>
  101. <sbcd/>
  102. <sbnm/>
  103. <shcd1/>
  104. <shcd2/>
  105. <shcd3/>
  106. <upmjhscd/>
  107. <lastjudg/>
  108. </specinfo>
  109. <specjudg>
  110. <judgseq/>
  111. <pkgcd/>
  112. <pkgnm/>
  113. <judg1st/>
  114. <judg1stnm/>
  115. <jchcd/>
  116. <jchnm/>
  117. <judgchs/>
  118. <inqryn/>
  119. <judgdd/>
  120. <judgdrid/>
  121. <pjjgcd/>
  122. <sjsayoucd/>
  123. <judg2st/>
  124. <judgcd/>
  125. <jhcd/>
  126. <jhnm/>
  127. <sbcd/>
  128. <sbnm/>
  129. <shcd1/>
  130. <shcd2/>
  131. <shcd3/>
  132. <upmjhscd/>
  133. </specjudg>
  134. <genjudg>
  135. <code/>
  136. <judg1st/>
  137. <judg1stnm/>
  138. <jchcd/>
  139. <jchnm/>
  140. </genjudg>
  141. <spclrecinfo>
  142. <workproccd/>
  143. <workprocnm/>
  144. <dayspclworktm/>
  145. <prodcd/>
  146. <prodnm/>
  147. <spclhealexamflag/>
  148. <duptype/>
  149. <medioph/>
  150. <mediotor/>
  151. <mediskin/>
  152. <medidental/>
  153. <mdclhstr/>
  154. <fmlhstr/>
  155. <workcause/>
  156. </spclrecinfo>
  157. <bizhistlst>
  158. <seqno/>
  159. <jobprgrs/>
  160. <trtchmmt/>
  161. <sxpsrtermyear/>
  162. <sxpsrtermmonth/>
  163. <cmpyno/>
  164. <cmpynm/>
  165. <deptnm/>
  166. </bizhistlst>
  167. <spclsymplst>
  168. <sympcd/>
  169. <sympnm/>
  170. </spclsymplst>
  171. </judginfo>
  172. <inqrlst>
  173. <item>
  174. <inqrcd/>
  175. <inqrnm/>
  176. <answcd/>
  177. <answcnts/>
  178. <remcnts/>
  179. <answflag/>
  180. <inptflag/>
  181. <inqrflag/>
  182. </item>
  183. </inqrlst>
  184. </acptinfo>
  185. <tempinfo>
  186. <assorsltlst1>
  187. <itemasso/>
  188. </assorsltlst1>
  189. </tempinfo>
  190. </main>
  191. <send>
  192. <srchhealexamdetlflag/>
  193. <srchfromdd/>
  194. <srchtodd/>
  195. <srchcmpycd/>
  196. <srchcmpynm/>
  197. <srchpkgnm/>
  198. <srchpkgcd2/>
  199. <srchpid2/>
  200. <srchpnm/>
  201. <srchroomcd/>
  202. <srchinstcd/>
  203. <srchhealexamflag/>
  204. <srchpkgcd/>
  205. <srchtestcd2/>
  206. <srchrsltflag/>
  207. <save>
  208. <healexamflag/>
  209. <healexamdetlflag/>
  210. <rsrvdd/>
  211. <rsrvno/>
  212. <pid/>
  213. <orddd/>
  214. <cretno/>
  215. <saverslt/>
  216. <saveinqr/>
  217. <pkgcd/>
  218. </save>
  219. <srchorddd/>
  220. <srchcretno/>
  221. <srchrsrvdd/>
  222. <srchrsrvno/>
  223. <srchpid/>
  224. <srchinqrflag/>
  225. <srchstatfg>G</srchstatfg>
  226. <dgflag>1</dgflag>
  227. <dgflag2/>
  228. <srchpkgflag/>
  229. <srchoralyn/>
  230. <srchstatflag/>
  231. <srchdrflag/>
  232. </send>
  233. <hidden>
  234. <answlst>
  235. <item/>
  236. </answlst>
  237. <count/>
  238. </hidden>
  239. <temp>
  240. <tmpdatas>
  241. <tmpflag/>
  242. </tmpdatas>
  243. </temp>
  244. </root>
  245. </instance>
  246. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  247. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  248. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  249. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  250. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  251. <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
  252. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  253. <script type="javascript" src="../../../com/pacsweb/js/ZEP001.js"/>
  254. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  255. <submission id="TRZBC00101"/>
  256. <submission id="TRAHA00001"/>
  257. <submission id="TRAHA00002"/>
  258. <submission id="TRAHR04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptinfo/judginfo"/>
  259. <submission id="TRAHR04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/judginfo/pjjgcdlst"/>
  260. <submission id="TRAHR04003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tmpdatas"/>
  261. <submission id="TRAHR04004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tmpdatas"/>
  262. <submission id="TRAHR04005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptinfo/judginfo"/>
  263. <submission id="TRAHR04009" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptinfo/judginfo"/>
  264. <submission id="TXAHR04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden/count"/>
  265. <submission id="TXAHR04003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/recSave" replace="instance" resultref="/root/hidden/count"/>
  266. </model>
  267. <script type="javascript">
  268. <![CDATA[
  269. var m_vHealexamflag = "G";
  270. var m_vHealexamdetlflag = model.getValue("/root/send/srchhealexamdetlflag");
  271. var row = "";
  272. function fViewNum(){
  273. window.parent.javascript.vidx = "1";
  274. }
  275. /**
  276. * 소견 및 조치내용 가져오기
  277. * 소견및 조치내용은 종합판정문구 관리에서 건진구분 - 일반으로 관리.
  278. * vEditObj : 선택한 판정내용이 입력될 입력컨트롤명
  279. * SPAHR00300_PARAM1: 다중선택여부(Y/N)
  280. * SPAHR00300_PARAM2: 목적노드Set
  281. * SPAHR00300_PARAM3: 종합판정문구코드 목적노드
  282. * SPAHR00300_PARAM4: 종합판정문구내용 목적노드
  283. * SPAHR00300_PARAM5: 종합판정문구검색코드
  284. * SPAHR00300_PARAM6: 종합판정문구검색내용
  285. * SPAHR00300_PARAM7: 건진구분
  286. */
  287. function fGetJudgExmpCnts(vEditObj, jCode){
  288. if( vEditObj == null ) return ;
  289. model.makeNode("/root/temp/judgexaminfo");
  290. setParameter("SPAHR00300_PARAM1", "Y");
  291. setParameter("SPAHR00300_PARAM2", "/root/temp/judgexaminfo");
  292. setParameter("SPAHR00300_PARAM7", fGetHealExamFlag() );
  293. setParameter("SPAHR00300_PARAM8", jCode );
  294. modal("SPAHR00300", 100, 100, "SPAHR00300");
  295. if( model.getValue("/root/temp/SPAHR00300/okflag") != "ok" ) return ;
  296. var vNodeList = instance1.selectNodes("/root/temp/judgexaminfo/list");
  297. if( vNodeList == null ) reutrn ;
  298. var vJudgCnts = model.getValue( vEditObj.attribute("ref") );
  299. for( var i = 0 ; i < vNodeList.length ; i++){
  300. vJudgCnts += "- "+vNodeList.item(i).judghangcnts.text;
  301. }
  302. model.setValue( vEditObj.attribute("ref") , vJudgCnts );
  303. vEditObj.refresh();
  304. }
  305. function fCheckExamInfo(){
  306. var idx = window.parent.grd_acptlst.row;
  307. if( idx < 1) {
  308. return false;
  309. }
  310. model.copyNode("/root/main/acptinfo/item", window.parent.grd_acptlst.nodeset + "[" + idx + "]");
  311. //결과내역가져오기
  312. var sNode = window.parent.grd_acptlst.nodeset + "[" + idx + "]/";
  313. var rsrvdd = window.parent.model.getValue(sNode + "rsrvdd");
  314. var rsrvno = window.parent.model.getValue(sNode + "rsrvno");
  315. var pid = window.parent.model.getValue(sNode + "pid");
  316. var orddd = window.parent.model.getValue(sNode + "orddd");
  317. var cretno = window.parent.model.getValue(sNode + "cretno");
  318. var pkgcd = window.parent.model.getValue(sNode + "pkgcd");
  319. if( (pid == "" ) || (orddd=="") || (cretno == "") || (rsrvdd == "") || (rsrvno == "") ){
  320. messageBox("유효하지 않은 데이터 입니다!", "E999");
  321. return false;
  322. }
  323. model.setValue("/root/send/srchrsrvdd" , rsrvdd );
  324. model.setValue("/root/send/srchrsrvno" , rsrvno );
  325. model.setValue("/root/send/srchpid" , pid );
  326. model.setValue("/root/send/srchorddd" , orddd );
  327. model.setValue("/root/send/srchcretno" , cretno );
  328. model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag() );
  329. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
  330. }
  331. /**
  332. *건진내역별 상세내역가져오기( 판정내역조회)
  333. *건진구분/건진일자/검사실/환자id/단체코드/패키지코드별 조회
  334. */
  335. function fGetJudgInfo( ){
  336. if( fCheckExamInfo() == false ) return ;
  337. openLoadingBar("판정정보 ") ;//처리중 화면을 오픈한다.
  338. closeLoadingBar() ;//처리중 화면을 close한다.
  339. }
  340. /**===================================================================================
  341. @desc : 공통 저장정보관련 check
  342. =====================================================================================*/
  343. function fCheckSaveInfo(){
  344. if(model.getValue("/root/send/srchpid") == ""){
  345. messageBox("판정정보를 저장할 수진자를 선택해 주세요.", "I999"); return;
  346. }
  347. if(model.getValue("/root/main/acptinfo/judginfo/specinfo/judgchs") == ""){
  348. messageBox("판정차수를 ", "C001");
  349. return;
  350. }
  351. if(model.getValue("/root/main/acptinfo/judginfo/specinfo/judgdd") == ""){
  352. messageBox("판정일자를 ", "C001");
  353. return;
  354. }
  355. if(model.getValue("/root/main/acptinfo/judginfo/specinfo/judgdrid") == ""){
  356. messageBox("판정의를 ", "C001");
  357. return;
  358. }
  359. for(var i = grd_spcljudglst.fixedRows; i<grd_spcljudglst.rows; i++){
  360. if(grd_spcljudglst.rowStatus(i) != 4){
  361. var sPkgcd = grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("pkgcd"));
  362. var sPjjgcd = grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("pjjgcd"));
  363. var sJudg1st = grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judg1st"));
  364. var sJudgcd = grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgcd"));
  365. for(var j=grd_spcljudglst.fixedRows; j<grd_spcljudglst.rows; j++){
  366. if(grd_spcljudglst.rowStatus(j) != 4){
  367. var dPkgcd = grd_spcljudglst.valueMatrix(j, grd_spcljudglst.colRef("pkgcd"));
  368. var dPjjgcd = grd_spcljudglst.valueMatrix(j, grd_spcljudglst.colRef("pjjgcd"));
  369. var dJudg1st = grd_spcljudglst.valueMatrix(j, grd_spcljudglst.colRef("judg1st"));
  370. var dJudgcd = grd_spcljudglst.valueMatrix(j, grd_spcljudglst.colRef("judgcd"));
  371. if(i!=j){
  372. if((sPkgcd+sPjjgcd+sJudg1st+sJudgcd) == (dPkgcd+dPjjgcd+dJudg1st+dJudgcd)){
  373. alert(i + "번째 행과 " + j + "번째 행이 중복되었습니다.");
  374. return;
  375. }
  376. }
  377. }
  378. }
  379. }
  380. }
  381. model.makeNode("/root/hidden/count");
  382. if(messageBox("판정정보를 ", "Q002") == 6){
  383. //저장하기 위한 노드 값 이동
  384. model.makeValue("/root/send/save/healexamflag", model.getValue("/root/send/srchhealexamflag"));
  385. model.makeValue("/root/send/save/healexamdetlflag", model.getValue("/root/send/srchhealexamdetlflag"));
  386. model.makeValue("/root/send/save/rsrvdd", model.getValue("/root/send/srchrsrvdd"));
  387. model.makeValue("/root/send/save/rsrvno", model.getValue("/root/send/srchrsrvno"));
  388. model.makeValue("/root/send/save/pid", model.getValue("/root/send/srchpid"));
  389. model.makeValue("/root/send/save/pkgcd", model.getValue("/root/send/srchpkgcd"));
  390. model.makeValue("/root/send/save/orddd", model.getValue("/root/send/srchorddd"));
  391. model.makeValue("/root/send/save/inqryn", model.getValue("/root/main/acptinfo/judginfo/specinfo/inqryn"));
  392. model.makeValue("/root/send/save/judgchs", model.getValue("/root/main/acptinfo/judginfo/specinfo/judgchs"));
  393. model.makeValue("/root/send/save/judgdd", model.getValue("/root/main/acptinfo/judginfo/specinfo/judgdd"));
  394. model.makeValue("/root/send/save/judgdrid", model.getValue("/root/main/acptinfo/judginfo/specinfo/judgdrid"));
  395. model.makeValue("/root/send/save/lastjudg", model.getValue("/root/main/acptinfo/judginfo/specinfo/lastjudg"));
  396. model.makeValue("/root/send/save/savegrid", grd_spcljudglst.getUpdateData());
  397. if (submit("TXAHR04001")){
  398. submit("TRAHR04001");
  399. }
  400. }
  401. }
  402. /**===================================================================================
  403. @desc : 이력정보 저장
  404. =====================================================================================*/
  405. function fCheckSaveRecInfo(){
  406. if(model.getValue("/root/send/srchpid") == ""){
  407. messageBox("판정정보를 저장할 수진자를 선택해 주세요.", "I999"); return;
  408. }
  409. model.makeNode("/root/hidden/count");
  410. if(messageBox("환자의 이력정보를 ", "Q002") == 6){
  411. //저장하기 위한 노드 값 이동
  412. model.makeValue("/root/send/save/recSave/healexamflag", model.getValue("/root/send/srchhealexamflag"));
  413. model.makeValue("/root/send/save/recSave/healexamdetlflag", model.getValue("/root/send/srchhealexamdetlflag"));
  414. model.makeValue("/root/send/save/recSave/rsrvdd", model.getValue("/root/send/srchrsrvdd"));
  415. model.makeValue("/root/send/save/recSave/rsrvno", model.getValue("/root/send/srchrsrvno"));
  416. model.makeValue("/root/send/save/recSave/pid", model.getValue("/root/send/srchpid"));
  417. model.makeValue("/root/send/save/recSave/workproccd", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/workproccd"));
  418. model.makeValue("/root/send/save/recSave/workprocnm", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/workprocnm"));
  419. model.makeValue("/root/send/save/recSave/dayspclworktm", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/dayspclworktm"));
  420. model.makeValue("/root/send/save/recSave/prodcd", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/prodcd"));
  421. model.makeValue("/root/send/save/recSave/prodnm", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/prodnm"));
  422. model.makeValue("/root/send/save/recSave/spclhealexamflag", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/spclhealexamflag"));
  423. model.makeValue("/root/send/save/recSave/duptype", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/duptype"));
  424. model.makeValue("/root/send/save/recSave/medioph", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/medioph"));
  425. model.makeValue("/root/send/save/recSave/mediotor", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/mediotor"));
  426. model.makeValue("/root/send/save/recSave/mediskin", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/mediskin"));
  427. model.makeValue("/root/send/save/recSave/medidental", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/medidental"));
  428. model.makeValue("/root/send/save/recSave/mdclhstr", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/mdclhstr"));
  429. model.makeValue("/root/send/save/recSave/fmlhstr", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/fmlhstr"));
  430. model.makeValue("/root/send/save/recSave/workcause", model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/workcause"));
  431. //과거직력
  432. var bizHist = getGridUpdateData(grd_bizhistlst);
  433. model.makeValue("/root/send/save/recSave/bizhistInfo", bizHist);
  434. //자타각
  435. for(var i=1; i <= grd_spclsymplst.rows; i++) {
  436. if(grd_spclsymplst.rowStatus(i) == 0) {
  437. grd_spclsymplst.rowStatus(i) = 2;
  438. }
  439. }
  440. var spclSymp = getGridUpdateData(grd_spclsymplst);
  441. model.makeValue("/root/send/save/recSave/spclsympinfo", spclSymp);
  442. if (submit("TXAHR04003")){
  443. submit("TRAHR04001");
  444. }
  445. }
  446. model.refresh();
  447. }
  448. /*부모폼에서 iviewer로 호출될때 해당 노드에 값 셋팅 - 모폼의 fGetEtcInfo 함수 호출*/
  449. function fInitDasplay() {
  450. //grd_spcljudglst.rebuild();
  451. //grd_genfstjudglst.rebuild();
  452. model.copyNode("/root",opener.root);//parent
  453. nodenumber = 0;
  454. fSetGridInitState(grd_rsltlst);
  455. btn_judg.selected = true;
  456. model.toggle("case_judg");
  457. if(rdo_judgchs.value == ""){
  458. rdo_judgchs.value = "1";
  459. }
  460. fGetJudgInfo();
  461. //특수사후관리
  462. if ( window.parent.javascript.fGetEtcInfo("G", "G17") == true ){
  463. model.copyNode("/root/temp/baseinfo",opener.root.temp.baseinfo);//parent
  464. var nd = instance1.selectSingleNode("/root/temp/baseinfo/comcodelst");
  465. if( nd != null ) {
  466. copyNodesetType(cmb_shcd1.choices.itemset.attribute("nodeset"), "/root/temp/baseinfo/comcodelst/item", "replace");
  467. copyNodesetType(cmb_shcd2.choices.itemset.attribute("nodeset"), "/root/temp/baseinfo/comcodelst/item", "replace");
  468. copyNodesetType(cmb_shcd3.choices.itemset.attribute("nodeset"), "/root/temp/baseinfo/comcodelst/item", "replace");
  469. }
  470. }
  471. //업무적합성
  472. if ( window.parent.javascript.fGetEtcInfo("G", "G16") == true ){
  473. model.copyNode("/root/temp/baseinfo",opener.root.temp.baseinfo);//parent
  474. var nd = instance1.selectSingleNode("/root/temp/baseinfo/comcodelst");
  475. if( nd != null ) {
  476. copyNodesetType(cmb_upmjhscd.choices.itemset.attribute("nodeset"), "/root/temp/baseinfo/comcodelst/item", "replace");
  477. }
  478. }
  479. //표적장기(fGetEtcInfo 함수의 두번째 parameter로 임의값을 주어 특수건진 코드를 세분화.
  480. if ( window.parent.javascript.fGetEtcInfo("T", "M") == true ){
  481. model.copyNode("/root/temp/baseinfo",opener.root.temp.baseinfo);//parent
  482. var nd = instance1.selectSingleNode("/root/temp/baseinfo/comcodelst");
  483. if( nd != null ) {
  484. copyNodesetType(cmb_pjjgcd.choices.itemset.attribute("nodeset"), "/root/temp/baseinfo/comcodelst/item", "replace");
  485. }
  486. }
  487. //선정사유
  488. if (window.parent.javascript.fGetEtcInfo("T", cmb_pjjgcd.value) == true){
  489. model.copyNode("/root/temp/baseinfo",opener.root.temp.baseinfo);//parent
  490. var nd = instance1.selectSingleNode("/root/temp/baseinfo/comcodelst");
  491. if( nd != null ) {
  492. copyNodesetType(cmb_sjsayoucd.choices.itemset.attribute("nodeset"), "/root/temp/baseinfo/comcodelst/item", "replace");
  493. }
  494. }
  495. //취급물질
  496. if (window.parent.javascript.fGetEtcInfo("T", "P") == true){
  497. model.copyNode("/root/temp/baseinfo",opener.root.temp.baseinfo);//parent
  498. var nd = instance1.selectSingleNode("/root/temp/baseinfo/comcodelst");
  499. if( nd != null ) {
  500. copyNodesetType(cmb_pkgcd.choices.itemset.attribute("nodeset"), "/root/temp/baseinfo/comcodelst/item", "replace");
  501. }
  502. }
  503. //표적장기를 선택해야 선정사유 항목이 활성화 되도록
  504. if(cmb_pjjgcd.value == ""){
  505. cmb_sjsayoucd.disabled = true;
  506. }else{
  507. cmb_sjsayoucd.disabled = false;
  508. }
  509. grd_rsltlst.clearStatus();
  510. model.refresh();
  511. }
  512. /*1차소견 팝업(통합판정문구) 호출시 parent로 값 받아오는 함수*/
  513. function totjudginfo(obj){
  514. var judgObj = null;
  515. if(obj != null){
  516. judgObj = obj;
  517. model.makeValue("/root/main/acptinfo/judginfo/specinfo/judg1st", judgObj.judgexmpcd);
  518. model.makeValue("/root/main/acptinfo/judginfo/specinfo/judg1stnm", judgObj.judghangshrtcnts);
  519. }
  520. model.refresh();
  521. return true;
  522. }
  523. function fdataValue(vTestcd,vSubcd){
  524. var nodeCount = getNodesetCount("/root/main/acptinfo/rsltlst/itemexmp");
  525. for (var i=0; i<=nodeCount;i++){
  526. if ((model.getValue("/root/main/acptinfo/rsltlst/itemexmp["+i +"]/testcd")==vTestcd) && (model.getValue("/root/main/acptinfo/rsltlst/itemexmp["+i +"]/rsltcd")==vSubcd)){
  527. nodenumber = i;
  528. return model.getValue("/root/main/acptinfo/rsltlst/itemexmp["+i+"]/rsltnm");
  529. }
  530. }
  531. }
  532. function fdataValueAsso(vTestcd,vSubcd){
  533. var nodeCount = getNodesetCount("/root/main/acptinfo/rsltlst/itemassoexmp1");
  534. for (var i=0; i<nodeCount;i++){
  535. if ((model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp1["+i +"]/testcd")==vTestcd) && (model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp1["+i +"]/rsltcd")==vSubcd)){
  536. nodenumber = i;
  537. return model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp1["+i+"]/rsltnm");
  538. }
  539. }
  540. }
  541. function fSetGridInitState(vGrdObj){
  542. if(vGrdObj == null ) return ;
  543. vGrdObj.rebuildStyle();
  544. vGrdObj.refresh();
  545. var cnt = vGrdObj.rows;
  546. for( var i = 1 ; i <= cnt ; i++){
  547. var testrslt = vGrdObj.valueMatrix(i, vGrdObj.colRef("testrsltcnts"));
  548. var low = vGrdObj.valueMatrix(i, vGrdObj.colRef("minval"));
  549. var high = vGrdObj.valueMatrix(i, vGrdObj.colRef("maxval"));
  550. // 기준치에 따른 색깔변경
  551. if("H" == vGrdObj.valueMatrix( i , vGrdObj.colRef("judgrsltcnts") ) ) {
  552. vGrdObj.cellStyle("background-color" , i , vGrdObj.colRef("judgrsltcnts") , i , vGrdObj.colRef("judgrsltcnts")) = "#ff7a85";
  553. }
  554. if("L" == vGrdObj.valueMatrix( i , vGrdObj.colRef("judgrsltcnts") ) ) {
  555. vGrdObj.cellStyle("background-color" , i , vGrdObj.colRef("judgrsltcnts") , i , vGrdObj.colRef("judgrsltcnts")) = "#ccffcc";
  556. }
  557. //결과값이 하한가와 상한가 범위를 벗어난 경우 색으로 구분(녹색:하한가보다 작은 경우, 분홍색:상한가보다 큰 경우)
  558. if(testrslt != ""){
  559. if(!isNaN(testrslt)){
  560. if(low != ""){
  561. if(eval(testrslt) < eval(low)){
  562. vGrdObj.cellStyle("background-color", i, 7) = "#ccffcc";
  563. }
  564. }
  565. if(high != ""){
  566. if(eval(testrslt) > eval(high)){
  567. vGrdObj.cellStyle("background-color", i, 7) = "#ff7a85";
  568. }
  569. }
  570. }
  571. }else{
  572. continue;
  573. }
  574. }
  575. vGrdObj.refresh();
  576. }
  577. ]]>
  578. </script>
  579. </xhtml:head>
  580. <xhtml:body>
  581. <switch id="switch1" style="left:370px; top:20px; width:399px; height:534px; ">
  582. <case id="case_judg" selected="true" style="left:0px; top:0px; width:397px; height:538px; ">
  583. <input id="ipt_judgdd" ref="/root/main/acptinfo/judginfo/specinfo/judgdd" inputtype="date" style="left:83px; top:33px; width:95px; height:19px; "/>
  584. <caption id="caption10" class="cell_1" style="left:5px; top:31px; width:75px; height:23px; text-align:center; vertical-align:middle; ">판정일자</caption>
  585. <select1 id="cmb_judgdr" ref="/root/main/acptinfo/judginfo/specinfo/judgdrid" appearance="minimal" style="left:298px; top:33px; width:95px; height:19px; ">
  586. <choices>
  587. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  588. <label ref="drnm"/>
  589. <value ref="drid"/>
  590. </itemset>
  591. </choices>
  592. <script type="javascript" ev:event="xforms-value-changed">
  593. <![CDATA[
  594. model.property("judgdr") = cmb_judgdr.value;
  595. ]]>
  596. </script>
  597. </select1>
  598. <line id="line17" class="line_1" style="x1:5px; y1:1px; x2:395px; y2:1px; "/>
  599. <caption id="caption7" class="cell_1" style="left:220px; top:31px; width:75px; height:23px; text-align:center; vertical-align:middle; ">판 정 의</caption>
  600. <caption id="caption1" class="cell_1" style="left:5px; top:6px; width:75px; height:23px; text-align:center; vertical-align:middle; ">판정차수</caption>
  601. <select1 id="rdo_judgchs" ref="/root/main/acptinfo/judginfo/specinfo/judgchs" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:83px; top:9px; width:97px; height:17px; border-style:none; ">
  602. <choices>
  603. <item>
  604. <label>1차</label>
  605. <value>1</value>
  606. </item>
  607. <item>
  608. <label>2차</label>
  609. <value>2</value>
  610. </item>
  611. </choices>
  612. </select1>
  613. <caption id="caption2" class="cell_1" style="left:220px; top:6px; width:75px; height:23px; text-align:center; vertical-align:middle; ">문진유무</caption>
  614. <select1 id="radio2" ref="/root/main/acptinfo/judginfo/specinfo/inqryn" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:298px; top:9px; width:82px; height:17px; border-style:none; ">
  615. <choices>
  616. <item>
  617. <label>유</label>
  618. <value>Y</value>
  619. </item>
  620. <item>
  621. <label>무</label>
  622. <value>N</value>
  623. </item>
  624. </choices>
  625. </select1>
  626. <line id="line7" class="line_2" style="x1:5px; y1:29px; x2:394px; y2:29px; "/>
  627. <caption id="caption3" class="cell_1" style="left:5px; top:56px; width:75px; height:23px; text-align:center; vertical-align:middle; ">표적장기</caption>
  628. <caption id="caption4" class="cell_1" style="left:5px; top:81px; width:75px; height:23px; text-align:center; vertical-align:middle; ">선정사유</caption>
  629. <line id="line2" class="line_2" style="x1:5px; y1:79px; x2:394px; y2:79px; "/>
  630. <line id="line3" class="line_2" style="x1:5px; y1:104px; x2:394px; y2:104px; "/>
  631. <caption id="caption5" class="cell_1" style="left:5px; top:106px; width:75px; height:23px; text-align:center; vertical-align:middle; ">취급물질</caption>
  632. <line id="line4" class="line_2" style="x1:5px; y1:129px; x2:394px; y2:129px; "/>
  633. <caption id="caption6" class="cell_1" style="left:5px; top:131px; width:75px; height:23px; text-align:center; vertical-align:middle; ">1차 소견</caption>
  634. <line id="line5" class="line_2" style="x1:5px; y1:154px; x2:394px; y2:154px; "/>
  635. <caption id="caption8" class="cell_1" style="left:5px; top:156px; width:75px; height:23px; text-align:center; vertical-align:middle; ">2차 소견</caption>
  636. <line id="line6" class="line_2" style="x1:5px; y1:179px; x2:394px; y2:179px; "/>
  637. <caption id="caption9" class="cell_1" style="left:5px; top:181px; width:75px; height:23px; text-align:center; vertical-align:middle; ">조 치</caption>
  638. <line id="line8" class="line_2" style="x1:5px; y1:204px; x2:394px; y2:204px; "/>
  639. <line id="line9" class="line_2" style="x1:5px; y1:229px; x2:394px; y2:229px; "/>
  640. <caption id="caption11" class="cell_1" style="left:5px; top:206px; width:75px; height:23px; text-align:center; vertical-align:middle; ">판정코드</caption>
  641. <line id="line10" class="line_2" style="x1:5px; y1:254px; x2:394px; y2:254px; "/>
  642. <caption id="caption12" class="cell_1" style="left:5px; top:231px; width:75px; height:23px; text-align:center; vertical-align:middle; ">질 환</caption>
  643. <line id="line11" class="line_2" style="x1:5px; y1:279px; x2:394px; y2:279px; "/>
  644. <caption id="caption13" class="cell_1" style="left:5px; top:256px; width:75px; height:23px; text-align:center; vertical-align:middle; ">상병코드</caption>
  645. <line id="line12" class="line_2" style="x1:5px; y1:304px; x2:394px; y2:304px; "/>
  646. <caption id="caption14" class="cell_1" style="left:5px; top:281px; width:75px; height:23px; text-align:center; vertical-align:middle; ">사후관리</caption>
  647. <line id="line13" class="line_2" style="x1:5px; y1:329px; x2:394px; y2:329px; "/>
  648. <caption id="caption15" class="cell_1" style="left:5px; top:306px; width:75px; height:23px; text-align:center; vertical-align:middle; ">업무적합성</caption>
  649. <select1 id="cmb_pjjgcd" ref="/root/main/acptinfo/judginfo/specinfo/pjjgcd" appearance="minimal" style="left:83px; top:58px; width:310px; height:19px; ">
  650. <choices>
  651. <itemset nodeset="/root/init/judginfo/pjjgcdlst/item">
  652. <label ref="nm"/>
  653. <value ref="cd"/>
  654. </itemset>
  655. </choices>
  656. <script type="javascript" ev:event="xforms-value-changed">
  657. <![CDATA[
  658. if (window.parent.javascript.fGetEtcInfo("T", cmb_pjjgcd.value) == true){
  659. model.copyNode("/root/temp/baseinfo",opener.root.temp.baseinfo);//parent
  660. var nd = instance1.selectSingleNode("/root/temp/baseinfo/comcodelst");
  661. if( nd != null ) {
  662. copyNodesetType(cmb_sjsayoucd.choices.itemset.attribute("nodeset"), "/root/temp/baseinfo/comcodelst/item", "replace");
  663. }
  664. }
  665. if(cmb_pjjgcd.value == ""){
  666. cmb_sjsayoucd.disabled = true;
  667. }else{
  668. cmb_sjsayoucd.disabled = false;
  669. }
  670. model.refresh();
  671. ]]>
  672. </script>
  673. </select1>
  674. <select1 id="cmb_sjsayoucd" ref="/root/main/acptinfo/judginfo/specinfo/sjsayoucd" appearance="minimal" style="left:83px; top:82px; width:310px; height:19px; ">
  675. <choices>
  676. <itemset nodeset="/root/init/judginfo/sjsayoulst/item">
  677. <label ref="nm"/>
  678. <value ref="cd"/>
  679. </itemset>
  680. </choices>
  681. </select1>
  682. <select1 id="cmb_judgcd" ref="/root/main/acptinfo/judginfo/specinfo/judgcd" class="combo" appearance="minimal" style="left:83px; top:208px; width:310px; height:19px; ">
  683. <choices>
  684. <itemset nodeset="/root/init/judginfo/sjudgcdlst/S170">
  685. <label ref="cdnm"/>
  686. <value ref="cdid"/>
  687. </itemset>
  688. </choices>
  689. </select1>
  690. <select1 id="cmb_shcd1" ref="/root/main/acptinfo/judginfo/specinfo/shcd1" appearance="minimal" style="left:83px; top:283px; width:101px; height:19px; ">
  691. <choices>
  692. <itemset nodeset="/root/init/judginfo/shcdlst/item">
  693. <label ref="nm"/>
  694. <value ref="cd"/>
  695. </itemset>
  696. </choices>
  697. </select1>
  698. <select1 id="cmb_shcd2" ref="/root/main/acptinfo/judginfo/specinfo/shcd2" appearance="minimal" style="left:187px; top:283px; width:101px; height:19px; ">
  699. <choices>
  700. <itemset nodeset="/root/init/judginfo/shcdlst/item">
  701. <label ref="nm"/>
  702. <value ref="cd"/>
  703. </itemset>
  704. </choices>
  705. </select1>
  706. <select1 id="cmb_shcd3" ref="/root/main/acptinfo/judginfo/specinfo/shcd3" appearance="minimal" style="left:291px; top:283px; width:101px; height:19px; ">
  707. <choices>
  708. <itemset nodeset="/root/init/judginfo/shcdlst/item">
  709. <label ref="nm"/>
  710. <value ref="cd"/>
  711. </itemset>
  712. </choices>
  713. </select1>
  714. <select1 id="cmb_upmjhscd" ref="/root/main/acptinfo/judginfo/specinfo/upmjhscd" appearance="minimal" style="left:83px; top:308px; width:310px; height:19px; ">
  715. <choices>
  716. <itemset nodeset="/root/init/judginfo/upmjhscdlst/item">
  717. <label ref="nm"/>
  718. <value ref="cd"/>
  719. </itemset>
  720. </choices>
  721. </select1>
  722. <output id="output3" ref="/root/main/acptinfo/judginfo/specinfo/judg1st" style="left:83px; top:132px; width:60px; height:19px; border-color:#eaeaea; border-style:solid; "/>
  723. <output id="output4" ref="/root/main/acptinfo/judginfo/specinfo/judg1stnm" style="left:162px; top:132px; width:231px; height:19px; border-color:#eaeaea; border-style:solid; "/>
  724. <output id="output5" ref="/root/main/acptinfo/judginfo/specinfo/judg2stnm" style="left:162px; top:158px; width:231px; height:19px; border-color:#eaeaea; border-style:solid; "/>
  725. <output id="output6" ref="/root/main/acptinfo/judginfo/specinfo/judg2st" style="left:83px; top:158px; width:60px; height:19px; border-color:#eaeaea; border-style:solid; "/>
  726. <output id="output7" ref="/root/main/acptinfo/judginfo/specinfo/jchnm" style="left:162px; top:183px; width:231px; height:19px; border-color:#eaeaea; border-style:solid; "/>
  727. <output id="output8" ref="/root/main/acptinfo/judginfo/specinfo/jchcd" style="left:83px; top:183px; width:60px; height:19px; border-color:#eaeaea; border-style:solid; "/>
  728. <output id="output9" ref="/root/main/acptinfo/judginfo/specinfo/jhnm" style="left:146px; top:233px; width:247px; height:19px; border-color:#eaeaea; border-style:solid; "/>
  729. <output id="output10" ref="/root/main/acptinfo/judginfo/specinfo/jhcd" style="left:83px; top:233px; width:60px; height:19px; border-color:#eaeaea; border-style:solid; "/>
  730. <output id="output11" ref="/root/main/acptinfo/judginfo/specinfo/sbcd" style="left:83px; top:258px; width:60px; height:19px; border-color:#eaeaea; border-style:solid; "/>
  731. <output id="output12" ref="/root/main/acptinfo/judginfo/specinfo/sbnm" style="left:146px; top:258px; width:247px; height:19px; border-color:#eaeaea; border-style:solid; "/>
  732. <button id="btn_judg1st" class="icon_search" style="left:145px; top:132px; width:16px; height:16px; ">
  733. <caption/>
  734. <script type="javascript" ev:event="DOMActivate">
  735. <![CDATA[
  736. //popup호출
  737. model.makeValue("/root/temp/healexamdetlflag", "G03"); //특수건진
  738. model.makeValue("/root/temp/healexamflag", "G");
  739. //window.load("SMAHB00810.xrw", "modal", "", "", "/root/temp/tmpflag", "/root/send/srchhealexamdetlflag");
  740. window.load("SPAHR00410.xrw", "modal", "", "", "/root/temp", "/root/temp");
  741. //관련 노드값 셋팅
  742. if(model.getValue("/root/main/acptinfo/judginfo/specinfo/judg1st") != ""){
  743. model.makeValue("/root/send/srchjudg1st", model.getValue("/root/main/acptinfo/judginfo/specinfo/judg1st"));
  744. model.makeValue("/root/send/srchclscd", "G");
  745. model.makeValue("/root/send/srchetccd", "G02"); //조치코드
  746. model.makeNode("/root/temp/tmpdatas");
  747. model.makeNode("/root/temp/tmpdatas/specinfo");
  748. submit("TRAHR04003");
  749. model.setValue("/root/main/acptinfo/judginfo/specinfo/jchcd", model.getValue("/root/temp/tmpdatas/specinfo/jchcd"));
  750. model.setValue("/root/main/acptinfo/judginfo/specinfo/jchnm", model.getValue("/root/temp/tmpdatas/specinfo/jchnm"));
  751. model.setValue("/root/main/acptinfo/judginfo/specinfo/judgcd", model.getValue("/root/temp/tmpdatas/specinfo/judgcd"));
  752. model.setValue("/root/main/acptinfo/judginfo/specinfo/jhcd", model.getValue("/root/temp/tmpdatas/specinfo/jhcd"));
  753. model.setValue("/root/main/acptinfo/judginfo/specinfo/jhnm", model.getValue("/root/temp/tmpdatas/specinfo/jhnm"));
  754. model.setValue("/root/main/acptinfo/judginfo/specinfo/sbcd", model.getValue("/root/temp/tmpdatas/specinfo/sbcd"));
  755. model.setValue("/root/main/acptinfo/judginfo/specinfo/sbnm", model.getValue("/root/temp/tmpdatas/specinfo/sbnm"));
  756. model.setValue("/root/main/acptinfo/judginfo/specinfo/shcd1", model.getValue("/root/temp/tmpdatas/specinfo/shcd1"));
  757. model.setValue("/root/main/acptinfo/judginfo/specinfo/upmjhscd", model.getValue("/root/temp/tmpdatas/specinfo/upmjhscd"));
  758. model.refresh();
  759. }
  760. ]]>
  761. </script>
  762. </button>
  763. <button id="btn_judg2st" class="icon_search" disabled="true" style="left:145px; top:158px; width:16px; height:16px; ">
  764. <caption/>
  765. </button>
  766. <select1 id="cmb_pkgcd" ref="/root/main/acptinfo/judginfo/specinfo/pkgcd" class="combo_essential" appearance="minimal" style="left:83px; top:107px; width:310px; height:19px; ">
  767. <choices>
  768. <itemset nodeset="/root/init/judginfo/pkgcdlst/item">
  769. <label ref="nm"/>
  770. <value ref="cd"/>
  771. </itemset>
  772. </choices>
  773. </select1>
  774. <button id="btn_jchcd" class="icon_search" style="left:145px; top:183px; width:16px; height:16px; ">
  775. <caption/>
  776. <script type="javascript" ev:event="DOMActivate">
  777. <![CDATA[
  778. if(model.getValue("/root/main/acptinfo/judginfo/specinfo/judg1st") == ""){
  779. messageBox("1차소견을 입력 후 수정하세요.","I999"); return;
  780. }else{
  781. /*param1 : 호출xrw, param2:대분류코드, param3:중분류코드, param4:멀티유무, param5:목적노드셋, param6:중분류셋팅여부*/
  782. if(ahzfOpenEtcCdSel( "SMAHR03400", "G", "G02", "N", "/root/temp/templst/item", "Y")){
  783. model.makeValue("/root/main/acptinfo/judginfo/specinfo/jchcd",model.getValue("/root/temp/templst/item/etcdetlcd"));
  784. model.makeValue("/root/main/acptinfo/judginfo/specinfo/jchnm",model.getValue("/root/temp/templst/item/etcdetlnm"));
  785. model.refresh();
  786. }
  787. model.makeValue("/root/send/srchclscd", "G");
  788. model.makeValue("/root/send/srchetccd", "G02"); //조치코드
  789. model.makeValue("/root/send/srchjchcd", model.getValue("/root/main/acptinfo/judginfo/specinfo/jchcd"));
  790. model.makeNode("/root/temp/tmpdatas");
  791. model.makeNode("/root/temp/tmpdatas/specinfo");
  792. submit("TRAHR04004");
  793. model.setValue("/root/main/acptinfo/judginfo/specinfo/shcd1", model.getValue("/root/temp/tmpdatas/specinfo/shcd1"));
  794. model.setValue("/root/main/acptinfo/judginfo/specinfo/upmjhscd", model.getValue("/root/temp/tmpdatas/specinfo/upmjhscd"));
  795. model.refresh();
  796. }
  797. ]]>
  798. </script>
  799. </button>
  800. <switch id="switch2" style="left:0px; top:356px; width:395px; height:179px; ">
  801. <case id="case_spcl" selected="true">
  802. <button id="btn_grdpkgadd" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:282px; top:3px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  803. <caption>행추가</caption>
  804. <script type="javascript" ev:event="DOMActivate">
  805. <![CDATA[
  806. if(model.getValue("/root/main/acptinfo/judginfo/specinfo/pkgcd") == ""){
  807. messageBox("취급물질을 선택해 주세요.","I999");
  808. return;
  809. }
  810. grd_spcljudglst.addRow();
  811. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("pkgcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/pkgcd");
  812. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("pkgnm")) = cmb_pkgcd.label;
  813. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("judg1st")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judg1st");
  814. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("judg1stnm")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judg1stnm");
  815. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("jchcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/jchcd");
  816. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("jchnm")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/jchnm");
  817. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("judgchs")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judgchs");
  818. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("inqryn")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/inqryn");
  819. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("judgdd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judgdd");
  820. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("judgdrid")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judgdrid");
  821. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("pjjgcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/pjjgcd");
  822. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("sjsayoucd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/sjsayoucd");
  823. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("judg2st")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judg2st");
  824. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("judgcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judgcd");
  825. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("jhcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/jhcd");
  826. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("sbcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/sbcd");
  827. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("shcd1")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/shcd1");
  828. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("shcd2")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/shcd2");
  829. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("shcd3")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/shcd3");
  830. grd_spcljudglst.valueMatrix(grd_spcljudglst.row, grd_spcljudglst.colRef("upmjhscd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/upmjhscd");
  831. model.refresh();
  832. ]]>
  833. </script>
  834. </button>
  835. <line id="line14" class="line_1" style="x1:4px; y1:24px; x2:390px; y2:24px; "/>
  836. <button id="btn_grdpkgdel" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:337px; top:3px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  837. <caption>행삭제</caption>
  838. <script type="javascript" ev:event="DOMActivate">
  839. <![CDATA[
  840. deleteSelectedRows(grd_spcljudglst, true);
  841. ]]>
  842. </script>
  843. </button>
  844. <caption id="caption17" class="tit_2" style="left:4px; top:4px; width:105px; height:13px; ">특수 판정 내역</caption>
  845. <datagrid id="grd_spcljudglst" nodeset="/root/main/acptinfo/judginfo/specjudg" autoresize="true" caption="판정순번^취급물질^취급물질명^소견코드^소견명^조치코드^조치명^판정차수^문진유무^판정일자^판정의^표적장기^선정사유^2차소견^판정코드^질환코드^질환^상병코드^상병^사후관리1^사후관리2^사후관리3^업무적합성" colsep="^" colwidth="35, 80, 80, 100, 130, 100, 130, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:4px; top:29px; width:386px; height:146px; ">
  846. <col ref="judgseq" visibility="hidden"/>
  847. <col disabled="true" ref="pkgcd" type="combo" visibility="visible">
  848. <choices>
  849. <itemset nodeset="/root/init/judginfo/pkgcdlst/item">
  850. <label ref="nm"/>
  851. <value ref="cd"/>
  852. </itemset>
  853. </choices>
  854. </col>
  855. <col ref="pkgnm" visibility="hidden"/>
  856. <col ref="judg1st" visibility="hidden"/>
  857. <col ref="judg1stnm"/>
  858. <col ref="jchcd" visibility="hidden"/>
  859. <col ref="jchnm"/>
  860. <col ref="judgchs" visibility="hidden"/>
  861. <col ref="inqryn" visibility="hidden"/>
  862. <col ref="judgdd" visibility="hidden"/>
  863. <col ref="judgdrid" visibility="hidden"/>
  864. <col ref="pjjgcd" visibility="hidden"/>
  865. <col ref="sjsayoucd" visibility="hidden"/>
  866. <col ref="judg2st" visibility="hidden"/>
  867. <col ref="judgcd" visibility="hidden"/>
  868. <col ref="jhcd" visibility="hidden"/>
  869. <col ref="jhnm" visibility="hidden"/>
  870. <col ref="sbcd" visibility="hidden"/>
  871. <col ref="sbnm" visibility="hidden"/>
  872. <col ref="shcd1" visibility="hidden"/>
  873. <col ref="shcd2" visibility="hidden"/>
  874. <col ref="shcd3" visibility="hidden"/>
  875. <col ref="upmjhscd" visibility="hidden"/>
  876. <script type="javascript" ev:event="ondblclick">
  877. <![CDATA[
  878. //그리드의 셀 이외의 곳을 클릭하면 종료한다.
  879. if(!eval(grd_spcljudglst.iscell(event.target))) return false;
  880. // 그리드의 헤더부분을 클릭하면 종료한다.
  881. if(eval(grd_spcljudglst.row) < eval(grd_spcljudglst.fixedRows)) return false;
  882. row = grd_spcljudglst.row;
  883. btn_edit.disabled = false;
  884. model.makeValue("/root/main/acptinfo/judginfo/specinfo/judgseq", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judgseq")));
  885. model.setValue("/root/main/acptinfo/judginfo/specinfo/pjjgcd", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("pjjgcd")));
  886. model.setValue("/root/main/acptinfo/judginfo/specinfo/pkgcd", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("pkgcd")));
  887. model.setValue("/root/main/acptinfo/judginfo/specinfo/judg1st", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judg1st")));
  888. model.setValue("/root/main/acptinfo/judginfo/specinfo/judg1stnm", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judg1stnm")));
  889. model.setValue("/root/main/acptinfo/judginfo/specinfo/judg2st", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judg2st")));
  890. model.setValue("/root/main/acptinfo/judginfo/specinfo/judg2stnm", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judg2stnm")));
  891. model.setValue("/root/main/acptinfo/judginfo/specinfo/jchcd", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("jchcd")));
  892. model.setValue("/root/main/acptinfo/judginfo/specinfo/jchnm", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("jchnm")));
  893. model.setValue("/root/main/acptinfo/judginfo/specinfo/judgcd", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judgcd")));
  894. model.setValue("/root/main/acptinfo/judginfo/specinfo/jhcd", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("jhcd")));
  895. model.setValue("/root/main/acptinfo/judginfo/specinfo/jhnm", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("jhnm")));
  896. model.setValue("/root/main/acptinfo/judginfo/specinfo/sbcd", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("sbcd")));
  897. model.setValue("/root/main/acptinfo/judginfo/specinfo/sbnm", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("sbnm")));
  898. model.setValue("/root/main/acptinfo/judginfo/specinfo/shcd1", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("shcd1")));
  899. model.setValue("/root/main/acptinfo/judginfo/specinfo/shcd2", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("shcd2")));
  900. model.setValue("/root/main/acptinfo/judginfo/specinfo/shcd3", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("shcd3")));
  901. model.setValue("/root/main/acptinfo/judginfo/specinfo/upmjhscd", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("upmjhscd")));
  902. if (window.parent.javascript.fGetEtcInfo("T", cmb_pjjgcd.value) == true){
  903. model.copyNode("/root/temp/baseinfo",opener.root.temp.baseinfo);//parent
  904. var nd = instance1.selectSingleNode("/root/temp/baseinfo/comcodelst");
  905. if( nd != null ) {
  906. copyNodesetType(cmb_sjsayoucd.choices.itemset.attribute("nodeset"), "/root/temp/baseinfo/comcodelst/item", "replace");
  907. }
  908. cmb_sjsayoucd.visible = true;
  909. }
  910. model.setValue("/root/main/acptinfo/judginfo/specinfo/sjsayoucd", grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("sjsayoucd")));
  911. model.refresh();
  912. ]]>
  913. </script>
  914. </datagrid>
  915. <button id="btn_edit" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:238px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  916. <caption>수정</caption>
  917. <script type="javascript" ev:event="DOMActivate">
  918. <![CDATA[
  919. if(grd_spcljudglst.rows == grd_spcljudglst.fixedRows) return;
  920. if(model.getValue("/root/main/acptinfo/judginfo/specinfo/pkgcd") == ""){
  921. alert("수정하고자 하는 내역을 선택 후 수정 버튼을 선택하세요.");
  922. return;
  923. }
  924. if(row == ""){
  925. row = grd_spcljudglst.row;
  926. }
  927. if(grd_spcljudglst.rowStatus(row) == 1){
  928. grd_spcljudglst.rowStatus(row) = 1;
  929. }else{
  930. grd_spcljudglst.rowStatus(row) = 2;
  931. }
  932. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judgseq")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judgseq");
  933. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("pjjgcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/pjjgcd");
  934. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("sjsayoucd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/sjsayoucd");
  935. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("pkgcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/pkgcd");
  936. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judg1st")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judg1st");
  937. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judg1stnm")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judg1stnm");
  938. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judg2st")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judg2st");
  939. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judg2stnm")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judg2stnm");
  940. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("jchcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/jchcd");
  941. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("jchnm")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/jchnm");
  942. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("judgcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/judgcd");
  943. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("jhcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/jhcd");
  944. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("jhnm")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/jhnm");
  945. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("sbcd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/sbcd");
  946. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("sbnm")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/sbnm");
  947. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("shcd1")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/shcd1");
  948. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("shcd2")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/shcd2");
  949. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("shcd3")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/shcd3");
  950. grd_spcljudglst.valueMatrix(row, grd_spcljudglst.colRef("upmjhscd")) = model.getValue("/root/main/acptinfo/judginfo/specinfo/upmjhscd");
  951. ]]>
  952. </script>
  953. </button>
  954. </case>
  955. <case id="case_genl">
  956. <datagrid id="grd_genfstjudglst" nodeset="/root/main/acptinfo/judginfo/genjudg" caption="코드^소견코드^소견명^조치코드^조치명" colsep="^" colwidth="80, 100, 150, 100, 150" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:4px; top:23px; width:386px; height:152px; ">
  957. <col ref="code"/>
  958. <col ref="judg1st" visibility="hidden"/>
  959. <col ref="judg1stnm"/>
  960. <col ref="jchcd" visibility="hidden"/>
  961. <col ref="jchnm"/>
  962. </datagrid>
  963. <line id="line15" class="line_1" style="x1:4px; y1:18px; x2:390px; y2:18px; "/>
  964. <caption id="caption16" class="tit_2" style="left:4px; top:3px; width:125px; height:13px; ">일반1차 판정 내역</caption>
  965. </case>
  966. </switch>
  967. <button id="btn_genl" class="btn_sw" group="tab_3" selected="true" style="left:55px; top:334px; width:50px; height:22px; ">
  968. <caption>일반</caption>
  969. <toggle case="case_genl" ev:event="onclick"/>
  970. </button>
  971. <button id="btn_spcl" class="btn_sw" group="tab_3" selected="true" style="left:5px; top:334px; width:50px; height:22px; ">
  972. <caption>특수</caption>
  973. <toggle case="case_spcl" ev:event="onclick"/>
  974. </button>
  975. <button id="button1" class="btn2_letter4" style="left:328px; top:334px; width:64px; height:19px; ">
  976. <caption>자동판정</caption>
  977. <script type="javascript" ev:event="DOMActivate">
  978. <![CDATA[
  979. if(model.getValue("/root/send/srchpid") == ""){
  980. messageBox("판정정보를 저장할 수진자를 선택해 주세요.", "I999"); return;
  981. }
  982. model.makeValue("/root/temp/tmpInfo/judgchs", model.getValue("/root/main/acptinfo/judginfo/specinfo/judgchs"));
  983. model.makeValue("/root/temp/tmpInfo/inqryn", model.getValue("/root/main/acptinfo/judginfo/specinfo/inqryn"));
  984. model.makeValue("/root/temp/tmpInfo/judgdd", model.getValue("/root/main/acptinfo/judginfo/specinfo/judgdd"));
  985. model.makeValue("/root/temp/tmpInfo/judgdrid", model.getValue("/root/main/acptinfo/judginfo/specinfo/judgdrid"));
  986. if (submit("TRAHR04009"));
  987. model.setValue("/root/main/acptinfo/judginfo/specinfo/judgchs", model.getValue("/root/temp/tmpInfo/judgchs"));
  988. model.setValue("/root/main/acptinfo/judginfo/specinfo/inqryn", model.getValue("/root/temp/tmpInfo/inqryn"));
  989. model.setValue("/root/main/acptinfo/judginfo/specinfo/judgdd", model.getValue("/root/temp/tmpInfo/judgdd"));
  990. model.setValue("/root/main/acptinfo/judginfo/specinfo/judgdrid", model.getValue("/root/temp/tmpInfo/judgdrid"));
  991. var cnt = getNodesetCount("/root/main/acptinfo/judginfo/specjudg");
  992. grd_spcljudglst.rebuild();
  993. for(var i = 1; i<= cnt; i++){
  994. //grd_spcljudglst.addRow();
  995. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgseq")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judgseq");
  996. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("pkgcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/pkgcd");
  997. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("pkgnm")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/pkgnm");
  998. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judg1st")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judg1st");
  999. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judg1stnm")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judg1stnm");
  1000. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("jchcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/jchcd");
  1001. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("jchnm")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/jchnm");
  1002. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgchs")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judgchs");
  1003. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("inqryn")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/inqryn");
  1004. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgdd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judgdd");
  1005. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgdrid")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judgdrid");
  1006. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("pjjgcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/pjjgcd");
  1007. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("sjsayoucd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/sjsayoucd");
  1008. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judg2st")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judg2st");
  1009. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judgcd");
  1010. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("jhcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/jhcd");
  1011. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("sbcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/sbcd");
  1012. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("shcd1")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/shcd1");
  1013. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("shcd2")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/shcd2");
  1014. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("shcd3")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/shcd3");
  1015. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("upmjhscd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/upmjhscd");
  1016. }
  1017. model.refresh();
  1018. if(grd_spcljudglst.rows == grd_spcljudglst.fixedRows){
  1019. return;
  1020. }else{
  1021. for(var i=grd_spcljudglst.fixedRows; i<grd_spcljudglst.rows; i++){
  1022. if(grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgseq")) == ""){
  1023. grd_spcljudglst.addStatus(i, "insert");
  1024. }else{
  1025. grd_spcljudglst.addStatus(i, "update");
  1026. }
  1027. }
  1028. }
  1029. ]]>
  1030. </script>
  1031. </button>
  1032. <line id="line1" class="line_2" style="x1:5px; y1:54px; x2:394px; y2:54px; "/>
  1033. </case>
  1034. <case id="case_etc" style="left:0px; top:0px; width:768px; height:538px; ">
  1035. <caption id="caption78" class="cell_1" style="left:5px; top:10px; width:130px; height:322px; text-align:left; vertical-align:middle; "/>
  1036. <button id="btn_etcjudg" class="btn2_letter8" style="left:15px; top:155px; width:108px; height:19px; ">
  1037. <caption>소견 및 조치사항</caption>
  1038. <script type="javascript" ev:event="DOMActivate">
  1039. <![CDATA[
  1040. fGetJudgExmpCnts(tar_lastjudg,"");
  1041. ]]>
  1042. </script>
  1043. </button>
  1044. <line id="line16" class="line_1" style="x1:5px; y1:1px; x2:395px; y2:1px; "/>
  1045. <textarea id="tar_lastjudg" ref="/root/main/acptinfo/judginfo/specinfo/lastjudg" style="left:138px; top:7px; width:256px; height:322px; "/>
  1046. </case>
  1047. <case id="case_recinfo">
  1048. <input id="ipt_duptype" ref="/root/main/acptinfo/judginfo/spclrecinfo/duptype" imemode="hangul" maxlength="100" maxbyte="100" style="left:78px; top:58px; width:198px; height:19px; "/>
  1049. <input id="ipt_workprocnm" ref="/root/main/acptinfo/judginfo/spclrecinfo/workprocnm" class="output_fix" disabled="true" style="left:166px; top:6px; width:110px; height:19px; "/>
  1050. <input id="ipt_medioph" ref="/root/main/acptinfo/judginfo/spclrecinfo/medioph" class="input_default" style="left:115px; top:84px; width:69px; height:19px; "/>
  1051. <button id="button2" class="btn2_letter3" style="left:282px; top:135px; width:53px; height:19px; ">
  1052. <caption>행추가</caption>
  1053. <script type="javascript" ev:event="DOMActivate">
  1054. <![CDATA[
  1055. grd_bizhistlst.addRow();
  1056. ]]>
  1057. </script>
  1058. </button>
  1059. <button id="button4" class="btn2_letter3" style="left:338px; top:135px; width:53px; height:19px; ">
  1060. <caption>행삭제</caption>
  1061. <script type="javascript" ev:event="DOMActivate">
  1062. <![CDATA[
  1063. deleteSelectedRows(grd_bizhistlst,true);
  1064. ]]>
  1065. </script>
  1066. </button>
  1067. <input id="ipt_mediotor" ref="/root/main/acptinfo/judginfo/spclrecinfo/mediotor" class="input_default" style="left:257px; top:84px; width:69px; height:19px; "/>
  1068. <input id="ipt_workproccd" ref="/root/main/acptinfo/judginfo/spclrecinfo/workproccd" class="input_default" imemode="alpha" style="left:78px; top:6px; width:64px; height:19px; ">
  1069. <script type="javascript" ev:event="onkeyup">
  1070. <![CDATA[
  1071. inputEnterKey("btn_selbiz", "DOMActivate");
  1072. ]]>
  1073. </script>
  1074. </input>
  1075. <button id="button18" class="btn2_letter3" style="left:338px; top:284px; width:53px; height:19px; ">
  1076. <caption>행삭제</caption>
  1077. <script type="javascript" ev:event="DOMActivate">
  1078. <![CDATA[
  1079. deleteSelectedRows(grd_spclsymplst,true);
  1080. ]]>
  1081. </script>
  1082. </button>
  1083. <caption id="caption30" class="cell_1" style="left:77px; top:108px; width:35px; height:23px; vertical-align:middle; ">피부</caption>
  1084. <caption id="caption31" class="cell_1" style="left:187px; top:108px; width:35px; height:23px; vertical-align:middle; ">치아</caption>
  1085. <input id="ipt_mediskin" ref="/root/main/acptinfo/judginfo/spclrecinfo/mediskin" class="input_default" style="left:115px; top:110px; width:69px; height:19px; "/>
  1086. <select1 id="cmb_spclhealexamflag" ref="/root/main/acptinfo/judginfo/spclrecinfo/spclhealexamflag" navindex="40" appearance="minimal" style="left:319px; top:32px; width:74px; height:19px; ">
  1087. <choices>
  1088. <itemset nodeset="/root/init/judginfo/spclflaglst/G111">
  1089. <label ref="cdnm"/>
  1090. <value ref="cdid"/>
  1091. </itemset>
  1092. </choices>
  1093. </select1>
  1094. <button id="button6" class="btn2_letter2" style="left:293px; top:284px; width:42px; height:19px; ">
  1095. <caption>조회</caption>
  1096. <script type="javascript" ev:event="DOMActivate">
  1097. <![CDATA[
  1098. fGetCommonCode("Y","G107","","/root/main/hidden/tempinfo/item","","");
  1099. var nodeList = instance1.selectNodes("/root/main/hidden/tempinfo/item");
  1100. if(nodeList.length > 0) {
  1101. for(var i=1; i <= nodeList.length; i++ ) {
  1102. grd_spclsymplst.addRow(false);
  1103. grd_spclsymplst.valueMatrix(grd_spclsymplst.rows-1, grd_spclsymplst.colRef("sympcd")) = model.getValue("/root/main/hidden/tempinfo/item[" + i + "]/cdid");
  1104. grd_spclsymplst.valueMatrix(grd_spclsymplst.rows-1, grd_spclsymplst.colRef("sympnm")) = model.getValue("/root/main/hidden/tempinfo/item[" + i + "]/cdnm");
  1105. }
  1106. }
  1107. ]]>
  1108. </script>
  1109. </button>
  1110. <line id="line24" class="line_2" style="x1:5px; y1:28px; x2:392px; y2:28px; "/>
  1111. <input id="ipt_medidental" ref="/root/main/acptinfo/judginfo/spclrecinfo/medidental" class="input_default" style="left:225px; top:110px; width:71px; height:19px; "/>
  1112. <button id="btn_selprod" class="icon_search" style="left:145px; top:33px; width:16px; height:16px; ">
  1113. <caption/>
  1114. <script type="javascript" ev:event="DOMActivate">
  1115. <![CDATA[
  1116. fGetCommonCode("N","G106",model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/prodcd"),"","/root/main/acptinfo/judginfo/spclrecinfo/prodcd","/root/main/acptinfo/judginfo/spclrecinfo/prodnm");
  1117. ipt_prodcd.refresh();
  1118. ipt_prodnm.refresh();
  1119. ]]>
  1120. </script>
  1121. </button>
  1122. <caption id="caption22" class="cell_1" style="left:280px; top:4px; width:73px; height:23px; vertical-align:middle; ">1일폭로시간</caption>
  1123. <caption id="caption34" class="cell_1" style="left:280px; top:30px; width:36px; height:23px; vertical-align:middle; ">분류</caption>
  1124. <caption id="caption23" class="cell_1" style="left:5px; top:30px; width:70px; height:23px; vertical-align:middle; ">생산코드</caption>
  1125. <line id="line26" class="line_2" style="x1:5px; y1:54px; x2:392px; y2:54px; "/>
  1126. <caption id="caption24" class="cell_1" style="left:5px; top:82px; width:70px; height:49px; vertical-align:middle; ">임상진찰</caption>
  1127. <line id="line27" class="line_2" style="x1:5px; y1:80px; x2:392px; y2:80px; "/>
  1128. <caption id="caption25" class="cell_1" style="left:5px; top:56px; width:70px; height:23px; vertical-align:middle; ">근무형태</caption>
  1129. <caption id="caption26" class="tit_2" style="left:5px; top:138px; width:84px; height:13px; ">과거직력</caption>
  1130. <caption id="caption27" class="tit_2" style="left:5px; top:288px; width:84px; height:13px; ">자타각</caption>
  1131. <datagrid id="grd_bizhistlst" nodeset="/root/main/acptinfo/judginfo/bizhistlst" caption="seqno^작업공정^취급화학물질및노출유해인자^노출기간(년)^노출기간(개월)^사업자등록번호^사업장명^부서" colsep="^" colwidth="36, 90, 100, 80, 90, 90, 80, 80" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:155px; width:387px; height:127px; ">
  1132. <col ref="seqno" visibility="hidden"/>
  1133. <col ref="jobprgrs" type="input"/>
  1134. <col ref="trtchmmt" type="input"/>
  1135. <col ref="sxpsrtermyear" type="input"/>
  1136. <col ref="sxpsrtermmonth" type="input"/>
  1137. <col ref="cmpyno" type="input" format="999-99-99999"/>
  1138. <col ref="cmpynm" type="input"/>
  1139. <col ref="deptnm" type="input"/>
  1140. <script type="javascript" ev:event="onaftersort">
  1141. <![CDATA[
  1142. grd_bizhistlst.gridToInstance();
  1143. ]]>
  1144. </script>
  1145. </datagrid>
  1146. <caption id="caption28" class="cell_1" style="left:77px; top:82px; width:35px; height:23px; vertical-align:middle; ">안과</caption>
  1147. <input id="ipt_prodnm" ref="/root/main/acptinfo/judginfo/spclrecinfo/prodnm" class="output_fix" disabled="true" style="left:166px; top:32px; width:110px; height:19px; "/>
  1148. <caption id="caption29" class="cell_1" style="left:187px; top:82px; width:67px; height:23px; vertical-align:middle; ">이비인후과</caption>
  1149. <input id="input4" ref="/root/main/acptinfo/judginfo/spclrecinfo/dayspclworktm" imemode="alpha" maxlength="2" maxbyte="2" style="left:356px; top:6px; width:37px; height:19px; "/>
  1150. <input id="ipt_prodcd" ref="/root/main/acptinfo/judginfo/spclrecinfo/prodcd" class="input_default" imemode="alpha" style="left:78px; top:32px; width:64px; height:19px; ">
  1151. <script type="javascript" ev:event="onkeyup">
  1152. <![CDATA[
  1153. inputEnterKey("btn_selprod", "DOMActivate");
  1154. ]]>
  1155. </script>
  1156. </input>
  1157. <caption id="caption19" class="cell_1" style="left:5px; top:4px; width:70px; height:23px; vertical-align:middle; ">작업공정</caption>
  1158. <datagrid id="grd_spclsymplst" nodeset="/root/main/acptinfo/judginfo/spclsymplst" caption="코드^명칭" colsep="^" colwidth="100, 200" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:304px; width:387px; height:127px; ">
  1159. <col ref="sympcd"/>
  1160. <col ref="sympnm"/>
  1161. <script type="javascript" ev:event="onaftersort">
  1162. <![CDATA[
  1163. grd_spclsymplst.gridToInstance();
  1164. ]]>
  1165. </script>
  1166. </datagrid>
  1167. <button id="btn_selbiz" class="icon_search" style="left:145px; top:7px; width:16px; height:16px; ">
  1168. <caption/>
  1169. <script type="javascript" ev:event="DOMActivate">
  1170. <![CDATA[
  1171. fGetCommonCode("N","G105",model.getValue("/root/main/acptinfo/judginfo/spclrecinfo/workproccd"),"","/root/main/acptinfo/judginfo/spclrecinfo/workproccd","/root/main/acptinfo/judginfo/spclrecinfo/workprocnm");
  1172. ipt_workproccd.refresh();
  1173. ipt_workprocnm.refresh();
  1174. ]]>
  1175. </script>
  1176. </button>
  1177. <line id="line18" class="line_2" style="x1:82px; y1:106px; x2:392px; y2:106px; "/>
  1178. <line id="line20" class="line_2" style="x1:5px; y1:132px; x2:392px; y2:132px; "/>
  1179. <caption id="caption18" class="cell_1" style="left:5px; top:434px; width:70px; height:23px; vertical-align:middle; ">과거병력</caption>
  1180. <caption id="caption20" class="cell_1" style="left:5px; top:459px; width:70px; height:23px; vertical-align:middle; ">가족력</caption>
  1181. <caption id="caption21" class="cell_1" style="left:5px; top:484px; width:70px; height:23px; vertical-align:middle; ">업무기인성</caption>
  1182. <button id="save_recinfo" class="btn2_letter2" style="left:349px; top:511px; width:42px; height:19px; ">
  1183. <caption>저장</caption>
  1184. <script type="javascript" ev:event="DOMActivate">
  1185. <![CDATA[
  1186. fCheckSaveRecInfo();
  1187. ]]>
  1188. </script>
  1189. </button>
  1190. <line id="line21" class="line_2" style="x1:5px; y1:457px; x2:392px; y2:457px; "/>
  1191. <line id="line22" class="line_2" style="x1:5px; y1:482px; x2:392px; y2:482px; "/>
  1192. <line id="line23" class="line_2" style="x1:5px; y1:508px; x2:392px; y2:508px; "/>
  1193. <line id="line25" class="line_2" style="x1:0px; y1:433px; x2:392px; y2:433px; "/>
  1194. <input id="ipt_mdclhstr" ref="/root/main/acptinfo/judginfo/spclrecinfo/mdclhstr" class="input_default" maxlength="100" style="left:78px; top:436px; width:314px; height:19px; "/>
  1195. <input id="ipt_fmlhstr" ref="/root/main/acptinfo/judginfo/spclrecinfo/fmlhstr" class="input_default" maxlength="100" style="left:78px; top:461px; width:314px; height:19px; "/>
  1196. <input id="ipt_workcause" ref="/root/main/acptinfo/judginfo/spclrecinfo/workcause" class="input_default" maxlength="100" style="left:78px; top:486px; width:314px; height:19px; "/>
  1197. <line id="line28" class="line_1" style="x1:5px; y1:1px; x2:395px; y2:1px; "/>
  1198. </case>
  1199. </switch>
  1200. <datagrid id="grd_rsltlst" nodeset="/root/main/acptinfo/rsltlst/item" allowselection="false" caption="처방일자^실시처방&#xA;유일번호^처방번호^검사코드^명칭^연계결과^결과^특건연계^공단연계^Low^High^판정값^단위^종류^비고^특수연계코드^판정코드^LIS판정" colsep="^" colwidth="70, 69, 63, 74, 90, 65, 65, 65, 65, 40, 40, 50, 58, 43, 67, 100, 80, 60" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" tooltip="true" style="left:5px; top:1px; width:360px; height:553px; ">
  1201. <col ref="prcpdd" visibility="hidden"/>
  1202. <col ref="execprcpuniqno" visibility="hidden"/>
  1203. <col ref="prcpno" visibility="hidden"/>
  1204. <col ref="testcd" visibility="hidden"/>
  1205. <col ref="testnm"/>
  1206. <col ref="outtestrsltcnts"/>
  1207. <col ref="testrsltcnts" type="input"/>
  1208. <col ref="assorsltcnts1" type="input"/>
  1209. <col ref="assorsltcnts" type="input" visibility="hidden"/>
  1210. <col ref="minval"/>
  1211. <col ref="maxval"/>
  1212. <col ref="judgrsltcnts" visibility="visible"/>
  1213. <col ref="rsltunit"/>
  1214. <col disabled="true" ref="rsltflag" type="combo">
  1215. <choices>
  1216. <itemset nodeset="/root/init/baseinfo/rslttypelst/A0066">
  1217. <label ref="cdnm"/>
  1218. <value ref="cdid"/>
  1219. </itemset>
  1220. </choices>
  1221. </col>
  1222. <col class="gridinput" ref="remcnts" type="input" visibility="hidden"/>
  1223. <col ref="assorsltcd1" visibility="hidden"/>
  1224. <col ref="judgcd" visibility="hidden"/>
  1225. <col ref="judgmark" visibility="hidden"/>
  1226. <script type="javascript" ev:event="onendedit">
  1227. <![CDATA[
  1228. if(getUserInfo("dutplceinstcd") == "011"){
  1229. if (event.keyCode == 13 ){
  1230. grp_asso.visible = false;
  1231. if(grd_assorsltlst.rows != 1){
  1232. for(var i=grd_assorsltlst.rows; i>=grd_assorsltlst.fixedRows; i--){
  1233. grd_assorsltlst.deleteRow(i);
  1234. }
  1235. }
  1236. if (grd_rsltlst.col == window.parent.javascript.col_rslt ) {
  1237. //선택형검사결과의 결과컬럼
  1238. if ((grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="O")||(grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="T")){
  1239. var vtestcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testcd"));
  1240. var vsubcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testrsltcnts"));
  1241. var cdata = fdataValue(vtestcd,vsubcd);
  1242. if (cdata!=null){
  1243. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcnts")) = cdata; //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testrsltcnts"));
  1244. //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testrsltcnts")) = cdata;
  1245. }
  1246. }
  1247. if (grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="N"){
  1248. var maxval = eval(grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("maxval")));
  1249. var minval = eval(grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("minval")));
  1250. var testrsltcnts = eval(grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testrsltcnts")));
  1251. if(maxval < testrsltcnts){
  1252. grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("judgrsltcnts")) = "H";
  1253. } else
  1254. if(minval > testrsltcnts){
  1255. grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("judgrsltcnts")) = "L";
  1256. } else {
  1257. grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("judgrsltcnts")) = "";
  1258. }
  1259. }
  1260. window.parent.javascript.fCalcRslt(grd_rsltlst.colRef("testrsltcnts"));
  1261. window.parent.javascript.fSetJudgStat(grd_rsltlst.colRef("testrsltcnts"));
  1262. }
  1263. //else if(grd_rsltlst.col == window.parent.javaScript.col_assorslt ) {
  1264. else if(grd_rsltlst.col == grd_rsltlst.colRef("assorsltcnts1")) {
  1265. if (grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="O"){
  1266. //선택형검사결과의 공단결과
  1267. var vtestcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testcd"));
  1268. //var vsubcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("assorsltcnts"));
  1269. var vsubcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("assorsltcnts1"));
  1270. var cdata = fdataValueAsso(vtestcd,vsubcd);
  1271. if(cdata!=null){
  1272. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("judgcd")) = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso["+nodenumber+"]/judgexmpcd");
  1273. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("judgrsltcnts")) = model.getValue("/root/main/tempinfo/assorsltlst1/itemasso["+nodenumber+"]/judgexmpcnts");
  1274. //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testrsltcnts")) = cdata;
  1275. //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcnts")) = cdata;
  1276. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcnts1")) = cdata;
  1277. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcd1")) = vsubcd;
  1278. }
  1279. }
  1280. //window.parent.javascript.fSetAssoRslt(grd_rsltlst.labelMatrix(grd_rsltlst.row, window.parent.javaScript.col_assorslt ) );
  1281. /*검사결과 자동계산
  1282. window.parent.javascript.fCalcRslt(grd_rsltlst.colRef("assorsltcnts"));
  1283. window.parent.javascript.fSetJudgStat(grd_rsltlst.colRef("assorsltcnts"));*/
  1284. window.parent.javascript.fCalcRslt(grd_rsltlst.colRef("assorsltcnts1"));
  1285. //window.parent.javascript.fSetJudgStat(grd_rsltlst.colRef("assorsltcnts1"));
  1286. }
  1287. grd_rsltlst.row = grd_rsltlst.row +1;
  1288. }
  1289. }
  1290. ]]>
  1291. </script>
  1292. <script type="javascript" ev:event="onstartedit">
  1293. <![CDATA[
  1294. if(getUserInfo("dutplceinstcd") == "011"){
  1295. if (grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="O" && grd_rsltlst.col == grd_rsltlst.colRef("assorsltcnts1")){
  1296. var testcd = grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testcd"));
  1297. //var nodeCount = getNodesetCount("/root/main/acptinfo/rsltlst/itemassoexmp");
  1298. model.removeNodeset("/root/main/tempinfo/assorsltlst1/itemasso");
  1299. grd_assorsltlst.rebuild();
  1300. var nodeCount = getNodesetCount("/root/main/acptinfo/rsltlst/itemassoexmp1");
  1301. for (var i=0; i<=nodeCount;i++){
  1302. /*if (model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+ i +"]/testcd") == testcd){
  1303. grd_assorsltlst.addRow();
  1304. grd_assorsltlst.valueMatrix(grd_assorsltlst.row, grd_assorsltlst.colRef("rsltcd")) = model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i+"]/rsltcd");
  1305. grd_assorsltlst.valueMatrix(grd_assorsltlst.row, grd_assorsltlst.colRef("rsltnm")) = model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i+"]/rsltnm");
  1306. }*/
  1307. if (model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp1["+ i +"]/testcd") == testcd){
  1308. grd_assorsltlst.addRow();
  1309. grd_assorsltlst.valueMatrix(grd_assorsltlst.row, grd_assorsltlst.colRef("rsltcd")) = model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp1["+i+"]/rsltcd");
  1310. grd_assorsltlst.valueMatrix(grd_assorsltlst.row, grd_assorsltlst.colRef("rsltnm")) = model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp1["+i+"]/rsltnm");
  1311. }
  1312. }
  1313. grp_asso.visible = true;
  1314. model.refresh();
  1315. }
  1316. }
  1317. ]]>
  1318. </script>
  1319. </datagrid>
  1320. <group id="grp_answ" visibility="hidden" style="left:35px; top:145px; width:265px; height:180px; ">
  1321. <datagrid id="grd_answlst" nodeset="/root/hidden/answlst/item" visibility="visible" caption="코드^답안내용^검사코드^문진구분" colsep="^" colwidth="30, 180, 46, 46" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:255px; height:169px; ">
  1322. <col ref="answcd"/>
  1323. <col ref="answcnts"/>
  1324. <col ref="judginqrcd" visibility="hidden"/>
  1325. <col ref="inqrflag" visibility="hidden"/>
  1326. </datagrid>
  1327. </group>
  1328. <button id="btn_etc" class="btn_sw" group="tab_2" selected="true" style="left:450px; top:1px; width:80px; height:22px; ">
  1329. <caption>기타판정</caption>
  1330. <toggle case="case_etc" ev:event="onclick"/>
  1331. </button>
  1332. <button id="btn_judg" class="btn_sw" group="tab_2" selected="true" style="left:370px; top:1px; width:80px; height:22px; ">
  1333. <caption>판정</caption>
  1334. <toggle case="case_judg" ev:event="onclick"/>
  1335. </button>
  1336. <button id="btn_save" class="btn5_letter4" style="left:635px; top:1px; width:64px; height:19px; ">
  1337. <caption>판정저장</caption>
  1338. <script type="javascript" ev:event="DOMActivate">
  1339. <![CDATA[
  1340. fCheckSaveInfo();
  1341. ]]>
  1342. </script>
  1343. </button>
  1344. <button id="btn_nomaljudg" class="btn2_letter4" style="left:702px; top:1px; width:64px; height:19px; ">
  1345. <caption>정상판정</caption>
  1346. <script type="javascript" ev:event="DOMActivate">
  1347. <![CDATA[
  1348. if(model.getValue("/root/send/srchpid") == ""){
  1349. messageBox("판정정보를 저장할 수진자를 선택해 주세요.", "I999"); return;
  1350. }
  1351. model.makeValue("/root/temp/tmpInfo/judgchs", model.getValue("/root/main/acptinfo/judginfo/specinfo/judgchs"));
  1352. model.makeValue("/root/temp/tmpInfo/inqryn", model.getValue("/root/main/acptinfo/judginfo/specinfo/inqryn"));
  1353. model.makeValue("/root/temp/tmpInfo/judgdd", model.getValue("/root/main/acptinfo/judginfo/specinfo/judgdd"));
  1354. model.makeValue("/root/temp/tmpInfo/judgdrid", model.getValue("/root/main/acptinfo/judginfo/specinfo/judgdrid"));
  1355. if (submit("TRAHR04005"));
  1356. model.setValue("/root/main/acptinfo/judginfo/specinfo/judgchs", model.getValue("/root/temp/tmpInfo/judgchs"));
  1357. model.setValue("/root/main/acptinfo/judginfo/specinfo/inqryn", model.getValue("/root/temp/tmpInfo/inqryn"));
  1358. model.setValue("/root/main/acptinfo/judginfo/specinfo/judgdd", model.getValue("/root/temp/tmpInfo/judgdd"));
  1359. model.setValue("/root/main/acptinfo/judginfo/specinfo/judgdrid", model.getValue("/root/temp/tmpInfo/judgdrid"));
  1360. var cnt = getNodesetCount("/root/main/acptinfo/judginfo/specjudg");
  1361. grd_spcljudglst.rebuild();
  1362. for(var i = 1; i<= cnt; i++){
  1363. //grd_spcljudglst.addRow();
  1364. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgseq")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judgseq");
  1365. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("pkgcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/pkgcd");
  1366. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("pkgnm")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/pkgnm");
  1367. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judg1st")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judg1st");
  1368. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judg1stnm")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judg1stnm");
  1369. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("jchcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/jchcd");
  1370. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("jchnm")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/jchnm");
  1371. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgchs")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judgchs");
  1372. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("inqryn")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/inqryn");
  1373. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgdd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judgdd");
  1374. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgdrid")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judgdrid");
  1375. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("pjjgcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/pjjgcd");
  1376. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("sjsayoucd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/sjsayoucd");
  1377. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judg2st")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judg2st");
  1378. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/judgcd");
  1379. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("jhcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/jhcd");
  1380. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("sbcd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/sbcd");
  1381. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("shcd1")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/shcd1");
  1382. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("shcd2")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/shcd2");
  1383. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("shcd3")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/shcd3");
  1384. grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("upmjhscd")) = model.getValue("/root/main/acptinfo/judginfo/specjudg[" + i + "]/upmjhscd");
  1385. }
  1386. model.refresh();
  1387. if(grd_spcljudglst.rows == grd_spcljudglst.fixedRows){
  1388. return;
  1389. }else{
  1390. for(var i=grd_spcljudglst.fixedRows; i<grd_spcljudglst.rows; i++){
  1391. if(grd_spcljudglst.valueMatrix(i, grd_spcljudglst.colRef("judgseq")) == ""){
  1392. grd_spcljudglst.addStatus(i, "insert");
  1393. }else{
  1394. grd_spcljudglst.addStatus(i, "update");
  1395. }
  1396. }
  1397. }
  1398. ]]>
  1399. </script>
  1400. </button>
  1401. <group id="grp_asso" visibility="hidden" style="left:75px; top:60px; width:275px; height:245px; ">
  1402. <caption id="caption57" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">특수결과입력</caption>
  1403. <datagrid id="grd_assorsltlst" nodeset="/root/main/tempinfo/assorsltlst1/itemasso" allowselection="false" caption="코드^결과내용" colsep="^" colwidth="36, 185" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:5px; top:30px; width:265px; height:215px; ">
  1404. <col ref="rsltcd"/>
  1405. <col ref="rsltnm"/>
  1406. <script type="javascript" ev:event="ondblclick">
  1407. <![CDATA[
  1408. //그리드의 셀 이외의 곳을 클릭하면 종료한다.
  1409. if(!eval(grd_assorsltlst.iscell(event.target))) return false;
  1410. // 그리드의 헤더부분을 클릭하면 종료한다.
  1411. if(eval(grd_assorsltlst.row) < eval(grd_assorsltlst.fixedRows)) return false;
  1412. var idx = grd_assorsltlst.row;
  1413. if( idx < 1) return ;
  1414. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcnts1")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + idx + "]/rsltnm" );
  1415. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcd1")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + idx + "]/rsltcd" );
  1416. grd_rsltlst.rowStatus(grd_rsltlst.row) = 2;
  1417. var nextRow = grd_rsltlst.row + 1;
  1418. if(grd_rsltlst.colType(grd_rsltlst.col) == "input" && nextRow < grd_rsltlst.rows) {
  1419. grd_rsltlst.row = nextRow;
  1420. grd_rsltlst.editCell();
  1421. }
  1422. if(grd_rsltlst.valueMatrix(nextRow, grd_rsltlst.colRef("rsltflag")) != "O"){
  1423. grp_asso.visible = false;
  1424. }else{
  1425. grp_asso.visible = true;
  1426. }
  1427. ]]>
  1428. </script>
  1429. </datagrid>
  1430. <line id="line19" class="line_1" style="x1:5px; y1:20px; x2:270px; y2:20px; "/>
  1431. <button id="btn_assoclose" class="icon_plus" style="left:255px; top:4px; width:13px; height:15px; ">
  1432. <caption/>
  1433. <script type="javascript" ev:event="DOMActivate">
  1434. <![CDATA[
  1435. grp_asso.visible = false;
  1436. ]]>
  1437. </script>
  1438. </button>
  1439. </group>
  1440. <button id="btn_recinfo" class="btn_sw" group="tab_2" selected="true" style="left:530px; top:1px; width:80px; height:22px; ">
  1441. <caption>이력정보</caption>
  1442. <toggle case="case_recinfo" ev:event="onclick"/>
  1443. </button>
  1444. </xhtml:body>
  1445. </xhtml:html>