SMRSO22900_물품이동내역승인.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. <moveconf>
  11. <moveconflist/>
  12. </moveconf>
  13. </main>
  14. <send>
  15. <search>
  16. <instcd/>
  17. <fromdeptcd/>
  18. <fromdeptnm/>
  19. <movefromdd/>
  20. <movetodd/>
  21. <movegubun>2</movegubun>
  22. </search>
  23. <save>
  24. <moveconflist/>
  25. </save>
  26. </send>
  27. <init>
  28. </init>
  29. <hidden/>
  30. <temp>
  31. </temp>
  32. </root>
  33. </instance>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. //화면 Control을 초기화한다
  37. misfGridInit(grd_moveconflist);
  38. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  39. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd"));
  40. model.setValue("/root/send/search/movefromdd" , getCurrentDate());
  41. model.setValue("/root/send/search/movetodd" , getCurrentDate());
  42. model.setValue("/root/send/search/fromdeptcd",getUserInfo("dutunitcd"));
  43. model.setValue("/root/send/search/fromdeptnm",getUserInfo("dutunitnm"));
  44. model.refresh();
  45. ]]>
  46. </script>
  47. <submission id="TRRSO22901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/moveconf"/>
  48. <submission id="TXRSO22901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  54. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  55. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  57. <script type="javascript">
  58. <![CDATA[
  59. ]]>
  60. </script>
  61. </xhtml:head>
  62. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  63. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  64. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:15px; ">물품이동내역승인(물품받는부서)</caption>
  65. </group>
  66. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  67. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25px; "/>
  68. <button id="btn_save" class="btn4_letter2" navindex="12" style="left:1138px; top:3px; width:56px; height:22px; ">
  69. <caption>저장</caption>
  70. <script type="javascript" ev:event="DOMActivate">
  71. <![CDATA[
  72. model.setValue("/root/send/save/moveconflist",grd_moveconflist.getUpdateData());
  73. if(submit("TXRSO22901")){
  74. btn_search.dispatch("DOMActivate");
  75. }
  76. ]]>
  77. </script>
  78. </button>
  79. <button id="btn_help" class="btn4_letter3" navindex="12" style="left:1070px; top:3px; width:68px; height:22px; ">
  80. <caption>도움말</caption>
  81. <script type="javascript" ev:event="DOMActivate">
  82. <![CDATA[
  83. window.load("SMRSO22901.xrw", "modeless","", "", "","");
  84. ]]>
  85. </script>
  86. </button>
  87. </group>
  88. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  89. <group id="grp_search" style="left:0px; top:0px; width:1195px; height:36px; vertical-align:top; ">
  90. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  91. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1128px; top:6px; width:56px; height:22px; ">
  92. <caption>조회</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. if(opt_fromdeptcd.value == "") {
  96. messageBox("부서가 선택되지 않았습니다. \n\n먼저 부서를 선택하십시요.", "E999", "");
  97. model.setFocus("ipt_fromdeptcd");
  98. return;
  99. };
  100. if(ipt_movefromdd.value.length < 8) {
  101. messageBox("이동일자가 선택되지 않았거나 잘못되었습니다. \n\n먼저 이동일자를 선택하십시요.", "E999", "");
  102. model.setFocus("ipt_movefromdd");
  103. return;
  104. };
  105. if(ipt_movetodd.value.length < 8) {
  106. messageBox("이동일자가 선택되지 않았거나 잘못되었습니다. \n\n먼저 이동일자를 선택하십시요.", "E999", "");
  107. model.setFocus("ipt_movetodd");
  108. return;
  109. };
  110. misfGridInit(grd_moveconflist);
  111. if(submit("TRRSO22901")){
  112. for(i = 1 ; i < grd_moveconflist.rows ; i++){
  113. var movegubun = grd_moveconflist.valueMatrix(i, grd_moveconflist.colRef("movegubun"))
  114. if(movegubun == "2"){
  115. grd_moveconflist.cellAttribute("disabled", i, grd_moveconflist.colRef("movegubun")) = "true";
  116. }
  117. }
  118. }
  119. ]]>
  120. </script>
  121. </button>
  122. <line id="line30" class="line_4" style="x1:1115px; y1:5px; x2:1115px; y2:30px; "/>
  123. <button id="btn_delivedeptcd" class="icon_search" navindex="5" style="left:397px; top:8px; width:16px; height:16px; ">
  124. <caption/>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. misfOpenPopUpList("02", ipt_fromdeptcd,"", "fromdeptcd,fromdeptnm");
  128. ipt_fromdeptcd.refresh();
  129. opt_fromdeptcd.refresh();
  130. ]]>
  131. </script>
  132. </button>
  133. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:67px; top:8px; width:136px; height:19px; text-align:center; ">
  134. <choices>
  135. <itemset nodeset="/root/main/init">
  136. <label ref="cnstnm"/>
  137. <value ref="cnstcd"/>
  138. </itemset>
  139. </choices>
  140. </select1>
  141. <input id="ipt_movetodd" ref="/root/send/search/movetodd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:800px; top:8px; width:85px; height:19px; text-align:center; ">
  142. <script type="javascript" ev:event="xforms-value-changed">
  143. <![CDATA[
  144. ]]>
  145. </script>
  146. </input>
  147. <caption id="caption20" class="search_name" style="left:235px; top:9px; width:81px; height:17px; vertical-align:middle; ">부서:</caption>
  148. <caption id="caption4" style="left:785px; top:9px; width:20px; height:20px; ">~</caption>
  149. <input id="ipt_fromdeptcd" ref="/root/send/search/fromdeptcd" class="input_default" navindex="4" style="left:290px; top:8px; width:105px; height:19px; ">
  150. <script type="javascript" ev:event="xforms-value-changed">
  151. <![CDATA[
  152. misfValidationCheck("02", "", "fromdeptcd,fromdeptnm" );
  153. ipt_fromdeptcd.refresh();
  154. opt_fromdeptcd.refresh();
  155. ]]>
  156. </script>
  157. <script type="javascript" ev:event="onkeypress">
  158. <![CDATA[
  159. //2012.04.05 박준범 추가
  160. inputEnterKey("ipt_fromdeptcd", "xforms-value-changed");
  161. ]]>
  162. </script>
  163. </input>
  164. <input id="ipt_movefromdd" ref="/root/send/search/movefromdd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:695px; top:8px; width:85px; height:19px; text-align:center; ">
  165. <script type="javascript" ev:event="xforms-value-changed">
  166. <![CDATA[
  167. ]]>
  168. </script>
  169. </input>
  170. <caption id="cap_instcd" class="search_name" style="left:13px; top:9px; width:86px; height:17px; ">기관:</caption>
  171. <output id="opt_fromdeptcd" ref="/root/send/search/fromdeptnm" class="output_fix" appearance="output" style="left:415px; top:8px; width:156px; height:19px; "/>
  172. <caption id="caption9" class="search_name" style="left:614px; top:9px; width:86px; height:17px; ">이동일자:</caption>
  173. </group>
  174. <caption id="caption2" class="tit_2" style="left:0px; top:45px; width:215px; height:13px; ">이동요청내역승인(물품받는부서)</caption>
  175. <datagrid id="grd_moveconflist" nodeset="/root/main/moveconf/moveconflist" class="datagrid2" caption="이동일자^물품코드^물품명^규격^수량^물품보내는부서^물품받는부서^이동승인^caption1^caption2" colsep="^" colwidth="103, 125, 234, 233, 60, 170, 170, 60, 1, 1, 1, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="9" style="left:0px; top:65px; width:1195px; height:650px; ">
  176. <col ref="movedd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  177. <col disabled="true" ref="goodcd" type="output"/>
  178. <col ref="goodhngnm"/>
  179. <col ref="goodspec"/>
  180. <col ref="moveqty" type="input" style="text-align:center; "/>
  181. <col ref="fromdeptnm" type="output"/>
  182. <col ref="todeptnm" type="output"/>
  183. <col ref="movegubun" type="combo" style="text-align:center; ">
  184. <choices>
  185. <item>
  186. <label>Y</label>
  187. <value>2</value>
  188. </item>
  189. <item>
  190. <label>N</label>
  191. <value>1</value>
  192. </item>
  193. </choices>
  194. </col>
  195. <col ref="instcd" visibility="hidden"/>
  196. <col ref="moveno" visibility="hidden"/>
  197. <col ref="fromdeptcd" visibility="hidden"/>
  198. <col ref="todeptcd" visibility="hidden"/>
  199. <script type="javascript" ev:event="onbuttonclick">
  200. <![CDATA[
  201. if(grd_movereqlist.colAttribute(grd_movereqlist.col,"ref") == "goodcd"){
  202. rszfOpenPopUpListByWndName(grd_movereqlist,"","goodcd,allsizespecid,goodhngnm,goodspec,purcunit","SPRSD00210","instcd","cmb_instcd","Y");
  203. }
  204. ]]>
  205. </script>
  206. </datagrid>
  207. <line id="line3" class="line_1" style="x1:0px; y1:60px; x2:1195px; y2:60px; "/>
  208. <button id="btn_add" class="btn2_letter4" navindex="10" style="left:1128px; top:40px; width:64px; height:19px; ">
  209. <caption>전체승인</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. for(i = 1 ; i < grd_moveconflist.rows ; i++){
  213. var movegubun = grd_moveconflist.valueMatrix(i, grd_moveconflist.colRef("movegubun"));
  214. if(movegubun != "2"){
  215. grd_moveconflist.valueMatrix(i, grd_moveconflist.colRef("movegubun")) = "2";
  216. grd_moveconflist.rowStatus(i) = 2;
  217. }
  218. }
  219. grd_moveconflist.refresh();
  220. ]]>
  221. </script>
  222. </button>
  223. </group>
  224. </xhtml:body>
  225. </xhtml:html>