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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="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. <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. if(submit("TRRFC01001")) {
  110. grd_deprcbase.rebuildStyle();
  111. for(var i=1;i<grd_deprcbase.rows;i++){
  112. var repaymthd = grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("repaymthd"));
  113. var cntsyearno = grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("cntsyearno"));
  114. var newflag = grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("newflag"));
  115. if(repaymthd == 'S'|| cntsyearno == "-1") {
  116. grd_deprcbase.rowStyle(i,"data","background-color") = "#FFFF66";
  117. grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("repaymthd" )) = "";
  118. grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("cntsyearno")) = "";
  119. } else {
  120. grd_deprcbase.rowStyle(i,"data","background-color") = "white";
  121. }
  122. if(newflag == 'Y') {
  123. grd_deprcbase.rowStyle(i,"data","color") = "red";
  124. }
  125. }
  126. grd_deprcbase.refresh();
  127. grd_deprcbase.gridToInstance();
  128. }
  129. ]]>
  130. </script>
  131. </button>
  132. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:104px; top:10px; width:206px; height:19px; ">
  133. <choices>
  134. <itemset nodeset="/root/main/init">
  135. <label ref="cnstnm"/>
  136. <value ref="cnstcd"/>
  137. </itemset>
  138. </choices>
  139. </select1>
  140. <caption id="cap_instcd" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  141. <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_default" appearance="minimal" style="left:424px; top:10px; width:196px; height:19px; ">
  142. <choices>
  143. <itemset>
  144. <label/>
  145. <value/>
  146. </itemset>
  147. </choices>
  148. <script type="javascript" ev:event="xforms-value-changed">
  149. <![CDATA[
  150. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  151. addComboItem( "cmb_lrgcd", "전체", "", "above");
  152. model.refresh();
  153. ]]>
  154. </script>
  155. </select1>
  156. <caption id="cap_goodflag" class="search_name" style="left:330px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
  157. <select1 id="cmb_lrgcd" ref="/root/send/search/lrgcd" appearance="minimal" style="left:741px; top:10px; width:206px; height:19px; ">
  158. <choices>
  159. <itemset>
  160. <label/>
  161. <value/>
  162. </itemset>
  163. </choices>
  164. <script type="javascript" ev:event="xforms-value-changed">
  165. <![CDATA[
  166. ]]>
  167. </script>
  168. </select1>
  169. <caption id="caption7" class="search_name" style="left:645px; top:10px; width:88px; height:17px; ">대 분 류 :</caption>
  170. </group>
  171. <line id="line1" class="line_1" style="x1:0px; y1:98px; x2:580px; y2:98px; "/>
  172. <datagrid id="grd_deprcbase" nodeset="/root/main/list/deprcbaseinfo/deprcbaselist" caption="기관코드^물품구분^대분류^대분류^상각방법^상각년수^신규구분" colsep="^" colwidth="10, 10, 52, 240, 112, 88, 10" 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; ">
  173. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  174. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  175. <col ref="lrgcd" style="text-align:center; "/>
  176. <col ref="lrgnm" style="text-align:left; padding-left:10; "/>
  177. <col ref="repaymthd" type="combo" style="text-align:center; ">
  178. <choices>
  179. <itemset nodeset="/root/init/cmb_repaymthd/comcodelist">
  180. <label ref="cdnm"/>
  181. <value ref="cdid"/>
  182. </itemset>
  183. </choices>
  184. </col>
  185. <col ref="cntsyearno" type="input" style="text-align:right; padding-right:10; "/>
  186. <col ref="newflag" visibility="hidden"/>
  187. <script type="javascript" ev:event="ondblclick">
  188. <![CDATA[
  189. model.setValue("/root/send/subsearch/instcd" , model.getValue("/root/send/search/instcd"));
  190. model.setValue("/root/send/subsearch/goodflag", model.getValue("/root/send/search/goodflag"));
  191. model.setValue("/root/send/subsearch/lrgcd" , grd_deprcbase.valueMatrix(grd_deprcbase.row, grd_deprcbase.colRef("lrgcd")));
  192. if(submit("TRRFC01002")) {
  193. grd_deprcbasesub.rebuildStyle();
  194. for(var i=1;i<grd_deprcbasesub.rows;i++){
  195. var newflag = grd_deprcbasesub.valueMatrix(i,grd_deprcbasesub.colRef("newflag"));
  196. if(newflag == 'Y') {
  197. grd_deprcbasesub.rowStyle(i,"data","color") = "red";
  198. }
  199. }
  200. grd_deprcbasesub.refresh();
  201. grd_deprcbasesub.gridToInstance();
  202. }
  203. ]]>
  204. </script>
  205. </datagrid>
  206. <caption id="caption8" class="tit_2" style="left:5px; top:79px; width:144px; height:14px; ">대분류 감가상각 정보</caption>
  207. <button id="btn_save1" class="btn2_letter2" style="left:530px; top:75px; width:42px; height:19px; ">
  208. <caption>저장</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. model.removeNodeset("/root/send/save/deprcbaselist");
  212. model.removeNodeset("/root/send/save/deprcbasesublist");
  213. updtdata = getGridUpdateData(grd_deprcbase);
  214. if(updtdata == ""){
  215. messageBox("저장할 데이타가 ","E014");
  216. return false;
  217. }
  218. model.makeValue("/root/send/save/deprcbaselist", updtdata);
  219. if (submit("TXRFC01001")){
  220. messageBox("저장이","I002");
  221. }else{
  222. messageBox("저장","E009");
  223. return;
  224. }
  225. var focus = grd_deprcbase.row;
  226. btn_search.dispatch("DOMActivate");
  227. grd_deprcbase.row = focus;
  228. grd_deprcbase.dispatch("ondblclick");
  229. ]]>
  230. </script>
  231. </button>
  232. <select1 id="cmb_repaymthd" visibility="hidden" appearance="minimal" style="left:360px; top:75px; width:70px; height:19px; ">
  233. <choices>
  234. <itemset>
  235. <label/>
  236. <value/>
  237. </itemset>
  238. </choices>
  239. </select1>
  240. <button id="btn_save2" class="btn2_letter2" style="left:1120px; top:75px; width:42px; height:19px; ">
  241. <caption>저장</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. model.removeNodeset("/root/send/save/deprcbaselist");
  245. model.removeNodeset("/root/send/save/deprcbasesublist");
  246. updtdata = getGridUpdateData(grd_deprcbasesub);
  247. if(updtdata == ""){
  248. messageBox("저장할 데이타가 ","E014");
  249. return false;
  250. }
  251. model.makeValue("/root/send/save/deprcbasesublist", updtdata);
  252. if (submit("TXRFC01002")){
  253. messageBox("저장이","I002");
  254. }else{
  255. messageBox("저장","E009");
  256. return;
  257. }
  258. model.removeNodeset("/root/main/list/deprcbasesubinfo/deprcbasesublist");
  259. var focus = grd_deprcbase.row;
  260. btn_search.dispatch("DOMActivate");
  261. grd_deprcbase.row = focus;
  262. grd_deprcbase.dispatch("ondblclick");
  263. // btn_search.dispatch("DOMActivate");
  264. ]]>
  265. </script>
  266. </button>
  267. <line id="line2" class="line_1" style="x1:590px; y1:98px; x2:1170px; y2:98px; "/>
  268. <datagrid id="grd_deprcbasesub" nodeset="/root/main/list/deprcbasesubinfo/deprcbasesublist" caption="기관코드^물품구분^대분류^중분류^중분류^상각방법^상각년수^신규구분" colsep="^" colwidth="10, 10, 10, 52, 240, 112, 88, 10" 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; ">
  269. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  270. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  271. <col ref="lrgcd" visibility="hidden"/>
  272. <col ref="mdlcd" style="text-align:center; "/>
  273. <col ref="mdlnm" style="text-align:left; padding-left:10; "/>
  274. <col ref="repaymthd" type="combo" style="text-align:center; ">
  275. <choices>
  276. <itemset nodeset="/root/init/cmb_repaymthd/comcodelist">
  277. <label ref="cdnm"/>
  278. <value ref="cdid"/>
  279. </itemset>
  280. </choices>
  281. </col>
  282. <col ref="cntsyearno" type="input" style="text-align:right; padding-right:10; "/>
  283. <col ref="newflag" visibility="hidden"/>
  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>