SMRAS07000_손익계산서.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  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. <list>
  11. <fnworksheet/>
  12. </list>
  13. </main>
  14. <send>
  15. <moneyunit/>
  16. <instcd/>
  17. <ym/>
  18. <ym2/>
  19. <ym3/>
  20. <qurtyy>01</qurtyy>
  21. <halfyy>001</halfyy>
  22. <cadl>01</cadl>
  23. <acntclsflag/>
  24. <retrparams>
  25. <instnm/>
  26. <todd/>
  27. <fromdd/>
  28. <prntkind>23</prntkind>
  29. <termflag/>
  30. </retrparams>
  31. <termflag>1</termflag>
  32. <quartterm/>
  33. <prntkind>23</prntkind>
  34. </send>
  35. <init>
  36. <acntclsflag>
  37. <cd>2</cd>
  38. <nm>목</nm>
  39. </acntclsflag>
  40. <acntclsflag>
  41. <cd>1</cd>
  42. <nm>세목</nm>
  43. </acntclsflag>
  44. <moneyunit>
  45. <cd>1</cd>
  46. <nm>원</nm>
  47. </moneyunit>
  48. <moneyunit>
  49. <cd>1000</cd>
  50. <nm>천원</nm>
  51. </moneyunit>
  52. <moneyunit>
  53. <cd>1000000</cd>
  54. <nm>백만원</nm>
  55. </moneyunit>
  56. </init>
  57. <temp/>
  58. <hidden>
  59. <cardinalnumberinfo>
  60. <cardinalnumber/>
  61. </cardinalnumberinfo>
  62. <termflag>year</termflag>
  63. <list>
  64. <managementbalancesheet/>
  65. </list>
  66. </hidden>
  67. </root>
  68. </instance>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  75. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  76. <script type="javascript" src="../../../mis/miscommonweb/js/RAM001.js"/>
  77. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  78. <script type="javascript" ev:event="xforms-ready">
  79. <![CDATA[
  80. fInitialize();
  81. fgetcardinalnumber();
  82. fSetGridTitle();
  83. ]]>
  84. </script>
  85. <script type="javascript">
  86. <![CDATA[
  87. function fInitialize()
  88. {
  89. fSetDayMonthDate();
  90. misfComboComCdList("Z0007", cmb_instcd, "N");
  91. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  92. radfCheckInstSearchAuth(getUserInfo("dutplceinstcd"), cmb_instcd);
  93. cmb_instcd.refresh();
  94. rdo_moneyunit.value = '1';
  95. rdo_acntclsflag.value = '1';
  96. model.removenode("/root/main/list/fnworksheet");
  97. model.removenode("/root/hidden/list/managementbalancesheet");
  98. swt_1.selectedIndex = 0;
  99. btn_65.dispatch("onclick");
  100. model.refresh();
  101. }
  102. function fSetDayMonthDate()
  103. {
  104. ipt_fromdd.value = getCurrentDate().substr(0, 6);
  105. ipt_todd.value = getCurrentDate().substr(0, 4);
  106. ipt_fromdd.refresh();
  107. }
  108. function fCheckAuth()
  109. {
  110. btn_search.disabled = !checkAuth("R");
  111. // if(getUserInfo("dutplceinstcd")) != "103") cmb_instcd.disabled = true;
  112. }
  113. function fSetGridTitle()
  114. {
  115. var sCaption = grd_managementbalancesheet.caption;
  116. var Caption = sCaption.split("|");
  117. var leftCaption = Caption[0];
  118. var rightCaption = Caption[1];
  119. // alert(leftCaption);
  120. // alert(rightCaption);
  121. var arrCaption = leftCaption.split("^");
  122. sCaption = "";
  123. for(var i=0 ; i<arrCaption.length ; i++)
  124. //순번^계정분류구분^계정코드^계정명^계산식^빈칸1^제 5 (당)기^제 5 (당)기^제 5 (당)기^제 5 (당)기^빈칸2^제 4 (전)기^제 4 (전)기^제 4 (전)기^제 4 (전)기^Line계산|순번^계정분류구분^계정코드^계정명^계산식^빈칸1^월계^월계^누계^누계^빈칸2^월계^월계^누계^누계^Line계산
  125. {
  126. if(i == 11 || i == 12 || i == 13 || i == 14)
  127. {
  128. sCaption = sCaption + "제 " + (parseInt(model.getValue("/root/hidden/cardinalnumberinfo/cardinalnumber"),10)).toString() + " (당)기";
  129. }
  130. else if(i == 16 || i== 17 || i == 18 || i == 19)
  131. {
  132. sCaption = sCaption + "제 " + (parseInt(model.getValue("/root/hidden/cardinalnumberinfo/cardinalnumber"),10)-1).toString() + " (전)기";
  133. }
  134. else
  135. {
  136. sCaption = sCaption + arrCaption[i];
  137. }
  138. if(i+1 != arrCaption.length)
  139. {
  140. sCaption = sCaption + "^";
  141. }
  142. }
  143. //alert(sCaption)
  144. grd_presentationbalancesheet.caption = sCaption;
  145. grd_managementbalancesheet.caption = sCaption + "|" + rightCaption;
  146. grd_presentationbalancesheet.rowHeight(0) = 36;
  147. grd_managementbalancesheet.rowHeight(0) = 20;
  148. }
  149. function fgetcardinalnumber()
  150. {
  151. submit("TRRAM00202");
  152. }
  153. function getCadl(){
  154. var tmp;
  155. var i;
  156. var tmp2
  157. var j;
  158. if(model.getValue("/root/send/cadl")=="01"){
  159. //model.setValue("/root/send/ym",(new Date()).getDateFormat("YYYYMM"));
  160. ipt_fromdd.visible = true;
  161. ipt_todd.visible = false;
  162. cmb_qurtyy.visible = false;
  163. cmb_halfyy.visible = false;
  164. grd_managementbalancesheet.caption = "순번^계정분류구분^계정코드^계정명^계산식^옵션1^옵션2^옵션3^옵션4^옵션5^빈칸1^제 29 (당)기^제 29 (당)기^제 29 (당)기^제 29 (당)기^빈칸2^제 28 (전)기^제 28 (전)기^제 28 (전)기^제 28 (전)기^Line계산|순번^계정분류구분^계정코드^계정명^계산식^옵션1^옵션2^옵션3^옵션4^옵션5^빈칸1^월계^월계^누계^누계^빈칸2^월계^월계^누계^누계^Line계산";
  165. tmp = "0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 5, 110, 110, 110, 110, 5, 110, 110, 110, 110, 100".split(", ");
  166. for(i=0 ;i<grd_managementbalancesheet.cols; i++){
  167. if(i > tmp.length){
  168. grd_managementbalancesheet.colWidth(i) = 0;
  169. }else{
  170. grd_managementbalancesheet.colWidth(i+1) = tmp[i];
  171. }
  172. }
  173. grd_exceloutput1.caption = "계정명^월계^월계^당기^당기^전기^전기";
  174. tmp = "265, 100, 100, 100, 100, 100, 100".split(", ");
  175. for(j=0 ;j<grd_exceloutput1.cols; j++){
  176. if(j > tmp.length){
  177. grd_exceloutput1.colWidth(j) = 0;
  178. }else{
  179. grd_exceloutput1.colWidth(j+1) = tmp[j];
  180. }
  181. }
  182. }else if(model.getValue("/root/send/cadl")=="02"){
  183. //model.setValue("/root/send/ym3" , model.getValue("/root/send/ym").substring(0,4));
  184. ipt_fromdd.visible = false;
  185. ipt_todd.visible = true;
  186. cmb_qurtyy.visible = true;
  187. cmb_halfyy.visible = false;
  188. //model.setValue("/root/send/ym3",(new Date()).getDateFormat("YYYY"));
  189. if(model.getValue("/root/send/qurtyy") == "01"){
  190. model.setValue("/root/send/ym",model.getValue("/root/send/ym3") + "01");
  191. model.setValue("/root/send/ym2",model.getValue("/root/send/ym3") + "03");
  192. }else if(model.getValue("/root/send/qurtyy") == "02"){
  193. model.setValue("/root/send/ym",model.getValue("/root/send/ym3") + "04");
  194. model.setValue("/root/send/ym2",model.getValue("/root/send/ym3") + "06");
  195. }else if(model.getValue("/root/send/qurtyy") == "03"){
  196. model.setValue("/root/send/ym",model.getValue("/root/send/ym3") + "07");
  197. model.setValue("/root/send/ym2",model.getValue("/root/send/ym3") + "09");
  198. }else if(model.getValue("/root/send/qurtyy") == "01"){
  199. model.setValue("/root/send/ym",model.getValue("/root/send/ym3") + "10");
  200. model.setValue("/root/send/ym2",model.getValue("/root/send/ym3") + "12");
  201. }
  202. grd_managementbalancesheet.caption = "순번^계정분류구분^계정코드^계정명^계산식^옵션1^옵션2^옵션3^옵션4^옵션5^빈칸1^제 5 (당)기^제 5 (당)기^제 5 (당)기^제 5 (당)기^빈칸2^제 4 (전)기^제 4 (전)기^제 4 (전)기^제 4 (전)기^Line계산|순번^계정분류구분^계정코드^계정명^계산식^옵션1^옵션2^옵션3^옵션4^옵션5^빈칸1^분기계^분기계^누계^누계^빈칸2^분기계^분기계^누계^누계^Line계산";
  203. tmp = "0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 5, 110, 110, 110, 110, 5, 110, 110, 110, 110, 100".split(", ");
  204. for(i=0 ;i<grd_managementbalancesheet.cols; i++){
  205. if(i > tmp.length){
  206. grd_managementbalancesheet.colWidth(i) = 0;
  207. }else{
  208. grd_managementbalancesheet.colWidth(i+1) = tmp[i];
  209. }
  210. }
  211. grd_exceloutput1.caption = "계정명^분기계^분기계^당기^당기^전기^전기";
  212. tmp = "265, 100, 100, 100, 100, 100, 100".split(", ");
  213. for(j=0 ;j<grd_exceloutput1.cols; j++){
  214. if(j > tmp.length){
  215. grd_exceloutput1.colWidth(j) = 0;
  216. }else{
  217. grd_exceloutput1.colWidth(j+1) = tmp[j];
  218. }
  219. }
  220. }else if(model.getValue("/root/send/cadl")=="03"){
  221. ipt_fromdd.visible = false;
  222. ipt_todd.visible = true;
  223. cmb_qurtyy.visible = false;
  224. cmb_halfyy.visible = true;
  225. //model.setValue("/root/send/ym3" , model.getValue("/root/send/ym").substring(0,4));
  226. if(model.getValue("/root/send/halfyy") == "001"){
  227. model.setValue("/root/send/ym",model.getValue("/root/send/ym3") + "01");
  228. model.setValue("/root/send/ym2",model.getValue("/root/send/ym3") + "06");
  229. model.refresh();
  230. }else if(model.getValue("/root/send/halfyy") == "002"){
  231. model.setValue("/root/send/ym",model.getValue("/root/send/ym3") + "07");
  232. model.setValue("/root/send/ym2",model.getValue("/root/send/ym3") + "12");
  233. model.refresh();
  234. }model.refresh();
  235. grd_managementbalancesheet.caption = "순번^계정분류구분^계정코드^계정명^계산식^옵션1^옵션2^옵션3^옵션4^옵션5^빈칸1^제 5 (당)기^제 5 (당)기^제 5 (당)기^제 5 (당)기^빈칸2^제 4 (전)기^제 4 (전)기^제 4 (전)기^제 4 (전)기^Line계산|순번^계정분류구분^계정코드^계정명^계산식^옵션1^옵션2^옵션3^옵션4^옵션5^빈칸1^반기계^반기계^누계^누계^빈칸2^반기계^반기계^누계^누계^Line계산";
  236. tmp = "0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 5, 110, 110, 110, 110, 5, 110, 110, 110, 110, 100".split(", ");
  237. for(i=0 ;i<grd_managementbalancesheet.cols; i++){
  238. if(i > tmp.length){
  239. grd_managementbalancesheet.colWidth(i) = 0;
  240. }else{
  241. grd_managementbalancesheet.colWidth(i+1) = tmp[i];
  242. }
  243. }
  244. grd_exceloutput1.caption = "계정명^반기계^반기계^당기^당기^전기^전기";
  245. tmp = "265, 100, 100, 100, 100, 100, 100".split(", ");
  246. for(j=0 ;j<grd_exceloutput1.cols; j++){
  247. if(j > tmp.length){
  248. grd_exceloutput1.colWidth(j) = 0;
  249. }else{
  250. grd_exceloutput1.colWidth(j+1) = tmp[j];
  251. }
  252. }
  253. }
  254. model.refresh();
  255. }
  256. ]]>
  257. </script>
  258. <submission id="TRRAM00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/cardinalnumberinfo"/>
  259. <submission id="TRRAS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  260. </model>
  261. </xhtml:head>
  262. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  263. <group id="grp_1" style="left:0px; top:0px; width:1195px; height:13px; ">
  264. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">손익계산서</caption>
  265. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  266. </group>
  267. <group id="grp_3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  268. <group id="grp_sea" style="left:0px; top:10px; width:1195; height:35px; vertical-align:top; ">
  269. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  270. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
  271. <caption>조회</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. model.removeNodeset("/root/main/list/fnworksheet");
  275. model.removeNodeset("/root/hidden/list/managementbalancesheet");
  276. model.refresh();
  277. fgetcardinalnumber();
  278. fSetGridTitle();
  279. submit("TRRAS00102");
  280. ramfCashFlowFormula("/root/main/list/fnworksheet", 'seq', 'calform', 'onlym1,totts1,befym1,totbf1', 'onlym1,totts1,befym1,totbf1', 'prntnm1,prntnm2', "1", "N");
  281. for(var i = 1 ; i <= model.instance1.selectNodes("/root/main/list/fnworksheet").length ; i++)
  282. {
  283. if(model.getValue("/root/main/list/fnworksheet[" + i + "]/prntnm4") == "PN")
  284. {
  285. if(parseInt(model.getValue("/root/main/list/fnworksheet[" + i + "]/onlym1")) < 0) model.setValue("/root/main/list/fnworksheet[" + i + "]/onlym1", 0);
  286. if(parseInt(model.getValue("/root/main/list/fnworksheet[" + i + "]/totts1")) < 0) model.setValue("/root/main/list/fnworksheet[" + i + "]/totts1", 0);
  287. if(parseInt(model.getValue("/root/main/list/fnworksheet[" + i + "]/befym1")) < 0) model.setValue("/root/main/list/fnworksheet[" + i + "]/befym1", 0);
  288. if(parseInt(model.getValue("/root/main/list/fnworksheet[" + i + "]/totbf1")) < 0) model.setValue("/root/main/list/fnworksheet[" + i + "]/totbf1", 0);
  289. }
  290. if(model.getValue("/root/main/list/fnworksheet[" + i + "]/prntnm4") == "NN")
  291. {
  292. if(parseInt(model.getValue("/root/main/list/fnworksheet[" + i + "]/onlym1")) > 0) model.setValue("/root/main/list/fnworksheet[" + i + "]/onlym1", 0);
  293. if(parseInt(model.getValue("/root/main/list/fnworksheet[" + i + "]/totts1")) > 0) model.setValue("/root/main/list/fnworksheet[" + i + "]/totts1", 0);
  294. if(parseInt(model.getValue("/root/main/list/fnworksheet[" + i + "]/befym1")) > 0) model.setValue("/root/main/list/fnworksheet[" + i + "]/befym1", 0);
  295. if(parseInt(model.getValue("/root/main/list/fnworksheet[" + i + "]/totbf1")) > 0) model.setValue("/root/main/list/fnworksheet[" + i + "]/totbf1", 0);
  296. }
  297. }
  298. var cnt = 1;
  299. for(var i = 1 ; i <= model.instance1.selectNodes("/root/main/list/fnworksheet").length ; i++)
  300. {
  301. model.makeNode("/root/hidden/list/managementbalancesheet[" + cnt + "]")
  302. model.copyNode("/root/hidden/list/managementbalancesheet[" + cnt + "]", "/root/main/list/fnworksheet[" + i + "]");
  303. cnt++;
  304. }
  305. model.refresh();
  306. ramfSheetColor(grd_managementbalancesheet, rdo_acntclsflag.value, "prntnm");
  307. ramfSheetColor(grd_presentationbalancesheet, rdo_acntclsflag.value, "prntnm");
  308. ramfLineSetting("/root/send/acntclsflag", "/root/hidden/list/managementbalancesheet", "calline");
  309. var d = new Date();
  310. d.setYear(parseInt(ipt_fromdd.value.substr(0,4), 10));
  311. d.setMonth(parseInt(ipt_fromdd.value.substr(4,2), 10) - 1);
  312. d.setDate(1);
  313. model.setValue("/root/send/retrparams/fromdd", ipt_fromdd.value.substr(0,4) + "." + ipt_fromdd.value.substr(4,2) + ".01");
  314. model.setValue("/root/send/retrparams/todd", ipt_fromdd.value.substr(0,4) + "." + ipt_fromdd.value.substr(4,2) + "." + d.getMonthDay());
  315. model.setValue("/root/send/retrparams/termflag", model.getValue("/root/hidden/termflag"));
  316. grd_managementbalancesheet.colStyle(grd_managementbalancesheet.colRef("temp1"), "all", "background-color") = "#0000ff";
  317. grd_managementbalancesheet.colStyle(grd_managementbalancesheet.colRef("temp2"), "all", "background-color") = "#0000ff";
  318. grd_presentationbalancesheet.colStyle(grd_managementbalancesheet.colRef("temp1"), "all", "background-color") = "#0000ff";
  319. grd_presentationbalancesheet.colStyle(grd_managementbalancesheet.colRef("temp2"), "all", "background-color") = "#0000ff";
  320. model.refresh();
  321. ]]>
  322. </script>
  323. </button>
  324. <line id="lin_5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  325. <caption id="caption1" class="search_name" style="left:185px; top:9px; width:86px; height:17px; ">기 간 :</caption>
  326. <select1 id="rdo_moneyunit" ref="/root/send/moneyunit" class="radio_search" overflow="visible" appearance="full" cellspacing="15" cols="3" style="left:710px; top:9px; width:165px; height:20px; vertical-align:middle; border-style:none; ">
  327. <choices>
  328. <itemset nodeset="/root/init/moneyunit">
  329. <label ref="nm"/>
  330. <value ref="cd"/>
  331. </itemset>
  332. </choices>
  333. </select1>
  334. <input id="ipt_fromdd" ref="/root/send/ym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:317px; top:8px; width:85px; height:19px; ">
  335. <script type="javascript" ev:event="xforms-value-changed">
  336. <![CDATA[
  337. getCadl();
  338. ]]>
  339. </script>
  340. </input>
  341. <caption id="caption7" class="search_name" style="left:1px; top:9px; width:86px; height:17px; ">기 관 :</caption>
  342. <select1 id="rdo_acntclsflag" ref="/root/send/acntclsflag" class="radio_search" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:1000px; top:9px; width:105px; height:20px; vertical-align:middle; border-style:none; ">
  343. <choices>
  344. <itemset nodeset="/root/init/acntclsflag">
  345. <label ref="nm"/>
  346. <value ref="cd"/>
  347. </itemset>
  348. </choices>
  349. </select1>
  350. <caption id="caption2" class="search_name" style="left:890px; top:9px; width:120px; height:17px; ">목/세목 단위 :</caption>
  351. <caption id="caption9" class="search_name" style="left:620px; top:9px; width:100px; height:17px; ">화 폐 단 위 :</caption>
  352. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:65px; top:9px; width:105px; height:19px; ">
  353. <choices>
  354. <itemset>
  355. <label/>
  356. <value/>
  357. </itemset>
  358. </choices>
  359. </select1>
  360. <select1 id="cmb_cadl" ref="/root/send/cadl" appearance="minimal" style="left:256px; top:8px; width:59px; height:19px; ">
  361. <choices>
  362. <item>
  363. <label>월</label>
  364. <value>01</value>
  365. </item>
  366. <item>
  367. <label>분기</label>
  368. <value>02</value>
  369. </item>
  370. <item>
  371. <label>반기</label>
  372. <value>03</value>
  373. </item>
  374. </choices>
  375. <script type="javascript" ev:event="xforms-value-changed">
  376. <![CDATA[
  377. getCadl();
  378. ]]>
  379. </script>
  380. </select1>
  381. <select1 id="cmb_qurtyy" ref="/root/send/qurtyy" visibility="hidden" overflow="visible" appearance="full" cols="5" style="left:409px; top:10px; width:206px; height:20px; border-style:none; ">
  382. <choices>
  383. <item>
  384. <label>1분기</label>
  385. <value>01</value>
  386. </item>
  387. <item>
  388. <label>2분기</label>
  389. <value>02</value>
  390. </item>
  391. <item>
  392. <label>3분기</label>
  393. <value>03</value>
  394. </item>
  395. <item>
  396. <label>4분기</label>
  397. <value>04</value>
  398. </item>
  399. </choices>
  400. <script type="javascript" ev:event="xforms-value-changed">
  401. <![CDATA[
  402. getCadl();
  403. //model.refresh();
  404. ]]>
  405. </script>
  406. </select1>
  407. <select1 id="cmb_halfyy" ref="/root/send/halfyy" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:410px; top:10px; width:170px; height:20px; border-style:none; ">
  408. <choices>
  409. <item>
  410. <label>상반기</label>
  411. <value>001</value>
  412. </item>
  413. <item>
  414. <label>하반기</label>
  415. <value>002</value>
  416. </item>
  417. </choices>
  418. <script type="javascript" ev:event="xforms-value-changed">
  419. <![CDATA[
  420. getCadl();
  421. //model.refresh();
  422. ]]>
  423. </script>
  424. </select1>
  425. <input id="ipt_todd" ref="/root/send/ym3" class="input_s_essential" visibility="hidden" inputtype="date" format="yyyy" style="left:317px; top:8px; width:68px; height:19px; ">
  426. <script type="javascript" ev:event="xforms-value-changed">
  427. <![CDATA[
  428. getCadl();
  429. ]]>
  430. </script>
  431. </input>
  432. </group>
  433. <case id="case2" selected="true">
  434. <caption id="caption2" style="left:130px; top:95px; width:100px; height:20px; vertical-align:middle; ">caption2</caption>
  435. </case>
  436. <switch id="swt_1" class="sw_box" style="left:0px; top:70px; width:1195px; height:669px; border-style:solid; ">
  437. <case id="case1" selected="true">
  438. <caption id="caption21" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">관 리 용</caption>
  439. <line id="lin_3" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
  440. <datagrid id="grd_managementbalancesheet" nodeset="/root/hidden/list/managementbalancesheet" backcoloralternate="#ffffff" caption="순번^계정분류구분^계정코드^계정명^계산식^옵션1^옵션2^옵션3^옵션4^옵션5^빈칸1^제 5 (당)기^제 5 (당)기^제 5 (당)기^제 5 (당)기^빈칸2^제 4 (전)기^제 4 (전)기^제 4 (전)기^제 4 (전)기^Line계산|순번^계정분류구분^계정코드^계정명^계산식^옵션1^옵션2^옵션3^옵션4^옵션5^빈칸1^월계^월계^누계^누계^빈칸2^월계^월계^누계^누계^Line계산" colsep="^" colwidth="0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 5, 110,110, 110, 110, 5, 110, 110, 110, 110, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:632px; font-size:10pt; ">
  441. <col ref="seq"/>
  442. <col ref="acntclsflag"/>
  443. <col ref="dspacnt"/>
  444. <col ref="prntnm"/>
  445. <col ref="calform"/>
  446. <col ref="prntnm1"/>
  447. <col ref="prntnm2"/>
  448. <col ref="prntnm3"/>
  449. <col ref="prntnm4"/>
  450. <col ref="prntnm5"/>
  451. <col ref="temp1" style="background-color:#0000ff; "/>
  452. <col ref="onlym0" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  453. <col ref="onlym1" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  454. <col ref="totts0" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  455. <col ref="totts1" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  456. <col ref="temp2" style="background-color:#0000ff; "/>
  457. <col ref="befym0" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  458. <col ref="befym1" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  459. <col ref="totbf0" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  460. <col ref="totbf1" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  461. <col ref="calline"/>
  462. </datagrid>
  463. <button id="btn_9" class="btn2_letter4" style="left:1127px; top:4px; width:64px; height:19px; text-align:left; ">
  464. <caption>엑셀출력</caption>
  465. <script type="javascript" ev:event="DOMActivate">
  466. <![CDATA[
  467. //radfSaveExcel(grd_exceloutput1);
  468. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  469. grd_exceloutput1.saveExcel(fileName,"SheetName:sheet1");
  470. ]]>
  471. </script>
  472. </button>
  473. <datagrid id="grd_exceloutput1" nodeset="/root/hidden/list/managementbalancesheet" visibility="hidden" backcoloralternate="#ffffff" caption="계정명^월계^월계^당기^당기^전기^전기" colsep="^" colwidth="265, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:20px; top:175px; width:1128px; height:212px; ">
  474. <col ref="prntnm"/>
  475. <col ref="onlym0" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  476. <col ref="onlym1" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  477. <col ref="totts0" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  478. <col ref="totts1" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  479. <col ref="totbf0" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  480. <col ref="totbf1" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  481. </datagrid>
  482. </case>
  483. <case id="case2">
  484. <caption id="caption5" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">제 출 용</caption>
  485. <line id="lin_1" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
  486. <datagrid id="grd_presentationbalancesheet" nodeset="/root/hidden/list/managementbalancesheet" backcoloralternate="#ffffff" caption="계정구분^계정분류구분^계정코드^계정명^계산식^옵션1^옵션2^옵션3^옵션4^옵션5^제 5 (당)기 월계^제 5 (당)기 월계^제 5 (당)기^제 5 (당)기^제 4 (전)기^제 4 (전)기^Line계산" colsep="^" colwidth="0, 0, 0, 365, 0, 0, 0, 0, 0, 0, 5, 0,0, 185, 185, 5, 0, 0, 185, 185, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:632px; ">
  487. <col ref="acntflag" visibility="hidden"/>
  488. <col ref="acntclsflag" visibility="hidden"/>
  489. <col ref="dspacnt" visibility="hidden"/>
  490. <col ref="prntnm"/>
  491. <col ref="calform"/>
  492. <col ref="prntnm1"/>
  493. <col ref="prntnm2"/>
  494. <col ref="prntnm3"/>
  495. <col ref="prntnm4"/>
  496. <col ref="prntnm5"/>
  497. <col ref="temp1" style="background-color:#0000ff; "/>
  498. <col ref="onlym0" visibility="hidden" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  499. <col ref="onlym1" visibility="hidden" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  500. <col ref="totts0" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  501. <col ref="totts1" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  502. <col ref="temp2" style="background-color:#0000ff; "/>
  503. <col ref="befym0" visibility="hidden" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  504. <col ref="befym1" visibility="hidden" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  505. <col ref="totbf0" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  506. <col ref="totbf1" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  507. <col ref="calline" visibility="hidden"/>
  508. <col ref="calline" visibility="hidden"/>
  509. </datagrid>
  510. <button id="btn_2" class="btn2_letter4" style="left:1127px; top:4px; width:64px; height:19px; text-align:left; ">
  511. <caption>엑셀출력</caption>
  512. <script type="javascript" ev:event="DOMActivate">
  513. <![CDATA[
  514. //radfSaveExcel(grd_exceloutput2);
  515. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  516. grd_exceloutput2.saveExcel(fileName,"SheetName:sheet1");
  517. ]]>
  518. </script>
  519. </button>
  520. <datagrid id="grd_exceloutput2" nodeset="/root/hidden/list/managementbalancesheet" visibility="hidden" backcoloralternate="#ffffff" caption="계정명^당기^당기^전기^전기" colsep="^" colwidth="265, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:20px; top:175px; width:1128px; height:212px; ">
  521. <col ref="prntnm"/>
  522. <col ref="totts0" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  523. <col ref="totts1" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  524. <col ref="totbf0" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  525. <col ref="totbf1" format="(-)#,###" savetype="digit" style="text-align:right; padding-right:1; "/>
  526. </datagrid>
  527. </case>
  528. </switch>
  529. <button id="btn_65" class="btn_sw" group="tab" selected="true" style="left:0px; top:50px; width:68px; height:22px; ">
  530. <caption>관 리 용</caption>
  531. <toggle case="case1" ev:event="onclick"/>
  532. <script type="javascript" ev:event="DOMActivate">
  533. <![CDATA[
  534. cmb_cadl.disabled = false;
  535. getCadl();
  536. ]]>
  537. </script>
  538. </button>
  539. <button id="btn_1" class="btn_sw" group="tab" selected="true" style="left:68px; top:50px; width:68px; height:22px; ">
  540. <caption>제 출 용</caption>
  541. <toggle case="case2" ev:event="onclick"/>
  542. <script type="javascript" ev:event="DOMActivate">
  543. <![CDATA[
  544. cmb_cadl.value = "01" ;
  545. cmb_cadl.disabled = true;
  546. model.refresh();
  547. ]]>
  548. </script>
  549. </button>
  550. <select1 id="rdo_termflag" ref="/root/hidden/termflag" class="radio_search" visibility="hidden" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:920px; top:49px; width:175px; height:20px; vertical-align:middle; border-style:none; ">
  551. <choices>
  552. <itemset nodeset="/root/init/termflag">
  553. <label ref="nm"/>
  554. <value ref="cd"/>
  555. </itemset>
  556. </choices>
  557. </select1>
  558. <caption id="caption3" class="search_name" visibility="hidden" style="left:805px; top:49px; width:120px; height:17px; ">조 회 구 분 :</caption>
  559. <input id="ipt_ym2" ref="/root/send/ym2" visibility="hidden" style="left:635px; top:50px; width:65px; height:19px; "/>
  560. </group>
  561. <group id="grp_4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  562. <line id="lin_2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  563. <button id="btn_11" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  564. <caption>출력</caption>
  565. <script type="javascript" ev:event="DOMActivate">
  566. <![CDATA[
  567. if(grd_presentationbalancesheet.rows == grd_presentationbalancesheet.fixedRows)
  568. {
  569. messageBox("출력할 내용이" ,"I004");
  570. return;
  571. }
  572. model.setValue("/root/send/retrparams/instnm", "의료법인 혜원의료재단");
  573. ramfLineSetting("/root/send/acntclsflag", "/root/main/list/fnworksheet", "calline");
  574. if(swt_1.selectedIndex == 0)
  575. {
  576. exeReportPreview("RPRAM00201", "XMLSTR", "/root/send/retrparams");
  577. }
  578. else
  579. {
  580. exeReportPreview("RPRAM00202", "XMLSTR", "/root/send/retrparams");
  581. }
  582. ]]>
  583. </script>
  584. </button>
  585. </group>
  586. </xhtml:body>
  587. </xhtml:html>