SMRIF02200_과제별보고서확인.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns: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">
  4. <xhtml:head>
  5. <xhtml:title>일자별보고서확인</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <studyprojinfo/>
  11. <rephistinfo/>
  12. <repinfo/>
  13. </main>
  14. <send>
  15. <searchproj>
  16. <instcd/>
  17. <studycd/>
  18. <rshid/>
  19. <projnm/>
  20. <chk/>
  21. <bstotiamt/>
  22. <bstotoamt/>
  23. <bstotjamt/>
  24. <projamt/>
  25. <reqfirm/>
  26. <rshnm/>
  27. <bsdd/>
  28. <fromdd/>
  29. <todd/>
  30. <daykind/>
  31. </searchproj>
  32. <searchrephist>
  33. <instcd/>
  34. <projcd/>
  35. <statushis/>
  36. <fromdd/>
  37. <todd/>
  38. <daykind/>
  39. </searchrephist>
  40. <searchrep>
  41. <instcd/>
  42. <projcd/>
  43. <reptcd/>
  44. <seqno/>
  45. </searchrep>
  46. <save>
  47. <savedata/>
  48. </save>
  49. <userinfo/>
  50. </send>
  51. <init>
  52. <rshinfo/>
  53. <status/>
  54. </init>
  55. <hidden>
  56. <instlist>
  57. <inst>
  58. <cdnm>본원</cdnm>
  59. <cdid>031</cdid>
  60. </inst>
  61. <inst>
  62. <cdnm>칠곡</cdnm>
  63. <cdid>032</cdid>
  64. </inst>
  65. </instlist>
  66. <statuslist>
  67. <status>
  68. <cdnm>진행</cdnm>
  69. <cdid>P</cdid>
  70. </status>
  71. <status>
  72. <cdnm>반려</cdnm>
  73. <cdid>R</cdid>
  74. </status>
  75. <status>
  76. <cdnm>제출</cdnm>
  77. <cdid>E</cdid>
  78. </status>
  79. <status>
  80. <cdnm>확인</cdnm>
  81. <cdid>A</cdid>
  82. </status>
  83. </statuslist>
  84. <docinfo>
  85. <signimge/>
  86. </docinfo>
  87. </hidden>
  88. <temp/>
  89. </root>
  90. </instance>
  91. <submission id="TRRIF02201" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchproj" replace="instance" resultref="/root/main/studyprojinfo"/>
  92. <submission id="TRRIF02202" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrephist" replace="instance" resultref="/root/main/rephistinfo"/>
  93. <submission id="TRRIF02203" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrep" replace="instance" resultref="/root/main/repinfo"/>
  94. <submission id="TRRIF02204" mediatype="application/x-www-form-urlencoded" method="form-data-post" replace="instance" resultref="/root/init/rshinfo"/>
  95. <submission id="TXRIF02201" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
  96. <submission id="TRRIS00306" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrep" replace="instance" resultref="/root/main/projamt"/>
  97. <submission id="TRRIF01205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/docinfo/userid" resultref="/root/hidden/docinfo/signimge"/>
  98. <script type="javascript" ev:event="xforms-ready">
  99. <![CDATA[
  100. fInitialize();
  101. ]]>
  102. </script>
  103. </model>
  104. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  109. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  110. <script type="javascript" src="../../../mis/ctmsweb/js/SMRIS00101.js"/>
  111. <script type="javascript">
  112. <![CDATA[
  113. function fInitialize(){
  114. switch1.selectedIndex = 1;
  115. model.makeValue("/root/send/searchproj/daykind","A");
  116. model.makeValue("/root/send/searchproj/fromdd",getCurrentDate());
  117. model.makeValue("/root/send/searchproj/todd",getCurrentDate());
  118. model.makeValue("/root/send/searchproj/instcd",getUserInfo("dutplceinstcd"));
  119. zbcfGetCodeList(new Array("I0010"), new Array("/root/init/status"));
  120. if (isPopup()) {
  121. var menuparam = opener.window.javascript.getParameter("SMRIF02200_menuparam");
  122. var rshid = opener.window.javascript.getParameter("SMRIF02200_rshid");
  123. var rshnm = opener.window.javascript.getParameter("SMRIF02200_rshnm");
  124. var studycd = opener.window.javascript.getParameter("SMRIF02200_studycd");
  125. model.makeValue("/root/send/searchproj/rshid", rshid );
  126. model.makeValue("/root/send/searchproj/rshnm", rshnm );
  127. model.makeValue("/root/send/searchproj/studycd", studycd );
  128. model.makeValue("/root/send/searchproj/chk", "Y" );
  129. model.makeValue("/root/send/searchrephist/statushis" , "E" );
  130. fSearch();
  131. model.refresh();
  132. }
  133. submit("TRRIF02204",false);
  134. fSetStatus();
  135. model.refresh();
  136. }
  137. function inputEnterKeySearch() {
  138. if(event.keyCode == "13") {
  139. setInputNodeCurText();
  140. fSearch();
  141. }
  142. }
  143. /* 과제 조회 */
  144. function fSearch(){
  145. submit("TRRIF02201",false);
  146. model.refresh();
  147. }
  148. /* 보고서내역 조회 */
  149. function fSearchReportHist(){
  150. var idx = grd_proj.row;
  151. submit("TRRIF02202",false);
  152. fInitRepDetail();
  153. model.refresh();
  154. }
  155. /* 보고서 조회 */
  156. function fSearchRep(selectedrow){
  157. var sREPINFO_PATH = "/root/main/repinfo";
  158. var sREPDETL_PATH = sREPINFO_PATH+ "/repdetl";
  159. var sREPMAIN_PATH = sREPINFO_PATH+"/repmain";
  160. var sREPFORM_PATH = sREPINFO_PATH+"/repform";
  161. var idx = selectedrow;
  162. var bstotiamt = "";
  163. var bstotoamt = "";
  164. var bstotjamt = "";
  165. model.makeValue("/root/send/searchrep/instcd" , model.getValue("/root/main/rephistinfo/rephistlist[" + idx + "]/instcd"));
  166. model.makeValue("/root/send/searchrep/projcd" , model.getValue("/root/main/rephistinfo/rephistlist[" + idx + "]/projcd"));
  167. model.makeValue("/root/send/searchrep/reptcd" , model.getValue("/root/main/rephistinfo/rephistlist[" + idx + "]/reptcd"));
  168. model.makeValue("/root/send/searchrep/seqno" , model.getValue("/root/main/rephistinfo/rephistlist[" + idx + "]/seqno"));
  169. if( submit("TRRIS00306") ){
  170. bstotiamt = model.getValue("/root/main/projamt/projamtlist/iamt");
  171. bstotoamt = model.getValue("/root/main/projamt/projamtlist/oamt");
  172. bstotjamt = model.getValue("/root/main/projamt/projamtlist/jamt");
  173. }
  174. submit("TRRIF02203");
  175. model.refresh();
  176. if(instance1.selectNodes(sREPFORM_PATH).length == 0){
  177. messageBox("해당 보고서는 개발 중","E008");
  178. fInitRepDetail();
  179. return;
  180. }
  181. var repdetl = instance1.selectNodes(sREPDETL_PATH);
  182. if( repdetl == null || repdetl.length == 0){
  183. messageBox("관련 데이타가","I004");
  184. fInitRepDetail();
  185. return;
  186. }
  187. model.makeValue("/root/send/searchproj/bstotiamt" , bstotiamt );
  188. model.makeValue("/root/send/searchproj/bstotoamt" , bstotoamt );
  189. model.makeValue("/root/send/searchproj/bstotjamt" , bstotjamt );
  190. iviewer1.src = "../../../"+model.getValue(sREPFORM_PATH+"/scrnurl");
  191. var repmain = instance1.selectNodes(sREPMAIN_PATH);
  192. iviewer1.window.javascript.fSetReport(getNodeListCSV(repmain),getNodeListCSV(repdetl));
  193. fCheckStatus();
  194. model.refresh();
  195. }
  196. /* 보고서 상세 초기화 */
  197. function fInitRepDetail(){
  198. model.removenode("/root/main/repinfo");
  199. model.makeNode("/root/main/repinfo");
  200. iviewer1.src = "SMRIF02110_보고서초기화면.xrw";
  201. fCheckStatus();
  202. model.refresh();
  203. }
  204. /* 상태체크(상태에 따라 item 설정 변경) */
  205. function fCheckStatus(){
  206. var status = model.getValue("/root/main/repinfo/repmain/status");
  207. if(status == "A"){
  208. cpt_status.value = "연구소확인" ;
  209. }else{
  210. cpt_status.value = "" ;
  211. }
  212. }
  213. /* 저장 */
  214. function fSave(vbtnnm){
  215. var grdObj = grd_bsrephist;
  216. var rowsize = grdObj.rows - grdObj.fixedRows;
  217. var grdnodeset = grdObj.attribute("nodeset");
  218. var status;
  219. if(vbtnnm == "btn_confirm"){
  220. status = "A";
  221. }else if(vbtnnm == "btn_confirm_cancel"){
  222. status = "E";
  223. }
  224. else if(vbtnnm == "btn_reject"){
  225. status = "R";
  226. }
  227. for(var i=1;i<=rowsize; i++){
  228. var chk = model.getValue(grdnodeset+"["+i+"]/chk");
  229. var rjtremark = model.getValue(grdnodeset+"["+i+"]/rjtremark");
  230. if(chk == "Y"){
  231. model.makeValue(grdnodeset+"["+i+"]/status",status);
  232. model.makeValue(grdnodeset+"["+i+"]/rjtremark",rjtremark);
  233. model.makeValue(grdnodeset+"["+i+"]/chk","N");
  234. }
  235. }
  236. model.makeValue("/root/send/save/savedata", grdObj.getUpdateData());
  237. submit("TXRIF02201",false);
  238. model.refresh();
  239. }
  240. function fSetUserinfo(){
  241. setParameter("search_condition","usernm");
  242. setParameter("resultref","/root/send/userinfo");
  243. modal("SPZSU10100");
  244. var userinfo = model.getValue("/root/send/userinfo");
  245. userinfo = userinfo.split("|");
  246. var rshid = userinfo[2];
  247. var rshnm = userinfo[3];
  248. model.makeValue("/root/send/searchproj/rshid" ,rshid);
  249. model.makeValue("/root/send/searchproj/rshnm" ,rshnm);
  250. model.resetInstanceNode("/root/send/userinfo");
  251. model.refresh();
  252. }
  253. function fSetStatus(){
  254. btn_reject.disabled = false;
  255. btn_confirm.disabled = false;
  256. btn_cancel.disabled = false;
  257. var status = radio1.value;
  258. if ( status == "P") {
  259. btn_reject.disabled = true;
  260. btn_confirm.disabled = true;
  261. btn_cancel.disabled = true;
  262. }
  263. if ( status == "R") {
  264. btn_reject.disabled = true;
  265. btn_confirm.disabled = false;
  266. btn_cancel.disabled = true;
  267. }
  268. if ( status == "E") {
  269. btn_reject.disabled = false;
  270. btn_confirm.disabled = false;
  271. btn_cancel.disabled = true;
  272. }
  273. if ( status == "A") {
  274. btn_reject.disabled = true;
  275. btn_confirm.disabled = true;
  276. btn_cancel.disabled = false;
  277. }
  278. }
  279. ]]>
  280. </script>
  281. </xhtml:head>
  282. <xhtml:body pagewidth="1195px" pageheight="780px">
  283. <group id="group1" style="left:518px; top:27px; width:670px; height:747px; ">
  284. <input id="input9" ref="/root/main/repinfo/repmain/projamt" editable="false" format="#,###" style="left:251px; top:27px; width:92px; height:19px; font-family:돋움체; background-color:#ecebec; "/>
  285. <iviewer id="iviewer1" src="SMRIF02110_보고서초기화면.xrw" style="left:0px; top:74px; width:664px; height:669px; "/>
  286. <input id="ipt_prcpcd" ref="/root/main/repinfo/repmain/studycd" editable="false" style="left:72px; top:3px; width:95px; height:19px; font-family:돋움체; background-color:#ecebec; "/>
  287. <caption id="caption10" class="cell_1" style="left:169px; top:25px; width:80px; height:23px; font-family:돋움체; vertical-align:middle; ">연구비총액</caption>
  288. <input id="input2" ref="/root/main/repinfo/repmain/rshnm" editable="false" style="left:426px; top:27px; width:76px; height:19px; font-family:돋움체; background-color:#ecebec; "/>
  289. <caption id="caption26" class="cell_1" style="left:0px; top:26px; width:70px; height:23px; font-family:돋움체; vertical-align:middle; ">의뢰기관</caption>
  290. <caption id="caption7" class="cell_1" style="left:0px; top:0px; width:70px; height:23px; font-family:돋움체; vertical-align:middle; ">과제번호</caption>
  291. <caption id="caption8" class="cell_1" style="left:344px; top:26px; width:80px; height:23px; font-family:돋움체; vertical-align:middle; ">책임연구원</caption>
  292. <caption id="cap_goodflagengnm" class="cell_1" style="left:505px; top:26px; width:70px; height:23px; font-family:돋움체; vertical-align:middle; ">작성일자</caption>
  293. <input id="input5" ref="/root/main/repinfo/repmain/projnm" editable="false" style="left:169px; top:3px; width:497px; height:19px; font-family:돋움체; background-color:#ecebec; "/>
  294. <input id="input6" ref="/root/main/repinfo/repmain/bsdd" editable="false" inputtype="date" style="left:577px; top:27px; width:89px; height:19px; font-family:돋움체; background-color:#ecebec; "/>
  295. <line id="line4" class="line_2" style="x1:0px; y1:24px; x2:659px; y2:24px; font-family:돋움체; "/>
  296. <line id="line5" class="line_2" style="x1:0px; y1:48px; x2:659px; y2:48px; font-family:돋움체; "/>
  297. <line id="line2" class="line_2" style="x1:0px; y1:72px; x2:659px; y2:72px; font-family:돋움체; "/>
  298. <line id="line6" class="line_3" style="x1:0px; y1:72px; x2:664px; y2:72px; font-family:돋움체; "/>
  299. <output id="opt_bstotjamt" ref="/root/send/searchproj/bstotjamt" class="output_fix" format="(-)#,###" style="left:426px; top:51px; width:76px; height:19px; text-align:right; "/>
  300. <output id="opt_bstotiamt" ref="/root/send/searchproj/bstotiamt" class="output_fix" format="(-)#,###" style="left:72px; top:51px; width:95px; height:19px; text-align:right; "/>
  301. <caption id="caption3" class="cell_2" style="left:344px; top:50px; width:80px; height:22px; font-family:돋움체; font-weight:bold; color:#ffffff; text-align:left; vertical-align:middle; ">잔 액</caption>
  302. <caption id="caption4" class="cell_2" style="left:0px; top:50px; width:70px; height:22px; font-family:돋움체; font-weight:bold; color:#ffffff; text-align:left; vertical-align:middle; ">입금액</caption>
  303. <caption id="caption5" class="cell_2" style="left:169px; top:50px; width:80px; height:22px; font-family:돋움체; font-weight:bold; color:#ffffff; text-align:left; vertical-align:middle; ">지출액</caption>
  304. <output id="opt_bstotoamt" ref="/root/send/searchproj/bstotoamt" class="output_fix" format="(-)#,###" style="left:251px; top:51px; width:92px; height:19px; text-align:right; "/>
  305. <output id="out_reqfirm" ref="/root/main/repinfo/repmain/reqfirm" class="output_fix" style="left:72px; top:27px; width:95px; height:19px; "/>
  306. </group>
  307. <line id="line7" class="line_3" style="x1:514px; y1:24px; x2:514px; y2:773px; border-color:#0000ff; "/>
  308. <line id="line8" class="line_1" style="x1:515px; y1:23px; x2:1185px; y2:23px; font-family:돋움체; "/>
  309. <caption id="caption1" class="tit_2" style="left:525px; top:7px; width:130px; height:13px; font-family:돋움체; ">보고서 상세 내용</caption>
  310. <select1 id="combo2" ref="/root/main/repinfo/repmain/status" visibility="hidden" appearance="minimal" style="left:655px; top:0px; width:100px; height:19px; ">
  311. <choices>
  312. <itemset nodeset="/root/hidden/statuslist/status">
  313. <label ref="cdnm"/>
  314. <value ref="cdid"/>
  315. </itemset>
  316. </choices>
  317. <script type="javascript" ev:event="xforms-value-changed">
  318. <![CDATA[
  319. fCheckStatus();
  320. ]]>
  321. </script>
  322. </select1>
  323. <caption id="cpt_status" style="left:930px; top:2px; width:160px; height:20px; font-weight:bold; color:#ff0000; text-align:right; "/>
  324. <button id="button1" class="btn1_letter5" navindex="100" style="left:1093px; top:1px; width:92px; height:22px; ">
  325. <caption>보고서관리</caption>
  326. <script type="javascript" ev:event="DOMActivate">
  327. <![CDATA[
  328. modal("SPRIS00202");
  329. ]]>
  330. </script>
  331. </button>
  332. <button id="btn_print" class="btn3_letter2" navindex="97" style="left:1123px; top:76px; width:56px; height:22px; ">
  333. <caption>출력</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. var sREPDETLINFO_PATH="/root/main/repinfo";
  337. var prntform = model.getValue(sREPDETLINFO_PATH+"/repform/prntform");
  338. if(isNull(prntform)){
  339. messageBox("선택된 보고서가","I004");
  340. return;
  341. }
  342. var status = iviewer1.model.getValue("/root/main/repmain/status");
  343. if ( status != "A" ) {
  344. messageBox("연구소 확인상태의 보고서만 출력가능합니다","I");
  345. return;
  346. }
  347. model.makeValue("/root/send/docinfo/userid",model.getValue("/root/main/repinfo/repmain/rshid"));
  348. submit("TRRIF01205");
  349. iviewer1.window.javaScript.fSetDrSignData(model.getValue("/root/hidden/docinfo/signimge"));
  350. iviewer1.window.javaScript.fPrintReport(prntform);
  351. ]]>
  352. </script>
  353. </button>
  354. <switch id="switch1" style="left:0px; top:20px; width:510px; height:751px; ">
  355. <case id="case1" style="left:0px; top:0px; width:509px; height:749px; ">
  356. <group id="group2" style="left:0px; top:1px; width:508px; height:60px; vertical-align:top; ">
  357. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:508px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  358. <button id="button5" class="btn1_letter2" navindex="5" style="left:341px; top:29px; width:56px; height:22px; ">
  359. <caption>조회</caption>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. fSearch();
  363. ]]>
  364. </script>
  365. </button>
  366. <caption id="caption20" class="search_name" style="left:10px; top:31px; width:123px; height:17px; ">과 제 번 호 :</caption>
  367. <select1 id="cmb_s_instcd" ref="/root/send/searchproj/instcd" disabled="true" navindex="3" visibility="hidden" appearance="minimal" style="left:460px; top:5px; width:25px; height:19px; background-color:#ecebec; ">
  368. <choices>
  369. <itemset nodeset="/root/hidden/instlist/inst">
  370. <label ref="cdnm"/>
  371. <value ref="cdid"/>
  372. </itemset>
  373. </choices>
  374. <script type="javascript" ev:event="xforms-value-changed">
  375. <![CDATA[
  376. inputEnterKeySearch();
  377. ]]>
  378. </script>
  379. </select1>
  380. <input id="ipt_s_projnm" ref="/root/send/searchproj/projnm" visibility="hidden" style="left:425px; top:5px; width:25px; height:19px; ">
  381. <script type="javascript" ev:event="xforms-value-changed">
  382. <![CDATA[
  383. inputEnterKeySearch();
  384. ]]>
  385. </script>
  386. </input>
  387. <input id="ipt_s_projcd" ref="/root/send/searchproj/studycd" style="left:123px; top:31px; width:215px; height:19px; ">
  388. <script type="javascript" ev:event="xforms-value-changed">
  389. <![CDATA[
  390. inputEnterKeySearch();
  391. ]]>
  392. </script>
  393. <script type="javascript" ev:event="onkeypress">
  394. <![CDATA[
  395. if(event.keyCode == "13") {
  396. inputEnterKey("button5","DOMActivate");
  397. }
  398. ]]>
  399. </script>
  400. </input>
  401. <caption id="caption2" class="search_name" style="left:10px; top:8px; width:130px; height:17px; ">책임 연구원 :</caption>
  402. <select id="chk_s_yn" ref="/root/send/searchproj/chk" overflow="visible" appearance="full" style="left:339px; top:10px; width:70px; height:20px; border-style:none; ">
  403. <choices>
  404. <item>
  405. <label>종결포함</label>
  406. <value>Y</value>
  407. </item>
  408. </choices>
  409. </select>
  410. <button id="btn_useid" class="icon_search" navindex="5" style="left:319px; top:10px; width:16px; height:16px; ">
  411. <caption/>
  412. <script type="javascript" ev:event="DOMActivate">
  413. <![CDATA[
  414. fSetUserinfo();
  415. ]]>
  416. </script>
  417. </button>
  418. <output id="output1" ref="/root/send/searchproj/rshnm" class="output_fix" style="left:210px; top:9px; width:105px; height:19px; "/>
  419. <output id="output2" ref="/root/send/searchproj/rshid" class="output_fix" style="left:123px; top:9px; width:85px; height:19px; "/>
  420. </group>
  421. <datagrid id="grd_proj" nodeset="/root/main/studyprojinfo/studyprojlist" class="datagrid2" scroll="auto" caption="기관코드^코드^책임연구원^책임연구원명^과제번호^과제명^상태" colsep="^" colwidth="17, 16, 14, 13, 100, 278, 49, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="21" style="left:0px; top:65px; width:508px; height:364px; font-family:돋움체; ">
  422. <col ref="instcd" visibility="hidden"/>
  423. <col ref="projcd" visibility="hidden"/>
  424. <col ref="rshid" visibility="hidden"/>
  425. <col ref="rshnm" visibility="hidden"/>
  426. <col ref="studycd" style="text-align:center; "/>
  427. <col ref="projnm"/>
  428. <col disabled="true" ref="status" type="combo" style="text-align:center; ">
  429. <choices>
  430. <itemset nodeset="/root/init/status/I0010">
  431. <label ref="cdnm"/>
  432. <value ref="cdid"/>
  433. </itemset>
  434. </choices>
  435. </col>
  436. <col ref="projamt" visibility="hidden"/>
  437. <col ref="reqfirm" visibility="hidden"/>
  438. <script type="javascript" ev:event="onaftersort">
  439. <![CDATA[
  440. grd_proj.gridToInstance();
  441. ]]>
  442. </script>
  443. <script type="javascript" ev:event="ondblclick">
  444. <![CDATA[
  445. model.makeValue("/root/send/searchrephist/instcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + grd_proj.row + "]/instcd"));
  446. model.makeValue("/root/send/searchrephist/projcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + grd_proj.row + "]/projcd"));
  447. model.makeValue("/root/send/searchrephist/daykind" , "");
  448. model.makeValue("/root/send/searchrephist/fromdd" , "");
  449. model.makeValue("/root/send/searchrephist/todd" , "");
  450. fSearchReportHist();
  451. ]]>
  452. </script>
  453. </datagrid>
  454. <datagrid id="grd_rephist" nodeset="/root/main/rephistinfo/rephistlist" class="datagrid2" scroll="auto" caption="기관코드^과제코드^reptid^보고서코드^seqno^^작성일자^보고서명^확인일^작성자^상태" colsep="^" colwidth="4, 4, 7, 6, 7, 25, 68, 175, 78, 78, 51" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="21" style="left:0px; top:458px; width:508px; height:287px; font-family:돋움체; ">
  455. <col ref="instcd" visibility="hidden"/>
  456. <col ref="projcd" visibility="hidden"/>
  457. <col ref="bsid" visibility="hidden"/>
  458. <col ref="reptcd" visibility="hidden"/>
  459. <col ref="seqno" visibility="hidden"/>
  460. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  461. <col ref="bsdd" format="yyyy-mm-dd"/>
  462. <col ref="reptnm"/>
  463. <col ref="sbmtdd" format="yyyy-mm-dd"/>
  464. <col ref="bsnm"/>
  465. <col disabled="true" ref="status" type="combo" style="text-align:center; ">
  466. <choices>
  467. <itemset nodeset="/root/hidden/statuslist/status">
  468. <label ref="cdnm"/>
  469. <value ref="cdid"/>
  470. </itemset>
  471. </choices>
  472. </col>
  473. <script type="javascript" ev:event="onaftersort">
  474. <![CDATA[
  475. grd_rephist.gridToInstance();
  476. ]]>
  477. </script>
  478. <script type="javascript" ev:event="ondblclick">
  479. <![CDATA[
  480. if(grd_rephist.col == grd_rephist.colRef("chk")) return;
  481. var selectedrow = grd_rephist.row;
  482. fSearchRep(selectedrow);
  483. ]]>
  484. </script>
  485. </datagrid>
  486. <caption id="caption34" class="tit_2" style="left:0px; top:439px; width:130px; height:13px; font-family:돋움체; ">보고서작성이력</caption>
  487. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:508px; y2:61px; font-family:돋움체; "/>
  488. <line id="line3" class="line_1" style="x1:0px; y1:455px; x2:508px; y2:455px; font-family:돋움체; "/>
  489. <button id="btn_confirm" class="btn5_letter2" style="left:390px; top:433px; width:42px; height:19px; ">
  490. <caption>확인</caption>
  491. <script type="javascript" ev:event="DOMActivate">
  492. <![CDATA[
  493. setAlertOn();
  494. fSave("btn_confirm");
  495. ]]>
  496. </script>
  497. </button>
  498. <select1 id="rdo_statushis" ref="/root/send/searchrephist/statushis" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:220px; top:435px; width:155px; height:20px; border-style:none; ">
  499. <choices>
  500. <item>
  501. <label>진행</label>
  502. <value>P</value>
  503. </item>
  504. <item>
  505. <label>제출</label>
  506. <value>E</value>
  507. </item>
  508. <item>
  509. <label>확인</label>
  510. <value>A</value>
  511. </item>
  512. </choices>
  513. </select1>
  514. <button id="btn_confirm_cancel" class="btn5_letter4" style="left:435px; top:433px; width:64px; height:19px; ">
  515. <caption>확인취소</caption>
  516. <script type="javascript" ev:event="DOMActivate">
  517. <![CDATA[
  518. setAlertOn();
  519. fSave("btn_confirm_cancel");
  520. ]]>
  521. </script>
  522. </button>
  523. </case>
  524. <case id="case2" selected="true" style="left:0px; top:0px; width:509px; height:749px; ">
  525. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:508px; height:36px; background-color:#fffbf2; border-color:#ffd799; ">
  526. <![CDATA[>]]>
  527. </shape>
  528. <input id="input13" ref="/root/send/searchproj/todd" navindex="27" inputtype="date" style="left:260px; top:10px; width:100px; height:19px; "/>
  529. <caption id="caption24" style="left:245px; top:10px; width:15px; height:20px; ">~</caption>
  530. <input id="input1" ref="/root/send/searchproj/fromdd" navindex="26" inputtype="date" style="left:140px; top:10px; width:100px; height:19px; "/>
  531. <button id="btn_search" class="btn1_letter2" navindex="5" style="left:387px; top:9px; width:56px; height:22px; ">
  532. <caption>조회</caption>
  533. <script type="javascript" ev:event="DOMActivate">
  534. <![CDATA[
  535. model.makeValue("/root/send/searchrephist/instcd" , getUserInfo("dutplceinstcd"));
  536. model.makeValue("/root/send/searchrephist/projcd" , "");
  537. model.makeValue("/root/send/searchrephist/fromdd" , model.getValue("/root/send/searchproj/fromdd"));
  538. model.makeValue("/root/send/searchrephist/todd" , model.getValue("/root/send/searchproj/todd"));
  539. model.makeValue("/root/send/searchrephist/daykind" , model.getValue("/root/send/searchproj/daykind"));
  540. fSearchReportHist();
  541. ]]>
  542. </script>
  543. </button>
  544. <datagrid id="grd_bsrephist" nodeset="/root/main/rephistinfo/rephistlist" class="datagrid2" scroll="auto" caption="기관코드^과제코드^reptid^보고서코드^seqno^^작성일자^상태^과제번호^보고서명^작성자^확인일^반려사유^." colsep="^" colwidth="4, 4, 7, 6, 7, 25, 68, 52, 105, 131, 82, 51, 194, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="21" style="left:0px; top:70px; width:508px; height:675px; font-family:돋움체; ">
  545. <col ref="instcd" visibility="hidden"/>
  546. <col ref="projcd" visibility="hidden"/>
  547. <col ref="bsid" visibility="hidden"/>
  548. <col ref="reptcd" visibility="hidden"/>
  549. <col ref="seqno" visibility="hidden"/>
  550. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  551. <col ref="bsdd" format="yyyy-mm-dd"/>
  552. <col disabled="true" ref="status" type="combo" style="text-align:center; ">
  553. <choices>
  554. <itemset nodeset="/root/hidden/statuslist/status">
  555. <label ref="cdnm"/>
  556. <value ref="cdid"/>
  557. </itemset>
  558. </choices>
  559. </col>
  560. <col ref="studycd"/>
  561. <col ref="reptnm"/>
  562. <col ref="bsnm"/>
  563. <col ref="sbmtdd" format="yyyy-mm-dd"/>
  564. <col ref="rjtremark" type="input"/>
  565. <col/>
  566. <script type="javascript" ev:event="onaftersort">
  567. <![CDATA[
  568. grd_bsrephist.gridToInstance();
  569. ]]>
  570. </script>
  571. <script type="javascript" ev:event="ondblclick">
  572. <![CDATA[
  573. if(grd_bsrephist.col == grd_bsrephist.colRef("chk")) return;
  574. var selectedrow = grd_bsrephist.row;
  575. fSearchRep(selectedrow);
  576. ]]>
  577. </script>
  578. </datagrid>
  579. <caption id="caption11" class="tit_2" style="left:0px; top:50px; width:130px; height:13px; font-family:돋움체; ">보고서작성이력</caption>
  580. <line id="line10" class="line_1" style="x1:0px; y1:66px; x2:508px; y2:66px; font-family:돋움체; "/>
  581. <button id="button2" class="btn5_letter2" style="left:390px; top:45px; width:42px; height:19px; ">
  582. <caption>확인</caption>
  583. <script type="javascript" ev:event="DOMActivate">
  584. <![CDATA[
  585. setAlertOn();
  586. fSave("btn_confirm");
  587. btn_search.dispatch("DOMActivate");
  588. ]]>
  589. </script>
  590. </button>
  591. <select1 id="radio1" ref="/root/send/searchrephist/statushis" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:120px; top:45px; width:200px; height:20px; border-style:none; ">
  592. <choices>
  593. <item>
  594. <label>진행</label>
  595. <value>P</value>
  596. </item>
  597. <item>
  598. <label>반려</label>
  599. <value>R</value>
  600. </item>
  601. <item>
  602. <label>제출</label>
  603. <value>E</value>
  604. </item>
  605. <item>
  606. <label>확인</label>
  607. <value>A</value>
  608. </item>
  609. </choices>
  610. <script type="javascript" ev:event="xforms-value-changed">
  611. <![CDATA[
  612. fSetStatus();
  613. btn_search.dispatch("DOMActivate");
  614. ]]>
  615. </script>
  616. </select1>
  617. <button id="btn_cancel" class="btn5_letter4" style="left:435px; top:45px; width:64px; height:19px; ">
  618. <caption>확인취소</caption>
  619. <script type="javascript" ev:event="DOMActivate">
  620. <![CDATA[
  621. setAlertOn();
  622. fSave("btn_confirm_cancel");
  623. btn_search.dispatch("DOMActivate");
  624. ]]>
  625. </script>
  626. </button>
  627. <select1 id="cmb_daykind" ref="/root/send/searchproj/daykind" disabled="true" appearance="minimal" style="left:10px; top:10px; width:100px; height:19px; ">
  628. <choices>
  629. <item>
  630. <label>작성일</label>
  631. <value>A</value>
  632. </item>
  633. <item>
  634. <label>확인일</label>
  635. <value>B</value>
  636. </item>
  637. </choices>
  638. </select1>
  639. <button id="btn_reject" class="btn5_letter2" style="left:340px; top:45px; width:42px; height:19px; ">
  640. <caption>반려</caption>
  641. <script type="javascript" ev:event="DOMActivate">
  642. <![CDATA[
  643. setAlertOn();
  644. fSave("btn_reject");
  645. btn_search.dispatch("DOMActivate");
  646. ]]>
  647. </script>
  648. </button>
  649. </case>
  650. </switch>
  651. <button id="button4" class="btn_sw" visibility="hidden" group="group" style="left:120px; top:0px; width:120px; height:22px; ">
  652. <caption>과제별 보고서 확인</caption>
  653. <script type="javascript" ev:event="DOMActivate">
  654. <![CDATA[
  655. model.toggle("case1");
  656. model.removeNodeset("/root/main/rephistinfo");
  657. model.refresh();
  658. ]]>
  659. </script>
  660. </button>
  661. <button id="button6" class="btn_sw" group="group" selected="true" style="left:0px; top:0px; width:120px; height:22px; ">
  662. <caption>일자별 보고서 확인</caption>
  663. <script type="javascript" ev:event="DOMActivate">
  664. <![CDATA[
  665. model.toggle("case2");
  666. model.removeNodeset("/root/main/rephistinfo");
  667. model.refresh();
  668. ]]>
  669. </script>
  670. </button>
  671. <button id="btn_spconn" class="btn3_letter6" style="left:859px; top:1px; width:104px; height:22px; ">
  672. <caption>과제연계관리</caption>
  673. <script type="javascript" ev:event="DOMActivate">
  674. <![CDATA[
  675. open("../../../pam/acquaintanceweb/xrw/SMPAM00402_임상연구과제연계관리.xrw", "", "", "" ,"", "", "");
  676. ]]>
  677. </script>
  678. </button>
  679. <button id="btn_reptpt" class="btn3_letter8" style="left:964px; top:1px; width:128px; height:22px; ">
  680. <caption>보고서별환자내역</caption>
  681. <script type="javascript" ev:event="DOMActivate">
  682. <![CDATA[
  683. if (grd_bsrephist.row < 1) {
  684. messageBox("선택된 과제가 없습니다.", "E999");
  685. return;
  686. }
  687. var projcd = model.getValue("/root/main/rephistinfo/rephistlist[" + grd_bsrephist.row + "]/projcd");
  688. setParameter("SMPAM00403_projcd", projcd);
  689. open("../../../pam/acquaintanceweb/xrw/SMPAM00403_과제별환자내역.xrw", "", "", "" ,"", "", "");
  690. ]]>
  691. </script>
  692. </button>
  693. </xhtml:body>
  694. </xhtml:html>