SMRSC20400_장비신청접수(경북대).xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.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. <reqeqmt>
  11. <reqeqmtlist/>
  12. </reqeqmt>
  13. </main>
  14. <send>
  15. <search>
  16. <instcd/>
  17. <reqdeptcd/>
  18. <reqdeptnm/>
  19. <reqfrmdd/>
  20. <reqtodd/>
  21. <prcsstat/>
  22. <emplno/>
  23. <flag/>
  24. </search>
  25. <save>
  26. <reqeqmtlist/>
  27. </save>
  28. </send>
  29. <hidden/>
  30. <temp>
  31. </temp>
  32. <init/>
  33. <combo>
  34. <dcusrslt/>
  35. <purcprcsstat/>
  36. </combo>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. fInitialize();
  42. ]]>
  43. </script>
  44. <submission id="TRRSC20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/reqeqmt"/>
  45. <submission id="TXRSC20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  46. </model>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  49. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  50. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  53. <script type="javascript">
  54. <![CDATA[
  55. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  56. function fInitialize()
  57. {
  58. misfGridInit(grd_reqeqmtlist);
  59. model.resetInstanceNode("/root/send");
  60. model.resetInstanceNode("/root/main");
  61. misfComboComCdList("Z0007",cmb_instcd);
  62. misfComboComCdList("030R0025",cmb_prcsstat_search);
  63. misfGridComboComCdList("030R0026",grd_reqeqmtlist,"dcusrslt");
  64. misfComboCopyItemSet(cmb_prcsstat_search, "", grd_reqeqmtlist, "prcsstat");
  65. addComboItem( "cmb_prcsstat_search", "전체", "", "above");
  66. model.setValue(cmb_prcsstat_search.attribute("ref"), "");
  67. // misfGridComboComCdList("030R0025",grd_reqeqmtlist,"prcsstat");
  68. // misfGridComboComCdList("030R0026",grd_reqeqmtlist,"dcusrslt");
  69. // misfGridComboComCdList("030R0027",grd_reqeqmtlist,"purcprcsstat");
  70. //misfComboComCdListMulti("030R0025","cmb_prcsstat_search");
  71. // 전체
  72. //rszfComboAppendBlankChild("cmb_prcsstat_search");
  73. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  74. // model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  75. // model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
  76. misfMsterDetailSet(grd_reqeqmtlist ,null, "TRRSC20101", "Y","free");
  77. var emplno = getUserInfo("userid")
  78. if(emplno == "MIS" || emplno == "97089"){
  79. }else if(emplno == "08190" || emplno == "10326"){
  80. model.setValue("/root/send/search/flag","08190");
  81. }else if(emplno == "95034"){
  82. model.setValue("/root/send/search/flag","95034");
  83. }else if(emplno == "96008"){
  84. model.setValue("/root/send/search/flag","96008");
  85. }else{
  86. model.setValue("/root/send/search/emplno", getUserInfo("userid"));
  87. ipt_reqdeptcd_search.disabled = true;
  88. button5.disabled = true;
  89. opt_reqdeptnm_search.disabled = true;
  90. }
  91. model.setValue("/root/send/search/reqfrmdd", getCurrentDate().substr(0,4)+"0101");
  92. model.setValue("/root/send/search/reqtodd", getCurrentDate().substr(0,8));
  93. model.setValue("/root/send/search/reqdeptcd", getUserInfo("dutplcecd"));
  94. model.setValue("/root/send/search/reqdeptnm", getUserInfo("dutplcenm"));
  95. model.setValue("/root/send/search/prcsstat","2");
  96. model.refresh();
  97. }
  98. ]]>
  99. </script>
  100. </xhtml:head>
  101. <xhtml:body guideline="1,-12;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  102. <group id="group1" style="left:0px; top:0px; width:1194px; height:14px; ">
  103. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">장비신청 접수</caption>
  104. </group>
  105. <group id="group3" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  106. <line id="line12" class="line_2" style="x1:0px; y1:531px; x2:1195px; y2:531px; "/>
  107. <caption id="caption9" class="tit_2" style="left:5px; top:79px; width:100px; height:14px; ">장비신청 목록</caption>
  108. <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
  109. <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
  110. <datagrid id="grd_reqeqmtlist" nodeset="/root/main/reqeqmt/reqeqmtlist" caption="접수^소위원회여부^진행상태^신청번호^신청자^장비명^설치장소^신청수량^단위^원화총금액^외화총금액^심의결과^심의비고^구매기준일자^구매진행상태^구매비고^심의차수^심의일자" colsep="^" colwidth="60, 78, 140, 95, 60, 150, 130, 55, 70, 80, 80, 100, 100, 100, 100, 100, 65, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="13" style="left:0px; top:99px; width:1195px; height:636px; ">
  111. <col checkvalue="Y,N" ref="acptflag" type="checkbox"/>
  112. <col checkvalue="Y,N" disabled="true" ref="commissionyn" type="checkbox"/>
  113. <col disabled="true" ref="prcsstat" type="combo" style="text-align:center; ">
  114. <choices>
  115. <itemset>
  116. <label/>
  117. <value/>
  118. </itemset>
  119. </choices>
  120. </col>
  121. <col ref="reqno" style="text-align:center; "/>
  122. <col ref="reqpsnnm" style="text-align:center; "/>
  123. <col ref="goodflagengnm"/>
  124. <col ref="installplcenm"/>
  125. <col ref="appqty" style="text-align:center; "/>
  126. <col ref="bugtforgnamtunitnm" style="text-align:center; "/>
  127. <col ref="bugtwncurncy" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  128. <col ref="bugtforgnamt" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  129. <col disabled="true" ref="dcusrslt" type="combo" style="text-align:center; ">
  130. <choices>
  131. <itemset>
  132. <label/>
  133. <value/>
  134. </itemset>
  135. </choices>
  136. </col>
  137. <col disabled="true" ref="dcuscmt" type="input"/>
  138. <col ref="badd" format="yyyy-mm-dd" style="text-align:center; "/>
  139. <col ref="purcprcsstat" style="text-align:center; "/>
  140. <col ref="purcprcscmt"/>
  141. <col ref="dcusno" type="input" style="text-align:center; "/>
  142. <col ref="dcusdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  143. <col ref="instcd" visibility="hidden"/>
  144. <col ref="reqdd" visibility="hidden"/>
  145. <col ref="reqseqno" visibility="hidden"/>
  146. <col ref="goodflaghngnm" visibility="hidden"/>
  147. <col ref="workflag" visibility="hidden"/>
  148. <col ref="workflagnm" visibility="hidden"/>
  149. <col ref="welfcd" visibility="hidden"/>
  150. <col ref="reqdeptcd" visibility="hidden"/>
  151. <col ref="reqdeptnm" visibility="hidden"/>
  152. <col ref="mngtdeptcd" visibility="hidden"/>
  153. <col ref="mngtdeptnm" visibility="hidden"/>
  154. <col ref="installplcecd" visibility="hidden"/>
  155. <col ref="usemthd" visibility="hidden"/>
  156. <col ref="usemthdnm" visibility="hidden"/>
  157. <col ref="fcstuseyearno" visibility="hidden"/>
  158. <col ref="goodunitcost" visibility="hidden"/>
  159. <col ref="bugtyy" visibility="hidden"/>
  160. <col ref="bugtforgnamtunit" visibility="hidden"/>
  161. <col ref="chgrate" visibility="hidden"/>
  162. <col ref="addmnpwrdr" visibility="hidden"/>
  163. <col ref="addmnpwrnurs" visibility="hidden"/>
  164. <col ref="addmnpwrengr" visibility="hidden"/>
  165. <col ref="addmnpwretc" visibility="hidden"/>
  166. <col ref="installspcepossnyn" visibility="hidden"/>
  167. <col ref="calcscorgenryn" visibility="hidden"/>
  168. <col ref="usgepurcneed" visibility="hidden"/>
  169. <col ref="reqpsnid" visibility="hidden"/>
  170. <col ref="possesdocucd" visibility="hidden"/>
  171. <col ref="comusedept" visibility="hidden"/>
  172. <col ref="smkindeqyn" visibility="hidden"/>
  173. <col ref="goodflag" visibility="hidden"/>
  174. <col ref="rowstatus" visibility="hidden"/>
  175. <col ref="adyn" visibility="hidden"/>
  176. <col ref="deptaprvyn" visibility="hidden"/>
  177. <script type="javascript" ev:event="onrowchanged">
  178. <![CDATA[
  179. ]]>
  180. </script>
  181. <script type="javascript" ev:event="onaftersort">
  182. <![CDATA[
  183. grd_reqeqmtlist.gridToInstance();
  184. ]]>
  185. </script>
  186. <script type="javascript" ev:event="ondblclick">
  187. <![CDATA[
  188. if(grd_reqeqmtlist.rows == "1"){
  189. return;
  190. }
  191. model.setValue("/root/main/reqeqmt/reqeqmtlist[" + grd_reqeqmtlist.row + "]/rowstatus","disabled");
  192. window.load("SMRSC20200_장비신청상세내역(경북대).xrw", "modal","", "left:300; top:300;", "/root/main/reqeqmt/reqeqmtlist[" + grd_reqeqmtlist.row + "]","/root/main/reqeqmtlist");
  193. model.refresh();
  194. ]]>
  195. </script>
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. if(grd_reqeqmtlist.colAttribute(grd_reqeqmtlist.col,"ref") == "acptflag"){
  199. var row = grd_reqeqmtlist.row;
  200. if(grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("acptflag")) == "Y"){
  201. if(grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("deptaprvyn")) == "N"){
  202. messageBox("부서장 승인이 되지 않은 자료입니다.", "E999", "");
  203. grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("deptaprvyn")) = "N"
  204. grd_reqeqmtlist.rowStatus(row) = 0;
  205. }
  206. grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("prcsstat")) = "3";
  207. grd_reqeqmtlist.cellAttribute("disabled", grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("dcusrslt"), grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("dcuscmt")) = "false";
  208. grd_reqeqmtlist.refresh();
  209. }else if(grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("acptflag")) == "N"){
  210. model.setValue("/root/main/reqeqmt/reqeqmtlist[" + row + "]/dcusrslt","");
  211. model.setValue("/root/main/reqeqmt/reqeqmtlist[" + row + "]/dcuscmt","");
  212. grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("prcsstat")) = "2";
  213. grd_reqeqmtlist.cellAttribute("disabled", grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("dcusrslt"), grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("dcuscmt")) = "true";
  214. grd_reqeqmtlist.refresh();
  215. }
  216. }
  217. ]]>
  218. </script>
  219. </datagrid>
  220. <line id="line3" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:96px; "/>
  221. <!--</group>-->
  222. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; "/>
  223. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1124px; top:29px; width:56px; height:22px; ">
  224. <caption>조회</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. misfGridInit(grd_reqeqmtlist);
  228. misfMsterDetailRetrieve();
  229. for(i = 1 ; i < grd_reqeqmtlist.rows ; i++){
  230. if(model.getValue("/root/main/reqeqmt/reqeqmtlist[" + i + "]/acptflag") == "Y"){
  231. grd_reqeqmtlist.cellAttribute("disabled", i, grd_reqeqmtlist.colRef("dcusrslt"), i, grd_reqeqmtlist.colRef("dcuscmt")) = "false";
  232. }
  233. if(model.getValue("/root/main/reqeqmt/reqeqmtlist[" + i + "]/instcd") == "032"){
  234. grd_reqeqmtlist.cellAttribute("disabled", i, grd_reqeqmtlist.colRef("commissionyn")) = "false";
  235. }
  236. }
  237. grd_reqeqmtlist.refresh();
  238. ]]>
  239. </script>
  240. </button>
  241. <button id="button5" class="icon_search" disabled="false" navindex="5" style="left:548px; top:21px; width:16px; height:16px; ">
  242. <caption/>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. var recv_list = "reqdeptcd,reqdeptnm";
  246. misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, cmb_instcd.value, "instcd") ;
  247. model.refresh();
  248. // 권한설정.
  249. //fSetReqAuth();
  250. ]]>
  251. </script>
  252. </button>
  253. <caption id="caption4" class="search_name" style="left:15px; top:19px; width:117px; height:17px; ">기관코드 :</caption>
  254. <line id="line18" class="line_4" style="x1:1109px; y1:20px; x2:1109px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
  255. <input id="ipt_reqdeptcd_search" ref="/root/send/search/reqdeptcd" class="input_s_essential" disabled="false" navindex="4" style="left:425px; top:20px; width:120px; height:19px; ">
  256. <script type="javascript" ev:event="xforms-value-changed">
  257. <![CDATA[
  258. if(ipt_reqdeptcd_search.value.length == 0)
  259. opt_reqdeptnm_search.value = "";
  260. else
  261. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd" );
  262. model.refresh();
  263. // 권한설정.
  264. //fSetReqAuth();
  265. ]]>
  266. </script>
  267. </input>
  268. <caption id="caption8" class="search_name" style="left:340px; top:20px; width:117px; height:17px; ">신청부서 :</caption>
  269. <output id="opt_reqdeptnm_search" ref="/root/send/search/reqdeptnm" class="output_fix" appearance="output" style="left:567px; top:20px; width:191px; height:19px; "/>
  270. <caption id="caption14" class="search_name" style="left:15px; top:45; width:117px; height:17px; ">신청일자 :</caption>
  271. <input id="ipt_reqfrmdd_search" ref="/root/send/search/reqfrmdd" class="input_s_essential" navindex="2" inputtype="date" style="left:100px; top:44; width:95px; height:19px; "/>
  272. <caption id="caption42" style="left:199px; top:45px; width:15px; height:20px; font-weight:bold; ">~</caption>
  273. <input id="ipt_reqtodd_search" ref="/root/send/search/reqtodd" class="input_s_essential" navindex="3" inputtype="date" style="left:215px; top:44; width:95px; height:19px; "/>
  274. <select1 id="cmb_prcsstat_search" ref="/root/send/search/prcsstat" class="combo_default" navindex="7" appearance="minimal" style="left:425px; top:44px; width:190px; height:19px; ">
  275. <choices>
  276. <itemset>
  277. <label/>
  278. <value/>
  279. </itemset>
  280. </choices>
  281. </select1>
  282. <caption id="caption45" class="search_name" style="left:340px; top:45px; width:117px; height:17px; ">진행상태 :</caption>
  283. <button id="btnselect" class="btn2_letter4" navindex="11" style="left:1063px; top:73px; width:64px; height:19px; ">
  284. <caption>전체선택</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. for(i = 1 ; i < grd_reqeqmtlist.rows ; i++)
  288. {
  289. grd_reqeqmtlist.valueMatrix(i, grd_reqeqmtlist.colRef("acptflag")) = "Y";
  290. grd_reqeqmtlist.rowStatus(i) = 2;
  291. }
  292. grd_reqeqmtlist.refresh();
  293. ]]>
  294. </script>
  295. </button>
  296. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:100px; top:20px; width:210px; height:19px; ">
  297. <choices>
  298. <itemset>
  299. <label/>
  300. <value/>
  301. </itemset>
  302. </choices>
  303. <script type="javascript" ev:event="xforms-value-changed">
  304. <![CDATA[
  305. opt_instcd.value = cmb_instcd.value;
  306. ]]>
  307. </script>
  308. </select1>
  309. <select1 id="ipt_dcusrslt" ref="/root/combo/dcusrslt" visibility="hidden" appearance="minimal" style="left:825px; top:50px; width:30px; height:19px; ">
  310. <choices>
  311. <itemset>
  312. <label/>
  313. <value/>
  314. </itemset>
  315. </choices>
  316. </select1>
  317. <select1 id="ipt_purcprcsstat" ref="/root/combo/purcprcsstat" visibility="hidden" appearance="minimal" style="left:855px; top:50px; width:30px; height:19px; ">
  318. <choices>
  319. <itemset>
  320. <label/>
  321. <value/>
  322. </itemset>
  323. </choices>
  324. </select1>
  325. <button id="button1" class="btn2_letter4" navindex="11" style="left:1128px; top:73px; width:64px; height:19px; ">
  326. <caption>전체취소</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. for(i = 1 ; i < grd_reqeqmtlist.rows ; i++)
  330. {
  331. grd_reqeqmtlist.valueMatrix(i, grd_reqeqmtlist.colRef("acptflag")) = "N";
  332. grd_reqeqmtlist.rowStatus(i) = 2;
  333. }
  334. grd_reqeqmtlist.refresh();
  335. ]]>
  336. </script>
  337. </button>
  338. <button id="btn_excelsave" class="btn2_letter4" navindex="6" style="left:998px; top:73px; width:64px; height:19px; ">
  339. <caption>엑셀저장</caption>
  340. <script type="javascript" ev:event="DOMActivate">
  341. <![CDATA[
  342. var fileName = window.fileDialog("save", ",", false, "장비신청목록_"+getCurrentDate() , "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  343. if (fileName != "")
  344. {
  345. grd_reqeqmtlist.saveExcel(fileName);
  346. }
  347. ]]>
  348. </script>
  349. </button>
  350. </group>
  351. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  352. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  353. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:3px; width:56px; height:22px; ">
  354. <caption>저장</caption>
  355. <script type="javascript" ev:event="DOMActivate">
  356. <![CDATA[
  357. for(i = 1 ; i < grd_reqeqmtlist.rows ; i++){
  358. if(grd_reqeqmtlist.rowStatus(i) == "2"){
  359. model.setValue("/root/main/reqeqmt/reqeqmtlist["+i+"]/adyn","acpt");
  360. }
  361. }
  362. var req = messageBox("접수된 자료를 승인하거나 취소합니다.", "Q003");
  363. if(req == 6){
  364. misfSave("TXRSC20101");
  365. btn_search.dispatch("DOMActivate");
  366. }else{
  367. return;
  368. }
  369. ]]>
  370. </script>
  371. </button>
  372. <button id="bnt_openpopup" class="btn4_letter4" style="left:1058px; top:3px; width:80px; height:22px; ">
  373. <caption>도입장비</caption>
  374. <script type="javascript" ev:event="DOMActivate">
  375. <![CDATA[
  376. window.load("SMRSC20410_장비신청접수도입장비조회(경북대).xrw", "modal","", "", "","");
  377. ]]>
  378. </script>
  379. </button>
  380. </group>
  381. </xhtml:body>
  382. </xhtml:html>