123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443 |
- <?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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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>
- <ddflag/>
- <status/>
- <kind/>
- <ddfrom/>
- <ddto/>
- <rshnm/>
- <rshid/>
- <studycd/>
- <instcd/>
- <chkstatus/>
- <btnflag/>
- <rshdeptcd/>
- <rshdeptnm/>
- </cond>
- </main>
- <send>
- <reqdata>
- </reqdata>
- <userinfo/>
- <param/>
- </send>
- <hidden>
- </hidden>
- <init>
- <baseinfo>
- <instinfo>
- <instcd/>
- <hospnm/>
- </instinfo>
- </baseinfo>
- <status/>
- <kind/>
- <projlist/>
- <gridstatus/>
- <C0048list/>
- </init>
- <temp/>
- <result>
- <studyprojlist>
- </studyprojlist>
- </result>
- <popupmenu>
- <menuso>
- <item>
- <name>입출금 상세내역</name>
- <func>fManAmt</func>
- </item>
- <item>
- <name>연구원 등록 및 조회</name>
- <func>fManStudyUser</func>
- </item>
- </menuso>
- <menuwonc>
- <item>
- <name>입출금 상세내역</name>
- <func>fManAmt</func>
- </item>
- <item>
- <name>연구원 등록 및 조회</name>
- <func>fManStudyUser</func>
- </item>
- </menuwonc>
- </popupmenu>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fIni();
- ]]>
- </script>
- <submission id="TRRIS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/result/studyprojlist"/>
- <submission id="TXRIS00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/ctmsweb/js/SMRIS00101.js"/>
- </xhtml:head>
- <xhtml:body>
- <group id="group3" style="left:0px; top:25px; width:1200px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1198px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" _auth="R" style="left:1124px; top:18px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:335px; top:10px; width:90px; height:17px; ">구 분 :</caption>
- <select1 id="cmb_kind" ref="/root/main/cond/kind" appearance="minimal" style="left:413px; top:10px; width:145px; height:19px; ">
- <choices>
- <item>
- <label>외부위탁</label>
- <value>O</value>
- </item>
- <item>
- <label>국책(지자체)</label>
- <value>G</value>
- </item>
- <item>
- <label>원내</label>
- <value>H</value>
- </item>
- <item>
- <label>기타</label>
- <value>E</value>
- </item>
- <item>
- <label>-전체-</label>
- <value>-</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:587px; top:10px; width:91px; height:17px; ">과제번호 :</caption>
- <caption id="caption4" class="search_name" style="left:28px; top:36px; width:90px; height:17px; ">연 구 원 :</caption>
- <button id="btn_useid" class="icon_search" navindex="5" style="left:305px; top:37px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetUserinfo();
- ]]>
- </script>
- </button>
- <output id="opt_rshnm" ref="/root/main/cond/rshnm" class="output_fix" style="left:199px; top:35px; width:102px; height:19px; "/>
- <output id="opt_rshid" ref="/root/main/cond/rshid" class="output_fix" style="left:121px; top:35px; width:75px; height:19px; "/>
- <input id="ipt_studycd" ref="/root/main/cond/studycd" style="left:677px; top:10px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_search","DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:821px; top:10px; width:65px; height:17px; ">상 태 :</caption>
- <line id="line30" class="line_4" style="x1:1100px; y1:9px; x2:1100px; y2:50px; "/>
- <caption id="caption5" class="search_name" style="left:30px; top:10px; width:90px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/main/cond/instcd" class="combo_defalut" appearance="minimal" style="left:121px; top:10px; width:180px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0048list/C0048">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_status" ref="/root/main/cond/chkstatus" navindex="39" overflow="visible" appearance="full" cellspacing="10" cols="4" style="left:890px; top:11px; width:200px; height:15px; text-align:left; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/status/I0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var statusitem = model.getValue("/root/main/cond/chkstatus");
- var Arr = null;
- var text = "";
-
- if( statusitem != "" ){
- for( var i = 0 ; i <= chk_status.length ; i++ ){
- Arr = statusitem.split(" ");
- for( var a = 0 ; a < Arr.length; a++ ){
- if( a == 0 ){
- text = "'" + Arr[a] + "'";
- }else{
- text = text + ", '" + Arr[a] + "'";
- }
- }
- }
- }
- model.setValue("/root/main/cond/status", text );
- model.refresh();
-
- ]]>
- </script>
- </select>
- <caption id="cpt_rshdept" class="search_name" style="left:335px; top:36px; width:125px; height:17px; ">근무지 :</caption>
- <input id="ipt_rshdeptnm" ref="/root/main/cond/rshdeptnm" disabled="true" style="left:413px; top:35px; width:145px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <button id="btn_rshdept" class="icon_search" navindex="5" style="left:561px; top:37px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "rshdeptcd,rshdeptnm";
- misfOpenPopUpList("02", ipt_rshdeptnm, "", recv_list, getUserInfo("posinstcd"), "instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_studyprojlist" nodeset="/root/result/studyprojlist" scroll="auto" caption="기관^상태^형태^구분^과제번호^과제명^ID^연구책임자^총연구비^수익^비용(직접비)^비용(간접비)^단계^승인일^계약일^시작일^종료일^상태^최초승인일^접수번호^국가구분^기관구분^승인유효일^약품명^의뢰기관^대행기관^최초수정자^최초수정일^최종수정자^최종수정일^과제코드^기관코드" colsep="^" colwidth="47, 47, 47, 80, 120, 283, 9, 69, 100, 100, 100, 100, 84, 85, 85, 85, 85, 57, 84, 59, 59, 65, 85, 100, 100, 100, 70, 100, 70, 100, 73, 100, 100, 100, 100" explorerbar="sortshow" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:97px; width:1200px; height:677px; ">
- <col disabled="true" ref="instcd" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>본원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>032</value>
- </item>
- </choices>
- </col>
- <col ref="status" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/grdstatus/I0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="workkind" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>참여</label>
- <value>A</value>
- </item>
- <item>
- <label>공동</label>
- <value>B</value>
- </item>
- <item>
- <label>책임</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="kind" type="combo">
- <choices>
- <itemset nodeset="/root/init/kind/I0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="studycd"/>
- <col ref="projnm"/>
- <col ref="rshid" visibility="hidden"/>
- <col ref="rshnm" style="text-align:center; "/>
- <col ref="projamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="iamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="oamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="oiamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="stage"/>
- <col ref="cnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cntrdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="status" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/status/I0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstcnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="projtype" style="text-align:center; "/>
- <col ref="nflag" style="text-align:center; "/>
- <col ref="oflag" style="text-align:center; "/>
- <col ref="cnfmvalidd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="drugnm"/>
- <col ref="reqfirm"/>
- <col ref="agent"/>
- <col ref="fstrgstrnm" style="text-align:center; "/>
- <col ref="fstrgstdt"/>
- <col ref="lastupdnm" style="text-align:center; "/>
- <col ref="lastupdtdt"/>
- <col ref="projcd"/>
- <col ref="statusbak" visibility="hidden"/>
- <col ref="amtcnt" visibility="hidden"/>
- <col ref="workcnt" visibility="hidden"/>
- <col ref="reptcnt" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fDetail();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- window.setPopupMenu(true);
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if (event.button == 3 ){
- //if( grd_studyprojlist.isCell(event.target) && grd_studyprojlist.rows >= grd_studyprojlist.fixedRows ){
- if( PARAM == "P" ){
- // 연구원 참여, 공동
- if( model.getValue("/root/result/studyprojlist[" + grd_studyprojlist.row + "]/workkind") != "C"){
- window.setPopupMenu(false);
- }else{ // 연구원 책임
- window.setPopupMenu( true, "/root/popupmenu/menuwonc/item", "name", "func", false);
- }
- }else if( PARAM == "N" ){ //간호사
- window.setPopupMenu(false);
- }else{ // 연구소
- window.setPopupMenu( true, "/root/popupmenu/menuso/item", "name", "func", false);
- //setPopupMenu("grd_studyprojlist", false, "/root/popupmenu/menuso/item", "name", "func");
- }
- }
- if( model.getValue("/root/result/studyprojlist[" + grd_studyprojlist.row + "]/workkind") != "C"){
- btn_amt.visible = false;
- }else{
- btn_amt.visible = true;
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( grd_studyprojlist.colRef("status") == grd_studyprojlist.col ){
- if( model.getValue("/root/result/studyprojlist[" + grd_studyprojlist.row + "]/status") == model.getValue("/root/result/studyprojlist[" + grd_studyprojlist.row + "]/statusbak") ){
- if( model.getValue("/root/result/studyprojlist[" + grd_studyprojlist.row + "]/status") == "P" ){
- grd_studyprojlist.cellstyle("font-weight", grd_studyprojlist.row, 1, grd_studyprojlist.row, 1 ) = "bold";
- grd_studyprojlist.cellstyle("color", grd_studyprojlist.row, 1, grd_studyprojlist.row, 1) = "blue";
- }else{
- grd_studyprojlist.cellstyle("font-weight", grd_studyprojlist.row, 1, grd_studyprojlist.row, 1 ) = "normal";
- grd_studyprojlist.cellstyle("color", grd_studyprojlist.row, 1, grd_studyprojlist.row, 1) = "black";
- }
- grd_studyprojlist.rowStatus(grd_studyprojlist.row) = 0 ;
- }else{
- grd_studyprojlist.cellstyle("color", grd_studyprojlist.row , 1, grd_studyprojlist.row, 1) = "red";
- grd_studyprojlist.cellstyle("font-weight", grd_studyprojlist.row, 1, grd_studyprojlist.row, 1 ) = "bold";
- grd_studyprojlist.rowStatus(grd_studyprojlist.row) = 2;
- }
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( model.getValue("/root/result/studyprojlist[" + grd_studyprojlist.row + "]/workkind") != "C"){
- btn_amt.visible = false;
- }else{
- btn_amt.visible = true;
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_studyprojlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:94px; x2:1200px; y2:94px; font-family:돋움체; "/>
- <group id="grp_buttons" style="left:0px; top:0px; width:1200px; height:25px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:25px; ">과제관리</caption>
- <button id="btn_amt" class="btn4_letter3" _auth="R" style="left:1125px; top:0px; width:68px; height:22px; ">
- <caption>입출금</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fManAmt();
- ]]>
- </script>
- </button>
- <button id="btn_new" class="btn4_letter2" _auth="R" style="left:1067px; top:0px; width:56px; height:22px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNew();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn6_letter2" _auth="R" style="left:1009px; top:0px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sTitle = "과제리스트";
- var fileName = window.fileDialog("save", ",", false, sTitle, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_studyprojlist.saveExcel(fileName, sTitle, true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn3_letter2" _auth="R" style="left:951px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/cond/btnflag", "1");
- fSave();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn3_letter2" _auth="R" style="left:893px; top:0px; width:56px; height:22px; ">
- <caption>제거</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/cond/btnflag", "2");
- var i = grd_studyprojlist.row;
-
- if( i != "" ){
- if( parseInt(model.getValue("/root/result/studyprojlist[" + i + "]/amtcnt")) > 0 ){
- messageBox("이미 입출금내역이 등록된 과제는 삭제하실 수 없습니다. \n【 과제번호 : " + model.getValue("/root/result/studyprojlist[" + i + "]/studycd") + " 】" + "","I999");
- return;
- }
-
- if( parseInt(model.getValue("/root/result/studyprojlist[" + i + "]/workcnt")) > 0 ){
- messageBox("이미 연구원내역이 등록된 과제는 삭제하실 수 없습니다. \n【 과제번호 : " + model.getValue("/root/result/studyprojlist[" + i + "]/studycd") + " 】" + "","I999");
- return;
- }
-
- if( parseInt(model.getValue("/root/result/studyprojlist[" + i + "]/reptcnt")) > 0 ){
- messageBox("이미 보고서작성내역이 등록된 과제는 삭제하실 수 없습니다. \n【 과제번호 : " + model.getValue("/root/result/studyprojlist[" + i + "]/studycd") + " 】" + "","I999");
- return;
- }
- }
-
- fSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|