SMMQR00800.xjs 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[/**
  3. * @---------------------------------------------------
  4. * @desc : 비임상 조회시 기본정보 setting
  5. * @param :
  6. * @return :
  7. * @---------------------------------------------------
  8. */
  9. function fInitialize_00800(){
  10. var arrParam = [{dsNm: "ds_init_fire_suprinst_M0438", cdGrpId: "M0438"}
  11. ,{dsNm: "ds_init_healcaregas_brktm_M0439", cdGrpId: "M0439"}
  12. ,{dsNm: "ds_init_handcaptermcd_M0440", cdGrpId: "M0440"}
  13. ,{dsNm: "ds_init_loosinstcd_M0444", cdGrpId: "M0444"}
  14. ,{dsNm: "ds_init_actpsn_M0441", cdGrpId: "M0441"}
  15. ,{dsNm: "ds_init_losspsn_M0442", cdGrpId: "M0442"}]
  16. appf_getCodeList(arrParam);
  17. //trace(ds_main_cond.saveXML());
  18. if( !utlf_isNull(ds_main_condition.getColumn(0, "acptno")) ){
  19. ds_main_cond.setColumn(0, "genrplce", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "genrplce"));
  20. ds_main_cond.setColumn(0, "etcreptcnts", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "etcreptcnts"));
  21. ds_main_cond.setColumn(0, "tretinstcd", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "tretinstcd"));
  22. //trace(ds_main_cond.saveXML());
  23. var lossyn = ds_tmp_reptinfo_nonclincinfo.getColumn(0, "lossyn");
  24. ds_main_cond.setColumn(0, "lossyn", lossyn);
  25. if(lossyn == "N"){
  26. group1.ipt_firelosscnt.enable = false;
  27. }
  28. else{
  29. ds_main_cond.setColumn(0, "losscnt", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "losscnt"));
  30. group1.ipt_firelosscnt.enable = true;
  31. }
  32. var locktmcd = ds_tmp_reptinfo_nonclincinfo.getColumn(0, "locktmcd");
  33. ds_main_cond.setColumn(0, "locktmcd", locktmcd);
  34. if(locktmcd == "04"){
  35. ds_main_cond.setColumn(0, "locktmetccnts", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "locktmetccnts"));
  36. group1.ipt_healgaslockmetccnts.visible = true;
  37. }
  38. ds_main_cond.setColumn(0, "chkkind", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "chkkind"));
  39. ds_main_cond.setColumn(0, "patlossyn", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "patlossyn"));
  40. ds_main_cond.setColumn(0, "handcaptermcd", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "handcaptermcd"));
  41. ds_main_cond.setColumn(0, "lossitem", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "lossitem"));
  42. var tranyn = ds_tmp_reptinfo_nonclincinfo.getColumn(0, "tranyn");
  43. ds_main_cond.setColumn(0, "tranyn", tranyn);
  44. if(tranyn == "N"){
  45. ds_main_cond.setColumn(0, "trannotoccrplce", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "trannotoccrplce"));
  46. group1.ipt_breakouttrannotoccrplce.enable = true;
  47. }
  48. var actpsn = ds_tmp_reptinfo_nonclincinfo.getColumn(0, "actpsn");
  49. ds_main_cond.setColumn(0, "actpsn", actpsn);
  50. if(actpsn == "01"){
  51. ds_tmp.setColumn(0, "actpnm", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "actpnm"));
  52. ds_main_cond.setColumn(0, "actpid", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "actpid"));
  53. group1.ipt_actpnm.visible = true;
  54. group1.btn_actpnm.visible = true;
  55. group1.opt_actpnm.visible = true;
  56. }
  57. var losspsn = ds_tmp_reptinfo_nonclincinfo.getColumn(0, "losspsn");
  58. ds_main_cond.setColumn(0, "losspsn", losspsn);
  59. if(losspsn == "01"){
  60. ds_tmp.setColumn(0, "losspnm", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "losspnm"));
  61. ds_main_cond.setColumn(0, "losspid", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "losspid"));
  62. group1.ipt_losspnm.visible = true;
  63. group1.btn_losspnm.visible = true;
  64. group1.opt_losspnm.visible = true;
  65. }
  66. ds_main_cond.setColumn(0, "detlcnts", ds_main_condition.getColumn(0, "detlcnts"));
  67. ds_main_cond.setColumn(0, "detlcnts_why", ds_main_condition.getColumn(0, "detlcnts_why"));
  68. ds_main_cond.setColumn(0, "detlcnts_how", ds_main_condition.getColumn(0, "detlcnts_how"));
  69. }
  70. }
  71. /**
  72. * @---------------------------------------------------
  73. * @desc : 중분류에따라 control속성을 설정
  74. * @param : clincetckind 중분류
  75. * @return :
  76. * @---------------------------------------------------
  77. */
  78. function fSetDisabled(mdl){
  79. //ds_main_cond.reset();
  80. if(mdl == "01"){ // 화재
  81. //화재
  82. /*
  83. ds_main_cond_01.clear();
  84. ds_main_cond_02.clear();
  85. ds_main_cond_03.clear();
  86. ds_main_cond_04.clear();
  87. ds_main_cond_05.clear();
  88. ds_main_cond_06.clear();
  89. ds_main_cond_07.clear();
  90. dsf_copyDs(ds_main_cond_01,ds_main_cond,"replace");
  91. */
  92. //
  93. group1.ipt_firegenrplce.enable = true;
  94. group1.cmb_fireinstcd.enable = true;
  95. group1.ipt_firelosscnt.enable = true;
  96. group1.chk_firelossyn.enable = true;
  97. group1.tar_fireetcreptcnts.enable = true;
  98. var objBindItem = new BindItem();
  99. objBindItem.init("item107", "group1.ipt_firegenrplce", "value", "ds_main_cond", "genrplce");
  100. this.addChild("item107", objBindItem);
  101. objBindItem.bind();
  102. var objBindItem = new BindItem();
  103. objBindItem.init("item108", "group1.cmb_fireinstcd", "value", "ds_main_cond", "tretinstcd");
  104. this.addChild("item108", objBindItem);
  105. objBindItem.bind();
  106. var objBindItem = new BindItem();
  107. objBindItem.init("item9", "group1.ipt_firelosscnt", "value", "ds_main_cond", "losscnt");
  108. this.addChild("item9", objBindItem);
  109. objBindItem.bind();
  110. var objBindItem = new BindItem();
  111. objBindItem.init("item10", "group1.chk_firelossyn", "value", "ds_main_cond", "lossyn");
  112. this.addChild("item10", objBindItem);
  113. objBindItem.bind();
  114. var objBindItem = new BindItem();
  115. objBindItem.init("item11", "group1.tar_fireetcreptcnts", "value", "ds_main_cond", "etcreptcnts");
  116. this.addChild("item11", objBindItem);
  117. objBindItem.bind();
  118. //ds_main_cond.deleteAll();
  119. //sysf_trace(ds_main_cond_01.saveXML())
  120. //ds_main_cond.copyData(ds_main_cond_01);
  121. //ds_main_cond.clear();
  122. //dsf_copyDs(ds_main_cond,ds_main_cond_01,"replace");
  123. //의료가스/의료전기
  124. group1.ipt_healgasgenrplce.enable = false;
  125. group1.ipt_healgasgenrplce.value = "";
  126. group1.cmb_healgaslocktmcd.enable = false;
  127. group1.cmb_healgaslocktmcd.value = "";
  128. group1.ipt_healgaslockmetccnts.enable = false;
  129. group1.ipt_healgaslockmetccnts.value = "";
  130. group1.chk_healgaschkkind.setEnbale(false);
  131. group1.chk_healgaschkkind.background = "gainsboro";
  132. //group1.chk_healgaschkkind.value = "";
  133. group1.chk_healgaschkkind.setCheckAll(false);
  134. ds_main_cond.setColumn(0, "chkkind", "");
  135. group1.chk_healgaspatlossyn.setCheckAll(false);
  136. ds_main_cond.setColumn(0, "patlossyn", "");
  137. group1.chk_healgaspatlossyn.setEnbale(false);
  138. group1.chk_healgaspatlossyn.background = "gainsboro";
  139. //group1.chk_healgaspatlossyn.value = "";
  140. group1.tar_healgasetc.enable = false;
  141. group1.tar_healgasetc.value = "";
  142. this.removeChild("item12");
  143. this.removeChild("item13");
  144. this.removeChild("item14");
  145. this.removeChild("item15");
  146. //전산장애
  147. group1.ipt_handcapgenrplce.enable = false;
  148. group1.ipt_handcapgenrplce.value = "";
  149. group1.cmb_handcaphandcaptermcd.enable = false;
  150. group1.cmb_handcaphandcaptermcd.value = "";
  151. group1.tar_handcapetcreptcnts.enable = false;
  152. group1.tar_handcapetcreptcnts.value = "";
  153. this.removeChild("item16");
  154. this.removeChild("item17");
  155. this.removeChild("item18");
  156. //도난
  157. group1.ipt_lossitem.enable = false;
  158. group1.ipt_lossitem.value = "";
  159. group1.cmb_lossinstcd.enable = false;
  160. group1.cmb_lossinstcd.value = "";
  161. group1.tar_losetcreptcnts.enable = false;
  162. group1.tar_losetcreptcnts.value = "";
  163. this.removeChild("item19");
  164. this.removeChild("item20");
  165. this.removeChild("item21");
  166. //탈원
  167. group1.cmb_breakouttranyn.enable = false;
  168. group1.cmb_breakouttranyn.value = "";
  169. group1.ipt_breakouttrannotoccrplce.enable = false;
  170. group1.ipt_breakouttrannotoccrplce.value = "";
  171. group1.tar_breakoutetcreptcnts.enable = false;
  172. group1.tar_breakoutetcreptcnts.value = "";
  173. this.removeChild("item22");
  174. this.removeChild("item23");
  175. this.removeChild("item24");
  176. //폭력/난동/성폭력
  177. group1.cmb_assaultactpsn.enable = false;
  178. group1.cmb_assaultactpsn.value = "";
  179. group1.cmb_assaultlosspsn.enable = false;
  180. group1.cmb_assaultlosspsn.value = "";
  181. group1.tar_assaultetcreptcnts.enable = false;
  182. group1.tar_assaultetcreptcnts.value = "";
  183. group1.ipt_actpnm.enable = false;
  184. group1.ipt_actpnm.value = "";
  185. group1.ipt_losspnm.enable = false;
  186. group1.ipt_losspnm.value = "";
  187. this.removeChild("item25");
  188. this.removeChild("item27");
  189. this.removeChild("item29");
  190. this.removeChild("item26");
  191. this.removeChild("item28");
  192. //기타
  193. group1.ipt_genrplce.enable = false;
  194. group1.ipt_genrplce.value = "";
  195. group1.tar_etcreptcnts.enable = false;
  196. group1.tar_etcreptcnts.value = "";
  197. this.removeChild("item30");
  198. this.removeChild("item31");
  199. }
  200. if(mdl == "02"){ //의료가스/의료전기
  201. //화재
  202. /*
  203. ds_main_cond_01.clear();
  204. ds_main_cond_02.clear();
  205. ds_main_cond_03.clear();
  206. ds_main_cond_04.clear();
  207. ds_main_cond_05.clear();
  208. ds_main_cond_06.clear();
  209. ds_main_cond_07.clear();
  210. dsf_copyDs(ds_main_cond_02,ds_main_cond,"replace");
  211. */
  212. //
  213. group1.ipt_firegenrplce.enable = false;
  214. group1.ipt_firegenrplce.value = "";
  215. group1.cmb_fireinstcd.enable = false;
  216. group1.cmb_fireinstcd.value = "";
  217. group1.ipt_firelosscnt.enable = false;
  218. group1.ipt_firelosscnt.value = "";
  219. group1.chk_firelossyn.enable = false;
  220. group1.chk_firelossyn.value = "";
  221. group1.tar_fireetcreptcnts.enable = false;
  222. group1.tar_fireetcreptcnts.value = "";
  223. this.removeChild("item107");
  224. this.removeChild("item108");
  225. this.removeChild("item9");
  226. this.removeChild("item10");
  227. this.removeChild("item11");
  228. //의료가스/의료전기
  229. group1.ipt_healgasgenrplce.enable = true;
  230. group1.cmb_healgaslocktmcd.enable = true;
  231. group1.ipt_healgaslockmetccnts.enable = true;
  232. group1.chk_healgaschkkind.setEnbale(true);
  233. group1.chk_healgaschkkind.background = "";
  234. group1.chk_healgaspatlossyn.setEnbale(true);
  235. group1.chk_healgaspatlossyn.background = "";
  236. group1.tar_healgasetc.enable = true;
  237. var objBindItem = new BindItem();
  238. objBindItem.init("item12", "group1.ipt_healgasgenrplce", "value", "ds_main_cond", "genrplce");
  239. this.addChild("item12", objBindItem);
  240. objBindItem.bind();
  241. var objBindItem = new BindItem();
  242. objBindItem.init("item13", "group1.cmb_healgaslocktmcd", "value", "ds_main_cond", "locktmcd");
  243. this.addChild("item13", objBindItem);
  244. objBindItem.bind();
  245. var objBindItem = new BindItem();
  246. objBindItem.init("item14", "group1.ipt_healgaslockmetccnts", "value", "ds_main_cond", "locktmetccnts");
  247. this.addChild("item14", objBindItem);
  248. objBindItem.bind();
  249. var objBindItem = new BindItem();
  250. objBindItem.init("item15", "group1.tar_healgasetc", "value", "ds_main_cond", "etcreptcnts");
  251. this.addChild("item15", objBindItem);
  252. objBindItem.bind();
  253. //전산장애
  254. group1.ipt_handcapgenrplce.enable = false;
  255. group1.ipt_handcapgenrplce.value = "";
  256. group1.cmb_handcaphandcaptermcd.enable = false;
  257. group1.cmb_handcaphandcaptermcd.value = "";
  258. group1.tar_handcapetcreptcnts.enable = false;
  259. group1.tar_handcapetcreptcnts.value = "";
  260. this.removeChild("item16");
  261. this.removeChild("item17");
  262. this.removeChild("item18");
  263. //도난
  264. group1.ipt_lossitem.enable = false;
  265. group1.ipt_lossitem.value = "";
  266. group1.cmb_lossinstcd.enable = false;
  267. group1.cmb_lossinstcd.value = "";
  268. group1.tar_losetcreptcnts.enable = false;
  269. group1.tar_losetcreptcnts.value = "";
  270. this.removeChild("item19");
  271. this.removeChild("item20");
  272. this.removeChild("item21");
  273. //탈원
  274. group1.cmb_breakouttranyn.enable = false;
  275. group1.cmb_breakouttranyn.value = "";
  276. group1.ipt_breakouttrannotoccrplce.enable = false;
  277. group1.ipt_breakouttrannotoccrplce.value = "";
  278. group1.tar_breakoutetcreptcnts.enable = false;
  279. group1.tar_breakoutetcreptcnts.value = "";
  280. this.removeChild("item22");
  281. this.removeChild("item23");
  282. this.removeChild("item24");
  283. //폭력/난동/성폭력
  284. group1.cmb_assaultactpsn.enable = false;
  285. group1.cmb_assaultactpsn.value = "";
  286. group1.cmb_assaultlosspsn.enable = false;
  287. group1.cmb_assaultlosspsn.value = "";
  288. group1.tar_assaultetcreptcnts.enable = false;
  289. group1.tar_assaultetcreptcnts.value = "";
  290. this.removeChild("item25");
  291. this.removeChild("item27");
  292. this.removeChild("item29");
  293. //기타
  294. group1.ipt_genrplce.enable = false;
  295. group1.ipt_genrplce.value = "";
  296. group1.tar_etcreptcnts.enable = false;
  297. group1.tar_etcreptcnts.value = "";
  298. this.removeChild("item30");
  299. this.removeChild("item31");
  300. //ds_main_cond.reset();
  301. //ds_main_cond.copyData(ds_main_cond_02);
  302. }
  303. if(mdl == "03"){ //전산장애
  304. //화재
  305. /*
  306. ds_main_cond_01.clear();
  307. ds_main_cond_02.clear();
  308. ds_main_cond_03.clear();
  309. ds_main_cond_04.clear();
  310. ds_main_cond_05.clear();
  311. ds_main_cond_06.clear();
  312. ds_main_cond_07.clear();
  313. dsf_copyDs(ds_main_cond_03,ds_main_cond,"replace");
  314. */
  315. //
  316. group1.ipt_firegenrplce.enable = false;
  317. group1.ipt_firegenrplce.value = "";
  318. group1.cmb_fireinstcd.enable = false;
  319. group1.cmb_fireinstcd.value = "";
  320. group1.ipt_firelosscnt.enable = false;
  321. group1.ipt_firelosscnt.value = "";
  322. group1.chk_firelossyn.enable = false;
  323. group1.chk_firelossyn.value = "";
  324. group1.tar_fireetcreptcnts.enable = false;
  325. group1.tar_fireetcreptcnts.value = "";
  326. this.removeChild("item107");
  327. this.removeChild("item108");
  328. this.removeChild("item9");
  329. this.removeChild("item10");
  330. this.removeChild("item11");
  331. //의료가스/의료전기
  332. group1.ipt_healgasgenrplce.enable = false;
  333. group1.ipt_healgasgenrplce.value = "";
  334. group1.cmb_healgaslocktmcd.enable = false;
  335. group1.cmb_healgaslocktmcd.value = "";
  336. group1.ipt_healgaslockmetccnts.enable = false;
  337. group1.ipt_healgaslockmetccnts.value = "";
  338. group1.chk_healgaschkkind.setEnbale(false);
  339. group1.chk_healgaschkkind.background = "gainsboro";
  340. //group1.chk_healgaschkkind.value = "";
  341. group1.chk_healgaschkkind.setCheckAll(false);
  342. ds_main_cond.setColumn(0, "chkkind", "");
  343. group1.chk_healgaspatlossyn.setCheckAll(false);
  344. ds_main_cond.setColumn(0, "patlossyn", "");
  345. group1.chk_healgaspatlossyn.setEnbale(false);
  346. group1.chk_healgaspatlossyn.background = "gainsboro";
  347. //group1.chk_healgaspatlossyn.value = "";
  348. group1.tar_healgasetc.enable = false;
  349. group1.tar_healgasetc.value = "";
  350. this.removeChild("item12");
  351. this.removeChild("item13");
  352. this.removeChild("item14");
  353. this.removeChild("item15");
  354. //전산장애
  355. group1.ipt_handcapgenrplce.enable = true;
  356. group1.cmb_handcaphandcaptermcd.enable = true;
  357. group1.tar_handcapetcreptcnts.enable = true;
  358. var objBindItem = new BindItem();
  359. objBindItem.init("item16", "group1.ipt_handcapgenrplce", "value", "ds_main_cond", "genrplce");
  360. this.addChild("item16", objBindItem);
  361. objBindItem.bind();
  362. var objBindItem = new BindItem();
  363. objBindItem.init("item17", "group1.cmb_handcaphandcaptermcd", "value", "ds_main_cond", "handcaptermcd");
  364. this.addChild("item17", objBindItem);
  365. objBindItem.bind();
  366. var objBindItem = new BindItem();
  367. objBindItem.init("item18", "group1.tar_handcapetcreptcnts", "value", "ds_main_cond", "etcreptcnts");
  368. this.addChild("item18", objBindItem);
  369. objBindItem.bind();
  370. //도난
  371. group1.ipt_lossitem.enable = false;
  372. group1.ipt_lossitem.value = "";
  373. group1.cmb_lossinstcd.enable = false;
  374. group1.cmb_lossinstcd.value = "";
  375. group1.tar_losetcreptcnts.enable = false;
  376. group1.tar_losetcreptcnts.value = "";
  377. this.removeChild("item19");
  378. this.removeChild("item20");
  379. this.removeChild("item21");
  380. //탈원
  381. group1.cmb_breakouttranyn.enable = false;
  382. group1.cmb_breakouttranyn.value = "";
  383. group1.ipt_breakouttrannotoccrplce.enable = false;
  384. group1.ipt_breakouttrannotoccrplce.value = "";
  385. group1.tar_breakoutetcreptcnts.enable = false;
  386. group1.tar_breakoutetcreptcnts.value = "";
  387. this.removeChild("item22");
  388. this.removeChild("item23");
  389. this.removeChild("item24");
  390. //폭력/난동/성폭력
  391. group1.cmb_assaultactpsn.enable = false;
  392. group1.cmb_assaultactpsn.value = "";
  393. group1.cmb_assaultlosspsn.enable = false;
  394. group1.cmb_assaultlosspsn.value = "";
  395. group1.tar_assaultetcreptcnts.enable = false;
  396. group1.tar_assaultetcreptcnts.value = "";
  397. this.removeChild("item25");
  398. this.removeChild("item27");
  399. this.removeChild("item29");
  400. //기타
  401. group1.ipt_genrplce.enable = false;
  402. group1.ipt_genrplce.value = "";
  403. group1.tar_etcreptcnts.enable = false;
  404. group1.tar_etcreptcnts.value = "";
  405. this.removeChild("item30");
  406. this.removeChild("item31");
  407. //ds_main_cond.reset();
  408. //ds_main_cond.copyData(ds_main_cond_03);
  409. }
  410. if(mdl == "04"){ //도난
  411. //화재
  412. /*
  413. ds_main_cond_01.clear();
  414. ds_main_cond_02.clear();
  415. ds_main_cond_03.clear();
  416. ds_main_cond_04.clear();
  417. ds_main_cond_05.clear();
  418. ds_main_cond_06.clear();
  419. ds_main_cond_07.clear();
  420. dsf_copyDs(ds_main_cond_04,ds_main_cond,"replace");
  421. */
  422. //
  423. group1.ipt_firegenrplce.enable = false;
  424. group1.ipt_firegenrplce.value = "";
  425. group1.cmb_fireinstcd.enable = false;
  426. group1.cmb_fireinstcd.value = "";
  427. group1.ipt_firelosscnt.enable = false;
  428. group1.ipt_firelosscnt.value = "";
  429. group1.chk_firelossyn.enable = false;
  430. group1.chk_firelossyn.value = "";
  431. group1.tar_fireetcreptcnts.enable = false;
  432. group1.tar_fireetcreptcnts.value = "";
  433. this.removeChild("item107");
  434. this.removeChild("item108");
  435. this.removeChild("item9");
  436. this.removeChild("item10");
  437. this.removeChild("item11");
  438. //의료가스/의료전기
  439. group1.ipt_healgasgenrplce.enable = false;
  440. group1.ipt_healgasgenrplce.value = "";
  441. group1.cmb_healgaslocktmcd.enable = false;
  442. group1.cmb_healgaslocktmcd.value = "";
  443. group1.ipt_healgaslockmetccnts.enable = false;
  444. group1.ipt_healgaslockmetccnts.value = "";
  445. group1.chk_healgaschkkind.setEnbale(false);
  446. group1.chk_healgaschkkind.background = "gainsboro";
  447. //group1.chk_healgaschkkind.value = "";
  448. group1.chk_healgaschkkind.setCheckAll(false);
  449. ds_main_cond.setColumn(0, "chkkind", "");
  450. group1.chk_healgaspatlossyn.setCheckAll(false);
  451. ds_main_cond.setColumn(0, "patlossyn", "");
  452. group1.chk_healgaspatlossyn.setEnbale(false);
  453. group1.chk_healgaspatlossyn.background = "gainsboro";
  454. //group1.chk_healgaspatlossyn.value = "";
  455. group1.tar_healgasetc.enable = false;
  456. group1.tar_healgasetc.value = "";
  457. this.removeChild("item12");
  458. this.removeChild("item13");
  459. this.removeChild("item14");
  460. this.removeChild("item15");
  461. //전산장애
  462. group1.ipt_handcapgenrplce.enable = false;
  463. group1.ipt_handcapgenrplce.value = "";
  464. group1.cmb_handcaphandcaptermcd.enable = false;
  465. group1.cmb_handcaphandcaptermcd.value = "";
  466. group1.tar_handcapetcreptcnts.enable = false;
  467. group1.tar_handcapetcreptcnts.value = "";
  468. this.removeChild("item16");
  469. this.removeChild("item17");
  470. this.removeChild("item18");
  471. //도난
  472. group1.ipt_lossitem.enable = true;
  473. group1.cmb_lossinstcd.enable = true;
  474. group1.tar_losetcreptcnts.enable = true;
  475. var objBindItem = new BindItem();
  476. objBindItem.init("item19", "group1.ipt_lossitem", "value", "ds_main_cond", "lossitem");
  477. this.addChild("item19", objBindItem);
  478. objBindItem.bind();
  479. var objBindItem = new BindItem();
  480. objBindItem.init("item20", "group1.cmb_lossinstcd", "value", "ds_main_cond", "tretinstcd");
  481. this.addChild("item20", objBindItem);
  482. objBindItem.bind();
  483. var objBindItem = new BindItem();
  484. objBindItem.init("item21", "group1.tar_losetcreptcnts", "value", "ds_main_cond", "etcreptcnts");
  485. this.addChild("item21", objBindItem);
  486. objBindItem.bind();
  487. //탈원
  488. group1.cmb_breakouttranyn.enable = false;
  489. group1.cmb_breakouttranyn.value = "";
  490. group1.ipt_breakouttrannotoccrplce.enable = false;
  491. group1.ipt_breakouttrannotoccrplce.value = "";
  492. group1.tar_breakoutetcreptcnts.enable = false;
  493. group1.tar_breakoutetcreptcnts.value = "";
  494. this.removeChild("item22");
  495. this.removeChild("item23");
  496. this.removeChild("item24");
  497. //폭력/난동/성폭력
  498. group1.cmb_assaultactpsn.enable = false;
  499. group1.cmb_assaultactpsn.value = "";
  500. group1.cmb_assaultlosspsn.enable = false;
  501. group1.cmb_assaultlosspsn.value = "";
  502. group1.tar_assaultetcreptcnts.enable = false;
  503. group1.tar_assaultetcreptcnts.value = "";
  504. this.removeChild("item25");
  505. this.removeChild("item27");
  506. this.removeChild("item29");
  507. //기타
  508. group1.ipt_genrplce.enable = false;
  509. group1.ipt_genrplce.value = "";
  510. group1.tar_etcreptcnts.enable = false;
  511. group1.tar_etcreptcnts.value = "";
  512. this.removeChild("item30");
  513. this.removeChild("item31");
  514. //ds_main_cond.reset();
  515. //ds_main_cond.copyData(ds_main_cond_04);
  516. }
  517. if(mdl == "05"){ //탈원
  518. //화재
  519. /*
  520. ds_main_cond_01.clear();
  521. ds_main_cond_02.clear();
  522. ds_main_cond_03.clear();
  523. ds_main_cond_04.clear();
  524. ds_main_cond_05.clear();
  525. ds_main_cond_06.clear();
  526. ds_main_cond_07.clear();
  527. dsf_copyDs(ds_main_cond_05,ds_main_cond,"replace");
  528. */
  529. //
  530. group1.ipt_firegenrplce.enable = false;
  531. group1.ipt_firegenrplce.value = "";
  532. group1.cmb_fireinstcd.enable = false;
  533. group1.cmb_fireinstcd.value = "";
  534. group1.ipt_firelosscnt.enable = false;
  535. group1.ipt_firelosscnt.value = "";
  536. group1.chk_firelossyn.enable = false;
  537. group1.chk_firelossyn.value = "";
  538. group1.tar_fireetcreptcnts.enable = false;
  539. group1.tar_fireetcreptcnts.value = "";
  540. this.removeChild("item107");
  541. this.removeChild("item108");
  542. this.removeChild("item9");
  543. this.removeChild("item10");
  544. this.removeChild("item11");
  545. //의료가스/의료전기
  546. group1.ipt_healgasgenrplce.enable = false;
  547. group1.ipt_healgasgenrplce.value = "";
  548. group1.cmb_healgaslocktmcd.enable = false;
  549. group1.cmb_healgaslocktmcd.value = "";
  550. group1.ipt_healgaslockmetccnts.enable = false;
  551. group1.ipt_healgaslockmetccnts.value = "";
  552. group1.chk_healgaschkkind.setEnbale(false);
  553. group1.chk_healgaschkkind.background = "gainsboro";
  554. //group1.chk_healgaschkkind.value = "";
  555. group1.chk_healgaschkkind.setCheckAll(false);
  556. ds_main_cond.setColumn(0, "chkkind", "");
  557. group1.chk_healgaspatlossyn.setCheckAll(false);
  558. ds_main_cond.setColumn(0, "patlossyn", "");
  559. group1.chk_healgaspatlossyn.setEnbale(false);
  560. group1.chk_healgaspatlossyn.background = "gainsboro";
  561. //group1.chk_healgaspatlossyn.value = "";
  562. group1.tar_healgasetc.enable = false;
  563. group1.tar_healgasetc.value = "";
  564. this.removeChild("item12");
  565. this.removeChild("item13");
  566. this.removeChild("item14");
  567. this.removeChild("item15");
  568. //전산장애
  569. group1.ipt_handcapgenrplce.enable = false;
  570. group1.ipt_handcapgenrplce.value = "";
  571. group1.cmb_handcaphandcaptermcd.enable = false;
  572. group1.cmb_handcaphandcaptermcd.value = "";
  573. group1.tar_handcapetcreptcnts.enable = false;
  574. group1.tar_handcapetcreptcnts.value = "";
  575. this.removeChild("item16");
  576. this.removeChild("item17");
  577. this.removeChild("item18");
  578. //도난
  579. group1.ipt_lossitem.enable = false;
  580. group1.ipt_lossitem.value = "";
  581. group1.cmb_lossinstcd.enable = false;
  582. group1.cmb_lossinstcd.value = "";
  583. group1.tar_losetcreptcnts.enable = false;
  584. group1.tar_losetcreptcnts.value = "";
  585. this.removeChild("item19");
  586. this.removeChild("item20");
  587. this.removeChild("item21");
  588. //탈원
  589. group1.cmb_breakouttranyn.enable = true;
  590. //ipt_breakouttrannotoccrplce.enable = true;
  591. group1.tar_breakoutetcreptcnts.enable = true;
  592. var objBindItem = new BindItem();
  593. objBindItem.init("item22", "group1.cmb_breakouttranyn", "value", "ds_main_cond", "tranyn");
  594. this.addChild("item22", objBindItem);
  595. objBindItem.bind();
  596. var objBindItem = new BindItem();
  597. objBindItem.init("item23", "group1.ipt_breakouttrannotoccrplce", "value", "ds_main_cond", "trannotoccrplce");
  598. this.addChild("item23", objBindItem);
  599. objBindItem.bind();
  600. var objBindItem = new BindItem();
  601. objBindItem.init("item24", "group1.tar_breakoutetcreptcnts", "value", "ds_main_cond", "etcreptcnts");
  602. this.addChild("item24", objBindItem);
  603. objBindItem.bind();
  604. //폭력/난동/성폭력
  605. group1.cmb_assaultactpsn.enable = false;
  606. group1.cmb_assaultactpsn.value = "";
  607. group1.cmb_assaultlosspsn.enable = false;
  608. group1.cmb_assaultlosspsn.value = "";
  609. group1.tar_assaultetcreptcnts.enable = false;
  610. group1.tar_assaultetcreptcnts.value = "";
  611. this.removeChild("item25");
  612. this.removeChild("item27");
  613. this.removeChild("item29");
  614. //기타
  615. group1.ipt_genrplce.enable = false;
  616. group1.ipt_genrplce.value = "";
  617. group1.tar_etcreptcnts.enable = false;
  618. group1.tar_etcreptcnts.value = "";
  619. this.removeChild("item30");
  620. this.removeChild("item31");
  621. //ds_main_cond.reset();
  622. //ds_main_cond.copyData(ds_main_cond_05);
  623. }
  624. if(mdl == "06"){ //폭력/난동/성폭력
  625. //화재
  626. /*
  627. ds_main_cond_01.clear();
  628. ds_main_cond_02.clear();
  629. ds_main_cond_03.clear();
  630. ds_main_cond_04.clear();
  631. ds_main_cond_05.clear();
  632. ds_main_cond_06.clear();
  633. ds_main_cond_07.clear();
  634. dsf_copyDs(ds_main_cond_06,ds_main_cond,"replace");
  635. */
  636. //
  637. group1.ipt_firegenrplce.enable = false;
  638. group1.ipt_firegenrplce.value = "";
  639. group1.cmb_fireinstcd.enable = false;
  640. group1.cmb_fireinstcd.value = "";
  641. group1.ipt_firelosscnt.enable = false;
  642. group1.ipt_firelosscnt.value = "";
  643. group1.chk_firelossyn.enable = false;
  644. group1.chk_firelossyn.value = "";
  645. group1.tar_fireetcreptcnts.enable = false;
  646. group1.tar_fireetcreptcnts.value = "";
  647. this.removeChild("item107");
  648. this.removeChild("item108");
  649. this.removeChild("item9");
  650. this.removeChild("item10");
  651. this.removeChild("item11");
  652. //의료가스/의료전기
  653. group1.ipt_healgasgenrplce.enable = false;
  654. group1.ipt_healgasgenrplce.value = "";
  655. group1.cmb_healgaslocktmcd.enable = false;
  656. group1.cmb_healgaslocktmcd.value = "";
  657. group1.ipt_healgaslockmetccnts.enable = false;
  658. group1.ipt_healgaslockmetccnts.value = "";
  659. group1.chk_healgaschkkind.setEnbale(false);
  660. group1.chk_healgaschkkind.background = "gainsboro";
  661. //group1.chk_healgaschkkind.value = "";
  662. group1.chk_healgaschkkind.setCheckAll(false);
  663. ds_main_cond.setColumn(0, "chkkind", "");
  664. group1.chk_healgaspatlossyn.setCheckAll(false);
  665. ds_main_cond.setColumn(0, "patlossyn", "");
  666. group1.chk_healgaspatlossyn.setEnbale(false);
  667. group1.chk_healgaspatlossyn.background = "gainsboro";
  668. //group1.chk_healgaspatlossyn.value = "";
  669. group1.tar_healgasetc.enable = false;
  670. group1.tar_healgasetc.value = "";
  671. this.removeChild("item12");
  672. this.removeChild("item13");
  673. this.removeChild("item14");
  674. this.removeChild("item15");
  675. //전산장애
  676. group1.ipt_handcapgenrplce.enable = false;
  677. group1.ipt_handcapgenrplce.value = "";
  678. group1.cmb_handcaphandcaptermcd.enable = false;
  679. group1.cmb_handcaphandcaptermcd.value = "";
  680. group1.tar_handcapetcreptcnts.enable = false;
  681. group1.tar_handcapetcreptcnts.value = "";
  682. this.removeChild("item16");
  683. this.removeChild("item17");
  684. this.removeChild("item18");
  685. //도난
  686. group1.ipt_lossitem.enable = false;
  687. group1.ipt_lossitem.value = "";
  688. group1.cmb_lossinstcd.enable = false;
  689. group1.cmb_lossinstcd.value = "";
  690. group1.tar_losetcreptcnts.enable = false;
  691. group1.tar_losetcreptcnts.value = "";
  692. this.removeChild("item19");
  693. this.removeChild("item20");
  694. this.removeChild("item21");
  695. //탈원
  696. group1.cmb_breakouttranyn.enable = false;
  697. group1.cmb_breakouttranyn.value = "";
  698. group1.ipt_breakouttrannotoccrplce.enable = false;
  699. group1.ipt_breakouttrannotoccrplce.value = "";
  700. group1.tar_breakoutetcreptcnts.enable = false;
  701. group1.tar_breakoutetcreptcnts.value = "";
  702. this.removeChild("item22");
  703. this.removeChild("item23");
  704. this.removeChild("item24");
  705. //폭력/난동/성폭력
  706. group1.cmb_assaultactpsn.enable = true;
  707. group1.cmb_assaultlosspsn.enable = true;
  708. group1.tar_assaultetcreptcnts.enable = true;
  709. var objBindItem = new BindItem();
  710. objBindItem.init("item25", "group1.cmb_assaultactpsn", "value", "ds_main_cond", "actpsn");
  711. this.addChild("item25", objBindItem);
  712. objBindItem.bind();
  713. var objBindItem = new BindItem();
  714. objBindItem.init("item27", "group1.cmb_assaultlosspsn", "value", "ds_main_cond", "losspsn");
  715. this.addChild("item27", objBindItem);
  716. objBindItem.bind();
  717. var objBindItem = new BindItem();
  718. objBindItem.init("item29", "group1.tar_assaultetcreptcnts", "value", "ds_main_cond", "etcreptcnts");
  719. this.addChild("item29", objBindItem);
  720. objBindItem.bind();
  721. var objBindItem = new BindItem();
  722. objBindItem.init("item26", "group1.ipt_actpnm", "value", "ds_main_cond", "actpid");
  723. this.addChild("item26", objBindItem);
  724. objBindItem.bind();
  725. var objBindItem = new BindItem();
  726. objBindItem.init("item28", "group1.ipt_losspnm", "value", "ds_main_cond", "losspid");
  727. this.addChild("item28", objBindItem);
  728. objBindItem.bind();
  729. //기타
  730. group1.ipt_genrplce.enable = false;
  731. group1.ipt_genrplce.value = "";
  732. group1.tar_etcreptcnts.enable = false;
  733. group1.tar_etcreptcnts.value = "";
  734. this.removeChild("item30");
  735. this.removeChild("item31");
  736. //ds_main_cond.reset();
  737. //ds_main_cond.copyData(ds_main_cond_06);
  738. }
  739. if(mdl == "07"){ //기타
  740. //화재
  741. /*
  742. ds_main_cond_01.clear();
  743. ds_main_cond_02.clear();
  744. ds_main_cond_03.clear();
  745. ds_main_cond_04.clear();
  746. ds_main_cond_05.clear();
  747. ds_main_cond_06.clear();
  748. ds_main_cond_07.clear();
  749. dsf_copyDs(ds_main_cond_07,ds_main_cond,"replace");
  750. */
  751. //
  752. group1.ipt_firegenrplce.enable = false;
  753. group1.ipt_firegenrplce.value = "";
  754. group1.cmb_fireinstcd.enable = false;
  755. group1.cmb_fireinstcd.value = "";
  756. group1.ipt_firelosscnt.enable = false;
  757. group1.ipt_firelosscnt.value = "";
  758. group1.chk_firelossyn.enable = false;
  759. group1.chk_firelossyn.value = "";
  760. group1.tar_fireetcreptcnts.enable = false;
  761. group1.tar_fireetcreptcnts.value = "";
  762. this.removeChild("item107");
  763. this.removeChild("item108");
  764. this.removeChild("item9");
  765. this.removeChild("item10");
  766. this.removeChild("item11");
  767. //의료가스/의료전기
  768. group1.ipt_healgasgenrplce.enable = false;
  769. group1.ipt_healgasgenrplce.value = "";
  770. group1.cmb_healgaslocktmcd.enable = false;
  771. group1.cmb_healgaslocktmcd.value = "";
  772. group1.ipt_healgaslockmetccnts.enable = false;
  773. group1.ipt_healgaslockmetccnts.value = "";
  774. group1.chk_healgaschkkind.setEnbale(false);
  775. group1.chk_healgaschkkind.background = "gainsboro";
  776. //group1.chk_healgaschkkind.value = "";
  777. group1.chk_healgaschkkind.setCheckAll(false);
  778. ds_main_cond.setColumn(0, "chkkind", "");
  779. group1.chk_healgaspatlossyn.setCheckAll(false);
  780. ds_main_cond.setColumn(0, "patlossyn", "");
  781. group1.chk_healgaspatlossyn.setEnbale(false);
  782. group1.chk_healgaspatlossyn.background = "gainsboro";
  783. //group1.chk_healgaspatlossyn.value = "";
  784. group1.tar_healgasetc.enable = false;
  785. group1.tar_healgasetc.value = "";
  786. this.removeChild("item12");
  787. this.removeChild("item13");
  788. this.removeChild("item14");
  789. this.removeChild("item15");
  790. //전산장애
  791. group1.ipt_handcapgenrplce.enable = false;
  792. group1.ipt_handcapgenrplce.value = "";
  793. group1.cmb_handcaphandcaptermcd.enable = false;
  794. group1.cmb_handcaphandcaptermcd.value = "";
  795. group1.tar_handcapetcreptcnts.enable = false;
  796. group1.tar_handcapetcreptcnts.value = "";
  797. this.removeChild("item16");
  798. this.removeChild("item17");
  799. this.removeChild("item18");
  800. //도난
  801. group1.ipt_lossitem.enable = false;
  802. group1.ipt_lossitem.value = "";
  803. group1.cmb_lossinstcd.enable = false;
  804. group1.cmb_lossinstcd.value = "";
  805. group1.tar_losetcreptcnts.enable = false;
  806. group1.tar_losetcreptcnts.value = "";
  807. this.removeChild("item19");
  808. this.removeChild("item20");
  809. this.removeChild("item21");
  810. //탈원
  811. group1.cmb_breakouttranyn.enable = false;
  812. group1.cmb_breakouttranyn.value = "";
  813. group1.ipt_breakouttrannotoccrplce.enable = false;
  814. group1.ipt_breakouttrannotoccrplce.value = "";
  815. group1.tar_breakoutetcreptcnts.enable = false;
  816. group1.tar_breakoutetcreptcnts.value = "";
  817. this.removeChild("item22");
  818. this.removeChild("item23");
  819. this.removeChild("item24");
  820. //폭력/난동/성폭력
  821. group1.cmb_assaultactpsn.enable = false;
  822. group1.cmb_assaultactpsn.value = "";
  823. group1.cmb_assaultlosspsn.enable = false;
  824. group1.cmb_assaultlosspsn.value = "";
  825. group1.tar_assaultetcreptcnts.enable = false;
  826. group1.tar_assaultetcreptcnts.value = "";
  827. this.removeChild("item25");
  828. this.removeChild("item27");
  829. this.removeChild("item29");
  830. //기타
  831. group1.ipt_genrplce.enable = true;
  832. group1.tar_etcreptcnts.enable = true;
  833. var objBindItem = new BindItem();
  834. objBindItem.init("item30", "group1.ipt_genrplce", "value", "ds_main_cond", "genrplce");
  835. this.addChild("item30", objBindItem);
  836. objBindItem.bind();
  837. var objBindItem = new BindItem();
  838. objBindItem.init("item31", "group1.tar_etcreptcnts", "value", "ds_main_cond", "etcreptcnts");
  839. this.addChild("item31", objBindItem);
  840. objBindItem.bind();
  841. //ds_main_cond.clear();
  842. //dsf_copyDs(ds_main_cond,ds_main_cond_07,"replace");
  843. }
  844. }
  845. /**
  846. * @---------------------------------------------------
  847. * @desc : 필수입력 콘트롤에 값이 입력되어있는지 체크
  848. * @param :
  849. * @return : true or false
  850. * @---------------------------------------------------
  851. */
  852. function fDetlCheck(){
  853. var mdl = ds_main_condition.getColumn(0, "mdl");
  854. if(mdl == "01"){ //화재
  855. var arrCompId = new Array("group5.iviewer_rept.group1.ipt_firegenrplce", "group5.iviewer_rept.group1.cmb_fireinstcd", "group5.iviewer_rept.group1.ipt_firelosscnt");
  856. if( !frmf_isRequiredControls(arrCompId) ){
  857. return false;
  858. }
  859. }
  860. if(mdl == "02"){ //의료가스/의료전기
  861. var arrCompId = new Array("group5.iviewer_rept.group1.ipt_healgasgenrplce", "group5.iviewer_rept.group1.cmb_healgaslocktmcd");
  862. if( !frmf_isRequiredControls(arrCompId) ){
  863. return false;
  864. }
  865. if( utlf_isNull(ds_main_cond.getColumn(0, "chkkind")) ){
  866. sysf_messageBox("종류", "I003");
  867. return false;
  868. }
  869. if( utlf_isNull(ds_main_cond.getColumn(0, "patlossyn")) ){
  870. sysf_messageBox("환자피해 여부", "I003");
  871. return false;
  872. }
  873. var locktmcd = ds_main_cond.getColumn(0, "locktmcd");
  874. if(locktmcd == "04"){
  875. var arrCompId = new Array("group5.iviewer_rept.group1.ipt_healgaslockmetccnts");
  876. if( !frmf_isRequiredControls(arrCompId) ){
  877. return false;
  878. }
  879. }
  880. }
  881. if(mdl == "03"){ //전산장애
  882. var arrCompId = new Array("group5.iviewer_rept.group1.ipt_handcapgenrplce", "group5.iviewer_rept.group1.cmb_handcaphandcaptermcd");
  883. if( !frmf_isRequiredControls(arrCompId) ){
  884. return false;
  885. }
  886. }
  887. if(mdl == "04"){ //도난
  888. var arrCompId = new Array("group5.iviewer_rept.group1.ipt_lossitem", "group5.iviewer_rept.group1.cmb_lossinstcd");
  889. if( !frmf_isRequiredControls(arrCompId) ){
  890. return false;
  891. }
  892. }
  893. if(mdl == "05"){ //탈원
  894. var arrCompId = new Array("group5.iviewer_rept.group1.cmb_breakouttranyn");
  895. if( !frmf_isRequiredControls(arrCompId) ){
  896. return false;
  897. }
  898. }
  899. if(mdl == "06"){ //폭력/난동/성폭력
  900. var arrCompId = new Array("group5.iviewer_rept.group1.cmb_assaultactpsn", "group5.iviewer_rept.group1.cmb_assaultlosspsn");
  901. if( !frmf_isRequiredControls(arrCompId) ){
  902. return false;
  903. }
  904. var actpid = ds_main_cond.getColumn(0, "actpid");
  905. var actpnm = ds_tmp.getColumn(0, "actpnm");
  906. if( !utlf_isNull(actpid) ){
  907. if( utlf_isNull(actpnm) ){
  908. sysf_messageBox("환자 ID가 조회되지 ", "E007");
  909. return false;
  910. }
  911. }
  912. var losspid = ds_main_cond.getColumn(0, "losspid");
  913. var losspnm = ds_tmp.getColumn(0, "losspnm");
  914. if( !utlf_isNull(losspid) ){
  915. if( utlf_isNull(losspnm) ){
  916. sysf_messageBox("환자 ID가 조회되지 ", "E007");
  917. return false;
  918. }
  919. }
  920. }
  921. if(mdl == "07"){ //기타
  922. var arrCompId = new Array("group5.iviewer_rept.group1.ipt_genrplce");
  923. if( !frmf_isRequiredControls(arrCompId) ){
  924. return false;
  925. }
  926. }
  927. return true;
  928. }
  929. ]]></Script>