SMRFE02200_예방점검매뉴얼등록.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.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. <prvnchkmanual>
  11. <prvnchkmanuallist/>
  12. </prvnchkmanual>
  13. <zz/>
  14. </main>
  15. <send>
  16. <search>
  17. <fixasetnm/>
  18. <goodspec/>
  19. </search>
  20. <save>
  21. <prvnchkmanuallist/>
  22. </save>
  23. </send>
  24. <init>
  25. </init>
  26. <hidden>
  27. <file/>
  28. </hidden>
  29. <temp>
  30. </temp>
  31. </root>
  32. </instance>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. //화면 Control을 초기화한다
  36. misfGridInit(grd_prvnchkmanuallist);
  37. misfMsterDetailSet(grd_prvnchkmanuallist, null, "TRRFE02201" ,"Y","free");
  38. //misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  39. //model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
  40. misfMsterDetailRetrieve();
  41. model.refresh();
  42. ]]>
  43. </script>
  44. <submission id="TRRFE02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" add="top" resultref="/root/main/prvnchkmanual"/>
  45. <submission id="TXRFE02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  46. <submission id="TXRFE02202" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/hidden/file" resultref="/root/main/filepath"/>
  47. <submission id="TRRFE02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main"/>
  48. </model>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  53. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  54. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  55. <script type="javascript">
  56. <![CDATA[
  57. //조회조건 변경시 Grid 초기화
  58. function fSearchCondChanged() {
  59. model.removeNodeset(grd_stock.nodeset);
  60. model.removeNodeset(grd_win.nodeset);
  61. model.removeNodeset(grd_delive.nodeset);
  62. model.removeNodeset(grd_deptstock.nodeset);
  63. model.refresh();
  64. }
  65. ]]>
  66. </script>
  67. </xhtml:head>
  68. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  69. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  70. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">예방점검 매뉴얼 등록</caption>
  71. </group>
  72. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  73. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1193px; y2:25px; "/>
  74. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  75. <caption>저장</caption>
  76. <script type="javascript" ev:event="DOMActivate">
  77. <![CDATA[
  78. // for(i = 1 ; i < grd_fixedassetsconflist.rows ; i++){
  79. // var confyn = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("confyn"));
  80. // var confdt = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("confdt"));
  81. // if(confyn == "Y" && confdt == ""){
  82. // messageBox(i+"번째행에 승인은 되었지만 승인일자가 없습니다. 입력하여주십시오.", "E999", "");
  83. // grd_fixedassetsconflist.row = i;
  84. // grd_fixedassetsconflist.col = grd_fixedassetsconflist.colRef("confdt");
  85. // grd_fixedassetsconflist.editCell();
  86. // return;
  87. // }
  88. // }
  89. misfSave("TXRFE02201");
  90. btn_search.dispatch("DOMActivate");
  91. ]]>
  92. </script>
  93. </button>
  94. </group>
  95. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  96. <group id="grp_search" style="left:0px; top:9px; width:1195px; height:36px; vertical-align:top; ">
  97. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  98. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1127px; top:6px; width:56px; height:22px; ">
  99. <caption>조회</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. misfGridInit(grd_prvnchkmanuallist);
  103. misfMsterDetailRetrieve();
  104. ]]>
  105. </script>
  106. </button>
  107. <caption id="cap_instcd" class="search_name" style="left:13px; top:9px; width:86px; height:17px; ">장비명</caption>
  108. <line id="line30" class="line_4" style="x1:1115px; y1:5px; x2:1115px; y2:29px; "/>
  109. <caption id="cap_mngtdeptcd_search" class="search_name" style="left:385px; top:9px; width:92px; height:17px; ">규격</caption>
  110. <input id="ipt_fixasetnm" ref="/root/send/search/fixasetnm" style="left:79px; top:8px; width:255px; height:19px; ">
  111. <script type="javascript" ev:event="onkeypress">
  112. <![CDATA[
  113. if(event.keyCode == 13)
  114. {
  115. ipt_fixasetnm.value = ipt_fixasetnm.currentText;
  116. if(ipt_fixasetnm.value != "")
  117. btn_search.dispatch("DOMActivate");
  118. }
  119. ]]>
  120. </script>
  121. </input>
  122. <input id="ipt_goodspec" ref="/root/send/search/goodspec" style="left:439px; top:8px; width:200px; height:19px; ">
  123. <script type="javascript" ev:event="onkeypress">
  124. <![CDATA[
  125. if(event.keyCode == 13)
  126. {
  127. ipt_goodspec.value = ipt_goodspec.currentText;
  128. if(ipt_goodspec.value != "")
  129. btn_search.dispatch("DOMActivate");
  130. }
  131. ]]>
  132. </script>
  133. </input>
  134. </group>
  135. <line id="line1" class="line_1" style="x1:0px; y1:67px; x2:1193px; y2:67px; "/>
  136. <caption id="caption1" class="tit_2" style="left:0px; top:50px; width:180px; height:14px; ">예방점검 매뉴얼</caption>
  137. <datagrid id="grd_prvnchkmanuallist" nodeset="/root/main/prvnchkmanual/prvnchkmanuallist" caption="장비명^규격^서비스 매뉴얼^서비스 매뉴얼^예방점검 매뉴얼^예방점검 매뉴얼^비고^" colsep="^" colwidth="250, 120, 150, 21, 150, 21, 477" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:72px; width:1193px; height:663px; ">
  138. <col disabled="true" ref="fixasetnm" type="input"/>
  139. <col disabled="true" ref="goodspec" type="input"/>
  140. <col ref="service"/>
  141. <col ref="servicepath" type="inputbutton"/>
  142. <col ref="prvnchk"/>
  143. <col ref="prvnchkpath" type="inputbutton"/>
  144. <col ref="cmt" type="input"/>
  145. <script type="javascript" ev:event="onaftersort">
  146. <![CDATA[
  147. grd_prvnchkmanuallist.gridToInstance();
  148. ]]>
  149. </script>
  150. <script type="javascript" ev:event="onbuttonclick">
  151. <![CDATA[
  152. if(grd_prvnchkmanuallist.colAttribute(grd_prvnchkmanuallist.col,"ref") == "servicepath")
  153. {
  154. if(model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/servicepath") == ""){
  155. var files = window.fileDialog("open", ",", false);
  156. if ( files.length <= 0 ) return;
  157. model.makeValue("/root/hidden/file" , files); //전체파일경로와이름을 셋팅
  158. var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
  159. model.setValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/service" , filename);
  160. submit("TXRFE02202");
  161. if(model.getValue("/root/main/filepath[1]/filepath") != ""){
  162. model.setValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/servicepath",model.getValue("/root/main/filepath[1]/filepath"));
  163. if(grd_prvnchkmanuallist.rowStatus(grd_prvnchkmanuallist.row) == 0) grd_prvnchkmanuallist.rowStatus(grd_prvnchkmanuallist.row) = 2;
  164. }
  165. }else{
  166. var filepath = model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/servicepath");
  167. var filenm = model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/service");
  168. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  169. if (localfile != "") {
  170. model.download(getActionURL("TRRWC03003")+"&filepath="+filepath,localfile);
  171. var rtn = messageBox("파일을", "Q004");
  172. if( rtn == 6 ) {
  173. window.exec(localfile);
  174. }
  175. }
  176. }
  177. }
  178. if(grd_prvnchkmanuallist.colAttribute(grd_prvnchkmanuallist.col,"ref") == "prvnchkpath")
  179. {
  180. if(model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/prvnchkpath") == ""){
  181. var files = window.fileDialog("open", ",", false);
  182. if ( files.length <= 0 ) return;
  183. model.makeValue("/root/hidden/file" , files); //전체파일경로와이름을 셋팅
  184. var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
  185. model.setValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/prvnchk" , filename);
  186. submit("TXRFE02202");
  187. if(model.getValue("/root/main/filepath[1]/filepath") != ""){
  188. model.setValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/prvnchkpath",model.getValue("/root/main/filepath[1]/filepath"));
  189. if(grd_prvnchkmanuallist.rowStatus(grd_prvnchkmanuallist.row) == 0) grd_prvnchkmanuallist.rowStatus(grd_prvnchkmanuallist.row) = "2";
  190. }
  191. }else{
  192. var filepath = model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/prvnchkpath");
  193. var filenm = model.getValue("/root/main/prvnchkmanual/prvnchkmanuallist["+grd_prvnchkmanuallist.row+"]/prvnchk");
  194. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  195. if (localfile != "") {
  196. model.download(getActionURL("TRRWC03003")+"&filepath="+filepath,localfile);
  197. var rtn = messageBox("파일을", "Q004");
  198. if( rtn == 6 ) {
  199. window.exec(localfile);
  200. }
  201. }
  202. }
  203. }
  204. model.refresh();
  205. ]]>
  206. </script>
  207. </datagrid>
  208. <upload id="upload1" nodeset="/root/hidden/file" style="left:670px; top:40px; width:100px; height:20px; "/>
  209. </group>
  210. <button id="btn_delrow" class="btn2_letter3" style="left:1140px; top:87px; width:53px; height:19px; ">
  211. <caption>행삭제</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. misfGridIUD(grd_prvnchkmanuallist, "D");
  215. ]]>
  216. </script>
  217. </button>
  218. <button id="btn_dutcdflag" class="btn2_letter3" style="left:1086px; top:87px; width:53px; height:19px; text-align:left; ">
  219. <caption>행추가</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. misfGridIUD(grd_prvnchkmanuallist,"A");
  223. //grd_dutschelist.valueMatrix(grd_dutschelist.row, grd_dutschelist.colRef("deptcd")) = model.getValue("/root/send/dutunitcd");
  224. ]]>
  225. </script>
  226. </button>
  227. </xhtml:body>
  228. </xhtml:html>