SMPMI05430_병동보고서퇴원환자보고서보관금대장.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI05430" position="absolute 0 0 1173 758" titletext="보관금 관리 대장" onload="SMPMI05430_onload" oninit="SMPMI05430_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group5" taborder="4" position="absolute 0 25 1172 65" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption8" text="~" position="absolute 210 11 225 31" anchor="default"/>
  11. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1095 10 1101 32" anchor="top right"/>
  12. <Static id="caption39" text="수납기간조회" class="search_name" position="absolute 8 12 136 29" anchor="default"/>
  13. <Calendar id="todd" taborder="1" class="input_search" position="absolute 225 11 323 30" anchor="default"/>
  14. <Button id="btn_search2" taborder="2" text="조회" class="btn1" position="absolute 1109 10 1165 32" anchor="top right" onclick="group5_btn_search2_onclick"/>
  15. <Calendar id="fromdd" taborder="0" class="input_search" position="absolute 102 11 200 30" anchor="default" autoselect="true" autoskip="true" onchanged="group5_fromdd_onchanged"/>
  16. <CheckBox id="bool4" taborder="3" position="absolute 748 12 768 29" anchor="default" truevalue="Y" falsevalue="N"/>
  17. <Static id="caption1" text="미환불" position="absolute 771 11 841 31" anchor="default"/>
  18. <CheckBox id="bool1" taborder="4" position="absolute 331 12 353 29" anchor="default" onclick="group5_bool1_onclick"/>
  19. <Static id="caption2" text="보관금존재여부" position="absolute 352 11 447 31" anchor="default"/>
  20. <Static id="caption4" text="보관금 전체" position="absolute 573 11 679 31" anchor="default"/>
  21. <CheckBox id="bool2" taborder="5" position="absolute 550 12 575 29" anchor="default" truevalue="Y" falsevalue="N" onclick="group5_bool2_onclick"/>
  22. <Static id="caption7" text="보관금기준" class="search_name" position="absolute 460 12 550 29" anchor="default"/>
  23. <Static id="caption9" text="환불여부" class="search_name" position="absolute 670 12 750 29" anchor="default"/>
  24. </Layout>
  25. </Layouts>
  26. </Div>
  27. <Div id="group4" taborder="6" position="absolute 0 25 1172 65" class="div_SA" anchor="left top right">
  28. <Layouts>
  29. <Layout width="1172" height="35">
  30. <Static id="caption16" text="~" position="absolute 205 11 216 31" anchor="left top"/>
  31. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1097 10 1103 32" anchor="top right"/>
  32. <Static id="caption17" text="수납기간조회" class="search_name" position="absolute 3 12 91 29" anchor="left top"/>
  33. <Calendar id="input3" taborder="1" class="input_search" position="absolute 220 11 323 30" anchor="left top" autoselect="true"/>
  34. <Button id="button4" taborder="2" text="조회" class="btn1" position="absolute 1111 10 1167 32" anchor="top right" onclick="group4_button4_onclick"/>
  35. <Calendar id="input4" taborder="0" class="input_search" position="absolute 99 11 202 30" anchor="left top" autoselect="true" autoskip="true" onchanged="group4_input4_onchanged"/>
  36. <CheckBox id="bool7" taborder="3" position="absolute 785 13 800 28" anchor="left top"/>
  37. <Static id="caption18" text="미환불만" position="absolute 808 11 878 31" anchor="default"/>
  38. <CheckBox id="bool8" taborder="4" position="absolute 330 13 345 28" anchor="left top" falsevalue="N" truevalue="Y" onclick="group4_bool8_onclick"/>
  39. <Static id="caption19" text="보관금존재여부" position="absolute 350 11 445 31" anchor="left top"/>
  40. <Static id="caption20" text="보관금만(수납제외)" position="absolute 565 11 673 31" anchor="left top"/>
  41. <CheckBox id="bool9" taborder="5" position="absolute 542 13 557 28" anchor="default" falsevalue="N" truevalue="Y" onclick="group4_bool9_onclick"/>
  42. <Static id="caption21" text="보관금기준" class="search_name" position="absolute 460 12 534 29" anchor="default"/>
  43. <Static id="caption22" text="환불여부" class="search_name" position="absolute 713 12 777 29" anchor="left top"/>
  44. </Layout>
  45. </Layouts>
  46. </Div>
  47. <Div id="group2" taborder="7" class="div_SA" position="absolute 0 25 1172 65" anchor="left top right">
  48. <Layouts>
  49. <Layout>
  50. <Static id="caption5" text="~" position="absolute 204 10 219 30" anchor="default"/>
  51. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1093 9 1099 31" anchor="top right"/>
  52. <Static id="caption10" text="수납기간조회" class="search_name" position="absolute 7 11 111 28" anchor="default"/>
  53. <Calendar id="input1" taborder="1" class="input_search" position="absolute 220 10 318 29" anchor="default" autoselect="true"/>
  54. <Button id="button3" taborder="2" text="조회" class="btn1" position="absolute 1107 9 1163 31" anchor="top right" onclick="group2_button3_onclick"/>
  55. <Calendar id="input2" taborder="0" class="input_search" position="absolute 103 10 201 29" anchor="default" autoselect="true" autoskip="true" onchanged="group2_input2_onchanged"/>
  56. <CheckBox id="bool3" taborder="3" position="absolute 743 11 763 28" anchor="default" truevalue="Y" falsevalue="N"/>
  57. <Static id="caption11" text="미환불" position="absolute 769 10 839 30" anchor="default"/>
  58. <CheckBox id="bool5" taborder="4" position="absolute 325 11 347 28" anchor="default" truevalue="Y" falsevalue="N" value="N" onclick="group2_bool5_onclick"/>
  59. <Static id="caption12" text="보관금존재여부" position="absolute 345 10 440 30" anchor="default"/>
  60. <Static id="caption13" text="보관금 전체" position="absolute 567 11 673 31" anchor="default"/>
  61. <CheckBox id="bool6" taborder="5" position="absolute 544 11 569 28" anchor="default" truevalue="Y" falsevalue="N" value="N" onclick="group2_bool6_onclick"/>
  62. <Static id="caption14" text="보관금기준" class="search_name" position="absolute 455 12 545 29" anchor="default"/>
  63. <Static id="caption15" text="환불여부" class="search_name" position="absolute 665 12 745 29" anchor="default"/>
  64. </Layout>
  65. </Layouts>
  66. </Div>
  67. <Static id="caption6" text="퇴원환자 보고서" class="tit_1" position="absolute 0 0 160 25" anchor="left top"/>
  68. <Shape id="line20" linetype="horizontal" class="line_1" position="absolute 0 89 1170 95" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  69. <Static id="caption3" text="가퇴원 보관금 관리대장" class="tit_2" position="absolute 0 73 173 89" anchor="left top"/>
  70. <Button id="button1" taborder="1" text="엑셀저장" class="btn7" position="absolute 1095 70 1169 89" onclick="button1_onclick" anchor="top right"/>
  71. <Button id="button2" taborder="2" text="출력" class="btn6" position="absolute 1040 70 1092 89" onclick="button2_onclick" anchor="top right"/>
  72. <Grid id="grd_cusmoneylist" taborder="3" binddataset="ds_main_h_custodymoney_custodymoney" useinputpanel="false" position="absolute 0 94 1170 754" onrbuttondown="grd_cusmoneylist_onrbuttondown" oncellclick="grd_cusmoneylist_oncellclick" oncelldblclick="grd_cusmoneylist_oncelldblclick" anchor="all" autofittype="col" cellsizebandtype="body" cellsizingtype="col" autoenter="none">
  73. <Formats>
  74. <Format id="default">
  75. <Columns>
  76. <Column size="25"/>
  77. <Column size="60"/>
  78. <Column size="60"/>
  79. <Column size="80"/>
  80. <Column size="140"/>
  81. <Column size="80"/>
  82. <Column size="88"/>
  83. <Column size="100"/>
  84. <Column size="60"/>
  85. <Column size="120"/>
  86. <Column size="120"/>
  87. <Column size="120"/>
  88. <Column size="120"/>
  89. <Column size="80"/>
  90. </Columns>
  91. <Rows>
  92. <Row size="24" band="head"/>
  93. <Row size="24"/>
  94. <Row size="24" band="summ"/>
  95. </Rows>
  96. <Band id="head">
  97. <Cell/>
  98. <Cell col="1" text="등록번호"/>
  99. <Cell col="2" text="이름"/>
  100. <Cell col="3" text="입원일"/>
  101. <Cell col="4" text="진료과명"/>
  102. <Cell col="5" text="가퇴원수납일"/>
  103. <Cell col="6" text="가퇴원수납시간"/>
  104. <Cell col="7" text="수납구분"/>
  105. <Cell col="8" text="수납자"/>
  106. <Cell col="9" text="가퇴원보관금"/>
  107. <Cell col="10" text="보관금입금"/>
  108. <Cell col="11" text="보관금환불"/>
  109. <Cell col="12" text="환불대상금"/>
  110. <Cell col="13" text="안내장출력"/>
  111. </Band>
  112. <Band id="body">
  113. <Cell celltype="head" expr="expr:currow + 1"/>
  114. <Cell col="1" text="bind:pid"/>
  115. <Cell col="2" style="align:center middle;" text="bind:hngnm"/>
  116. <Cell col="3" displaytype="date" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  117. <Cell col="4" style="align:left middle;" text="bind:orddeptnm"/>
  118. <Cell col="5" displaytype="date" text="bind:rcptexecdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  119. <Cell col="6" displaytype="date" text="bind:rcpttm" mask="HH:mm"/>
  120. <Cell col="7" style="align:center middle;" text="bind:keepkind"/>
  121. <Cell col="8" style="align:center middle;" text="bind:rcptidnm"/>
  122. <Cell col="9" displaytype="number" style="align:right middle;" text="bind:rcptamt" mask="9,999"/>
  123. <Cell col="10" displaytype="number" style="align:right middle;" text="bind:keepamt" mask="9,999"/>
  124. <Cell col="11" displaytype="number" style="align:right middle;" text="bind:keepamt_rest" mask="9,999"/>
  125. <Cell col="12" displaytype="number" style="align:right middle;" text="bind:keepamt_refund" mask="9,999"/>
  126. <Cell col="13" displaytype="checkbox" edittype="checkbox" text="bind:prtyn" expr="expr:prtyn == 'true' ? 1 : 0"/>
  127. </Band>
  128. <Band id="summary">
  129. <Cell style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;"/>
  130. <Cell col="1" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" text="합계"/>
  131. <Cell col="2" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;"/>
  132. <Cell col="3" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;"/>
  133. <Cell col="4" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;"/>
  134. <Cell col="5" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;"/>
  135. <Cell col="6"/>
  136. <Cell col="7" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;"/>
  137. <Cell col="8" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;"/>
  138. <Cell col="9" displaytype="number" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum(&quot;rcptamt&quot;)"/>
  139. <Cell col="10" displaytype="number" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum(&quot;keepamt&quot;)"/>
  140. <Cell col="11" displaytype="number" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum(&quot;keepamt_rest&quot;)"/>
  141. <Cell col="12" displaytype="number" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;" expr="expr:getSum(&quot;keepamt_refund&quot;)"/>
  142. <Cell col="13" style="background:#fcd2c1ff;background2:#fcd2c1ff;color:black;color2:black;font:Dotum,9,bold;"/>
  143. </Band>
  144. </Format>
  145. </Formats>
  146. </Grid>
  147. <PopupMenu id="pmn_menu1" position="absolute 1182 90 1336 117" innerdataset="@ds_hidden_popupmenu_gridmenu_item" levelcolumn="level" idcolumn="func" captioncolumn="label" onmenuclick="pmn_menu1_onmenuclick" onmouseleave="pmn_menu1_onmouseleave"/>
  148. </Layout>
  149. </Layouts>
  150. <Objects>
  151. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  152. <ColumnInfo>
  153. <Column id="fromdd" type="STRING" size="256"/>
  154. <Column id="todd" type="STRING" size="256"/>
  155. <Column id="sess_posinstcd" type="STRING" size="256"/>
  156. <Column id="ioflag" type="STRING" size="256"/>
  157. <Column id="norefunds" type="STRING" size="256"/>
  158. <Column id="sendflag" type="STRING" size="256"/>
  159. <Column id="keepyn" type="STRING" size="256"/>
  160. <Column id="rcptyn" type="STRING" size="256"/>
  161. <Column id="dridsorttype" type="STRING" size="256"/>
  162. </ColumnInfo>
  163. <Rows>
  164. <Row>
  165. <Col id="fromdd"/>
  166. <Col id="todd"/>
  167. <Col id="sess_posinstcd"/>
  168. <Col id="ioflag"/>
  169. <Col id="norefunds"/>
  170. <Col id="sendflag"/>
  171. <Col id="keepyn"/>
  172. <Col id="rcptyn"/>
  173. </Row>
  174. </Rows>
  175. </Dataset>
  176. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  177. <Dataset id="ds_main_h_custodymoney_custodymoney" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_h_custodymoney_custodymoney_oncolumnchanged">
  178. <ColumnInfo>
  179. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  180. <Column id="hngnm" type="STRING" size="256" sumtext="이름"/>
  181. <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
  182. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  183. <Column id="rcptexecdd" type="STRING" size="256" sumtext="가퇴원수납일"/>
  184. <Column id="keepkind" type="STRING" size="256" sumtext="수납구분"/>
  185. <Column id="rcptidnm" type="STRING" size="256" sumtext="수납자"/>
  186. <Column id="rcptamt" type="STRING" size="256" sumtext="보관금"/>
  187. <Column id="keepamt" type="STRING" size="256" sumtext="보관금입금"/>
  188. <Column id="keepamt_rest" type="STRING" size="256" sumtext="보관금환불"/>
  189. <Column id="keepamt_refund" type="STRING" size="256" sumtext="환불대상금"/>
  190. <Column id="prtyn" type="STRING" size="256" sumtext="안내장출력여부"/>
  191. <Column id="rcpttm" type="STRING" size="256"/>
  192. </ColumnInfo>
  193. </Dataset>
  194. <Dataset id="ds_main_h_print" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  195. <Dataset id="ds_hidden_popupmenu_gridmenu_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  196. <ColumnInfo>
  197. <Column id="label" type="STRING" size="256"/>
  198. <Column id="func" type="STRING" size="256"/>
  199. <Column id="level" type="STRING" size="256"/>
  200. </ColumnInfo>
  201. <Rows>
  202. <Row>
  203. <Col id="label">가퇴원보관금 환불안내장</Col>
  204. <Col id="func">fPrintKeep</Col>
  205. </Row>
  206. </Rows>
  207. </Dataset>
  208. <Dataset id="ds_send_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="pid" type="STRING" size="256"/>
  211. <Column id="keepamt_refund" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. <Rows>
  214. <Row/>
  215. </Rows>
  216. </Dataset>
  217. <Dataset id="ds_send_data3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  218. </Objects>
  219. <Bind>
  220. <BindItem id="item0" compid="group4.input4" propid="value" datasetid="ds_send_data1" columnid="fromdd"/>
  221. <BindItem id="item1" compid="group4.input3" propid="value" datasetid="ds_send_data1" columnid="todd"/>
  222. <BindItem id="item2" compid="group4.bool8" propid="value" datasetid="ds_send_data1" columnid="keepyn"/>
  223. <BindItem id="item3" compid="group4.bool9" propid="value" datasetid="ds_send_data1" columnid="rcptyn"/>
  224. <BindItem id="item4" compid="group4.bool7" propid="value" datasetid="ds_send_data1" columnid="norefunds"/>
  225. <BindItem id="item5" compid="group5.fromdd" propid="value" datasetid="ds_send_data1" columnid="fromdd"/>
  226. <BindItem id="item6" compid="group5.todd" propid="value" datasetid="ds_send_data1" columnid="todd"/>
  227. <BindItem id="item7" compid="group5.bool2" propid="value" datasetid="ds_send_data1" columnid="rcptyn"/>
  228. <BindItem id="item8" compid="group5.bool4" propid="value" datasetid="ds_send_data1" columnid="columnid=&quot;norefunds"/>
  229. <BindItem id="item9" compid="group2.input1" propid="value" datasetid="ds_send_data1" columnid="todd"/>
  230. <BindItem id="item10" compid="group2.input2" propid="value" datasetid="ds_send_data1" columnid="fromdd"/>
  231. <BindItem id="item11" compid="group2.bool5" propid="value" datasetid="ds_send_data1" columnid="keepyn"/>
  232. <BindItem id="item12" compid="group2.bool6" propid="value" datasetid="ds_send_data1" columnid="rcptyn"/>
  233. <BindItem id="item13" compid="group2.bool3" propid="value" datasetid="ds_send_data1" columnid="norefunds"/>
  234. </Bind>
  235. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  236. * System Name :
  237. * Job Name :
  238. * Creator :
  239. * Make Date : 2016-05-24
  240. * Description :
  241. *---------------------------------------------------------------------------------------
  242. * Modify Date Modifier Modify Description
  243. *---------------------------------------------------------------------------------------
  244. * 2016-05-24 Live Converter TF->XP
  245. *
  246. *---------------------------------------------------------------------------------------
  247. ****************************************************************************************/
  248. include 'com_commonxp::comm_main.xjs';
  249. include 'pam_opatmngtxp::PMOCOM.xjs';
  250. var arErrorCode = new HashArray();
  251. function SMPMI05430_oninit(obj:Form, e:InitEventInfo)
  252. {
  253. frmf_initForm(obj);
  254. }
  255. function SMPMI05430_onload(obj:Form, e:LoadEventInfo)
  256. {
  257. grdf_initGrid(grd_cusmoneylist);
  258. fGetUserInfosSampling();//세션정보
  259. ds_send_data1.setColumn(0, "sess_posinstcd", ds_hidden_session.getColumn(0, "sess_dutplceinstcd"));
  260. ds_send_data1.setColumn(0, "ioflag","I");
  261. ds_send_data1.setColumn(0, "keepyn","Y");
  262. ds_send_data1.setColumn(0, "norefunds","N");
  263. ds_send_data1.setColumn(0, "rcptyn","N");
  264. group5.bool2.enable = false;
  265. ds_send_data1.setColumn(0, "fromdd", utlf_getCurrentDate());
  266. ds_send_data1.setColumn(0, "todd", utlf_getCurrentDate());
  267. var oParam = {};
  268. oParam.id = "TRPMI00106";
  269. oParam.service = "pamcomnapp.PamComn";
  270. oParam.method = "reqGetComCD";
  271. oParam.inds = "req=ds_send_data1";
  272. oParam.outds = "ds_=disccd ds_=insukind ds_=suppkind ds_=suppkindhist ds_=orddeptcd ds_=orddrid ds_=wardcd ds_=roomcd ds_=bedcd ds_=roomgrdecd ds_=roomgrdelist ds_=roomtypecd ds_=flag ds_=proccd ds_=centcd ds_=hospgrde ds_=naticd ds_=erorddrid ds_=insucd ds_=uncocd";
  273. oParam.async = false;
  274. //oParam.callback = "cf_TRPMI00106";
  275. tranf_submit(oParam);
  276. var arrParam = [{dsNm: "ds_init1_P0101_P0101list", cdGrpId: "P0101", showValue: false}
  277. ,{dsNm: "ds_init1_P0028_P0028list", cdGrpId: "P0028", showValue: false}
  278. ,{dsNm: "ds_init1_P0038_P0038list", cdGrpId: "P0038", showValue: false}];
  279. appf_getCodeList(arrParam);
  280. }
  281. function f_Search()
  282. {
  283. ds_send_data1.setColumn(0, "sendflag" , "custodymoney")
  284. var oParam = {};
  285. oParam.id = "TRPMI05430";
  286. oParam.service = "ipatmngtapp.WardReport";
  287. oParam.method = "reqChanType";
  288. oParam.inds = "req=ds_send_data1";
  289. oParam.outds = "ds_main_h_custodymoney_custodymoney=custodymoney";
  290. oParam.async = false;
  291. //oParam.callback = "cf_TRPMI05430";
  292. tranf_submit(oParam);
  293. grd_cusmoneylist.setFocus();
  294. }
  295. function group2_bool5_onclick(obj:CheckBox, e:ClickEventInfo)
  296. {
  297. // 조회조건 배타처리 (수납금기준 / 보관금기준 동시 선택 불가)
  298. if (obj.value == "Y")
  299. {
  300. ds_send_data1.setColumn(0, "rcptyn", "N");
  301. group5.bool2.enable = false;
  302. }
  303. else
  304. {
  305. group5.bool2.enable = true;
  306. }
  307. }
  308. function group2_bool6_onclick(obj:CheckBox, e:ClickEventInfo)
  309. {
  310. // 조회조건 배타처리 (수납금기준 / 보관금기준 동시 선택 불가)
  311. if (obj.value == "Y")
  312. {
  313. ds_send_data1.setColumn(0, "keepyn", "N");
  314. group5.bool1.enable = false;
  315. }
  316. else
  317. {
  318. group5.bool1.enable = true;
  319. }
  320. }
  321. function group2_button3_onclick(obj:Button, e:ClickEventInfo)
  322. {
  323. f_Search();
  324. }
  325. function group4_bool8_onclick(obj:CheckBox, e:ClickEventInfo)
  326. {
  327. // 조회조건 배타처리 (수납금기준 / 보관금기준 동시 선택 불가)
  328. if (obj.value == "Y")
  329. {
  330. ds_send_data1.setColumn(0, "rcptyn", "N");
  331. group5.bool2.enable = false;
  332. }
  333. else
  334. {
  335. group5.bool2.enable = true;
  336. }
  337. }
  338. function group4_bool9_onclick(obj:CheckBox, e:ClickEventInfo)
  339. {
  340. // 조회조건 배타처리 (수납금기준 / 보관금기준 동시 선택 불가)
  341. if (obj.value == "Y")
  342. {
  343. ds_send_data1.setColumn(0, "keepyn", "N");
  344. group5.bool1.enable = false;
  345. }
  346. else
  347. {
  348. group5.bool1.enable = true;
  349. }
  350. }
  351. function group4_button4_onclick(obj:Button, e:ClickEventInfo)
  352. {
  353. f_Search();
  354. }
  355. function group5_bool1_onclick(obj:CheckBox, e:ClickEventInfo)
  356. {
  357. // 조회조건 배타처리 (수납금기준 / 보관금기준 동시 선택 불가)
  358. if (obj.value == "Y")
  359. {
  360. ds_send_data1.setColumn(0, "rcptyn", "N");
  361. group5.bool2.enable = false;
  362. }
  363. else
  364. {
  365. group5.bool2.enable = true;
  366. }
  367. }
  368. function group5_bool2_onclick(obj:CheckBox, e:ClickEventInfo)
  369. {
  370. // 조회조건 배타처리 (수납금기준 / 보관금기준 동시 선택 불가)
  371. if (obj.value == "Y")
  372. {
  373. ds_send_data1.setColumn(0, "keepyn", "N");
  374. group5.bool1.enable = false;
  375. }
  376. else
  377. {
  378. group5.bool1.enable = true;
  379. }
  380. }
  381. function group5_btn_search2_onclick(obj:Button, e:ClickEventInfo)
  382. {
  383. f_Search();
  384. }
  385. function grd_cusmoneylist_oncellclick(obj:Grid, e:GridClickEventInfo)
  386. {
  387. if (e.cell != obj.getBindCellIndex("Body", "prtyn"))
  388. {
  389. return;
  390. }
  391. fSetPrtYN();
  392. }
  393. function grd_cusmoneylist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  394. {
  395. var sPid = ds_main_h_custodymoney_custodymoney.getColumn(ds_main_h_custodymoney_custodymoney.rowposition, "pid");
  396. // 보관금화면 호출
  397. frmf_setParameter("SMPAI02300_PARAM", sPid);
  398. frmf_open("SMPAI02300", "SMPAI02300", "", "", "", "", "", "", "", "", "", "", "M");
  399. }
  400. function grd_cusmoneylist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  401. {
  402. pmn_menu1.trackPopup(e.screenX,e.screenY);
  403. }
  404. function pmn_menu1_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  405. {
  406. eval(e.id +"();");
  407. }
  408. function pmn_menu1_onmouseleave(obj:PopupMenu, e:MenuMouseEventInfo)
  409. {
  410. obj.closePopup();
  411. }
  412. function fPrintKeep()
  413. {
  414. ds_send_data2.setColumn(0, "pid" , ds_main_h_custodymoney_custodymoney.getColumn(ds_main_h_custodymoney_custodymoney.rowposition, "pid"));
  415. ds_send_data2.setColumn(0, "keepamt_refund" , ds_main_h_custodymoney_custodymoney.getColumn(ds_main_h_custodymoney_custodymoney.rowposition, "keepamt_refund"));
  416. var oParam = {};
  417. oParam.id = "TRPMI05430";
  418. oParam.service = "ipatmngtapp.WardReport";
  419. oParam.method = "reqGetPrintKpam";
  420. oParam.inds = "req=ds_send_data2";
  421. oParam.outds = "ds_main_h_print=print";
  422. oParam.async = false;
  423. //oParam.callback = "cf_TRPMI05430";
  424. tranf_submit(oParam);
  425. var objDOM = rptf_createDOM();
  426. rptf_setNodeListToDOM(objDOM, "/root/main/h_print/print", ds_main_h_print);
  427. var objParam = new Object();
  428. objParam.xml_data_XML1 = objDOM.documentElement.source;
  429. var option = null;
  430. rptf_exeReportPreview30(["RPPMI05431"],[objParam], option);
  431. ds_main_h_custodymoney_custodymoney.setColumn(ds_main_h_custodymoney_custodymoney.rowposition, "prtyn", "true");
  432. fSetPrtYN();
  433. }
  434. function fSetPrtYN()
  435. {
  436. var row = ds_main_h_custodymoney_custodymoney.rowposition;
  437. var pid = ds_main_h_custodymoney_custodymoney.getColumn(row, "pid");
  438. var indd = ds_main_h_custodymoney_custodymoney.getColumn(row, "indd");
  439. var prtyn = ds_main_h_custodymoney_custodymoney.getColumn(row, "prtyn");
  440. ds_send_data3.setColumn(0, "pid", pid);
  441. ds_send_data3.setColumn(0, "indd", indd);
  442. ds_send_data3.setColumn(0, "prtyn", prtyn == "true" ? "Y" : "");
  443. var oParam = {};
  444. oParam.id = "TXPMI05431";
  445. oParam.service = "ipatmngtapp.WardReport";
  446. oParam.method = "reqSetKeepamtPrtYn";
  447. oParam.inds = "req=ds_send_data3";
  448. oParam.async = false;
  449. //oParam.callback = "cf_TXPMI05431";
  450. tranf_submit(oParam);
  451. }
  452. function ds_main_h_custodymoney_custodymoney_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  453. {
  454. if(e.columnid == "prtyn")
  455. {
  456. obj.setColumn(e.row, "prtyn", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  457. }
  458. }
  459. function button2_onclick(obj:Button, e:ClickEventInfo)
  460. {
  461. var objDOM = rptf_createDOM();
  462. rptf_setNodeListToDOM(objDOM, "/root/send/data1", ds_send_data1);
  463. rptf_setNodeListToDOM(objDOM, "/root/main/h_custodymoney/custodymoney", ds_main_h_custodymoney_custodymoney);
  464. var objParam = new Object();
  465. objParam.xml_data_XML1 = objDOM.documentElement.source;
  466. var option = null;
  467. rptf_exeReportPreview30(["RPPMI05430"],[objParam], option);
  468. }
  469. function button1_onclick(obj:Button, e:ClickEventInfo)
  470. {
  471. grdf_exportExcel(grd_cusmoneylist, "excel", "SheetName", "true", "", "");
  472. }
  473. ]]></Script>
  474. </Form>
  475. </FDL>