SMRAR01300_신용카드신청서관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <maindatalist>
  11. <instcd/>
  12. <lastupdtrid/>
  13. <requestdate/>
  14. <usebuseo/>
  15. <usebuseonm/>
  16. <seqno/>
  17. <adminjeamu/>
  18. <yskeum/>
  19. <silkeum/>
  20. <useplace/>
  21. <frdate/>
  22. <todate/>
  23. <requestcause/>
  24. <admindept/>
  25. <admindeptnm/>
  26. <pumno/>
  27. <cardno/>
  28. <receiptsabun/>
  29. <adminceo/>
  30. <lastupdtdt/>
  31. <fstrgstdt/>
  32. <attend/>
  33. </maindatalist>
  34. <printdata>
  35. <usebuseonm/>
  36. <yskeum/>
  37. <useplace/>
  38. <frdate/>
  39. <todate/>
  40. <requestcause/>
  41. <requestdate/>
  42. <admindeptnm/>
  43. </printdata>
  44. </main>
  45. <send>
  46. <instcd/>
  47. <frdate/>
  48. <todate/>
  49. </send>
  50. <hidden>
  51. <save/>
  52. </hidden>
  53. <init>
  54. <cardnolist>
  55. <label/>
  56. <value/>
  57. <jobposcd/>
  58. </cardnolist>
  59. </init>
  60. <temp/>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. model.removenode( "/root/main/maindatalist");
  66. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  67. var dt = new Date();
  68. var lastdt = new Date(dt.getYear(), dt.getMonth()+1, 0);
  69. ipt_frdate.value = getCurrentDate().substr(0, 6) + "01";
  70. ipt_todate.value = getCurrentDate().substr(0, 6) + lastdt.getDate();
  71. model.setFocus("ipt_frdate");
  72. submit("TRRAR01202");
  73. button2.dispatch("DOMActivate");
  74. model.refresh();
  75. ]]>
  76. </script>
  77. <script type="javascript">
  78. <![CDATA[
  79. //조회
  80. function fGetMainDataList() {
  81. /*
  82. if (opt_seqline.value == ""){
  83. messageBox("일자별 SEQ ","C001");
  84. return false;
  85. }*/
  86. return true;
  87. }
  88. //저장시 입력data checking logic..
  89. function fSetChackValue()
  90. {
  91. var updtdata = getGridUpdateData(grd_main);
  92. if (updtdata == ""){
  93. messageBox("변경된 데이터가","I004");
  94. return false;
  95. }
  96. var row = grd_main.row;
  97. for ( var i = grd_main.fixedRows; i <= grd_main.rows; i++ ) {
  98. if ( grd_main.rowStatus(i)=='1' || grd_main.rowStatus(i)=='2' ) { //insert, update..
  99. //alert(grd_main.valueMatrix(i, grd_main.colRef("yskeum")).length+" / "+grd_main.valueMatrix(i, grd_main.colRef("useplace")).length +" / "+grd_main.valueMatrix(i, grd_main.colRef("requestcause")).length );
  100. if ( grd_main.valueMatrix(i, grd_main.colRef("yskeum")).length==0 || grd_main.valueMatrix(i, grd_main.colRef("yskeum"))==0 ){
  101. messageBox("예상금액을" ,"C001");
  102. grd_main.row = i;
  103. grd_main.col = grd_main.colRef("yskeum");
  104. grd_main.editCell();
  105. return false;
  106. }
  107. }
  108. }
  109. //rtn = messageBox("", "Q002");
  110. //if(rtn != "6" ) return false;
  111. return true;
  112. }
  113. //정렬 순서로 sort함.
  114. function fGetSortSeq(){
  115. var num = grd_main.rows- 1;
  116. if(rdo_seq.value == 1){
  117. grd_main.sort(1, 2, num, 2) = "asc";
  118. }else{
  119. grd_main.sort(1, 3, num, 3) = "asc";
  120. }
  121. model.refresh();
  122. }
  123. //출력물순서 저장
  124. //엑셀 입력
  125. function fInputExcel(pGrid) {
  126. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  127. if(fileName != "") {
  128. pGrid.loadExcel(fileName, 1, true);
  129. pGrid.deleteRow(1);
  130. for(i = 1; i < pGrid.rows; i++) {
  131. pGrid.rowStatus(i) = 1;
  132. }
  133. pGrid.refresh();
  134. }
  135. }
  136. ]]>
  137. </script>
  138. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  139. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  140. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  141. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  142. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  143. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  144. <submission id="TRRAR01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/maindatalist"/>
  145. <submission id="TRRAR01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cardnolist"/>
  146. <submission id="TXRAR01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/save" resultref="/root/temp"/>
  147. </model>
  148. </xhtml:head>
  149. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  150. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  151. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">법인카드 사용신청승인</caption>
  152. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  153. </group>
  154. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  155. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:38px; vertical-align:top; ">
  156. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:38; background-color:#fffbf2; border-color:#ffd799; "/>
  157. <button id="button2" class="btn1_letter2" navindex="4" style="left:1123px; top:9px; width:56px; height:22px; text-align:left; ">
  158. <caption>조회</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. if( fGetMainDataList() ) {
  162. //setAlertOn();
  163. submit("TRRAR01301");
  164. model.refresh();
  165. }
  166. ]]>
  167. </script>
  168. </button>
  169. <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  170. <input id="ipt_frdate" ref="/root/send/frdate" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:100px; top:9px; width:100px; height:19px; "/>
  171. <caption id="caption3" class="search_name" style="left:11px; top:9px; width:89px; height:17px; ">신청일자 :</caption>
  172. <input id="ipt_todate" ref="/root/send/todate" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:220px; top:9px; width:100px; height:19px; "/>
  173. <caption id="caption2" style="left:205px; top:10px; width:15px; height:20px; ">~</caption>
  174. </group>
  175. <line id="line3" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
  176. <datagrid id="grd_main" nodeset="/root/main/maindatalist" caption="사용자^신청일자^사용부서^사용부서명^일련번호^재무확인^예상금액^실사용금액^사용처^사용시작^사용종료^신청사유^참석인원^부서장^품의번호^카드번호^카드수령자사번^instcd" colsep="^" colwidth="60, 80, 80, 100, 60, 60, 80, 80, 190, 100, 100, 260, 250, 60, 100, 140, 90, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:80px; width:1194px; height:635px; ">
  177. <col ref="lastupdtrid" style="left:106px; top:23px; width:128px; height:23px; text-align:center; "/>
  178. <col class="input_s_essential" ref="requestdate" type="input" format="yyyy-mm-dd" style="left:80px; top:23px; width:80px; height:23px; text-align:center; "/>
  179. <col ref="usebuseo" style="text-align:center; "/>
  180. <col ref="usebuseonm" style="text-align:center; "/>
  181. <col ref="seqno" style="left:904px; top:23px; width:100px; height:23px; text-align:right; "/>
  182. <col checkvalue="Y,N" ref="adminjeamu" type="checkbox" style="text-align:center; "/>
  183. <col class="input_s_essential" ref="yskeum" type="input" format="(-)#,###" style="text-align:right; "/>
  184. <col class="input_s_essential" ref="silkeum" type="input" format="(-)#,###" style="text-align:right; "/>
  185. <col class="input_s_essential" ref="useplace" type="input" style="text-align:left; "/>
  186. <col class="input_s_essential" ref="frdate" type="inputdate" format="yyyy-mm-dd" style="left:1099px; top:23px; width:100px; height:23px; text-align:left; "/>
  187. <col class="input_s_essential" ref="todate" type="inputdate" format="yyyy-mm-dd" style="text-align:left; "/>
  188. <col class="input_s_essential" ref="requestcause" type="input"/>
  189. <col class="input_s_essential" ref="attend" type="input"/>
  190. <col ref="admindept" style="text-align:center; "/>
  191. <col class="input_s_essential" ref="pumno" type="input" style="text-align:center; "/>
  192. <col class="input_s_essential" ref="cardno" type="combo" style="left:1418px; top:23px; width:185px; height:23px; text-align:left; ">
  193. <choices>
  194. <itemset nodeset="/root/init/cardnolist">
  195. <label ref="label"/>
  196. <value ref="value"/>
  197. </itemset>
  198. </choices>
  199. </col>
  200. <col ref="receiptsabun" style="text-align:center; "/>
  201. <col ref="instcd" style="left:1619px; top:23px; width:60px; height:23px; "/>
  202. <script type="javascript" ev:event="onaftersort">
  203. <![CDATA[
  204. grd_main.gridToInstance();
  205. ]]>
  206. </script>
  207. </datagrid>
  208. <caption id="caption21" class="tit_2" style="left:5px; top:57px; width:131px; height:13px; ">출력 목록</caption>
  209. </group>
  210. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  211. <button id="button39" class="btn4_letter2" style="left:1132px; top:3px; width:56px; height:22px; ">
  212. <caption>저장</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. if( fSetChackValue() ) { //저장시 입력data checking logic..
  216. //입력하신 DATA를 저장 하시겠습니까?
  217. rtn = messageBox("입력하신 DATA를","Q002");
  218. if ( rtn == "6" ) {
  219. //입력,수정,삭제된 data save node 에 담기..
  220. model.setValue("/root/hidden/save",grd_main.getUpdateData());
  221. if(submit("TXRAR01301")) {
  222. button2.dispatch("DOMActivate");
  223. }
  224. }
  225. }
  226. ]]>
  227. </script>
  228. </button>
  229. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  230. <button id="btn_print" class="btn4_letter2" visibility="visible" style="left:1070px; top:3px; width:56px; height:22px; ">
  231. <caption>출력</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. if (grd_main.row < 1 ) {
  235. alert("프린트할 Data를 선택해 주세요.");
  236. }else{
  237. model.setValue("/root/main/printdata/usebuseonm", grd_main.valueMatrix(grd_main.row, grd_main.colRef("usebuseonm")) );
  238. model.setValue("/root/main/printdata/yskeum", grd_main.valueMatrix(grd_main.row, grd_main.colRef("yskeum")) );
  239. model.setValue("/root/main/printdata/useplace", grd_main.valueMatrix(grd_main.row, grd_main.colRef("useplace")) );
  240. model.setValue("/root/main/printdata/frdate", grd_main.valueMatrix(grd_main.row, grd_main.colRef("frdate")) );
  241. model.setValue("/root/main/printdata/todate", grd_main.valueMatrix(grd_main.row, grd_main.colRef("todate")) );
  242. model.setValue("/root/main/printdata/requestcause", grd_main.valueMatrix(grd_main.row, grd_main.colRef("requestcause")) );
  243. model.setValue("/root/main/printdata/requestdate", grd_main.valueMatrix(grd_main.row, grd_main.colRef("requestdate")) );
  244. model.setValue("/root/main/printdata/admindeptnm", grd_main.valueMatrix(grd_main.row, grd_main.colRef("admindeptnm")) );
  245. model.refresh();
  246. exeReportPreview("SMRAR01201", "XMLSTR");
  247. }
  248. ]]>
  249. </script>
  250. </button>
  251. </group>
  252. </xhtml:body>
  253. </xhtml:html>