SMASI01100_직원감염노출사고보고서조회.xrw 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <empinfo>
  11. <instcd/>
  12. <personkind/>
  13. <rgstdt/>
  14. <status/>
  15. <userid/>
  16. <usernm/>
  17. <pid/>
  18. <sex/>
  19. <age/>
  20. <depthngnm/>
  21. <jobkind/>
  22. <workterm/>
  23. <caspid/>
  24. <cashbv/>
  25. <cashcv/>
  26. <cashcvpcr/>
  27. <cashiv/>
  28. <casetc/>
  29. <occdd/>
  30. <occplace/>
  31. <occpath/>
  32. <occpart/>
  33. <occworkflag/>
  34. <occtool/>
  35. <occcomment/>
  36. <aftneceyn/>
  37. <aftmanasche/>
  38. <aftrsltmana/>
  39. <genrdd/>
  40. <lastupdtdt/>
  41. <reptdt/>
  42. <rgstid/>
  43. </empinfo>
  44. </main>
  45. <send>
  46. <reqdata>
  47. <fromdd/>
  48. <todd/>
  49. <srchkind/>
  50. </reqdata>
  51. </send>
  52. <hidden/>
  53. </root>
  54. </instance>
  55. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  56. <submission id="TRZSD00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  57. <submission id="TRASI01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/empinfo"/>
  58. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  64. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. //본원 발생일시 없음
  68. if(getUserInfo("dutplceinstcd") == '031'){
  69. grd_empinfc.colhidden(9) = true;
  70. }else{
  71. grd_empinfc.colhidden(9) = false;
  72. }
  73. model.setValue("/root/send/reqdata/srchkind", "R");
  74. model.setValue("/root/send/reqdata/todd", getCurrentDate());
  75. model.setValue("/root/send/reqdata/fromdd", date_add(getCurrentDate(), -6));
  76. model.refresh();
  77. ]]>
  78. </script>
  79. <script type="javascript">
  80. <![CDATA[
  81. function date_add(sDate, nDays){
  82. var yy = parseInt(sDate.substr(0,4), 10);
  83. var mm = parseInt(sDate.substr(4,2), 10);
  84. var dd = parseInt(sDate.substr(6,2), 10);
  85. var d = new Date(yy, mm - 1, dd + nDays);
  86. yy = d.getFullYear().toString();
  87. mm = d.getMonth() + 1; mm = (mm < 10) ? '0' + mm : mm.toString();
  88. dd = d.getDate(); dd = (dd < 10) ? '0' + dd : dd.toString();
  89. return yy + mm + dd;
  90. }
  91. ]]>
  92. </script>
  93. </xhtml:head>
  94. <xhtml:body idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  95. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  96. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:199px; height:15px; ">직원감염노출보고 조회</caption>
  97. </group>
  98. <group id="grp_biz" style="left:0px; top:13px; width:1195px; height:757px; ">
  99. <group id="group1" style="left:0px; top:6px; width:1195px; height:35px; vertical-align:top; ">
  100. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  101. <line id="line5" class="line_4" style="x1:440px; y1:6px; x2:440px; y2:28px; "/>
  102. <caption id="cap_fromdd" class="search_name" visibility="hidden" style="left:15px; top:10px; width:86px; height:17px; ">기간선택 :</caption>
  103. <caption id="cap_todd" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">기간선택 :</caption>
  104. <caption id="caption19" class="search_no_b" style="left:301px; top:9px; width:12px; height:17px; ">~</caption>
  105. <button id="btn_search" class="btn1_letter2" style="left:450px; top:6px; width:56px; height:22px; ">
  106. <caption>조회</caption>
  107. <script type="javascript" ev:event="DOMActivate">
  108. <![CDATA[
  109. if(getUserInfo("dutplcecd")=="3110300000"){
  110. model.makeValue("/root/send/reqdata/status", "A");
  111. }else{
  112. model.makeValue("/root/send/reqdata/status", "-");
  113. }
  114. submit("TRASI01101");
  115. ]]>
  116. </script>
  117. </button>
  118. <input id="ipt_fromdd" ref="/root/send/reqdata/fromdd" class="input_s_essential" inputtype="date" style="left:189px; top:10px; width:100px; height:19px; ">
  119. <script type="javascript" ev:event="xforms-value-changed">
  120. <![CDATA[
  121. model.makeValue("/root/send/reqdata/todd", date_add(ipt_fromdd.value, 6));
  122. ipt_todd.refresh();
  123. ]]>
  124. </script>
  125. </input>
  126. <input id="ipt_todd" ref="/root/send/reqdata/todd" class="input_s_essential" inputtype="date" style="left:325px; top:10px; width:100px; height:19px; "/>
  127. <button id="button2" class="btn2_letter2" style="left:510px; top:6px; width:42px; height:19px; ">
  128. <caption>엑셀</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. // var fileName = window.fileDialog("save", ",", false, "직원감염노출사고보고서조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  132. // if (fileName != ""){
  133. // grd_empinfc.saveExcel(fileName, "SheetName", false, false, "", "", false);
  134. // }
  135. var fileName = window.fileDialog("save", ",", false, "직원감염노출사고보고서", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  136. if (fileName != ""){
  137. grd_empinfc.saveExcel(fileName, "직원감염노출사고보고서", true, true, "", "", false);
  138. var s = fileName.lastIndexOf("\\");
  139. var fileName=fileName.substring(s+1);
  140. var rmsg = messageBox("저장된 Excel을", "Q004");
  141. if( rmsg == 6 ){
  142. window.exec("excel.exe", fileName);
  143. }
  144. }
  145. ]]>
  146. </script>
  147. </button>
  148. <select1 id="combo1" ref="/root/send/reqdata/srchkind" appearance="minimal" style="left:105px; top:10px; width:80px; height:19px; ">
  149. <choices>
  150. <item>
  151. <label>보고일</label>
  152. <value>R</value>
  153. </item>
  154. <item>
  155. <label>관리일</label>
  156. <value>A</value>
  157. </item>
  158. </choices>
  159. </select1>
  160. </group>
  161. <line id="line1" class="line_1" style="x1:1px; y1:63px; x2:1194px; y2:63px; "/>
  162. <datagrid id="grd_empinfc" nodeset="/root/main/empinfo" caption="^^^^^상태^보고일^발생일시^사번^성명^등록번호^성별^나이^부서^직종^근무경력^원인자등록번호^원인체HBV^원인체HCV^원인체HCVPCR^원인체HIV^원인체기타^발생일^발생장소^노출경로^노출부위^노출시업무^노출기구^노출현황^추후관리여부^추후관리계획^추후관리결과^caption1" colsep="^" colwidth="0, 0, 0, 0, 0, 50, 100, 100, 50, 65, 63, 33, 31, 100, 77, 70, 100, 73, 85, 108, 100, 122, 74, 69, 66, 73, 78, 63, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" _popupmode="all" style="left:0px; top:70px; width:1194px; height:685px; text-align:center; vertical-align:middle; ">
  163. <col ref="instcd" visibility="hidden"/>
  164. <col ref="personkind" visibility="hidden"/>
  165. <col ref="rrgstno1" visibility="hidden"/>
  166. <col ref="rrgstno2" visibility="hidden"/>
  167. <col ref="rgstdt" visibility="hidden"/>
  168. <col ref="status" type="combo">
  169. <choices>
  170. <item>
  171. <label>저장</label>
  172. <value>T</value>
  173. </item>
  174. <item>
  175. <label>전송</label>
  176. <value>S</value>
  177. </item>
  178. </choices>
  179. </col>
  180. <col ref="reptdt" format="yyyy-mm-dd hh:nn"/>
  181. <col ref="genrdd" format="yyyy-mm-dd hh:nn"/>
  182. <col ref="userid"/>
  183. <col ref="usernm"/>
  184. <col ref="pid"/>
  185. <col ref="sex"/>
  186. <col ref="age"/>
  187. <col ref="depthngnm"/>
  188. <col ref="jobkind"/>
  189. <col ref="workterm"/>
  190. <col ref="caspid"/>
  191. <col ref="cashbv"/>
  192. <col ref="cashcv"/>
  193. <col ref="cashcvpcr"/>
  194. <col ref="cashiv"/>
  195. <col ref="casetc"/>
  196. <col ref="occdd" visibility="hidden"/>
  197. <col ref="occplace"/>
  198. <col ref="occpath"/>
  199. <col ref="occpart"/>
  200. <col ref="occworkflag"/>
  201. <col ref="occtool"/>
  202. <col ref="occcomment"/>
  203. <col ref="aftneceyn"/>
  204. <col ref="aftmanasche"/>
  205. <col ref="aftrsltmana"/>
  206. <col ref="rgstid"/>
  207. <script type="javascript" ev:event="ondblclick">
  208. <![CDATA[
  209. var row=grd_empinfc.row;
  210. var fixedrow=grd_empinfc.fixedRows;
  211. if(row>=fixedrow){
  212. setParameter("instcd", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("instcd")));
  213. setParameter("personkind", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("personkind")));
  214. //setParameter("rrgstno1", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("rrgstno1")));
  215. //setParameter("rrgstno2", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("rrgstno2")));
  216. setParameter("rgstdt", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("rgstdt")));
  217. setParameter("rgstid", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("rgstid")));
  218. modal("SMASI01000", 1, 0, 0 ,"", "", "");
  219. }
  220. ]]>
  221. </script>
  222. </datagrid>
  223. <caption id="caption25" class="tit_2" style="left:0px; top:50px; width:173px; height:14px; ">직원감염노출보고서리스트</caption>
  224. </group>
  225. </xhtml:body>
  226. </xhtml:html>