SMRFC01000_감가상각 기준정보.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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. <list>
  11. <deprcbaseinfo>
  12. <deprcbaselist/>
  13. </deprcbaseinfo>
  14. <deprcbasesubinfo>
  15. <deprcbasesublist/>
  16. </deprcbasesubinfo>
  17. </list>
  18. </main>
  19. <send>
  20. <search>
  21. <instcd/>
  22. <goodflag/>
  23. <lrgcd/>
  24. </search>
  25. <subsearch>
  26. <instcd/>
  27. <goodflag/>
  28. <lrgcd/>
  29. <mdlcd/>
  30. </subsearch>
  31. <save>
  32. <deprcbaselist/>
  33. <deprcbasesublist/>
  34. </save>
  35. </send>
  36. <init>
  37. </init>
  38. <temp>
  39. </temp>
  40. </root>
  41. </instance>
  42. <submission id="TRRFC01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/deprcbaseinfo"/>
  43. <submission id="TRRFC01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/subsearch" resultref="/root/main/list/deprcbasesubinfo"/>
  44. <submission id="TXRFC01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/deprcbaselist" resultref="/root/temp"/>
  45. <submission id="TXRFC01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/deprcbasesublist" resultref="/root/temp"/>
  46. </model>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. //화면 Control을 초기화한다
  50. fInitialize();
  51. ]]>
  52. </script>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  56. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  59. <script type="javascript">
  60. <![CDATA[
  61. function fInitialize()
  62. {
  63. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
  64. model.setValue(cmb_goodflag.attribute("ref"), "GE");
  65. // misfComboComCdListMulti("Z0007,030R0006","cmb_instcd,grd_deprcbase.repaymthd");
  66. misfComboComCdList("030R0006",cmb_repaymthd);
  67. misfComboComCdListMulti("Z0007","cmb_instcd");
  68. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  69. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  70. addComboItem( "cmb_lrgcd" , "전체", "", "above");
  71. model.removeNodeset("/root/main/list/deprcbaseinfo/deprcbaselist");
  72. model.removeNodeset("/root/main/list/deprcbasesubinfo/deprcbasesublist");
  73. btn_search.dispatch("DOMActivate");
  74. model.refresh();
  75. }
  76. function fItemAllChoice( vFlag ) {
  77. if (grd_deprcbase.rows - grd_deprcbase.fixedRows <= 0 ) {
  78. messageBox("선택할 데이터가","I004");
  79. return false;
  80. }
  81. for( cnt = grd_deprcbase.fixedRows; cnt < grd_deprcbase.rows ; cnt++ ) {
  82. grd_deprcbase.valueMatrix( cnt, grd_deprcbase.colRef("trschkyn") ) = vFlag;
  83. if (vFlag == "Y"){
  84. grd_deprcbase.rowStatus(cnt) = "1";
  85. }else{
  86. grd_deprcbase.rowStatus(cnt) = "0";
  87. }
  88. }
  89. }
  90. ]]>
  91. </script>
  92. </xhtml:head>
  93. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  94. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  95. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">감가상각 기준정보</caption>
  96. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  97. </group>
  98. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  99. <group id="grp_search" style="left:0px; top:17px; width:1195px; height:53px; vertical-align:top; ">
  100. <caption id="cap_allsizespecid" class="search_name" style="left:975px; top:10px; width:111px; height:17px; ">규격코드 :</caption>
  101. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  102. <line id="line30" class="line_4" style="x1:1105px; y1:7px; x2:1105px; y2:33px; "/>
  103. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
  104. <caption>조회</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. model.removeNodeset("/root/main/list/deprcbaseinfo/deprcbaselist");
  108. model.removeNodeset("/root/main/list/deprcbaseinfo/deprcbasesublist");
  109. submit("TRRFC01001");
  110. for(var i=1;i<grd_deprcbase.rows;i++){
  111. var repaymthd = grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("repaymthd"));
  112. var cntsyearno = grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("cntsyearno"));
  113. if(repaymthd == 'S'|| cntsyearno == "-1"){
  114. grd_deprcbase.rowStyle(i,"data","background-color") = "#FFFF66";
  115. grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("repaymthd" )) = "";
  116. grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("cntsyearno")) = "";
  117. }else{
  118. grd_deprcbase.rowStyle(i,"data","background-color") = "white";
  119. }
  120. }
  121. model.refresh();
  122. grd_deprcbase.gridToInstance();
  123. ]]>
  124. </script>
  125. </button>
  126. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:104px; top:10px; width:206px; height:19px; ">
  127. <choices>
  128. <itemset nodeset="/root/main/init">
  129. <label ref="cnstnm"/>
  130. <value ref="cnstcd"/>
  131. </itemset>
  132. </choices>
  133. </select1>
  134. <caption id="cap_instcd" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  135. <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_default" appearance="minimal" style="left:424px; top:10px; width:196px; height:19px; ">
  136. <choices>
  137. <itemset>
  138. <label/>
  139. <value/>
  140. </itemset>
  141. </choices>
  142. <script type="javascript" ev:event="xforms-value-changed">
  143. <![CDATA[
  144. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  145. addComboItem( "cmb_lrgcd", "전체", "", "above");
  146. model.refresh();
  147. ]]>
  148. </script>
  149. </select1>
  150. <caption id="cap_goodflag" class="search_name" style="left:330px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
  151. <select1 id="cmb_lrgcd" ref="/root/send/search/lrgcd" appearance="minimal" style="left:741px; top:10px; width:206px; height:19px; ">
  152. <choices>
  153. <itemset>
  154. <label/>
  155. <value/>
  156. </itemset>
  157. </choices>
  158. <script type="javascript" ev:event="xforms-value-changed">
  159. <![CDATA[
  160. ]]>
  161. </script>
  162. </select1>
  163. <caption id="caption7" class="search_name" style="left:645px; top:10px; width:88px; height:17px; ">대 분 류 :</caption>
  164. </group>
  165. <line id="line1" class="line_1" style="x1:0px; y1:98px; x2:580px; y2:98px; "/>
  166. <datagrid id="grd_deprcbase" nodeset="/root/main/list/deprcbaseinfo/deprcbaselist" caption="기관코드^물품구분^대분류^대분류^상각방법^상각년수" colsep="^" colwidth="7, 9, 52, 240, 112, 88" explorerbar="sortshow" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:105px; width:580px; height:615px; font-weight:normal; text-align:center; ">
  167. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  168. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  169. <col ref="lrgcd" style="text-align:center; "/>
  170. <col ref="lrgnm" style="text-align:left; padding-left:10; "/>
  171. <col ref="repaymthd" type="combo" style="text-align:center; ">
  172. <choices>
  173. <itemset nodeset="/root/init/cmb_repaymthd/comcodelist">
  174. <label ref="cdnm"/>
  175. <value ref="cdid"/>
  176. </itemset>
  177. </choices>
  178. </col>
  179. <col ref="cntsyearno" type="input" style="text-align:right; padding-right:10; "/>
  180. <script type="javascript" ev:event="onclick">
  181. <![CDATA[
  182. ]]>
  183. </script>
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. ]]>
  187. </script>
  188. <script type="javascript" ev:event="ondblclick">
  189. <![CDATA[
  190. model.setValue("/root/send/subsearch/instcd" , model.getValue("/root/send/search/instcd"));
  191. model.setValue("/root/send/subsearch/goodflag", model.getValue("/root/send/search/goodflag"));
  192. model.setValue("/root/send/subsearch/lrgcd" , grd_deprcbase.valueMatrix(grd_deprcbase.row, grd_deprcbase.colRef("lrgcd")));
  193. submit("TRRFC01002");
  194. model.refresh();
  195. grd_deprcbasesub.gridToInstance();
  196. ]]>
  197. </script>
  198. </datagrid>
  199. <caption id="caption8" class="tit_2" style="left:5px; top:79px; width:144px; height:14px; ">대분류 감가상각 정보</caption>
  200. <button id="btn_save1" class="btn2_letter2" style="left:530px; top:75px; width:42px; height:19px; ">
  201. <caption>저장</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. model.removeNodeset("/root/send/save/deprcbaselist");
  205. model.removeNodeset("/root/send/save/deprcbasesublist");
  206. updtdata = getGridUpdateData(grd_deprcbase);
  207. if(updtdata == ""){
  208. messageBox("저장할 데이타가 ","E014");
  209. return false;
  210. }
  211. model.makeValue("/root/send/save/deprcbaselist", updtdata);
  212. if (submit("TXRFC01001")){
  213. messageBox("저장이","I002");
  214. }else{
  215. messageBox("저장","E009");
  216. return;
  217. }
  218. var focus = grd_deprcbase.row;
  219. btn_search.dispatch("DOMActivate");
  220. grd_deprcbase.row = focus;
  221. grd_deprcbase.dispatch("ondblclick");
  222. ]]>
  223. </script>
  224. </button>
  225. <select1 id="cmb_repaymthd" visibility="hidden" appearance="minimal" style="left:360px; top:75px; width:70px; height:19px; ">
  226. <choices>
  227. <itemset>
  228. <label/>
  229. <value/>
  230. </itemset>
  231. </choices>
  232. </select1>
  233. <button id="btn_save2" class="btn2_letter2" style="left:1120px; top:75px; width:42px; height:19px; ">
  234. <caption>저장</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. model.removeNodeset("/root/send/save/deprcbaselist");
  238. model.removeNodeset("/root/send/save/deprcbasesublist");
  239. updtdata = getGridUpdateData(grd_deprcbasesub);
  240. if(updtdata == ""){
  241. messageBox("저장할 데이타가 ","E014");
  242. return false;
  243. }
  244. model.makeValue("/root/send/save/deprcbasesublist", updtdata);
  245. if (submit("TXRFC01002")){
  246. messageBox("저장이","I002");
  247. }else{
  248. messageBox("저장","E009");
  249. return;
  250. }
  251. model.removeNodeset("/root/main/list/deprcbasesubinfo/deprcbasesublist");
  252. var focus = grd_deprcbase.row;
  253. btn_search.dispatch("DOMActivate");
  254. grd_deprcbase.row = focus;
  255. grd_deprcbase.dispatch("ondblclick");
  256. // btn_search.dispatch("DOMActivate");
  257. ]]>
  258. </script>
  259. </button>
  260. <line id="line2" class="line_1" style="x1:590px; y1:98px; x2:1170px; y2:98px; "/>
  261. <datagrid id="grd_deprcbasesub" nodeset="/root/main/list/deprcbasesubinfo/deprcbasesublist" caption="기관코드^물품구분^대분류^중분류^중분류^상각방법^상각년수" colsep="^" colwidth="7, 9, 7, 52, 240, 112, 88" explorerbar="sortshow" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:590px; top:105px; width:580px; height:615px; font-weight:normal; text-align:center; ">
  262. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  263. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  264. <col ref="lrgcd" visibility="hidden"/>
  265. <col ref="mdlcd" style="text-align:center; "/>
  266. <col ref="mdlnm" style="text-align:left; padding-left:10; "/>
  267. <col ref="repaymthd" type="combo" style="text-align:center; ">
  268. <choices>
  269. <itemset nodeset="/root/init/cmb_repaymthd/comcodelist">
  270. <label ref="cdnm"/>
  271. <value ref="cdid"/>
  272. </itemset>
  273. </choices>
  274. </col>
  275. <col ref="cntsyearno" type="input" style="text-align:right; padding-right:10; "/>
  276. <script type="javascript" ev:event="onclick">
  277. <![CDATA[
  278. ]]>
  279. </script>
  280. <script type="javascript" ev:event="xforms-value-changed">
  281. <![CDATA[
  282. ]]>
  283. </script>
  284. </datagrid>
  285. <caption id="caption1" class="tit_2" style="left:595px; top:79px; width:158px; height:14px; ">중분류 감가상각 정보</caption>
  286. </group>
  287. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  288. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  289. <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
  290. <caption>초기화</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. fInitialize();
  294. ]]>
  295. </script>
  296. </button>
  297. </group>
  298. </xhtml:body>
  299. </xhtml:html>