123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>직원감염기록조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <empinfo>
- <instcd/>
- <personkind/>
- <rgstdt/>
- <status/>
- <userid/>
- <usernm/>
- <pid/>
- <sex/>
- <age/>
- <depthngnm/>
- <jobkind/>
- <workterm/>
- <caspid/>
- <cashbv/>
- <cashcv/>
- <cashcvpcr/>
- <cashiv/>
- <casetc/>
- <occdd/>
- <occplace/>
- <occpath/>
- <occpart/>
- <occworkflag/>
- <occtool/>
- <occcomment/>
- <aftneceyn/>
- <aftmanasche/>
- <aftrsltmana/>
- <genrdd/>
- <lastupdtdt/>
- <reptdt/>
- <rgstid/>
- </empinfo>
- </main>
- <send>
- <reqdata>
- <fromdd/>
- <todd/>
- <srchkind/>
- </reqdata>
- </send>
- <hidden/>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSD00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRASI01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/empinfo"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //본원 발생일시 없음
- if(getUserInfo("dutplceinstcd") == '031'){
- grd_empinfc.colhidden(9) = true;
- }else{
- grd_empinfc.colhidden(9) = false;
- }
-
- model.setValue("/root/send/reqdata/srchkind", "R");
- model.setValue("/root/send/reqdata/todd", getCurrentDate());
- model.setValue("/root/send/reqdata/fromdd", date_add(getCurrentDate(), -6));
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function date_add(sDate, nDays){
- var yy = parseInt(sDate.substr(0,4), 10);
- var mm = parseInt(sDate.substr(4,2), 10);
- var dd = parseInt(sDate.substr(6,2), 10);
-
- var d = new Date(yy, mm - 1, dd + nDays);
-
- yy = d.getFullYear().toString();
- mm = d.getMonth() + 1; mm = (mm < 10) ? '0' + mm : mm.toString();
- dd = d.getDate(); dd = (dd < 10) ? '0' + dd : dd.toString();
-
- return yy + mm + dd;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:199px; height:15px; ">직원감염노출보고 조회</caption>
- </group>
- <group id="grp_biz" style="left:0px; top:13px; width:1195px; height:757px; ">
- <group id="group1" style="left:0px; top:6px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line5" class="line_4" style="x1:440px; y1:6px; x2:440px; y2:28px; "/>
- <caption id="cap_fromdd" class="search_name" visibility="hidden" style="left:15px; top:10px; width:86px; height:17px; ">기간선택 :</caption>
- <caption id="cap_todd" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">기간선택 :</caption>
- <caption id="caption19" class="search_no_b" style="left:301px; top:9px; width:12px; height:17px; ">~</caption>
- <button id="btn_search" class="btn1_letter2" style="left:450px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(getUserInfo("dutplcecd")=="3110300000"){
- model.makeValue("/root/send/reqdata/status", "A");
- }else{
- model.makeValue("/root/send/reqdata/status", "-");
- }
- submit("TRASI01101");
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/send/reqdata/fromdd" class="input_s_essential" inputtype="date" style="left:189px; top:10px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/reqdata/todd", date_add(ipt_fromdd.value, 6));
- ipt_todd.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_todd" ref="/root/send/reqdata/todd" class="input_s_essential" inputtype="date" style="left:325px; top:10px; width:100px; height:19px; "/>
- <button id="button2" class="btn2_letter2" style="left:510px; top:6px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var fileName = window.fileDialog("save", ",", false, "직원감염노출사고보고서조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- // if (fileName != ""){
- // grd_empinfc.saveExcel(fileName, "SheetName", false, false, "", "", false);
- // }
- var fileName = window.fileDialog("save", ",", false, "직원감염노출사고보고서", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_empinfc.saveExcel(fileName, "직원감염노출사고보고서", true, true, "", "", false);
- var s = fileName.lastIndexOf("\\");
- var fileName=fileName.substring(s+1);
-
- var rmsg = messageBox("저장된 Excel을", "Q004");
- if( rmsg == 6 ){
- window.exec("excel.exe", fileName);
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/send/reqdata/srchkind" appearance="minimal" style="left:105px; top:10px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>보고일</label>
- <value>R</value>
- </item>
- <item>
- <label>관리일</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:1px; y1:63px; x2:1194px; y2:63px; "/>
- <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; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="personkind" visibility="hidden"/>
- <col ref="rrgstno1" visibility="hidden"/>
- <col ref="rrgstno2" visibility="hidden"/>
- <col ref="rgstdt" visibility="hidden"/>
- <col ref="status" type="combo">
- <choices>
- <item>
- <label>저장</label>
- <value>T</value>
- </item>
- <item>
- <label>전송</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col ref="reptdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="genrdd" format="yyyy-mm-dd hh:nn"/>
- <col ref="userid"/>
- <col ref="usernm"/>
- <col ref="pid"/>
- <col ref="sex"/>
- <col ref="age"/>
- <col ref="depthngnm"/>
- <col ref="jobkind"/>
- <col ref="workterm"/>
- <col ref="caspid"/>
- <col ref="cashbv"/>
- <col ref="cashcv"/>
- <col ref="cashcvpcr"/>
- <col ref="cashiv"/>
- <col ref="casetc"/>
- <col ref="occdd" visibility="hidden"/>
- <col ref="occplace"/>
- <col ref="occpath"/>
- <col ref="occpart"/>
- <col ref="occworkflag"/>
- <col ref="occtool"/>
- <col ref="occcomment"/>
- <col ref="aftneceyn"/>
- <col ref="aftmanasche"/>
- <col ref="aftrsltmana"/>
- <col ref="rgstid"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row=grd_empinfc.row;
- var fixedrow=grd_empinfc.fixedRows;
- if(row>=fixedrow){
- setParameter("instcd", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("instcd")));
- setParameter("personkind", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("personkind")));
- //setParameter("rrgstno1", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("rrgstno1")));
- //setParameter("rrgstno2", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("rrgstno2")));
- setParameter("rgstdt", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("rgstdt")));
- setParameter("rgstid", grd_empinfc.valueMatrix(row, grd_empinfc.colRef("rgstid")));
- modal("SMASI01000", 1, 0, 0 ,"", "", "");
- }
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption25" class="tit_2" style="left:0px; top:50px; width:173px; height:14px; ">직원감염노출보고서리스트</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|