SMRFE00100_액세사리구성이력등록.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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. <setcompslist/>
  11. </main>
  12. <init>
  13. <setflag>
  14. <label>SUBSET</label>
  15. <value>1</value>
  16. </setflag>
  17. <suplflag>
  18. <label>국내조달</label>
  19. <value>1</value>
  20. <label>기타</label>
  21. <value>2</value>
  22. <label>제조회사</label>
  23. <value>3</value>
  24. </suplflag>
  25. </init>
  26. <send>
  27. <instcd/>
  28. <fixasetcd/>
  29. <goodflaghngnm/>
  30. <possndd/>
  31. <installplcecd/>
  32. <installplcenm/>
  33. <goodspec/>
  34. <possnamt/>
  35. <cntrdeptcd/>
  36. <depthngnm/>
  37. <mngtno/>
  38. </send>
  39. <temp>
  40. <instcd/>
  41. <fixasetcd/>
  42. <installplcecd/>
  43. <installplcenm/>
  44. <goodspec/>
  45. <mngtno/>
  46. <cntrdeptcd/>
  47. <cntrdeptnm/>
  48. <possndd/>
  49. <possnamt/>
  50. </temp>
  51. </root>
  52. </instance>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. //화면 Control을 초기화한다
  56. fInitialize();
  57. fGetdata();
  58. ]]>
  59. </script>
  60. <submission id="TRRFC00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/setcompslist"/>
  61. <submission id="TXRFC00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/setcompslist" resultref="/root/temp"/>
  62. </model>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. function fInitialize()
  72. {
  73. model.resetInstanceNode("/root/send");
  74. misfGridInit(grd_setcompslist);
  75. misfComboComCdListMulti("Z0007", "cmb_instcd"); // 기관코드
  76. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  77. misfMsterDetailSet(grd_setcompslist, null, "TRRFC00204", "Y");
  78. model.refresh();
  79. }
  80. function fSearch()
  81. {
  82. if(!isRequiredControls("ipt_fixasetcd")) return;
  83. var updtdata = getGridUpdateData(grd_setcompslist);
  84. //기관코드 값 체크
  85. if ( updtdata != "")
  86. {
  87. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  88. if (ret != 6) { // not OK
  89. return;
  90. }
  91. }
  92. misfMsterDetailRetrieve();
  93. // misfSetReadOnlyCol(grd_setcompslist, "updtfalg,updtdd,updtflag", true);
  94. model.refresh();
  95. }
  96. function fSave()
  97. {
  98. var updtdata = getGridUpdateData(grd_setcompslist);
  99. if (updtdata == "")
  100. {
  101. messageBox("변경된 데이터가","I004");
  102. return;
  103. }
  104. misfSave("TXRFC00203");
  105. btn_search.dispatch("DOMActivate");
  106. if (model.getValue(gvErrorMsgPath + "/type") != "error" ) btn_search.dispatch("DOMActivate");
  107. }
  108. function fGetdata()
  109. {
  110. var sInstcd = model.getValue("/root/temp/instcd");
  111. var sFixasetcd = model.getValue("/root/temp/fixasetcd");
  112. var sInstallplcecd = model.getValue("/root/temp/installplcecd");
  113. var sInstallplcenm = model.getValue("/root/temp/installplcenm");
  114. var sGoodspec = model.getValue("/root/temp/goodspec");
  115. var sMngtno = model.getValue("/root/temp/mngtno");
  116. var sCntrdeptcd = model.getValue("/root/temp/cntrdeptcd");
  117. var sCntrdeptnm = model.getValue("/root/temp/cntrdeptnm");
  118. var sPossndd = model.getValue("/root/temp/possndd");
  119. var sPossnamt = model.getValue("/root/temp/possnamt");
  120. if(sInstcd != "")
  121. cmb_instcd.value = model.getValue("/root/temp/instcd");
  122. if(sFixasetcd != "")
  123. {
  124. ipt_fixasetcd.value = model.getValue("/root/temp/fixasetcd");
  125. ipt_fixasetcd.dispatch("xforms-value-changed");
  126. }
  127. if(sInstallplcecd != "")
  128. ipt_installplcecd.value = model.getValue("/root/temp/installplcecd");
  129. if(sInstallplcenm != "")
  130. opt_installplcenm.value = model.getValue("/root/temp/installplcenm");
  131. if(sGoodspec != "")
  132. ipt_goodspec.value = model.getValue("/root/temp/goodspec");
  133. if(sMngtno != "")
  134. ipt_mngtno.value = model.getValue("/root/temp/mngtno");
  135. if(sCntrdeptcd != "")
  136. ipt_cntrdeptcd.value = model.getValue("/root/temp/cntrdeptcd");
  137. if(sCntrdeptnm != "")
  138. opt_cntrdeptcd.value = model.getValue("/root/temp/cntrdeptnm");
  139. if(sPossndd != "")
  140. ipt_possndd.value = model.getValue("/root/temp/possndd");
  141. if(sPossnamt != "")
  142. ipt_possnamt.value = model.getValue("/root/temp/possnamt");
  143. if(sFixasetcd != "")
  144. btn_search.dispatch("DOMActivate");
  145. }
  146. ]]>
  147. </script>
  148. </xhtml:head>
  149. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  150. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:1185px; height:720px; text-align:right; ">
  151. <datagrid id="grd_setcompslist" nodeset="/root/main/setcompslist" caption="순번^소모품코드^Set 구분^소모품 명칭^규격^수량^단가^금액^조달구분^기관코드^고정자산코드" colsep="^" colwidth="52, 110, 259, 215, 100, 100, 170, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:163px; width:1185px; height:507px; text-align:center; ">
  152. <col ref="compsgoodseq"/>
  153. <col ref="goodcd" type="input" visibility="visible"/>
  154. <col ref="setflag" type="combo" visibility="hidden">
  155. <choices>
  156. <itemset nodeset="/root/init/setflag">
  157. <label ref="label"/>
  158. <value ref="value"/>
  159. </itemset>
  160. </choices>
  161. </col>
  162. <col ref="itemnm" type="input"/>
  163. <col ref="setcompsspec" type="input"/>
  164. <col ref="compsgoodqty" type="input" format="9999999999999" style="text-align:right; "/>
  165. <col ref="compsgoodunitcost" type="input" format="#,###" style="text-align:right; "/>
  166. <col ref="goodamt" format="#,###" style="text-align:right; "/>
  167. <col ref="suplflag" type="combo">
  168. <choices>
  169. <itemset nodeset="/root/init/suplflag">
  170. <label ref="label"/>
  171. <value ref="value"/>
  172. </itemset>
  173. </choices>
  174. </col>
  175. <col ref="instcd" visibility="hidden"/>
  176. <col ref="fixasetcd" visibility="hidden"/>
  177. <script type="javascript" ev:event="onendedit">
  178. <![CDATA[
  179. // 수량이나 단가컬럼을 입력할때
  180. if(grd_setcompslist.col == grd_setcompslist.colRef("compsgoodqty") || grd_setcompslist.col == grd_setcompslist.colRef("compsgoodunitcost"))
  181. {
  182. if(grd_setcompslist.colRef("compsgoodqty") != "" && grd_setcompslist.colRef("compsgoodunitcost") != "")
  183. {
  184. var sQty = grd_setcompslist.valueMatrix(grd_setcompslist.row, grd_setcompslist.colRef("compsgoodqty"));
  185. var sCost = grd_setcompslist.valueMatrix(grd_setcompslist.row, grd_setcompslist.colRef("compsgoodunitcost"));
  186. grd_setcompslist.valueMatrix(grd_setcompslist.row, grd_setcompslist.colRef("goodamt")) = (sQty * sCost)
  187. }
  188. }
  189. ]]>
  190. </script>
  191. </datagrid>
  192. <button id="btn_delrow" class="btn2_letter3" style="left:1129px; top:138px; width:53px; height:19px; ">
  193. <caption>행삭제</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. misfGridIUD(grd_setcompslist, "D");
  197. ]]>
  198. </script>
  199. </button>
  200. <button id="btn_addrow" class="btn2_letter3" style="left:1073px; top:138px; width:53px; height:19px; ">
  201. <caption>행추가</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. if(!isRequiredControls("ipt_fixasetcd")) return;
  205. misfGridIUD(grd_setcompslist, "A");
  206. var cur_row = grd_setcompslist.row;
  207. model.setValue(grd_setcompslist.attribute("nodeset")+"["+cur_row+"]/setflag",1);
  208. // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd",ipt_fixasetcd.value);
  209. ]]>
  210. </script>
  211. </button>
  212. <caption id="caption9" class="tit_2" style="left:3px; top:143px; width:140px; height:14px; text-align:left; ">소모품 구성이력</caption>
  213. <line id="line1" class="line_1" style="x1:0px; y1:158px; x2:1185px; y2:158px; "/>
  214. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:262px; height:14px; ">소모품구성이력등록</caption>
  215. <caption id="cap_possndd" class="cell_1" style="left:404px; top:113px; width:85px; height:23px; vertical-align:middle; ">취득일자</caption>
  216. <input id="opt_installplcenm" ref="/root/send/installplcenm" class="output_fix" appearance="input" style="left:185px; top:90px; width:216px; height:19px; text-align:left; "/>
  217. <output id="ipt_installplcecd" ref="/root/send/installplcecd" class="output_fix" appearance="output" style="left:88px; top:90px; width:95px; height:19px; text-align:left; ">
  218. <script type="javascript" ev:event="xforms-value-changed">
  219. <![CDATA[
  220. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
  221. "deptcd," + ipt_installplcecd.value, "", "installplcecd,installplcenm",
  222. ipt_installplcecd, "PPRAC00700", "","");
  223. model.refresh();
  224. ]]>
  225. </script>
  226. </output>
  227. <caption id="cap_mngtno" class="cell_1" style="left:677px; top:89px; width:100px; height:23px; vertical-align:middle; ">SERIAL NO</caption>
  228. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_essential" appearance="minimal" style="left:88px; top:66px; width:152px; height:19px; text-align:left; ">
  229. <choices>
  230. <itemset>
  231. <label/>
  232. <value/>
  233. </itemset>
  234. </choices>
  235. </select1>
  236. <output id="ipt_mngtno" ref="/root/send/mngtno" class="output_fix" appearance="output" style="left:779px; top:90px; width:200px; height:19px; text-align:left; "/>
  237. <output id="ipt_possnamt" ref="/root/send/possnamt" class="output_fix" appearance="output" style="left:779px; top:114px; width:200px; height:19px; text-align:left; "/>
  238. <caption id="cap_possnamt" class="cell_1" style="left:677px; top:113px; width:100px; height:23px; vertical-align:middle; ">취득금액</caption>
  239. <output id="ipt_cntrdeptcd" ref="/root/send/cntrdeptcd" class="output_fix" appearance="output" style="left:88px; top:114px; width:95px; height:19px; text-align:left; ">
  240. <script type="javascript" ev:event="xforms-value-changed">
  241. <![CDATA[
  242. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  243. "deptcd," + ipt_cntrdeptcd.value, "", "cntrdeptcd,cntrdeptnm",
  244. ipt_cntrdeptcd, "SPRPZ00200", "","");
  245. model.refresh();
  246. ]]>
  247. </script>
  248. </output>
  249. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:165px; height:14px; ">소모품 구성 이력등록</caption>
  250. <button id="btn_fixasetcd" class="icon_search" style="left:601px; top:66px; width:16px; height:16px; ">
  251. <caption/>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. var temp = "fixasetcd,goodflaghngnm,cntrdeptcd,installplcenm,possnamt,goodspec,mngtno,possndd,installplcecd,depthngnm";
  255. rszfOpenPopUpListByWndName(ipt_fixasetcd,"", temp, "SPRSD00240","instcd","cmb_instcd", "Y");
  256. model.refresh();
  257. ]]>
  258. </script>
  259. </button>
  260. <output id="ipt_goodspec" ref="/root/send/goodspec" class="output_fix" appearance="output" style="left:491px; top:90px; width:183px; height:19px; text-align:left; "/>
  261. <caption id="cap_goodspec" class="cell_1" style="left:404px; top:89px; width:85px; height:23px; vertical-align:middle; ">규격</caption>
  262. <input id="ipt_fixasetnm" ref="/root/send/goodflaghngnm" class="input_fix" appearance="input" style="left:620px; top:66px; width:359px; height:19px; text-align:left; ">
  263. <script type="javascript" ev:event="xforms-value-changed">
  264. <![CDATA[
  265. if(ipt_fixasetnm.value != "")
  266. {
  267. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
  268. "goodflaghngnm," + cmb_instcd.value + "," + ipt_fixasetnm.value, "", "fixasetcd,goodflaghngnm",
  269. ipt_fixasetnm, "SPRSD00240_고정자산코드검색HELP", "instcd","cmb_instcd");
  270. }else{
  271. ipt_fixasetcd.value = "";
  272. ipt_fixasetnm.value = "";
  273. }
  274. model.refresh();
  275. ]]>
  276. </script>
  277. </input>
  278. <line id="line2" class="line_2" style="x1:0px; y1:111px; x2:1185; y2:111px; "/>
  279. <output id="ipt_possndd" ref="/root/send/possndd" class="output_fix" inputtype="date" appearance="output" style="left:491px; top:114px; width:183px; height:19px; text-align:left; "/>
  280. <output id="opt_cntrdeptcd" ref="/root/send/depthngnm" class="output_fix" appearance="output" style="left:185px; top:114px; width:216px; height:19px; text-align:left; "/>
  281. <caption id="cap_installplcecd" class="cell_1" style="left:0px; top:89px; width:85px; height:23px; vertical-align:middle; ">설치장소</caption>
  282. <caption id="cap_instcd" class="cell_1" style="left:0px; top:65px; width:85px; height:23px; vertical-align:middle; ">기관코드</caption>
  283. <input id="ipt_fixasetcd" ref="/root/send/fixasetcd" class="input_essential" appearance="input" style="left:491px; top:66px; width:106px; height:19px; text-align:left; ">
  284. <script type="javascript" ev:event="xforms-value-changed">
  285. <![CDATA[
  286. if(ipt_fixasetcd.value != "")
  287. {
  288. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
  289. "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "", "fixasetcd,goodflaghngnm",
  290. ipt_fixasetcd, "SPRSD00240_고정자산코드검색HELP", "instcd","cmb_instcd");
  291. }else{
  292. ipt_fixasetcd.value = "";
  293. ipt_fixasetnm.value = "";
  294. }
  295. model.refresh();
  296. ]]>
  297. </script>
  298. </input>
  299. <line id="line3" class="line_1" style="x1:0px; y1:60px; x2:1185; y2:60px; "/>
  300. <line id="line4" class="line_2" style="x1:0px; y1:87px; x2:1185; y2:87px; "/>
  301. <caption id="cap_fixasetcd" class="cell_1" style="left:404px; top:65px; width:85px; height:23px; vertical-align:middle; ">자산코드</caption>
  302. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:90px; width:56px; height:22px; ">
  303. <caption>조회</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. fSearch();
  307. ]]>
  308. </script>
  309. </button>
  310. <line id="line6" class="line_3" style="x1:0px; y1:136px; x2:1185; y2:136px; text-align:left; "/>
  311. <caption id="cap_cntrdeptcd" class="cell_1" style="left:0px; top:113px; width:85px; height:23px; vertical-align:middle; ">귀속부서</caption>
  312. </group>
  313. <group id="group4" style="left:0px; top:15px; width:1185px; height:27px; ">
  314. <button id="button26" class="btn3_letter4" visibility="hidden" style="left:58px; top:3; width:80px; height:22px; ">
  315. <caption>화면이동</caption>
  316. </button>
  317. <button id="button27" class="btn6_letter2" visibility="hidden" style="left:0px; top:3; width:56px; height:22px; ">
  318. <caption>출력</caption>
  319. </button>
  320. <button id="button20" class="btn4_letter2" style="left:1057px; top:3px; width:56px; height:22px; ">
  321. <caption>저장</caption>
  322. <script type="javascript" ev:event="DOMActivate">
  323. <![CDATA[
  324. fSave();
  325. ]]>
  326. </script>
  327. </button>
  328. <button id="button29" class="btn4_letter3" style="left:1116px; top:3px; width:68px; height:22px; ">
  329. <caption>초기화</caption>
  330. <script type="javascript" ev:event="DOMActivate">
  331. <![CDATA[
  332. fInitialize();
  333. ]]>
  334. </script>
  335. </button>
  336. <line id="line14" class="line_6" style="x1:0px; y1:25; x2:1185px; y2:25; "/>
  337. </group>
  338. </xhtml:body>
  339. </xhtml:html>