SMMQR00800.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  1. /**
  2. * @---------------------------------------------------
  3. * @desc : 비임상 조회시 기본정보 setting
  4. * @param :
  5. * @return :
  6. * @---------------------------------------------------
  7. */
  8. function fInitialize_00800(){
  9. zbcfGetCodeList( new Array("M0438", "M0439", "M0440", "M0444", "M0441", "M0442"),
  10. new Array("/root/init/fire/suprinst", "/root/init/healcaregas/brktm", "/root/init/handcaptermcd", "/root/init/loosinstcd" , "/root/init/actpsn", "/root/init/losspsn"),
  11. true );
  12. model.refresh();
  13. chk_healgaschkkind.refresh();
  14. chk_healgaspatlossyn.refresh();
  15. if(parent.model.getValue("/root/main/condition/acptno") != ""){
  16. model.setValue("/root/main/cond/genrplce" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/genrplce" ) );
  17. model.setValue("/root/main/cond/etcreptcnts" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/etcreptcnts" ) );
  18. model.setValue("/root/main/cond/tretinstcd" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/tretinstcd" ) );
  19. var lossyn = parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/lossyn" );
  20. model.setValue("/root/main/cond/lossyn" , lossyn );
  21. if(lossyn == "N"){
  22. ipt_firelosscnt.disabled = true;
  23. }
  24. else{
  25. model.setValue("/root/main/cond/losscnt" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/losscnt" ) );
  26. ipt_firelosscnt.disabled = false;
  27. }
  28. var locktmcd = parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/locktmcd" );
  29. model.setValue("/root/main/cond/locktmcd" , locktmcd );
  30. if(locktmcd == "04"){
  31. model.setValue("/root/main/cond/locktmetccnts" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/locktmetccnts" ) );
  32. ipt_healgaslockmetccnts.visible = true;
  33. }
  34. model.setValue("/root/main/cond/chkkind" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/chkkind" ) );
  35. model.setValue("/root/main/cond/patlossyn" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/patlossyn" ) );
  36. model.setValue("/root/main/cond/handcaptermcd" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/handcaptermcd" ) );
  37. model.setValue("/root/main/cond/lossitem" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/lossitem" ) );
  38. var tranyn = parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/tranyn" );
  39. model.setValue("/root/main/cond/tranyn" , tranyn );
  40. if(tranyn == "N"){
  41. model.setValue("/root/main/cond/trannotoccrplce" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/trannotoccrplce" ) );
  42. ipt_breakouttrannotoccrplce.disabled = false;
  43. }
  44. var actpsn = parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/actpsn" );
  45. model.setValue("/root/main/cond/actpsn" , actpsn );
  46. if(actpsn == "01"){
  47. model.setValue("/root/tmp/actpnm" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/actpnm" ) );
  48. model.setValue("/root/main/cond/actpid" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/actpid" ) );
  49. ipt_actpnm.visible = true;
  50. btn_actpnm.visible = true;
  51. opt_actpnm.visible = true;
  52. }
  53. var losspsn = parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/losspsn" )
  54. model.setValue("/root/main/cond/losspsn" , losspsn );
  55. if(losspsn == "01"){
  56. model.setValue("/root/tmp/losspnm" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/losspnm" ) );
  57. model.setValue("/root/main/cond/losspid" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/losspid" ) );
  58. ipt_losspnm.visible = true;
  59. btn_losspnm.visible = true;
  60. opt_losspnm.visible = true;
  61. }
  62. model.setValue("/root/main/cond/detlcnts", parent.model.getValue("/root/main/condition/detlcnts"));
  63. model.setValue("/root/main/cond/detlcnts_why", parent.model.getValue("/root/main/condition/detlcnts_why"));
  64. model.setValue("/root/main/cond/detlcnts_how", parent.model.getValue("/root/main/condition/detlcnts_how"));
  65. }
  66. model.refresh();
  67. }
  68. /**
  69. * @---------------------------------------------------
  70. * @desc : 중분류에따라 control속성을 설정
  71. * @param : clincetckind 중분류
  72. * @return :
  73. * @---------------------------------------------------
  74. */
  75. function fSetDisabled(mdl){
  76. model.resetInstanceNode("/root/main/cond");
  77. if(mdl == "01"){ // 화재
  78. //화재
  79. ipt_firegenrplce.disabled = false;
  80. cmb_fireinstcd.disabled = false;
  81. ipt_firelosscnt.disabled = false;
  82. chk_firelossyn.disabled = false;
  83. tar_fireetcreptcnts.disabled = false;
  84. ipt_firegenrplce.attribute("ref") = "/root/main/cond/genrplce";
  85. cmb_fireinstcd.attribute("ref") = "/root/main/cond/tretinstcd";
  86. ipt_firelosscnt.attribute("ref") = "/root/main/cond/losscnt";
  87. chk_firelossyn.attribute("ref") = "/root/main/cond/lossyn";
  88. tar_fireetcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
  89. //의료가스/의료전기
  90. ipt_healgasgenrplce.disabled = true;
  91. cmb_healgaslocktmcd.disabled = true;
  92. ipt_healgaslockmetccnts.disabled = true;
  93. chk_healgaschkkind.disabled = true;
  94. chk_healgaspatlossyn.disabled = true;
  95. tar_healgasetc.disabled = true;
  96. ipt_healgasgenrplce.attribute("ref") = "";
  97. cmb_healgaslocktmcd.attribute("ref") = "";
  98. ipt_healgaslockmetccnts.attribute("ref") = "";
  99. chk_healgaschkkind.attribute("ref") = "";
  100. chk_healgaspatlossyn.attribute("ref") = "";
  101. tar_healgasetc.attribute("ref") = "";
  102. //전산장애
  103. ipt_handcapgenrplce.disabled = true;
  104. cmb_handcaphandcaptermcd.disabled = true;
  105. tar_handcapetcreptcnts.disabled = true;
  106. ipt_handcapgenrplce.attribute("ref") = "";
  107. cmb_handcaphandcaptermcd.attribute("ref") = "";
  108. tar_handcapetcreptcnts.attribute("ref") = "";
  109. //도난
  110. ipt_lossitem.disabled = true;
  111. cmb_lossinstcd.disabled = true;
  112. tar_losetcreptcnts.disabled = true;
  113. ipt_lossitem.attribute("ref") = "";
  114. cmb_lossinstcd.attribute("ref") = "";
  115. tar_losetcreptcnts.attribute("ref") = "";
  116. //탈원
  117. cmb_breakouttranyn.disabled = true;
  118. ipt_breakouttrannotoccrplce.disabled = true;
  119. tar_breakoutetcreptcnts.disabled = true;
  120. cmb_breakouttranyn.attribute("ref") = "";
  121. ipt_breakouttrannotoccrplce.attribute("ref") = "";
  122. tar_breakoutetcreptcnts.attribute("ref") = "";
  123. //폭력/난동/성폭력
  124. cmb_assaultactpsn.disabled = true;
  125. cmb_assaultlosspsn.disabled = true;
  126. tar_assaultetcreptcnts.disabled = true;
  127. ipt_actpnm.disabled = true;
  128. ipt_losspnm.disabled = true;
  129. cmb_assaultactpsn.attribute("ref") = "";
  130. cmb_assaultlosspsn.attribute("ref") = "";
  131. tar_assaultetcreptcnts.attribute("ref") = "";
  132. ipt_actpnm.attribute("ref") = "";
  133. ipt_losspnm.attribute("ref") = "";
  134. //기타
  135. ipt_genrplce.disabled = true;
  136. tar_etcreptcnts.disabled = true;
  137. ipt_genrplce.attribute("ref") = "";
  138. tar_etcreptcnts.attribute("ref") = "";
  139. }
  140. if(mdl == "02"){ //의료가스/의료전기
  141. //화재
  142. ipt_firegenrplce.disabled = true;
  143. cmb_fireinstcd.disabled = true;
  144. ipt_firelosscnt.disabled = true;
  145. chk_firelossyn.disabled = true;
  146. tar_fireetcreptcnts.disabled = true;
  147. ipt_firegenrplce.attribute("ref") = "";
  148. cmb_fireinstcd.attribute("ref") = "";
  149. ipt_firelosscnt.attribute("ref") = "";
  150. chk_firelossyn.attribute("ref") = "";
  151. tar_fireetcreptcnts.attribute("ref") = "";
  152. //의료가스/의료전기
  153. ipt_healgasgenrplce.disabled = false;
  154. cmb_healgaslocktmcd.disabled = false;
  155. ipt_healgaslockmetccnts.disabled = false;
  156. chk_healgaschkkind.disabled = false;
  157. chk_healgaspatlossyn.disabled = false;
  158. tar_healgasetc.disabled = false;
  159. ipt_healgasgenrplce.attribute("ref") = "/root/main/cond/genrplce";
  160. cmb_healgaslocktmcd.attribute("ref") = "/root/main/cond/locktmcd";
  161. ipt_healgaslockmetccnts.attribute("ref") = "/root/main/cond/locktmetccnts";
  162. chk_healgaschkkind.attribute("ref") = "/root/main/cond/chkkind";
  163. chk_healgaspatlossyn.attribute("ref") = "/root/main/cond/patlossyn";
  164. tar_healgasetc.attribute("ref") = "/root/main/cond/etcreptcnts";
  165. //전산장애
  166. ipt_handcapgenrplce.disabled = true;
  167. cmb_handcaphandcaptermcd.disabled = true;
  168. tar_handcapetcreptcnts.disabled = true;
  169. ipt_handcapgenrplce.attribute("ref") = "";
  170. cmb_handcaphandcaptermcd.attribute("ref") = "";
  171. tar_handcapetcreptcnts.attribute("ref") = "";
  172. //도난
  173. ipt_lossitem.disabled = true;
  174. cmb_lossinstcd.disabled = true;
  175. tar_losetcreptcnts.disabled = true;
  176. ipt_lossitem.attribute("ref") = "";
  177. cmb_lossinstcd.attribute("ref") = "";
  178. tar_losetcreptcnts.attribute("ref") = "";
  179. //탈원
  180. cmb_breakouttranyn.disabled = true;
  181. ipt_breakouttrannotoccrplce.disabled = true;
  182. tar_breakoutetcreptcnts.disabled = true;
  183. cmb_breakouttranyn.attribute("ref") = "";
  184. ipt_breakouttrannotoccrplce.attribute("ref") = "";
  185. tar_breakoutetcreptcnts.attribute("ref") = "";
  186. //폭력/난동/성폭력
  187. cmb_assaultactpsn.disabled = true;
  188. cmb_assaultlosspsn.disabled = true;
  189. tar_assaultetcreptcnts.disabled = true;
  190. cmb_assaultactpsn.attribute("ref") = "";
  191. cmb_assaultlosspsn.attribute("ref") = "";
  192. tar_assaultetcreptcnts.attribute("ref") = "";
  193. //기타
  194. ipt_genrplce.disabled = true;
  195. tar_etcreptcnts.disabled = true;
  196. ipt_genrplce.attribute("ref") = "";
  197. tar_etcreptcnts.attribute("ref") = "";
  198. }
  199. if(mdl == "03"){ //전산장애
  200. //화재
  201. ipt_firegenrplce.disabled = true;
  202. cmb_fireinstcd.disabled = true;
  203. ipt_firelosscnt.disabled = true;
  204. chk_firelossyn.disabled = true;
  205. tar_fireetcreptcnts.disabled = true;
  206. ipt_firegenrplce.attribute("ref") = "";
  207. cmb_fireinstcd.attribute("ref") = "";
  208. ipt_firelosscnt.attribute("ref") = "";
  209. chk_firelossyn.attribute("ref") = "";
  210. tar_fireetcreptcnts.attribute("ref") = "";
  211. //의료가스/의료전기
  212. ipt_healgasgenrplce.disabled = true;
  213. cmb_healgaslocktmcd.disabled = true;
  214. ipt_healgaslockmetccnts.disabled = true;
  215. chk_healgaschkkind.disabled = true;
  216. chk_healgaspatlossyn.disabled = true;
  217. tar_healgasetc.disabled = true;
  218. ipt_healgasgenrplce.attribute("ref") = "";
  219. cmb_healgaslocktmcd.attribute("ref") = "";
  220. ipt_healgaslockmetccnts.attribute("ref") = "";
  221. chk_healgaschkkind.attribute("ref") = "";
  222. chk_healgaspatlossyn.attribute("ref") = "";
  223. tar_healgasetc.attribute("ref") = "";
  224. //전산장애
  225. ipt_handcapgenrplce.disabled = false;
  226. cmb_handcaphandcaptermcd.disabled = false;
  227. tar_handcapetcreptcnts.disabled = false;
  228. ipt_handcapgenrplce.attribute("ref") = "/root/main/cond/genrplce";
  229. cmb_handcaphandcaptermcd.attribute("ref") = "/root/main/cond/handcaptermcd";
  230. tar_handcapetcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
  231. //도난
  232. ipt_lossitem.disabled = true;
  233. cmb_lossinstcd.disabled = true;
  234. tar_losetcreptcnts.disabled = true;
  235. ipt_lossitem.attribute("ref") = "";
  236. cmb_lossinstcd.attribute("ref") = "";
  237. tar_losetcreptcnts.attribute("ref") = "";
  238. //탈원
  239. cmb_breakouttranyn.disabled = true;
  240. ipt_breakouttrannotoccrplce.disabled = true;
  241. tar_breakoutetcreptcnts.disabled = true;
  242. cmb_breakouttranyn.attribute("ref") = "";
  243. ipt_breakouttrannotoccrplce.attribute("ref") = "";
  244. tar_breakoutetcreptcnts.attribute("ref") = "";
  245. //폭력/난동/성폭력
  246. cmb_assaultactpsn.disabled = true;
  247. cmb_assaultlosspsn.disabled = true;
  248. tar_assaultetcreptcnts.disabled = true;
  249. cmb_assaultactpsn.attribute("ref") = "";
  250. cmb_assaultlosspsn.attribute("ref") = "";
  251. tar_assaultetcreptcnts.attribute("ref") = "";
  252. //기타
  253. ipt_genrplce.disabled = true;
  254. tar_etcreptcnts.disabled = true;
  255. ipt_genrplce.attribute("ref") = "";
  256. tar_etcreptcnts.attribute("ref") = "";
  257. }
  258. if(mdl == "04"){ //도난
  259. //화재
  260. ipt_firegenrplce.disabled = true;
  261. cmb_fireinstcd.disabled = true;
  262. ipt_firelosscnt.disabled = true;
  263. chk_firelossyn.disabled = true;
  264. tar_fireetcreptcnts.disabled = true;
  265. ipt_firegenrplce.attribute("ref") = "";
  266. cmb_fireinstcd.attribute("ref") = "";
  267. ipt_firelosscnt.attribute("ref") = "";
  268. chk_firelossyn.attribute("ref") = "";
  269. tar_fireetcreptcnts.attribute("ref") = "";
  270. //의료가스/의료전기
  271. ipt_healgasgenrplce.disabled = true;
  272. cmb_healgaslocktmcd.disabled = true;
  273. ipt_healgaslockmetccnts.disabled = true;
  274. chk_healgaschkkind.disabled = true;
  275. chk_healgaspatlossyn.disabled = true;
  276. tar_healgasetc.disabled = true;
  277. ipt_healgasgenrplce.attribute("ref") = "";
  278. cmb_healgaslocktmcd.attribute("ref") = "";
  279. ipt_healgaslockmetccnts.attribute("ref") = "";
  280. chk_healgaschkkind.attribute("ref") = "";
  281. chk_healgaspatlossyn.attribute("ref") = "";
  282. tar_healgasetc.attribute("ref") = "";
  283. //전산장애
  284. ipt_handcapgenrplce.disabled = true;
  285. cmb_handcaphandcaptermcd.disabled = true;
  286. tar_handcapetcreptcnts.disabled = true;
  287. ipt_handcapgenrplce.attribute("ref") = "";
  288. cmb_handcaphandcaptermcd.attribute("ref") = "";
  289. tar_handcapetcreptcnts.attribute("ref") = "";
  290. //도난
  291. ipt_lossitem.disabled = false;
  292. cmb_lossinstcd.disabled = false;
  293. tar_losetcreptcnts.disabled = false;
  294. ipt_lossitem.attribute("ref") = "/root/main/cond/lossitem";
  295. cmb_lossinstcd.attribute("ref") = "/root/main/cond/tretinstcd";
  296. tar_losetcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
  297. //탈원
  298. cmb_breakouttranyn.disabled = true;
  299. ipt_breakouttrannotoccrplce.disabled = true;
  300. tar_breakoutetcreptcnts.disabled = true;
  301. cmb_breakouttranyn.attribute("ref") = "";
  302. ipt_breakouttrannotoccrplce.attribute("ref") = "";
  303. tar_breakoutetcreptcnts.attribute("ref") = "";
  304. //폭력/난동/성폭력
  305. cmb_assaultactpsn.disabled = true;
  306. cmb_assaultlosspsn.disabled = true;
  307. tar_assaultetcreptcnts.disabled = true;
  308. cmb_assaultactpsn.attribute("ref") = "";
  309. cmb_assaultlosspsn.attribute("ref") = "";
  310. tar_assaultetcreptcnts.attribute("ref") = "";
  311. //기타
  312. ipt_genrplce.disabled = true;
  313. tar_etcreptcnts.disabled = true;
  314. ipt_genrplce.attribute("ref") = "";
  315. tar_etcreptcnts.attribute("ref") = "";
  316. }
  317. if(mdl == "05"){ //탈원
  318. //화재
  319. ipt_firegenrplce.disabled = true;
  320. cmb_fireinstcd.disabled = true;
  321. ipt_firelosscnt.disabled = true;
  322. chk_firelossyn.disabled = true;
  323. tar_fireetcreptcnts.disabled = true;
  324. ipt_firegenrplce.attribute("ref") = "";
  325. cmb_fireinstcd.attribute("ref") = "";
  326. ipt_firelosscnt.attribute("ref") = "";
  327. chk_firelossyn.attribute("ref") = "";
  328. tar_fireetcreptcnts.attribute("ref") = "";
  329. //의료가스/의료전기
  330. ipt_healgasgenrplce.disabled = true;
  331. cmb_healgaslocktmcd.disabled = true;
  332. ipt_healgaslockmetccnts.disabled = true;
  333. chk_healgaschkkind.disabled = true;
  334. chk_healgaspatlossyn.disabled = true;
  335. tar_healgasetc.disabled = true;
  336. ipt_healgasgenrplce.attribute("ref") = "";
  337. cmb_healgaslocktmcd.attribute("ref") = "";
  338. ipt_healgaslockmetccnts.attribute("ref") = "";
  339. chk_healgaschkkind.attribute("ref") = "";
  340. chk_healgaspatlossyn.attribute("ref") = "";
  341. tar_healgasetc.attribute("ref") = "";
  342. //전산장애
  343. ipt_handcapgenrplce.disabled = true;
  344. cmb_handcaphandcaptermcd.disabled = true;
  345. tar_handcapetcreptcnts.disabled = true;
  346. ipt_handcapgenrplce.attribute("ref") = "";
  347. cmb_handcaphandcaptermcd.attribute("ref") = "";
  348. tar_handcapetcreptcnts.attribute("ref") = "";
  349. //도난
  350. ipt_lossitem.disabled = true;
  351. cmb_lossinstcd.disabled = true;
  352. tar_losetcreptcnts.disabled = true;
  353. ipt_lossitem.attribute("ref") = "";
  354. cmb_lossinstcd.attribute("ref") = "";
  355. tar_losetcreptcnts.attribute("ref") = "";
  356. //탈원
  357. cmb_breakouttranyn.disabled = false;
  358. //ipt_breakouttrannotoccrplce.disabled = false;
  359. tar_breakoutetcreptcnts.disabled = false;
  360. cmb_breakouttranyn.attribute("ref") = "/root/main/cond/tranyn";
  361. ipt_breakouttrannotoccrplce.attribute("ref") = "/root/main/cond/trannotoccrplce";
  362. tar_breakoutetcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
  363. //폭력/난동/성폭력
  364. cmb_assaultactpsn.disabled = true;
  365. cmb_assaultlosspsn.disabled = true;
  366. tar_assaultetcreptcnts.disabled = true;
  367. cmb_assaultactpsn.attribute("ref") = "";
  368. cmb_assaultlosspsn.attribute("ref") = "";
  369. tar_assaultetcreptcnts.attribute("ref") = "";
  370. //기타
  371. ipt_genrplce.disabled = true;
  372. tar_etcreptcnts.disabled = true;
  373. ipt_genrplce.attribute("ref") = "";
  374. tar_etcreptcnts.attribute("ref") = "";
  375. }
  376. if(mdl == "06"){ //폭력/난동/성폭력
  377. //화재
  378. ipt_firegenrplce.disabled = true;
  379. cmb_fireinstcd.disabled = true;
  380. ipt_firelosscnt.disabled = true;
  381. chk_firelossyn.disabled = true;
  382. tar_fireetcreptcnts.disabled = true;
  383. ipt_firegenrplce.attribute("ref") = "";
  384. cmb_fireinstcd.attribute("ref") = "";
  385. ipt_firelosscnt.attribute("ref") = "";
  386. chk_firelossyn.attribute("ref") = "";
  387. tar_fireetcreptcnts.attribute("ref") = "";
  388. //의료가스/의료전기
  389. ipt_healgasgenrplce.disabled = true;
  390. cmb_healgaslocktmcd.disabled = true;
  391. ipt_healgaslockmetccnts.disabled = true;
  392. chk_healgaschkkind.disabled = true;
  393. chk_healgaspatlossyn.disabled = true;
  394. tar_healgasetc.disabled = true;
  395. ipt_healgasgenrplce.attribute("ref") = "";
  396. cmb_healgaslocktmcd.attribute("ref") = "";
  397. ipt_healgaslockmetccnts.attribute("ref") = "";
  398. chk_healgaschkkind.attribute("ref") = "";
  399. chk_healgaspatlossyn.attribute("ref") = "";
  400. tar_healgasetc.attribute("ref") = "";
  401. //전산장애
  402. ipt_handcapgenrplce.disabled = true;
  403. cmb_handcaphandcaptermcd.disabled = true;
  404. tar_handcapetcreptcnts.disabled = true;
  405. ipt_handcapgenrplce.attribute("ref") = "";
  406. cmb_handcaphandcaptermcd.attribute("ref") = "";
  407. tar_handcapetcreptcnts.attribute("ref") = "";
  408. //도난
  409. ipt_lossitem.disabled = true;
  410. cmb_lossinstcd.disabled = true;
  411. tar_losetcreptcnts.disabled = true;
  412. ipt_lossitem.attribute("ref") = "";
  413. cmb_lossinstcd.attribute("ref") = "";
  414. tar_losetcreptcnts.attribute("ref") = "";
  415. //탈원
  416. cmb_breakouttranyn.disabled = true;
  417. ipt_breakouttrannotoccrplce.disabled = true;
  418. tar_breakoutetcreptcnts.disabled = true;
  419. cmb_breakouttranyn.attribute("ref") = "";
  420. ipt_breakouttrannotoccrplce.attribute("ref") = "";
  421. tar_breakoutetcreptcnts.attribute("ref") = "";
  422. //폭력/난동/성폭력
  423. cmb_assaultactpsn.disabled = false;
  424. cmb_assaultlosspsn.disabled = false;
  425. tar_assaultetcreptcnts.disabled = false;
  426. cmb_assaultactpsn.attribute("ref") = "/root/main/cond/actpsn";
  427. cmb_assaultlosspsn.attribute("ref") = "/root/main/cond/losspsn";
  428. tar_assaultetcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
  429. ipt_actpnm.attribute("ref") = "/root/main/cond/actpid";
  430. ipt_losspnm.attribute("ref") = "/root/main/cond/losspid";
  431. //기타
  432. ipt_genrplce.disabled = true;
  433. tar_etcreptcnts.disabled = true;
  434. ipt_genrplce.attribute("ref") = "";
  435. tar_etcreptcnts.attribute("ref") = "";
  436. }
  437. if(mdl == "07"){ //기타
  438. //화재
  439. ipt_firegenrplce.disabled = true;
  440. cmb_fireinstcd.disabled = true;
  441. ipt_firelosscnt.disabled = true;
  442. chk_firelossyn.disabled = true;
  443. tar_fireetcreptcnts.disabled = true;
  444. ipt_firegenrplce.attribute("ref") = "";
  445. cmb_fireinstcd.attribute("ref") = "";
  446. ipt_firelosscnt.attribute("ref") = "";
  447. chk_firelossyn.attribute("ref") = "";
  448. tar_fireetcreptcnts.attribute("ref") = "";
  449. //의료가스/의료전기
  450. ipt_healgasgenrplce.disabled = true;
  451. cmb_healgaslocktmcd.disabled = true;
  452. ipt_healgaslockmetccnts.disabled = true;
  453. chk_healgaschkkind.disabled = true;
  454. chk_healgaspatlossyn.disabled = true;
  455. tar_healgasetc.disabled = true;
  456. ipt_healgasgenrplce.attribute("ref") = "";
  457. cmb_healgaslocktmcd.attribute("ref") = "";
  458. ipt_healgaslockmetccnts.attribute("ref") = "";
  459. chk_healgaschkkind.attribute("ref") = "";
  460. chk_healgaspatlossyn.attribute("ref") = "";
  461. tar_healgasetc.attribute("ref") = "";
  462. //전산장애
  463. ipt_handcapgenrplce.disabled = true;
  464. cmb_handcaphandcaptermcd.disabled = true;
  465. tar_handcapetcreptcnts.disabled = true;
  466. ipt_handcapgenrplce.attribute("ref") = "";
  467. cmb_handcaphandcaptermcd.attribute("ref") = "";
  468. tar_handcapetcreptcnts.attribute("ref") = "";
  469. //도난
  470. ipt_lossitem.disabled = true;
  471. cmb_lossinstcd.disabled = true;
  472. tar_losetcreptcnts.disabled = true;
  473. ipt_lossitem.attribute("ref") = "";
  474. cmb_lossinstcd.attribute("ref") = "";
  475. tar_losetcreptcnts.attribute("ref") = "";
  476. //탈원
  477. cmb_breakouttranyn.disabled = true;
  478. ipt_breakouttrannotoccrplce.disabled = true;
  479. tar_breakoutetcreptcnts.disabled = true;
  480. cmb_breakouttranyn.attribute("ref") = "";
  481. ipt_breakouttrannotoccrplce.attribute("ref") = "";
  482. tar_breakoutetcreptcnts.attribute("ref") = "";
  483. //폭력/난동/성폭력
  484. cmb_assaultactpsn.disabled = true;
  485. cmb_assaultlosspsn.disabled = true;
  486. tar_assaultetcreptcnts.disabled = true;
  487. cmb_assaultactpsn.attribute("ref") = "";
  488. cmb_assaultlosspsn.attribute("ref") = "";
  489. tar_assaultetcreptcnts.attribute("ref") = "";
  490. //기타
  491. ipt_genrplce.disabled = false;
  492. tar_etcreptcnts.disabled = false;
  493. ipt_genrplce.attribute("ref") = "/root/main/cond/genrplce";
  494. tar_etcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
  495. }
  496. model.refresh();
  497. }
  498. /**
  499. * @---------------------------------------------------
  500. * @desc : 필수입력 콘트롤에 값이 입력되어있는지 체크
  501. * @param :
  502. * @return : true or false
  503. * @---------------------------------------------------
  504. */
  505. function fDetlCheck(){
  506. var mdl = parent.model.getValue("/root/main/condition/mdl")
  507. if(mdl == "01"){ //화재
  508. if(!isRequiredControls("ipt_firegenrplce", "cmb_fireinstcd", "ipt_firelosscnt")){
  509. return false;
  510. }
  511. }
  512. if(mdl == "02"){ //의료가스/의료전기
  513. if(!isRequiredControls("ipt_healgasgenrplce", "cmb_healgaslocktmcd", "chk_healgaschkkind", "chk_healgaspatlossyn")){
  514. return false;
  515. }
  516. var locktmcd = model.getValue("/root/main/cond/locktmcd");
  517. if(locktmcd == "04"){
  518. if(!isRequiredControls("ipt_healgaslockmetccnts")){
  519. return false;
  520. }
  521. }
  522. }
  523. if(mdl == "03"){ //전산장애
  524. if(!isRequiredControls("ipt_handcapgenrplce", "cmb_handcaphandcaptermcd")){
  525. return false;
  526. }
  527. }
  528. if(mdl == "04"){ //도난
  529. if(!isRequiredControls("ipt_lossitem", "cmb_lossinstcd")){
  530. return false;
  531. }
  532. }
  533. if(mdl == "05"){ //탈원
  534. if(!isRequiredControls("cmb_breakouttranyn")){
  535. return false;
  536. }
  537. }
  538. if(mdl == "06"){ //폭력/난동/성폭력
  539. if(!isRequiredControls("cmb_assaultactpsn", "cmb_assaultlosspsn")){
  540. return false;
  541. }
  542. var actpid = model.getValue("/root/main/cond/actpid");
  543. var actpnm = model.getValue("/root/tmp/actpnm");
  544. if(actpid != ""){
  545. if(actpnm == ""){
  546. messageBox("환자 ID가 조회되지 ", "E007");
  547. return false;
  548. }
  549. }
  550. var losspid = model.getValue("/root/main/cond/losspid");
  551. var losspnm = model.getValue("/root/tmp/losspnm");
  552. if(losspid != ""){
  553. if(losspnm == ""){
  554. messageBox("환자 ID가 조회되지 ", "E007");
  555. return false;
  556. }
  557. }
  558. }
  559. if(mdl == "07"){ //기타
  560. if(!isRequiredControls("ipt_genrplce")){
  561. return false;
  562. }
  563. }
  564. return true;
  565. }