123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <reportinfo/>
- <studyprojinfo/>
- <rephistinfo/>
- <repmain>
- <instcd/>
- <bsdd/>
- <projcd/>
- <projnm/>
- <reptcd/>
- <reptnm/>
- <rshid/>
- <rshnm/>
- <bsid/>
- <bsnm/>
- <seqno/>
- <status/>
- <statusnm/>
- <reqfirm/>
- <kind/>
- <kindnm/>
- <cnfmdd/>
- <stage/>
- <projspec/>
- <projamt/>
- <fromdd/>
- <todd/>
- <jobposcd/>
- <jobposnm/>
- <emplinstcd/>
- <empldeptcd/>
- <empldeptnm/>
- <studycd/>
- <bstotiamt/>
- <bstotoamt/>
- <bstotjamt/>
- </repmain>
- <repdetlinfo/>
- <repstatusinfo>
- <repstatus>
- <status/>
- </repstatus>
- </repstatusinfo>
- <projamt/>
- </main>
- <send>
- <searchproj>
- <instcd/>
- <studycd/>
- <rshid/>
- <projnm/>
- <estatus/>
- <rshnm/>
- <bstotiamt/>
- <bstotoamt/>
- <bstotjamt/>
- <auth/>
- <instcd/>
- </searchproj>
- <searchrephist>
- <instcd/>
- <projcd/>
- <auth/>
- <userid/>
- </searchrephist>
- <searchreport/>
- <searchrepdetl>
- <instcd/>
- </searchrepdetl>
- <searchrep>
- <instcd/>
- <projcd/>
- <reptcd/>
- <seqno/>
- </searchrep>
- <save>
- <sm/>
- <repmaindata/>
- <repdetldata/>
- </save>
- <chngstatus/>
- <searchrepstatus/>
- <userinfo/>
- <selreport/>
- <docinfo>
- <userid/>
- </docinfo>
- </send>
- <init>
- <C0048list/>
- </init>
- <hidden>
- <instlist>
- <inst>
- <cdnm>본원</cdnm>
- <cdid>031</cdid>
- </inst>
- <inst>
- <cdnm>칠곡</cdnm>
- <cdid>032</cdid>
- </inst>
- </instlist>
- <statuslist>
- <status>
- <cdnm>진행</cdnm>
- <cdid>P</cdid>
- </status>
- <status>
- <cdnm>반려</cdnm>
- <cdid>R</cdid>
- </status>
- <status>
- <cdnm>제출</cdnm>
- <cdid>E</cdid>
- </status>
- <status>
- <cdnm>확인</cdnm>
- <cdid>A</cdid>
- </status>
- </statuslist>
- <instcdlist/>
- <docinfo>
- <signimge/>
- </docinfo>
- </hidden>
- <temp/>
- </root>
- </instance>
- <submission id="TRRIF02101" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchproj" replace="instance" resultref="/root/main/studyprojinfo"/>
- <submission id="TRRIF02102" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchreport" replace="instance" resultref="/root/main/reportinfo"/>
- <submission id="TRRIF02103" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrephist" replace="instance" resultref="/root/main/rephistinfo"/>
- <submission id="TRRIF02104" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrepdetl" replace="instance" resultref="/root/main/repdetlinfo"/>
- <submission id="TRRIF02105" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrepstatus" replace="instance" resultref="/root/main/repstatusinfo"/>
- <submission id="TRRIF02106" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrepdetl" replace="instance" resultref="/root/main/reportinfo"/>
- <submission id="TXRIF02101" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/save" replace="instance" resultref="/root/tmp"/>
- <submission id="TXRIF02102" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/chngstatus" replace="instance" resultref="/root/temp"/>
- <submission id="TRRIS00306" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrep" replace="instance" resultref="/root/main/projamt"/>
- <submission id="TRRIF01205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/docinfo/userid" resultref="/root/hidden/docinfo/signimge"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- fSearch();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.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/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript">
- <![CDATA[
- var reportflag = ""; //입력상태 (i:입력 , u:수정, d:삭제)
- var scrnflag = ""; //보고서iviewer화면 상태(Y:준비상태, N:준비X상태)
-
- function fInitialize(){
-
- btn_pamrgst.attribute("top") = "3px";
-
- var param = getScreenMenuParameter();
- var workkind = "";
-
- zbcfGetCodeList(new Array("C0048"), new Array("/root/init/C0048list"));
- //addComboItem("cmb_instcd","전체","","above");
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- if (isPopup()) {
-
- var menuparam = opener.window.javascript.getParameter("SMRIF02100_menuparam");
-
- var rshid = opener.window.javascript.getParameter("SMRIF02100_rshid");
- var rshnm = opener.window.javascript.getParameter("SMRIF02100_rshnm");
- var studycd = opener.window.javascript.getParameter("SMRIF02100_studycd");
- workkind = opener.window.javascript.getParameter("SMRIF02100_workkind");
-
- model.setValue("/root/send/searchproj/instcd" , getUserInfo("dutplceinstcd") );
- model.setValue("/root/send/searchproj/rshid", rshid );
- model.setValue("/root/send/searchproj/rshnm", rshnm );
- model.setValue("/root/send/searchproj/studycd", studycd );
- model.setValue("/root/send/searchproj/estatus", "Y" );
- }else{
- model.setValue("/root/send/searchproj/instcd" , getUserInfo("dutplceinstcd") );
- model.setValue("/root/send/searchproj/rshid" , getUserId() );
- model.setValue("/root/send/searchproj/rshnm" , getUserName() );
- model.setValue("/root/send/searchproj/estatus" , "Y" );
- }
-
- if( param == "P" ){
- button6.visible = false;
- }
- if( param == "N" ){
- button6.visible = false;
- caption3.value = "참여연구원";
- }
-
- if( workkind == "A"){ // 참여
- caption3.value = "참여연구원";
- }else if( workkind == "B"){ // 공동
- caption3.value = "공동연구원";
- }
-
- model.setValue("/root/send/searchproj/auth" , param );
- model.setValue("/root/send/searchrephist/auth" , param );
- model.setValue("/root/send/searchrephist/userid" , getUserInfo("userid") );
-
- /* 보고서리스트 조회 */
- fSearchReportList();
- model.refresh();
- }
-
- function inputEnterKeySearch() {
- if(event.keyCode == "13") {
- setInputNodeCurText();
- fSearch();
- }
- }
-
- /* 과제 조회 */
- function fSearch(){
- if(submit("TRRIF02101")){
- var cnt = getNodesetCount("/root/main/studyprojinfo/studyprojlist");
- if(cnt > 0){
- grd_proj.row = 1;
- grd_proj.dispatch("ondblclick");
- }else{
- model.removeNodeset("/root/main/rephistinfo/rephistlist");
- }
- }
- model.refresh();
- }
-
- /* 보고서 리스트 조회 */
- function fSearchReportList(){
- //submit("TRRIF02102",false);
- model.setValue("/root/send/searchrepdetl/instcd", model.getValue("/root/send/searchproj/instcd"));
- submit("TRRIF02106",false);
- }
-
- /* 보고서내역 조회 */
- function fSearchReportHist(){
- var idx = grd_proj.row;
-
- model.setValue("/root/send/searchrephist/instcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/instcd"));
- model.setValue("/root/send/searchrephist/projcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projcd"));
-
- submit("TRRIF02103",false);
-
- model.refresh();
- }
-
- /* 보고서작성(신규,수정)여부 체크 */
- function isWritingReport(){
- if(reportflag == "i" || reportflag == "u"){
- return true;
- }else{
- return false;
- }
- return false;
- }
-
- /* 보고서작성(수정)여부 체크 */
- function isUpdatingReport(){
- if(reportflag == "u"){
- return true;
- }else{
- return false;
- }
- }
-
- /* 보고서작성중인지 메시지 팝업 및 반환 */
- function checkWritingOK(){
- if(isWritingReport()){
- var rtn = messageBox("수정중인 보고서가 있습니다.", "Q002");
- if(rtn != 6){
- return false;
- }
- return true;
- }
- return false;
- }
-
- /* 보고서작성중인지 메시지 팝업 및 반환 */
- function checkUpdatingOK(){
- if(isUpdatingReport()){
- var rtn = messageBox("수정중인 보고서가 있습니다.", "Q002");
- if(rtn != 6){
- return false;
- }
- return true;
- }
- return false;
- }
-
-
- /* 과제메인정보 세팅 */
- function fSetProj(){
- // if(checkUpdatingOK()){
- // btn_save.dispatch("DOMActivate");
- // }
-
- var idx = grd_proj.row;
-
- model.setValue("/root/main/repmain/instcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/instcd"));
- model.setValue("/root/main/repmain/rshid" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/rshid"));
- //model.setValue("/root/main/repmain/rshnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/rshnm"));
- model.setValue("/root/main/repmain/status" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/status"));
- model.setValue("/root/main/repmain/statusnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/statusnm"));
- //model.setValue("/root/main/repmain/reqfirm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/reqfirm"));
- model.setValue("/root/main/repmain/kind" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/kind"));
- model.setValue("/root/main/repmain/kindnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/kindnm"));
- model.setValue("/root/main/repmain/cnfmdd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/cnfmdd"));
- model.setValue("/root/main/repmain/stage" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/stage"));
- model.setValue("/root/main/repmain/projspec" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projspec"));
- //model.setValue("/root/main/repmain/projamt" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projamt"));
- model.setValue("/root/main/repmain/fromdd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/fromdd"));
- model.setValue("/root/main/repmain/todd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/todd"));
- model.setValue("/root/main/repmain/jobposcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/jobposcd"));
- model.setValue("/root/main/repmain/jobposnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/jobposnm"));
- model.setValue("/root/main/repmain/emplinstcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/emplinstcd"));
- model.setValue("/root/main/repmain/empldeptcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/empldeptcd"));
- model.setValue("/root/main/repmain/empldeptnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/empldeptnm"));
- reportflag = "";
- fInitRepDetail();
-
- fSearchReportHist();
-
- //model.setValue("/root/send/searchrep/instcd" , getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/searchrep/instcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/instcd"));
- model.setValue("/root/send/searchrep/projcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projcd"));
-
- if( submit("TRRIS00306") ){
- model.setValue("/root/send/searchproj/bstotiamt" , model.getValue("/root/main/projamt/projamtlist/iamt"));
- model.setValue("/root/send/searchproj/bstotoamt" , model.getValue("/root/main/projamt/projamtlist/oamt"));
- model.setValue("/root/send/searchproj/bstotjamt" , model.getValue("/root/main/projamt/projamtlist/jamt"));
- model.setValue("/root/main/repmain/bstotiamt" , model.getValue("/root/main/projamt/projamtlist/iamt"));
- model.setValue("/root/main/repmain/bstotoamt" , model.getValue("/root/main/projamt/projamtlist/oamt"));
- model.setValue("/root/main/repmain/bstotjamt" , model.getValue("/root/main/projamt/projamtlist/jamt"));
- model.setValue("/root/main/repmain/projcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projcd"));
- model.setValue("/root/main/repmain/projnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projnm"));
- model.setValue("/root/main/repmain/reqfirm" , model.getValue("/root/main/projamt/projrepmainlist/reqfirm"));
- model.setValue("/root/main/repmain/projamt" , model.getValue("/root/main/projamt/projrepmainlist/projamt"));
- model.setValue("/root/main/repmain/rshid" , model.getValue("/root/main/projamt/projrepmainlist/rshid"));
- model.setValue("/root/main/repmain/rshnm" , model.getValue("/root/main/projamt/projrepmainlist/rshnm"));
- model.setValue("/root/main/repmain/studycd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/studycd"));
- model.setValue("/root/main/repmain/bsnm" , "");
-
- }
- model.refresh();
- }
-
- /* 보고서메인정보 세팅 */
- function fSetRept(target){
- // if(checkWritingOK()){
- // btn_save.dispatch("DOMActivate");
- // }
-
- if(target == "trv_report"){
- var sel_value = trv_report.value;
- var split_var = sel_value.split('/');
- var reportnm = split_var[1];
-
- model.setValue("/root/main/repmain/reptcd" , reportnm);
- model.setValue("/root/main/repmain/reptnm" , trv_report.label );
- }else{
- var grdObj = document.controls(target);
- var idx = grdObj.row;
-
- model.setValue("/root/main/repmain/reptcd" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/reptcd"));
- model.setValue("/root/main/repmain/reptnm" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/reptnm"));
-
- }
-
- if(target == "grd_rep"){
- reportflag = "";
-
- model.setValue("/root/main/repmain/bsdd" , getCurrentDate());
- model.setValue("/root/main/repmain/bsid" , getUserId());
- model.setValue("/root/main/repmain/bsnm" , getUserName());
- fInitRepDetail();
- }else if(target == "trv_report"){
- reportflag = "";
-
- model.setValue("/root/main/repmain/bsdd" , getCurrentDate());
- model.setValue("/root/main/repmain/bsid" , getUserId());
- model.setValue("/root/main/repmain/bsnm" , getUserName());
- fInitRepDetail();
- }else if(target == "grd_rephist"){
- model.setValue("/root/main/repmain/bsdd" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/bsdd"));
- model.setValue("/root/main/repmain/bsid" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/bsid"));
- model.setValue("/root/main/repmain/bsnm" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/bsnm"));
- model.setValue("/root/main/repmain/seqno" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/seqno"));
-
- reportflag = "u";
- fSearchRepDetl();
- fSearchRepStatus();
- fCheckStatus();
- }
- model.refresh();
- }
-
- /* 보고서 상세 초기화 */
- function fInitRepDetail(){
- //iviewer1.window.javascript.fSetInit();
- iviewer1.src = "SMRIF02110_보고서초기화면.xrw";
- reportflag = "";
- fInitRepStatus();
- }
-
- /* 보고서상세 조회 */
- function fSearchRepDetl(){
- var sREPDETLINFO_PATH="/root/main/repdetlinfo";
- var sREPDETL_PATH = "/root/main/repdetlinfo/repdetl";
- var sREPMAIN_PATH = "/root/main/repmain";
-
- model.copyNode("/root/send/searchrepdetl","/root/main/repmain");
- model.makeValue("/root/send/searchrepdetl/sm",reportflag);
-
- submit("TRRIF02104",false);
-
- // if(instance1.selectNodes(sREPDETLINFO_PATH+"/repform").length == 0){
- // messageBox("해당 보고서는 개발 중","E008");
- // fInitRepDetail();
- //
- // return;
- // }
- var repdetl = instance1.selectNodes(sREPDETL_PATH);
- if( repdetl == null || repdetl.length == 0){
- messageBox("관련 데이타가","I004");
- fInitRepDetail();
- return;
- }
-
- iviewer1.src = "../../../"+model.getValue(sREPDETLINFO_PATH+"/repform/scrnurl");
-
- var repmain = instance1.selectNodes(sREPMAIN_PATH);
- iviewer1.window.javascript.fSetReport(getNodeListCSV(repmain),getNodeListCSV(repdetl));
-
- if(reportflag == "i")
- iviewer1.window.body.dispatch("onloadcomplete");
- model.refresh();
- }
-
- /* 보고서작성 저장 */
- function fSaveRepDetl(){
-
- iviewer1.window.javaScript.fLastAmtSave();
-
- model.makeValue("/root/send/save/sm", reportflag);
- model.makeValue("/root/send/save/repmaindata", getNodeListCSV(instance1.selectNodes("/root/main/repmain")));
- model.makeValue("/root/send/save/repdetldata", iviewer1.window.javaScript.fGetSaveData());
-
- submit("TXRIF02101",false);
-
- if(reportflag == "d"){ //삭제의 경우
- fInitRepDetail();
-
- }else{ // 입력이나 수정의 경우
- reportflag = "u";
- }
- model.refresh();
- }
-
- /* 보고서 출력 */
- function fPrintRepDetl(){
- var sREPDETLINFO_PATH="/root/main/repdetlinfo";
-
- if(!isUpdatingReport()){
- messageBox("작성된 보고서가 선택되지","E007");
- return;
- }
-
- var prntform = model.getValue(sREPDETLINFO_PATH+"/repform/prntform");
- if(isNull(prntform)){
- messageBox("등록된 보고서가","I004");
- return;
- }
- model.makeValue("/root/send/docinfo/userid",model.getValue("/root/main/repmain/bsid"));
- submit("TRRIF01205");
-
- iviewer1.window.javaScript.fSetDrSignData(model.getValue("/root/hidden/docinfo/signimge"));
- iviewer1.window.javaScript.fPrintReport(prntform);
- }
-
- /* 보고서 제출,취소 */
- function fSubmitRep(flag){ // flag : S(제출), C(취소)
- if(flag == "S"){
- fChngStatus("E"); // 작성완료
- }else if(flag == "C"){
- fChngStatus("P"); // 작성완료 취소
- }
- fSearchRepStatus();
- fCheckStatus();
- }
-
- /* 상태값 변경 로직 */
- function fChngStatus(status){
- model.copyNode("/root/send/chngstatus","/root/main/repmain");
- model.makeValue("/root/send/chngstatus/status",status);
- submit("TXRIF02102",false);
- model.refresh();
- }
-
- /* 상태체크(상태에 따라 item 설정 변경) */
- function fCheckStatus(){
- var status = model.getValue("/root/main/repstatusinfo/repstatus/status");
-
- if(isNull(status)){
- cpt_status.value = "" ;
-
- btn_submit_cancel.disabled = true;
- btn_submit.disabled = true;
-
- }else if(status == "E"){
- cpt_status.value = "보고서제출됨" ;
-
- btn_submit_cancel.disabled = false;
- btn_submit.disabled = true;
-
- }else if(status == "A"){
- cpt_status.value = "연구소확인" ;
-
- btn_submit_cancel.disabled = true;
- btn_submit.disabled = true;
-
- }else if(status == "P" || status == "R" ){
- cpt_status.value = "" ;
-
- btn_submit_cancel.disabled = true;
- btn_submit.disabled = false;
-
- }else{
- cpt_status.value = "" ;
-
- btn_submit_cancel.disabled = true;
- btn_submit.disabled = true;
- }
- }
-
- /* 보고서 상태 조회 */
- function fSearchRepStatus(){
- model.copyNode("/root/send/searchrepstatus","/root/main/repmain");
- submit("TRRIF02105",false);
- model.refresh();
- }
-
- /* 보고서 상태 초기화 */
- function fInitRepStatus(){
- model.setValue("/root/main/repstatusinfo/repstatus/status","");
- fCheckStatus();
- model.refresh();
- }
-
- // 유효한 사용자인지 체크
- function isValidUser(){
- var bsid = model.getValue("/root/main/repmain/bsid");
- var rshid = model.getValue("/root/main/repmain/rshid");
- if(getUserId() == bsid || getUserId() == rshid){
- return true;
- }
- return false;
- }
-
- function fSetUserinfo(){
- setParameter("search_condition","usernm");
- setParameter("resultref","/root/send/userinfo");
- modal("SPZSU10100");
-
- var userinfo = model.getValue("/root/send/userinfo");
-
- userinfo = userinfo.split("|");
- var rshid = userinfo[2];
- var rshnm = userinfo[3];
-
- model.setValue("/root/send/searchproj/rshid",rshid);
- model.setValue("/root/send/searchproj/rshnm",rshnm);
- model.resetInstanceNode("/root/send/userinfo");
-
- model.refresh();
- }
-
- function fInstcdChk(){
- if(model.getValue("/root/send/searchproj/instcd")){
- messageBox("기관코드를 셋팅한 후 진행해주십시오.","I999");
- return;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1195px" pageheight="780px">
- <caption id="caption34" class="tit_2" style="left:0px; top:460px; width:130px; height:13px; font-family:돋움체; ">보고서 작성이력</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:475px; x2:300px; y2:475px; font-family:돋움체; "/>
- <group id="group2" style="left:0px; top:30px; width:300px; height:104px; font-family:돋움체; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:0px; width:296px; height:102px; font-family:돋움체; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="input3" ref="/root/send/searchproj/studycd" class="input_default" navindex="10" visibility="visible" style="left:94px; top:54px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:8px; top:55px; width:88px; height:17px; font-family:돋움체; ">과제번호:</caption>
- <input id="input2" ref="/root/send/searchproj/projnm" class="input_default" navindex="10" visibility="visible" style="left:81px; top:76px; width:138px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:8px; top:77px; width:78px; height:17px; font-family:돋움체; ">과제명:</caption>
- <select id="cbx_e" ref="/root/send/searchproj/estatus" overflow="visible" appearance="full" style="left:222px; top:55px; width:66px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>종결포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="btn_search" class="btn1_letter2" style="left:222px; top:75px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:8px; top:33px; width:108px; height:17px; font-family:돋움체; ">책임연구원:</caption>
- <output id="output4" ref="/root/send/searchproj/rshid" class="output_fix" style="left:106px; top:32px; width:70px; height:19px; "/>
- <button id="button6" class="icon_search" navindex="5" style="left:267px; top:33px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetUserinfo();
- ]]>
- </script>
- </button>
- <output id="output3" ref="/root/send/searchproj/rshnm" class="output_fix" style="left:178px; top:32px; width:86px; height:19px; "/>
- <caption id="caption14" class="search_name" style="left:8px; top:10px; width:88px; height:17px; font-family:돋움체; ">기관코드:</caption>
- <select1 id="cmb_instcd" ref="/root/send/searchproj/instcd" class="combo_defalut" appearance="minimal" style="left:94px; top:9px; width:171px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0048list/C0048">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearchReportList();
- fSearch();
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:27px; ">
- <caption id="cpt_status" style="left:560px; top:3px; width:160px; height:20px; font-weight:bold; color:#ff0000; text-align:right; "/>
- <button id="btn_print" class="btn3_letter2" navindex="97" style="left:864px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrintRepDetl();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="100" style="left:1038px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if(!isWritingReport()){ //입력,수정이 아닌 경우
- // messageBox("저장할 데이터가","E014");
- // return;
- // }
-
- if( grd_proj.row < 1 ){
- messageBox("저장할 과제를 선택한 후 진행하세요.","I999");
- return;
- }
- if(!isValidUser()){
- messageBox("작성자나 책임연구원만 저장이","I006");
- return;
- }
-
- var status = model.getValue("/root/main/repstatusinfo/repstatus/status");
- if(status == "E"){
- messageBox("이미 연구소에 제출된 보고서입니다. 제출취소 이후에 저장","I006");
- return;
- }
-
- if(status == "A"){
- messageBox("이미 연구소확인이 진행된 보고서입니다. 연구소로 문의","I008");
- return;
- }
-
- if(isNull(ipt_bsdd.value)){
- messageBox("작성일자는","I003");
- return;
- }
-
-
- setAlertOn();
- fSaveRepDetl();
- fSearchReportHist();
-
- var seqno = model.getValue("/root/tmp/retlist/seqno");
- var reptcd = model.getValue("/root/tmp/retlist/reptcd");
-
- for( var i = 0; i <= grd_rephist.rows - grd_rephist.fixedRows ; i++ ){
- if( seqno == model.getValue("/root/main/rephistinfo/rephistlist[" + i + "]/seqno") &&
- reptcd == model.getValue("/root/main/rephistinfo/rephistlist[" + i + "]/reptcd")){
- grd_rephist.row = i;
- grd_rephist.dispatch("ondblclick");
- }
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_new" class="btn4_letter2" navindex="101" style="left:922px; top:3px; width:56px; height:22px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInstcdChk();
- var sel_value = trv_report.value;
- if(sel_value == "" ){
- messageBox("보고서가 선택되지","E007");
- return;
- }
- fSetRept("trv_report");
- reportflag = "i";
- fSearchRepDetl();
- ]]>
- </script>
- </button>
- <button id="btn_submit_cancel" class="btn4_letter4" disabled="true" navindex="101" style="left:724px; top:3px; width:80px; height:22px; ">
- <caption>제출취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isUpdatingReport()){
- messageBox("작성된 보고서가 선택되지","E007");
- return;
- }
-
- if(!isValidUser()){
- messageBox("작성자나 책임연구원만 취소가","I006");
- return;
- }
-
- var rtn = messageBox("보고서 제출이 취소됩니다.", "Q003");
- if(rtn != 6){
- return;
- }
-
- setAlertOn();
- fSubmitRep("C");
- fSearchRepStatus();
-
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/main/repstatusinfo/repstatus/status" visibility="hidden" appearance="minimal" style="left:458px; top:4px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/statuslist/status">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCheckStatus();
-
- ]]>
- </script>
- </select1>
- <button id="btn_submit" class="btn4_letter2" disabled="true" navindex="101" style="left:806px; top:3px; width:56px; height:22px; ">
- <caption>제출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isUpdatingReport()){
- messageBox("작성된 보고서가 선택되지","E007");
- return;
- }
-
- if(!isValidUser()){
- messageBox("작성자나 책임연구원만 제출이","I006");
- return;
- }
-
- var rtn = messageBox("연구소에 보고서를 제출합니다.", "Q009");
- if(rtn != 6){
- return;
- }
-
- setAlertOn();
- fSubmitRep("S");
-
-
-
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" navindex="101" style="left:980px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // if(!isUpdatingReport()){
- // messageBox("작성된 보고서가 선택되지","E007");
- // return;
- // }
-
- if( grd_proj.row < 1 ){
- messageBox("삭제할 과제를 선택한 후 진행하세요.","I999");
- return;
- }
-
- if(!isValidUser()){
- messageBox("작성자나 책임연구원만 삭제가","I006");
- return;
- }
-
- var status = model.getValue("/root/main/repstatusinfo/repstatus/status");
- if(status == "E"){
- messageBox("이미 연구소에 제출된 보고서입니다. 제출취소 이후에 삭제","I006");
- return;
- }
-
- if(status == "A"){
- messageBox("이미 연구소확인이 진행된 보고서입니다. 연구소로 문의","I008");
- return;
- }
-
- var rtn = messageBox("정말로 ", "Q001");
- if(rtn != 6){
- return;
- }
-
- reportflag = "d";
- setAlertOn();
- fSaveRepDetl();
- fSetProj();
-
- ]]>
- </script>
- </button>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">
- <![CDATA[과제별 보고서관리]]>
- </caption>
- <button id="btn_NewSave" class="btn4_letter5" navindex="100" style="left:1096px; top:3px; width:92px; height:22px; ">
- <caption>새이름으로</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if(!isWritingReport()){ //입력,수정이 아닌 경우
- // messageBox("저장할 데이터가","E014");
- // return;
- // }
-
- if( grd_proj.row < 1 ){
- messageBox("저장할 과제를 선택한 후 진행하세요.","I999");
- return;
- }
- if(!isValidUser()){
- messageBox("작성자나 책임연구원만 저장이","I006");
- return;
- }
-
- if(isNull(ipt_bsdd.value)){
- messageBox("작성일자는","I003");
- return;
- }
-
- reportflag = "i";
- setAlertOn();
- fSaveRepDetl();
- fSearchReportHist();
-
- var seqno = model.getValue("/root/tmp/retlist/seqno");
- var reptcd = model.getValue("/root/tmp/retlist/reptcd");
-
- for( var i = 0; i <= grd_rephist.rows - grd_rephist.fixedRows ; i++ ){
- if( seqno == model.getValue("/root/main/rephistinfo/rephistlist[" + i + "]/seqno") &&
- reptcd == model.getValue("/root/main/rephistinfo/rephistlist[" + i + "]/reptcd")){
- grd_rephist.row = i;
- grd_rephist.dispatch("ondblclick");
- }
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_pamrgst" class="btn3_letter8" style="left:594px; top:3px; width:128px; height:22px; ">
- <caption>임상미수청구관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("../../../pam/acquaintanceweb/xrw/SMPAM00401_임상미수청구관리_CTMS.xrw", "", "", "" ,"", "", "");
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_proj" nodeset="/root/main/studyprojinfo/studyprojlist" class="datagrid2" scroll="auto" caption="기관^코드^책임연구원^책임연구원^과제번호^과제명^상태^상태명^의뢰회사^과제종류^과제종류명^승인일^단계^상세^연구비총액^연구시작일^연구종료일^직위코드^직위명^소속기관^소속부서코드^소속부서명" colsep="^" colwidth="33, 10, 10, 68, 100, 212, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="21" style="left:0px; top:145px; width:300px; height:310px; font-family:돋움체; ">
- <col 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="projcd" visibility="hidden"/>
- <col ref="rshid" visibility="hidden"/>
- <col ref="rshnm" style="text-align:center; "/>
- <col ref="studycd" style="text-align:left; "/>
- <col ref="projnm" style="text-align:left; "/>
- <col ref="status" visibility="hidden"/>
- <col ref="statusnm" visibility="hidden"/>
- <col ref="reqfirm" visibility="hidden"/>
- <col ref="kind" visibility="hidden"/>
- <col ref="kindnm" visibility="hidden"/>
- <col ref="cnfmdd" visibility="hidden"/>
- <col ref="stage" visibility="hidden"/>
- <col ref="projspec" visibility="hidden"/>
- <col ref="projamt" visibility="hidden"/>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="todd" visibility="hidden"/>
- <col ref="jobposcd" visibility="hidden"/>
- <col ref="jobposnm" visibility="hidden"/>
- <col ref="emplinstcd" visibility="hidden"/>
- <col ref="empldeptcd" visibility="hidden"/>
- <col ref="empldeptnm" visibility="hidden"/>
- <col ref="bsnm" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_proj.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSetProj();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:141px; x2:300px; y2:141px; font-family:돋움체; "/>
- <caption id="caption1" class="tit_2" style="left:970px; top:38px; width:130px; height:13px; font-family:돋움체; ">보고서리스트</caption>
- <line id="line2" class="line_1" style="x1:970px; y1:54px; x2:1195px; y2:54px; font-family:돋움체; "/>
- <datagrid id="grd_rephist" nodeset="/root/main/rephistinfo/rephistlist" class="datagrid2" caption="보고서명^작성자^상태^비고^반려사유^확인일^기관코드^과제코드^reptid^보고서코드^seqno^작성일자" colsep="^" colwidth="113, 42, 37, 230, 168, 75, 4, 4, 7, 6, 7, 6" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="3" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="21" style="left:0px; top:478px; width:300px; height:284px; font-family:돋움체; ">
- <col ref="reptnm"/>
- <col ref="bsnm"/>
- <col disabled="true" ref="status" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/statuslist/status">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="bigo"/>
- <col ref="rjtremark"/>
- <col ref="sbmtdd" format="yyyy-mm-dd"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="projcd" visibility="hidden"/>
- <col ref="bsid" visibility="hidden"/>
- <col ref="reptcd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="bsdd" visibility="hidden" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rephist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSetRept("grd_rephist");
- ]]>
- </script>
- </datagrid>
- <iviewer id="iviewer1" src="SMRIF02110_보고서초기화면.xrw" style="left:305px; top:108px; width:664px; height:654px; "/>
- <input id="input5" ref="/root/main/repmain/projnm" editable="false" style="left:469px; top:36px; width:498px; height:19px; background-color:#ecebec; "/>
- <caption id="cap_goodflagengnm" class="cell_1" style="left:811px; top:57px; width:65px; height:23px; font-family:돋움체; vertical-align:middle; ">작성일자</caption>
- <line id="line4" class="line_2" style="x1:306px; y1:56px; x2:970px; y2:56px; font-family:돋움체; "/>
- <caption id="caption7" class="cell_1" style="left:305px; top:33px; width:65px; height:23px; font-family:돋움체; vertical-align:middle; ">과 제</caption>
- <line id="line5" class="line_2" style="x1:306px; y1:80px; x2:970px; y2:80px; font-family:돋움체; "/>
- <input id="ipt_bsdd" ref="/root/main/repmain/bsdd" inputtype="date" style="left:878px; top:59px; width:90px; height:19px; font-family:돋움체; "/>
- <line id="line6" class="line_3" style="x1:305px; y1:107px; x2:969px; y2:107px; font-family:돋움체; "/>
- <line id="line7" class="line_2" style="x1:306px; y1:106px; x2:970px; y2:106px; font-family:돋움체; "/>
- <caption id="caption8" class="cell_1" style="left:469px; top:57px; width:75px; height:23px; font-family:돋움체; vertical-align:middle; ">책임연구원</caption>
- <input id="input1" ref="/root/main/repmain/rshnm" editable="false" style="left:546px; top:59px; width:90px; height:19px; background-color:#ecebec; "/>
- <input id="input9" ref="/root/main/repmain/projamt" editable="false" format="(-)#,###" style="left:384px; top:83px; width:93px; height:19px; text-align:right; background-color:#ecebec; "/>
- <caption id="caption10" class="cell_2" style="left:305px; top:82px; width:77px; height:23px; font-family:돋움체; font-weight:bold; color:#ffffff; text-align:left; vertical-align:middle; ">연구비총액</caption>
- <input id="ipt_studycd" ref="/root/main/repmain/studycd" editable="false" style="left:372px; top:36px; width:95px; height:19px; background-color:#ecebec; "/>
- <line id="line8" class="line_2" style="x1:306px; y1:104px; x2:970px; y2:104px; font-family:돋움체; "/>
- <line id="line9" class="line_3" style="x1:305px; y1:32px; x2:971px; y2:32px; "/>
- <caption id="caption4" class="cell_1" style="left:305px; top:58px; width:65px; height:23px; font-family:돋움체; vertical-align:middle; ">의뢰기관</caption>
- <input id="input4" ref="/root/main/repmain/reqfirm" editable="false" style="left:372px; top:59px; width:95px; height:19px; background-color:#ecebec; "/>
- <output id="opt_bstotjamt" ref="/root/send/searchproj/bstotjamt" class="output_fix" format="(-)#,###" style="left:878px; top:83px; width:90px; height:19px; text-align:right; "/>
- <output id="opt_bstotiamt" ref="/root/send/searchproj/bstotiamt" class="output_fix" format="(-)#,###" style="left:546px; top:83px; width:90px; height:19px; text-align:right; "/>
- <caption id="caption9" class="cell_2" style="left:811px; top:82px; width:65px; height:22px; font-family:돋움체; font-weight:bold; color:#ffffff; text-align:left; vertical-align:middle; ">잔 액</caption>
- <caption id="caption11" class="cell_2" style="left:479px; top:82px; width:65px; height:22px; font-family:돋움체; font-weight:bold; color:#ffffff; text-align:left; vertical-align:middle; ">입 금 액</caption>
- <caption id="caption12" class="cell_2" style="left:638px; top:82px; width:70px; height:22px; font-family:돋움체; font-weight:bold; color:#ffffff; text-align:left; vertical-align:middle; ">지 출 액</caption>
- <output id="opt_bstotoamt" ref="/root/send/searchproj/bstotoamt" class="output_fix" format="(-)#,###" style="left:710px; top:83px; width:99px; height:19px; text-align:right; "/>
- <input id="input6" ref="/root/main/repmain/bsnm" editable="false" style="left:710px; top:59px; width:99px; height:19px; background-color:#ecebec; "/>
- <caption id="caption13" class="cell_1" style="left:638px; top:58px; width:70px; height:23px; font-family:돋움체; vertical-align:middle; ">작 성 자</caption>
- <treeview id="trv_report" ref="/root/send/selreport" expanddepth="3" fullrowselect="true" itemsettype="depth" style="left:970px; top:58px; width:224px; height:704px; ">
- <itemset nodeset="/root/main/reportinfo/reportlist">
- <label ref="reptnm"/>
- <value ref="reportvalue"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var sel_value = trv_report.value;
- var split_var =sel_value.split('/');
- var depth = split_var[0];
- var reportnm = split_var[1];
-
- if( depth == 3 ){
- fSetRept("trv_report");
- reportflag = "i";
- fSearchRepDetl();
- }
- model.refresh();
- ]]>
- </script>
- </treeview>
- </xhtml:body>
- </xhtml:html>
|