SMRAD01900_지출번호수정.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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. <grnt>
  11. <grntlist2>
  12. <gubun/>
  13. <pumno/>
  14. <rmrk/>
  15. <keumak/>
  16. <ymdgive/>
  17. <flagseq/>
  18. <pjid/>
  19. <ymdwrite/>
  20. <seqwrite/>
  21. <flagseqold/>
  22. <fromdd/>
  23. <todd/>
  24. </grntlist2>
  25. </grnt>
  26. </main>
  27. <send>
  28. <paydedu>
  29. <instcd/>
  30. <fromdd/>
  31. <todd/>
  32. </paydedu>
  33. <save>
  34. <grntlist1/>
  35. </save>
  36. </send>
  37. <hidden>
  38. <item>
  39. <pumno/>
  40. </item>
  41. </hidden>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. initialize();
  47. ]]>
  48. </script>
  49. <submission id="TRRAD01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  50. <submission id="TXRAD01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  51. </model>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  56. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  57. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  58. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  59. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  60. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  61. <script type="javascript">
  62. <![CDATA[
  63. function fOpenPopupDeptHelp(pControl, pInstance)
  64. {
  65. misfOpenPopUpList("02", pControl, "", pInstance);
  66. model.refresh();
  67. }
  68. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  69. {
  70. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  71. model.refresh();
  72. }
  73. function initialize(){
  74. misfGridInit(grd_grntpsn1);
  75. misfMsterDetailSet(grd_grntpsn1,null, "TRRAD01901" ,"Y");
  76. var curdate = getCurrentDate();
  77. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  78. var deptcd = getUserInfo("dutplcecd");
  79. var deptnm = getUserInfo("dutplcenm");
  80. //var emplno = getUserInfo("userid");
  81. //var emplnm = getUserInfo("usernm");
  82. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  83. //misfComboComCdListMulti("R0001","grd_grntpsn1.bankcode");
  84. model.refresh();
  85. }
  86. function Popup(){
  87. var ymd = model.getValue("/root/main/grnt/grntlist1/junpyodate");
  88. var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
  89. var ydeptcd = model.getValue("/root/main/grnt/grntlist1/yogudeptcd");
  90. if (ymd != "" && mdeptcd != "" && ydeptcd != ""){
  91. model.setValue("/root/popdata/junpyodate", ymd);
  92. model.setValue("/root/popdata/makedeptcd", mdeptcd);
  93. model.setValue("/root/popdata/yogudeptcd", ydeptcd);
  94. model.setValue("/root/popdata/pumgubun", "3");
  95. modal("SPRAD00400", "", "", "", "SPRAD00400","/root/popdata","/root/popdata");
  96. }
  97. }
  98. ]]>
  99. </script>
  100. </xhtml:head>
  101. <xhtml:body>
  102. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  103. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">지출번호수정</caption>
  104. </group>
  105. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  106. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  107. <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
  108. <caption>조회</caption>
  109. <script type="javascript" ev:event="DOMActivate">
  110. <![CDATA[
  111. misfMsterDetailRetrieve();
  112. grd_grntpsn1.row = 0;
  113. ]]>
  114. </script>
  115. </button>
  116. <line id="line13" class="line_4" visibility="hidden" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
  117. <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1192px; y2:71px; "/>
  118. <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:78px; top:17px; width:115px; height:19px; ">
  119. <choices>
  120. <itemset>
  121. <label/>
  122. <value/>
  123. </itemset>
  124. </choices>
  125. </select1>
  126. <caption id="caption2" class="search_name" style="left:12px; top:18px; width:61px; height:17px; ">기관 :</caption>
  127. <datagrid id="grd_grntpsn1" nodeset="/root/main/grnt/grntlist2" caption="구분^품의번호^적요^금액^지출일자^지출번호^프로젝트^caption1^caption2^caption3^caption4^caption5" colsep="^" colwidth="89, 119, 379, 118, 107, 64, 277, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:77px; width:1192px; height:665px; ">
  128. <col disabled="true" ref="gubun" type="combo">
  129. <choices>
  130. <item>
  131. <label>구매</label>
  132. <value>A</value>
  133. </item>
  134. <item>
  135. <label>품의</label>
  136. <value>B</value>
  137. </item>
  138. <item>
  139. <label>일반</label>
  140. <value>C</value>
  141. </item>
  142. </choices>
  143. </col>
  144. <col ref="pumno" style="text-align:center; "/>
  145. <col ref="rmrk"/>
  146. <col ref="keumak" format="(-)#,###" style="text-align:right; "/>
  147. <col ref="ymdgive" format="yyyy-mm-dd" style="text-align:center; "/>
  148. <col ref="flagseq" type="input" format="99999" style="text-align:center; "/>
  149. <col ref="pjid" type="input" format="99999"/>
  150. <col ref="ymdwrite" visibility="hidden"/>
  151. <col ref="seqwrite" visibility="hidden"/>
  152. <col ref="flagseqold" visibility="hidden"/>
  153. <col ref="fromdd" visibility="hidden"/>
  154. <col ref="todd" visibility="hidden"/>
  155. <script type="javascript" ev:event="xforms-value-changed">
  156. <![CDATA[
  157. /*
  158. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "flagwrite" && model.getValue("/root/send/paydedu/newgb") == "I") {
  159. var flagwrite = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagwrite");
  160. if (flagwrite == "Y"){
  161. var seq = model.getValue("/root/send/paydedu/flagseq");
  162. if (isNaN(seq) || seq == null || seq == ""){
  163. seq = 0;
  164. }
  165. seq = parseInt(seq) + 1;
  166. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", seq);
  167. model.setValue("/root/send/paydedu/flagseq", seq);
  168. }else{
  169. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", "");
  170. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/ymdgive", "");
  171. }
  172. model.refresh();
  173. }
  174. */
  175. ]]>
  176. </script>
  177. <script type="javascript" ev:event="onaftersort">
  178. <![CDATA[
  179. grd_grntpsn1.gridToInstance();
  180. ]]>
  181. </script>
  182. </datagrid>
  183. <input id="ipt_unsldd" ref="/root/send/paydedu/fromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:320px; top:19px; width:115px; height:19px; text-align:center; ">
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. if (model.getValue("/root/send/paydedu/fromdd") != "" && model.getValue("/root/send/paydedu/todd") != ""){
  187. btn_search.dispatch("DOMActivate");
  188. }
  189. /*
  190. for (var i = 1; i < grd_grntpsn1.rows;i++){
  191. model.setValue("/root/main/grnt/grntlist2[" + i + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
  192. }
  193. model.refresh();
  194. */
  195. ]]>
  196. </script>
  197. </input>
  198. <caption id="caption5" class="search_name" style="left:230px; top:18px; width:86px; height:17px; ">지급일자 :</caption>
  199. <input id="input17" ref="/root/send/paydedu/todd" class="input_s_essential" navindex="2" inputtype="date" style="left:460px; top:19px; width:110px; height:19px; text-align:center; ">
  200. <script type="javascript" ev:event="xforms-value-changed">
  201. <![CDATA[
  202. if (model.getValue("/root/send/paydedu/fromdd") != "" && model.getValue("/root/send/paydedu/todd") != ""){
  203. btn_search.dispatch("DOMActivate");
  204. }
  205. ]]>
  206. </script>
  207. </input>
  208. <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:131px; height:13px; ">품의기표내역</caption>
  209. <caption id="caption3" style="left:437px; top:20px; width:20px; height:20px; text-align:center; ">~</caption>
  210. </group>
  211. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  212. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  213. <caption>저장</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. for (var i = 1; i < grd_grntpsn1.rows; i++){
  217. if (model.getValue("/root/main/grnt/grntlist2[" + i + "]/flagseq") == ""){
  218. messageBox(i + "번째 지출번호는 필수 입력항목입니다.", "E999", "");
  219. return;
  220. }
  221. }
  222. if (misfSave("TXRAD01901")){
  223. btn_search.dispatch("DOMActivate");
  224. }
  225. ]]>
  226. </script>
  227. </button>
  228. <button id="button35" class="btn4_letter3" visibility="hidden" style="left:1069px; top:3; width:68px; height:22px; ">
  229. <caption>초기화</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. model.resetInstanceNode("/root/main/grnt/grntlist1");
  233. group3.disabled = false;
  234. grd_grntpsn1.disabled = false;
  235. ipt_unsldd.disabled = false;
  236. ipt_costcntrdeptcd.disabled = false;
  237. combo1.disabled = false;
  238. input4.disabled = false;
  239. input14.disabled = true;
  240. input15.disabled = true;
  241. input10.disabled = true;
  242. model.setValue("/root/send/paydedu/pumno1", "");
  243. model.setValue("/root/send/paydedu/pumno2", "");
  244. initialize();
  245. ]]>
  246. </script>
  247. </button>
  248. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  249. <button id="button3" class="btn2_letter3" visibility="hidden" style="left:1010px; top:5px; width:53px; height:19px; ">
  250. <caption>출력</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. if( messageBox("출력하시겠습니까" , "Q99" ) == 6 ){
  254. exeReportPreview("RPRAD01501", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true","","","","","","","","false");
  255. }
  256. ]]>
  257. </script>
  258. </button>
  259. </group>
  260. </xhtml:body>
  261. </xhtml:html>