SMRIF02100_과제별보고서관리.xrw 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041
  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: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">
  4. <xhtml:head>
  5. <xhtml:title>과제별보고서관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <reportinfo/>
  11. <studyprojinfo/>
  12. <rephistinfo/>
  13. <repmain>
  14. <instcd/>
  15. <bsdd/>
  16. <projcd/>
  17. <projnm/>
  18. <reptcd/>
  19. <reptnm/>
  20. <rshid/>
  21. <rshnm/>
  22. <bsid/>
  23. <bsnm/>
  24. <seqno/>
  25. <status/>
  26. <statusnm/>
  27. <reqfirm/>
  28. <kind/>
  29. <kindnm/>
  30. <cnfmdd/>
  31. <stage/>
  32. <projspec/>
  33. <projamt/>
  34. <fromdd/>
  35. <todd/>
  36. <jobposcd/>
  37. <jobposnm/>
  38. <emplinstcd/>
  39. <empldeptcd/>
  40. <empldeptnm/>
  41. <studycd/>
  42. <bstotiamt/>
  43. <bstotoamt/>
  44. <bstotjamt/>
  45. </repmain>
  46. <repdetlinfo/>
  47. <repstatusinfo>
  48. <repstatus>
  49. <status/>
  50. </repstatus>
  51. </repstatusinfo>
  52. <projamt/>
  53. </main>
  54. <send>
  55. <searchproj>
  56. <instcd/>
  57. <studycd/>
  58. <rshid/>
  59. <projnm/>
  60. <estatus/>
  61. <rshnm/>
  62. <bstotiamt/>
  63. <bstotoamt/>
  64. <bstotjamt/>
  65. <auth/>
  66. <instcd/>
  67. </searchproj>
  68. <searchrephist>
  69. <instcd/>
  70. <projcd/>
  71. <auth/>
  72. <userid/>
  73. </searchrephist>
  74. <searchreport/>
  75. <searchrepdetl>
  76. <instcd/>
  77. </searchrepdetl>
  78. <searchrep>
  79. <instcd/>
  80. <projcd/>
  81. <reptcd/>
  82. <seqno/>
  83. </searchrep>
  84. <save>
  85. <sm/>
  86. <repmaindata/>
  87. <repdetldata/>
  88. </save>
  89. <chngstatus/>
  90. <searchrepstatus/>
  91. <userinfo/>
  92. <selreport/>
  93. <docinfo>
  94. <userid/>
  95. </docinfo>
  96. </send>
  97. <init>
  98. <C0048list/>
  99. </init>
  100. <hidden>
  101. <instlist>
  102. <inst>
  103. <cdnm>본원</cdnm>
  104. <cdid>031</cdid>
  105. </inst>
  106. <inst>
  107. <cdnm>칠곡</cdnm>
  108. <cdid>032</cdid>
  109. </inst>
  110. </instlist>
  111. <statuslist>
  112. <status>
  113. <cdnm>진행</cdnm>
  114. <cdid>P</cdid>
  115. </status>
  116. <status>
  117. <cdnm>반려</cdnm>
  118. <cdid>R</cdid>
  119. </status>
  120. <status>
  121. <cdnm>제출</cdnm>
  122. <cdid>E</cdid>
  123. </status>
  124. <status>
  125. <cdnm>확인</cdnm>
  126. <cdid>A</cdid>
  127. </status>
  128. </statuslist>
  129. <instcdlist/>
  130. <docinfo>
  131. <signimge/>
  132. </docinfo>
  133. </hidden>
  134. <temp/>
  135. </root>
  136. </instance>
  137. <submission id="TRRIF02101" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchproj" replace="instance" resultref="/root/main/studyprojinfo"/>
  138. <submission id="TRRIF02102" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchreport" replace="instance" resultref="/root/main/reportinfo"/>
  139. <submission id="TRRIF02103" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrephist" replace="instance" resultref="/root/main/rephistinfo"/>
  140. <submission id="TRRIF02104" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrepdetl" replace="instance" resultref="/root/main/repdetlinfo"/>
  141. <submission id="TRRIF02105" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrepstatus" replace="instance" resultref="/root/main/repstatusinfo"/>
  142. <submission id="TRRIF02106" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrepdetl" replace="instance" resultref="/root/main/reportinfo"/>
  143. <submission id="TXRIF02101" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/save" replace="instance" resultref="/root/tmp"/>
  144. <submission id="TXRIF02102" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/chngstatus" replace="instance" resultref="/root/temp"/>
  145. <submission id="TRRIS00306" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchrep" replace="instance" resultref="/root/main/projamt"/>
  146. <submission id="TRRIF01205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/docinfo/userid" resultref="/root/hidden/docinfo/signimge"/>
  147. <script type="javascript" ev:event="xforms-ready">
  148. <![CDATA[
  149. fInitialize();
  150. fSearch();
  151. ]]>
  152. </script>
  153. </model>
  154. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  155. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  156. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  157. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  158. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  159. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  160. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  161. <script type="javascript">
  162. <![CDATA[
  163. var reportflag = ""; //입력상태 (i:입력 , u:수정, d:삭제)
  164. var scrnflag = ""; //보고서iviewer화면 상태(Y:준비상태, N:준비X상태)
  165. function fInitialize(){
  166. btn_pamrgst.attribute("top") = "3px";
  167. var param = getScreenMenuParameter();
  168. var workkind = "";
  169. zbcfGetCodeList(new Array("C0048"), new Array("/root/init/C0048list"));
  170. //addComboItem("cmb_instcd","전체","","above");
  171. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  172. if (isPopup()) {
  173. var menuparam = opener.window.javascript.getParameter("SMRIF02100_menuparam");
  174. var rshid = opener.window.javascript.getParameter("SMRIF02100_rshid");
  175. var rshnm = opener.window.javascript.getParameter("SMRIF02100_rshnm");
  176. var studycd = opener.window.javascript.getParameter("SMRIF02100_studycd");
  177. workkind = opener.window.javascript.getParameter("SMRIF02100_workkind");
  178. model.setValue("/root/send/searchproj/instcd" , getUserInfo("dutplceinstcd") );
  179. model.setValue("/root/send/searchproj/rshid", rshid );
  180. model.setValue("/root/send/searchproj/rshnm", rshnm );
  181. model.setValue("/root/send/searchproj/studycd", studycd );
  182. model.setValue("/root/send/searchproj/estatus", "Y" );
  183. }else{
  184. model.setValue("/root/send/searchproj/instcd" , getUserInfo("dutplceinstcd") );
  185. model.setValue("/root/send/searchproj/rshid" , getUserId() );
  186. model.setValue("/root/send/searchproj/rshnm" , getUserName() );
  187. model.setValue("/root/send/searchproj/estatus" , "Y" );
  188. }
  189. if( param == "P" ){
  190. button6.visible = false;
  191. }
  192. if( param == "N" ){
  193. button6.visible = false;
  194. caption3.value = "참여연구원";
  195. }
  196. if( workkind == "A"){ // 참여
  197. caption3.value = "참여연구원";
  198. }else if( workkind == "B"){ // 공동
  199. caption3.value = "공동연구원";
  200. }
  201. model.setValue("/root/send/searchproj/auth" , param );
  202. model.setValue("/root/send/searchrephist/auth" , param );
  203. model.setValue("/root/send/searchrephist/userid" , getUserInfo("userid") );
  204. /* 보고서리스트 조회 */
  205. fSearchReportList();
  206. model.refresh();
  207. }
  208. function inputEnterKeySearch() {
  209. if(event.keyCode == "13") {
  210. setInputNodeCurText();
  211. fSearch();
  212. }
  213. }
  214. /* 과제 조회 */
  215. function fSearch(){
  216. if(submit("TRRIF02101")){
  217. var cnt = getNodesetCount("/root/main/studyprojinfo/studyprojlist");
  218. if(cnt > 0){
  219. grd_proj.row = 1;
  220. grd_proj.dispatch("ondblclick");
  221. }else{
  222. model.removeNodeset("/root/main/rephistinfo/rephistlist");
  223. }
  224. }
  225. model.refresh();
  226. }
  227. /* 보고서 리스트 조회 */
  228. function fSearchReportList(){
  229. //submit("TRRIF02102",false);
  230. model.setValue("/root/send/searchrepdetl/instcd", model.getValue("/root/send/searchproj/instcd"));
  231. submit("TRRIF02106",false);
  232. }
  233. /* 보고서내역 조회 */
  234. function fSearchReportHist(){
  235. var idx = grd_proj.row;
  236. model.setValue("/root/send/searchrephist/instcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/instcd"));
  237. model.setValue("/root/send/searchrephist/projcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projcd"));
  238. submit("TRRIF02103",false);
  239. model.refresh();
  240. }
  241. /* 보고서작성(신규,수정)여부 체크 */
  242. function isWritingReport(){
  243. if(reportflag == "i" || reportflag == "u"){
  244. return true;
  245. }else{
  246. return false;
  247. }
  248. return false;
  249. }
  250. /* 보고서작성(수정)여부 체크 */
  251. function isUpdatingReport(){
  252. if(reportflag == "u"){
  253. return true;
  254. }else{
  255. return false;
  256. }
  257. }
  258. /* 보고서작성중인지 메시지 팝업 및 반환 */
  259. function checkWritingOK(){
  260. if(isWritingReport()){
  261. var rtn = messageBox("수정중인 보고서가 있습니다.", "Q002");
  262. if(rtn != 6){
  263. return false;
  264. }
  265. return true;
  266. }
  267. return false;
  268. }
  269. /* 보고서작성중인지 메시지 팝업 및 반환 */
  270. function checkUpdatingOK(){
  271. if(isUpdatingReport()){
  272. var rtn = messageBox("수정중인 보고서가 있습니다.", "Q002");
  273. if(rtn != 6){
  274. return false;
  275. }
  276. return true;
  277. }
  278. return false;
  279. }
  280. /* 과제메인정보 세팅 */
  281. function fSetProj(){
  282. // if(checkUpdatingOK()){
  283. // btn_save.dispatch("DOMActivate");
  284. // }
  285. var idx = grd_proj.row;
  286. model.setValue("/root/main/repmain/instcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/instcd"));
  287. model.setValue("/root/main/repmain/rshid" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/rshid"));
  288. //model.setValue("/root/main/repmain/rshnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/rshnm"));
  289. model.setValue("/root/main/repmain/status" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/status"));
  290. model.setValue("/root/main/repmain/statusnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/statusnm"));
  291. //model.setValue("/root/main/repmain/reqfirm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/reqfirm"));
  292. model.setValue("/root/main/repmain/kind" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/kind"));
  293. model.setValue("/root/main/repmain/kindnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/kindnm"));
  294. model.setValue("/root/main/repmain/cnfmdd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/cnfmdd"));
  295. model.setValue("/root/main/repmain/stage" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/stage"));
  296. model.setValue("/root/main/repmain/projspec" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projspec"));
  297. //model.setValue("/root/main/repmain/projamt" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projamt"));
  298. model.setValue("/root/main/repmain/fromdd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/fromdd"));
  299. model.setValue("/root/main/repmain/todd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/todd"));
  300. model.setValue("/root/main/repmain/jobposcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/jobposcd"));
  301. model.setValue("/root/main/repmain/jobposnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/jobposnm"));
  302. model.setValue("/root/main/repmain/emplinstcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/emplinstcd"));
  303. model.setValue("/root/main/repmain/empldeptcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/empldeptcd"));
  304. model.setValue("/root/main/repmain/empldeptnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/empldeptnm"));
  305. reportflag = "";
  306. fInitRepDetail();
  307. fSearchReportHist();
  308. //model.setValue("/root/send/searchrep/instcd" , getUserInfo("dutplceinstcd"));
  309. model.setValue("/root/send/searchrep/instcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/instcd"));
  310. model.setValue("/root/send/searchrep/projcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projcd"));
  311. if( submit("TRRIS00306") ){
  312. model.setValue("/root/send/searchproj/bstotiamt" , model.getValue("/root/main/projamt/projamtlist/iamt"));
  313. model.setValue("/root/send/searchproj/bstotoamt" , model.getValue("/root/main/projamt/projamtlist/oamt"));
  314. model.setValue("/root/send/searchproj/bstotjamt" , model.getValue("/root/main/projamt/projamtlist/jamt"));
  315. model.setValue("/root/main/repmain/bstotiamt" , model.getValue("/root/main/projamt/projamtlist/iamt"));
  316. model.setValue("/root/main/repmain/bstotoamt" , model.getValue("/root/main/projamt/projamtlist/oamt"));
  317. model.setValue("/root/main/repmain/bstotjamt" , model.getValue("/root/main/projamt/projamtlist/jamt"));
  318. model.setValue("/root/main/repmain/projcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projcd"));
  319. model.setValue("/root/main/repmain/projnm" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/projnm"));
  320. model.setValue("/root/main/repmain/reqfirm" , model.getValue("/root/main/projamt/projrepmainlist/reqfirm"));
  321. model.setValue("/root/main/repmain/projamt" , model.getValue("/root/main/projamt/projrepmainlist/projamt"));
  322. model.setValue("/root/main/repmain/rshid" , model.getValue("/root/main/projamt/projrepmainlist/rshid"));
  323. model.setValue("/root/main/repmain/rshnm" , model.getValue("/root/main/projamt/projrepmainlist/rshnm"));
  324. model.setValue("/root/main/repmain/studycd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + idx + "]/studycd"));
  325. model.setValue("/root/main/repmain/bsnm" , "");
  326. }
  327. model.refresh();
  328. }
  329. /* 보고서메인정보 세팅 */
  330. function fSetRept(target){
  331. // if(checkWritingOK()){
  332. // btn_save.dispatch("DOMActivate");
  333. // }
  334. if(target == "trv_report"){
  335. var sel_value = trv_report.value;
  336. var split_var = sel_value.split('/');
  337. var reportnm = split_var[1];
  338. model.setValue("/root/main/repmain/reptcd" , reportnm);
  339. model.setValue("/root/main/repmain/reptnm" , trv_report.label );
  340. }else{
  341. var grdObj = document.controls(target);
  342. var idx = grdObj.row;
  343. model.setValue("/root/main/repmain/reptcd" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/reptcd"));
  344. model.setValue("/root/main/repmain/reptnm" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/reptnm"));
  345. }
  346. if(target == "grd_rep"){
  347. reportflag = "";
  348. model.setValue("/root/main/repmain/bsdd" , getCurrentDate());
  349. model.setValue("/root/main/repmain/bsid" , getUserId());
  350. model.setValue("/root/main/repmain/bsnm" , getUserName());
  351. fInitRepDetail();
  352. }else if(target == "trv_report"){
  353. reportflag = "";
  354. model.setValue("/root/main/repmain/bsdd" , getCurrentDate());
  355. model.setValue("/root/main/repmain/bsid" , getUserId());
  356. model.setValue("/root/main/repmain/bsnm" , getUserName());
  357. fInitRepDetail();
  358. }else if(target == "grd_rephist"){
  359. model.setValue("/root/main/repmain/bsdd" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/bsdd"));
  360. model.setValue("/root/main/repmain/bsid" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/bsid"));
  361. model.setValue("/root/main/repmain/bsnm" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/bsnm"));
  362. model.setValue("/root/main/repmain/seqno" , model.getValue(grdObj.attribute("nodeset") + "[" + idx + "]/seqno"));
  363. reportflag = "u";
  364. fSearchRepDetl();
  365. fSearchRepStatus();
  366. fCheckStatus();
  367. }
  368. model.refresh();
  369. }
  370. /* 보고서 상세 초기화 */
  371. function fInitRepDetail(){
  372. //iviewer1.window.javascript.fSetInit();
  373. iviewer1.src = "SMRIF02110_보고서초기화면.xrw";
  374. reportflag = "";
  375. fInitRepStatus();
  376. }
  377. /* 보고서상세 조회 */
  378. function fSearchRepDetl(){
  379. var sREPDETLINFO_PATH="/root/main/repdetlinfo";
  380. var sREPDETL_PATH = "/root/main/repdetlinfo/repdetl";
  381. var sREPMAIN_PATH = "/root/main/repmain";
  382. model.copyNode("/root/send/searchrepdetl","/root/main/repmain");
  383. model.makeValue("/root/send/searchrepdetl/sm",reportflag);
  384. submit("TRRIF02104",false);
  385. // if(instance1.selectNodes(sREPDETLINFO_PATH+"/repform").length == 0){
  386. // messageBox("해당 보고서는 개발 중","E008");
  387. // fInitRepDetail();
  388. //
  389. // return;
  390. // }
  391. var repdetl = instance1.selectNodes(sREPDETL_PATH);
  392. if( repdetl == null || repdetl.length == 0){
  393. messageBox("관련 데이타가","I004");
  394. fInitRepDetail();
  395. return;
  396. }
  397. iviewer1.src = "../../../"+model.getValue(sREPDETLINFO_PATH+"/repform/scrnurl");
  398. var repmain = instance1.selectNodes(sREPMAIN_PATH);
  399. iviewer1.window.javascript.fSetReport(getNodeListCSV(repmain),getNodeListCSV(repdetl));
  400. if(reportflag == "i")
  401. iviewer1.window.body.dispatch("onloadcomplete");
  402. model.refresh();
  403. }
  404. /* 보고서작성 저장 */
  405. function fSaveRepDetl(){
  406. iviewer1.window.javaScript.fLastAmtSave();
  407. model.makeValue("/root/send/save/sm", reportflag);
  408. model.makeValue("/root/send/save/repmaindata", getNodeListCSV(instance1.selectNodes("/root/main/repmain")));
  409. model.makeValue("/root/send/save/repdetldata", iviewer1.window.javaScript.fGetSaveData());
  410. submit("TXRIF02101",false);
  411. if(reportflag == "d"){ //삭제의 경우
  412. fInitRepDetail();
  413. }else{ // 입력이나 수정의 경우
  414. reportflag = "u";
  415. }
  416. model.refresh();
  417. }
  418. /* 보고서 출력 */
  419. function fPrintRepDetl(){
  420. var sREPDETLINFO_PATH="/root/main/repdetlinfo";
  421. if(!isUpdatingReport()){
  422. messageBox("작성된 보고서가 선택되지","E007");
  423. return;
  424. }
  425. var prntform = model.getValue(sREPDETLINFO_PATH+"/repform/prntform");
  426. if(isNull(prntform)){
  427. messageBox("등록된 보고서가","I004");
  428. return;
  429. }
  430. model.makeValue("/root/send/docinfo/userid",model.getValue("/root/main/repmain/bsid"));
  431. submit("TRRIF01205");
  432. iviewer1.window.javaScript.fSetDrSignData(model.getValue("/root/hidden/docinfo/signimge"));
  433. iviewer1.window.javaScript.fPrintReport(prntform);
  434. }
  435. /* 보고서 제출,취소 */
  436. function fSubmitRep(flag){ // flag : S(제출), C(취소)
  437. if(flag == "S"){
  438. fChngStatus("E"); // 작성완료
  439. }else if(flag == "C"){
  440. fChngStatus("P"); // 작성완료 취소
  441. }
  442. fSearchRepStatus();
  443. fCheckStatus();
  444. }
  445. /* 상태값 변경 로직 */
  446. function fChngStatus(status){
  447. model.copyNode("/root/send/chngstatus","/root/main/repmain");
  448. model.makeValue("/root/send/chngstatus/status",status);
  449. submit("TXRIF02102",false);
  450. model.refresh();
  451. }
  452. /* 상태체크(상태에 따라 item 설정 변경) */
  453. function fCheckStatus(){
  454. var status = model.getValue("/root/main/repstatusinfo/repstatus/status");
  455. if(isNull(status)){
  456. cpt_status.value = "" ;
  457. btn_submit_cancel.disabled = true;
  458. btn_submit.disabled = true;
  459. }else if(status == "E"){
  460. cpt_status.value = "보고서제출됨" ;
  461. btn_submit_cancel.disabled = false;
  462. btn_submit.disabled = true;
  463. }else if(status == "A"){
  464. cpt_status.value = "연구소확인" ;
  465. btn_submit_cancel.disabled = true;
  466. btn_submit.disabled = true;
  467. }else if(status == "P" || status == "R" ){
  468. cpt_status.value = "" ;
  469. btn_submit_cancel.disabled = true;
  470. btn_submit.disabled = false;
  471. }else{
  472. cpt_status.value = "" ;
  473. btn_submit_cancel.disabled = true;
  474. btn_submit.disabled = true;
  475. }
  476. }
  477. /* 보고서 상태 조회 */
  478. function fSearchRepStatus(){
  479. model.copyNode("/root/send/searchrepstatus","/root/main/repmain");
  480. submit("TRRIF02105",false);
  481. model.refresh();
  482. }
  483. /* 보고서 상태 초기화 */
  484. function fInitRepStatus(){
  485. model.setValue("/root/main/repstatusinfo/repstatus/status","");
  486. fCheckStatus();
  487. model.refresh();
  488. }
  489. // 유효한 사용자인지 체크
  490. function isValidUser(){
  491. var bsid = model.getValue("/root/main/repmain/bsid");
  492. var rshid = model.getValue("/root/main/repmain/rshid");
  493. if(getUserId() == bsid || getUserId() == rshid){
  494. return true;
  495. }
  496. return false;
  497. }
  498. function fSetUserinfo(){
  499. setParameter("search_condition","usernm");
  500. setParameter("resultref","/root/send/userinfo");
  501. modal("SPZSU10100");
  502. var userinfo = model.getValue("/root/send/userinfo");
  503. userinfo = userinfo.split("|");
  504. var rshid = userinfo[2];
  505. var rshnm = userinfo[3];
  506. model.setValue("/root/send/searchproj/rshid",rshid);
  507. model.setValue("/root/send/searchproj/rshnm",rshnm);
  508. model.resetInstanceNode("/root/send/userinfo");
  509. model.refresh();
  510. }
  511. function fInstcdChk(){
  512. if(model.getValue("/root/send/searchproj/instcd")){
  513. messageBox("기관코드를 셋팅한 후 진행해주십시오.","I999");
  514. return;
  515. }
  516. }
  517. ]]>
  518. </script>
  519. </xhtml:head>
  520. <xhtml:body pagewidth="1195px" pageheight="780px">
  521. <caption id="caption34" class="tit_2" style="left:0px; top:460px; width:130px; height:13px; font-family:돋움체; ">보고서 작성이력</caption>
  522. <line id="line3" class="line_1" style="x1:0px; y1:475px; x2:300px; y2:475px; font-family:돋움체; "/>
  523. <group id="group2" style="left:0px; top:30px; width:300px; height:104px; font-family:돋움체; vertical-align:top; ">
  524. <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; "/>
  525. <input id="input3" ref="/root/send/searchproj/studycd" class="input_default" navindex="10" visibility="visible" style="left:94px; top:54px; width:125px; height:19px; ">
  526. <script type="javascript" ev:event="onkeyup">
  527. <![CDATA[
  528. ]]>
  529. </script>
  530. </input>
  531. <caption id="caption2" class="search_name" style="left:8px; top:55px; width:88px; height:17px; font-family:돋움체; ">과제번호:</caption>
  532. <input id="input2" ref="/root/send/searchproj/projnm" class="input_default" navindex="10" visibility="visible" style="left:81px; top:76px; width:138px; height:19px; ">
  533. <script type="javascript" ev:event="onkeyup">
  534. <![CDATA[
  535. ]]>
  536. </script>
  537. </input>
  538. <caption id="caption5" class="search_name" style="left:8px; top:77px; width:78px; height:17px; font-family:돋움체; ">과제명:</caption>
  539. <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; ">
  540. <choices>
  541. <item>
  542. <label>종결포함</label>
  543. <value>Y</value>
  544. </item>
  545. </choices>
  546. </select>
  547. <button id="btn_search" class="btn1_letter2" style="left:222px; top:75px; width:56px; height:22px; ">
  548. <caption>조회</caption>
  549. <script type="javascript" ev:event="DOMActivate">
  550. <![CDATA[
  551. fSearch();
  552. ]]>
  553. </script>
  554. </button>
  555. <caption id="caption3" class="search_name" style="left:8px; top:33px; width:108px; height:17px; font-family:돋움체; ">책임연구원:</caption>
  556. <output id="output4" ref="/root/send/searchproj/rshid" class="output_fix" style="left:106px; top:32px; width:70px; height:19px; "/>
  557. <button id="button6" class="icon_search" navindex="5" style="left:267px; top:33px; width:16px; height:16px; ">
  558. <caption/>
  559. <script type="javascript" ev:event="DOMActivate">
  560. <![CDATA[
  561. fSetUserinfo();
  562. ]]>
  563. </script>
  564. </button>
  565. <output id="output3" ref="/root/send/searchproj/rshnm" class="output_fix" style="left:178px; top:32px; width:86px; height:19px; "/>
  566. <caption id="caption14" class="search_name" style="left:8px; top:10px; width:88px; height:17px; font-family:돋움체; ">기관코드:</caption>
  567. <select1 id="cmb_instcd" ref="/root/send/searchproj/instcd" class="combo_defalut" appearance="minimal" style="left:94px; top:9px; width:171px; height:19px; ">
  568. <choices>
  569. <itemset nodeset="/root/init/C0048list/C0048">
  570. <label ref="cdnm"/>
  571. <value ref="cdid"/>
  572. </itemset>
  573. </choices>
  574. <script type="javascript" ev:event="xforms-value-changed">
  575. <![CDATA[
  576. fSearchReportList();
  577. fSearch();
  578. model.refresh();
  579. ]]>
  580. </script>
  581. </select1>
  582. </group>
  583. <group id="group1" style="left:0px; top:0px; width:1195px; height:27px; ">
  584. <caption id="cpt_status" style="left:560px; top:3px; width:160px; height:20px; font-weight:bold; color:#ff0000; text-align:right; "/>
  585. <button id="btn_print" class="btn3_letter2" navindex="97" style="left:864px; top:3px; width:56px; height:22px; ">
  586. <caption>출력</caption>
  587. <script type="javascript" ev:event="DOMActivate">
  588. <![CDATA[
  589. fPrintRepDetl();
  590. ]]>
  591. </script>
  592. </button>
  593. <button id="btn_save" class="btn4_letter2" navindex="100" style="left:1038px; top:3px; width:56px; height:22px; ">
  594. <caption>저장</caption>
  595. <script type="javascript" ev:event="DOMActivate">
  596. <![CDATA[
  597. // if(!isWritingReport()){ //입력,수정이 아닌 경우
  598. // messageBox("저장할 데이터가","E014");
  599. // return;
  600. // }
  601. if( grd_proj.row < 1 ){
  602. messageBox("저장할 과제를 선택한 후 진행하세요.","I999");
  603. return;
  604. }
  605. if(!isValidUser()){
  606. messageBox("작성자나 책임연구원만 저장이","I006");
  607. return;
  608. }
  609. var status = model.getValue("/root/main/repstatusinfo/repstatus/status");
  610. if(status == "E"){
  611. messageBox("이미 연구소에 제출된 보고서입니다. 제출취소 이후에 저장","I006");
  612. return;
  613. }
  614. if(status == "A"){
  615. messageBox("이미 연구소확인이 진행된 보고서입니다. 연구소로 문의","I008");
  616. return;
  617. }
  618. if(isNull(ipt_bsdd.value)){
  619. messageBox("작성일자는","I003");
  620. return;
  621. }
  622. setAlertOn();
  623. fSaveRepDetl();
  624. fSearchReportHist();
  625. var seqno = model.getValue("/root/tmp/retlist/seqno");
  626. var reptcd = model.getValue("/root/tmp/retlist/reptcd");
  627. for( var i = 0; i <= grd_rephist.rows - grd_rephist.fixedRows ; i++ ){
  628. if( seqno == model.getValue("/root/main/rephistinfo/rephistlist[" + i + "]/seqno") &&
  629. reptcd == model.getValue("/root/main/rephistinfo/rephistlist[" + i + "]/reptcd")){
  630. grd_rephist.row = i;
  631. grd_rephist.dispatch("ondblclick");
  632. }
  633. }
  634. model.refresh();
  635. ]]>
  636. </script>
  637. </button>
  638. <button id="btn_new" class="btn4_letter2" navindex="101" style="left:922px; top:3px; width:56px; height:22px; ">
  639. <caption>신규</caption>
  640. <script type="javascript" ev:event="DOMActivate">
  641. <![CDATA[
  642. fInstcdChk();
  643. var sel_value = trv_report.value;
  644. if(sel_value == "" ){
  645. messageBox("보고서가 선택되지","E007");
  646. return;
  647. }
  648. fSetRept("trv_report");
  649. reportflag = "i";
  650. fSearchRepDetl();
  651. ]]>
  652. </script>
  653. </button>
  654. <button id="btn_submit_cancel" class="btn4_letter4" disabled="true" navindex="101" style="left:724px; top:3px; width:80px; height:22px; ">
  655. <caption>제출취소</caption>
  656. <script type="javascript" ev:event="DOMActivate">
  657. <![CDATA[
  658. if(!isUpdatingReport()){
  659. messageBox("작성된 보고서가 선택되지","E007");
  660. return;
  661. }
  662. if(!isValidUser()){
  663. messageBox("작성자나 책임연구원만 취소가","I006");
  664. return;
  665. }
  666. var rtn = messageBox("보고서 제출이 취소됩니다.", "Q003");
  667. if(rtn != 6){
  668. return;
  669. }
  670. setAlertOn();
  671. fSubmitRep("C");
  672. fSearchRepStatus();
  673. ]]>
  674. </script>
  675. </button>
  676. <select1 id="combo1" ref="/root/main/repstatusinfo/repstatus/status" visibility="hidden" appearance="minimal" style="left:458px; top:4px; width:100px; height:19px; ">
  677. <choices>
  678. <itemset nodeset="/root/hidden/statuslist/status">
  679. <label ref="cdnm"/>
  680. <value ref="cdid"/>
  681. </itemset>
  682. </choices>
  683. <script type="javascript" ev:event="xforms-value-changed">
  684. <![CDATA[
  685. fCheckStatus();
  686. ]]>
  687. </script>
  688. </select1>
  689. <button id="btn_submit" class="btn4_letter2" disabled="true" navindex="101" style="left:806px; top:3px; width:56px; height:22px; ">
  690. <caption>제출</caption>
  691. <script type="javascript" ev:event="DOMActivate">
  692. <![CDATA[
  693. if(!isUpdatingReport()){
  694. messageBox("작성된 보고서가 선택되지","E007");
  695. return;
  696. }
  697. if(!isValidUser()){
  698. messageBox("작성자나 책임연구원만 제출이","I006");
  699. return;
  700. }
  701. var rtn = messageBox("연구소에 보고서를 제출합니다.", "Q009");
  702. if(rtn != 6){
  703. return;
  704. }
  705. setAlertOn();
  706. fSubmitRep("S");
  707. ]]>
  708. </script>
  709. </button>
  710. <button id="button2" class="btn4_letter2" navindex="101" style="left:980px; top:3px; width:56px; height:22px; ">
  711. <caption>삭제</caption>
  712. <script type="javascript" ev:event="DOMActivate">
  713. <![CDATA[
  714. // if(!isUpdatingReport()){
  715. // messageBox("작성된 보고서가 선택되지","E007");
  716. // return;
  717. // }
  718. if( grd_proj.row < 1 ){
  719. messageBox("삭제할 과제를 선택한 후 진행하세요.","I999");
  720. return;
  721. }
  722. if(!isValidUser()){
  723. messageBox("작성자나 책임연구원만 삭제가","I006");
  724. return;
  725. }
  726. var status = model.getValue("/root/main/repstatusinfo/repstatus/status");
  727. if(status == "E"){
  728. messageBox("이미 연구소에 제출된 보고서입니다. 제출취소 이후에 삭제","I006");
  729. return;
  730. }
  731. if(status == "A"){
  732. messageBox("이미 연구소확인이 진행된 보고서입니다. 연구소로 문의","I008");
  733. return;
  734. }
  735. var rtn = messageBox("정말로 ", "Q001");
  736. if(rtn != 6){
  737. return;
  738. }
  739. reportflag = "d";
  740. setAlertOn();
  741. fSaveRepDetl();
  742. fSetProj();
  743. ]]>
  744. </script>
  745. </button>
  746. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">
  747. <![CDATA[과제별 보고서관리]]>
  748. </caption>
  749. <button id="btn_NewSave" class="btn4_letter5" navindex="100" style="left:1096px; top:3px; width:92px; height:22px; ">
  750. <caption>새이름으로</caption>
  751. <script type="javascript" ev:event="DOMActivate">
  752. <![CDATA[
  753. // if(!isWritingReport()){ //입력,수정이 아닌 경우
  754. // messageBox("저장할 데이터가","E014");
  755. // return;
  756. // }
  757. if( grd_proj.row < 1 ){
  758. messageBox("저장할 과제를 선택한 후 진행하세요.","I999");
  759. return;
  760. }
  761. if(!isValidUser()){
  762. messageBox("작성자나 책임연구원만 저장이","I006");
  763. return;
  764. }
  765. if(isNull(ipt_bsdd.value)){
  766. messageBox("작성일자는","I003");
  767. return;
  768. }
  769. reportflag = "i";
  770. setAlertOn();
  771. fSaveRepDetl();
  772. fSearchReportHist();
  773. var seqno = model.getValue("/root/tmp/retlist/seqno");
  774. var reptcd = model.getValue("/root/tmp/retlist/reptcd");
  775. for( var i = 0; i <= grd_rephist.rows - grd_rephist.fixedRows ; i++ ){
  776. if( seqno == model.getValue("/root/main/rephistinfo/rephistlist[" + i + "]/seqno") &&
  777. reptcd == model.getValue("/root/main/rephistinfo/rephistlist[" + i + "]/reptcd")){
  778. grd_rephist.row = i;
  779. grd_rephist.dispatch("ondblclick");
  780. }
  781. }
  782. model.refresh();
  783. ]]>
  784. </script>
  785. </button>
  786. <button id="btn_pamrgst" class="btn3_letter8" style="left:594px; top:3px; width:128px; height:22px; ">
  787. <caption>임상미수청구관리</caption>
  788. <script type="javascript" ev:event="DOMActivate">
  789. <![CDATA[
  790. open("../../../pam/acquaintanceweb/xrw/SMPAM00401_임상미수청구관리_CTMS.xrw", "", "", "" ,"", "", "");
  791. ]]>
  792. </script>
  793. </button>
  794. </group>
  795. <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:돋움체; ">
  796. <col ref="instcd" type="combo" style="text-align:center; ">
  797. <choices>
  798. <item>
  799. <label>본원</label>
  800. <value>031</value>
  801. </item>
  802. <item>
  803. <label>칠곡</label>
  804. <value>032</value>
  805. </item>
  806. </choices>
  807. </col>
  808. <col ref="projcd" visibility="hidden"/>
  809. <col ref="rshid" visibility="hidden"/>
  810. <col ref="rshnm" style="text-align:center; "/>
  811. <col ref="studycd" style="text-align:left; "/>
  812. <col ref="projnm" style="text-align:left; "/>
  813. <col ref="status" visibility="hidden"/>
  814. <col ref="statusnm" visibility="hidden"/>
  815. <col ref="reqfirm" visibility="hidden"/>
  816. <col ref="kind" visibility="hidden"/>
  817. <col ref="kindnm" visibility="hidden"/>
  818. <col ref="cnfmdd" visibility="hidden"/>
  819. <col ref="stage" visibility="hidden"/>
  820. <col ref="projspec" visibility="hidden"/>
  821. <col ref="projamt" visibility="hidden"/>
  822. <col ref="fromdd" visibility="hidden"/>
  823. <col ref="todd" visibility="hidden"/>
  824. <col ref="jobposcd" visibility="hidden"/>
  825. <col ref="jobposnm" visibility="hidden"/>
  826. <col ref="emplinstcd" visibility="hidden"/>
  827. <col ref="empldeptcd" visibility="hidden"/>
  828. <col ref="empldeptnm" visibility="hidden"/>
  829. <col ref="bsnm" visibility="hidden"/>
  830. <script type="javascript" ev:event="onaftersort">
  831. <![CDATA[
  832. grd_proj.gridToInstance();
  833. ]]>
  834. </script>
  835. <script type="javascript" ev:event="ondblclick">
  836. <![CDATA[
  837. fSetProj();
  838. ]]>
  839. </script>
  840. </datagrid>
  841. <line id="line1" class="line_1" style="x1:0px; y1:141px; x2:300px; y2:141px; font-family:돋움체; "/>
  842. <caption id="caption1" class="tit_2" style="left:970px; top:38px; width:130px; height:13px; font-family:돋움체; ">보고서리스트</caption>
  843. <line id="line2" class="line_1" style="x1:970px; y1:54px; x2:1195px; y2:54px; font-family:돋움체; "/>
  844. <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:돋움체; ">
  845. <col ref="reptnm"/>
  846. <col ref="bsnm"/>
  847. <col disabled="true" ref="status" type="combo" style="text-align:center; ">
  848. <choices>
  849. <itemset nodeset="/root/hidden/statuslist/status">
  850. <label ref="cdnm"/>
  851. <value ref="cdid"/>
  852. </itemset>
  853. </choices>
  854. </col>
  855. <col ref="bigo"/>
  856. <col ref="rjtremark"/>
  857. <col ref="sbmtdd" format="yyyy-mm-dd"/>
  858. <col ref="instcd" visibility="hidden"/>
  859. <col ref="projcd" visibility="hidden"/>
  860. <col ref="bsid" visibility="hidden"/>
  861. <col ref="reptcd" visibility="hidden"/>
  862. <col ref="seqno" visibility="hidden"/>
  863. <col ref="bsdd" visibility="hidden" format="yyyy-mm-dd"/>
  864. <script type="javascript" ev:event="onaftersort">
  865. <![CDATA[
  866. grd_rephist.gridToInstance();
  867. ]]>
  868. </script>
  869. <script type="javascript" ev:event="ondblclick">
  870. <![CDATA[
  871. fSetRept("grd_rephist");
  872. ]]>
  873. </script>
  874. </datagrid>
  875. <iviewer id="iviewer1" src="SMRIF02110_보고서초기화면.xrw" style="left:305px; top:108px; width:664px; height:654px; "/>
  876. <input id="input5" ref="/root/main/repmain/projnm" editable="false" style="left:469px; top:36px; width:498px; height:19px; background-color:#ecebec; "/>
  877. <caption id="cap_goodflagengnm" class="cell_1" style="left:811px; top:57px; width:65px; height:23px; font-family:돋움체; vertical-align:middle; ">작성일자</caption>
  878. <line id="line4" class="line_2" style="x1:306px; y1:56px; x2:970px; y2:56px; font-family:돋움체; "/>
  879. <caption id="caption7" class="cell_1" style="left:305px; top:33px; width:65px; height:23px; font-family:돋움체; vertical-align:middle; ">과 제</caption>
  880. <line id="line5" class="line_2" style="x1:306px; y1:80px; x2:970px; y2:80px; font-family:돋움체; "/>
  881. <input id="ipt_bsdd" ref="/root/main/repmain/bsdd" inputtype="date" style="left:878px; top:59px; width:90px; height:19px; font-family:돋움체; "/>
  882. <line id="line6" class="line_3" style="x1:305px; y1:107px; x2:969px; y2:107px; font-family:돋움체; "/>
  883. <line id="line7" class="line_2" style="x1:306px; y1:106px; x2:970px; y2:106px; font-family:돋움체; "/>
  884. <caption id="caption8" class="cell_1" style="left:469px; top:57px; width:75px; height:23px; font-family:돋움체; vertical-align:middle; ">책임연구원</caption>
  885. <input id="input1" ref="/root/main/repmain/rshnm" editable="false" style="left:546px; top:59px; width:90px; height:19px; background-color:#ecebec; "/>
  886. <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; "/>
  887. <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>
  888. <input id="ipt_studycd" ref="/root/main/repmain/studycd" editable="false" style="left:372px; top:36px; width:95px; height:19px; background-color:#ecebec; "/>
  889. <line id="line8" class="line_2" style="x1:306px; y1:104px; x2:970px; y2:104px; font-family:돋움체; "/>
  890. <line id="line9" class="line_3" style="x1:305px; y1:32px; x2:971px; y2:32px; "/>
  891. <caption id="caption4" class="cell_1" style="left:305px; top:58px; width:65px; height:23px; font-family:돋움체; vertical-align:middle; ">의뢰기관</caption>
  892. <input id="input4" ref="/root/main/repmain/reqfirm" editable="false" style="left:372px; top:59px; width:95px; height:19px; background-color:#ecebec; "/>
  893. <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; "/>
  894. <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; "/>
  895. <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>
  896. <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>
  897. <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>
  898. <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; "/>
  899. <input id="input6" ref="/root/main/repmain/bsnm" editable="false" style="left:710px; top:59px; width:99px; height:19px; background-color:#ecebec; "/>
  900. <caption id="caption13" class="cell_1" style="left:638px; top:58px; width:70px; height:23px; font-family:돋움체; vertical-align:middle; ">작 성 자</caption>
  901. <treeview id="trv_report" ref="/root/send/selreport" expanddepth="3" fullrowselect="true" itemsettype="depth" style="left:970px; top:58px; width:224px; height:704px; ">
  902. <itemset nodeset="/root/main/reportinfo/reportlist">
  903. <label ref="reptnm"/>
  904. <value ref="reportvalue"/>
  905. <depth ref="depth"/>
  906. </itemset>
  907. <script type="javascript" ev:event="ondblclick">
  908. <![CDATA[
  909. var sel_value = trv_report.value;
  910. var split_var =sel_value.split('/');
  911. var depth = split_var[0];
  912. var reportnm = split_var[1];
  913. if( depth == 3 ){
  914. fSetRept("trv_report");
  915. reportflag = "i";
  916. fSearchRepDetl();
  917. }
  918. model.refresh();
  919. ]]>
  920. </script>
  921. </treeview>
  922. </xhtml:body>
  923. </xhtml:html>