SMRSC20700_외부출처전산장비관리.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>외부출처전산장비관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <reqeqmt>
  11. <reqeqmtlist/>
  12. <reqeqinfolist>
  13. <instcd/>
  14. <reqdd/>
  15. <reqseqno/>
  16. <reqflag/>
  17. <mngtdeptcd/>
  18. <mngtdeptnm/>
  19. <usernm/>
  20. <usepose/>
  21. <hp/>
  22. <tel/>
  23. <email/>
  24. <eqtype/>
  25. <status/>
  26. <aprvpsnid/>
  27. <aprvpsnnm/>
  28. <reqid/>
  29. <reqnm/>
  30. </reqeqinfolist>
  31. <reqmseqlist/>
  32. </reqeqmt>
  33. </main>
  34. <send>
  35. <search>
  36. <instcd/>
  37. <reqid/>
  38. <reqnm/>
  39. <reqdd/>
  40. <reqflag>Y</reqflag>
  41. <emplno/>
  42. <mngtdeptcd/>
  43. <reqseqno/>
  44. </search>
  45. <save>
  46. <reqeqinfolist>
  47. </reqeqinfolist>
  48. <reqeqmtlist/>
  49. </save>
  50. </send>
  51. <hidden/>
  52. <temp>
  53. <userinfo/>
  54. <authinfo/>
  55. </temp>
  56. <init/>
  57. <combo>
  58. <dcusrslt/>
  59. <purcprcsstat/>
  60. </combo>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fInitialize();
  66. ]]>
  67. </script>
  68. <submission id="TRRSC20701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/reqeqmt"/>
  69. <submission id="TRRSC20702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/reqeqmt"/>
  70. <submission id="TXRSC20701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
  71. <submission id="TXRSC20702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
  72. <submission id="TXRSC20703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
  73. <submission id="TRRSD04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp/authinfo"/>
  74. </model>
  75. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  78. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  81. <script type="javascript">
  82. <![CDATA[
  83. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  84. function fInitialize()
  85. {
  86. misfGridInit(grd_reqeqmtlist);
  87. model.resetInstanceNode("/root/send");
  88. model.resetInstanceNode("/root/main/reqeqmt/reqeqmtlist");
  89. misfComboComCdList("Z0007",cmb_instcd);
  90. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  91. model.setValue("/root/send/search/reqdd", getCurrentDate());
  92. model.setValue("/root/send/search/reqflag", "Y");
  93. model.setValue("/root/main/reqeqmt/reqeqinfolist/reqdd", getCurrentDate());
  94. model.setValue("/root/main/reqeqmt/reqeqinfolist/reqflag", "Y");
  95. model.setValue("/root/send/search/mngtdeptcd", getUserInfo("dutplcecd") );
  96. model.setValue("/root/main/reqeqmt/reqeqinfolist/mngtdeptcd",getUserInfo("dutplcecd"));
  97. model.setValue("/root/main/reqeqmt/reqeqinfolist/mngtdeptnm",getUserInfo("dutplcenm"));
  98. model.setValue("/root/main/reqeqmt/reqeqinfolist/reqid", getUserInfo("userid"));
  99. model.setValue("/root/main/reqeqmt/reqeqinfolist/reqnm", getUserInfo("usernm"));
  100. model.refresh();
  101. }
  102. function fInitialize2()
  103. {
  104. model.makeNode("/root/main/reqeqmt/reqeqinfolist/instcd");
  105. model.makeNode("/root/main/reqeqmt/reqeqinfolist/reqdd");
  106. model.makeNode("/root/main/reqeqmt/reqeqinfolist/reqseqno");
  107. model.makeNode("/root/main/reqeqmt/reqeqinfolist/reqflag");
  108. model.makeNode("/root/main/reqeqmt/reqeqinfolist/mngtdeptcd");
  109. model.makeNode("/root/main/reqeqmt/reqeqinfolist/mngtdeptnm");
  110. model.makeNode("/root/main/reqeqmt/reqeqinfolist/usernm");
  111. model.makeNode("/root/main/reqeqmt/reqeqinfolist/usepose");
  112. model.makeNode("/root/main/reqeqmt/reqeqinfolist/hp");
  113. model.makeNode("/root/main/reqeqmt/reqeqinfolist/tel");
  114. model.makeNode("/root/main/reqeqmt/reqeqinfolist/email");
  115. model.makeNode("/root/main/reqeqmt/reqeqinfolist/eqtype");
  116. model.makeNode("/root/main/reqeqmt/reqeqinfolist/status");
  117. model.makeNode("/root/main/reqeqmt/reqeqinfolist/aprvpsnid");
  118. model.makeNode("/root/main/reqeqmt/reqeqinfolist/aprvpsnnm");
  119. model.makeNode("/root/main/reqeqmt/reqeqinfolist/reqid");
  120. model.makeNode("/root/main/reqeqmt/reqeqinfolist/reqnm");
  121. }
  122. //========================================================================================
  123. // 전자결재
  124. //========================================================================================
  125. function fOutEquipmentval(){
  126. var aprvpsnid = model.getValue("/root/main/reqeqmt/reqeqinfolist/aprvpsnid")
  127. if (aprvpsnid == ""){
  128. messageBox("부서장 승인 후 ", "C003", "");
  129. }else{
  130. var instcd = model.getValue("/root/main/reqeqmt/reqeqinfolist/instcd");
  131. var reqdd = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqdd");
  132. var reqseqno = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqseqno");
  133. var pmaprefcol = "knuhdomain,instId";
  134. var pmaprefvalue = "KnuhMisOutEquipment,"+instcd+"-"+reqdd+"-"+reqseqno;
  135. misfMakeElctSanct("outEquipment",pmaprefcol,pmaprefvalue);
  136. }
  137. }
  138. ]]>
  139. </script>
  140. </xhtml:head>
  141. <xhtml:body guideline="1,-12;2,8;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  142. <group id="group1" style="left:0px; top:0px; width:1194px; height:14px; ">
  143. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:175px; height:13px; ">외부출처 전산장비 관리</caption>
  144. </group>
  145. <group id="group3" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  146. <line id="line12" class="line_2" style="x1:0px; y1:720px; x2:1195px; y2:720px; "/>
  147. <caption id="caption9" class="tit_2" style="left:280px; top:65px; width:100px; height:13px; ">신청정보</caption>
  148. <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
  149. <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
  150. <datagrid id="grd_reqeqmtlist" nodeset="/root/main/reqeqmt/reqeqmtlist" caption="순번^신청일^신청번호^동^층^사용위치(상세하게 기록)^사용기간(FROMDD)^사용기간(TODD)^IP Address" colsep="^" colwidth="40, 50, 50, 40, 40, 420, 130, 130, 168" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="13" style="left:280px; top:269px; width:910px; height:411px; ">
  151. <col ref="outeseqno" visibility="hidden" style="text-align:center; "/>
  152. <col ref="reqdd" visibility="hidden" style="text-align:center; "/>
  153. <col ref="reqseqno" visibility="hidden" style="text-align:center; "/>
  154. <col disabled="true" ref="dong" type="combo" style="text-align:center; ">
  155. <choices>
  156. <item>
  157. <label>1</label>
  158. <value>1</value>
  159. </item>
  160. <item>
  161. <label>2</label>
  162. <value>2</value>
  163. </item>
  164. <item>
  165. <label>3</label>
  166. <value>3</value>
  167. </item>
  168. <item>
  169. <label>5</label>
  170. <value>5</value>
  171. </item>
  172. <item>
  173. <label>6</label>
  174. <value>6</value>
  175. </item>
  176. <item>
  177. <label>7</label>
  178. <value>7</value>
  179. </item>
  180. </choices>
  181. </col>
  182. <col disabled="true" ref="floor" type="combo" style="text-align:center; ">
  183. <choices>
  184. <item>
  185. <label>1</label>
  186. <value>1</value>
  187. </item>
  188. <item>
  189. <label>2</label>
  190. <value>2</value>
  191. </item>
  192. <item>
  193. <label>3</label>
  194. <value>3</value>
  195. </item>
  196. <item>
  197. <label>5</label>
  198. <value>5</value>
  199. </item>
  200. <item>
  201. <label>6</label>
  202. <value>6</value>
  203. </item>
  204. <item>
  205. <label>7</label>
  206. <value>7</value>
  207. </item>
  208. <item>
  209. <label>8</label>
  210. <value>8</value>
  211. </item>
  212. <item>
  213. <label>9</label>
  214. <value>9</value>
  215. </item>
  216. <item>
  217. <label>10</label>
  218. <value>10</value>
  219. </item>
  220. </choices>
  221. </col>
  222. <col ref="usesite" type="input" style="text-align:center; "/>
  223. <col ref="fromdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  224. <col ref="todd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  225. <col ref="ipaddr" style="color:#ff0000; text-align:center; "/>
  226. <script type="javascript" ev:event="onaftersort">
  227. <![CDATA[
  228. grd_reqeqmtlist.gridToInstance();
  229. ]]>
  230. </script>
  231. </datagrid>
  232. <line id="line3" class="line_1" style="x1:280px; y1:255px; x2:1200px; y2:256px; "/>
  233. <!--</group>-->
  234. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:40px; "/>
  235. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1124px; top:19px; width:56px; height:22px; ">
  236. <caption>조회</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. submit("TRRSC20701");
  240. var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
  241. var resultNode = instance1.selectNodes("/root/main/reqeqmt/reqmseqlist");
  242. if(resultNode.length == 0){
  243. messageBox("조회내역이 없습니다.", "E999", "");
  244. fInitialize2();
  245. fInitialize();
  246. return;
  247. }
  248. // var reqseqno = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqseqno") ;
  249. // var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
  250. // if(reqseqno == ""){
  251. // messageBox("조회내역이 없습니다.", "E999", "");
  252. // fInitialize2();
  253. // fInitialize();
  254. // }
  255. model.setValue("/root/send/search/emplno", getUserInfo("userid") );
  256. submit("TRRSD04701"); //권한조회
  257. var cnt1 = model.getValue("/root/temp/authinfo/cnt");
  258. var userid1 =model.getValue("/root/send/search/emplno");
  259. if(cnt1 != 0 || userid1 == "99207"){
  260. btn_acpt.disabled = false ;
  261. }else{
  262. btn_acpt.disabled = true ;
  263. }
  264. if (reqflag == "N"){
  265. rdo_reqflag.disabled = true;
  266. btn_save.disabled = true;
  267. }else{
  268. rdo_reqflag.disabled = false;
  269. btn_save.disabled = false;
  270. }
  271. model.refresh();
  272. ]]>
  273. </script>
  274. </button>
  275. <caption id="caption4" class="search_name" style="left:10px; top:19px; width:117px; height:17px; ">기관코드 :</caption>
  276. <line id="line18" class="line_4" style="x1:1109px; y1:15px; x2:1109px; y2:45px; border-color:#ffe4bb; border-left-style:solid; "/>
  277. <input id="ipt_reqid" ref="/root/main/reqeqmt/reqeqinfolist/reqid" class="input_s_essential" disabled="true" navindex="4" style="left:373px; top:92px; width:80px; height:19px; ">
  278. <script type="javascript" ev:event="xforms-value-changed">
  279. <![CDATA[
  280. if(ipt_reqdeptcd_search.value.length == 0)
  281. opt_reqdeptnm_search.value = "";
  282. else
  283. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", cmb_instcd.value, "instcd" );
  284. ipt_reqdeptcd_search.refresh();
  285. opt_reqdeptnm_search.refresh();
  286. // 권한설정.
  287. //fSetReqAuth();
  288. ]]>
  289. </script>
  290. </input>
  291. <caption id="caption8" class="search_name" style="left:495px; top:20px; width:117px; height:17px; ">신청자 :</caption>
  292. <output id="opt_reqnm" ref="/root/main/reqeqmt/reqeqinfolist/reqnm" class="output_fix" appearance="output" style="left:455px; top:92px; width:123px; height:19px; "/>
  293. <caption id="caption14" class="search_name" style="left:280px; top:20px; width:117px; height:17px; ">신청일자 :</caption>
  294. <input id="ipt_reqdd" ref="/root/send/search/reqdd" class="input_s_essential" navindex="2" inputtype="date" style="left:365px; top:19px; width:95px; height:19px; ">
  295. <script type="javascript" ev:event="xforms-value-changed">
  296. <![CDATA[
  297. // var reqdd = model.getValue("/root/send/search/reqdd");
  298. // model.setValue("/root/main/reqeqmt/reqeqinfolist/reqdd",reqdd);
  299. // model.refresh();
  300. ]]>
  301. </script>
  302. </input>
  303. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:95px; top:20px; width:160px; height:19px; ">
  304. <choices>
  305. <itemset>
  306. <label/>
  307. <value/>
  308. </itemset>
  309. </choices>
  310. <script type="javascript" ev:event="xforms-value-changed">
  311. <![CDATA[
  312. opt_instcd.value = cmb_instcd.value;
  313. ]]>
  314. </script>
  315. </select1>
  316. <button id="btn_delrow" class="btn2_letter3" style="left:1140px; top:233px; width:53px; height:19px; ">
  317. <caption>행삭제</caption>
  318. <script type="javascript" ev:event="DOMActivate">
  319. <![CDATA[
  320. var req = messageBox("선택하신 자료에 관련된 모든 데이터가 삭제됩니다.", "Q003");
  321. if(req == 6){
  322. misfGridIUD(grd_reqeqmtlist, "D");
  323. }else{
  324. return;
  325. }
  326. ]]>
  327. </script>
  328. </button>
  329. <select1 id="rdo_reqflag" ref="/root/send/search/reqflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:860px; top:20px; width:115px; height:20px; border-style:none; ">
  330. <choices>
  331. <item>
  332. <label>신청</label>
  333. <value>Y</value>
  334. </item>
  335. <item>
  336. <label>해제</label>
  337. <value>N</value>
  338. </item>
  339. </choices>
  340. <script type="javascript" ev:event="xforms-value-changed">
  341. <![CDATA[
  342. var reqflag = model.getValue("/root/send/search/reqflag");
  343. model.setValue("/root/main/reqeqmt/reqeqinfolist/reqflag",reqflag);
  344. model.refresh();
  345. ]]>
  346. </script>
  347. </select1>
  348. <caption id="caption1" class="search_name" style="left:770px; top:20px; width:117px; height:17px; ">신청구분 :</caption>
  349. <shape id="rectangle1" appearance="rectangle" style="left:280px; top:80px; width:910px; height:150px; border-color:#99ccff; "/>
  350. <caption id="caption20" class="cell_1" style="left:290px; top:123px; width:80px; height:23px; text-align:center; vertical-align:middle; ">부 서 명</caption>
  351. <caption id="caption2" class="cell_1" style="left:290px; top:153px; width:80px; height:23px; text-align:center; vertical-align:middle; ">휴대전화</caption>
  352. <input id="input1" ref="/root/main/reqeqmt/reqeqinfolist/hp" disabled="false" navindex="4" style="left:373px; top:155px; width:120px; height:19px; "/>
  353. <caption id="caption3" class="cell_1" style="left:515px; top:153px; width:80px; height:23px; text-align:center; vertical-align:middle; ">원내전화</caption>
  354. <input id="ipt_tel" ref="/root/main/reqeqmt/reqeqinfolist/tel" class="input_s_essential" disabled="false" navindex="4" style="left:597px; top:155px; width:120px; height:19px; "/>
  355. <caption id="caption5" class="cell_1" style="left:730px; top:150px; width:80px; height:23px; text-align:center; vertical-align:middle; ">사 용 자</caption>
  356. <caption id="caption7" class="cell_1" style="left:730px; top:180px; width:80px; height:23px; text-align:center; vertical-align:middle; ">E-Mail</caption>
  357. <caption id="caption10" class="cell_1" style="left:730px; top:88px; width:80px; height:23px; text-align:center; vertical-align:middle; ">사용목적</caption>
  358. <caption id="caption11" class="cell_1" style="left:730px; top:118px; width:80px; height:23px; text-align:center; vertical-align:middle; ">장비종류</caption>
  359. <input id="ipt_usernm" ref="/root/main/reqeqmt/reqeqinfolist/usernm" class="input_s_essential" disabled="false" navindex="4" style="left:812px; top:152px; width:120px; height:19px; "/>
  360. <input id="input5" ref="/root/main/reqeqmt/reqeqinfolist/email" disabled="false" navindex="4" style="left:812px; top:182px; width:170px; height:19px; "/>
  361. <input id="ipt_usepose" ref="/root/main/reqeqmt/reqeqinfolist/usepose" class="input_s_essential" disabled="false" navindex="4" style="left:812px; top:90px; width:305px; height:19px; "/>
  362. <input id="ipt_eqtype" ref="/root/main/reqeqmt/reqeqinfolist/eqtype" class="input_s_essential" disabled="false" navindex="4" style="left:812px; top:120px; width:305px; height:19px; "/>
  363. <button id="button2" class="btn2_letter3" style="left:1085px; top:233px; width:53px; height:19px; ">
  364. <caption>행추가</caption>
  365. <script type="javascript" ev:event="DOMActivate">
  366. <![CDATA[
  367. misfGridIUD(grd_reqeqmtlist, "A");
  368. var outeseqno = grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row-1, grd_reqeqmtlist.colRef("outeseqno"));
  369. var reqseqno = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqseqno");
  370. grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("reqseqno")) = reqseqno;
  371. var reqdd = model.getValue("/root/send/search/reqdd");
  372. grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("reqdd")) = reqdd;
  373. if (outeseqno == "순번"){
  374. grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("outeseqno")) = "1";
  375. }else{
  376. grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("outeseqno")) = parseInt(outeseqno) + parseInt("1")
  377. }
  378. ]]>
  379. </script>
  380. </button>
  381. <output id="opt_mngtdeptnm" ref="/root/main/reqeqmt/reqeqinfolist/mngtdeptnm" class="output_fix" appearance="output" style="left:499px; top:125px; width:191px; height:19px; "/>
  382. <input id="ipt_mngtdeptcd" ref="/root/main/reqeqmt/reqeqinfolist/mngtdeptcd" class="input_s_essential" disabled="true" navindex="4" style="left:373px; top:125px; width:120px; height:19px; "/>
  383. <input id="input2" ref="/root/main/reqeqmt/reqeqinfolist/instcd" class="input_s_essential" disabled="false" navindex="4" visibility="hidden" style="left:635px; top:55px; width:45px; height:19px; "/>
  384. <input id="input8" ref="/root/main/reqeqmt/reqeqinfolist/reqdd" class="input_s_essential" disabled="false" navindex="4" visibility="hidden" style="left:685px; top:55px; width:105px; height:19px; "/>
  385. <input id="input9" ref="/root/main/reqeqmt/reqeqinfolist/reqseqno" class="input_s_essential" disabled="false" navindex="4" visibility="hidden" style="left:795px; top:55px; width:45px; height:19px; "/>
  386. <input id="input10" ref="/root/main/reqeqmt/reqeqinfolist/reqflag" class="input_s_essential" disabled="false" navindex="4" visibility="hidden" style="left:850px; top:55px; width:45px; height:19px; "/>
  387. <caption id="caption12" class="tit_2" style="left:280px; top:239px; width:120px; height:13px; ">사용정보 목록</caption>
  388. <button id="btn_acpt" class="btn2_letter6" disabled="true" navindex="17" style="left:290px; top:205px; width:86px; height:19px; ">
  389. <caption>부서장승인</caption>
  390. <script type="javascript" ev:event="DOMActivate">
  391. <![CDATA[
  392. var rtn = messageBox("승인 하시겠습니까?", "Q");
  393. if(rtn == "6") {
  394. model.setValue("/root/main/reqeqmt/reqeqinfolist/aprvpsnid", getUserInfo("userid") );
  395. model.setValue("/root/main/reqeqmt/reqeqinfolist/aprvpsnnm", getUserInfo("usernm"));
  396. model.copyNode("/root/send/save/reqeqinfolist","/root/main/reqeqmt/reqeqinfolist");
  397. if(submit("TXRSC20703")) {
  398. messageBox("승인이 완료되었습니다.", "E");
  399. btn_search.dispatch("DOMActivate");
  400. }
  401. }
  402. ]]>
  403. </script>
  404. </button>
  405. <caption id="caption13" class="cell_1" style="left:385px; top:204px; width:80px; height:23px; text-align:center; vertical-align:middle; background-color:#ccffff; ">부서승인자</caption>
  406. <input id="input3" ref="/root/main/reqeqmt/reqeqinfolist/aprvpsnid" disabled="false" navindex="4" style="left:470px; top:205px; width:70px; height:19px; "/>
  407. <input id="input4" ref="/root/main/reqeqmt/reqeqinfolist/aprvpsnnm" disabled="false" navindex="4" style="left:545px; top:205px; width:110px; height:19px; "/>
  408. <caption id="caption15" class="cell_1" style="left:290px; top:90px; width:80px; height:23px; text-align:center; vertical-align:middle; ">신 청 자</caption>
  409. <button id="btn_winpsn" class="icon_search" navindex="8" style="left:643px; top:22px; width:16px; height:16px; ">
  410. <caption/>
  411. <script type="javascript" ev:event="DOMActivate">
  412. <![CDATA[
  413. var recv_list = "reqid,reqnm";
  414. misfOpenPopUpList("12", ipt_emplno_search,"",recv_list); // 사용자 조회
  415. model.refresh();
  416. ]]>
  417. </script>
  418. </button>
  419. <input id="ipt_emplno_search" ref="/root/send/search/reqid" class="input_search" navindex="7" maxlength="10" appearance="input" style="left:570px; top:20px; width:68px; height:19px; ">
  420. <script type="javascript" ev:event="xforms-value-changed">
  421. <![CDATA[
  422. var recv_list = "reqid,reqnm";
  423. misfValidationCheck("01-1","", recv_list);
  424. model.refresh();
  425. ]]>
  426. </script>
  427. </input>
  428. <input id="ipt_emplnm_search" ref="/root/send/search/reqnm" class="output_fix" navindex="-1" editable="false" style="left:663px; top:20px; width:72px; height:19px; ">
  429. <script type="javascript" ev:event="xforms-value-changed">
  430. <![CDATA[
  431. var recv_list = "reqid,reqnm";
  432. misfValidationCheck("01-2","", recv_list);
  433. model.refresh();
  434. ]]>
  435. </script>
  436. </input>
  437. <button id="button4" class="btn5_letter9" style="left:975px; top:20px; width:119px; height:19px; ">
  438. <caption>부서신청리스트조회</caption>
  439. <script type="javascript" ev:event="DOMActivate">
  440. <![CDATA[
  441. var mngtdeptcd = getUserInfo("dutplcecd") ;
  442. model.setValue("/root/send/search/mngtdeptcd", mngtdeptcd)
  443. submit("TRRSC20702");
  444. var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
  445. var resultNode = instance1.selectNodes("/root/main/reqeqmt/reqmseqlist");
  446. if(resultNode.length == 0){
  447. messageBox("조회내역이 없습니다.", "E999", "");
  448. fInitialize2();
  449. fInitialize();
  450. return;
  451. }
  452. ]]>
  453. </script>
  454. </button>
  455. <caption id="caption16" class="tit_2" style="left:5px; top:65px; width:100px; height:15px; ">신청리스트</caption>
  456. <datagrid id="grd_reqmseqlist" nodeset="/root/main/reqeqmt/reqmseqlist" caption="순번^결재번호/상태^결재번호/상태^신청일^신청자ID^신청자^신청구분" colsep="^" colwidth="51, 55, 55, 77, 50, 50,50" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="13" style="left:5px; top:85px; width:265px; height:590px; ">
  457. <col ref="reqseqno" visibility="hidden" style="text-align:center; "/>
  458. <col ref="docregno" style="text-align:center; "/>
  459. <col ref="docstatus" style="text-align:center; "/>
  460. <col ref="reqdd" style="text-align:center; "/>
  461. <col ref="reqid" visibility="hidden" style="text-align:center; "/>
  462. <col ref="reqnm" style="text-align:center; "/>
  463. <col ref="reqflag" visibility="hidden" style="text-align:center; "/>
  464. <script type="javascript" ev:event="onaftersort">
  465. <![CDATA[
  466. grd_reqmseqlist.gridToInstance();
  467. ]]>
  468. </script>
  469. <script type="javascript" ev:event="ondblclick">
  470. <![CDATA[
  471. var idx = grd_reqmseqlist.Row;
  472. if( idx < 1) return ;
  473. model.setValue("/root/send/search/reqdd", model.getValue("/root/main/reqeqmt/reqmseqlist["+idx+"]/reqdd"));
  474. model.setValue("/root/send/search/reqid", model.getValue("/root/main/reqeqmt/reqmseqlist["+idx+"]/reqid"));
  475. model.setValue("/root/send/search/reqflag", model.getValue("/root/main/reqeqmt/reqmseqlist["+idx+"]/reqflag"));
  476. model.setValue("/root/send/search/reqseqno", model.getValue("/root/main/reqeqmt/reqmseqlist["+idx+"]/reqseqno"));
  477. submit("TRRSC20701");
  478. var reqseqno = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqseqno") ;
  479. var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
  480. model.setValue("/root/send/search/emplno", getUserInfo("userid") );
  481. submit("TRRSD04701"); //권한조회
  482. var cnt1 = model.getValue("/root/temp/authinfo/cnt");
  483. var userid1 =model.getValue("/root/send/search/emplno");
  484. if(cnt1 != 0 || userid1 == "99207"){
  485. btn_acpt.disabled = false ;
  486. }else{
  487. btn_acpt.disabled = true ;
  488. }
  489. if (reqflag == "N"){
  490. rdo_reqflag.disabled = true;
  491. btn_save.disabled = true;
  492. }else{
  493. rdo_reqflag.disabled = false;
  494. btn_save.disabled = false;
  495. }
  496. model.refresh();
  497. ]]>
  498. </script>
  499. </datagrid>
  500. </group>
  501. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  502. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  503. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  504. <caption>저장</caption>
  505. <script type="javascript" ev:event="DOMActivate">
  506. <![CDATA[
  507. if(ipt_mngtdeptcd.value == ""){
  508. messageBox("부서코드는 필수 입력입니다.", "E999", "");
  509. model.setFocus("ipt_mngtdeptcd");
  510. return;
  511. }
  512. if(opt_mngtdeptnm.value == ""){
  513. messageBox("부서명는 필수 입력입니다.", "E999", "");
  514. return;
  515. }
  516. if(ipt_usernm.value == ""){
  517. messageBox("사용자는 필수 입력입니다.", "E999", "");
  518. model.setFocus("ipt_usernm");
  519. return;
  520. }
  521. if(ipt_usepose.value == ""){
  522. messageBox("사용목적은 필수 입력입니다.", "E999", "");
  523. model.setFocus("ipt_usepose");
  524. return;
  525. }
  526. if(ipt_tel.value == ""){
  527. messageBox("원내전화는 필수 입력입니다.", "E999", "");
  528. model.setFocus("ipt_tel");
  529. return;
  530. }
  531. if(ipt_eqtype.value == ""){
  532. messageBox("장비종류는 필수 입력입니다.", "E999", "");
  533. model.setFocus("ipt_eqtype");
  534. return;
  535. }
  536. if(grd_reqeqmtlist.rows == "1"){
  537. messageBox("사용정보는 하나이상 필수 입력입니다.", "E999", "");
  538. return;
  539. }
  540. var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
  541. var aprvpsnid = model.getValue("/root/main/reqeqmt/reqeqinfolist/aprvpsnid");
  542. if(reqflag == "Y" && aprvpsnid != ""){
  543. messageBox("부서승인 완료된 내역으로 수정 할 수", "I004", "");
  544. }else{
  545. model.setValue("/root/send/search/reqdd", getCurrentDate());
  546. var reqseqno = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqseqno");
  547. if(reqseqno == ""){
  548. model.setValue("/root/main/reqeqmt/reqeqinfolist/status","i");
  549. }else{
  550. model.setValue("/root/main/reqeqmt/reqeqinfolist/status","u");
  551. }
  552. model.copyNode("/root/send/save/reqeqinfolist","/root/main/reqeqmt/reqeqinfolist");
  553. if(grd_reqeqmtlist.rows != "1") model.setValue("/root/send/save/reqeqmtlist" ,grd_reqeqmtlist.getUpdateData());
  554. // alert(model.getValue("/root/send/save/reqeqinfolist/status"));
  555. var reqflag = model.getValue("/root/main/reqeqmt/reqeqinfolist/reqflag");
  556. if(reqflag =="N"){
  557. var ret = messageBox("해제신청을", "Q003");
  558. if ( ret == "6" ) {
  559. submit("TXRSC20702");
  560. btn_search.dispatch("DOMActivate");
  561. messageBox(" ", "I002", "");
  562. }
  563. }else{
  564. if( submit("TXRSC20701") ) {
  565. btn_search.dispatch("DOMActivate");
  566. messageBox(" ", "I001", "");
  567. }
  568. }
  569. }
  570. ]]>
  571. </script>
  572. </button>
  573. <button id="btn_reqapp" class="btn6_letter4" visibility="visible" style="left:2px; top:3px; width:80px; height:22px; ">
  574. <caption>전자결재</caption>
  575. <script type="javascript" ev:event="DOMActivate">
  576. <![CDATA[
  577. fOutEquipmentval();
  578. ]]>
  579. </script>
  580. </button>
  581. <button id="button1" class="btn4_letter3" style="left:1068px; top:3px; width:68px; height:22px; ">
  582. <caption>초기화</caption>
  583. <script type="javascript" ev:event="DOMActivate">
  584. <![CDATA[
  585. model.resetInstanceNode("/root/send");
  586. model.resetInstanceNode("/root/main/reqeqmt/reqeqmtlist");
  587. model.resetInstanceNode("/root/main/reqeqmt/reqeqinfolist");
  588. fInitialize2();
  589. fInitialize();
  590. rdo_reqflag.disabled = false;
  591. btn_save.disabled = false;
  592. btn_acpt.disabled = true;
  593. model.refresh();
  594. ]]>
  595. </script>
  596. </button>
  597. </group>
  598. </xhtml:body>
  599. </xhtml:html>