SPRFE01100_점검리스트출력.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>점검리스트 출력 조회조건</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <fixmonth>
  12. <fixmonthlist/>
  13. </fixmonth>
  14. <logimg/>
  15. </list>
  16. <prtprvnlist/>
  17. </main>
  18. <send>
  19. <req>
  20. <instcd/>
  21. <formflag>A</formflag>
  22. <mngtdeptcd/>
  23. <mngtdeptnm/>
  24. <installplcecd/>
  25. <installplcenm/>
  26. <fromdd/>
  27. <todd/>
  28. </req>
  29. </send>
  30. <init/>
  31. <hidden/>
  32. <temp/>
  33. </root>
  34. </instance>
  35. <submission id="TRRFE01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/list/fixmonth"/>
  36. <submission id="TRRFE01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/prtprvnlist"/>
  37. </model>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  42. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  43. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  44. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd")); // 기관 설정
  48. model.setValue(ipt_mngtdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  49. model.setValue(ipt_mngtdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  50. rszfGetLabelControlComboList("C0048", "cmb_instcd", "cdnm");
  51. ]]>
  52. </script>
  53. <script type="javascript">
  54. <![CDATA[
  55. var g_comcd_grupids = "";
  56. var g_comcd_ctrls = "";
  57. function fAddComCdList(grupid, ctrlid)
  58. {
  59. if (g_comcd_grupids != "")
  60. g_comcd_grupids += ",";
  61. g_comcd_grupids += grupid;
  62. if (g_comcd_ctrls != "")
  63. g_comcd_ctrls += ",";
  64. g_comcd_ctrls += ctrlid;
  65. }
  66. function fGetStrToArr(str)
  67. {
  68. return str.split(",");
  69. }
  70. function getImgURL(imgcd, type){
  71. if (type == null || type == "") {
  72. type = "gif";
  73. }
  74. return getDomain()+"/himed/webapps/com/commonweb/images/"+imgcd+"." + type;
  75. }
  76. ]]>
  77. </script>
  78. </xhtml:head>
  79. <xhtml:body pagewidth="440" pageheight="420">
  80. <group id="group1" style="left:5px; top:0px; width:327px; height:13px; ">
  81. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:295px; height:15px; ">점검리스트 출력 조회조건</caption>
  82. </group>
  83. <group id="group2" scroll="auto" style="left:5px; top:19px; width:425px; height:331px; ">
  84. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:5px; width:415px; height:315px; background-color:#fffbf2; border-color:#ffd799; "/>
  85. <button id="btn_prn" class="btn6_letter2" navindex="19" style="left:350px; top:272px; width:57px; height:22px; ">
  86. <caption>확인</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. var formflag = model.getValue("/root/send/req/formflag");
  90. if(formflag == "A"){
  91. model.resetInstanceNode("/root/main/list/fixmonth/fixmonthlist");
  92. model.removenode("/root/main/list/fixmonth");
  93. var instcdtmp = model.getValue("/root/send/fixasetlist/instcd_search");
  94. model.makeValue("/root/main/list/logimg/logourl", getImgURL("logo"+getUserInfo("dutplceinstcd"), "gif"));
  95. submit("TRRFE01101");
  96. exeReportPreview("RPRFE01101","XMLSTR");
  97. }else{
  98. var fromdd = model.getValue("/root/send/req/fromdd");
  99. var todd = model.getValue("/root/send/req/todd");
  100. if(fromdd =="" || todd ==""){
  101. messageBox("예방점검리스트에 점검기간을" , "C001");
  102. return;
  103. }else{
  104. model.removenode("/root/main/prtprvnlist");
  105. submit("TRRFE01102");
  106. exeReportPreview("RPRFE01102","XMLSTR");
  107. }
  108. }
  109. ]]>
  110. </script>
  111. </button>
  112. <group id="grup_instcd" style="left:10px; top:25px; width:400px; height:30px; ">
  113. <caption id="cap_instcd" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">기관코드</caption>
  114. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_search" disabled="true" navindex="1" appearance="minimal" style="left:130px; top:5px; width:150px; height:19px; ">
  115. <choices>
  116. <itemset>
  117. <label/>
  118. <value/>
  119. </itemset>
  120. </choices>
  121. </select1>
  122. </group>
  123. <group id="grup_goodflag" style="left:10px; top:54px; width:400px; height:30px; ">
  124. <caption id="cap_formflag" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">양식선택</caption>
  125. <select1 id="cmb_formflag" ref="/root/send/req/formflag" class="combo_search" navindex="2" appearance="minimal" style="left:130px; top:6px; width:150px; height:19px; ">
  126. <choices>
  127. <item>
  128. <label>일상점검일지</label>
  129. <value>A</value>
  130. </item>
  131. <item>
  132. <label>예방점검리스트</label>
  133. <value>B</value>
  134. </item>
  135. </choices>
  136. <script type="javascript" ev:event="xforms-value-changed">
  137. <![CDATA[
  138. var formflag = model.getValue("/root/send/req/formflag");
  139. if(formflag == "B"){
  140. ipt_fromdd.disabled = false;
  141. ipt_todd.disabled = false;
  142. // 점검기간 날자 설정
  143. model.setValue("/root/send/req/fromdd",getCurrentDate().substr(0,4)+"0101");
  144. model.setValue("/root/send/req/todd", getCurrentDate());
  145. model.refresh();
  146. }else{
  147. ipt_fromdd.disabled = true;
  148. ipt_todd.disabled = true;
  149. model.setValue("/root/send/req/fromdd","");
  150. model.setValue("/root/send/req/todd", "");
  151. model.refresh();
  152. }
  153. ]]>
  154. </script>
  155. </select1>
  156. </group>
  157. <group id="grup_deptcd" style="left:10px; top:83px; width:400px; height:30px; ">
  158. <caption id="cap_mngtdeptcd" class="search_name" style="left:10px; top:5px; width:105px; height:17px; ">사용부서</caption>
  159. <input id="ipt_mngtdeptnm" ref="/root/send/req/mngtdeptnm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:233px; top:5px; width:159px; height:19px; "/>
  160. <button id="btn_mngtdeptcd" class="icon_search" navindex="-1" style="left:213px; top:5px; width:16px; height:16px; ">
  161. <caption/>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. misfOpenPopUpList("02", ipt_mngtdeptcd,"", "mngtdeptcd,mngtdeptnm", model.getValue(cmb_instcd.attribute("ref")),"instcd");
  165. ipt_mngtdeptcd.refresh();
  166. ipt_mngtdeptnm.refresh();
  167. ]]>
  168. </script>
  169. </button>
  170. <input id="ipt_mngtdeptcd" ref="/root/send/req/mngtdeptcd" class="input_default" navindex="7" appearance="input" style="left:130px; top:5px; width:80px; height:19px; ">
  171. <script type="javascript" ev:event="xforms-value-changed">
  172. <![CDATA[
  173. misfSearchDept(ipt_mngtdeptnm);
  174. ]]>
  175. </script>
  176. </input>
  177. </group>
  178. <group id="group3" style="left:10px; top:112px; width:400px; height:30px; ">
  179. <caption id="caption1" class="search_name" style="left:10px; top:5px; width:105px; height:17px; ">설치장소</caption>
  180. <input id="ipt_installplcenm" ref="/root/send/req/installplcenm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:233px; top:5px; width:159px; height:19px; "/>
  181. <button id="btn_installplcecd" class="icon_search" navindex="-1" style="left:213px; top:5px; width:16px; height:16px; ">
  182. <caption/>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. misfOpenPopUpList("02", ipt_installplcecd,"", "installplcecd,installplcenm", model.getValue(cmb_instcd.attribute("ref")),"instcd");
  186. ipt_installplcecd.refresh();
  187. ipt_installplcenm.refresh();
  188. ]]>
  189. </script>
  190. </button>
  191. <input id="ipt_installplcecd" ref="/root/send/req/installplcecd" class="input_default" navindex="7" appearance="input" style="left:130px; top:5px; width:80px; height:19px; ">
  192. <script type="javascript" ev:event="xforms-value-changed">
  193. <![CDATA[
  194. misfSearchDept(ipt_installplcenm);
  195. ]]>
  196. </script>
  197. </input>
  198. </group>
  199. <group id="grup_possnddterm" style="left:10px; top:141px; width:400px; height:30px; ">
  200. <caption id="cap_possnddterm" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">점검기간</caption>
  201. <input id="ipt_fromdd" ref="/root/send/req/fromdd" class="input_search" disabled="true" navindex="4" inputtype="date" style="left:130px; top:5px; width:120px; height:19px; "/>
  202. <input id="ipt_todd" ref="/root/send/req/todd" class="input_search" disabled="true" navindex="5" inputtype="date" style="left:272px; top:5px; width:120px; height:19px; "/>
  203. <caption id="caption23" style="left:254px; top:6px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  204. </group>
  205. </group>
  206. </xhtml:body>
  207. </xhtml:html>