SMPAE00301_원무마감집계계정관리.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPAE00301" position="absolute 0 0 1198 777" titletext="원무 수익 재무 자동분개 관리" oninit="SMPAE00301_oninit" onload="SMPAE00301_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="5" position="absolute 0 24 1195 64" class="div_SA" anchor="left top right"/>
  8. <Button position="absolute 1045 33 1101 55" id="btn_search" class="btn1" taborder="4" text="조회" anchor="top right" onclick="btn_search_onclick"/>
  9. <Button position="absolute 1140 74 1195 93" id="btn_excel1" class="btn7" text="엑셀" anchor="top right" onclick="btn_excel1_onclick"/>
  10. <Static text="원무 수익 재무 자동분개 관리" position="absolute 0 0 263 24" align="align:center middle;" id="cap_title" class="tit_1"/>
  11. <Static text="계정 목록" position="absolute 0 77 85 99" id="cap_grid" class="tit_2"/>
  12. <Shape position="absolute 0 93 1195 99" linetype="horizontal" id="line2" class="line_10" anchor="left top right"/>
  13. <Grid position="absolute 0 98 1195 588" id="grd_sscd" binddataset="ds_main_sscdlist_sscdinfo" cellsizingtype="col" anchor="all" oncellclick="grd_sscd_oncellclick" autoenter="select">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="25"/>
  18. <Column size="60"/>
  19. <Column size="35"/>
  20. <Column size="50"/>
  21. <Column size="60"/>
  22. <Column size="150"/>
  23. <Column size="150"/>
  24. <Column size="60"/>
  25. <Column size="0"/>
  26. <Column size="60"/>
  27. <Column size="0"/>
  28. <Column size="30"/>
  29. <Column size="0"/>
  30. <Column size="30"/>
  31. <Column size="0"/>
  32. <Column size="30"/>
  33. <Column size="0"/>
  34. <Column size="195"/>
  35. <Column size="60"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="95"/>
  40. <Column size="95"/>
  41. </Columns>
  42. <Rows>
  43. <Row size="24" band="head"/>
  44. <Row size="24" band="head"/>
  45. <Row size="24"/>
  46. </Rows>
  47. <Band id="head">
  48. <Cell rowspan="2" taborder="undefined"/>
  49. <Cell col="1" rowspan="2" text="집계계정" taborder="undefined"/>
  50. <Cell col="2" rowspan="2" text="순서" taborder="undefined"/>
  51. <Cell col="3" rowspan="2" text="구분" taborder="undefined"/>
  52. <Cell col="4" rowspan="2" text="대분류명" taborder="undefined"/>
  53. <Cell col="5" rowspan="2" text="중분류명" taborder="undefined"/>
  54. <Cell col="6" rowspan="2" text="소분류명" taborder="undefined"/>
  55. <Cell col="7" colspan="3" text="원 무" taborder="undefined"/>
  56. <Cell col="10" text="원 무"/>
  57. <Cell col="11" colspan="5" text="집 계" taborder="undefined"/>
  58. <Cell col="16" text="집 계"/>
  59. <Cell col="17" colspan="2" text="재 무" taborder="undefined"/>
  60. <Cell col="19" text="재 무"/>
  61. <Cell col="20" text="재 무"/>
  62. <Cell col="21" text="재 무"/>
  63. <Cell col="22" rowspan="2" text="적용시작일" taborder="undefined"/>
  64. <Cell col="23" rowspan="2" text="적용종료일" taborder="undefined"/>
  65. <Cell row="1" col="7" text="차변증감"/>
  66. <Cell row="1" col="8" text="차변명칭"/>
  67. <Cell row="1" col="9" text="대변증감"/>
  68. <Cell row="1" col="10" text="대변명칭"/>
  69. <Cell row="1" col="11" text="쿼리"/>
  70. <Cell row="1" col="12" text="쿼리"/>
  71. <Cell row="1" col="13" text="전산"/>
  72. <Cell row="1" col="14" text="전산"/>
  73. <Cell row="1" col="15" text="원무"/>
  74. <Cell row="1" col="16" text="원무"/>
  75. <Cell row="1" col="17" text="전표 적요"/>
  76. <Cell row="1" col="18" text="차변코드"/>
  77. <Cell row="1" col="19" text="차변분개"/>
  78. <Cell row="1" col="20" text="대변코드"/>
  79. <Cell row="1" col="21" text="대변분개"/>
  80. </Band>
  81. <Band id="body">
  82. <Cell celltype="head"/>
  83. <Cell col="1" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:earncls"/>
  84. <Cell col="2" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:dispseq" mask="#"/>
  85. <Cell col="3" displaytype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:ordflag" combodataset="ds_cmb_ordflag" combocodecol="value" combodatacol="label" enable="false"/>
  86. <Cell col="4" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_lrgnm);" text="bind:lrgnm" editautoselect="true"/>
  87. <Cell col="5" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_mdlnm);" text="bind:mdlnm"/>
  88. <Cell col="6" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_smlnm);" text="bind:smlnm"/>
  89. <Cell col="7" displaytype="combo" edittype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_crpammod);" text="bind:crpammod" combodataset="ds_cmb_crpammod" combocodecol="value" combodatacol="label"/>
  90. <Cell col="8" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:crpamnm"/>
  91. <Cell col="9" displaytype="combo" edittype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_drpammod);" text="bind:drpammod" combodataset="ds_cmb_crpammod" combocodecol="value" combodatacol="label"/>
  92. <Cell col="10" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:drpamnm"/>
  93. <Cell col="11" displaytype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:setqueryflag" combodataset="ds_cmb_setqueryflag" combocodecol="value" combodatacol="label" enable="false"/>
  94. <Cell col="12" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:setquery" combodataset="ds_cmb_setqueryflag" combocodecol="value" combodatacol="label"/>
  95. <Cell col="13" displaytype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:prgdescflag" combodataset="ds_cmb_setqueryflag" combocodecol="value" combodatacol="label" enable="false"/>
  96. <Cell col="14" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:prgdesc" combodataset="ds_cmb_setqueryflag" combocodecol="value" combodatacol="label"/>
  97. <Cell col="15" displaytype="combo" style="align:center middle;background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:bizdescflag" combodataset="ds_cmb_setqueryflag" combocodecol="value" combodatacol="label" enable="false"/>
  98. <Cell col="16" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:bizdesc"/>
  99. <Cell col="17" displaytype="text" edittype="text" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_flagnm);" text="bind:flagnm"/>
  100. <Cell col="18" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:craccountcd"/>
  101. <Cell col="19" displaytype="combo" edittype="combo" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:crmisflag"/>
  102. <Cell col="20" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:draccountcd"/>
  103. <Cell col="21" displaytype="combo" edittype="combo" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );" text="bind:drmisflag"/>
  104. <Cell col="22" displaytype="date" edittype="date" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_fromdd);" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
  105. <Cell col="23" displaytype="date" edittype="date" style="background:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );background2:EXPR(getRowType(currow) == 4 ? '#ffffa0' : '' );font:EXPR(Font_enddd);" text="bind:enddd" calendardisplaynulltype="nulltext"/>
  106. </Band>
  107. </Format>
  108. </Formats>
  109. </Grid>
  110. <Button position="absolute 1130 33 1186 55" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="btn_save_onclick"/>
  111. <Shape position="absolute 1112 31 1118 58" linetype="vertical" id="line13" anchor="top right"/>
  112. <Static text="구분 :" position="absolute 14 36 84 53" id="caption21" class="search_name"/>
  113. <Shape position="absolute 1027 31 1033 58" linetype="vertical" id="line1" anchor="top right"/>
  114. <Radio position="absolute 75 32 420 55" id="radio1" columncount="7" codecolumn="codecolumn" datacolumn="datacolumn">
  115. <Dataset id="innerdataset">
  116. <ColumnInfo>
  117. <Column id="codecolumn"/>
  118. <Column id="datacolumn"/>
  119. </ColumnInfo>
  120. <Rows>
  121. <Row>
  122. <Col id="codecolumn">0</Col>
  123. <Col id="datacolumn">전체</Col>
  124. </Row>
  125. <Row>
  126. <Col id="codecolumn">1</Col>
  127. <Col id="datacolumn">수익</Col>
  128. </Row>
  129. <Row>
  130. <Col id="codecolumn">2</Col>
  131. <Col id="datacolumn">수입</Col>
  132. </Row>
  133. <Row>
  134. <Col id="codecolumn">3</Col>
  135. <Col id="datacolumn">미수</Col>
  136. </Row>
  137. <Row>
  138. <Col id="codecolumn">4</Col>
  139. <Col id="datacolumn">선수</Col>
  140. </Row>
  141. <Row>
  142. <Col id="codecolumn">5</Col>
  143. <Col id="datacolumn">기타</Col>
  144. </Row>
  145. <Row>
  146. <Col id="codecolumn">6</Col>
  147. <Col id="datacolumn">건진</Col>
  148. </Row>
  149. </Rows>
  150. </Dataset>
  151. </Radio>
  152. <Static text="집계 Query" position="absolute 0 602 127 623" id="cap_setquery" class="tit_2" anchor="left bottom"/>
  153. <TextArea position="absolute 0 623 395 773" id="tar_setquery" wordwrap="word" autoselect="true" anchor="left bottom"/>
  154. <Static text="집계 내역 설명 (전산)" position="absolute 400 602 604 623" id="cap_prgdesc" class="tit_2" anchor="left bottom"/>
  155. <TextArea position="absolute 400 623 795 773" id="tar_prgdesc" wordwrap="word" autoselect="true" anchor="left bottom"/>
  156. <Static text="집계 내역 설명 (원무)" position="absolute 800 602 988 623" id="cap_bizdesc" class="tit_2" anchor="left bottom"/>
  157. <TextArea position="absolute 800 623 1195 773" id="tar_bizdesc" wordwrap="word" autoselect="true" anchor="left right bottom"/>
  158. <Shape position="absolute 0 618 395 624" linetype="horizontal" id="ln_setquery" class="line_10" anchor="left bottom"/>
  159. <Shape position="absolute 400 618 795 624" linetype="horizontal" id="ln_prgdesc" class="line_10" anchor="left bottom"/>
  160. <Shape position="absolute 800 618 1195 624" linetype="horizontal" id="ln_bizdesc" class="line_10" anchor="left right bottom"/>
  161. <Button position="absolute 1153 599 1195 618" id="btn_setdesc" class="btn2" text="입력" anchor="right bottom" onclick="btn_setdesc_onclick"/>
  162. <Button id="btn_collapse" taborder="6" onclick="btn_collapse_onclick" position="absolute 1099 599 1125 618" style="background:@gradation URL('theme://images\btn_send_bottom.gif') stretch;border:0 double #33bbbbff #effcfbff;" anchor="right bottom"/>
  163. <Button id="btn_expand" taborder="7" onclick="btn_expand_onclick" position="absolute 1126 599 1152 618" style="background:URL('theme://images\btn_send_top.gif') stretch;border:0 double #33bbbbff #effcfbff;" anchor="right bottom"/>
  164. </Layout>
  165. </Layouts>
  166. <Objects>
  167. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  168. <ColumnInfo>
  169. <Column id="sscd" type="STRING" size="256"/>
  170. <Column id="aggkind" type="STRING" size="256"/>
  171. </ColumnInfo>
  172. <Rows>
  173. <Row>
  174. <Col id="sscd"/>
  175. <Col id="aggkind">0</Col>
  176. </Row>
  177. </Rows>
  178. </Dataset>
  179. <Dataset id="ds_main_sscdlist_sscdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_sscdlist_sscdinfo_oncolumnchanged">
  180. <ColumnInfo>
  181. <Column id="earncls" type="STRING" size="256" sumtext="집계계정"/>
  182. <Column id="dispseq" type="STRING" size="256" sumtext="조회순서"/>
  183. <Column id="ordflag" type="STRING" size="256" sumtext="진료구분"/>
  184. <Column id="lrgnm" type="STRING" size="256" sumtext="대분류명"/>
  185. <Column id="mdlnm" type="STRING" size="256" sumtext="중분류명"/>
  186. <Column id="smlnm" type="STRING" size="256" sumtext="소분류명"/>
  187. <Column id="crpammod" type="STRING" size="256" sumtext="차변원무계수"/>
  188. <Column id="crpamnm" type="STRING" size="256" sumtext="차변원무명칭"/>
  189. <Column id="drpammod" type="STRING" size="256" sumtext="대변원무계수"/>
  190. <Column id="drpamnm" type="STRING" size="256" sumtext="대변원무명칭"/>
  191. <Column id="setqueryflag" type="STRING" size="256" sumtext="집계쿼리"/>
  192. <Column id="setquery" type="STRING" size="256" sumtext="집계쿼리"/>
  193. <Column id="prgdescflag" type="STRING" size="256" sumtext="집계내역(전산)"/>
  194. <Column id="prgdesc" type="STRING" size="256" sumtext="집계내역(전산)"/>
  195. <Column id="bizdescflag" type="STRING" size="256" sumtext="집계내역(원무)"/>
  196. <Column id="bizdesc" type="STRING" size="256" sumtext="집계내역(원무)"/>
  197. <Column id="flagnm" type="STRING" size="256" sumtext="재무계정명"/>
  198. <Column id="craccountcd" type="STRING" size="256" sumtext="차변재무코드"/>
  199. <Column id="crmisflag" type="STRING" size="256" sumtext="차변재무분개구분"/>
  200. <Column id="draccountcd" type="STRING" size="256" sumtext="대변재무코드"/>
  201. <Column id="drmisflag" type="STRING" size="256" sumtext="대변재무분개구분"/>
  202. <Column id="fromdd" type="STRING" size="256" sumtext="적용시작일"/>
  203. <Column id="enddd" type="STRING" size="256" sumtext="적용종료일"/>
  204. </ColumnInfo>
  205. </Dataset>
  206. <Dataset id="ds_cmb_ordflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  207. <ColumnInfo>
  208. <Column id="label" type="STRING" size="256"/>
  209. <Column id="value" type="STRING" size="256"/>
  210. </ColumnInfo>
  211. <Rows>
  212. <Row>
  213. <Col id="label">입원</Col>
  214. <Col id="value">I</Col>
  215. </Row>
  216. <Row>
  217. <Col id="label">외래</Col>
  218. <Col id="value">O</Col>
  219. </Row>
  220. <Row>
  221. <Col id="label">건진</Col>
  222. <Col id="value">S</Col>
  223. </Row>
  224. </Rows>
  225. </Dataset>
  226. <Dataset id="ds_cmb_crpammod" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  227. <ColumnInfo>
  228. <Column id="label" type="STRING" size="256"/>
  229. <Column id="value" type="STRING" size="256"/>
  230. </ColumnInfo>
  231. <Rows>
  232. <Row>
  233. <Col id="label">증가</Col>
  234. <Col id="value">1</Col>
  235. </Row>
  236. <Row>
  237. <Col id="label">감소</Col>
  238. <Col id="value">-1</Col>
  239. </Row>
  240. </Rows>
  241. </Dataset>
  242. <Dataset id="ds_cmb_setqueryflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  243. <ColumnInfo>
  244. <Column id="label" type="STRING" size="256"/>
  245. <Column id="value" type="STRING" size="256"/>
  246. </ColumnInfo>
  247. <Rows>
  248. <Row>
  249. <Col id="label">○</Col>
  250. <Col id="value">Y</Col>
  251. </Row>
  252. </Rows>
  253. </Dataset>
  254. <Dataset id="ds_temp_agginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  255. <ColumnInfo>
  256. <Column id="setquery" type="STRING" size="256"/>
  257. <Column id="prgdesc" type="STRING" size="256"/>
  258. <Column id="bizdesc" type="STRING" size="256"/>
  259. </ColumnInfo>
  260. <Rows>
  261. <Row>
  262. <Col id="setquery"/>
  263. <Col id="prgdesc"/>
  264. <Col id="bizdesc"/>
  265. </Row>
  266. </Rows>
  267. </Dataset>
  268. <Dataset id="ds_send_sscd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  269. </Objects>
  270. <Bind>
  271. <BindItem id="item0" compid="radio1" propid="value" datasetid="ds_send" columnid="aggkind"/>
  272. <BindItem id="item1" compid="tar_setquery" propid="value" datasetid="ds_temp_agginfo" columnid="setquery"/>
  273. <BindItem id="item2" compid="tar_prgdesc" propid="value" datasetid="ds_temp_agginfo" columnid="prgdesc"/>
  274. <BindItem id="item3" compid="tar_bizdesc" propid="value" datasetid="ds_temp_agginfo" columnid="bizdesc"/>
  275. </Bind>
  276. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  277. * System Name :
  278. * Job Name :
  279. * Creator :
  280. * Make Date : 2016-05-24
  281. * Description :
  282. *---------------------------------------------------------------------------------------
  283. * Modify Date Modifier Modify Description
  284. *---------------------------------------------------------------------------------------
  285. * 2016-05-24 Live Converter TF->XP
  286. *
  287. *---------------------------------------------------------------------------------------
  288. ****************************************************************************************/
  289. include "com_commonxp::comm_main.xjs";
  290. var SELROW = -1;
  291. // size 조절을 위한 전역변수 선언함.
  292. var grd_height = 0;
  293. var cap_top = 0;
  294. var line_top = 0;
  295. var tar_top = 0;
  296. var btn_top = 0;
  297. function SMPAE00301_oninit(obj:Form, e:InitEventInfo)
  298. {
  299. frmf_initForm(obj);
  300. }
  301. function SMPAE00301_onload(obj:Form, e:LoadEventInfo)
  302. {
  303. grdf_initGrid(grd_sscd);
  304. grdf_setRowTypeIcon(grd_sscd, 0);
  305. grd_height = grd_sscd.position.height;
  306. cap_top = cap_setquery.position.top;
  307. line_top = ln_setquery.position.top;
  308. tar_top = tar_bizdesc.position.top;
  309. btn_top = btn_collapse.position.top;
  310. btn_search.click();
  311. }
  312. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  313. {
  314. var oParam = {};
  315. oParam.id = "TRPAE00301";
  316. oParam.service = "pamendstatsapp.PamEndStats";
  317. oParam.method = "reqGetEarnclsInfo";
  318. oParam.inds = "req=ds_send";
  319. oParam.outds = "ds_main_sscdlist_sscdinfo=sscd";
  320. oParam.async = false;
  321. //oParam.callback = "cf_TRPAE00301";
  322. tranf_submit(oParam);
  323. //데이터 변경 시 font bold 처리 위하여 추가함
  324. ds_main_sscdlist_sscdinfo.addColumn("Font_lrgnm", "string");
  325. ds_main_sscdlist_sscdinfo.addColumn("Font_mdlnm", "string");
  326. ds_main_sscdlist_sscdinfo.addColumn("Font_smlnm", "string");
  327. ds_main_sscdlist_sscdinfo.addColumn("Font_crpammod", "string");
  328. ds_main_sscdlist_sscdinfo.addColumn("Font_drpammod", "string");
  329. ds_main_sscdlist_sscdinfo.addColumn("Font_flagnm", "string");
  330. ds_main_sscdlist_sscdinfo.addColumn("Font_fromdd", "string");
  331. ds_main_sscdlist_sscdinfo.addColumn("Font_enddd", "string");
  332. }
  333. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  334. {
  335. var updategrid = grdf_getGridUpdateData(grd_sscd, "u");
  336. if (updategrid.rowcount == 0)
  337. {
  338. sysf_messageBox("변경사항이 없습니다", "E999");
  339. return;
  340. }
  341. var cnt = ds_main_sscdlist_sscdinfo.rowcount;
  342. for (var i = 0; i < cnt; i++)
  343. {
  344. if (ds_main_sscdlist_sscdinfo.getColumn(i) == 4)
  345. {
  346. if(utlf_isNull(ds_main_sscdlist_sscdinfo.getColumn(i, "dispseq")))
  347. {
  348. sysf_messageBox("순서를 입력하십시오", "E999");
  349. return;
  350. }
  351. if(utlf_isNull(ds_main_sscdlist_sscdinfo.getColumn(i, "lrgnm")))
  352. {
  353. sysf_messageBox("대분류명을 입력하십시오", "E999");
  354. return;
  355. }
  356. if(utlf_isNull(ds_main_sscdlist_sscdinfo.getColumn(i, "mdlnm")))
  357. {
  358. sysf_messageBox("중분류명을 입력하십시오", "E999");
  359. return;
  360. }
  361. if(utlf_isNull(ds_main_sscdlist_sscdinfo.getColumn(i, "smlnm")))
  362. {
  363. sysf_messageBox("소분류명을 입력하십시오", "E999");
  364. return;
  365. }
  366. if(utlf_isNull(ds_main_sscdlist_sscdinfo.getColumn(i, "flagnm")))
  367. {
  368. sysf_messageBox("재무계정명을 입력하십시오", "E999");
  369. return;
  370. }
  371. }
  372. }
  373. ds_send_sscd.copyData(updategrid, true);
  374. grdf_setStatusColumn(updategrid, "status");
  375. var oParam = {};
  376. oParam.id = "TXPAE00301";
  377. oParam.service = "pamendstatsapp.PamEndStats";
  378. oParam.method = "reqSetEarnclsInfo";
  379. oParam.inds = "req=ds_send sscd=ds_send_sscd";
  380. oParam.outds = "ds_main_sscdlist_sscdinfo=sscd";
  381. oParam.async = false;
  382. //oParam.callback = "cf_TXPAE00301";
  383. tranf_submit(oParam);
  384. }
  385. function ds_main_sscdlist_sscdinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  386. {
  387. if(e.columnid == "lrgnm")
  388. {
  389. obj.setColumn(e.row, "Font_lrgnm", "arial,9,bold");
  390. }
  391. else if(e.columnid == "mdlnm")
  392. {
  393. obj.setColumn(e.row, "Font_mdlnm", "arial,9,bold");
  394. }
  395. else if(e.columnid == "smlnm")
  396. {
  397. obj.setColumn(e.row, "Font_smlnm", "arial,9,bold");
  398. }
  399. else if(e.columnid == "crpammod")
  400. {
  401. obj.setColumn(e.row, "Font_crpammod", "arial,9,bold");
  402. obj.setColumn(e.row, "Font_drpammod", "arial,9,bold");
  403. }
  404. else if(e.columnid == "drpammod")
  405. {
  406. obj.setColumn(e.row, "Font_crpammod", "arial,9,bold");
  407. obj.setColumn(e.row, "Font_drpammod", "arial,9,bold");
  408. }
  409. else if(e.columnid == "flagnm")
  410. {
  411. obj.setColumn(e.row, "Font_flagnm", "arial,9,bold");
  412. }
  413. else if(e.columnid == "fromdd")
  414. {
  415. obj.setColumn(e.row, "Font_fromdd", "arial,9,bold");
  416. }
  417. else if(e.columnid == "enddd")
  418. {
  419. obj.setColumn(e.row, "Font_enddd", "arial,9,bold");
  420. }
  421. }
  422. function grd_sscd_oncellclick(obj:Grid, e:GridClickEventInfo)
  423. {
  424. var row = SELROW = ds_main_sscdlist_sscdinfo.rowposition;
  425. if (row < 0)
  426. {
  427. return;
  428. }
  429. ds_temp_agginfo.setColumn(0, "setquery", ds_main_sscdlist_sscdinfo.getColumn(row, "setquery"));
  430. ds_temp_agginfo.setColumn(0, "prgdesc", ds_main_sscdlist_sscdinfo.getColumn(row, "prgdesc"));
  431. ds_temp_agginfo.setColumn(0, "bizdesc", ds_main_sscdlist_sscdinfo.getColumn(row, "bizdesc"));
  432. var ordflag = ds_main_sscdlist_sscdinfo.getColumn(row, "ordflag");
  433. if (ordflag == "I")
  434. {
  435. ordflag = "입원";
  436. }
  437. else if (ordflag == "O")
  438. {
  439. ordflag = "외래";
  440. }
  441. else if (ordflag == "S")
  442. {
  443. ordflag = "건진";
  444. }
  445. var str = "[ " + utlf_transNullToEmpty(ds_main_sscdlist_sscdinfo.getColumn(row, "earncls")) + " ] "
  446. + "[ " + utlf_transNullToEmpty(ordflag) + " ] "
  447. + utlf_transNullToEmpty(ds_main_sscdlist_sscdinfo.getColumn(row, "lrgnm"))+ " - "
  448. + utlf_transNullToEmpty(ds_main_sscdlist_sscdinfo.getColumn(row, "mdlnm")) + " - "
  449. + utlf_transNullToEmpty(ds_main_sscdlist_sscdinfo.getColumn(row, "smlnm"));
  450. }
  451. function btn_excel1_onclick(obj:Button, e:ClickEventInfo)
  452. {
  453. grdf_exportExcel(grd_sscd, "원무수익 재무 자동분개 계정", "계정목록", "true", "", "");
  454. sysf_messageBox("엑셀 저장이 완료되었습니다.", "I999");
  455. }
  456. function btn_collapse_onclick(obj:Button, e:ClickEventInfo)
  457. {
  458. grd_sscd.position.height = grd_height;
  459. cap_setquery.position.top = cap_top;
  460. cap_prgdesc.position.top = cap_top;
  461. cap_bizdesc.position.top = cap_top;
  462. ln_setquery.position.top = line_top;
  463. ln_setquery.position.height = 6;
  464. ln_prgdesc.position.top = line_top;
  465. ln_prgdesc.position.height = 6;
  466. ln_bizdesc.position.top = line_top;
  467. ln_bizdesc.position.height = 6;
  468. tar_setquery.position.top = tar_top;
  469. tar_prgdesc.position.top = tar_top;
  470. tar_bizdesc.position.top = tar_top;
  471. btn_expand.position.top = btn_top;
  472. btn_expand.position.height = 19;
  473. btn_collapse.position.top = btn_top;
  474. btn_collapse.position.height = 19;
  475. btn_setdesc.position.top = btn_top;
  476. btn_setdesc.position.height = 19;
  477. }
  478. function btn_expand_onclick(obj:Button, e:ClickEventInfo)
  479. {
  480. grd_sscd.position.height = 200;
  481. cap_setquery.position.top = 305;
  482. cap_prgdesc.position.top = 305;
  483. cap_bizdesc.position.top = 305;
  484. ln_setquery.position.top = 320;
  485. ln_setquery.position.height = 6;
  486. ln_prgdesc.position.top = 320;
  487. ln_prgdesc.position.height = 6;
  488. ln_bizdesc.position.top = 320;
  489. ln_bizdesc.position.height = 6;
  490. tar_setquery.position.top = 325;
  491. tar_prgdesc.position.top = 325;
  492. tar_bizdesc.position.top = 325;
  493. btn_expand.position.top = 301;
  494. btn_expand.position.height = 19;
  495. btn_collapse.position.top = 301;
  496. btn_collapse.position.height = 19;
  497. btn_setdesc.position.top = 301;
  498. btn_setdesc.position.height = 19;
  499. }
  500. function btn_setdesc_onclick(obj:Button, e:ClickEventInfo)
  501. {
  502. if (SELROW < 0)
  503. {
  504. return;
  505. }
  506. var setquery = String(ds_temp_agginfo.getColumn(0, "setquery")).trim();
  507. var prgdesc = String(ds_temp_agginfo.getColumn(0, "prgdesc")).trim();
  508. var bizdesc = String(ds_temp_agginfo.getColumn(0, "bizdesc")).trim();
  509. var row = SELROW;
  510. ds_main_sscdlist_sscdinfo.setColumn(SELROW, "setqueryflag", !utlf_isNull(setquery) ? "Y" : "N" );
  511. ds_main_sscdlist_sscdinfo.setColumn(SELROW, "setquery", setquery);
  512. ds_main_sscdlist_sscdinfo.setColumn(SELROW, "prgdescflag", !utlf_isNull(prgdesc) ? "Y" : "N" );
  513. ds_main_sscdlist_sscdinfo.setColumn(SELROW, "prgdesc", prgdesc);
  514. ds_main_sscdlist_sscdinfo.setColumn(SELROW, "bizdescflag", !utlf_isNull(bizdesc) ? "Y" : "N" );
  515. ds_main_sscdlist_sscdinfo.setColumn(SELROW, "bizdesc", bizdesc);
  516. }
  517. ]]></Script>
  518. </Form>
  519. </FDL>