SMZRM00100_요구사항관리.xrw 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>요구사항관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <reqmngt>
  12. <prcscd/>
  13. <fstrgstdt/>
  14. <usernm/>
  15. <reqnm/>
  16. <reqdd/>
  17. <instnm/>
  18. <reqdeptnm/>
  19. <requsernm/>
  20. <telno/>
  21. <prcstitl/>
  22. <itcconf/>
  23. <infomngconf/>
  24. <prcsmsg/>
  25. <statnm/>
  26. <itcagryn/>
  27. <deptagryn/>
  28. <reqpart/>
  29. <impnm/>
  30. <secuflag/>
  31. <emgflag/>
  32. <projcd/>
  33. <filegrpno/>
  34. <tftno/>
  35. <statcd/>
  36. <fstrpttxt/>
  37. <rpttxt/>
  38. <fstrnm/>
  39. <fstrdt/>
  40. <lastnm/>
  41. <lastdt/>
  42. <userid/>
  43. <instcd/>
  44. <reqgubun/>
  45. <updateuserid/>
  46. <posdeptnm/>
  47. <posinstnm/>
  48. <attach/>
  49. <itcconftxt/>
  50. <infomngconftxt/>
  51. <itcconfnm/>
  52. <infomngconfnm/>
  53. <preprcscd/>
  54. <appinst/>
  55. <priocd/>
  56. <prionm/>
  57. <impcd/>
  58. <deptagrlst/>
  59. </reqmngt>
  60. </list>
  61. <data>
  62. <prcscd/>
  63. <reqdd/>
  64. <reqdeptnm/>
  65. <requsernm/>
  66. <telno/>
  67. <prcstitl/>
  68. <prcsmsg/>
  69. <itcagryn/>
  70. <deptagryn/>
  71. <reqpart/>
  72. <secuflag/>
  73. <emgflag/>
  74. <filegrpno/>
  75. <statcd/>
  76. <fstrpttxt/>
  77. <rpttxt/>
  78. <reqgubun/>
  79. <impcd/>
  80. <fstrgstrid/>
  81. <instcd/>
  82. <posinstnm/>
  83. <posdeptnm/>
  84. <usernm/>
  85. <userid/>
  86. <updateuserid/>
  87. <attach/>
  88. <itcconftxt/>
  89. <infomngconftxt/>
  90. <itcconfnm/>
  91. <infomngconfnm/>
  92. <preprcscd/>
  93. <appinst/>
  94. <priocd/>
  95. <deptagrlst/>
  96. <projcd/>
  97. </data>
  98. <mode>
  99. <modestatus/>
  100. <modelabel/>
  101. </mode>
  102. <ftpfilelist>
  103. <filelist>
  104. </filelist>
  105. </ftpfilelist>
  106. <newfilegrpno>
  107. <filegrpno/>
  108. </newfilegrpno>
  109. <newfileno>
  110. <fileno/>
  111. </newfileno>
  112. </main>
  113. <send>
  114. <fromdd/>
  115. <todd/>
  116. <instcd/>
  117. <reqdeptnm/>
  118. <requsernm/>
  119. <statcd/>
  120. <reqgubun/>
  121. <ismine/>
  122. <searchtxt/>
  123. <fstrgstrid/>
  124. <gpcd/>
  125. <prcscd/>
  126. <userid/>
  127. <priocd/>
  128. <data>
  129. </data>
  130. <filegrpno/>
  131. <req>
  132. <filelist/>
  133. </req>
  134. </send>
  135. <hidden>
  136. <temp>
  137. </temp>
  138. </hidden>
  139. <init>
  140. <list>
  141. <C0008>
  142. <cdid/>
  143. <cdnm/>
  144. </C0008>
  145. <C0001>
  146. <cdid/>
  147. <cdnm/>
  148. </C0001>
  149. <C0010>
  150. <cdid/>
  151. <cdnm/>
  152. </C0010>
  153. <C0015>
  154. <cdid/>
  155. <cdnm/>
  156. </C0015>
  157. <I0008>
  158. <cdid/>
  159. <cdnm/>
  160. </I0008>
  161. <I0010>
  162. <cdid/>
  163. <cdnm/>
  164. </I0010>
  165. <I0003>
  166. <cdid/>
  167. <cdnm/>
  168. </I0003>
  169. <I0015>
  170. <cdid/>
  171. <cdnm/>
  172. </I0015>
  173. </list>
  174. <ftppath>
  175. <pathid/>
  176. <host/>
  177. <port/>
  178. <usr/>
  179. <passwd/>
  180. <path/>
  181. </ftppath>
  182. <userauth>
  183. <auth/>
  184. </userauth>
  185. </init>
  186. </root>
  187. </instance>
  188. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  189. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  190. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  191. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  192. <script type="javascript" src="../../../com/reqmngtweb/js/ZRM001.js"/>
  193. <script type="javascript" ev:event="xforms-ready">
  194. <![CDATA[
  195. // 조회 조건의 콤보박스 출력
  196. model.setValue("/root/send/gpcd","0001|0008|0010|0003|0015");
  197. submit("TRZRM00102");
  198. combo1.select(0);
  199. combo2.select(0);
  200. radio1.select(0);
  201. combo4.select(0);
  202. combo5.select(0);
  203. combo6.select(0);
  204. combo7.select(0);
  205. combo8.select(0);
  206. // 조회일자 초기화
  207. ipt_fromdd.value = getCurrentDate();
  208. ipt_todd.value = getCurrentDate();
  209. ipt_reqdd.value = getCurrentDate();
  210. // 파일 첨부 경로 가져오기
  211. submit("TRZRM00105");
  212. // 추가할 수 있는 상태로 초기화
  213. fInsertMode();
  214. model.makeValue("/root/send/userid", getUserInfo("userid"));
  215. submit("TRZRM00108");
  216. var strauth = model.getValue("/root/init/userauth/auth");
  217. if(strauth <= "0010" && strauth != "" ){
  218. btn_update.disabled = false;
  219. } else {
  220. btn_update.disabled = true;
  221. }
  222. model.refresh();
  223. ]]>
  224. </script>
  225. <submission id="TRZRM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  226. <submission id="TRZRM00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/list"/>
  227. <submission id="TRZRM00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  228. <submission id="TRZRM00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ftpfilelist"/>
  229. <submission id="TRZRM00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ftppath"/>
  230. <submission id="TRZRM00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/newfilegrpno"/>
  231. <submission id="TRZRM00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userauth"/>
  232. <submission id="TXZRM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
  233. <submission id="TXZRM00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
  234. <submission id="TXZRM00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/newfileno"/>
  235. <submission id="TXZRM00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data"/>
  236. </model>
  237. <object id="objSFT" visibility="hidden" clsid="{2831e72c-9640-44ea-87dc-ddb462d5796c}" visible="false" style="left:375px; top:0px; width:40px; height:20px; "/>
  238. <script type="javascript">
  239. <![CDATA[
  240. // 화면 초기화
  241. function fInitMainData(disabled){
  242. model.makeValue("/root/main/data/prcscd", "");
  243. ipt_reqdd.value = getCurrentDate();
  244. //model.makeValue("/root/main/data/reqdd", "");
  245. model.makeValue("/root/main/data/reqdeptnm", "");
  246. model.makeValue("/root/main/data/requsernm", "");
  247. model.makeValue("/root/main/data/telno", "");
  248. model.makeValue("/root/main/data/prcstitl", "");
  249. model.makeValue("/root/main/data/prcsmsg", "");
  250. model.makeValue("/root/main/data/itcagryn", "");
  251. model.makeValue("/root/main/data/deptagryn", "");
  252. model.makeValue("/root/main/data/reqpart", "");
  253. model.makeValue("/root/main/data/secuflag", "");
  254. model.makeValue("/root/main/data/emgflag", "");
  255. model.makeValue("/root/main/data/filegrpno", "");
  256. model.makeValue("/root/main/data/statcd", "");
  257. model.makeValue("/root/main/data/fstrpttxt", "");
  258. model.makeValue("/root/main/data/rpttxt", "");
  259. model.makeValue("/root/main/data/reqgubun", "");
  260. model.makeValue("/root/main/data/impcd", "");
  261. model.makeValue("/root/main/data/fstrgstrid", "");
  262. model.makeValue("/root/main/data/instcd", "");
  263. model.makeValue("/root/main/data/posinstnm",getUserInfo("posinstnm"));
  264. model.makeValue("/root/main/data/posdeptnm", getUserInfo("posdeptnm"));
  265. model.makeValue("/root/main/data/usernm", getUserInfo("usernm"));
  266. model.makeValue("/root/main/data/userid", getUserInfo("userid"));
  267. model.makeValue("/root/main/data/updateuserid", "");
  268. model.makeValue("/root/main/data/appinst", "");
  269. model.makeValue("/root/main/data/preprcscd", "");
  270. model.makeValue("/root/main/data/priocd", "");
  271. //model.makeValue("/root/send/data/filegrpno", "");
  272. model.removeNodeset("/root/main/ftpfilelist/filelist");
  273. model.refresh();
  274. fDisableMainDataControls(disabled);
  275. }
  276. ]]>
  277. </script>
  278. </xhtml:head>
  279. <xhtml:body guideline="2,784;1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  280. <object id="objSFT" clsid="{2831e72c-9640-44ea-87dc-ddb462d5796c}" style="left:0px; top:0px; width:5px; height:30px; "/>
  281. <line id="line2" class="line_2" style="x1:595px; y1:315px; x2:1192px; y2:315px; "/>
  282. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1192px; height:771px; ">
  283. <line id="line1" class="line_1" style="x1:1px; y1:121px; x2:585px; y2:121px; "/>
  284. <group id="grp_sea" style="left:0px; top:5px; width:1192px; height:85px; vertical-align:top; ">
  285. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1192px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
  286. <caption id="caption8" class="search_name" style="left:15px; top:10px; width:104px; height:17px; ">등록일자 :</caption>
  287. <caption id="caption7" class="search_no_b" style="left:192px; top:11px; width:12px; height:17px; ">~</caption>
  288. <caption id="caption1" class="search_name" style="left:300px; top:10px; width:100px; height:17px; ">발의기관 :</caption>
  289. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:105px; top:10px; width:85px; height:19px; "/>
  290. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" style="left:205px; top:10px; width:85px; height:19px; "/>
  291. <button id="btn_search" class="btn1_letter2" navindex="9" style="left:1125px; top:10px; width:56px; height:22px; ">
  292. <caption>조회</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. model.makeValue("/root/send/fstrgstrid", getUserInfo("userid"));
  296. submit("TRZRM00101");
  297. ]]>
  298. </script>
  299. </button>
  300. <select1 id="combo1" ref="/root/send/instcd" class="combo_search" navindex="3" appearance="minimal" style="left:390px; top:10px; width:170px; height:19px; ">
  301. <choices>
  302. <itemset nodeset="/root/init/list/C0008">
  303. <label ref="cdnm"/>
  304. <value ref="cdid"/>
  305. </itemset>
  306. </choices>
  307. </select1>
  308. <caption id="caption2" class="search_name" style="left:575px; top:10px; width:100px; height:17px; ">요청부서 :</caption>
  309. <select1 id="combo2" ref="/root/send/statcd" class="combo_search" navindex="6" appearance="minimal" style="left:105px; top:35px; width:185px; height:19px; ">
  310. <choices>
  311. <itemset nodeset="/root/init/list/C0001">
  312. <label ref="cdnm"/>
  313. <value ref="cdid"/>
  314. </itemset>
  315. </choices>
  316. </select1>
  317. <caption id="caption3" class="search_name" style="left:845px; top:10px; width:100px; height:17px; ">요청자 :</caption>
  318. <caption id="caption4" class="search_name" style="left:15px; top:35px; width:100px; height:17px; ">진행상태 :</caption>
  319. <caption id="caption5" class="search_name" style="left:300px; top:35px; width:100px; height:17px; ">요청구분 :</caption>
  320. <input id="input2" ref="/root/send/requsernm" class="input_search" navindex="5" style="left:940px; top:10px; width:150px; height:19px; "/>
  321. <input id="input1" ref="/root/send/reqdeptnm" class="input_search" navindex="4" style="left:665px; top:10px; width:145px; height:19px; "/>
  322. <select1 id="radio1" ref="/root/send/reqgubun" navindex="7" overflow="visible" appearance="full" cols="10" style="left:390px; top:35px; width:385px; height:20px; border-style:none; ">
  323. <choices>
  324. <itemset nodeset="/root/init/list/C0010">
  325. <label ref="cdnm"/>
  326. <value ref="cdid"/>
  327. </itemset>
  328. </choices>
  329. </select1>
  330. <select id="chk_ismine" ref="/root/send/ismine" navindex="8" overflow="visible" appearance="full" style="left:1067px; top:35px; width:125px; height:20px; border-style:none; ">
  331. <choices>
  332. <item>
  333. <label>본인이 등록한것만</label>
  334. <value>Y</value>
  335. </item>
  336. </choices>
  337. </select>
  338. <caption id="caption40" class="search_name" style="left:845px; top:35px; width:100px; height:17px; ">우선순위 :</caption>
  339. <select1 id="combo7" ref="/root/send/priocd" class="combo_search" navindex="4" appearance="minimal" style="left:940px; top:35px; width:75px; height:19px; ">
  340. <choices>
  341. <itemset nodeset="/root/init/list/C0015">
  342. <label ref="cdnm"/>
  343. <value ref="cdid"/>
  344. </itemset>
  345. </choices>
  346. </select1>
  347. <caption id="caption42" class="search_name" style="left:15px; top:60px; width:100px; height:17px; ">요청번호 :</caption>
  348. <caption id="caption43" class="search_name" style="left:300px; top:60px; width:166px; height:17px; ">요청제목 or 요청내용 :</caption>
  349. <input id="input4" ref="/root/send/prcscd" class="input_search" style="left:105px; top:60px; width:185px; height:19px; "/>
  350. <input id="input5" ref="/root/send/searchtxt" class="input_search" style="left:465px; top:60px; width:345px; height:19px; "/>
  351. </group>
  352. <button id="btn_excel" class="btn2_letter4" style="left:475px; top:100px; width:64px; height:19px; ">
  353. <caption>엑셀저장</caption>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. var fileName = window.fileDialog("save", ",", false, "요구사항관리_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  357. if (fileName != "")
  358. {
  359. grd_reqmngtlist.saveExcel(fileName, "SheetName", true, true, "", "", "false");
  360. }
  361. ]]>
  362. </script>
  363. </button>
  364. <group id="grd_general_process" style="left:1062px; top:93px; width:126px; height:23px; ">
  365. <button id="btn_add" class="btn4_letter3" style="left:0px; top:0px; width:68px; height:22px; ">
  366. <caption>초기화</caption>
  367. <script type="javascript" ev:event="DOMActivate">
  368. <![CDATA[
  369. // 추가할 수 있는 상태로 초기화
  370. fInsertMode();
  371. ]]>
  372. </script>
  373. </button>
  374. <button id="btn_update" class="btn4_letter2" style="left:70px; top:0px; width:68px; height:22px; ">
  375. <caption>저장</caption>
  376. <script type="javascript" ev:event="DOMActivate">
  377. <![CDATA[
  378. var mode = model.getValue("/root/main/mode/modestatus");
  379. var strauth = model.getValue("/root/init/userauth/auth");
  380. model.makeValue("/root/main/data/updateuserid", getUserInfo("userid"));
  381. model.makeValue("/root/main/data/userid", getUserInfo("userid"));
  382. model.copyNode("/root/send/data", "/root/main/data");
  383. // 필수 항목 체크
  384. if (fValueCheck() == false) { return; }
  385. // 삽입 --------------------------------------------------------------------------------------------------
  386. if (mode == "insert" ) {
  387. // 첨부파일이 있는가?
  388. if (grd_attach.rows > 1 ) {
  389. // filegrpno 읽기
  390. submit("TRZRM00106");
  391. model.makeValue("/root/send/data/filegrpno", model.getValue("/root/main/newfilegrpno/filegrpno"));
  392. // 첨부파일 수만큼 테이블에 insert시키고, 파일 업로드
  393. for (var i=1; i< grd_attach.rows; i++) {
  394. // ztrmfile 테이블 insert
  395. model.copyNode("/root/send/req/filelist", "/root/main/ftpfilelist/filelist[" + i + "]");
  396. model.setValue("/root/send/req/filelist/filegrpno", model.getValue("/root/main/newfilegrpno/filegrpno"));
  397. submit("TXZRM00103");
  398. // 업로드 파일 정보 set
  399. var host = model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/host");
  400. var port= model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/port");
  401. var user = model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/usr");
  402. var pass = model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/passwd");
  403. var fileno = model.getValue("/root/main/newfileno/fileno");
  404. var dirstr = flpad(fileno, 3, "0");
  405. var pathRemote = model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/remotepath") + "\\" + dirstr + "\\" + fileno + "." + model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/ext");
  406. var pathLocal = model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/localpath");
  407. //alert (" host = " + host + "\n port = " + port + "\n user = " + user + "\n pass = " + pass + "\n pathRemote = " + pathRemote + "\n pathLocal = " + pathLocal );
  408. // 파일 업로드
  409. //var ret = putFiles("160.1.18.111", "2002", "cmc", "cmc", "F:\\TEST\\316\\316.xml", "C:\\aaa.xml");
  410. var ret = putFiles(host, port, user, pass, pathRemote, pathLocal);
  411. if (ret == false) {
  412. messageBox("파일 업로드에 ", "E009");
  413. return;
  414. }
  415. }
  416. } else {
  417. model.makeValue("/root/send/data/filegrpno", "0");
  418. }
  419. // ztrmprcs 테이블 insert
  420. submit("TXZRM00101");
  421. // 수정 --------------------------------------------------------------------------------------------------
  422. } else if (mode == "update") {
  423. // 사용자 체크 ( 본인만 수정가능하게 처리?)
  424. var fuser = model.getValue("/root/main/data/userid");
  425. if (fuser != getUserInfo("userid")) {
  426. messageBox("처음 등록한 사용자만 수정" , "I006");
  427. return;
  428. }
  429. // 진행상태 체크 (접수 상태가 아니면 수정 못함)
  430. var tmpstat = model.getValue("/root/main/data/statnm");
  431. var tmpstatcd = model.getValue("/root/main/data/statcd");
  432. //등록상태인 경우만 수정가능 - 단, 변경협의체 예외
  433. if (tmpstatcd != "0010") {
  434. //변경협의체가 아닌경우 수정불가
  435. if (strauth != "0006") {
  436. messageBox(tmpstat + "상태이므로 수정","E001");
  437. return;
  438. //변경협의체의 경우에도 전산접수이상일 경우엔 수정불가
  439. } else {
  440. if (tmpstatcd >= 100) {
  441. messageBox(tmpstat + "상태이므로 수정","E001");
  442. return;
  443. }
  444. }
  445. }
  446. // 첨부파일이 있는가?
  447. if (grd_attach.rows >0 ) {
  448. var grpno = model.getValue("/root/main/data/filegrpno");
  449. if (grpno == 0 || grpno == null ){
  450. submit("TRZRM00106");
  451. model.makeValue("/root/send/data/filegrpno", model.getValue("/root/main/newfilegrpno/filegrpno"));
  452. } else {
  453. //alert(grpno);
  454. model.makeValue("/root/send/data/infomnggrpno", grpno);
  455. model.makeValue("/root/main/newfilegrpno/filegrpno", grpno)
  456. }
  457. // 첨부파일 수만큼 테이블에 insert시키고, 파일 업로드
  458. for (var i=1; i< grd_attach.rows; i++) {
  459. var status = model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/status");
  460. if(status == "I") {
  461. // ztrmfile 테이블 insert
  462. model.copyNode("/root/send/req/filelist", "/root/main/ftpfilelist/filelist[" + i + "]");
  463. model.setValue("/root/send/req/filelist/filegrpno", model.getValue("/root/main/newfilegrpno/filegrpno"));
  464. submit("TXZRM00103");
  465. // 업로드 파일 정보 set
  466. var host = model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/host");
  467. var port= model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/port");
  468. var user = model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/usr");
  469. var pass = model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/passwd");
  470. var fileno = model.getValue("/root/main/newfileno/fileno");
  471. var dirstr = flpad(fileno, 3, "0");
  472. var pathRemote = model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/remotepath") + "\\" + dirstr + "\\" + fileno + "." + model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/ext");
  473. var pathLocal = model.getValue("/root/main/ftpfilelist/filelist[" + i + "]/localpath");
  474. //alert (" host = " + host + "\n port = " + port + "\n user = " + user + "\n pass = " + pass + "\n pathRemote = " + pathRemote + "\n pathLocal = " + pathLocal );
  475. // 파일 업로드
  476. //var ret = putFiles("160.1.18.111", "2002", "cmc", "cmc", "F:\\TEST\\316\\316.xml", "C:\\aaa.xml");
  477. var ret = putFiles(host, port, user, pass, pathRemote, pathLocal);
  478. if (ret == false) {
  479. messageBox("파일 업로드에 ", "E009");
  480. return;
  481. }
  482. }
  483. }
  484. }
  485. // ztrmprcs 테이블 update
  486. submit("TXZRM00102");
  487. }
  488. btn_search.dispatch("DOMActivate");
  489. //inputEnterKey("btn_search", "DOMActivate");
  490. grd_reqmngtlist.row = 1;
  491. fInitMainData(true);
  492. // 삽입 및 수정 후 그리드 새로고침
  493. //submit("TRZRM00101");
  494. ]]>
  495. </script>
  496. </button>
  497. </group>
  498. <button id="button1" class="btn2_letter7" style="left:1090px; top:187px; width:97px; height:19px; ">
  499. <caption>등록자와 동일</caption>
  500. <script type="javascript" ev:event="onclick">
  501. <![CDATA[
  502. model.setValue("/root/main/data/reqdeptnm", model.getValue("/root/main/data/posdeptnm"));
  503. model.setValue("/root/main/data/requsernm", model.getValue("/root/main/data/usernm"));
  504. model.refresh();
  505. ]]>
  506. </script>
  507. </button>
  508. <button id="btn_fileattach" class="btn2_letter4" style="left:1055px; top:541px; width:64px; height:19px; ">
  509. <caption>파일첨부</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. var pos;
  513. var filename;
  514. var n;
  515. var temp;
  516. var fs = new ActiveXObject("Scripting.FileSystemObject");
  517. files = window.fileDialog("open", "|", true);
  518. filelist = files.split("|");
  519. for(var i = 0 ; i < filelist.length ; i++ ) {
  520. if(filelist[i] != "")
  521. {
  522. pos=filelist[i].lastIndexOf("\\");
  523. filename=filelist[i].substring(pos+1);
  524. if (fCheckFileOpen(filelist[i]) == false){
  525. return;
  526. }
  527. grd_attach.addItem();
  528. n = grd_attach.rows - 1;
  529. grd_attach.valueMatrix(n, 1) = "I";
  530. grd_attach.valueMatrix(n, 2) = filelist[i];
  531. grd_attach.valueMatrix(n, 3) = filename;
  532. grd_attach.valueMatrix(n, 4) = model.getValue("/root/init/ftppath/host");
  533. grd_attach.valueMatrix(n, 5) = model.getValue("/root/init/ftppath/port");
  534. grd_attach.valueMatrix(n, 6) = model.getValue("/root/init/ftppath/usr");
  535. grd_attach.valueMatrix(n, 7) = model.getValue("/root/init/ftppath/passwd");
  536. grd_attach.valueMatrix(n, 8) = model.getValue("/root/init/ftppath/pathid");
  537. grd_attach.valueMatrix(n, 9) = model.getValue("/root/init/ftppath/path");
  538. if (fs != null){
  539. grd_attach.valueMatrix(n, 10) = fs.GetExtensionName (filelist[i]);
  540. }
  541. //grd_attach.valueMatrix(n, 10) = filename.substring(filename.indexOf(".")+1);
  542. grd_attach.valueMatrix(n, 11) = getUserInfo("userid");
  543. grd_attach.valueMatrix(n, 12) = getUserInfo("userid");
  544. grd_attach.valueMatrix(n, 13) = model.getValue("/root/main/data/filegrpno");
  545. grd_attach.valueMatrix(n, 14) = "0";
  546. }
  547. }
  548. fs = null;
  549. ]]>
  550. </script>
  551. </button>
  552. <input id="ipt_requsernm" ref="/root/main/data/requsernm" class="input_essential" navindex="12" imemode="hangul" style="left:700px; top:240px; width:210px; height:19px; "/>
  553. <textarea id="tar_prcsmsg" ref="/root/main/data/prcsmsg" class="input_essential" navindex="23" imemode="hangul" style="left:660px; top:375px; width:375px; height:160px; "/>
  554. <input id="ipt_telno" ref="/root/main/data/telno" class="input_essential" navindex="13" style="left:1010px; top:240px; width:178px; height:19px; "/>
  555. <output id="opt_modellabel" ref="/root/main/mode/modelabel" class="tit_2" style="left:595px; top:105px; width:269px; height:13px; "/>
  556. <input id="ipt_reqdd" ref="/root/main/data/reqdd" class="input_search" navindex="14" inputtype="date" style="left:660px; top:300px; width:90px; height:19px; "/>
  557. <caption id="caption20" class="cell_1" style="left:595px; top:348px; width:61px; height:23px; vertical-align:middle; ">요청제목</caption>
  558. <caption id="caption21" class="cell_1" style="left:595px; top:540px; width:61px; height:23px; vertical-align:middle; ">요청분야</caption>
  559. <caption id="caption10" class="cell_1" style="left:1020px; top:150px; width:50px; height:23px; vertical-align:middle; ">성명</caption>
  560. <caption id="caption22" class="cell_1" style="left:595px; top:375px; width:61px; height:160px; vertical-align:middle; ">요청내용</caption>
  561. <img id="img_cdgrup_search_popup" class="icon_search" visibility="hidden" style="left:1019px; top:542px; width:16px; height:16px; background-stretch:stretch; ">
  562. <script type="javascript" ev:event="onclick">
  563. <![CDATA[
  564. modal("SSZRM00100", 1, 0, 0 ,"", "", "");
  565. ]]>
  566. </script>
  567. </img>
  568. <caption id="caption12" class="cell_1" style="left:915px; top:210px; width:90px; height:23px; vertical-align:middle; ">요청부서</caption>
  569. <upload id="upload_attach" nodeset="/root/main/data/attach/file" filecount="5" filesize="100000000" validate="true" style="left:1040px; top:540px; width:25px; height:20px; "/>
  570. <input id="ipt_prcstitl" ref="/root/main/data/prcstitl" class="input_essential" navindex="22" imemode="hangul" style="left:660px; top:350px; width:375px; height:19px; "/>
  571. <caption id="caption13" class="cell_1" style="left:595px; top:210px; width:100px; height:23px; vertical-align:middle; ">요청자 발의기관</caption>
  572. <caption id="caption24" class="cell_1" style="left:595px; top:150px; width:60px; height:23px; vertical-align:middle; ">소속기관</caption>
  573. <button id="btn_filedelete" class="btn2_letter4" style="left:1125px; top:541px; width:64px; height:19px; ">
  574. <caption>파일삭제</caption>
  575. <script type="javascript" ev:event="DOMActivate">
  576. <![CDATA[
  577. var row = grd_attach.row;
  578. var host = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/host");
  579. var port = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/port");
  580. var user = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/usr");
  581. var pass = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/passwd");
  582. var pathRemote = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/remotepath");
  583. var filename = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/localpath");
  584. var fileno = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/fileno");
  585. model.makeValue("/root/main/data/updateuserid", getUserInfo("userid"));
  586. model.copyNode("/root/send/data", "/root/main/data");
  587. model.makeValue("/root/send/data/fileno", fileno);
  588. model.refresh();
  589. submit("TXZRM00106");
  590. deleteSelectedRows(grd_attach, false);
  591. ]]>
  592. </script>
  593. </button>
  594. <select1 id="combo4" ref="/root/main/data/instcd" class="combo_essential" navindex="10" appearance="minimal" style="left:700px; top:212px; width:210px; height:19px; ">
  595. <choices>
  596. <itemset nodeset="/root/init/list/I0008">
  597. <label ref="cdnm"/>
  598. <value ref="cdid"/>
  599. </itemset>
  600. </choices>
  601. <script type="javascript" ev:event="xforms-value-changed">
  602. <![CDATA[
  603. var instcd = model.getValue("/root/main/data/instcd");
  604. model.makeValue("/root/main/data/priocd", "0004");
  605. /*
  606. if (instcd == "011"){
  607. model.makeValue("/root/main/data/priocd", "0006");
  608. } else {
  609. model.makeValue("/root/main/data/priocd", "0004");
  610. }
  611. */
  612. model.refresh();
  613. ]]>
  614. </script>
  615. </select1>
  616. <caption id="caption25" class="cell_1" style="left:915px; top:238px; width:90px; height:23px; vertical-align:middle; ">전화번호</caption>
  617. <caption id="caption14" class="cell_1" style="left:595px; top:298px; width:61px; height:23px; vertical-align:middle; ">요청일자</caption>
  618. <select1 id="combo5" ref="/root/main/data/reqgubun" class="combo_essential" navindex="15" appearance="minimal" style="left:815px; top:300px; width:80px; height:19px; ">
  619. <choices>
  620. <itemset nodeset="/root/init/list/I0010">
  621. <label ref="cdnm"/>
  622. <value ref="cdid"/>
  623. </itemset>
  624. </choices>
  625. <script type="javascript" ev:event="xforms-select">
  626. <![CDATA[
  627. var tmp = model.getValue("/root/main/data/reqgubun");
  628. if(tmp == "0003" || tmp == "0004"){
  629. model.makeValue("/root/main/data/impcd", "0004");
  630. }
  631. model.refresh();
  632. ]]>
  633. </script>
  634. </select1>
  635. <caption id="caption15" class="cell_1" style="left:755px; top:298px; width:58px; height:23px; vertical-align:middle; ">요청구분</caption>
  636. <input id="ipt_cdid" ref="/root/main/data/posdeptnm" class="input_essential" disabled="true" style="left:875px; top:152px; width:140px; height:19px; "/>
  637. <select1 id="combo6" ref="/root/main/data/impcd" class="combo_essential" navindex="17" appearance="minimal" style="left:1115px; top:300px; width:75px; height:19px; ">
  638. <choices>
  639. <itemset nodeset="/root/init/list/I0003">
  640. <label ref="cdnm"/>
  641. <value ref="cdid"/>
  642. </itemset>
  643. </choices>
  644. </select1>
  645. <input id="ipt_reqpart" ref="/root/main/data/reqpart" class="input_essential" navindex="24" editable="true" imemode="hangul" style="left:660px; top:542px; width:355px; height:19px; ">
  646. <script type="javascript" ev:event="onclick">
  647. <![CDATA[
  648. modal("SSZRM00100", 1, event.screenX-20, event.screenY-250);
  649. var reqpart = getParameter("SSZRM00100_REQPART");
  650. model.setValue("/root/main/data/reqpart", reqpart);
  651. model.refresh();
  652. ]]>
  653. </script>
  654. </input>
  655. <caption id="caption16" class="cell_1" style="left:1060px; top:298px; width:50px; height:23px; vertical-align:middle; ">중요도</caption>
  656. <input id="ipt_instcd" ref="/root/main/data/posinstnm" class="input_essential" disabled="true" style="left:660px; top:152px; width:144px; height:19px; "/>
  657. <input id="ipt_reqdeptnm" ref="/root/main/data/reqdeptnm" class="input_essential" navindex="11" imemode="hangul" style="left:1010px; top:212px; width:178px; height:19px; "/>
  658. <caption id="caption9" class="cell_1" style="left:810px; top:150px; width:60px; height:23px; vertical-align:middle; ">소속부서</caption>
  659. <caption id="caption19" class="cell_1" style="left:595px; top:238px; width:100px; height:23px; vertical-align:middle; ">요청자명</caption>
  660. <input id="ipt_cdnm" ref="/root/main/data/usernm" class="input_essential" disabled="true" style="left:1075px; top:152px; width:115px; height:19px; "/>
  661. <datagrid id="grd_attach" nodeset="/root/main/ftpfilelist/filelist" caption="status^경로^첨부파일^host^port^usr^passwd^pathid^remotepath^ext^fstrgstrid^lastupdtrid^filegrpno^fileno" colwidth="0,0,150,0,0,0,0,0,0,0,0,0,0,0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" tooltip="true" style="left:1040px; top:375px; width:150px; height:160px; ">
  662. <col ref="status"/>
  663. <col ref="localpath"/>
  664. <col ref="filename"/>
  665. <col ref="host"/>
  666. <col ref="port"/>
  667. <col ref="usr"/>
  668. <col ref="passwd"/>
  669. <col ref="pathid"/>
  670. <col ref="remotepath"/>
  671. <col ref="ext"/>
  672. <col ref="fstrgstrid"/>
  673. <col ref="lastupdtrid"/>
  674. <col ref="filegrpno"/>
  675. <col ref="fileno"/>
  676. <script type="javascript" ev:event="ondblclick">
  677. <![CDATA[
  678. var fs;
  679. if (grd_attach.row <= 0) { return;}
  680. if (grd_attach.col <= 0) { return;}
  681. // 해당파일 다운로드 정보 셋팅
  682. var row = grd_attach.row;
  683. var localpath = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/localpath");
  684. fs = new ActiveXObject("Scripting.FileSystemObject");
  685. if (fs.FileExists(localpath) == false){
  686. var host = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/host");
  687. var port = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/port");
  688. var user = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/usr");
  689. var pass = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/passwd");
  690. var pathRemote = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/remotepath");
  691. var filename = model.getValue("/root/main/ftpfilelist/filelist["+row+"]/localpath");
  692. fFileExcute(host, port, user, pass, pathRemote, filename);
  693. } else {
  694. window.exec(localpath, "");
  695. }
  696. fs = null;
  697. //fFilePreview();
  698. ]]>
  699. </script>
  700. </datagrid>
  701. <line id="line9" class="line_2" style="x1:595px; y1:323px; x2:1192px; y2:323px; "/>
  702. <line id="line5" class="line_2" style="x1:595px; y1:205px; x2:1192px; y2:205px; "/>
  703. <line id="line4" class="line_2" style="x1:595px; y1:537px; x2:1192px; y2:537px; "/>
  704. <caption id="caption30" class="tit_2" style="left:595px; top:278px; width:126px; height:13px; vertical-align:middle; ">요청 내용</caption>
  705. <line id="line6" class="line_1" style="x1:595px; y1:121px; x2:1192px; y2:121px; "/>
  706. <line id="line8" class="line_3" style="x1:595px; y1:175px; x2:1192px; y2:175px; "/>
  707. <line id="line10" class="line_3" style="x1:595px; y1:208px; x2:1192px; y2:208px; "/>
  708. <line id="line11" class="line_3" style="x1:595px; y1:262px; x2:1192px; y2:262px; "/>
  709. <line id="line12" class="line_3" style="x1:595px; y1:295px; x2:1192px; y2:295px; "/>
  710. <line id="line13" class="line_3" style="x1:595px; y1:590px; x2:1192px; y2:590px; "/>
  711. <bool id="bool1" navindex="18" checkvalue="Y,N" ref="/root/main/data/itcagryn" style="left:600px; top:325px; width:15px; height:20px; "/>
  712. <bool id="bool2" navindex="19" checkvalue="Y,N" ref="/root/main/data/deptagryn" style="left:775px; top:325px; width:15px; height:20px; ">
  713. <script type="javascript" ev:event="onclick">
  714. <![CDATA[
  715. var tmp = model.getValue ("/root/main/data/deptagryn");
  716. if(tmp != "Y" ){
  717. modal("SSZRM00100", 1, event.screenX-20, event.screenY-250);
  718. var reqpart = getParameter("SSZRM00100_REQPART");
  719. model.makeValue("/root/main/data/deptagrlst", reqpart);
  720. model.refresh();
  721. } else {
  722. model.makeValue("/root/main/data/deptagrlst", "");
  723. model.refresh();
  724. }
  725. ]]>
  726. </script>
  727. </bool>
  728. <caption id="caption11" style="left:620px; top:325px; width:80px; height:20px; ">ITC협의여부</caption>
  729. <caption id="caption23" style="left:790px; top:325px; width:105px; height:20px; ">연계부서협의여부</caption>
  730. <caption id="caption27" style="left:710px; top:325px; width:50px; height:20px; ">응급여부</caption>
  731. <caption id="caption26" visibility="hidden" style="left:700px; top:275px; width:50px; height:20px; ">비공개</caption>
  732. <bool id="bool3" navindex="21" visibility="hidden" checkvalue="Y,N" ref="/root/main/data/secuflag" style="left:680px; top:275px; width:15px; height:20px; "/>
  733. <bool id="bool4" navindex="20" checkvalue="Y,N" ref="/root/main/data/emgflag" style="left:695px; top:325px; width:15px; height:20px; "/>
  734. <caption id="caption28" class="tit_2" style="left:595px; top:130px; width:126px; height:13px; vertical-align:middle; ">등록자 정보</caption>
  735. <caption id="caption29" class="tit_2" style="left:595px; top:190px; width:126px; height:13px; vertical-align:middle; ">요청자 정보</caption>
  736. <line id="line3" class="line_2" style="x1:595px; y1:372px; x2:1192px; y2:372px; "/>
  737. <line id="line15" class="line_2" style="x1:595px; y1:345px; x2:1192px; y2:345px; "/>
  738. <switch id="switch1" style="left:590px; top:625px; width:602px; height:146px; ">
  739. <case id="rpt" selected="true">
  740. <caption id="caption31" class="tit_2" style="left:5px; top:3px; width:126px; height:13px; vertical-align:middle; ">처리 내용</caption>
  741. <line id="line14" class="line_3" style="x1:3px; y1:20px; x2:595px; y2:20px; "/>
  742. <textarea id="tar_rpttxt" ref="/root/main/data/rpttxt" editable="false" style="left:303px; top:43px; width:290px; height:95px; "/>
  743. <caption id="caption17" class="cell_1" style="left:5px; top:23px; width:295px; height:18px; vertical-align:middle; ">처리내용 1차 답변</caption>
  744. <caption id="caption18" class="cell_1" style="left:303px; top:23px; width:290px; height:18px; vertical-align:middle; ">처리내용</caption>
  745. <textarea id="tar_fstrpttxt" ref="/root/main/data/fstrpttxt" editable="false" style="left:5px; top:43px; width:295px; height:95px; "/>
  746. </case>
  747. <case id="confirm" style="left:0px; top:0px; width:940px; height:769px; ">
  748. <caption id="caption37" class="cell_1" style="left:305px; top:23px; width:285px; height:18px; vertical-align:middle; ">확인내용 :</caption>
  749. <caption id="caption36" class="cell_1" style="left:5px; top:23px; width:295px; height:18px; vertical-align:middle; ">확인내용 :</caption>
  750. <caption id="caption32" class="tit_2" style="left:5px; top:3px; width:126px; height:13px; vertical-align:middle; ">대표ITC</caption>
  751. <caption id="caption33" class="tit_2" style="left:305px; top:3px; width:165px; height:13px; vertical-align:middle; ">변경관리실무협의체</caption>
  752. <caption id="caption34" ref="/root/main/data/itcconfnm" style="left:70px; top:24px; width:220px; height:15px; "/>
  753. <line id="line16" class="line_3" style="x1:5px; y1:20px; x2:592px; y2:20px; "/>
  754. <caption id="caption35" ref="/root/main/data/infomngconfnm" style="left:375px; top:24px; width:227px; height:15px; "/>
  755. <textarea id="textarea1" ref="/root/main/data/infomngconftxt" editable="true" style="left:305px; top:43px; width:285px; height:95px; "/>
  756. <textarea id="textarea2" ref="/root/main/data/itcconftxt" editable="true" style="left:5px; top:43px; width:295px; height:95px; "/>
  757. </case>
  758. </switch>
  759. <button id="btn_confirm" class="btn_sw" group="tab" style="left:670px; top:603px; width:80px; height:22px; ">
  760. <caption>확인내용</caption>
  761. <toggle case="confirm" ev:event="onclick"/>
  762. </button>
  763. <button id="btn_expan" class="btn2_letter2" style="left:540px; top:100px; width:42px; height:19px; ">
  764. <caption>
  765. <![CDATA[>>]]>
  766. </caption>
  767. <script type="javascript" ev:event="DOMActivate">
  768. <![CDATA[
  769. //alert(grd_reqmngtlist.attribute ( "width" ));
  770. var tmp = btn_expan.text
  771. //alert(tmp);
  772. if ( tmp == ">>"){
  773. grd_reqmngtlist.attribute ( "width" ) = 1190;
  774. btn_expan.text = "<<";
  775. } else {
  776. grd_reqmngtlist.attribute ( "width" ) = 585;
  777. btn_expan.text = ">>"
  778. }
  779. model.refresh();
  780. ]]>
  781. </script>
  782. </button>
  783. <button id="btn_rpt" class="btn_sw" group="tab" selected="true" style="left:590px; top:603px; width:80px; height:22px; ">
  784. <caption>처리내용</caption>
  785. <script type="javascript" ev:event="DOMActivate">
  786. <![CDATA[
  787. switch1.selectedIndex = 0
  788. ]]>
  789. </script>
  790. </button>
  791. <caption id="caption38" class="cell_1" style="left:899px; top:297px; width:91px; height:23px; vertical-align:middle; ">기존요청번호</caption>
  792. <input id="ipt_preprcs" ref="/root/main/data/preprcscd" class="input_essential" navindex="16" style="left:994px; top:300px; width:60px; height:19px; "/>
  793. <line id="line17" class="line_2" style="x1:595px; y1:564px; x2:1192px; y2:564px; "/>
  794. <caption id="caption39" class="cell_1" style="left:595px; top:566px; width:61px; height:23px; vertical-align:middle; ">적용병원</caption>
  795. <input id="input3" ref="/root/main/data/appinst" class="input_essential" navindex="25" editable="false" imemode="hangul" maxlength="85" style="left:660px; top:568px; width:530px; height:19px; ">
  796. <script type="javascript" ev:event="DOMFocusIn">
  797. <![CDATA[
  798. ]]>
  799. </script>
  800. <script type="javascript" ev:event="onclick">
  801. <![CDATA[
  802. modal("SSZRM00101", 1, event.screenX-20, event.screenY-250);
  803. var appinst = getParameter("SSZRM00101_APPINSTCD");
  804. model.setValue("/root/main/data/appinst", appinst);
  805. model.refresh();
  806. ]]>
  807. </script>
  808. </input>
  809. <caption id="caption41" class="cell_1" style="left:1040px; top:348px; width:65px; height:23px; vertical-align:middle; ">우선순위</caption>
  810. <select1 id="combo8" ref="/root/main/data/priocd" class="combo_essential" disabled="true" appearance="minimal" style="left:1110px; top:350px; width:80px; height:19px; ">
  811. <choices>
  812. <itemset nodeset="/root/init/list/I0015">
  813. <label ref="cdnm"/>
  814. <value ref="cdid"/>
  815. </itemset>
  816. </choices>
  817. </select1>
  818. <caption id="caption44" class="cell_1" style="left:900px; top:321px; width:91px; height:23px; vertical-align:middle; ">협의연계부서</caption>
  819. <input id="input6" ref="/root/main/data/deptagrlst" class="input_essential" navindex="24" editable="false" imemode="hangul" style="left:995px; top:325px; width:195px; height:19px; "/>
  820. <input id="input7" ref="/root/main/data/projcd" class="input_essential" navindex="16" style="left:1111px; top:597px; width:79px; height:19px; "/>
  821. <caption id="caption45" class="cell_1" style="left:1038px; top:595px; width:70px; height:23px; vertical-align:middle; ">완료예정일</caption>
  822. <datagrid id="grd_reqmngtlist" nodeset="/root/main/list/reqmngt" autoresize="false" caption="번호^우선순위^발의기관^요청부서^요청자^상태^구분^요청일자^전화번호^요청제목^ITC^정보관리^요청내용^ITC협의^연계부서협의^업무범위^중요도^비밀여부^응급여부^1차답변내용^최종전달사항^최초등록자^최초등록일^최종수정자^최종수정일^완료예정일^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption18^caption19^caption20" colsep="^" colwidth="39, 61, 70, 70, 53, 45, 39, 77, 52, 164, 42, 59, 362, 65, 83, 132, 133, 57, 60, 116, 122, 70, 115, 100, 100, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sort" frozencols="11" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="29" rowsep="|" tooltip="true" style="left:0px; top:130px; width:585px; height:640px; text-align:center; ">
  823. <col ref="prcscd" style="text-align:right; "/>
  824. <col ref="prionm" style="text-align:center; "/>
  825. <col ref="instnm" style="text-align:left; "/>
  826. <col ref="reqdeptnm" style="text-align:left; "/>
  827. <col ref="requsernm" style="text-align:left; "/>
  828. <col ref="statnm" style="text-align:center; "/>
  829. <col ref="reqnm" style="text-align:center; "/>
  830. <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  831. <col ref="telno" visibility="hidden"/>
  832. <col ref="prcstitl" style="text-align:left; "/>
  833. <col checkvalue="Y,N" disabled="true" ref="itcconf" style="text-align:center; "/>
  834. <col checkvalue="Y,N" disabled="true" ref="infomngconf" style="text-align:center; "/>
  835. <col ref="prcsmsg" style="text-align:left; "/>
  836. <col ref="itcagryn" style="text-align:center; "/>
  837. <col ref="deptagryn" style="text-align:center; "/>
  838. <col ref="reqpart" style="text-align:left; "/>
  839. <col ref="impnm" style="text-align:left; "/>
  840. <col ref="secuflag" style="text-align:center; "/>
  841. <col ref="emgflag" style="text-align:center; "/>
  842. <col ref="fstrpttxt" style="text-align:left; "/>
  843. <col ref="rpttxt" style="text-align:left; "/>
  844. <col ref="fstrnm" style="left:2096px; top:23px; width:70px; height:23px; text-align:left; "/>
  845. <col ref="fstrdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  846. <col ref="lastnm" style="text-align:left; "/>
  847. <col ref="lastdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  848. <col ref="projcd" style="text-align:center; "/>
  849. <col ref="filegrpno" visibility="hidden" style="text-align:left; "/>
  850. <col ref="tftno" visibility="hidden" style="text-align:left; "/>
  851. <col ref="statcd" visibility="hidden" style="text-align:left; "/>
  852. <col ref="userid" visibility="hidden" style="text-align:left; "/>
  853. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  854. <col ref="reqgubun" visibility="hidden" style="text-align:left; "/>
  855. <col ref="updateuserid" visibility="hidden" style="text-align:left; "/>
  856. <col ref="posdeptnm" visibility="hidden" style="text-align:left; "/>
  857. <col ref="posinstnm" visibility="hidden" style="text-align:left; "/>
  858. <col ref="attach" visibility="hidden" style="text-align:left; "/>
  859. <col ref="itcconftxt" visibility="hidden" style="text-align:left; "/>
  860. <col ref="infomngconftxt" visibility="hidden" style="text-align:left; "/>
  861. <col ref="itcconfnm" visibility="hidden" style="text-align:left; "/>
  862. <col ref="infomngconfnm" visibility="hidden" style="text-align:left; "/>
  863. <col ref="preprcscd" visibility="hidden" style="text-align:left; "/>
  864. <col ref="appinst" visibility="hidden" style="text-align:left; "/>
  865. <col ref="priocd" visibility="hidden" style="text-align:left; "/>
  866. <col ref="impcd" visibility="hidden" style="text-align:left; "/>
  867. <col ref="deptagrlst" visibility="hidden" style="text-align:left; "/>
  868. <script type="javascript" ev:event="ondblclick">
  869. <![CDATA[
  870. // 클릭한 요청번호로 db select한다.
  871. var row = grd_reqmngtlist.row;
  872. var prcscd = grd_reqmngtlist.valueMatrix(row, grd_reqmngtlist.colRef("prcscd"));
  873. if (row <= 0) { return;}
  874. if (grd_reqmngtlist.col < 0 ) {return;}
  875. // 수정할수 있는 상태로 초기화
  876. fUpdateMode();
  877. /*
  878. // select 하기전에 그냥 copy로 처리
  879. model.makeValue("/root/send/prcscd", prcscd);
  880. submit("TRZRM00103");
  881. */
  882. model.copyNode ("/root/main/data","/root/main/list/reqmngt["+row+"]");
  883. model.setValue("/root/main/data/prcscd", prcscd);
  884. model.copyNode ("/root/send/data","/root/main/data");
  885. //각 첨부파일 초기화
  886. model.makeValue("/root/send/filegrpno", "");
  887. model.makeValue("/root/send/itc_filegrpno", "");
  888. model.makeValue("/root/send/infomng_filegrpno", "");
  889. // 첨부파일 있으면 목록 읽어오기
  890. var tmpGrpNo = model.getValue("/root/main/data/filegrpno");
  891. if (tmpGrpNo > 0 ) {
  892. model.makeValue("/root/send/filegrpno", tmpGrpNo);
  893. submit("TRZRM00104");
  894. }
  895. var tmp = btn_expan.text
  896. //alert(tmp);
  897. if ( tmp == "<<"){
  898. grd_reqmngtlist.attribute ( "width" ) = 585;
  899. btn_expan.text = ">>"
  900. }
  901. model.refresh();
  902. ]]>
  903. </script>
  904. <script type="javascript" ev:event="onaftersort">
  905. <![CDATA[
  906. grd_reqmngtlist.gridToInstance();
  907. ]]>
  908. </script>
  909. </datagrid>
  910. </group>
  911. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">요구사항등록 및 조회</caption>
  912. </xhtml:body>
  913. </xhtml:html>