SMMQR03100_직원안전보고.xrw 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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>직원안전보고</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <state/>
  12. <reptid/>
  13. <reptnm/>
  14. <reptjobnm/>
  15. <reptjob/>
  16. <reptdutdeptnm/>
  17. <reptdutdept/>
  18. <reptcntctel/>
  19. <reptdutyearno/>
  20. <reptdivide>02</reptdivide>
  21. <trgtmanid/>
  22. <trgtmannm/>
  23. <trgtmanjobnm/>
  24. <trgtmanjob/>
  25. <trgtmandeptnm/>
  26. <trgtmandept/>
  27. <trgtmancntctel/>
  28. <trgtmanyearno/>
  29. <acptno/>
  30. <genrdt/>
  31. <genrdd/>
  32. <genrhh/>
  33. <genrmi/>
  34. <reptkind>01</reptkind>
  35. <reptgenrplce/>
  36. <huminjries/>
  37. <humjniricnt1/>
  38. <humjniricnt2/>
  39. <matrdamage/>
  40. <detlcnts/>
  41. <expsurnm/>
  42. <expsurbodyyn/>
  43. <expsursympyn/>
  44. <expsurproceqmtyn/>
  45. <expsurmermeasyn/>
  46. <expsurbody/>
  47. <expsursymp/>
  48. <expsurproceqmt/>
  49. <expsurmermeas/>
  50. <expsurdetl/>
  51. <discvdd/>
  52. <discvhh/>
  53. <discvmi/>
  54. </list>
  55. </main>
  56. <send>
  57. <reptinfo/>
  58. <userinfo/>
  59. </send>
  60. <tmp>
  61. <userinfo/>
  62. </tmp>
  63. <temp/>
  64. <text/>
  65. <init>
  66. <R0061list>
  67. <R0061>
  68. <cdid/>
  69. <cdnm/>
  70. </R0061>
  71. </R0061list>
  72. </init>
  73. </root>
  74. </instance>
  75. <script type="javascript">
  76. <![CDATA[
  77. var ano = "";
  78. var acptno = "";
  79. function init() {
  80. zbcfGetCodeList(new Array("R0061"), new Array("/root/init/R0061list"));
  81. if(!isNull(opener.javascript.getParameter("acptno"))){ //메뉴에서 open -> 신규, Popup -> 과거조회
  82. acptno = opener.javascript.getParameter("acptno");
  83. }
  84. model.setValue("/root/main/list/acptno", acptno);
  85. if( acptno == "" ){
  86. submit("TRMQR00100");
  87. model.setValue("/root/main/list/reptid", model.getValue("/root/main/userinfo/reptid"));
  88. model.setValue("/root/main/list/reptnm", model.getValue("/root/main/userinfo/reptnm"));
  89. model.setValue("/root/main/list/reptjob", model.getValue("/root/main/userinfo/reptjobkind")); //직종
  90. model.setValue("/root/main/list/reptjobnm", model.getValue("/root/main/userinfo/reptjobkindtext"));
  91. model.setValue("/root/main/list/reptdutdept", model.getValue("/root/main/userinfo/reptdutdept"));//근무부서
  92. model.setValue("/root/main/list/reptdutdeptnm", model.getValue("/root/main/userinfo/reptdutdepttext"));
  93. model.setValue("/root/main/list/reptcntctel", model.getValue("/root/main/userinfo/reptcntctel"));
  94. model.setValue("/root/main/list/reptdutyearno", model.getValue("/root/main/userinfo/reptdutyearno"));
  95. }else{
  96. model.makeValue("/root/send/acptno", acptno);
  97. submit("TRMQR03101");
  98. model.copyNode("/root/main/list","/root/temp/list");
  99. rdo_reptkind.dispatch("xforms-value-changed");
  100. rdo_expsurbodyyn.dispatch("xforms-value-changed");
  101. rdo_expsursympyn.dispatch("xforms-value-changed");
  102. rdo_expsurproceqmtyn.dispatch("xforms-value-changed");
  103. rdo_expsurmermeasyn.dispatch("xforms-value-changed");
  104. }
  105. var instcd = getUserInfo("dutplceinstcd");
  106. if( instcd == "032" ){
  107. caption29.visible = true;
  108. }
  109. model.refresh();
  110. }
  111. function fCheck(){
  112. if( model.getValue("/root/main/list/reptdivide") == "02"){ //제 3자 보고
  113. if( model.getValue("/root/main/list/trgtmanid") == ""){
  114. messageBox("대상자의 사번은","I003"); // 필수입력입니다.
  115. return true;
  116. }else if( model.getValue("/root/main/list/trgtmannm") == ""){
  117. messageBox("대상자의 성명은","I003");
  118. return true;
  119. }else if( model.getValue("/root/main/list/trgtmanjob") == ""){
  120. messageBox("대상자의 직종","I003");
  121. return true;
  122. }else if( model.getValue("/root/main/list/trgtmandeptnm") == ""){
  123. messageBox("대상자의 근무부서는","I003");
  124. return true;
  125. }else if( model.getValue("/root/main/list/trgtmancntctel") == ""){
  126. messageBox("대상자의 연락처는","I003");
  127. return true;
  128. }else if (model.getValue("/root/main/list/trgtmanyearno") == ""){
  129. messageBox("대상자의 근무년수는","I003");
  130. return true;
  131. }
  132. }
  133. if( model.getValue("/root/main/list/genrdd") == "" || model.getValue("/root/main/list/genrhh") == "" || model.getValue("/root/main/list/genrmi") == ""){
  134. messageBox("발생일시는","I003");
  135. return true;
  136. }
  137. //본원 발생일시 없음
  138. if(getUserInfo("dutplceinstcd") == '032'){
  139. if( model.getValue("/root/main/list/discvdd") == "" || model.getValue("/root/main/list/discvhh") == "" || model.getValue("/root/main/list/discvmi") == ""){
  140. messageBox("발견일시는","I003");
  141. return true;
  142. }
  143. }
  144. var huminjries = model.getValue("/root/main/list/huminjries");
  145. var humjniricnt1 = model.getValue("/root/main/list/humjniricnt1");
  146. var humjniricnt2 = model.getValue("/root/main/list/humjniricnt2");
  147. if( huminjries == "" && ( humjniricnt1 !="" || humjniricnt2 != "" ) ){
  148. messageBox("사망 또는 부상에 값이 있습니다. 해당란을","C002"); //선택하십시요.
  149. return true;
  150. }else if ( huminjries == "01" && humjniricnt1 =="" ){
  151. messageBox("사망 인원수를","C001"); // 입력하십시요.
  152. return true;
  153. }else if ( huminjries == "02" && humjniricnt2 =="" ){
  154. messageBox("부상 인원수를","C001");
  155. return true;
  156. }
  157. if( model.getValue("/root/main/list/reptkind") == ""){
  158. messageBox("문제의 종류는","I003");
  159. return true;
  160. }else if( model.getValue("/root/main/list/reptkind") == "02"){
  161. if( model.getValue("/root/main/list/expsurbodyyn") == ""){
  162. messageBox("노출시 신체접촉은","I003");
  163. return true;
  164. }else if( model.getValue("/root/main/list/expsurbodyyn") == "Y" && model.getValue("/root/main/list/expsurbody") == "" ){
  165. messageBox("노출시 신체접촉이 *예일 경우 접촉부위는","I003");
  166. return true;
  167. }
  168. if( model.getValue("/root/main/list/expsursympyn") == ""){
  169. messageBox("노출 후 증상은","I003");
  170. return true;
  171. }else if( model.getValue("/root/main/list/expsursympyn") == "Y" && model.getValue("/root/main/list/expsursymp") == "" ){
  172. messageBox("노출 후 증상이 *예일 경우 발생증상은","I003");
  173. return true;
  174. }
  175. if( model.getValue("/root/main/list/expsurproceqmtyn") == ""){
  176. messageBox("보호구착용은","I003");
  177. return true;
  178. }else if( model.getValue("/root/main/list/expsurproceqmtyn") == "Y" && model.getValue("/root/main/list/expsurproceqmt") == ""){
  179. messageBox("보호구착용이 *예일 경우 보호구명은","I003");
  180. return true;
  181. }
  182. if( model.getValue("/root/main/list/expsurmermeasyn") == ""){
  183. messageBox("노출에 따른 응급조치는","I003");
  184. return true;
  185. }else if( model.getValue("/root/main/list/expsurmermeasyn") == "Y" && model.getValue("/root/main/list/expsurmermeas") == "" ){
  186. messageBox("노출에 따른 응급조치가 *예일 경우 조치내용은","I003");
  187. return true;
  188. }
  189. if( model.getValue("/root/main/list/expsurdetl") == ""){
  190. messageBox("재발방지대책(개인의견기술)은","I003");
  191. return true;
  192. }
  193. }
  194. if( model.getValue("/root/main/list/reptgenrplce") == ""){
  195. messageBox("재해(발생)장소는","I003");
  196. return true;
  197. }
  198. if( model.getValue("/root/main/list/detlcnts") == ""){
  199. messageBox("상세기술내용은","I003");
  200. return true;
  201. }
  202. return false;
  203. }
  204. function fSave(){
  205. model.copyNode("/root/send/reptinfo","/root/main/list");
  206. if(submit("TXMQR03101")){
  207. messageBox("","I001");
  208. model.copyNode("/root/main/list","/root/temp/list");
  209. model.refresh();
  210. }else{
  211. messageBox("저장을","E009"); //실패하였습니다.
  212. }
  213. }
  214. function SetVisible(comp_id, inst_id, chkbox_no){
  215. var Obj = document.all(comp_id);
  216. var stat = model.getValue(inst_id);
  217. if(chkbox_no == null){
  218. if(stat == "Y"){
  219. comp_id.disable = true;
  220. }else{
  221. Obj.deselect();
  222. comp_id.disable = false;
  223. }
  224. }
  225. else if(chkbox_no != null){
  226. var arr = stat.search(chkbox_no);
  227. if(arr > -1){
  228. comp_id.disable = true;
  229. }else{
  230. if(Obj.attribute("ref") != ""){
  231. model.setValue(Obj.attribute("ref"), "");
  232. }
  233. comp_id.disable = false;
  234. }
  235. }
  236. }
  237. ]]>
  238. </script>
  239. <script type="javascript" ev:event="xforms-ready">
  240. <![CDATA[
  241. //본원 발생일시 없음
  242. if(getUserInfo("dutplceinstcd") == '031'){
  243. caption32.visible = false;
  244. ipt_discvdd.visible = false;
  245. ipt_discvhh.visible = false;
  246. ipt_discvmi.visible = false;
  247. caption30.visible = false;
  248. caption31.visible = false;
  249. }else{
  250. caption32.visible = true;
  251. ipt_discvdd.visible = true;
  252. ipt_discvhh.visible = true;
  253. ipt_discvmi.visible = true;
  254. caption30.visible = true;
  255. caption31.visible = true;
  256. }
  257. init();
  258. ]]>
  259. </script>
  260. <submission id="TRMQR00100" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/tmp"/>
  261. <submission id="TRMQR03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  262. <submission id="TRMQR03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  263. <submission id="TXMQR03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  264. </model>
  265. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  266. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  267. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  268. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  269. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  270. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  271. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  272. </xhtml:head>
  273. <xhtml:body pagewidth="950" pageheight="470">
  274. <line id="line7" class="line_2" style="x1:0px; y1:327px; x2:912px; y2:327px; "/>
  275. <line id="line6" class="line_2" style="x1:0px; y1:349px; x2:912px; y2:349px; "/>
  276. <caption id="caption28" class="cell_1" style="left:0px; top:328px; width:113px; height:22px; vertical-align:middle; ">노출원(화학물질명)</caption>
  277. <input id="input1" ref="/root/main/list/expsurnm" style="left:115px; top:329px; width:795px; height:19px; "/>
  278. <select id="chk_huminjries" ref="/root/main/list/huminjries" appearance="full" cellspacing="50" cols="2" style="left:460px; top:212px; width:155px; height:20px; ">
  279. <choices>
  280. <item>
  281. <label>사망</label>
  282. <value>01</value>
  283. </item>
  284. <item>
  285. <label>부상</label>
  286. <value>02</value>
  287. </item>
  288. </choices>
  289. </select>
  290. <caption id="caption62" class="cell_1" style="left:0px; top:44px; width:90px; height:23px; vertical-align:middle; ">사번</caption>
  291. <output id="opt_reptId" ref="/root/main/list/reptid" class="output_fix" appearance="output" style="left:91px; top:46px; width:84px; height:19px; "/>
  292. <caption id="caption63" class="cell_1" style="left:653px; top:44px; width:60px; height:23px; vertical-align:middle; ">연락처</caption>
  293. <caption id="caption64" class="cell_1" style="left:813px; top:44px; width:60px; height:23px; vertical-align:middle; ">근무년수</caption>
  294. <line id="line23" class="line_1" style="x1:0px; y1:40px; x2:912px; y2:40px; "/>
  295. <caption id="caption65" class="tit_2" style="left:5px; top:25px; width:144px; height:13px; ">보고자 정보등록</caption>
  296. <line id="line24" class="line_3" style="x1:0px; y1:67px; x2:912px; y2:67px; "/>
  297. <caption id="caption66" class="cell_1" style="left:323px; top:44px; width:50px; height:23px; vertical-align:middle; ">직종</caption>
  298. <output id="opt_reptNm" ref="/root/main/list/reptnm" class="output_fix" appearance="output" style="left:235px; top:46px; width:85px; height:19px; "/>
  299. <caption id="caption67" class="cell_1" style="left:178px; top:44px; width:55px; height:23px; vertical-align:middle; ">성명</caption>
  300. <output id="opt_reptcntctel" ref="/root/main/list/reptcntctel" class="output_fix" appearance="output" style="left:715px; top:46px; width:95px; height:19px; "/>
  301. <output id="opt_reptdutyearno" ref="/root/main/list/reptdutyearno" class="output_fix" appearance="output" style="left:875px; top:46px; width:30px; height:19px; "/>
  302. <caption id="caption68" class="cell_1" style="left:480px; top:44px; width:60px; height:23px; vertical-align:middle; ">근무부서</caption>
  303. <output id="opt_reptjobkind" ref="/root/main/list/reptjobnm" class="output_fix" appearance="output" style="left:375px; top:46px; width:102px; height:19px; "/>
  304. <output id="opt_reptdutdept" ref="/root/main/list/reptdutdeptnm" class="output_fix" appearance="output" style="left:543px; top:46px; width:108px; height:19px; "/>
  305. <caption id="caption42" class="tit_2" style="left:5px; top:82px; width:148px; height:13px; ">사고 대상자 정보등록</caption>
  306. <line id="line16" class="line_1" style="x1:0px; y1:97px; x2:912px; y2:97px; "/>
  307. <caption id="caption1" class="cell_1" style="left:0px; top:101px; width:90px; height:23px; vertical-align:middle; ">사번</caption>
  308. <caption id="caption2" class="cell_1" style="left:654px; top:101px; width:60px; height:23px; vertical-align:middle; ">연락처</caption>
  309. <caption id="caption3" class="cell_1" style="left:814px; top:101px; width:60px; height:23px; vertical-align:middle; ">근무년수</caption>
  310. <line id="line1" class="line_3" style="x1:1px; y1:124px; x2:913px; y2:124px; "/>
  311. <caption id="caption4" class="cell_1" style="left:324px; top:101px; width:50px; height:23px; vertical-align:middle; ">직종</caption>
  312. <caption id="caption5" class="cell_1" style="left:179px; top:101px; width:55px; height:23px; vertical-align:middle; ">성명</caption>
  313. <caption id="caption6" class="cell_1" style="left:481px; top:101px; width:60px; height:23px; vertical-align:middle; ">근무부서</caption>
  314. <select1 id="rdo_reptdivide" ref="/root/main/list/reptdivide" navindex="1" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:185px; top:80px; width:150px; height:15px; border-style:none; ">
  315. <choices>
  316. <item>
  317. <label>본인</label>
  318. <value>01</value>
  319. </item>
  320. <item>
  321. <label>제 3자 보고</label>
  322. <value>02</value>
  323. </item>
  324. </choices>
  325. <script type="javascript" ev:event="xforms-value-changed">
  326. <![CDATA[
  327. if( model.getValue("/root/main/list/reptdivide") == "01" ){
  328. model.setValue("/root/main/list/trgtmanid", model.getValue("/root/main/list/reptid"));
  329. model.setValue("/root/main/list/trgtmannm", model.getValue("/root/main/list/reptnm"));
  330. model.setValue("/root/main/list/trgtmanjobnm", model.getValue("/root/main/list/reptjobnm"));
  331. model.setValue("/root/main/list/trgtmanjob", model.getValue("/root/main/list/reptjob"));
  332. model.setValue("/root/main/list/trgtmandeptnm", model.getValue("/root/main/list/reptdutdeptnm"));
  333. model.setValue("/root/main/list/trgtmandept", model.getValue("/root/main/list/reptdutdept"));
  334. model.setValue("/root/main/list/trgtmancntctel", model.getValue("/root/main/list/reptcntctel"));
  335. model.setValue("/root/main/list/trgtmanyearno", model.getValue("/root/main/list/reptdutyearno"));
  336. ipt_trgtmanid.disabled = true;
  337. ipt_trgtmannm.disabled = true;
  338. ipt_trgtmanjob.disabled = true;
  339. ipt_trgtmandept.disabled = true;
  340. ipt_trgtmancntctel.disabled = true;
  341. ipt_trgtmanyearno.disabled = true;
  342. }else{
  343. model.setValue("/root/main/list/trgtmanid", "");
  344. model.setValue("/root/main/list/trgtmannm", "");
  345. model.setValue("/root/main/list/trgtmanjobnm", "");
  346. model.setValue("/root/main/list/trgtmanjob", "");
  347. model.setValue("/root/main/list/trgtmandeptnm", "");
  348. model.setValue("/root/main/list/trgtmandept", "");
  349. model.setValue("/root/main/list/trgtmancntctel", "");
  350. model.setValue("/root/main/list/trgtmanyearno", "");
  351. ipt_trgtmanid.disabled = false;
  352. ipt_trgtmannm.disabled = false;
  353. ipt_trgtmanjob.disabled = false;
  354. ipt_trgtmandept.disabled = false;
  355. ipt_trgtmancntctel.disabled = false;
  356. ipt_trgtmanyearno.disabled = false;
  357. }
  358. model.refresh();
  359. ]]>
  360. </script>
  361. </select1>
  362. <caption id="caption51" class="tit_2" style="left:5px; top:138px; width:148px; height:13px; vertical-align:top; ">보고사항</caption>
  363. <line id="line19" class="line_1" style="x1:0px; y1:153px; x2:912px; y2:153px; "/>
  364. <caption id="caption7" class="cell_1" style="left:0px; top:157px; width:90px; height:23px; vertical-align:middle; ">접수번호</caption>
  365. <caption id="caption8" class="cell_1" style="left:0px; top:183px; width:90px; height:23px; vertical-align:middle; ">문제의 종류</caption>
  366. <input id="ipt_trgtmanid" ref="/root/main/list/trgtmanid" class="input_essential" navindex="2" style="left:92px; top:103px; width:85px; height:19px; "/>
  367. <input id="ipt_trgtmannm" ref="/root/main/list/trgtmannm" class="input_essential" navindex="3" style="left:236px; top:103px; width:85px; height:19px; "/>
  368. <select1 id="ipt_trgtmanjob" ref="/root/main/list/trgtmanjob" class="combo_default" navindex="4" appearance="minimal" style="left:375px; top:103px; width:105px; height:19px; ">
  369. <choices>
  370. <itemset nodeset="/root/init/R0061list/R0061">
  371. <label ref="cdnm"/>
  372. <value ref="cdid"/>
  373. </itemset>
  374. </choices>
  375. </select1>
  376. <input id="ipt_trgtmandept" ref="/root/main/list/trgtmandeptnm" class="input_essential" navindex="5" appearance="input" style="left:543px; top:103px; width:110px; height:19px; "/>
  377. <input id="ipt_trgtmancntctel" ref="/root/main/list/trgtmancntctel" class="input_essential" navindex="6" style="left:717px; top:103px; width:95px; height:19px; "/>
  378. <input id="ipt_trgtmanyearno" ref="/root/main/list/trgtmanyearno" class="input_essential" navindex="7" style="left:876px; top:103px; width:30px; height:19px; "/>
  379. <output id="output1" ref="/root/main/list/acptno" class="output_fix" appearance="output" style="left:91px; top:159px; width:84px; height:19px; "/>
  380. <caption id="caption9" class="cell_1" style="left:177px; top:157px; width:90px; height:23px; vertical-align:middle; ">발생일시</caption>
  381. <input id="ipt_genrhh" ref="/root/main/list/genrhh" class="input_essential" navindex="9" format="hh" showmask="true" style="left:369px; top:159px; width:31px; height:19px; "/>
  382. <caption id="caption10" style="left:404px; top:160px; width:15px; height:20px; ">시</caption>
  383. <caption id="caption11" style="left:455px; top:160px; width:15px; height:20px; ">분</caption>
  384. <input id="ipt_genrdt" ref="/root/main/list/genrdd" class="combo_essential" navindex="8" inputtype="date" appearance="input" style="left:270px; top:159px; width:95px; height:19px; "/>
  385. <input id="ipt_genrmi" ref="/root/main/list/genrmi" class="input_essential" navindex="10" format="nn" showmask="true" style="left:420px; top:159px; width:31px; height:19px; "/>
  386. <caption id="caption12" class="cell_1" style="left:0px; top:208px; width:91px; height:23px; vertical-align:middle; ">재해(발생)장소</caption>
  387. <input id="ipt_reptgenrplce" ref="/root/main/list/reptgenrplce" class="input_essential" navindex="12" style="left:93px; top:211px; width:262px; height:19px; "/>
  388. <line id="line2" class="line_3" style="x1:0px; y1:232px; x2:912px; y2:232px; "/>
  389. <line id="line8" class="line_2" style="x1:0px; y1:208px; x2:912px; y2:208px; "/>
  390. <caption id="caption13" class="cell_1" style="left:358px; top:208px; width:93px; height:23px; vertical-align:middle; ">인적피해</caption>
  391. <caption id="caption15" class="cell_1" style="left:660px; top:208px; width:93px; height:23px; vertical-align:middle; ">물적피해</caption>
  392. <input id="ipt_matrdamage" ref="/root/main/list/matrdamage" navindex="15" style="left:755px; top:211px; width:155px; height:19px; "/>
  393. <caption id="caption16" class="tit_2" style="left:5px; top:245px; width:504px; height:13px; vertical-align:top; ">상세기술내용 (6하원칙에 의거하여 자세히 작성해 주십시요)</caption>
  394. <line id="line3" class="line_1" style="x1:0px; y1:260px; x2:912px; y2:260px; "/>
  395. <button id="btn_prt" class="btn6_letter2" navindex="17" disable.background-image="../../../com/commonweb/images/dis_btn6_letter2.gif" style="left:670px; top:435px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn6_letter2.gif; ">
  396. <caption>출력</caption>
  397. <script type="javascript" ev:event="DOMActivate">
  398. <![CDATA[
  399. if(getUserInfo("dutplceinstcd") == '032'){
  400. exeReportPreview("RPMQR03100", "XMLSTR", "", "", "true" , "", "", "", "", "true","", "", "", "", "hidden", 1); //출력
  401. //exeReportPreview("RPMQR03100", "XMLSTR", "", "", "" , "true", "", "", "", "","", "", "", "", "hidden", 1); //출력
  402. }else {
  403. exeReportPreview("RPMQR03200", "XMLSTR", "", "", "true" , "", "", "", "", "true","", "", "", "", "hidden", 1); //출력
  404. //exeReportPreview("RPMQR03200", "XMLSTR", "", "", "" , "true", "", "", "", "","", "", "", "", "hidden", 1); //출력
  405. }
  406. ]]>
  407. </script>
  408. </button>
  409. <button id="btn_send" class="btn4_letter2" navindex="20" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:860px; top:435px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
  410. <caption>전송</caption>
  411. <script type="javascript" ev:event="DOMActivate">
  412. <![CDATA[
  413. var genrdd = model.getValue("/root/main/list/genrdd");
  414. var genrhh = model.getValue("/root/main/list/genrhh");
  415. var genrmi = model.getValue("/root/main/list/genrmi");
  416. model.makeValue("/root/main/list/genrdt" , genrdd+genrhh+genrmi);
  417. var discvdd = model.getValue("/root/main/list/discvdd");
  418. var discvhh = model.getValue("/root/main/list/discvhh");
  419. var discvmi = model.getValue("/root/main/list/discvmi");
  420. model.makeValue("/root/main/list/discvdt" , discvdd+discvhh+discvmi);
  421. if(fCheck() != false){ //필수입력체크
  422. return;
  423. }
  424. var rtnval = messageBox("전송하시겠습니까?","Q");
  425. var reptid = model.getValue("/root/main/list/reptid");
  426. var state = model.getValue("/root/main/list/state");
  427. if(rtnval == 6){ //예
  428. if( state == "10" ){ //전송상태가 아닌경우에만 저장가능., 저장 후 전송가능.
  429. model.makeValue("/root/main/list/state", "20");
  430. model.makeValue("/root/main/list/rowstatus", "u");
  431. fSave();
  432. }else if( state == "" ){
  433. messageBox("저장 후 전송 가능합니다.","E");
  434. return;
  435. }else{
  436. messageBox("전송된 보고는 근로복지과에 수정요청 후 수정 가능합니다. \n(근로복지과 전화 : 6116)","E");
  437. return;
  438. }
  439. }else{
  440. return;
  441. }
  442. model.refresh();
  443. ]]>
  444. </script>
  445. </button>
  446. <button id="btn_save" class="btn4_letter2" navindex="19" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:800px; top:435px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  447. <caption>저장</caption>
  448. <script type="javascript" ev:event="DOMActivate">
  449. <![CDATA[
  450. var genrdd = model.getValue("/root/main/list/genrdd");
  451. var genrhh = model.getValue("/root/main/list/genrhh");
  452. var genrmi = model.getValue("/root/main/list/genrmi");
  453. model.setValue("/root/main/list/genrdt" , genrdd+genrhh+genrmi);
  454. var discvdd = model.getValue("/root/main/list/discvdd");
  455. var discvhh = model.getValue("/root/main/list/discvhh");
  456. var discvmi = model.getValue("/root/main/list/discvmi");
  457. model.makeValue("/root/main/list/discvdt" , discvdd+discvhh+discvmi);
  458. if(fCheck() != false){ //필수입력체크
  459. return;
  460. }
  461. var rtnval = messageBox("","Q002");//저장하시겠습니까?
  462. var reptid = model.getValue("/root/main/list/reptid");
  463. var state = model.getValue("/root/main/list/state");
  464. if(rtnval == 6){ //예
  465. if( state == "" ){ //신규입력.
  466. model.setValue("/root/main/list/state", "10");
  467. fSave();
  468. }else if (state == "10"){
  469. model.setValue("/root/main/list/state", "10");
  470. model.makeValue("/root/main/list/rowstatus", "u");
  471. fSave();
  472. }else{
  473. messageBox("전송된 보고는 근로복지과에 수정요청 후 수정 가능합니다. (근로복지과 전화 : 6116)","E");
  474. }
  475. }else{
  476. return;
  477. }
  478. model.refresh();
  479. ]]>
  480. </script>
  481. </button>
  482. <button id="btn_init" class="btn4_letter3" navindex="18" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:730px; top:435px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  483. <caption>초기화</caption>
  484. <script type="javascript" ev:event="DOMActivate">
  485. <![CDATA[
  486. window.reload();
  487. ]]>
  488. </script>
  489. </button>
  490. <select1 id="rdo_reptkind" ref="/root/main/list/reptkind" class="input_essential" navindex="11" appearance="full" cellspacing="30" cols="3" overflow="visible" style="left:90px; top:186px; width:345px; height:20px; border-style:none; ">
  491. <choices>
  492. <item>
  493. <label>업무상재해</label>
  494. <value>01</value>
  495. </item>
  496. <item>
  497. <label>유해화학물질 노출</label>
  498. <value>02</value>
  499. </item>
  500. <item>
  501. <label>기타</label>
  502. <value>99</value>
  503. </item>
  504. </choices>
  505. <script type="javascript" ev:event="xforms-value-changed">
  506. <![CDATA[
  507. var reptkind = model.getValue("/root/main/list/reptkind");
  508. if( reptkind == 02 ){
  509. textarea1.attribute("height") = "61px";
  510. }else{
  511. model.setValue("/root/main/list/expsurbodyyn", "");
  512. model.setValue("/root/main/list/expsursympyn", "");
  513. model.setValue("/root/main/list/expsurproceqmtyn", "");
  514. model.setValue("/root/main/list/expsurmermeasyn", "");
  515. model.setValue("/root/main/list/expsurbody", "");
  516. model.setValue("/root/main/list/expsursymp", "");
  517. model.setValue("/root/main/list/expsurproceqmt", "");
  518. model.setValue("/root/main/list/expsurmermeas", "");
  519. model.setValue("/root/main/list/expsurdetl", "");
  520. textarea1.attribute("height") = "164px";
  521. }
  522. model.refresh();
  523. ]]>
  524. </script>
  525. </select1>
  526. <group id="group1" style="left:0px; top:0px; width:909px; height:13px; ">
  527. <caption id="caption18" class="tit_1" style="left:0px; top:0px; width:129px; height:15px; ">직원안전보고</caption>
  528. </group>
  529. <caption id="caption17" class="cell_1" style="left:0px; top:351px; width:99px; height:37px; vertical-align:middle; ">노출시 신체접촉</caption>
  530. <caption id="caption20" class="cell_1" style="left:290px; top:351px; width:79px; height:37px; vertical-align:middle; ">노출 후 증상</caption>
  531. <caption id="caption19" class="cell_1" style="left:607px; top:351px; width:74px; height:37px; vertical-align:middle; ">보호구 착용</caption>
  532. <caption id="caption21" class="cell_1" style="left:0px; top:390px; width:100px; height:37px; text-align:center; vertical-align:middle; ">
  533. <![CDATA[노출에 따른
  534. 응급조치]]>
  535. </caption>
  536. <select1 id="rdo_expsurbodyyn" ref="/root/main/list/expsurbodyyn" appearance="full" cellspacing="10" rows="2" overflow="visible" style="left:100px; top:352px; width:60px; height:34px; border-style:none; ">
  537. <choices>
  538. <item>
  539. <label>예</label>
  540. <value>Y</value>
  541. </item>
  542. <item>
  543. <label>아니오</label>
  544. <value>N</value>
  545. </item>
  546. </choices>
  547. <script type="javascript" ev:event="xforms-value-changed">
  548. <![CDATA[
  549. var expsurbodyyn = model.getValue("/root/main/list/expsurbodyyn");
  550. if( expsurbodyyn == "N" ){
  551. model.setValue("/root/main/list/expsurbody","");
  552. textarea4.disabled = true;
  553. }else{
  554. textarea4.disabled = false;
  555. }
  556. textarea4.refresh();
  557. ]]>
  558. </script>
  559. </select1>
  560. <caption id="caption22" style="left:158px; top:352px; width:62px; height:20px; ">접촉부위 :</caption>
  561. <select1 id="rdo_expsursympyn" ref="/root/main/list/expsursympyn" appearance="full" cellspacing="10" rows="2" overflow="visible" style="left:370px; top:352px; width:60px; height:34px; border-style:none; ">
  562. <choices>
  563. <item>
  564. <label>예</label>
  565. <value>Y</value>
  566. </item>
  567. <item>
  568. <label>아니오</label>
  569. <value>N</value>
  570. </item>
  571. </choices>
  572. <script type="javascript" ev:event="xforms-value-changed">
  573. <![CDATA[
  574. var expsursympyn = model.getValue("/root/main/list/expsursympyn");
  575. if( expsursympyn == "N" ){
  576. model.setValue("/root/main/list/expsursymp","");
  577. textarea5.disabled = true;
  578. }else{
  579. textarea5.disabled = false;
  580. }
  581. textarea5.refresh();
  582. ]]>
  583. </script>
  584. </select1>
  585. <caption id="caption23" style="left:430px; top:352px; width:62px; height:20px; ">발생증상 :</caption>
  586. <select1 id="rdo_expsurproceqmtyn" ref="/root/main/list/expsurproceqmtyn" appearance="full" cellspacing="10" rows="2" overflow="visible" style="left:682px; top:351px; width:60px; height:34px; border-style:none; ">
  587. <choices>
  588. <item>
  589. <label>예</label>
  590. <value>Y</value>
  591. </item>
  592. <item>
  593. <label>아니오</label>
  594. <value>N</value>
  595. </item>
  596. </choices>
  597. <script type="javascript" ev:event="xforms-value-changed">
  598. <![CDATA[
  599. var expsurproceqmtyn = model.getValue("/root/main/list/expsurproceqmtyn");
  600. if( expsurproceqmtyn == "N" ){
  601. model.setValue("/root/main/list/expsurproceqmt","");
  602. textarea6.disabled = true;
  603. }else{
  604. textarea6.disabled = false;
  605. }
  606. textarea6.refresh();
  607. ]]>
  608. </script>
  609. </select1>
  610. <caption id="caption24" style="left:743px; top:352px; width:62px; height:20px; ">보호구 명 :</caption>
  611. <line id="line4" class="line_2" style="x1:0px; y1:388px; x2:912px; y2:388px; "/>
  612. <select1 id="rdo_expsurmermeasyn" ref="/root/main/list/expsurmermeasyn" appearance="full" cellspacing="10" rows="2" overflow="visible" style="left:100px; top:390px; width:60px; height:34px; border-style:none; ">
  613. <choices>
  614. <item>
  615. <label>예</label>
  616. <value>Y</value>
  617. </item>
  618. <item>
  619. <label>아니오</label>
  620. <value>N</value>
  621. </item>
  622. </choices>
  623. <script type="javascript" ev:event="xforms-value-changed">
  624. <![CDATA[
  625. var expsurmermeasyn = model.getValue("/root/main/list/expsurmermeasyn");
  626. if( expsurmermeasyn == "N" ){
  627. model.setValue("/root/main/list/expsurmermeas","");
  628. textarea2.disabled = true;
  629. }else{
  630. textarea2.disabled = false;
  631. }
  632. textarea2.refresh();
  633. ]]>
  634. </script>
  635. </select1>
  636. <caption id="caption25" style="left:160px; top:390px; width:62px; height:20px; ">조치내용 :</caption>
  637. <textarea id="textarea2" ref="/root/main/list/expsurmermeas" disabled="true" maxlength="20" style="left:220px; top:391px; width:200px; height:35px; "/>
  638. <caption id="caption26" class="cell_1" style="left:425px; top:390px; width:100px; height:37px; text-align:center; vertical-align:middle; ">
  639. <![CDATA[재발방지대책
  640. (개인의견기술)]]>
  641. </caption>
  642. <textarea id="textarea3" ref="/root/main/list/expsurdetl" maxlength="100" style="left:526px; top:391px; width:384px; height:35px; "/>
  643. <line id="line5" class="line_3" style="x1:0px; y1:429px; x2:912px; y2:429px; "/>
  644. <textarea id="textarea4" ref="/root/main/list/expsurbody" disabled="true" maxlength="20" style="left:220px; top:351px; width:68px; height:35px; "/>
  645. <textarea id="textarea5" ref="/root/main/list/expsursymp" disabled="true" maxlength="20" style="left:490px; top:351px; width:116px; height:35px; "/>
  646. <textarea id="textarea6" ref="/root/main/list/expsurproceqmt" disabled="true" maxlength="20" style="left:807px; top:352px; width:103px; height:35px; "/>
  647. <caption id="caption14" style="left:537px; top:214px; width:20px; height:15px; ">명</caption>
  648. <input id="ipt_humjniricnt" ref="/root/main/list/humjniricnt1" navindex="14" format="99" style="left:509px; top:211px; width:25px; height:19px; "/>
  649. <input id="ipt_humjniricnt2" ref="/root/main/list/humjniricnt2" navindex="14" format="99" style="left:606px; top:211px; width:25px; height:19px; "/>
  650. <caption id="caption27" style="left:634px; top:213px; width:20px; height:15px; ">명</caption>
  651. <textarea id="textarea1" ref="/root/main/list/detlcnts" class="text_essential" navindex="16" maxlength="4000" style="left:0px; top:265px; width:910px; height:164px; "/>
  652. <caption id="caption29" visibility="hidden" style="left:10px; top:437px; width:446px; height:18px; ">
  653. <![CDATA[▶ 담당부서 : 업무상재해-총무팀, 화학물질노출(누출)사고-의료질관리실
  654. ]]>
  655. </caption>
  656. <button id="btn_serchid" class="icon_search" visibility="visible" style="left:307px; top:105px; width:16px; height:16px; ">
  657. <caption/>
  658. <script type="javascript" ev:event="DOMActivate">
  659. <![CDATA[
  660. setParameter("search_condition","usernm");
  661. setParameter("resultref","/root/send/userinfo");
  662. modal("SPZSU10100");
  663. var userinfo = model.getValue("/root/send/userinfo");
  664. if( userinfo == ""){
  665. return;
  666. }
  667. userinfo = userinfo.split("|");
  668. var userid = userinfo[2];
  669. var usernm = userinfo[3];
  670. var deptnm = userinfo[10];
  671. var deptcd = userinfo[11];
  672. var trgtmancntctel = userinfo[18];
  673. var trgtmanyearno = "";
  674. if ( userinfo[19] != "" || userinfo[19] != null || userinfo[19] != "undifined"){
  675. trgtmanyearno = getCurrentDate().substr(0,4) - userinfo[19].substr(0,4);
  676. }
  677. model.makeValue("/root/send/userid", userid);
  678. model.makeValue("/root/send/deptcd", deptcd);
  679. submit("TRMQR03102"); //직종조회 컬럼
  680. model.setValue("/root/main/list/trgtmanid", userid );
  681. model.setValue("/root/main/list/trgtmannm", usernm );
  682. model.setValue("/root/main/list/trgtmandeptnm", deptnm );
  683. model.setValue("/root/main/list/trgtmandept" , deptcd );
  684. model.setValue("/root/main/list/trgtmanjob" , model.getValue("/root/temp/list/trgtmanjob"));
  685. model.setValue("/root/main/list/trgtmancntctel" , trgtmancntctel );
  686. model.setValue("/root/main/list/trgtmanyearno" , trgtmanyearno );
  687. model.resetInstanceNode("/root/send/userinfo");
  688. model.refresh(); ]]>
  689. </script>
  690. </button>
  691. <caption id="caption30" style="left:708px; top:160px; width:15px; height:20px; ">시</caption>
  692. <caption id="caption31" style="left:759px; top:160px; width:15px; height:20px; ">분</caption>
  693. <caption id="caption32" class="cell_1" style="left:481px; top:157px; width:90px; height:23px; vertical-align:middle; ">발견일시</caption>
  694. <input id="ipt_discvdd" ref="/root/main/list/discvdd" class="combo_essential" navindex="8" inputtype="date" appearance="input" style="left:574px; top:159px; width:95px; height:19px; "/>
  695. <input id="ipt_discvhh" ref="/root/main/list/discvhh" class="input_essential" navindex="9" format="hh" showmask="true" style="left:673px; top:159px; width:31px; height:19px; "/>
  696. <input id="ipt_discvmi" ref="/root/main/list/discvmi" class="input_essential" navindex="10" format="nn" showmask="true" style="left:724px; top:159px; width:31px; height:19px; "/>
  697. </xhtml:body>
  698. </xhtml:html>