SMRSC15000_고정자산이동확인.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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. <fixedassetsconf>
  11. <fixedassetsconflist/>
  12. </fixedassetsconf>
  13. </main>
  14. <send>
  15. <search>
  16. <instcd/>
  17. <mngtdeptcd/>
  18. <mngtdeptnm/>
  19. <fromdd/>
  20. <todd/>
  21. </search>
  22. <save>
  23. <fixedassetsconflist/>
  24. </save>
  25. </send>
  26. <init>
  27. </init>
  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_fixedassetsconflist);
  37. misfMsterDetailSet(grd_fixedassetsconflist, null, "TRRSC15001" ,"Y","free");
  38. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  39. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
  40. model.setValue("/root/send/search/mngtdeptcd", getUserInfo("dutplcecd")); //기관 설정
  41. model.setValue("/root/send/search/mngtdeptnm", getUserInfo("dutplcenm")); //기관 설정
  42. misfMsterDetailRetrieve();
  43. model.setValue("/root/send/search/fromdd", getCurrentDate().toDate("YYYYMMDD").getAddDate(-1, "M").getDateFormat("YYYYMMDD"));
  44. model.setValue("/root/send/search/todd", getCurrentDate());
  45. if(getUserInfo("userid") == "MIS"){
  46. ipt_mngtdeptcd.disabled = false;
  47. btn_mngtdeptcd.disabled = false;
  48. }
  49. for(i = 1 ; i < grd_fixedassetsconflist.rows ; i++){
  50. var confyn = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("tretyn"));
  51. if(confyn == "Y"){
  52. grd_fixedassetsconflist.cellAttribute("disabled",i, 1, i, grd_fixedassetsconflist.colRef("tretyn")) = "true";
  53. }
  54. }
  55. model.refresh();
  56. ]]>
  57. </script>
  58. <submission id="TRRSC15001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" add="top" resultref="/root/main/fixedassetsconf"/>
  59. <submission id="TXRSC15001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  60. </model>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  67. <script type="javascript">
  68. <![CDATA[
  69. //조회조건 변경시 Grid 초기화
  70. function fSearchCondChanged() {
  71. model.removeNodeset(grd_stock.nodeset);
  72. model.removeNodeset(grd_win.nodeset);
  73. model.removeNodeset(grd_delive.nodeset);
  74. model.removeNodeset(grd_deptstock.nodeset);
  75. model.refresh();
  76. }
  77. ]]>
  78. </script>
  79. </xhtml:head>
  80. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  81. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  82. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">고정자산 이동 확인</caption>
  83. </group>
  84. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  85. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1193px; y2:25px; "/>
  86. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  87. <caption>저장</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. for(i = 1 ; i < grd_fixedassetsconflist.rows ; i++){
  91. var confyn = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("confyn"));
  92. var confdt = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("confdt"));
  93. if(confyn == "Y" && confdt == ""){
  94. messageBox(i+"번째행에 승인은 되었지만 승인일자가 없습니다. 입력하여주십시오.", "E999", "");
  95. grd_fixedassetsconflist.row = i;
  96. grd_fixedassetsconflist.col = grd_fixedassetsconflist.colRef("confdt");
  97. grd_fixedassetsconflist.editCell();
  98. return;
  99. }
  100. }
  101. misfSave("TXRSC15001");
  102. btn_search.dispatch("DOMActivate");
  103. ]]>
  104. </script>
  105. </button>
  106. </group>
  107. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  108. <group id="grp_search" style="left:0px; top:9px; width:1195px; height:36px; vertical-align:top; ">
  109. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  110. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1127px; top:6px; width:56px; height:22px; ">
  111. <caption>조회</caption>
  112. <script type="javascript" ev:event="DOMActivate">
  113. <![CDATA[
  114. misfGridInit(grd_fixedassetsconflist);
  115. misfMsterDetailRetrieve();
  116. for(i = 1 ; i < grd_fixedassetsconflist.rows ; i++){
  117. var confyn = grd_fixedassetsconflist.valueMatrix(i, grd_fixedassetsconflist.colRef("tretyn"));
  118. if(confyn == "Y"){
  119. grd_fixedassetsconflist.cellAttribute("disabled",i, 1, i, grd_fixedassetsconflist.colRef("tretyn")) = "true";
  120. }
  121. }
  122. ]]>
  123. </script>
  124. </button>
  125. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:92px; top:8px; width:145px; height:19px; ">
  126. <choices>
  127. <itemset>
  128. <label/>
  129. <value/>
  130. </itemset>
  131. </choices>
  132. </select1>
  133. <caption id="cap_instcd" class="search_name" style="left:13px; top:9px; width:86px; height:17px; ">기관코드</caption>
  134. <line id="line30" class="line_4" style="x1:1115px; y1:5px; x2:1115px; y2:29px; "/>
  135. <input id="ipt_mngtdeptcd" ref="/root/send/search/mngtdeptcd" class="input_search" disabled="true" navindex="3" style="left:329px; top:8px; width:123px; height:19px; ">
  136. <script type="javascript" ev:event="xforms-value-changed">
  137. <![CDATA[
  138. if(ipt_mngtdeptcd.value == ""){
  139. ipt_mngtdeptnm.value = "";
  140. }else {
  141. misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm");
  142. }
  143. model.refresh();
  144. ]]>
  145. </script>
  146. </input>
  147. <button id="btn_mngtdeptcd" class="icon_search" disabled="true" navindex="-1" style="left:457px; top:9px; width:16px; height:16px; ">
  148. <caption/>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. misfOpenPopUpList("02", ipt_mngtdeptcd,"","mngtdeptcd,mngtdeptnm");
  152. model.refresh();
  153. ]]>
  154. </script>
  155. </button>
  156. <input id="ipt_mngtdeptnm" ref="/root/send/search/mngtdeptnm" class="input_search" disabled="true" appearance="input" style="left:476px; top:8px; width:191px; height:19px; "/>
  157. <caption id="cap_mngtdeptcd_search" class="search_name" style="left:250px; top:9px; width:92px; height:17px; ">인수부서</caption>
  158. <caption id="caption4" class="search_name" style="left:685px; top:9px; width:86px; height:17px; ">요청일자</caption>
  159. <input id="ipt_fromdd" ref="/root/send/search/fromdd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:765px; top:8px; width:110px; height:19px; text-align:center; "/>
  160. <input id="ipt_todd" ref="/root/send/search/todd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:895px; top:8px; width:110px; height:19px; text-align:center; "/>
  161. <caption id="caption2" style="left:880px; top:9px; width:15px; height:20px; ">~</caption>
  162. </group>
  163. <line id="line1" class="line_1" style="x1:0px; y1:67px; x2:1193px; y2:67px; "/>
  164. <caption id="caption1" class="tit_2" style="left:0px; top:50px; width:180px; height:13px; ">고정자산 내역</caption>
  165. <datagrid id="grd_fixedassetsconflist" nodeset="/root/main/fixedassetsconf/fixedassetsconflist" caption="자산코드^품명^수량^단가^금액^구입일자^인계부서^인수부서^변동유형^폐기번호^변동사유^요청일자^승인여부^승인일자" colsep="^" colwidth="90, 110, 35, 70, 80, 70, 99, 100, 55, 80, 150, 70, 60, 100, 0, 0, 0, 100" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:72px; width:1193px; height:663px; ">
  166. <col ref="fixasetcd" style="text-align:center; "/>
  167. <col ref="goodflaghngnm"/>
  168. <col ref="fixasetqty" style="text-align:center; "/>
  169. <col ref="unicost" format="(-)#,##0" style="text-align:right; padding-right:5; "/>
  170. <col ref="fixasetamt" format="(-)#,##0" style="text-align:right; padding-right:5; "/>
  171. <col ref="possndd" format="yyyy-mm-dd" style="text-align:center; "/>
  172. <col ref="takeoutdeptnm"/>
  173. <col ref="takeindeptnm"/>
  174. <col disabled="true" ref="chantype" type="combo" style="text-align:center; ">
  175. <choices>
  176. <item>
  177. <label>이동</label>
  178. <value>0</value>
  179. </item>
  180. <item>
  181. <label>폐기</label>
  182. <value>1</value>
  183. </item>
  184. </choices>
  185. </col>
  186. <col ref="disuserno" style="text-align:center; "/>
  187. <col ref="cmt"/>
  188. <col disabled="true" ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  189. <col checkvalue="Y,N" ref="confyn" type="checkbox"/>
  190. <col ref="confdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  191. <col ref="takeoutdeptcd" visibility="hidden"/>
  192. <col ref="instcd" visibility="hidden"/>
  193. <col ref="reqno" visibility="hidden"/>
  194. <col ref="tretyn" visibility="hidden"/>
  195. <script type="javascript" ev:event="onaftersort">
  196. <![CDATA[
  197. grd_fixedassetsconflist.gridToInstance();
  198. ]]>
  199. </script>
  200. <script type="javascript" ev:event="xforms-value-changed">
  201. <![CDATA[
  202. if(grd_fixedassetsconflist.valueMatrix(grd_fixedassetsconflist.row, grd_fixedassetsconflist.colRef("confyn")) == "Y"){
  203. grd_fixedassetsconflist.valueMatrix(grd_fixedassetsconflist.row, grd_fixedassetsconflist.colRef("confdt")) = getCurrentDate();
  204. }
  205. ]]>
  206. </script>
  207. </datagrid>
  208. <button id="btn_excsave" class="btn2_letter4" style="left:1128px; top:47px; width:64px; height:19px; ">
  209. <caption>엑셀저장</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. misfSaveExcel(grd_fixedassetsconflist);
  213. ]]>
  214. </script>
  215. </button>
  216. </group>
  217. </xhtml:body>
  218. </xhtml:html>