SMRAD04200_계정별보조부(편철용).xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRAD04200" position="absolute 0 0 1202 776" titletext="계정별보조부(편철용)" oninit="SMRAD04200_oninit" onload="SMRAD04200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_biz" taborder="3" position="absolute 2 114 1188 771">
  8. <Layouts>
  9. <Layout width="1186" height="657"/>
  10. </Layouts>
  11. </Div>
  12. <Shape position="absolute 0 25 1193 85" id="roundrect1" type="roundrectangle" anchor="default"/>
  13. <Button position="absolute 1130 42 1186 64" id="btn_search" class="btn1" text="조회" anchor="default" onclick="btn_search_onclick"/>
  14. <Shape position="absolute 1117 30 1123 79" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  15. <Static text="소속기관:" position="absolute 15 34 101 51" id="cap_payinst" class="search_name" anchor="default"/>
  16. <Combo position="absolute 96 33 250 52" id="cmb_instcd" class="combo_essential" enable="false" anchor="default"/>
  17. <Static text="기준일자:" position="absolute 295 33 376 50" id="caption22" class="search_name" anchor="default"/>
  18. <Calendar position="absolute 380 33 470 52" align="align:center middle;" id="ipt_payym" class="input_default" taborder="1" mask="yyyy-mm-dd" anchor="default" autoselect="true"/>
  19. <Static text="계정별내역" position="absolute 1 91 210 109" id="caption28" class="tit_2" anchor="default"/>
  20. <Shape position="absolute 2 107 1192 113" linetype="horizontal" id="line193" class="line_10" anchor="default"/>
  21. <Static text="계정과목:" position="absolute 635 33 729 50" id="caption2" class="search_name" anchor="default"/>
  22. <Calendar position="absolute 485 33 575 52" align="align:center middle;" id="input1" class="input_default" taborder="2" mask="yyyy-mm-dd" anchor="default" autoselect="true"/>
  23. <Static text="~" position="absolute 470 35 485 55" align="align:center middle;" id="caption4" anchor="default"/>
  24. <Combo position="absolute 720 33 880 52" id="combo2" innerdataset="@ds_init_combo3_acntcmb" datacolumn="acntnm" codecolumn="acntcd" anchor="default"/>
  25. <Combo position="absolute 895 33 1055 52" id="combo3" innerdataset="@ds_init_combo3_acntcmb" datacolumn="acntnm" codecolumn="acntcd" anchor="default"/>
  26. <Static text="~" position="absolute 880 35 895 55" align="align:center middle;" id="caption1" anchor="default"/>
  27. <Static text="LINE수 :" position="absolute 295 59 374 76" id="caption3" class="search_name" anchor="default"/>
  28. <Edit position="absolute 380 59 430 78" id="input2" anchor="default" autoselect="true"/>
  29. <Static text="출력구분:" position="absolute 635 59 729 76" id="caption5" class="search_name" anchor="default"/>
  30. <Combo position="absolute 720 59 785 78" id="cmb_prntflag" innerdataset="@ds_init_code_codelist" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
  31. <Grid position="absolute 85 175 685 250" id="datagrid1" binddataset="ds_main_grnt_grntlist1" anchor="default" visible="false">
  32. <Formats>
  33. <Format id="default">
  34. <Columns>
  35. <Column size="100"/>
  36. <Column size="100"/>
  37. <Column size="100"/>
  38. <Column size="100"/>
  39. <Column size="100"/>
  40. <Column size="100"/>
  41. <Column size="100"/>
  42. <Column size="100"/>
  43. <Column size="100"/>
  44. <Column size="100"/>
  45. <Column size="100"/>
  46. <Column size="100"/>
  47. <Column size="100"/>
  48. <Column size="100"/>
  49. <Column size="100"/>
  50. <Column size="100"/>
  51. <Column size="100"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="24" band="head"/>
  55. <Row size="24"/>
  56. </Rows>
  57. <Band id="head">
  58. <Cell text="caption1"/>
  59. <Cell col="1" text="caption2"/>
  60. <Cell col="2" text="caption3"/>
  61. <Cell col="3" text="caption4"/>
  62. <Cell col="4" text="caption5"/>
  63. <Cell col="5" text="caption6"/>
  64. <Cell col="6" text="caption7"/>
  65. <Cell col="7" text="caption8"/>
  66. <Cell col="8" text="caption9"/>
  67. <Cell col="9" text="caption10"/>
  68. <Cell col="10" text="caption11"/>
  69. <Cell col="11" text="caption12"/>
  70. <Cell col="12" text="caption13"/>
  71. <Cell col="13" text="caption14"/>
  72. <Cell col="14" text="caption15"/>
  73. <Cell col="15" text="caption16"/>
  74. <Cell col="16"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell text="bind:instcd"/>
  78. <Cell col="1" text="bind:chr01"/>
  79. <Cell col="2" text="bind:chr02"/>
  80. <Cell col="3" text="bind:chr03"/>
  81. <Cell col="4" text="bind:chr04"/>
  82. <Cell col="5" text="bind:chr05"/>
  83. <Cell col="6" text="bind:chr06"/>
  84. <Cell col="7" text="bind:chr07"/>
  85. <Cell col="8" text="bind:chr08"/>
  86. <Cell col="9" text="bind:chr09"/>
  87. <Cell col="10" text="bind:chr10"/>
  88. <Cell col="11" text="bind:rmrk"/>
  89. <Cell col="12" text="bind:inamt"/>
  90. <Cell col="13" text="bind:outamt"/>
  91. <Cell col="14" text="bind:janamt"/>
  92. <Cell col="15" text="bind:acntnm"/>
  93. <Cell col="16" text="bind:title"/>
  94. </Band>
  95. </Format>
  96. </Formats>
  97. </Grid>
  98. <Button position="absolute 1125 88 1189 107" align="align:left middle;" id="button3" class="btn2" text="엑셀출력" anchor="default" onclick="button3_onclick"/>
  99. <Static id="caption6" text="계정별보조부(편철용)" class="tit_1" position="absolute 0 0 168 25"/>
  100. </Layout>
  101. </Layouts>
  102. <Objects>
  103. <Dataset id="ds_main_grnt_grntlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  104. <ColumnInfo>
  105. <Column id="instcd" type="STRING" size="256"/>
  106. <Column id="chr01" type="STRING" size="256"/>
  107. <Column id="chr02" type="STRING" size="256"/>
  108. <Column id="chr03" type="STRING" size="256"/>
  109. <Column id="chr04" type="STRING" size="256"/>
  110. <Column id="chr05" type="STRING" size="256"/>
  111. <Column id="chr06" type="STRING" size="256"/>
  112. <Column id="chr07" type="STRING" size="256"/>
  113. <Column id="chr08" type="STRING" size="256"/>
  114. <Column id="chr09" type="STRING" size="256"/>
  115. <Column id="chr10" type="STRING" size="256"/>
  116. <Column id="rmrk" type="STRING" size="256"/>
  117. <Column id="inamt" type="STRING" size="256"/>
  118. <Column id="outamt" type="STRING" size="256"/>
  119. <Column id="janamt" type="STRING" size="256"/>
  120. <Column id="acntnm" type="STRING" size="256"/>
  121. <Column id="title" type="STRING" size="256"/>
  122. </ColumnInfo>
  123. <Rows>
  124. <Row>
  125. <Col id="instcd"/>
  126. <Col id="chr01"/>
  127. <Col id="chr02"/>
  128. <Col id="chr03"/>
  129. <Col id="chr04"/>
  130. <Col id="chr05"/>
  131. <Col id="chr06"/>
  132. <Col id="chr07"/>
  133. <Col id="chr08"/>
  134. <Col id="chr09"/>
  135. <Col id="chr10"/>
  136. <Col id="rmrk"/>
  137. <Col id="inamt"/>
  138. <Col id="outamt"/>
  139. <Col id="janamt"/>
  140. <Col id="acntnm"/>
  141. <Col id="title"/>
  142. </Row>
  143. </Rows>
  144. </Dataset>
  145. <Dataset id="ds_init_code_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  146. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  147. <ColumnInfo>
  148. <Column id="fromdd" type="STRING" size="256"/>
  149. <Column id="todd" type="STRING" size="256"/>
  150. <Column id="instcd" type="STRING" size="256"/>
  151. <Column id="acntcd" type="STRING" size="256"/>
  152. <Column id="fromacntcd" type="STRING" size="256"/>
  153. <Column id="toacntcd" type="STRING" size="256"/>
  154. <Column id="fromcustcode" type="STRING" size="256"/>
  155. <Column id="tocustcode" type="STRING" size="256"/>
  156. <Column id="fromcustnm" type="STRING" size="256"/>
  157. <Column id="tocustnm" type="STRING" size="256"/>
  158. <Column id="custcode" type="STRING" size="256"/>
  159. <Column id="line" type="STRING" size="256"/>
  160. <Column id="prntflag" type="STRING" size="256"/>
  161. </ColumnInfo>
  162. <Rows>
  163. <Row>
  164. <Col id="fromdd"/>
  165. <Col id="todd"/>
  166. <Col id="instcd"/>
  167. <Col id="acntcd"/>
  168. <Col id="fromacntcd"/>
  169. <Col id="toacntcd"/>
  170. <Col id="fromcustcode"/>
  171. <Col id="tocustcode"/>
  172. <Col id="fromcustnm"/>
  173. <Col id="tocustnm"/>
  174. <Col id="custcode"/>
  175. <Col id="line"/>
  176. <Col id="prntflag"/>
  177. </Row>
  178. </Rows>
  179. </Dataset>
  180. <Dataset id="ds_custinfo_custlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  181. <ColumnInfo>
  182. <Column id="aactno" type="STRING" size="256"/>
  183. <Column id="bankcd" type="STRING" size="256"/>
  184. <Column id="depor" type="STRING" size="256"/>
  185. <Column id="custnm" type="STRING" size="256"/>
  186. </ColumnInfo>
  187. <Rows>
  188. <Row>
  189. <Col id="aactno"/>
  190. <Col id="bankcd"/>
  191. <Col id="depor"/>
  192. <Col id="custnm"/>
  193. </Row>
  194. </Rows>
  195. </Dataset>
  196. <Dataset id="ds_init_combo3_acntcmb" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="acntcd" type="STRING" size="256"/>
  199. <Column id="acntnm" type="STRING" size="256"/>
  200. </ColumnInfo>
  201. <Rows>
  202. <Row>
  203. <Col id="acntcd"/>
  204. <Col id="acntnm"/>
  205. </Row>
  206. </Rows>
  207. </Dataset>
  208. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="resultflag" type="STRING" size="256"/>
  211. </ColumnInfo>
  212. </Dataset>
  213. </Objects>
  214. <Bind>
  215. <BindItem id="item0" compid="cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  216. <BindItem id="item1" compid="ipt_payym" propid="value" datasetid="ds_send" columnid="fromdd"/>
  217. <BindItem id="item2" compid="input1" propid="value" datasetid="ds_send" columnid="todd"/>
  218. <BindItem id="item3" compid="input2" propid="value" datasetid="ds_send" columnid="line"/>
  219. <BindItem id="item4" compid="combo2" propid="value" datasetid="ds_send" columnid="fromacntcd"/>
  220. <BindItem id="item5" compid="combo3" propid="value" datasetid="ds_send" columnid="toacntcd"/>
  221. <BindItem id="item6" compid="cmb_prntflag" propid="value" datasetid="ds_send" columnid="prntflag"/>
  222. </Bind>
  223. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  224. * System Name :
  225. * Job Name :
  226. * Creator :
  227. * Make Date : 2017-06-19
  228. * Description :
  229. *---------------------------------------------------------------------------------------
  230. * Modify Date Modifier Modify Description
  231. *---------------------------------------------------------------------------------------
  232. * 2017-06-19 Live Converter TF->XP
  233. *
  234. *---------------------------------------------------------------------------------------
  235. ****************************************************************************************/
  236. include "com_commonxp::comm_main.xjs";
  237. include "mis_miscommonxp::MIS.xjs";
  238. include "mis_miscommonxp::PIC002.xjs";
  239. include "mis_miscommonxp::RAC001.xjs";
  240. include "mis_miscommonxp::RBC001.xjs";
  241. include "mis_miscommonxp::RSZ001.xjs";
  242. var arErrorCode = new HashArray();
  243. function SMRAD04200_oninit(obj:Form, e:InitEventInfo)
  244. {
  245. frmf_initForm(obj); //폼 초기화
  246. }
  247. function SMRAD04200_onload(obj:Form, e:LoadEventInfo)
  248. {
  249. misfComboInstCdListMulti("cmb_instcd", utlf_getCurrentDate(),"","N");
  250. //makeReportPreview(5,145,1190,630);
  251. //2015.11.12 박준범 - 치과병원 분리를 위해 출력구분을 공통코드로 변경처리
  252. misfComboComCdList("R0531", cmb_prntflag, sysf_getUserInfo("dutplceinstcd"));
  253. var today = utlf_getCurrentDate();
  254. var cur_yymm = parseInt(today.substring(0, 6));
  255. ds_send.setColumn(0, "fromdd", today);
  256. ds_send.setColumn(0, "todd", today);
  257. //ipt_payym.refresh();
  258. //submit("TRRAD01504");
  259. var oParam = {};
  260. oParam.id = "TRRAD01504";
  261. oParam.service = "slipapp.AccBook";
  262. oParam.method = "reqGetAcntcdAllList";
  263. oParam.inds = "req=ds_send";
  264. oParam.outds = "ds_init_combo3_acntcmb=acntcmb";
  265. oParam.async = false;
  266. tranf_submit(oParam);
  267. combo2.index = -1;
  268. combo3.index = -1;
  269. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  270. ds_send.setColumn(0, "prntflag", sysf_getUserInfo("dutplceinstcd"));
  271. ipt_payym.setFocus();
  272. }
  273. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  274. {
  275. var oParam = {};
  276. oParam.id = "TRRAD04201";
  277. oParam.service = "slipapp.AccBook";
  278. oParam.method = "reqGetBojobu1List";
  279. oParam.inds = "req=ds_send";
  280. oParam.outds = "ds_main_grnt_grntlist1=grntlist1";
  281. oParam.async = false;
  282. tranf_submit(oParam);
  283. ds_hidden.setColumn(0, "resultflag",cmb_prntflag.text);
  284. var objDOM = rptf_createDOM();
  285. rptf_setNodeListToDOM(objDOM, "root/hidden", ds_hidden); // 데이터셋 1
  286. rptf_setNodeListToDOM(objDOM, "root/main/grnt/grntlist1", ds_main_grnt_grntlist1); // 데이터셋 2
  287. var objParam = new Object();
  288. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  289. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  290. //var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0;";
  291. rptf_exeReportPreview30(["RPRAD04301"],[objParam], option, "", "grp_biz");
  292. }
  293. function button3_onclick(obj:Button, e:ClickEventInfo)
  294. {
  295. grdf_exportExcel(datagrid1, "계정별보조부(편철용)" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  296. }
  297. ]]></Script>
  298. </Form>
  299. </FDL>