123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>임상약품코드생성의뢰화면</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <subjlist>
- <item>
- <statcd/>
- <subjno/>
- <stdyno/>
- <itemnm/>
- <drugcd/>
- <stdysubjnm/>
- <respstdynm/>
- <reqnm/>
- <clincflag/>
- <ioflag/>
- <stdytermfrom/>
- <stdytermto/>
- <judgdg/>
- <irbjudglistdd/>
- <conpaperconacptdd/>
- <subjenddd/>
- <subjid/>
- <reqno/>
- <reqrid/>
- <reqrnm/>
- <reqdt/>
- <writrid/>
- <writrnm/>
- <writdt/>
- <cmtcnts/>
- <calcscorreqdt/>
- <calcscorrgststat/>
- <calcscorrgstdt/>
- <datayn/>
- <m/>
- </item>
- </subjlist>
- <userpopupinfo/>
- <tempuserinfo/>
- </main>
- <send>
- <srchdata>
- <savemode/>
- <srchsubjno/>
- <srchsubjflag>1</srchsubjflag>
- <srchstdyno/>
- <srchstdyflag>1</srchstdyflag>
- <srchfromdd/>
- <srchtodd/>
- <srchcstatcd1>00</srchcstatcd1>
- <srchcstatcd2>10,20</srchcstatcd2>
- <srchflag1>Y,N</srchflag1>
- <srchflag2>1,2,3</srchflag2>
- </srchdata>
- <savedata/>
- </send>
- <init>
- <savemode/>
- </init>
- <hidden/>
- <temp>
- <receivedata>
- <receiveref/>
- </receivedata>
- <popupmenu>
- <item>
- <func>fOpenDrugMaster</func>
- <label>임상약품마스터 등록</label>
- </item>
- <item>
- <func>fReqCancel</func>
- <label>생성의뢰 취소</label>
- </item>
- <item>
- <func>fWriCancel</func>
- <label>작성완료 취소</label>
- </item>
- </popupmenu>
- <reqdata>
- <subjno/>
- </reqdata>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- menuParam = getScreenMenuParameter(); // R: 의뢰 mode, C: 확인 mode
- if( isNull(menuParam) ) menuParam = "R";
- //------------------(20091015)
- model.setValue("/root/send/srchdata/savemode", menuParam);
-
- if( menuParam == "R" ){
- //R: 의뢰 mode
- caption6.attribute("text") = "임상약품코드생성의뢰 관리(의뢰)";
-
- //btn_save.attribute("text") = "의뢰저장";
- grd_subjlist.colDisabled( grd_subjlist.colRef("writrnm") ) = true;
- grd_subjlist.colDisabled( grd_subjlist.colRef("writdt") ) = true;
- //model.setValue("/root/send/srchdata/srchfromdd", getCurrentDate());
- //model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
- model.setValue("/root/send/srchdata/srchcstatcd2",""); //의뢰인 경우는 상태는 '생성의뢰/작성완료 기본값 해제)
-
- }else{
- //C: 확인 mode
- caption6.attribute("text") = "임상약품코드생성의뢰 관리(확인)";
-
- //btn_save.attribute("text") = "확인저장";
- grd_subjlist.colDisabled( grd_subjlist.colRef("reqrnm") ) = true;
- grd_subjlist.colDisabled( grd_subjlist.colRef("reqdt") ) = true;
-
- getCurrentDate()
-
- var addDate=new Date();
- var curdate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-1, "M");
-
- /* 수정자 : 노동우
- 날짜 : 20091127
- 내용 : 화면 첫 로딩시 조회 조건 없음.
- */
- //model.setValue("/root/send/srchdata/srchfromdd", curdate.getDateFormat("YYYYMMDD") ); // 날짜 초기값 세팅
- //model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
- //model.setValue("/root/send/srchdata/srchcstatcd1",""); //의뢰인 경우는 상태는 '생성의뢰/작성완료 기본값 해제)
-
- //------------------(20091015)
- }
-
- //------------920091015)
- model.removeNodeset("/root/main/subjlist/item"); // 첫 row 를 제거한다.
- model.refresh();
- model.setFocus("btn_query");
- //-----------
- fGetSubjList();
- ]]>
- </script>
- <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"/>
- <submission id="TRATB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/subjlist"/>
- <submission id="TXATB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/subjlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //전역변수
- var menuParam = "";
- var ref = "/root/main/subjlist/item";
-
- //임상약품코드생성의뢰 리스트 조회
- function fGetSubjList(){
-
- //-------------------(20091015)
- //수가신청이 체크된 경우
- //미승인,승인중,승인완료를 체크해야함
-
- //alert(model.getValue("/root/send/srchdata/srchflag1"));
-
- if (model.getValue("/root/send/srchdata/srchflag1") == "Y" || model.getValue("/root/send/srchdata/srchflag1") == "Y,N" ) {
- if (model.getValue("/root/send/srchdata/srchflag2") == "" ) {
- messageBox("수가신청은 '미승인 ,승인중 ,승인완료' 중 한가지 이상 선택해야 합니다.","I9999");
- model.setFocus("chk_srchflag2");
- return;
- }
- }
- if (model.getValue("/root/send/srchdata/srchflag1") == "" ) {
- messageBox("수가신청,미신청중 한가지 이상 선택해야 합니다.","I9999");
- model.setFocus("chk_srchflag2");
- return;
- }
- //--------------------
- submit("TRATB00601", true);
- }
-
- //사용자 팝업 호출 및 사용자 정보 return
- function fGetUserInfo(){
- var iRow = grd_subjlist.row - grd_subjlist.fixedRows + 1;
- var iCol = grd_subjlist.col;
-
- if( iRow > 0 && iRow <= grd_subjlist.rows ){
- var reqNo = model.getValue(ref + "[" + iRow + "]/reqno"); //key
- var reqrID = model.getValue(ref + "[" + iRow + "]/reqrid");
- var reqrNm = model.getValue(ref + "[" + iRow + "]/reqrnm");
- var reqDt = model.getValue(ref + "[" + iRow + "]/reqdt");
- var writrID = model.getValue(ref + "[" + iRow + "]/writrid");
- var writrNm = model.getValue(ref + "[" + iRow + "]/writrnm");
- var writDt = model.getValue(ref + "[" + iRow + "]/writdt");
- var orgStatus = model.getValue(ref + "[" + iRow + "]/statcd");
- var srchTxt = "";
-
- if( menuParam == "R" && iCol == grd_subjlist.colRef("reqrnm") ){
- srchTxt = reqrNm;
-
- if( orgStatus == "20" ){
- messageBox ( "이미 작성완료 상태이므로 수정할 수", "I004" );
- return;
- }
-
- } else if( menuParam == "C" && iCol == grd_subjlist.colRef("writrnm") ){
- srchTxt = writrNm;
-
- if( orgStatus == "00" ){
- messageBox ( "미의뢰 상태이므로 수정할 수", "I004" );
- grd_subjlist.endEditCell();
- return;
- }
-
- }else{
- return;
- }
-
- model.resetInstanceNode("/root/main/userpopupinfo");
- model.resetInstanceNode("/root/main/tempuserinfo");
-
- model.makeValue("/root/main/userpopupinfo/param", "_OneS");
- model.makeValue("/root/main/userpopupinfo/flag", "usernm");
- model.makeValue("/root/main/userpopupinfo/searchitem", srchTxt );
-
- modal("../../userdeptinfoweb/xrw/SPZSU10103", "", "200", "200", "SPZSU10103","/root/main/userpopupinfo","/root/main/temp");
-
- var iParam = getParameter("SPZSU10103_");
- if( !isNull(iParam) ){
- setCSVToNode("/root/main/tempuserinfo", iParam, "list"); //return 받은 데이터
-
- var id = model.getValue("/root/main/tempuserinfo/list[1]/userid");
- var nm = model.getValue("/root/main/tempuserinfo/list[1]/usernm");
-
- if( menuParam == "R" && reqrID != id ){
- model.setValue(ref + "[" + iRow + "]/reqrid", id);
- model.setValue(ref + "[" + iRow + "]/reqrnm", nm);
- if(isNull(reqDt)) model.setValue(ref + "[" + iRow + "]/reqdt", getCurrentDate());
- if(isNull(reqNo)){
- model.setValue(ref + "[" + iRow + "]/statcd", "10");
- model.setValue(ref + "[" + iRow + "]/m", "I");
- }else{
- model.setValue(ref + "[" + iRow + "]/m", "U");
- }
-
- }else if( menuParam == "C" && writrID != id ) {
- model.setValue(ref + "[" + iRow + "]/writrid", id);
- model.setValue(ref + "[" + iRow + "]/writrnm", nm);
- if(isNull(reqDt)) model.setValue(ref + "[" + iRow + "]/writdt", getCurrentDate());
- if(isNull(reqNo)) model.setValue(ref + "[" + iRow + "]/statcd", "20");
- model.setValue(ref + "[" + iRow + "]/m", "U");
- }
-
- }
- clearParameter("SPZSU10103_");
- }
- }
-
- //과제정보를 물고 임상시험약품정보(마스터) open
- function fOpenDrugMaster(){
- model.setValue("/root/temp/reqdata/subjno", model.getValue(ref + "[" + grd_subjlist.row + "]/subjno"));
- modal("SMADC10600", "", "", "", "SMADC10600", "/root/temp/reqdata/subjno", "/root/main/crinfo/crdruginfo/subjectno");
- }
-
- // 20091229_노동우_생성의뢰 취소
- function fReqCancel() {
- var iRow = grd_subjlist.row;
- var reqNo = model.getValue(ref + "[" + iRow + "]/reqno"); //key
- var reqrID = model.getValue(ref + "[" + iRow + "]/reqrid");
- var reqrNm = model.getValue(ref + "[" + iRow + "]/reqrnm");
- var reqDt = model.getValue(ref + "[" + iRow + "]/reqdt");
- var orgStatus = model.getValue(ref + "[" + iRow + "]/statcd");
-
- //&& (iCol == grd_subjlist.colRef("reqdt") || iCol == grd_subjlist.colRef("reqrnm"))
- //신청 변경
- if( menuParam == "R" && orgStatus == "10" ){
- if( orgStatus == "20" ){
- messageBox ( "이미 작성완료 상태이므로 수정할 수", "I004" );
- return;
- }
- if( !isNull(reqNo) && reqrID == getUserId() ){
-
- //생성의뢰 취소 -> 미의뢰
- model.setValue(ref + "[" + iRow + "]/m", "U");
- model.setValue(ref + "[" + iRow + "]/statcd", "00");
- model.setValue(ref + "[" + iRow + "]/reqrid", "");
- model.setValue(ref + "[" + iRow + "]/reqrnm", "");
- model.setValue(ref + "[" + iRow + "]/reqdt", "");
- grd_subjlist.rowStatus(iRow) = 2; //수정
- return;
- //model.refresh();
- } else {
- messageBox ( "의뢰자가 틀려 생성의뢰 취소할 수", "I004" );
- return;
- }
- } else if( menuParam == "R" && orgStatus == "00"){
- messageBox ( "생성의뢰 취소할 수", "I004" );
- return;
- } else return;
- }
-
- // 20091229_노동우_작성완료 취소
- function fWriCancel() {
- var iRow = grd_subjlist.row;
-
- var writrID = model.getValue(ref + "[" + iRow + "]/writrid");
- var writrNm = model.getValue(ref + "[" + iRow + "]/writrnm");
- var writDt = model.getValue(ref + "[" + iRow + "]/writdt");
- var orgStatus = model.getValue(ref + "[" + iRow + "]/statcd");
-
- //신청 변경
- if( menuParam == "C" && orgStatus == "20" ){
- if( !isNull(writrID) && writrID == getUserId() ){
-
- // 작성완료 취소 -> 생성의뢰
- model.setValue(ref + "[" + iRow + "]/m", "U");
- model.setValue(ref + "[" + iRow + "]/statcd", "10");
- model.setValue(ref + "[" + iRow + "]/writrid", "");
- model.setValue(ref + "[" + iRow + "]/writrnm", "");
- model.setValue(ref + "[" + iRow + "]/writdt", "");
- grd_subjlist.rowStatus(iRow) = 2; //수정
- return;
- } else {
- messageBox ( "작성약사가 틀려 작서완료 취소할 수", "I004" );
- return;
- }
- } else if( menuParam == "C" && orgStatus == "10"){
- messageBox ( "작성완료 취소할 수", "I004" );
- return;
- } else return;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="785" guideline="1,1194;2,757;2,786;">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">임상약품코드생성의뢰 관리</caption>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
- <button id="btn_query" class="btn1_letter2" style="left:1120px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSubjList();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1104px; y1:9px; x2:1104px; y2:52px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:32px; width:91px; height:17px; ">과제번호 :</caption>
- <caption id="caption10" class="search_name" style="left:15px; top:10px; width:106px; height:17px; ">연구코드 :</caption>
- <caption id="caption3" class="search_name" style="left:313px; top:10px; width:148px; height:17px; ">의뢰일자 :</caption>
- <input id="input8" ref="/root/send/srchdata/srchstdyno" class="input_default" style="left:110px; top:9px; width:93px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- fGetSubjList();
- }
- ]]>
- </script>
- </input>
- <select1 id="radio1" ref="/root/send/srchdata/srchsubjflag" visibility="hidden" appearance="full" cols="3" overflow="visible" style="left:205px; top:32px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>포함</label>
- <value>1</value>
- </item>
- <item>
- <label>일치</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio3" ref="/root/send/srchdata/srchstdyflag" visibility="hidden" appearance="full" cols="3" overflow="visible" style="left:205px; top:9px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>포함</label>
- <value>1</value>
- </item>
- <item>
- <label>일치</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="input3" ref="/root/send/srchdata/srchsubjno" class="input_default" style="left:110px; top:33px; width:93px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- fGetSubjList();
- }
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:313px; top:35px; width:85px; height:17px; ">상 태 :</caption>
- <caption id="caption11" class="search_n_b" style="left:515px; top:11px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="input2" ref="/root/send/srchdata/srchfromdd" class="input_s_essential" inputtype="date" style="left:410px; top:9px; width:100px; height:19px; "/>
- <input id="input6" ref="/root/send/srchdata/srchtodd" class="input_s_essential" inputtype="date" style="left:532px; top:9px; width:100px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:740px; top:10px; width:144px; height:17px; ">수가요청승인구분 :</caption>
- <select id="checkbox2" ref="/root/send/srchdata/srchcstatcd2" overflow="visible" appearance="full" cellspacing="10" cols="10" sep="," style="left:485px; top:33px; width:155px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>생성의뢰</label>
- <value>10</value>
- </item>
- <item>
- <label>작성완료</label>
- <value>20</value>
- </item>
- </choices>
- </select>
- <select id="checkbox3" ref="/root/send/srchdata/srchcstatcd1" overflow="visible" appearance="full" style="left:410px; top:33px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미의뢰</label>
- <value>00</value>
- </item>
- </choices>
- </select>
- <select id="chk_srchflag2" ref="/root/send/srchdata/srchflag2" overflow="visible" appearance="full" cellspacing="10" cols="3" sep="," style="left:885px; top:30px; width:200px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미승인</label>
- <value>1</value>
- </item>
- <item>
- <label>승인중</label>
- <value>2</value>
- </item>
- <item>
- <label>승인완료</label>
- <value>3</value>
- </item>
- </choices>
- </select>
- <select id="chk_srchflag1" ref="/root/send/srchdata/srchflag1" overflow="visible" appearance="full" cols="2" sep="," style="left:885px; top:8px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>수가신청</label>
- <value>Y</value>
- </item>
- <item>
- <label>미신청</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/send/srchdata/srchflag1") != "N" ) chk_srchflag2.disabled = false;
- else chk_srchflag2.disabled = true;
- ]]>
- </script>
- </select>
- </group>
- <line id="line6" class="line_3" style="x1:655px; y1:743px; x2:1194px; y2:743px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:94px; x2:1194px; y2:94px; "/>
- <button id="button5" class="btn2_letter4" style="left:1131px; top:74px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //-------------(20091015)
- var fileName = window.fileDialog("save", ",", false, "임상약품코드생성의뢰 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_subjlist.saveExcel(fileName, "Sheet1", false, false, "", "", false);
- }
- //----------------
- ]]>
- </script>
- </button>
- <caption id="caption7" class="tit_2" style="left:5px; top:79px; width:147px; height:14px; ">임상약품코드생성의뢰</caption>
- <datagrid id="grd_subjlist" nodeset="/root/main/subjlist/item" class="datagrid2" caption="상태^과제번호^연구코드^품목명^시험약코드^연구제목^책임연구자^의뢰자(상호)^임상단계^원내외구분^연구예정기간^연구예정기간^IRB차수^승인일^계약일^종결일^과제ID^reqno^reqrid^의뢰자^의뢰일자^writrid^작성약사^작성완료일자^수가요청일^수가요청
승인상태^수가요청
승인일^비고^자료존재여부^m" colsep="^" colwidth="66, 95, 85, 100, 30, 110, 70, 90, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 65, 85, 20, 71, 88, 80, 80, 85, 145, 0, 30" ellipsis="true" explorerbar="sortshow" rowheader="update" rowsep="|" style="left:0px; top:99px; width:1195px; height:645px; ">
- <col disabled="true" ref="statcd" type="combo">
- <choices>
- <item>
- <label>생성의뢰</label>
- <value>10</value>
- </item>
- <item>
- <label>작성완료</label>
- <value>20</value>
- </item>
- <item>
- <label>미의뢰</label>
- <value>00</value>
- </item>
- </choices>
- </col>
- <col ref="subjno" style="left:66px; top:23px; width:95px; height:23px; "/>
- <col ref="stdyno"/>
- <col ref="itemnm"/>
- <col ref="drugcd" visibility="hidden"/>
- <col ref="stdysubjnm"/>
- <col ref="respstdynm"/>
- <col ref="reqnm"/>
- <col disabled="true" ref="clincflag" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>허가1</label>
- <value>1</value>
- </item>
- <item>
- <label>허가2</label>
- <value>2</value>
- </item>
- <item>
- <label>허가3</label>
- <value>3</value>
- </item>
- <item>
- <label>연구용</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="ioflag" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="stdytermfrom" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="stdytermto" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="judgdg" visibility="hidden" style="text-align:center; "/>
- <col ref="irbjudglistdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="conpaperconacptdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="subjenddd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="subjid" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqrid" visibility="hidden"/>
- <col ref="reqrnm"/>
- <col ref="reqdt" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="writrid" visibility="hidden"/>
- <col ref="writrnm"/>
- <col ref="writdt" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="calcscorreqdt" format="yyyy-mm-dd"/>
- <col disabled="true" ref="calcscorrgststat" type="combo">
- <choices>
- <item>
- <label>미승인</label>
- <value>1</value>
- </item>
- <item>
- <label>승인중</label>
- <value>2</value>
- </item>
- <item>
- <label>승인완료</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="calcscorrgstdt" format="yyyy-mm-dd"/>
- <col ref="cmtcnts"/>
- <col ref="datayn" visibility="hidden"/>
- <col ref="m" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var iRow = grd_subjlist.row - grd_subjlist.fixedRows + 1;
- var iCol = grd_subjlist.col;
- if( iRow > 0 && iRow <= grd_subjlist.rows ){
- var reqNo = model.getValue(ref + "[" + iRow + "]/reqno"); //key
- var reqrID = model.getValue(ref + "[" + iRow + "]/reqrid");
- var reqrNm = model.getValue(ref + "[" + iRow + "]/reqrnm");
- var reqDt = model.getValue(ref + "[" + iRow + "]/reqdt");
- var writrID = model.getValue(ref + "[" + iRow + "]/writrid");
- var writrNm = model.getValue(ref + "[" + iRow + "]/writrnm");
- var writDt = model.getValue(ref + "[" + iRow + "]/writdt");
- var orgStatus = model.getValue(ref + "[" + iRow + "]/statcd");
-
- //신청 변경
- if( menuParam == "R" && (iCol == grd_subjlist.colRef("reqdt") || iCol == grd_subjlist.colRef("reqrnm")) ){
- if( orgStatus == "20" ){
- messageBox ( "이미 작성완료 상태이므로 수정할 수", "I004" );
- return;
- }
- if( isNull(reqNo) ){
- model.setValue(ref + "[" + iRow + "]/m", "I");
- model.setValue(ref + "[" + iRow + "]/statcd", "10");
- model.setValue(ref + "[" + iRow + "]/reqrid", getUserId());
- model.setValue(ref + "[" + iRow + "]/reqrnm", getUserName());
- model.setValue(ref + "[" + iRow + "]/reqdt", getCurrentDate());
- grd_subjlist.rowStatus(iRow) = 2;
- } else if(reqrID == "-" && orgStatus == "00" ) {
- model.setValue(ref + "[" + iRow + "]/statcd", "10");
- model.setValue("/root/main/subjlist/item[" + iRow + "]/m", "U");
-
- model.setValue(ref + "[" + iRow + "]/reqrid", getUserId());
- model.setValue(ref + "[" + iRow + "]/reqrnm", getUserName());
- model.setValue(ref + "[" + iRow + "]/reqdt", getCurrentDate());
- grd_subjlist.rowStatus(iRow) = 2;
- } else return;
-
- }else if( menuParam == "C" && (iCol == grd_subjlist.colRef("writdt") || iCol == grd_subjlist.colRef("writrnm")) ){
- if( orgStatus == "00" ){
- messageBox ( "미의뢰 상태이므로 수정할 수", "I004" );
- grd_subjlist.endEditCell(); // (20091015)
- return;
- }
-
- if(!isNull(reqrID) && reqrID != "-" && orgStatus == "10") {
- model.setValue(ref + "[" + iRow + "]/statcd", "20");
- model.setValue("/root/main/subjlist/item[" + iRow + "]/m", "U");
-
- model.setValue(ref + "[" + iRow + "]/writrid", getUserId());
- model.setValue(ref + "[" + iRow + "]/writrnm", getUserName());
- model.setValue(ref + "[" + iRow + "]/writdt", getCurrentDate());
- grd_subjlist.rowStatus(iRow) = 2;
- } else if( isNull(reqrID) || reqrID == "-") {
- messageBox ( "의뢰자가", "I004" );
- return;
- }
-
- }else{
- return;
- }
-
- }
- ]]>
- </script>
- <!-- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // 20091128_노동우_로그인한 사용자만 의뢰자, 작성자에 이름 넣을수 있게.
- //fGetUserInfo();
- ]]>
- </script>-->
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 20091229_노동우_날짜 변경
- var iRow = grd_subjlist.row - grd_subjlist.fixedRows + 1;
- var iCol = grd_subjlist.col;
- if( iRow > 0 && iRow <= grd_subjlist.rows ){
- var reqNo = model.getValue(ref + "[" + iRow + "]/reqno"); //key
- var reqrID = model.getValue(ref + "[" + iRow + "]/reqrid");
- var reqrNm = model.getValue(ref + "[" + iRow + "]/reqrnm");
- var reqDt = model.getValue(ref + "[" + iRow + "]/reqdt");
- var writrID = model.getValue(ref + "[" + iRow + "]/writrid");
- var writrNm = model.getValue(ref + "[" + iRow + "]/writrnm");
- var writDt = model.getValue(ref + "[" + iRow + "]/writdt");
- var orgStatus = model.getValue(ref + "[" + iRow + "]/statcd");
-
- //신청 변경
- if( menuParam == "R" && (iCol == grd_subjlist.colRef("reqdt") || iCol == grd_subjlist.colRef("reqrnm")) ){
- if( orgStatus == "20" ){
- messageBox( "이미 작성완료 상태이므로 수정할 수", "I004" );
- return;
- }
- if( isNull(reqNo) && isNull(reqrID) ){
- messageBox("의뢰자를","C001" );
- return;
- }else if( !isNull(reqNo) && reqDt.substr(0,8) != getCurrentDate() && reqrID == getUserId()){
- model.setValue(ref + "[" + iRow + "]/m", "U");
- model.setValue(ref + "[" + iRow + "]/reqrid", getUserId());
- model.setValue(ref + "[" + iRow + "]/reqrnm", getUserName());
- model.setValue(ref + "[" + iRow + "]/reqdt", reqDt.substr(0,8));
- return;
- } else if( !isNull(reqNo) && reqDt.substr(0,8) != getCurrentDate() && reqrID == '-'){
- messageBox("의뢰자를","C001" );
- return;
- } else if( !isNull(reqNo) && reqDt.substr(0,8) != getCurrentDate() && reqrID != getUserId() ) {
- messageBox("의뢰자가 틀려 날짜를 변경할 수" , "I004");
- grd_subjlist.rowStatus(iRow) = 0;
- return;
- } else return;
-
- }else if( menuParam == "C" && (iCol == grd_subjlist.colRef("writdt") || iCol == grd_subjlist.colRef("writrnm")) ){
- if( orgStatus == "00" ){
- messageBox("미의뢰 상태이므로 수정할 수", "I004" );
- grd_subjlist.endEditCell(); // (20091015)
- return;
- }
-
- if(!isNull(writrID) && writDt.substr(0,8) != getCurrentDate() && writrID == getUserId() ) {
- model.setValue("/root/main/subjlist/item[" + iRow + "]/m", "U");
-
- model.setValue(ref + "[" + iRow + "]/writrid", getUserId());
- model.setValue(ref + "[" + iRow + "]/writrnm", getUserName());
- model.setValue(ref + "[" + iRow + "]/writdt", writDt.substr(0,8));
- grd_subjlist.rowStatus(iRow) = 2;
- return;
- } else if( !isNull(writrID) && writDt.substr(0,8) != getCurrentDate() && writrID == '-'){
- messageBox("작성약사를","C001" );
- return;
- } else if( !isNull(writrID) && writDt.substr(0,8) != getCurrentDate() && writrID != getUserId() ) {
- messageBox("작성약사가 틀려 날짜를 변경할 수" , "I004");
- grd_subjlist.rowStatus(iRow) = 0;
- return;
- } else return;
-
- }else{
- return;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_subjlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if( event.button == 3 )
- setPopupMenu("grd_subjlist", false, "/root/temp/popupmenu/item", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <button id="btn_save" class="btn4_letter4" navindex="31" style="left:1045px; top:72px; width:80px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //--------------------------------
- //-----------------(20091015)
- var sUserId = getUserId();
- var sUserNm = getUserName();
- //var sDate = getCurrentDate();
- var sflag = "";
-
- var sGrid = grd_subjlist;
- var ref = "/root/main/subjlist/item";
-
- if (sGrid.rows <=1) {
- messageBox("자료가 존재하지 않습니다.","I9999");
- model.setFocus("btn_query");
- return;
- }
-
- if (menuParam =="R") {
- // 메뉴가 'R' 인경우는 '의뢰관리로 호출된것으로
- // 자동설정시 '미의뢰'를 ''생성의뢰'로 변경하고 '저장하면 저장되도록 한다.
- for(iRow = 1; iRow <= getNodesetCount(ref); iRow++ ) {
- var sStatcd = model.getValue(ref + "["+ iRow +"]/statcd");
- if (sStatcd == "10") { //생성의뢰이면
- if ( model.getValue(ref + "[" + iRow + "]/m") == "I") {
- if (model.getValue(ref + "[" + iRow + "]/reqrnm") == "") {
- model.setValue(ref + "[" + iRow + "]/m", "");
- sGrid.rowStatus(iRow) = 0;
- messageBox("과제번호(" + model.getValue(ref + "[" + iRow + "]/subjno") + ")는 의뢰자정보가 없어 저장되지 않습니다","I9999");
- }
- }
- }
- }
- model.refresh();
- } else {
- // 메뉴가 'R'가 아닌경우는 '확인관리로 호출된것으로
- // 자동설정시 '생성의뢰'를 ''작성완료'로 변경하고 '저장하면 저장되도록 한다.
- for(iRow = 1; iRow <= getNodesetCount(ref); iRow++ ) {
- var sStatcd = model.getValue(ref + "["+ iRow +"]/statcd");
- if (sStatcd == "20") { //작성완료
- if ( model.getValue(ref + "[" + iRow + "]/m") == "U") {
- //alert(iRow + "/" + model.getValue(ref + "[" + iRow + "]/writrnm"));
- if (model.getValue(ref + "[" + iRow + "]/writrnm") == "") {
- model.setValue(ref + "[" + iRow + "]/m", "");
- sGrid.rowStatus(iRow) = 0;
- messageBox("과제번호(" + model.getValue(ref + "[" + iRow + "]/subjno") + ")는 작성자정보가 없어 저장되지 않습니다","I9999");
- }
- }
- }
-
- }
- model.refresh();
- }
- //-------------------
- //--------------------------------
- copyNodeListType("/root/send/savedata", "/root/main/subjlist/item[m!='']", "replace", model, model);
- submit("TXATB00601", true);
- ]]>
- </script>
- </button>
- <button id="btn_autoN" class="btn4_letter4" navindex="31" style="left:963px; top:71px; width:80px; height:22px; ">
- <caption>자동해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //-----------------(20091015)
- var sUserId = getUserId();
- var sUserNm = getUserName();
- var sDate = getCurrentDate();
-
- var sGrid = grd_subjlist;
- var ref = "/root/main/subjlist/item";
- var sflag = "";
-
- if (sGrid.rows <=1) {
- messageBox("자료가 존재하지 않습니다.","I9999");
- model.setFocus("btn_query");
- return;
- }
- //alert(menuParam+ "/" + getNodesetCount(ref));
- if (menuParam =="R") {
- // 메뉴가 'R' 인경우는 '의뢰관리로 호출된것으로
- // 자동해제시 신규자료중 '생성의뢰'을 '미의뢰'로 변경하고 '저장하면 저장되도록 한다.
- sflag = "N";
- for(iRow = 1; iRow <= getNodesetCount(ref); iRow++ ) {
- var sStatcd = model.getValue(ref + "["+ iRow +"]/statcd");
- //alert(iRow);
- if (sStatcd == "10") { //생성의뢰
- model.setValue(ref + "[" + iRow + "]/reqrid", "");
- model.setValue(ref + "[" + iRow + "]/reqrnm", "");
- model.setValue(ref + "[" + iRow + "]/reqdt", "");
- model.setValue(ref + "[" + iRow + "]/statcd", "00");
- //-----------------(20091015_20091101)
- //if (model.getValue(ref + "[" + iRow + "]/m") == 'I') { //신규이면
- //alert(model.getValue(ref + "["+ iRow +"]/datayn"));
- if ( model.getValue(ref + "["+ iRow +"]/datayn") != "Y" ) {
- model.setValue(ref + "[" + iRow + "]/m", "");
- sGrid.rowStatus(iRow)=0 ; //초기화
- } else {
- model.setValue(ref + "[" + iRow + "]/m", "U");
- sGrid.rowStatus(iRow)=2 ;
- }
- //-----------------(20091015_20091101)
- sflag = "Y";
- }
- }
- if (sflag == "Y") {
- messageBox("자동해제했습니다.","I9999");
- } else {
- messageBox("자동해제대상이 없습니다.","I9999");
- }
- model.refresh();
- } else {
- // 메뉴가 'R'가 아닌경우는 '확인관리로 호출된것으로
- // 자동설정시 '생성의뢰'를 ''작성완료'로 변경하고 '저장하면 저장되도록 한다.
- sflag = "N";
- for(iRow = 1; iRow <= getNodesetCount(ref); iRow++ ) {
- var sStatcd = model.getValue(ref + "["+ iRow +"]/statcd");
- //alert(iRow);
- if (sStatcd == "20") { //신규이면서 생성의뢰이면
- model.setValue(ref + "[" + iRow + "]/writrid", "");
- model.setValue(ref + "[" + iRow + "]/writrnm", "");
- model.setValue(ref + "[" + iRow + "]/writdt", "");
- model.setValue(ref + "[" + iRow + "]/statcd", "10");
- model.setValue(ref + "[" + iRow + "]/m", "U");
- sGrid.rowStatus(iRow)=2 ;
- sflag = "Y";
- }
- }
- if (sflag == "Y") {
- messageBox("자동해제했습니다.","I9999");
- } else {
- messageBox("자동해제대상이 없습니다.","I9999");
- }
- model.refresh();
- }
- //-------------------
- ]]>
- </script>
- </button>
- <button id="btn_autoY" class="btn4_letter4" navindex="31" style="left:883px; top:71px; width:80px; height:22px; ">
- <caption>자동설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //-----------------(20091015)
- var sUserId = getUserId();
- var sUserNm = getUserName();
- var sDate = getCurrentDate();
- var sflag = "";
-
- var sGrid = grd_subjlist;
- var ref = "/root/main/subjlist/item";
-
- if (sGrid.rows <=1) {
- messageBox("자료가 존재하지 않습니다.","I9999");
- model.setFocus("btn_query");
- return;
- }
-
- if (menuParam =="R") {
- // 메뉴가 'R' 인경우는 '의뢰관리로 호출된것으로
- // 자동설정시 '미의뢰'를 ''생성의뢰'로 변경하고 '저장하면 저장되도록 한다.
- sflag = "N";
- for(iRow = 1; iRow <= getNodesetCount(ref); iRow++ ) {
- var sStatcd = model.getValue(ref + "["+ iRow +"]/statcd");
- if (sStatcd == "00") { //미의뢰이면
- model.setValue(ref + "[" + iRow + "]/reqrid", sUserId);
- model.setValue(ref + "[" + iRow + "]/reqrnm", sUserNm);
- model.setValue(ref + "[" + iRow + "]/reqdt", sDate);
- model.setValue(ref + "[" + iRow + "]/statcd", "10");
-
- if ( model.getValue(ref + "["+ iRow +"]/datayn") == "Y" ) {
- model.setValue(ref + "[" + iRow + "]/m", "U");
- sGrid.rowStatus(iRow) = 2; //수정
- } else {
- model.setValue(ref + "[" + iRow + "]/m", "I");
- sGrid.rowStatus(iRow) = 1; //신규
- }
- sflag = "Y";
- }
- }
- if (sflag == "Y") {
- messageBox("자동설정했습니다.","I9999");
- } else {
- messageBox("자동설정대상이 없습니다.","I9999");
- }
- model.refresh();
-
- } else {
- // 메뉴가 'R'가 아닌경우는 '확인관리로 호출된것으로
- // 자동설정시 '생성의뢰'를 ''작성완료'로 변경하고 '저장하면 저장되도록 한다.
- sflag = "N";
- for(iRow = 1; iRow <= getNodesetCount(ref); iRow++ ) {
- var sStatcd = model.getValue(ref + "["+ iRow +"]/statcd");
-
- if (sStatcd == "10") { //생성의뢰이면
- model.setValue(ref + "[" + iRow + "]/writrid", sUserId);
- model.setValue(ref + "[" + iRow + "]/writrnm", sUserNm);
- model.setValue(ref + "[" + iRow + "]/writdt", sDate);
- model.setValue(ref + "[" + iRow + "]/statcd", "20");
- model.setValue(ref + "[" + iRow + "]/m", "U");
- sGrid.rowStatus(iRow) = 2; //수정
- sflag = "Y";
- }
- }
- if (sflag == "Y") {
- messageBox("자동설정했습니다.","I9999");
- } else {
- messageBox("자동설정대상이 없습니다.","I9999");
- }
- model.refresh();
- }
- //-------------------
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <!--
- <button id="btn_save" class="btn4_letter4" navindex="31" style="left:1043px; top:5px; width:80px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- copyNodeListType("/root/send/savedata", "/root/main/subjlist/item[m!='']", "replace", model, model);
-
- return;
- submit("TXATB00601", true);
- ]]>
- </script>
- </button>
- -->
- <button id="button2" class="btn4_letter3" navindex="31" visibility="hidden" style="left:1125px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|