SMRTS00500_근무보고서입력.xrw 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. <dutrept/>
  11. <reptinfo/>
  12. <savelist/>
  13. </main>
  14. <hidden/>
  15. <temp>
  16. <title>
  17. <instnm/>
  18. <deptnm/>
  19. </title>
  20. </temp>
  21. <init>
  22. <emplno/>
  23. <emplnm/>
  24. </init>
  25. <send>
  26. <emplno/>
  27. <apprtcdrflag/>
  28. <yy/>
  29. <mm/>
  30. <recyn/>
  31. <dispseq/>
  32. <educyy/>
  33. <systemflag/>
  34. <selectindex/>
  35. </send>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. if (window.document.location.indexOf("C:/CMCProject/application") > -1) {
  41. model.setValue("/root/send/emplno", getUserId());
  42. //ipt_emplno.attribute("class") ="input"
  43. ipt_emplno.refresh();
  44. } else {
  45. model.setValue("/root/send/emplno", getUserId());
  46. ipt_emplno.refresh();
  47. }
  48. fFormReady();
  49. ]]>
  50. </script>
  51. <submission id="TRRTS00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutrept"/>
  52. <submission id="TRRTS00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reptinfo"/>
  53. <submission id="TXRTS00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savelist"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  59. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00500.js"/>
  60. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  61. </xhtml:head>
  62. <xhtml:body>
  63. <group id="group1" style="left:0px; top:0px; width:850px; height:13px; ">
  64. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">근무보고서 입력</caption>
  65. </group>
  66. <group id="group2" scroll="auto" style="left:0px; top:38px; width:850px; height:744px; ">
  67. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:845px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  68. <caption id="caption2" class="search_name" style="left:465px; top:15px; width:86px; height:17px; ">작성년월 :</caption>
  69. <caption id="caption1" class="search_name" style="left:675px; top:15px; width:86px; height:17px; ">사원번호 :</caption>
  70. <select1 id="cmb_yyyymm" ref="/root/send/dispseq" class="combo_s_essential" appearance="minimal" style="left:555px; top:14px; width:100px; height:19px; ">
  71. <choices>
  72. <itemset nodeset="/root/main/dutrept/dutreptlist">
  73. <label ref="dispnm"/>
  74. <value ref="dispseq"/>
  75. </itemset>
  76. </choices>
  77. <script type="javascript" ev:event="xforms-select">
  78. <![CDATA[
  79. fRefDutRept();
  80. ]]>
  81. </script>
  82. <script type="javascript" ev:event="xforms-value-changed">
  83. <![CDATA[
  84. // 미래의 근무보고서 입력 불가(현재달은 다음달 10일까지 작성할수 있다)
  85. var sSelNum = model.getValue("/root/send/selectindex");
  86. var sYymm = cmb_yyyymm.value;
  87. var sYyMn = sYymm.substr(0,6);
  88. // var sMm = (sYymm.substr(4,6) + 1 > 9) ? (sYymm.substr(4,6) + 1) : "0" + (sYymm.substr(4,6) + 1);
  89. var sYymmdd = sYyMn.toString()
  90. // + sMm.toString() + sDd.toString()
  91. var today = getCurrentDate().substr(0,6);
  92. if(today < sYymmdd)
  93. {
  94. messageBox("미래의 월은 조회 ","E001");
  95. cmb_yyyymm.select(sSelNum);
  96. return;
  97. }
  98. /*이미 작성한 지난달 근무보고서는 선택 불가 */
  99. var sCheckSelected = cmb_yyyymm.label.length;
  100. if(sCheckSelected <= 3 )
  101. {
  102. if(sYymmdd.substr(4,6) < getCurrentDate().substr(4,6))
  103. {
  104. messageBox("이미 작성한 달의 근무보고서는 조회 ","E001");
  105. cmb_yyyymm.select(sSelNum);
  106. return;
  107. }
  108. }
  109. ]]>
  110. </script>
  111. </select1>
  112. <input id="ipt_emplno" ref="/root/send/emplno" class="output_fix" style="left:765px; top:13px; width:70px; height:19px; "/>
  113. <group id="grup_base" style="left:5px; top:50px; width:835px; height:685px; ">
  114. <script type="javascript" ev:event="onclick">
  115. <![CDATA[
  116. if(event.target =="btn_helppsn"){
  117. rpbfOpenPopUpList("SPRTC00900", ipt_emplno_h, "emplno,emplnm", "","N");
  118. ipt_recmguidmedispcldremplno.value = ipt_emplno_h.value ;
  119. ipt_recmguidmedispcldremplnm.value = ipt_emplnm_h.value ;
  120. ipt_emplno_h.value = "";
  121. ipt_emplnm_h.value = "";
  122. ipt_emplno_h.refresh();
  123. ipt_emplnm_h.refresh();
  124. }
  125. if(event.target =="btn_helppsntrng"){
  126. rpbfOpenPopUpList("SPRTC00900", ipt_emplno_h, "emplno,emplnm", "","N");
  127. ipt_recmapprtcdremplno.value = ipt_emplno_h.value ;
  128. ipt_recmapprtcdremplnm.value = ipt_emplnm_h.value ;
  129. ipt_emplno_h.value = "";
  130. ipt_emplnm_h.value = "";
  131. ipt_emplno_h.refresh();
  132. ipt_emplnm_h.refresh();
  133. }
  134. ]]>
  135. </script>
  136. </group>
  137. <datagrid id="grd_saverept" nodeset="/root/main/reptinfo/reptqestlist" visibility="hidden" caption="yy^frommm^emplno^reptitemid^dutreptsubjtivquestansw^dutreptobjtivtestansw^dutreptetcansw^recmguidmedispcldremplno^recmguidmedispcldremplnm^recmapprtcdremplno^recmapprtcdremplnm" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:30px; top:90px; width:710px; height:100px; ">
  138. <col ref="yy"/>
  139. <col ref="frommm"/>
  140. <col ref="emplno"/>
  141. <col ref="reptitemid"/>
  142. <col ref="dutreptsubjtivquestansw"/>
  143. <col ref="dutreptobjtivtestansw"/>
  144. <col ref="dutreptetcansw"/>
  145. <col ref="recmguidmedispcldremplno"/>
  146. <col ref="recmguidmedispcldremplnm"/>
  147. <col ref="recmapprtcdremplno"/>
  148. <col ref="recmapprtcdremplnm"/>
  149. </datagrid>
  150. <output id="output3" ref="/root/temp/title/deptnm" class="output_fix" style="left:310px; top:15px; width:130px; height:19px; "/>
  151. <output id="output1" ref="/root/temp/title/instnm" class="output_fix" style="left:95px; top:15px; width:130px; height:19px; "/>
  152. <shape id="roundrect3" class="roundrect_btnset" appearance="roundrect" style="left:0px; top:45px; width:845px; height:695px; "/>
  153. <caption id="caption3" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">근무병원 :</caption>
  154. <caption id="caption4" class="search_name" style="left:235px; top:15px; width:86px; height:17px; ">임상과 :</caption>
  155. <input id="ipt_emplno_h" ref="/root/init/emplno" class="output_fix" visibility="hidden" style="left:695px; top:5px; width:10px; height:19px; "/>
  156. <input id="ipt_emplnm_h" ref="/root/init/emplnm" class="output_fix" visibility="hidden" style="left:680px; top:5px; width:10px; height:19px; "/>
  157. <input id="ipt_systemflag" ref="/root/send/systemflag" class="output_fix" visibility="hidden" style="left:710px; top:5px; width:10px; height:19px; "/>
  158. </group>
  159. <group id="grp_btn" scroll="auto" ref="/root/init/emplno" style="left:0px; top:12px; width:845px; height:27px; ">
  160. <button id="btn_save" class="btn4_letter2" style="left:786px; top:3px; width:56px; height:22px; ">
  161. <caption>저장</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. fSave();
  165. ]]>
  166. </script>
  167. </button>
  168. </group>
  169. </xhtml:body>
  170. </xhtml:html>