SMMNG03502_운송수거관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <takeinfo>
  11. <takelist/>
  12. </takeinfo>
  13. </main>
  14. <send>
  15. <instcdnm/>
  16. <workdd/>
  17. <deptcd/>
  18. <workflag/>
  19. <cdgrupid1>T66</cdgrupid1>
  20. <cdgrupid>T82</cdgrupid>
  21. </send>
  22. <init>
  23. <grupcdinfo1/>
  24. <grupcdinfo/>
  25. <lncdinfo>
  26. <lncdlist/>
  27. </lncdinfo>
  28. </init>
  29. </root>
  30. </instance>
  31. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  35. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  36. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. fInitialize();
  40. ]]>
  41. </script>
  42. <submission id="TRMNG02305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/grupcdinfo"/>
  43. <submission id="TRMNG02306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/grupcdinfo1"/>
  44. <submission id="TRMNG03503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/takeinfo"/>
  45. <submission id="TRMNG03504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/lncdinfo"/>
  46. <submission id="TXMNG03502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
  47. <submission id="TRMNG03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/whiorexinfo"/>
  48. </model>
  49. <script type="javascript">
  50. <![CDATA[
  51. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  52. function fInitialize()
  53. {
  54. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
  55. model.setValue(ipt_workdd.attribute("ref"), getCurrentDate()); //년월
  56. // 중앙공급실 운송수거부서
  57. submit("TRMNG02305");
  58. // 중앙공급실 업무구분
  59. submit("TRMNG02306");
  60. rdo_workflag.value = "L";
  61. rdo_workflag.disabled = true;
  62. grd_takelist.colDisabled(grd_takelist.colRef("goodcd")) = true;
  63. addComboItem("cmb_deptcd","--전체--", "","above");
  64. // 수거용 자루 물품정보 가져오기
  65. submit("TRMNG03504");
  66. }
  67. function fSearch() {
  68. submit("TRMNG03503");
  69. }
  70. function fPrintRex() {
  71. // submit("TRMNG03402");
  72. //
  73. // model.makeNode("/root/send/report/csmtrexinfo");
  74. //
  75. // copyNodesetType("/root/send/report/csmtrexinfo", "/root/main/whiorexinfo");
  76. //
  77. // exeReportPreview("RPMNG03400", "XMLSTR", "/root/send/report/csmtrexinfo");
  78. }
  79. // function fSettingGoodList(pnode) {
  80. //
  81. // var codynode = instance1.selectNodes(pnode + "/*");
  82. //
  83. // var addRow = grd_takelist.rows - grd_takelist.fixedRows;
  84. //
  85. // for (var j = 1; j <= codynode.length; j++)
  86. // {
  87. // if(addRow > grd_takelist.rows - grd_takelist.fixedRows)
  88. // {
  89. // misfGridIUD(grd_takelist,"A");
  90. // addRow = grd_takelist.rows - grd_takelist.fixedRows;
  91. // }
  92. //
  93. // model.setValue(grd_takelist.nodeset + "[" + addRow + "]/deptcd" , model.getValue(pnode +"/" + "grd_takelist" + "[" + j + "]/deptcd") );
  94. // model.setValue(grd_takelist.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + "grd_takelist" + "[" + j + "]/goodcd"));
  95. // model.setValue(grd_takelist.nodeset + "[" + addRow + "]/goodcdseq" , model.getValue(pnode +"/" + "grd_takelist" + "[" + j + "]/goodcdseq"));
  96. // model.setValue(grd_takelist.nodeset + "[" + addRow + "]/lngoodnm" , model.getValue(pnode +"/" + "grd_takelist" + "[" + j + "]/lngoodnm"));
  97. // model.setValue(grd_takelist.nodeset + "[" + addRow + "]/goodmodel" , model.getValue(pnode +"/" + "grd_takelist" + "[" + j + "]/goodmodel"));
  98. // model.setValue(grd_takelist.nodeset + "[" + addRow + "]/goodunit" , model.getValue(pnode +"/" + "grd_takelist" + "[" + j + "]/goodunit"));
  99. // model.setValue(grd_takelist.nodeset + "[" + addRow + "]/workflag" , rdo_workflag.value);
  100. // model.setValue(grd_takelist.nodeset + "[" + addRow + "]/workdd" , ipt_workdd.value);
  101. // model.setValue(grd_takelist.nodeset + "[" + addRow + "]/takeid" , getUserInfo("userid") );
  102. // model.setValue(grd_takelist.nodeset + "[" + addRow + "]/takenm" , getUserInfo("usernm") );
  103. //
  104. // addRow = addRow + 1;
  105. // }
  106. //
  107. // grd_takelist.colDisabled(grd_takelist.colRef("takeflag")) = true;
  108. // grd_takelist.colDisabled(grd_takelist.colRef("deptcd")) = true;
  109. // model.recalculate();
  110. // model.refresh();
  111. //
  112. // }
  113. ]]>
  114. </script>
  115. </xhtml:head>
  116. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1210;2,756;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  117. <group id="grp_tle" style="left:0px; top:0px; width:1185px; height:13px; ">
  118. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">수거 관리</caption>
  119. </group>
  120. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:1185px; height:655px; ">
  121. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:138px; height:14px; ">수거 관리</caption>
  122. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1185px; y2:26px; "/>
  123. <button id="btn_sav" class="btn5_letter2" style="left:1135px; top:3px; width:42px; height:19px; ">
  124. <caption>저장</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. model.makeValue("/root/send/reqdata/takelist", getGridUpdateData(grd_takelist) ) ;
  128. submit("TXMNG03502");
  129. ]]>
  130. </script>
  131. </button>
  132. <datagrid id="grd_takelist" nodeset="/root/main/takeinfo/takelist" visibility="visible" caption="업무구분^부서명^물품코드^상세코드^린넨품명^상세규격^단위^수거량^무게^수거자^수거일시^비고" colsep="^" colwidth="70, 100, 80, 70, 150, 100, 55, 100, 100, 70, 120, 130" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:1185px; height:615px; ">
  133. <col disabled="true" ref="workflag" type="combo">
  134. <choices>
  135. <itemset nodeset="/root/init/grupcdinfo1/grupcdlist">
  136. <label ref="cdnm"/>
  137. <value ref="cdid"/>
  138. </itemset>
  139. </choices>
  140. </col>
  141. <col ref="deptcd" type="combo">
  142. <choices>
  143. <itemset nodeset="/root/init/grupcdinfo/grupcdlist">
  144. <label ref="cdnm"/>
  145. <value ref="cdid"/>
  146. </itemset>
  147. </choices>
  148. </col>
  149. <col disabled="true" ref="goodcd" type="inputbutton"/>
  150. <col ref="goodcdseq"/>
  151. <col ref="lngoodnm"/>
  152. <col ref="goodmodel"/>
  153. <col ref="goodunit"/>
  154. <col ref="takecnt" type="input" format="#,###"/>
  155. <col ref="weight" type="input" forma="#,###"/>
  156. <col ref="takenm"/>
  157. <col ref="takedt" format="yyyy-mm-dd hh:nn:ss"/>
  158. <col ref="remark" type="input"/>
  159. <col ref="takeid" visibility="hidden"/>
  160. <col ref="workdd" visibility="hidden"/>
  161. <col ref="workno" visibility="hidden"/>
  162. <script type="javascript" ev:event="onbuttonclick">
  163. <![CDATA[
  164. if ( grd_takelist.rowStatus(grd_takelist.row) == 1 || grd_takelist.rowStatus(grd_takelist.row) == 3 ) {
  165. grp_lncd.visible = true;
  166. }
  167. ]]>
  168. </script>
  169. </datagrid>
  170. <button id="btn_add" class="btn2_letter2" style="left:1045px; top:3px; width:42px; height:19px; ">
  171. <caption>추가</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. grd_takelist.addRow();
  175. grd_takelist.colDisabled(grd_takelist.colRef("deptcd")) = false;
  176. grd_takelist.colDisabled(grd_takelist.colRef("workflag")) = true;
  177. grd_takelist.valueMatrix(grd_takelist.row, grd_takelist.colRef("workflag")) = rdo_workflag.value;
  178. ]]>
  179. </script>
  180. </button>
  181. <button id="btn_del" class="btn2_letter2" style="left:1090px; top:3px; width:42px; height:19px; ">
  182. <caption>삭제</caption>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. if ( grd_takelist.rowStatus(grd_takelist.row) == 1 || grd_takelist.rowStatus(grd_takelist.row) == 3) {
  186. grd_takelist.deleteRow(grd_takelist.row);
  187. } else {
  188. grd_takelist.rowStatus(grd_takelist.row) = 4;
  189. }
  190. ]]>
  191. </script>
  192. </button>
  193. <group id="grp_lncd" visibility="hidden" style="left:220px; top:140px; width:468px; height:135px; background-color:#339966; border-color:#000000; border-style:solid; ">
  194. <datagrid id="grd_lncdlist" nodeset="/root/init/lncdinfo/lncdlist" visibility="visible" caption="물품코드^상세코드^린넨품명^상세규격^단위" colsep="^" colwidth="80, 60, 150, 86, 83" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:31px; width:463px; height:73px; ">
  195. <col ref="goodcd"/>
  196. <col ref="goodcdseq"/>
  197. <col ref="lngoodnm"/>
  198. <col ref="goodmodel"/>
  199. <col ref="goodunit"/>
  200. <script type="javascript" ev:event="ondblclick">
  201. <![CDATA[
  202. grd_takelist.valueMatrix(grd_takelist.row, grd_takelist.colRef("goodcd")) = grd_lncdlist.valueMatrix(grd_lncdlist.row, grd_lncdlist.colRef("goodcd"));
  203. grd_takelist.valueMatrix(grd_takelist.row, grd_takelist.colRef("goodcdseq")) = grd_lncdlist.valueMatrix(grd_lncdlist.row, grd_lncdlist.colRef("goodcdseq"));
  204. grd_takelist.valueMatrix(grd_takelist.row, grd_takelist.colRef("lngoodnm")) = grd_lncdlist.valueMatrix(grd_lncdlist.row, grd_lncdlist.colRef("lngoodnm"));
  205. grd_takelist.valueMatrix(grd_takelist.row, grd_takelist.colRef("goodmodel")) = grd_lncdlist.valueMatrix(grd_lncdlist.row, grd_lncdlist.colRef("goodmodel"));
  206. grd_takelist.valueMatrix(grd_takelist.row, grd_takelist.colRef("goodunit")) = grd_lncdlist.valueMatrix(grd_lncdlist.row, grd_lncdlist.colRef("goodunit"));
  207. grd_takelist.valueMatrix(grd_takelist.row, grd_takelist.colRef("workdd")) = getCurrentDate();
  208. grp_lncd.visible = false;
  209. ]]>
  210. </script>
  211. </datagrid>
  212. <button id="button1" class="btn2_letter2" style="left:419px; top:109px; width:42px; height:19px; ">
  213. <caption>닫기</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. grp_lncd.visible = false;
  217. ]]>
  218. </script>
  219. </button>
  220. <caption id="caption3" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">물품목록</caption>
  221. </group>
  222. </group>
  223. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
  224. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1062px; top:27px; width:56px; height:22px; ">
  225. <caption>조회</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. fSearch();
  229. ]]>
  230. </script>
  231. </button>
  232. <line id="line2" class="line_4" style="x1:1050px; y1:25px; x2:1050px; y2:50px; "/>
  233. <caption id="cap_csrreqdeptcd" class="search_name" style="left:250px; top:30px; width:81px; height:17px; ">업무일자:</caption>
  234. <input id="ipt_workdd" ref="/root/send/workdd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:335px; top:30px; width:85px; height:19px; ">
  235. <script type="javascript" ev:event="xforms-value-changed">
  236. <![CDATA[
  237. fSearch();
  238. ]]>
  239. </script>
  240. </input>
  241. <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  242. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:30px; width:135px; height:19px; text-align:center; "/>
  243. <button id="btn_prt" class="btn1_letter2" style="left:1125px; top:27px; width:56px; height:22px; ">
  244. <caption>출력</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. fPrintRex();
  248. ]]>
  249. </script>
  250. </button>
  251. <caption id="caption1" class="search_name" style="left:435px; top:30px; width:81px; height:17px; ">부서구분:</caption>
  252. <select1 id="cmb_deptcd" ref="/root/send/deptcd" appearance="minimal" style="left:530px; top:30px; width:100px; height:19px; ">
  253. <choices>
  254. <itemset nodeset="/root/init/grupcdinfo/grupcdlist">
  255. <label ref="cdnm"/>
  256. <value ref="cdid"/>
  257. </itemset>
  258. </choices>
  259. </select1>
  260. <caption id="caption2" class="search_name" style="left:645px; top:30px; width:81px; height:17px; ">업무구분:</caption>
  261. <select1 id="rdo_workflag" ref="/root/send/workflag" appearance="full" cols="4" overflow="visible" style="left:735px; top:30px; width:305px; height:15px; border-style:none; ">
  262. <choices>
  263. <itemset nodeset="/root/init/grupcdinfo1/grupcdlist">
  264. <label ref="cdnm"/>
  265. <value ref="cdid"/>
  266. </itemset>
  267. </choices>
  268. </select1>
  269. </xhtml:body>
  270. </xhtml:html>