123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>은행 및 카드관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <userid/>
- <stdyinfo>
- <stdylist>
- <projcd/>
- <projnm/>
- <rshnm/>
- <studycd/>
- </stdylist>
- </stdyinfo>
- <stdycnfmdd>
- <frmdd/>
- <todd/>
- </stdycnfmdd>
- <bnkcrdinfo>
- <bclist>
- <projcd/>
- <acntcd/>
- <bizflag/>
- <acntnm/>
- <acntspec/>
- </bclist>
- </bnkcrdinfo>
- </cond>
- </main>
- <send>
- <sdtysrch/>
- <rshinfo/>
- <bnkcrdinfo/>
- <bclist/>
- </send>
- <init>
- <stdyinfo>
- <rshinfo>
- <userid/>
- <usernm/>
- </rshinfo>
- </stdyinfo>
- </init>
- <hidden/>
- <temp>
- <bcsetrslt>
- <rtnvalue/>
- </bcsetrslt>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fInit();
- ]]>
- </script>
- <bind id="bind_input8"/>
- <submission id="TRRIS00510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rshinfo" resultref="/root/init/stdyinfo"/>
- <submission id="TRRIS00520" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sdtysrch" resultref="/root/main/cond/stdyinfo"/>
- <submission id="TRRIS00530" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bnkcrdinfo" resultref="/root/main/cond/bnkcrdinfo"/>
- <submission id="TXRIS00510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bclist" resultref="/root/temp/bcsetrslt"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fInit(){
- var sUserGbn = getScreenMenuParameter();
- model.property("usergbn") = sUserGbn;
-
- if ( sUserGbn == "A"){
- model.setValue("/root/main/cond/userid","-");
- }else if ( sUserGbn == "P"){
- model.setValue("/root/main/cond/userid", getUserId());
- cmb_member.disabled = true;
- }
-
- model.setValue("/root/main/cond/stdycnfmdd/frmdd", getCurrentDate());
- model.setValue("/root/main/cond/stdycnfmdd/todd", getCurrentDate());
- // model.refresh();
-
- fGetUserlist(); // 연구 책임자 조회.
-
- cmb_member.select(0);
-
- btn_search.dispatch("DOMActivate");
- }
-
- function fGetUserlist(){
- var sUserGbn = model.property("usergbn");
- model.removenode("/root/send");
- model.makeValue("/root/send/rshinfo/userid", model.getValue("/root/main/cond/userid"));
- model.makeValue("/root/send/rshinfo/usrgbn", sUserGbn);
- model.makeValue("/root/send/rshinfo/frmdd", model.getValue("/root/main/cond/stdycnfmdd/frmdd"));
- model.makeValue("/root/send/rshinfo/todd", model.getValue("/root/main/cond/stdycnfmdd/todd"));
- submit("TRRIS00510"); // 화면별 연구책임자 조회.
-
- if (sUserGbn == "A"){
- addComboItem("cmb_member","전체","-","above");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <input id="input6" ref="/root/main/cond/stdycnfmdd/frmdd" inputtype="date" format="yyyy-mm-dd" style="left:80px; top:56px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetUserlist();
- ]]>
- </script>
- </input>
- <caption id="caption11" class="cell_1" style="left:0px; top:56px; width:80px; height:20px; ">승인일자 :</caption>
- <input id="input7" ref="/root/main/cond/stdycnfmdd/todd" inputtype="date" format="yyyy-mm-dd" style="left:200px; top:56px; width:100px; height:19px; "/>
- <caption id="caption10" class="tit_1" style="left:170px; top:25px; width:160px; height:13px; ">은행 및 카드관리</caption>
- <caption id="caption_cdgrup_list" class="tit_2" style="left:0px; top:35px; width:118px; height:14px; ">연구과제</caption>
- <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; ">
- <col ref="projcd"/>
- <col ref="projnm" style="left:140px; top:23px; width:100px; height:23px; "/>
- <col ref="rshnm" style="text-align:center; "/>
- <col ref="studycd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var sRow = grd_stdylist.row ;
- var sProjcd = model.getValue("/root/main/cond/stdyinfo/stdylist["+ sRow +"]/projcd");
-
- model.removenode("root/send/bnkcrdinfo");
- model.makeValue("root/send/bnkcrdinfo/projcd", sProjcd);
-
- submit("TRRIS00530"); // 과제별 은행 및 카드 정보 조회
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="cell_1" style="left:304px; top:55px; width:80px; height:20px; ">연구책임자 :</caption>
- <select1 id="cmb_member" ref="/root/main/cond/userid" appearance="minimal" style="left:384px; top:56px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/stdyinfo/rshinfo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- //fGetUserlist();
- ]]>
- </script>
- </select1>
- <line id="line4" class="line_1" style="x1:0px; y1:50px; x2:485px; y2:50px; "/>
- <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; ">
- <col ref="projcd"/>
- <col ref="acntcd" type="input"/>
- <col ref="bizflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>계좌</label>
- <value>A</value>
- </item>
- <item>
- <label>카드</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col ref="acntnm" type="input"/>
- <col ref="acntspec" type="input"/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:520px; y1:50px; x2:1200px; y2:50px; "/>
- <caption id="caption2" class="tit_2" style="left:525px; top:35px; width:123px; height:13px; ">은행 및 카드 정보</caption>
- <line id="line3" class="line_3" style="x1:0px; y1:78px; x2:485px; y2:78px; "/>
- <button id="btn_search" class="btn2_letter2" style="left:440px; top:30px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removenode("/root/send/sdtysrch");
- model.makeValue("/root/send/sdtysrch/sgbn", model.property("usergbn"));
- model.makeValue("/root/send/sdtysrch/suserid", model.getValue("/root/main/cond/userid"));
- model.makeValue("/root/send/sdtysrch/sfrmdd", model.getValue("/root/main/cond/stdycnfmdd/frmdd"));
- model.makeValue("/root/send/sdtysrch/stodd", model.getValue("/root/main/cond/stdycnfmdd/todd"));
-
- submit("TRRIS00520"); // 기간별 연구과제 조회
-
- ]]>
- </script>
- </button>
- <caption id="caption12" style="left:180px; top:55px; width:20px; height:20px; text-align:center; ">~</caption>
- <button id="btn_insert" class="btn2_letter2" style="left:1065px; top:30px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_bclist.rows > 1 ){
- grd_bclist.insertRow(1, "above");
- }else if (grd_bclist.rows == 1){
- grd_bclist.addRow();
- }
- grd_bclist.refresh();
-
- var sProjcd = model.getValue("/root/main/cond/stdyinfo/stdylist["+ grd_stdylist.row+"]/projcd");
- model.setValue("/root/main/cond/bnkcrdinfo/bclist[1]/projcd", sProjcd);
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn2_letter2" style="left:1155px; top:30px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- for(var i = 1 ; i < grd_bclist.rows ; i++ ){
- if (model.getValue("/root/main/cond/bnkcrdinfo/bclist["+ i +"]/acntcd") == ""){
- messageBox("'카드/계좌번호'는 필수입력 사항입니다. 정보를","C001");
- return;
- }
- }
-
- model.removenode("/root/send/bclist");
- model.makeValue("/root/send/bclist", grd_bclist.getUpdateData());
-
- if (submit("TXRIS00510")){
- var sRtnValue = model.getValue("/root/temp/bcsetrslt/rtnvalue");
- if (sRtnValue > 0 ){
- messageBox("[ "+ sRtnValue + " ]건 처리","I002");
- }
- }
-
- grd_stdylist.dispatch("ondblclick");
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn2_letter2" style="left:1110px; top:30px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_bclist.addStatus(grd_bclist.row, "delete");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|