SMRIS00500_은행 및 카드관리.xrw 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <cond>
  11. <userid/>
  12. <stdyinfo>
  13. <stdylist>
  14. <projcd/>
  15. <projnm/>
  16. <rshnm/>
  17. <studycd/>
  18. </stdylist>
  19. </stdyinfo>
  20. <stdycnfmdd>
  21. <frmdd/>
  22. <todd/>
  23. </stdycnfmdd>
  24. <bnkcrdinfo>
  25. <bclist>
  26. <projcd/>
  27. <acntcd/>
  28. <bizflag/>
  29. <acntnm/>
  30. <acntspec/>
  31. </bclist>
  32. </bnkcrdinfo>
  33. </cond>
  34. </main>
  35. <send>
  36. <sdtysrch/>
  37. <rshinfo/>
  38. <bnkcrdinfo/>
  39. <bclist/>
  40. </send>
  41. <init>
  42. <stdyinfo>
  43. <rshinfo>
  44. <userid/>
  45. <usernm/>
  46. </rshinfo>
  47. </stdyinfo>
  48. </init>
  49. <hidden/>
  50. <temp>
  51. <bcsetrslt>
  52. <rtnvalue/>
  53. </bcsetrslt>
  54. </temp>
  55. </root>
  56. </instance>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. fInit();
  60. ]]>
  61. </script>
  62. <bind id="bind_input8"/>
  63. <submission id="TRRIS00510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rshinfo" resultref="/root/init/stdyinfo"/>
  64. <submission id="TRRIS00520" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sdtysrch" resultref="/root/main/cond/stdyinfo"/>
  65. <submission id="TRRIS00530" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bnkcrdinfo" resultref="/root/main/cond/bnkcrdinfo"/>
  66. <submission id="TXRIS00510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bclist" resultref="/root/temp/bcsetrslt"/>
  67. </model>
  68. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  72. <script type="javascript">
  73. <![CDATA[
  74. function fInit(){
  75. var sUserGbn = getScreenMenuParameter();
  76. model.property("usergbn") = sUserGbn;
  77. if ( sUserGbn == "A"){
  78. model.setValue("/root/main/cond/userid","-");
  79. }else if ( sUserGbn == "P"){
  80. model.setValue("/root/main/cond/userid", getUserId());
  81. cmb_member.disabled = true;
  82. }
  83. model.setValue("/root/main/cond/stdycnfmdd/frmdd", getCurrentDate());
  84. model.setValue("/root/main/cond/stdycnfmdd/todd", getCurrentDate());
  85. // model.refresh();
  86. fGetUserlist(); // 연구 책임자 조회.
  87. cmb_member.select(0);
  88. btn_search.dispatch("DOMActivate");
  89. }
  90. function fGetUserlist(){
  91. var sUserGbn = model.property("usergbn");
  92. model.removenode("/root/send");
  93. model.makeValue("/root/send/rshinfo/userid", model.getValue("/root/main/cond/userid"));
  94. model.makeValue("/root/send/rshinfo/usrgbn", sUserGbn);
  95. model.makeValue("/root/send/rshinfo/frmdd", model.getValue("/root/main/cond/stdycnfmdd/frmdd"));
  96. model.makeValue("/root/send/rshinfo/todd", model.getValue("/root/main/cond/stdycnfmdd/todd"));
  97. submit("TRRIS00510"); // 화면별 연구책임자 조회.
  98. if (sUserGbn == "A"){
  99. addComboItem("cmb_member","전체","-","above");
  100. }
  101. }
  102. ]]>
  103. </script>
  104. </xhtml:head>
  105. <xhtml:body>
  106. <input id="input6" ref="/root/main/cond/stdycnfmdd/frmdd" inputtype="date" format="yyyy-mm-dd" style="left:80px; top:56px; width:100px; height:19px; ">
  107. <script type="javascript" ev:event="xforms-value-changed">
  108. <![CDATA[
  109. fGetUserlist();
  110. ]]>
  111. </script>
  112. </input>
  113. <caption id="caption11" class="cell_1" style="left:0px; top:56px; width:80px; height:20px; ">승인일자 :</caption>
  114. <input id="input7" ref="/root/main/cond/stdycnfmdd/todd" inputtype="date" format="yyyy-mm-dd" style="left:200px; top:56px; width:100px; height:19px; "/>
  115. <caption id="caption10" class="tit_1" style="left:170px; top:25px; width:160px; height:13px; ">은행 및 카드관리</caption>
  116. <caption id="caption_cdgrup_list" class="tit_2" style="left:0px; top:35px; width:118px; height:14px; ">연구과제</caption>
  117. <datagrid id="grd_stdylist" nodeset="/root/main/cond/stdyinfo/stdylist" autoresize="true" caption="과제코드^과제명^연구책임자^과제식별번호" colsep="^" colwidth="80, 314, 70, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:490px; height:440px; ">
  118. <col ref="projcd"/>
  119. <col ref="projnm" style="left:140px; top:23px; width:100px; height:23px; "/>
  120. <col ref="rshnm" style="text-align:center; "/>
  121. <col ref="studycd" visibility="hidden"/>
  122. <script type="javascript" ev:event="ondblclick">
  123. <![CDATA[
  124. var sRow = grd_stdylist.row ;
  125. var sProjcd = model.getValue("/root/main/cond/stdyinfo/stdylist["+ sRow +"]/projcd");
  126. model.removenode("root/send/bnkcrdinfo");
  127. model.makeValue("root/send/bnkcrdinfo/projcd", sProjcd);
  128. submit("TRRIS00530"); // 과제별 은행 및 카드 정보 조회
  129. ]]>
  130. </script>
  131. </datagrid>
  132. <caption id="caption1" class="cell_1" style="left:304px; top:55px; width:80px; height:20px; ">연구책임자 :</caption>
  133. <select1 id="cmb_member" ref="/root/main/cond/userid" appearance="minimal" style="left:384px; top:56px; width:100px; height:19px; ">
  134. <choices>
  135. <itemset nodeset="/root/init/stdyinfo/rshinfo">
  136. <label ref="usernm"/>
  137. <value ref="userid"/>
  138. </itemset>
  139. </choices>
  140. <script type="javascript" ev:event="xforms-value-changed">
  141. <![CDATA[
  142. btn_search.dispatch("DOMActivate");
  143. //fGetUserlist();
  144. ]]>
  145. </script>
  146. </select1>
  147. <line id="line4" class="line_1" style="x1:0px; y1:50px; x2:485px; y2:50px; "/>
  148. <datagrid id="grd_bclist" nodeset="/root/main/cond/bnkcrdinfo/bclist" caption="과제코드^카드/계좌번호^구분^명칭^설명" colsep="^" colwidth="80, 120, 60, 85, 290" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:520px; top:55px; width:680px; height:465px; ">
  149. <col ref="projcd"/>
  150. <col ref="acntcd" type="input"/>
  151. <col ref="bizflag" type="combo" style="text-align:center; ">
  152. <choices>
  153. <item>
  154. <label>계좌</label>
  155. <value>A</value>
  156. </item>
  157. <item>
  158. <label>카드</label>
  159. <value>C</value>
  160. </item>
  161. </choices>
  162. </col>
  163. <col ref="acntnm" type="input"/>
  164. <col ref="acntspec" type="input"/>
  165. </datagrid>
  166. <line id="line1" class="line_1" style="x1:520px; y1:50px; x2:1200px; y2:50px; "/>
  167. <caption id="caption2" class="tit_2" style="left:525px; top:35px; width:123px; height:13px; ">은행 및 카드 정보</caption>
  168. <line id="line3" class="line_3" style="x1:0px; y1:78px; x2:485px; y2:78px; "/>
  169. <button id="btn_search" class="btn2_letter2" style="left:440px; top:30px; width:42px; height:19px; ">
  170. <caption>조회</caption>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. model.removenode("/root/send/sdtysrch");
  174. model.makeValue("/root/send/sdtysrch/sgbn", model.property("usergbn"));
  175. model.makeValue("/root/send/sdtysrch/suserid", model.getValue("/root/main/cond/userid"));
  176. model.makeValue("/root/send/sdtysrch/sfrmdd", model.getValue("/root/main/cond/stdycnfmdd/frmdd"));
  177. model.makeValue("/root/send/sdtysrch/stodd", model.getValue("/root/main/cond/stdycnfmdd/todd"));
  178. submit("TRRIS00520"); // 기간별 연구과제 조회
  179. ]]>
  180. </script>
  181. </button>
  182. <caption id="caption12" style="left:180px; top:55px; width:20px; height:20px; text-align:center; ">~</caption>
  183. <button id="btn_insert" class="btn2_letter2" style="left:1065px; top:30px; width:42px; height:19px; ">
  184. <caption>신규</caption>
  185. <script type="javascript" ev:event="DOMActivate">
  186. <![CDATA[
  187. if (grd_bclist.rows > 1 ){
  188. grd_bclist.insertRow(1, "above");
  189. }else if (grd_bclist.rows == 1){
  190. grd_bclist.addRow();
  191. }
  192. grd_bclist.refresh();
  193. var sProjcd = model.getValue("/root/main/cond/stdyinfo/stdylist["+ grd_stdylist.row+"]/projcd");
  194. model.setValue("/root/main/cond/bnkcrdinfo/bclist[1]/projcd", sProjcd);
  195. ]]>
  196. </script>
  197. </button>
  198. <button id="btn_save" class="btn2_letter2" style="left:1155px; top:30px; width:42px; height:19px; ">
  199. <caption>저장</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. for(var i = 1 ; i < grd_bclist.rows ; i++ ){
  203. if (model.getValue("/root/main/cond/bnkcrdinfo/bclist["+ i +"]/acntcd") == ""){
  204. messageBox("'카드/계좌번호'는 필수입력 사항입니다. 정보를","C001");
  205. return;
  206. }
  207. }
  208. model.removenode("/root/send/bclist");
  209. model.makeValue("/root/send/bclist", grd_bclist.getUpdateData());
  210. if (submit("TXRIS00510")){
  211. var sRtnValue = model.getValue("/root/temp/bcsetrslt/rtnvalue");
  212. if (sRtnValue > 0 ){
  213. messageBox("[ "+ sRtnValue + " ]건 처리","I002");
  214. }
  215. }
  216. grd_stdylist.dispatch("ondblclick");
  217. ]]>
  218. </script>
  219. </button>
  220. <button id="btn_delete" class="btn2_letter2" style="left:1110px; top:30px; width:42px; height:19px; ">
  221. <caption>삭제</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. grd_bclist.addStatus(grd_bclist.row, "delete");
  225. ]]>
  226. </script>
  227. </button>
  228. </xhtml:body>
  229. </xhtml:html>