SMRAR01800_처분자산감가상각.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  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. <maindatalist>
  11. <instcd/>
  12. <jasanno/>
  13. <jasanname/>
  14. <kyukyeok/>
  15. <getdate/>
  16. <danga1/>
  17. <upnayongy/>
  18. <sangakyoul/>
  19. <jukwanbuseo/>
  20. <acntcd/>
  21. <acntnm/>
  22. <cheobunqty/>
  23. <cheobunkeum/>
  24. <cheobunjsak/>
  25. <cheobunsonik/>
  26. <cheobunhow/>
  27. <cheobunskbi/>
  28. <cheobuncdkeum/>
  29. <cheobundate/>
  30. <lastupdtdt/>
  31. <fstrgstrid/>
  32. <fstrgstdt/>
  33. <cheobungubun/>
  34. <jasanak/>
  35. <jasancd/>
  36. <jasansu/>
  37. <fixjssta/>
  38. <skprocode/>
  39. <oldcheobunqty/>
  40. <getqty/>
  41. <oldskprocode/>
  42. <oldfixjssta/>
  43. <boyubuseonm/>
  44. <boyubuseo/>
  45. <boyuqty/>
  46. <sumjasan/>
  47. </maindatalist>
  48. <maindataselect>
  49. </maindataselect>
  50. <maindataadd/>
  51. </main>
  52. <send>
  53. <instcd_search/>
  54. <cheobundate/>
  55. <fixasetcd_search/>
  56. <fixasetnm_search/>
  57. </send>
  58. <hidden>
  59. <save/>
  60. <send/>
  61. </hidden>
  62. <init>
  63. <sellmethod>
  64. <label/>
  65. <value/>
  66. </sellmethod>
  67. <selltype>
  68. <label/>
  69. <value/>
  70. </selltype>
  71. </init>
  72. <temp>
  73. <receive/>
  74. </temp>
  75. </root>
  76. </instance>
  77. <script type="javascript" ev:event="xforms-ready">
  78. <![CDATA[
  79. submit("TRRAR01803"); //처분방법, 처분유형 combo setting.
  80. misfComboComCdList("Z0007", cmb_instcd_search, "N"); //기관코드
  81. model.setValue(cmb_instcd_search.attribute("ref"), getUserInfo("dutplceinstcd"));
  82. model.removenode( "/root/main/maindatalist");
  83. var dt = new Date();
  84. var lastdt = new Date(dt.getYear(), dt.getMonth()+1, 0);
  85. ipt_cheobundate.value = getCurrentDate();
  86. model.setFocus("ipt_cheobundate");
  87. //button2.dispatch("DOMActivate");
  88. model.refresh();
  89. ]]>
  90. </script>
  91. <script type="javascript">
  92. <![CDATA[
  93. //조회
  94. function fGetMainDataList() {
  95. if (ipt_cheobundate.value == ""){
  96. messageBox("처분일자를 ","C001");
  97. return false;
  98. }
  99. return true;
  100. }
  101. //행추가
  102. function fGetAddDataList() {
  103. if (ipt_cheobundate.value == ""){
  104. messageBox("처분일자를 ","C001");
  105. return false;
  106. }
  107. if (ipt_fixasetcd_search.value == ""){
  108. messageBox("자산코드를 ","C001");
  109. return false;
  110. }
  111. if (ipt_fixasetnm_search.value == ""){
  112. messageBox("자산코드를 다시 ","C001");
  113. return false;
  114. }
  115. return true;
  116. }
  117. //저장시 입력data checking logic..
  118. function fSetChackValue()
  119. {
  120. var updtdata = getGridUpdateData(grd_main);
  121. if (updtdata == ""){
  122. messageBox("변경된 데이터가","I004");
  123. return false;
  124. }
  125. var row = grd_main.row;
  126. for ( var i = grd_main.fixedRows; i <= grd_main.rows; i++ ) {
  127. if ( grd_main.rowStatus(i)=='1' || grd_main.rowStatus(i)=='2' ) { //insert, update..
  128. if ( grd_main.valueMatrix(i, grd_main.colRef("cheobundate")).length==0 ){
  129. messageBox("처분일자를 " ,"C001");
  130. return false;
  131. }
  132. if ( grd_main.valueMatrix(i, grd_main.colRef("jasanno")).length==0 ){
  133. messageBox("자산코드를" ,"C001");
  134. return false;
  135. }
  136. if ( grd_main.valueMatrix(i, grd_main.colRef("cheobunhow")).length==0 ){
  137. messageBox("처분방법을 " ,"C002");
  138. return false;
  139. }
  140. if ( grd_main.valueMatrix(i, grd_main.colRef("cheobungubun")).length==0 ){
  141. messageBox("처분유형을 " ,"C002");
  142. return false;
  143. }
  144. if ( grd_main.valueMatrix(i, grd_main.colRef("cheobunqty")).length==0 ){
  145. messageBox("처분수량을 " ,"C001");
  146. return false;
  147. }
  148. }
  149. }
  150. //rtn = messageBox("", "Q002");
  151. //if(rtn != "6" ) return false;
  152. return true;
  153. }
  154. //행추가시 가져오는 자산정보
  155. function fGetDEPRFACD(){
  156. if( submit("TRRAR01802") ){
  157. if(model.getValue("/root/main/maindataadd/cheobundate") != ""){
  158. model.copyNode("/root/main/maindataselect", "/root/main/maindataadd");
  159. cmb_cheobunhow.disabled = true;
  160. cmb_cheobungubun.disabled = true;
  161. grp_detail.refresh();
  162. messageBox("처분된 자산","I009");
  163. return;
  164. }
  165. misfGridIUD(grd_main, "A");
  166. grd_main.valueMatrix(grd_main.row, grd_main.colRef("instcd")) = model.getValue("/root/main/maindataadd/instcd");
  167. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobundate")) = ipt_cheobundate.value;
  168. grd_main.valueMatrix(grd_main.row, grd_main.colRef("jasanno")) = model.getValue("/root/main/maindataadd/jasanno");
  169. grd_main.valueMatrix(grd_main.row, grd_main.colRef("jasanname")) = model.getValue("/root/main/maindataadd/jasanname");
  170. grd_main.valueMatrix(grd_main.row, grd_main.colRef("acntnm")) = model.getValue("/root/main/maindataadd/acntnm");
  171. grd_main.valueMatrix(grd_main.row, grd_main.colRef("kyukyeok")) = model.getValue("/root/main/maindataadd/kyukyeok");
  172. grd_main.valueMatrix(grd_main.row, grd_main.colRef("getdate")) = model.getValue("/root/main/maindataadd/getdate");
  173. grd_main.valueMatrix(grd_main.row, grd_main.colRef("danga1")) = model.getValue("/root/main/maindataadd/danga1");
  174. grd_main.valueMatrix(grd_main.row, grd_main.colRef("upnayongy")) = model.getValue("/root/main/maindataadd/upnayongy");
  175. grd_main.valueMatrix(grd_main.row, grd_main.colRef("sangakyoul")) = model.getValue("/root/main/maindataadd/sangakyoul");
  176. grd_main.valueMatrix(grd_main.row, grd_main.colRef("boyubuseonm")) = model.getValue("/root/main/maindataadd/boyubuseonm");
  177. grd_main.valueMatrix(grd_main.row, grd_main.colRef("boyubuseo")) = model.getValue("/root/main/maindataadd/boyubuseo");
  178. grd_main.valueMatrix(grd_main.row, grd_main.colRef("jasanak")) = model.getValue("/root/main/maindataadd/jasanak");
  179. grd_main.valueMatrix(grd_main.row, grd_main.colRef("jasancd")) = model.getValue("/root/main/maindataadd/jasancd");
  180. grd_main.valueMatrix(grd_main.row, grd_main.colRef("jasansu")) = model.getValue("/root/main/maindataadd/jasansu");//기초수량
  181. grd_main.valueMatrix(grd_main.row, grd_main.colRef("boyuqty")) = model.getValue("/root/main/maindataadd/boyuqty");//보유수량
  182. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobunqty")) = model.getValue("/root/main/maindataadd/cheobunqty");//처분수량
  183. grd_main.valueMatrix(grd_main.row, grd_main.colRef("fixjssta")) = model.getValue("/root/main/maindataadd/fixjssta");
  184. grd_main.valueMatrix(grd_main.row, grd_main.colRef("skprocode")) = model.getValue("/root/main/maindataadd/skprocode");
  185. grd_main.valueMatrix(grd_main.row, grd_main.colRef("getqty")) = model.getValue("/root/main/maindataadd/getqty");//취득수량
  186. grd_main.valueMatrix(grd_main.row, grd_main.colRef("flag")) = model.getValue("/root/main/maindataadd/flag");//flag
  187. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobunskbi")) = model.getValue("/root/main/maindataadd/cheobunskbi");//감가상각비
  188. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobuncdkeum"))= model.getValue("/root/main/maindataadd/cheobuncdkeum");//감가상각누계
  189. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobunjsak")) = model.getValue("/root/main/maindataadd/cheobunjsak");//처분자산가액
  190. grd_main.valueMatrix(grd_main.row, grd_main.colRef("sumjasan")) = model.getValue("/root/main/maindataadd/sumjasan");//잔존가액 쿼리에서 계산해서 던짐.(처분자산가액-감가상각누계)
  191. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobunhow")) = "1"; //처분방법
  192. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobungubun")) = "4"; //처분유형
  193. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobunkeum")) = "0"; //매각대금
  194. out_cheobunkeum.disabled="true";
  195. if(grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobunqty")) == ""){
  196. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobunhow")) = ""; //처분방법
  197. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobungubun")) = ""; //처분유형
  198. model.copyNode("/root/main/maindataselect", "/root/main/maindatalist["+ grd_main.row +"]");
  199. cmb_cheobunhow.disabled = true;
  200. cmb_cheobungubun.disabled = true;
  201. grd_main.deleteRow(grd_main.row);
  202. model.refresh();
  203. messageBox("감가상각 내역이 없는 자산은 변동자산 관리에서 폐기 ","I006");
  204. }else{
  205. grd_main.dispatch("onrowchanged");
  206. }
  207. }
  208. }
  209. //정렬 순서로 sort함.
  210. function fGetSortSeq(){
  211. var num = grd_main.rows- 1;
  212. if(rdo_seq.value == 1){
  213. grd_main.sort(1, 2, num, 2) = "asc";
  214. }else{
  215. grd_main.sort(1, 3, num, 3) = "asc";
  216. }
  217. grd_main.refresh();
  218. }
  219. //출력물순서 저장
  220. //엑셀 입력
  221. function fInputExcel(pGrid) {
  222. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  223. if(fileName != "") {
  224. pGrid.loadExcel(fileName, 1, true);
  225. pGrid.deleteRow(1);
  226. for(i = 1; i < pGrid.rows; i++) {
  227. pGrid.rowStatus(i) = 1;
  228. }
  229. pGrid.refresh();
  230. }
  231. }
  232. ]]>
  233. </script>
  234. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  235. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  236. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  237. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  238. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  239. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  240. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  241. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  242. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  243. <submission id="TRRAR01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/maindatalist"/>
  244. <submission id="TRRAR01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/maindataadd"/>
  245. <submission id="TRRAR01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  246. <submission id="TXRAR01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/save" resultref="/root/temp"/>
  247. </model>
  248. </xhtml:head>
  249. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  250. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  251. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">처분자산감가상각</caption>
  252. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  253. </group>
  254. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  255. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:38px; vertical-align:top; ">
  256. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:38; background-color:#fffbf2; border-color:#ffd799; "/>
  257. <button id="button2" class="btn1_letter2" navindex="4" style="left:1123px; top:9px; width:56px; height:22px; text-align:left; ">
  258. <caption>조회</caption>
  259. <script type="javascript" ev:event="DOMActivate">
  260. <![CDATA[
  261. if( fGetMainDataList() ) {
  262. // setAlertOn();
  263. if(submit("TRRAR01801")){
  264. if(grd_main.rows - grd_main.fixedRows > 0){
  265. grd_main.row = grd_main.fixedRows + 1;
  266. grd_main.dispatch("onrowchanged");
  267. }
  268. }
  269. model.refresh();
  270. }
  271. ]]>
  272. </script>
  273. </button>
  274. <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  275. <input id="ipt_cheobundate" ref="/root/send/cheobundate" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:345px; top:10px; width:100px; height:19px; "/>
  276. <caption id="caption3" class="search_name" style="left:256px; top:10px; width:94px; height:17px; ">처분일자 :</caption>
  277. <caption id="caption9" class="search_name" style="left:460px; top:10px; width:110px; height:17px; ">자산코드 :</caption>
  278. <input id="ipt_fixasetcd_search" ref="/root/send/fixasetcd_search" class="input_search" visibility="visible" style="left:552px; top:10px; width:95px; height:19px; ">
  279. <script type="javascript" ev:event="xforms-value-changed">
  280. <![CDATA[
  281. if(ipt_fixasetcd_search.value != "")
  282. {
  283. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm",
  284. cmb_instcd_search.value +",fixasetcd," + ipt_fixasetcd_search.value,
  285. "", "fixasetcd_search,fixasetnm_search", ipt_fixasetcd_search, "SPRSD00240",
  286. "instcd","cmb_instcd_search");
  287. }else{
  288. ipt_fixasetnm_search.value = '';
  289. }
  290. ipt_fixasetcd_search.refresh();
  291. ipt_fixasetnm_search.refresh();
  292. ]]>
  293. </script>
  294. </input>
  295. <button id="btn_fixasetcd" class="icon_search" style="left:651px; top:11px; width:16px; height:16px; ">
  296. <caption/>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. rszfOpenPopUpListByWndName(ipt_fixasetcd_search, "", "fixasetcd_search,fixasetnm_search","SPRSD00240","instcd","cmb_instcd_search");
  300. ipt_fixasetcd_search.refresh();
  301. ipt_fixasetnm_search.refresh();
  302. ]]>
  303. </script>
  304. </button>
  305. <output id="ipt_fixasetnm_search" ref="/root/send/fixasetnm_search" class="output_fix" navindex="3" appearance="output" style="left:670px; top:10px; width:200px; height:19px; "/>
  306. <select1 id="cmb_instcd_search" ref="/root/send/instcd_search" disabled="true" appearance="minimal" style="left:100px; top:10px; width:145px; height:19px; ">
  307. <choices>
  308. <itemset>
  309. <label/>
  310. <value/>
  311. </itemset>
  312. </choices>
  313. </select1>
  314. <caption id="caption1" class="search_name" style="left:10px; top:10px; width:94px; height:17px; ">기관코드 :</caption>
  315. </group>
  316. <line id="line3" class="line_1" style="x1:0px; y1:325px; x2:1194px; y2:325px; "/>
  317. <button id="button18" class="btn2_letter3" style="left:1135px; top:52px; width:53px; height:19px; ">
  318. <caption>행삭제</caption>
  319. <script type="javascript" ev:event="DOMActivate">
  320. <![CDATA[
  321. if ( grd_main.valueMatrix(grd_main.row, grd_main.colRef("jccnt")) > 0 ){
  322. messageBox( grd_main.valueMatrix(grd_main.row, grd_main.colRef("jabonjcdate")) + " 이후 취득 자료가 ","I010" );
  323. return false;
  324. }else{
  325. misfGridIUD(grd_main, "D");
  326. model.refresh();
  327. }
  328. ]]>
  329. </script>
  330. </button>
  331. <button id="btn_addrow" class="btn2_letter3" style="left:1078px; top:52px; width:53px; height:19px; ">
  332. <caption>행추가</caption>
  333. <script type="javascript" ev:event="DOMActivate">
  334. <![CDATA[
  335. var insert_cnt = 0;
  336. for ( var i = grd_main.fixedRows; i <= grd_main.rows; i++ ) {
  337. // if ( grd_main.rowStatus(i)=='1' ) { //insert
  338. // insert_cnt = insert_cnt + 1 ;
  339. // }
  340. if(grd_main.valueMatrix(i, grd_main.colRef("jasanno")) == ipt_fixasetcd_search.value){
  341. messageBox("이미 추가 된 자산","I009");
  342. return;
  343. }
  344. }
  345. if ( insert_cnt > 0) {
  346. // ("처분등록은 한번에 1건식 처리 가능합니다.\n\n1건만 저장 후 다시 해 주세요");
  347. }else{
  348. if ( fGetAddDataList() ) {
  349. fGetDEPRFACD();
  350. model.refresh();
  351. }
  352. }
  353. ]]>
  354. </script>
  355. </button>
  356. <datagrid id="grd_main" nodeset="/root/main/maindatalist" caption="기관코드^처분일자^자산번호^자산명^계정과목^보유부서^보유부서코드^규격^취득일^단가^상각율^취득수량^내용년수^보유수량^자산가액^수량^처분자산가액^감가상각비^감가상각누계^처분방법^처분유형^처분수량^매각대금^잔존가액^처분손익^jasancd^fixjssta^skprocode^flag" colsep="^" colwidth="60, 100, 100, 200, 140, 100, 100, 150, 90, 80, 70, 60, 60, 60, 90, 80, 90, 90, 90, 80, 80, 80, 80, 80, 80, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:330px; width:1194px; height:380px; ">
  357. <col ref="instcd" style="left:20px; top:23px; width:60px; height:23px; text-align:center; "/>
  358. <col ref="cheobundate" format="yyyy-mm-dd" style="text-align:center; "/>
  359. <col ref="jasanno" style="left:160px; top:23px; width:80px; height:23px; text-align:center; "/>
  360. <col ref="jasanname" style="text-align:left; vertical-align:middle; "/>
  361. <col ref="acntnm" style="text-align:left; "/>
  362. <col ref="boyubuseonm" style="text-align:left; "/>
  363. <col ref="boyubuseo" visibility="hidden"/>
  364. <col ref="kyukyeok"/>
  365. <col ref="getdate" format="yyyy-mm-dd" style="text-align:center; "/>
  366. <col ref="danga1" format="#,###" style="text-align:right; "/>
  367. <col ref="sangakyoul" style="text-align:right; "/>
  368. <col ref="getqty" style="text-align:right; "/>
  369. <col ref="upnayongy" style="left:1150px; top:23px; width:60px; height:23px; text-align:right; "/>
  370. <col ref="boyuqty"/>
  371. <col ref="jasanak" format="#,###" style="text-align:right; "/>
  372. <col ref="jasansu" format="#,###" style="text-align:right; "/>
  373. <col ref="cheobunjsak" format="#,###" style="text-align:right; "/>
  374. <col ref="cheobunskbi" format="#,###" style="text-align:right; "/>
  375. <col ref="cheobuncdkeum" format="#,###" style="text-align:right; "/>
  376. <col disabled="true" ref="cheobunhow" type="combo" style="text-align:center; ">
  377. <choices>
  378. <itemset nodeset="/root/init/sellmethod">
  379. <label ref="label"/>
  380. <value ref="value"/>
  381. </itemset>
  382. </choices>
  383. </col>
  384. <col disabled="true" ref="cheobungubun" type="combo" style="text-align:center; ">
  385. <choices>
  386. <itemset nodeset="/root/init/selltype">
  387. <label ref="label"/>
  388. <value ref="value"/>
  389. </itemset>
  390. </choices>
  391. </col>
  392. <col ref="cheobunqty" format="#,###" style="text-align:right; "/>
  393. <col ref="cheobunkeum" format="#,###" style="left:1950px; top:23px; width:80px; height:23px; text-align:right; "/>
  394. <col ref="sumjasan" format="#,###" style="left:2030px; top:23px; width:80px; height:23px; text-align:right; "/>
  395. <col ref="cheobunsonik" format="(-)#,###" style="text-align:right; "/>
  396. <col ref="jasancd"/>
  397. <col ref="fixjssta"/>
  398. <col ref="skprocode"/>
  399. <col ref="flag"/>
  400. <script type="javascript" ev:event="onaftersort">
  401. <![CDATA[
  402. grd_main.gridToInstance();
  403. ]]>
  404. </script>
  405. <script type="javascript" ev:event="onrowchanged">
  406. <![CDATA[
  407. model.copyNode("/root/main/maindataselect", "/root/main/maindatalist["+ grd_main.row +"]");
  408. if ( grd_main.rowStatus(grd_main.row)=='1'){
  409. cmb_cheobunhow.disabled = false;
  410. cmb_cheobungubun.disabled = false;
  411. }else{
  412. cmb_cheobunhow.disabled = true;
  413. cmb_cheobungubun.disabled = true;
  414. }
  415. grp_detail.refresh();
  416. ]]>
  417. </script>
  418. </datagrid>
  419. <caption id="caption21" class="tit_2" style="left:5px; top:307px; width:131px; height:13px; ">출력 목록</caption>
  420. <group id="grp_detail" scroll="auto" style="left:0px; top:79px; width:1195px; height:218px; ">
  421. <!--</group>-->
  422. <caption id="cap_goodflaghngnm" class="cell_1" style="left:1px; top:28px; width:130px; height:27px; vertical-align:middle; ">규격</caption>
  423. <caption id="cap_instcd" class="cell_1" style="left:594px; top:0px; width:130px; height:27px; vertical-align:middle; ">계정과목</caption>
  424. <output id="input1" ref="/root/main/maindataselect/jasanno" class="output_fix" visibility="visible" appearance="output" style="left:140px; top:4px; width:150px; height:19px; "/>
  425. <output id="input2" ref="/root/main/maindataselect/jasanname" class="output_fix" navindex="3" appearance="output" style="left:295px; top:4px; width:290px; height:19px; "/>
  426. <caption id="caption2" class="cell_1" style="left:299px; top:28px; width:130px; height:27px; vertical-align:middle; ">취득일</caption>
  427. <caption id="caption5" class="cell_1" style="left:1px; top:0px; width:130px; height:27px; vertical-align:middle; ">자산코드</caption>
  428. <line id="line1" class="line_2" style="x1:1px; y1:55px; x2:1191; y2:55px; "/>
  429. <line id="line6" class="line_2" style="x1:1px; y1:27px; x2:1191px; y2:27px; "/>
  430. <line id="line7" class="line_2" style="x1:1191px; y1:0px; x2:1191px; y2:85px; "/>
  431. <line id="line9" class="line_2" style="x1:0px; y1:0px; x2:0px; y2:84px; "/>
  432. <caption id="caption7" class="cell_1" style="left:896px; top:28px; width:130px; height:27px; vertical-align:middle; ">상각율</caption>
  433. <caption id="caption8" class="cell_1" style="left:1px; top:56px; width:130px; height:27px; vertical-align:middle; ">취득수량</caption>
  434. <caption id="caption10" class="cell_1" style="left:594px; top:28px; width:130px; height:27px; vertical-align:middle; ">단가</caption>
  435. <line id="line11" class="line_2" style="x1:1px; y1:83px; x2:1191px; y2:83px; "/>
  436. <caption id="caption11" class="cell_1" style="left:299px; top:56px; width:76px; height:27px; vertical-align:middle; ">내용년수</caption>
  437. <caption id="caption12" class="cell_1" style="left:594px; top:56px; width:130px; height:27px; vertical-align:middle; ">처분방법</caption>
  438. <caption id="caption13" class="cell_1" style="left:896px; top:56px; width:130px; height:27px; vertical-align:middle; ">처분유형</caption>
  439. <caption id="caption14" class="tit_2" style="left:5px; top:97px; width:131px; height:13px; ">처분전의 자산</caption>
  440. <caption id="caption15" class="tit_2" style="left:595px; top:95px; width:131px; height:13px; ">처분시의 자산</caption>
  441. <line id="line14" class="line_2" style="x1:1px; y1:146px; x2:1191px; y2:146px; "/>
  442. <caption id="caption16" class="cell_1" style="left:1px; top:119px; width:130px; height:27px; vertical-align:middle; ">자산가액</caption>
  443. <line id="line15" class="line_1" style="x1:0px; y1:114px; x2:1192px; y2:114px; "/>
  444. <caption id="caption17" class="cell_1" style="left:595px; top:119px; width:130; height:27px; vertical-align:middle; ">처분자산가액</caption>
  445. <caption id="caption18" class="cell_1" style="left:299px; top:119px; width:130px; height:27px; vertical-align:middle; ">수량</caption>
  446. <caption id="caption19" class="cell_1" style="left:595px; top:147px; width:130px; height:27px; vertical-align:middle; ">감가상각누계</caption>
  447. <caption id="cap_goodflagengnm" class="cell_1" style="left:896px; top:0px; width:130px; height:27px; vertical-align:middle; ">보유부서</caption>
  448. <caption id="caption20" class="cell_1" style="left:896px; top:119px; width:130px; height:27px; vertical-align:middle; ">감가상각비</caption>
  449. <caption id="caption22" class="cell_1" style="left:896px; top:147px; width:130px; height:27px; vertical-align:middle; ">처분수량</caption>
  450. <line id="line4" class="line_2" style="x1:1px; y1:174px; x2:1192px; y2:174px; "/>
  451. <line id="line8" class="line_2" style="x1:1191px; y1:117px; x2:1191px; y2:175px; "/>
  452. <line id="line12" class="line_1" style="x1:0px; y1:184px; x2:1192px; y2:184px; "/>
  453. <caption id="caption23" class="cell_1" style="left:0px; top:189px; width:180; height:27px; vertical-align:middle; ">매각대금</caption>
  454. <caption id="caption24" class="cell_1" style="left:398px; top:189px; width:180px; height:27px; vertical-align:middle; ">잔존가액</caption>
  455. <caption id="caption25" class="cell_1" style="left:795px; top:189px; width:180px; height:27px; vertical-align:middle; ">처분손익</caption>
  456. <line id="line13" class="line_2" style="x1:1px; y1:216px; x2:1191px; y2:216px; "/>
  457. <line id="line16" class="line_2" style="x1:0px; y1:116px; x2:0px; y2:175px; "/>
  458. <line id="line17" class="line_2" style="x1:0px; y1:186px; x2:0px; y2:217px; "/>
  459. <line id="line18" class="line_2" style="x1:1191px; y1:186px; x2:1191px; y2:217px; "/>
  460. <output id="output3" ref="/root/main/maindataselect/kyukyeok" class="output_fix" navindex="3" appearance="output" style="left:140px; top:32px; width:150px; height:19px; "/>
  461. <output id="output4" ref="/root/main/maindataselect/getdate" class="output_fix" navindex="3" format="yyyy-mm-dd" appearance="output" style="left:435px; top:32px; width:150px; height:19px; text-align:center; "/>
  462. <output id="output5" ref="/root/main/maindataselect/danga1" class="output_fix" navindex="3" format="#,###" appearance="output" style="left:733px; top:32px; width:150px; height:19px; text-align:center; "/>
  463. <output id="output6" ref="/root/main/maindataselect/sangakyoul" class="output_fix" navindex="3" appearance="output" style="left:1033px; top:32px; width:150px; height:19px; text-align:center; "/>
  464. <output id="output1" ref="/root/main/maindataselect/acntnm" class="output_fix" navindex="3" appearance="output" style="left:733px; top:4px; width:150px; height:19px; text-align:center; "/>
  465. <output id="output2" ref="/root/main/maindataselect/boyubuseonm" class="output_fix" navindex="3" appearance="output" style="left:1033px; top:4px; width:150px; height:19px; text-align:center; "/>
  466. <output id="output7" ref="/root/main/maindataselect/upnayongy" class="output_fix" navindex="3" appearance="output" style="left:380px; top:60px; width:55px; height:19px; text-align:right; "/>
  467. <output id="output8" ref="/root/main/maindataselect/getqty" class="output_fix" navindex="3" appearance="output" style="left:140px; top:60px; width:150px; height:19px; text-align:right; "/>
  468. <output id="output11" ref="/root/main/maindataselect/cheobunskbi" class="output_fix" navindex="3" format="#,###" appearance="output" style="left:1033px; top:122px; width:150px; height:19px; text-align:right; "/>
  469. <output id="output12" ref="/root/main/maindataselect/jasansu" class="output_fix" navindex="3" appearance="output" style="left:435px; top:122px; width:150px; height:19px; text-align:right; "/>
  470. <output id="output13" ref="/root/main/maindataselect/jasanak" class="output_fix" navindex="3" format="#,###" appearance="output" style="left:140px; top:122px; width:150px; height:19px; text-align:right; "/>
  471. <output id="output14" ref="/root/main/maindataselect/cheobunjsak" class="output_fix" navindex="3" format="#,###" appearance="output" style="left:733px; top:122px; width:150px; height:19px; text-align:right; "/>
  472. <input id="out_cheobunqty" ref="/root/main/maindataselect/cheobunqty" class="output_fix" navindex="3" appearance="input" style="left:1033px; top:152px; width:150px; height:19px; text-align:right; ">
  473. <script type="javascript" ev:event="xforms-value-changed">
  474. <![CDATA[
  475. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobunqty")) = out_cheobunqty.value;
  476. ]]>
  477. </script>
  478. </input>
  479. <output id="output16" ref="/root/main/maindataselect/cheobuncdkeum" class="output_fix" navindex="3" format="#,###" appearance="output" style="left:733px; top:152px; width:150px; height:19px; text-align:right; "/>
  480. <input id="out_cheobunkeum" ref="/root/main/maindataselect/cheobunkeum" navindex="3" format="#,###" appearance="input" style="left:188px; top:193px; width:200px; height:19px; text-align:right; ">
  481. <script type="javascript" ev:event="xforms-value-changed">
  482. <![CDATA[
  483. var cheobunsonik = out_cheobunkeum.value - opt_sumjasan.value;
  484. model.setValue("/root/main/maindataselect/cheobunsonik", cheobunsonik );
  485. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobunsonik")) = cheobunsonik;
  486. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobunkeum")) = out_cheobunkeum.value;
  487. model.refresh();
  488. ]]>
  489. </script>
  490. </input>
  491. <output id="opt_sumjasan" ref="/root/main/maindataselect/sumjasan" class="output_fix" navindex="3" format="#,###" appearance="output" style="left:586px; top:193px; width:200px; height:19px; text-align:right; "/>
  492. <caption id="opt_cheobunsonik" ref="/root/main/maindataselect/cheobunsonik" class="output_fix" navindex="3" format="(-)#,###" appearance="caption" style="left:983px; top:193px; width:200px; height:19px; text-align:right; "/>
  493. <select1 id="cmb_cheobunhow" ref="/root/main/maindataselect/cheobunhow" class="combo_s_essential" navindex="1" appearance="minimal" style="left:733px; top:60px; width:150px; height:19px; ">
  494. <choices>
  495. <itemset nodeset="/root/init/sellmethod">
  496. <label ref="label"/>
  497. <value ref="value"/>
  498. </itemset>
  499. </choices>
  500. <script type="javascript" ev:event="xforms-value-changed">
  501. <![CDATA[
  502. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobunhow")) = cmb_cheobunhow.value;
  503. ]]>
  504. </script>
  505. </select1>
  506. <select1 id="cmb_cheobungubun" ref="/root/main/maindataselect/cheobungubun" class="combo_s_essential" navindex="1" appearance="minimal" style="left:1033px; top:60px; width:150px; height:19px; ">
  507. <choices>
  508. <itemset nodeset="/root/init/selltype">
  509. <label ref="label"/>
  510. <value ref="value"/>
  511. </itemset>
  512. </choices>
  513. <script type="javascript" ev:event="xforms-value-changed">
  514. <![CDATA[
  515. grd_main.valueMatrix(grd_main.row, grd_main.colRef("cheobungubun")) = cmb_cheobungubun.value;
  516. if ( cmb_cheobungubun.value == "3" ) {
  517. out_cheobunkeum.disabled="false";
  518. }else{
  519. out_cheobunkeum.disabled="true";
  520. }
  521. ]]>
  522. </script>
  523. </select1>
  524. <caption id="caption26" class="cell_1" style="left:440px; top:56px; width:76px; height:27px; vertical-align:middle; ">보유수량</caption>
  525. <output id="output9" ref="/root/main/maindataselect/boyuqty" class="output_fix" navindex="3" appearance="output" style="left:520px; top:60px; width:65px; height:19px; text-align:right; "/>
  526. </group>
  527. <line id="line10" class="line_1" style="x1:0px; y1:74px; x2:1192px; y2:74px; "/>
  528. </group>
  529. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  530. <button id="btn_save" class="btn4_letter2" style="left:1132px; top:3px; width:56px; height:22px; ">
  531. <caption>저장</caption>
  532. <script type="javascript" ev:event="DOMActivate">
  533. <![CDATA[
  534. if( fSetChackValue() ) { //저장시 입력data checking logic..
  535. //입력하신 DATA를 저장 하시겠습니까?
  536. rtn = messageBox("Data변경이 일어났습니다.","Q002");
  537. if ( rtn == "6" ) {
  538. //입력,수정,삭제된 data save node 에 담기..
  539. model.setValue("/root/hidden/save",grd_main.getUpdateData());
  540. if(submit("TXRAR01801")) {
  541. button2.dispatch("DOMActivate");
  542. }
  543. }
  544. }
  545. ]]>
  546. </script>
  547. </button>
  548. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  549. </group>
  550. </xhtml:body>
  551. </xhtml:html>