SPRSD00240_고정자산코드검색HELP.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="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. <rfcmfacdlist>
  11. <fixasetcd/>
  12. <goodflaghngnm/>
  13. <goodmodel/>
  14. <cntrdeptcd/>
  15. <installplcenm/>
  16. </rfcmfacdlist>
  17. </main>
  18. <target>
  19. <defaultvalue>
  20. <goodflag/>
  21. <lrgcd>A</lrgcd>
  22. <lrgnm/>
  23. <instcd/>
  24. <deptcd/>
  25. <deptnm/>
  26. <installplcecd/>
  27. <installplcenm/>
  28. </defaultvalue>
  29. </target>
  30. <init>
  31. <refcond>
  32. <label>코드명</label>
  33. <value>goodflaghngnm</value>
  34. <label>코드</label>
  35. <value>fixasetcd</value>
  36. </refcond>
  37. <goodflag>
  38. <label>비품</label>
  39. <value>GE</value>
  40. <label>의료장비</label>
  41. <value>EQ</value>
  42. <label>전체</label>
  43. <value/>
  44. </goodflag>
  45. </init>
  46. <send>
  47. <deptcd/>
  48. <deptnm/>
  49. <installplcecd/>
  50. <installplcenm/>
  51. <requirementcd/>
  52. <requirementnm/>
  53. <instcd/>
  54. <goodflag/>
  55. <mngtdeptcd/>
  56. <mngtdeptnm/>
  57. <tempmngtdeptcd/>
  58. <tempmngtdeptnm/>
  59. </send>
  60. </root>
  61. </instance>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. fInitialize();
  65. fSettinData();
  66. ]]>
  67. </script>
  68. <submission id="TRRSD00241" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  69. </model>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  72. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript">
  75. <![CDATA[
  76. function fInitialize()
  77. {
  78. model.setValue("/root/send/instcd", model.getValue(PURTARGET_NODE + "/instcd"));
  79. model.setValue("/root/send/goodflag", model.getValue(PURTARGET_NODE + "/goodflag"));
  80. model.setValue("/root/send/deptcd", model.getValue(PURTARGET_NODE + "/deptcd"));
  81. model.setValue("/root/send/deptnm", model.getValue(PURTARGET_NODE + "/deptnm"));
  82. model.setValue("/root/send/installplcecd", model.getValue(PURTARGET_NODE + "/installplcecd"));
  83. model.setValue("/root/send/installplcenm", model.getValue(PURTARGET_NODE + "/installplcenm"));
  84. var mainObj = getMainViewer();
  85. var scrnID = mainObj.javascript.getScreenID();
  86. if (scrnID == "SMRFC00700"){ // 고정자산 바코드 출력
  87. rdo_requirementcd.select(1);
  88. }else{
  89. rdo_requirementcd.select(0);
  90. }
  91. // 물품구분값이 넘어오면 수정하지 못하게한다.
  92. if (model.getValue(cmb_goodflag.attribute("ref")).length != 0) cmb_goodflag.disabled = true;
  93. misfGridInit(grd_rfcmfacdlist);
  94. misfMsterDetailSet(grd_rfcmfacdlist,null,"TRRSD00241","N");
  95. // 장비는 영문명칭을 화면에 보여주고 그외에는 한글명을 보여준다.
  96. if (model.getValue(PURTARGET_NODE + "/goodflag") == "EQ")
  97. {
  98. grd_rfcmfacdlist.colHidden(grd_rfcmfacdlist.colRef("goodflagengnm")) = false;
  99. grd_rfcmfacdlist.colHidden(grd_rfcmfacdlist.colRef("goodflaghngnm")) = true;
  100. model.refresh();
  101. }
  102. }
  103. function fSettinData()
  104. {
  105. var sDeptcd = model.getValue("/root/send/deptcd");
  106. var sDeptnm = model.getValue("/root/send/deptnm");
  107. if(sDeptcd != "" || sDeptnm != "")
  108. {
  109. ipt_deptcd.disabled = true;
  110. ipt_deptnm.disabled = true;
  111. btn_dept.disabled = true;
  112. }
  113. var sInstallplcecd = model.getValue("/root/send/installplcecd");
  114. var sInstallplcenm = model.getValue("/root/send/installplcenm");
  115. if(sInstallplcecd != "" || sInstallplcenm != "")
  116. {
  117. ipt_installplcecd.disabled = true;
  118. ipt_installplcenm.disabled = true;
  119. btn_installplce.disabled = true;
  120. }
  121. }
  122. ]]>
  123. </script>
  124. </xhtml:head>
  125. <xhtml:body pagewidth="731" pageheight="570" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  126. <group id="group3" scroll="auto" style="left:8px; top:0px; width:700px; height:539px; ">
  127. <group id="group2" style="left:0px; top:5px; width:700px; height:110px; ">
  128. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:700; height:110px; "/>
  129. <input id="ipt_requirementnm" ref="/root/send/requirementnm" class="input_search" navindex="2" _chartype="upper" style="left:331px; top:8px; width:213px; height:19px; ">
  130. <script type="javascript" ev:event="onkeyup">
  131. <![CDATA[
  132. inputEnterKey("btn_search", "DOMActivate");
  133. ]]>
  134. </script>
  135. </input>
  136. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:629px; top:43px; width:56px; height:22px; ">
  137. <caption>조회</caption>
  138. <script type="javascript" ev:event="DOMActivate">
  139. <![CDATA[
  140. misfMsterDetailRetrieve();
  141. ]]>
  142. </script>
  143. </button>
  144. <line id="line13" class="line_4" style="x1:614px; y1:16px; x2:614px; y2:96px; border-color:#ffe4bb; border-left-style:solid; "/>
  145. <caption id="cap_requirementnm" class="search_name" style="left:246px; top:9; width:85px; height:17px; ">조 건 :</caption>
  146. <select1 id="rdo_requirementcd" ref="/root/send/requirementcd" class="radio_s_essential" navindex="1" overflow="visible" appearance="full" cols="2" style="left:100; top:9; width:120; height:20px; border-style:solid; ">
  147. <choices>
  148. <itemset nodeset="/root/init/refcond">
  149. <label ref="label"/>
  150. <value ref="value"/>
  151. </itemset>
  152. </choices>
  153. <script type="javascript" ev:event="xforms-select">
  154. <![CDATA[
  155. model.setFocus("ipt_requirementnm");
  156. ]]>
  157. </script>
  158. </select1>
  159. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_search" navindex="3" appearance="minimal" style="left:100; top:34px; width:120; height:19px; ">
  160. <choices>
  161. <itemset nodeset="/root/init/goodflag">
  162. <label ref="label"/>
  163. <value ref="value"/>
  164. </itemset>
  165. </choices>
  166. </select1>
  167. <caption id="cap_requirementcd" class="search_name" style="left:15; top:9; width:86px; height:17px; ">조건구분 :</caption>
  168. <caption id="cap_goodflag" class="search_name" style="left:15; top:35; width:86px; height:17px; ">물품구분 :</caption>
  169. <input id="ipt_deptcd" ref="/root/send/deptcd" class="input_search" visibility="hidden" style="left:610px; top:65px; width:25px; height:19px; ">
  170. <script type="javascript" ev:event="xforms-value-changed">
  171. <![CDATA[
  172. misfValidationCheck("02","","deptcd,deptnm");
  173. model.refresh();
  174. ]]>
  175. </script>
  176. </input>
  177. <button id="btn_dept" class="icon_search" visibility="hidden" style="left:640px; top:65px; width:16px; height:16px; ">
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. misfOpenPopUpList("02", ipt_deptcd,"","deptcd,deptnm");
  181. model.refresh();
  182. ]]>
  183. </script>
  184. <caption/>
  185. </button>
  186. <caption id="cap_deptcd" class="search_name" visibility="hidden" style="left:525px; top:65px; width:86px; height:17px; ">귀속부서 :</caption>
  187. <input id="ipt_deptnm" ref="/root/send/deptnm" class="input_default" visibility="hidden" appearance="input" style="left:661px; top:65px; width:24px; height:19px; ">
  188. <script type="javascript" ev:event="xforms-value-changed">
  189. <![CDATA[
  190. misfValidationCheck("02","","deptcd,deptnm");
  191. model.refresh();
  192. ]]>
  193. </script>
  194. </input>
  195. <button id="btn_installplce" class="icon_search" visibility="hidden" style="left:640px; top:86px; width:16px; height:16px; ">
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. misfOpenPopUpList("19", ipt_installplcecd,"", "installplcecd,installplcenm") ;
  199. model.refresh();
  200. ]]>
  201. </script>
  202. <caption/>
  203. </button>
  204. <caption id="cap_installplcecd" class="search_name" visibility="hidden" style="left:525px; top:86px; width:86px; height:17px; ">설치장소 :</caption>
  205. <input id="ipt_installplcecd" ref="/root/send/installplcecd" class="input_search" visibility="hidden" style="left:610px; top:86px; width:25px; height:19px; ">
  206. <script type="javascript" ev:event="xforms-value-changed">
  207. <![CDATA[
  208. if(ipt_installplcecd.value != ""){
  209. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
  210. "deptcd," + ipt_installplcecd.value, "", "installplcecd,installplcenm",
  211. ipt_installplcecd, "PPRAC00700", "","");
  212. }else{
  213. ipt_installplcenm.value = "";
  214. }
  215. model.refresh();
  216. ]]>
  217. </script>
  218. </input>
  219. <input id="ipt_installplcenm" ref="/root/send/installplcenm" class="input_default" visibility="hidden" appearance="input" style="left:661px; top:86px; width:24px; height:19px; ">
  220. <script type="javascript" ev:event="xforms-value-changed">
  221. <![CDATA[
  222. if(ipt_installplcenm.value != ""){
  223. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
  224. "deptnm," + ipt_installplcenm.value, "", "installplcecd,installplcenm",
  225. ipt_installplcecd, "PPRAC00700", "","");
  226. }else{
  227. ipt_installplcecd.value = "";
  228. }
  229. model.refresh();
  230. ]]>
  231. </script>
  232. </input>
  233. <input id="ipt_tempmngtdeptnm" ref="/root/send/tempmngtdeptnm" class="input_default" navindex="7" appearance="input" style="left:246px; top:86px; width:298px; height:19px; ">
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. if(ipt_tempmngtdeptnm.value.length == 0){
  237. ipt_tempmngtdeptcd.value = "";
  238. }else{
  239. misfValidationCheck("02","","tempmngtdeptcd,tempmngtdeptnm");
  240. }
  241. ipt_tempmngtdeptnm.refresh();
  242. ipt_tempmngtdeptcd.refresh();
  243. ]]>
  244. </script>
  245. </input>
  246. <input id="ipt_tempmngtdeptcd" ref="/root/send/tempmngtdeptcd" class="input_search" navindex="6" style="left:100px; top:86px; width:120px; height:19px; ">
  247. <script type="javascript" ev:event="xforms-value-changed">
  248. <![CDATA[
  249. if(ipt_tempmngtdeptcd.value.length == 0){
  250. ipt_tempmngtdeptnm.value = "";
  251. }else{
  252. misfValidationCheck("02","","tempmngtdeptcd,tempmngtdeptnm");
  253. }
  254. ipt_tempmngtdeptnm.refresh();
  255. ipt_tempmngtdeptcd.refresh();
  256. ]]>
  257. </script>
  258. </input>
  259. <button id="btn_mngtdeptcd" class="icon_search" navindex="-1" style="left:225px; top:60px; width:16px; height:16px; ">
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. misfOpenPopUpList("02",ipt_mngtdeptcd,"","mngtdeptcd,mngtdeptnm");
  263. ipt_mngtdeptnm.refresh();
  264. ipt_mngtdeptcd.refresh();
  265. ]]>
  266. </script>
  267. <caption/>
  268. </button>
  269. <button id="btn_tempmngtdeptcd" class="icon_search" navindex="-1" style="left:225px; top:86px; width:16px; height:16px; ">
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. misfOpenPopUpList("02",ipt_tempmngtdeptcd,"","tempmngtdeptcd,tempmngtdeptnm");
  273. ipt_tempmngtdeptnm.refresh();
  274. ipt_tempmngtdeptcd.refresh();
  275. ]]>
  276. </script>
  277. <caption/>
  278. </button>
  279. <input id="ipt_mngtdeptnm" ref="/root/send/mngtdeptnm" class="input_default" navindex="5" appearance="input" style="left:246px; top:60px; width:298px; height:19px; ">
  280. <script type="javascript" ev:event="xforms-value-changed">
  281. <![CDATA[
  282. if(ipt_mngtdeptnm.value.length == 0){
  283. ipt_mngtdeptcd.value = "";
  284. }else{
  285. misfValidationCheck("02","","mngtdeptcd,mngtdeptnm");
  286. }
  287. ipt_mngtdeptnm.refresh();
  288. ipt_mngtdeptcd.refresh();
  289. ]]>
  290. </script>
  291. </input>
  292. <caption id="cap_mngtdept" class="search_name" style="left:15px; top:60px; width:94px; height:17px; ">사용부서 :</caption>
  293. <caption id="cap_tempmngtdept" class="search_name" style="left:15px; top:86px; width:86px; height:17px; ">관리부서 :</caption>
  294. <input id="ipt_mngtdeptcd" ref="/root/send/mngtdeptcd" class="input_search" navindex="4" style="left:100px; top:60px; width:120px; height:19px; ">
  295. <script type="javascript" ev:event="xforms-value-changed">
  296. <![CDATA[
  297. if(ipt_mngtdeptcd.value.length == 0){
  298. ipt_mngtdeptnm.value = "";
  299. }else{
  300. misfValidationCheck("02","","mngtdeptcd,mngtdeptnm");
  301. }
  302. ipt_mngtdeptnm.refresh();
  303. ipt_mngtdeptcd.refresh();
  304. ]]>
  305. </script>
  306. </input>
  307. </group>
  308. <line id="line1" class="line_1" style="x1:0px; y1:138px; x2:700; y2:138px; "/>
  309. <datagrid id="grd_rfcmfacdlist" nodeset="/root/main/rfcmfacdlist" caption="자산코드^한글명^영문명^규격^모델^귀속부서^설치장소^사용부서^관리부서^제조회사코드^제조원^입고일자^거래처코드^거래처명^내/외자코드^내/외자명^외화금액^원화금액^^Serial No" colsep="^" colwidth="97, 212, 212, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" navindex="9" style="left:0px; top:143px; width:700px; height:391px; ">
  310. <col ref="fixasetcd"/>
  311. <col ref="goodflaghngnm"/>
  312. <col ref="goodflagengnm"/>
  313. <col ref="goodspec"/>
  314. <col ref="goodmodel"/>
  315. <col ref="cntrdeptnm"/>
  316. <col ref="installplcenm"/>
  317. <col ref="mngtdeptnm"/>
  318. <col ref="tempmngtdeptnm"/>
  319. <col ref="prodcmpy" visibility="hidden"/>
  320. <col ref="prodcmpynm" visibility="hidden"/>
  321. <col ref="windd" visibility="hidden"/>
  322. <col ref="suplplcecd" visibility="hidden"/>
  323. <col ref="suplplcenm" visibility="hidden"/>
  324. <col ref="possnflagcd" visibility="hidden"/>
  325. <col ref="possnflagnm" visibility="hidden"/>
  326. <col ref="forgncurncyamt" visibility="hidden"/>
  327. <col ref="possnamt" visibility="hidden"/>
  328. <col ref="curncyunit" visibility="hidden"/>
  329. <col ref="mngtno"/>
  330. <col ref="possndd" visibility="hidden"/>
  331. <col ref="installplcecd" visibility="hidden"/>
  332. <col ref="depthngnm" visibility="hidden"/>
  333. <col ref="goodflag" visibility="hidden"/>
  334. <col ref="cntrdeptcd" visibility="hidden"/>
  335. <col ref="reqdeptnm" visibility="hidden"/>
  336. <col ref="originalmngtdeptnm" visibility="hidden"/>
  337. <script type="javascript" ev:event="ondblclick">
  338. <![CDATA[
  339. if( grd_rfcmfacdlist.isCell( event.target ) && grd_rfcmfacdlist.row >= grd_rfcmfacdlist.fixedRows ) {
  340. btn_confirm.dispatch("DOMActivate");
  341. }
  342. ]]>
  343. </script>
  344. <script type="javascript" ev:event="onaftersort">
  345. <![CDATA[
  346. grd_rfcmfacdlist.gridToInstance();
  347. ]]>
  348. </script>
  349. </datagrid>
  350. </group>
  351. <group id="group1" scroll="auto" style="left:8px; top:538px; width:700px; height:27px; ">
  352. <button id="btn_confirm" class="btn4_letter2" style="left:586px; top:5px; width:56px; height:22px; ">
  353. <caption>확인</caption>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. misfPopUpListReturn(grd_rfcmfacdlist, model.getValue("/root/target/defaultvalue/nodebigo"));
  357. // misfPopUpListReturn(grd_rfcmfacdlist);
  358. ]]>
  359. </script>
  360. </button>
  361. <button id="btn_cancel" class="btn4_letter2" style="left:644px; top:5px; width:56px; height:22px; ">
  362. <caption>취소</caption>
  363. <script type="javascript" ev:event="DOMActivate">
  364. <![CDATA[
  365. window.close();
  366. ]]>
  367. </script>
  368. </button>
  369. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:700; y2:0px; "/>
  370. </group>
  371. </xhtml:body>
  372. </xhtml:html>