SMPAS00153_수혈청구현황.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPAS00153" position="absolute 0 0 1200 770" titletext="수혈 청구 현황" oninit="SMPAS00153_oninit" onload="SMPAS00153_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="7" position="absolute 0 24 1195 64" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption3" text="청구일 :" class="search_name" position="absolute 10 10 86 27"/>
  11. <Calendar id="ipt_clmm" taborder="1" class="input_search" position="absolute 79 10 149 29" style="align:center middle;" mask="yyyy-mm" autoselect="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="grp_sea_ipt_clmm_onchanged"/>
  12. <Combo id="cmb_claimdd" taborder="2" innerdataset="@ds_hidden_daylist_dayinfo" codecolumn="claimdd" datacolumn="claimdd_f" class="combo_search" position="absolute 159 10 249 29" columncount="-1" rowcount="-1" onitemchanged="grp_sea_cmb_claimdd_onitemchanged"/>
  13. <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 280 12 367 29"/>
  14. <Static id="cap_srchflag" position="absolute 362 10 407 29" style="background:#ffffffff;border:1 solid darkgray darkgray;color:#707070ff;align:center;" class="input_search"/>
  15. <Static id="caption1" text="기간 :" class="search_name" position="absolute 425 12 486 29" enable="true"/>
  16. <Static id="cap_dd" position="absolute 482 10 632 29" style="background:#ffffffff;border:1 solid darkgray darkgray;color:#707070ff;align:center;" class="input_search"/>
  17. <Static id="caption8" text="진료형태 :" class="search_name" position="absolute 650 12 736 29" enable="true"/>
  18. <Static id="cap_ordtype" position="absolute 732 10 772 29" style="background:#ffffffff;border:1 solid darkgray darkgray;color:#707070ff;align:center;" class="input_search"/>
  19. <Static id="caption10" text="입금구분 :" class="search_name" position="absolute 790 12 876 29" enable="true"/>
  20. <Static id="cap_depoflag" position="absolute 872 10 932 29" style="background:#ffffffff;border:1 solid darkgray darkgray;color:#707070ff;align:center;" class="input_search"/>
  21. <Static id="caption6" text="등록번호 :" class="search_name" position="absolute 950 12 1036 29" enable="true"/>
  22. <Static id="cap_pid" position="absolute 1032 10 1087 29" style="background:#ffffffff;border:1 solid darkgray darkgray;color:#707070ff;align:center;" class="input_search"/>
  23. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 1125 10 1181 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  24. <Shape id="line13" linetype="vertical" position="absolute 1110 8 1113 35" anchor="top right" style="border: solid #FFD799 #FFD799;"/>
  25. </Layout>
  26. </Layouts>
  27. </Div>
  28. <Static id="cap_title" class="tit_1" position="absolute 0 0 157 25" text="수혈 청구 현황"/>
  29. <Static id="cap_grid" class="tit_2" position="absolute 0 74 80 95" style="" text="조회 내역"/>
  30. <Shape id="line2" class="line_10" linetype="horizontal" position="absolute 0 88 1195 99" style="" anchor="left top right" onclick="line2_onclick"/>
  31. <Grid id="grd_bldc" binddataset="ds_main_bldclist_bldcinfo" position="absolute 0 95 1195 760" style="" autoenter="select" cellsizingtype="col" anchor="all">
  32. <Formats>
  33. <Format id="default">
  34. <Columns>
  35. <Column size="25"/>
  36. <Column size="54"/>
  37. <Column size="44"/>
  38. <Column size="94"/>
  39. <Column size="44"/>
  40. <Column size="39"/>
  41. <Column size="0"/>
  42. <Column size="54"/>
  43. <Column size="30"/>
  44. <Column size="30"/>
  45. <Column size="73"/>
  46. <Column size="27"/>
  47. <Column size="34"/>
  48. <Column size="64"/>
  49. <Column size="0"/>
  50. <Column size="44"/>
  51. <Column size="34"/>
  52. <Column size="34"/>
  53. <Column size="73"/>
  54. <Column size="68"/>
  55. <Column size="74"/>
  56. <Column size="73"/>
  57. <Column size="72"/>
  58. <Column size="68"/>
  59. <Column size="30"/>
  60. </Columns>
  61. <Rows>
  62. <Row size="24" band="head"/>
  63. <Row size="24"/>
  64. <Row size="24" band="summ"/>
  65. </Rows>
  66. <Band id="head">
  67. <Cell/>
  68. <Cell col="1" text="등록번호"/>
  69. <Cell col="2" text="환자명"/>
  70. <Cell col="3" text="주민등록번호"/>
  71. <Cell col="4" text="헌혈증"/>
  72. <Cell col="5" text="입/외"/>
  73. <Cell col="6" text="insukind"/>
  74. <Cell col="7" text="보험유형"/>
  75. <Cell col="8" text="기관"/>
  76. <Cell col="9" text="본인"/>
  77. <Cell col="10" text="수혈일자"/>
  78. <Cell col="11" text="D"/>
  79. <Cell col="12" text="ABO"/>
  80. <Cell col="13" text="그룹코드"/>
  81. <Cell col="14" text="헌혈증구분"/>
  82. <Cell col="15" text="혈액명"/>
  83. <Cell col="16" text="용량"/>
  84. <Cell col="17" text="수량"/>
  85. <Cell col="18" text="수혈비용"/>
  86. <Cell col="19" text="청구금액"/>
  87. <Cell col="20" text="진료/퇴원일"/>
  88. <Cell col="21" text="수납일"/>
  89. <Cell col="22" text="입금일"/>
  90. <Cell col="23" text="입금금액"/>
  91. <Cell col="24"/>
  92. </Band>
  93. <Band id="body">
  94. <Cell celltype="head" expr="currow+1"/>
  95. <Cell col="1" style="background:BIND(background);background2:BIND(background);" text="bind:pid" suppress="1" suppressalign="middle,over"/>
  96. <Cell col="2" style="background:BIND(background);background2:BIND(background);" text="bind:hngnm" suppress="2" suppressalign="middle,over"/>
  97. <Cell col="3" style="background:BIND(background);background2:BIND(background);" text="bind:rrgstno" suppress="3" suppressalign="middle,over"/>
  98. <Cell col="4" style="background:BIND(background);background2:BIND(background);" text="bind:cardcnt" suppress="4" suppressalign="middle,over"/>
  99. <Cell col="5" style="background:BIND(background);background2:BIND(background);" text="bind:ordtypenm" suppress="5" suppressalign="middle,over"/>
  100. <Cell col="6" style="background:BIND(background);background2:BIND(background);" text="bind:insukind"/>
  101. <Cell col="7" style="background:BIND(background);background2:BIND(background);" text="bind:insukindnm" suppress="6" suppressalign="middle,over"/>
  102. <Cell col="8" style="background:BIND(background);background2:BIND(background);" text="bind:corpactaddrate" suppress="7" suppressalign="middle,over"/>
  103. <Cell col="9" style="background:BIND(background);background2:BIND(background);" text="bind:payownbrate" suppress="8" suppressalign="middle,over"/>
  104. <Cell col="10" style="background:BIND(background);background2:BIND(background);" text="bind:appdd"/>
  105. <Cell col="11" style="background:BIND(background_apprsn);background2:BIND(background_apprsn);" text="bind:apprsn"/>
  106. <Cell col="12" style="background:BIND(background);background2:BIND(background);" text="bind:abocnt"/>
  107. <Cell col="13" style="background:BIND(background);background2:BIND(background);" text="bind:grupcalcscorcd"/>
  108. <Cell col="14" style="background:BIND(background);background2:BIND(background);" text="bind:bldabbrgb"/>
  109. <Cell col="15" style="align:left top;padding:5 2 3 1;background:BIND(background);background2:BIND(background);" text="bind:bldnm" wordwrap="word"/>
  110. <Cell col="16" style="background:BIND(background);background2:BIND(background);" text="bind:bldvol"/>
  111. <Cell col="17" displaytype="number" style="align:center middle;background:BIND(background);background2:BIND(background);" text="bind:totalcnt"/>
  112. <Cell col="18" displaytype="number" style="background:BIND(background);background2:BIND(background);" text="bind:totalamt"/>
  113. <Cell col="19" displaytype="number" style="background:BIND(background);background2:BIND(background);" text="bind:discamt"/>
  114. <Cell col="20" style="background:BIND(background);background2:BIND(background);" text="bind:dschdd"/>
  115. <Cell col="21" displaytype="date" style="background:BIND(background);background2:BIND(background);" text="bind:rcptexecdd" calendardisplaynulltype="nulltext"/>
  116. <Cell col="22" displaytype="date" style="background:BIND(background);background2:BIND(background);" text="bind:depodd" calendardisplaynulltype="nulltext"/>
  117. <Cell col="23" displaytype="number" style="background:BIND(background);background2:BIND(background);" text="bind:depoamt"/>
  118. <Cell col="24" displaytype="checkbox" edittype="checkbox" text="bind:depoflag" expr="expr:depoflag == 'true' || depoflag == '1' ? 1 : 0"/>
  119. </Band>
  120. <Band id="summary">
  121. <Cell/>
  122. <Cell col="1" colspan="16" style="background:#ffffa0ff;background2:#ffffa0ff;font:arial,9,bold;" text="합계" taborder="undefined"/>
  123. <Cell col="17" displaytype="number" style="background:#ffffa0ff;background2:#ffffa0ff;font:arial,9,bold;" text="expr:getSum('totalcnt')"/>
  124. <Cell col="18" displaytype="number" style="background:#ffffa0ff;background2:#ffffa0ff;font:arial,9,bold;" text="expr:getSum('totalamt')"/>
  125. <Cell col="19" displaytype="number" style="background:#ffffa0ff;background2:#ffffa0ff;font:arial,9,bold;" text="expr:getSum('discamt')"/>
  126. <Cell col="20" style="background:#ffffa0ff;background2:#ffffa0ff;font:arial,9,bold;"/>
  127. <Cell col="21" style="background:#ffffa0ff;background2:#ffffa0ff;font:arial,9,bold;"/>
  128. <Cell col="22" style="background:#ffffa0ff;background2:#ffffa0ff;font:arial,9,bold;"/>
  129. <Cell col="23" displaytype="number" style="background:#ffffa0ff;background2:#ffffa0ff;font:arial,9,bold;" text="expr:getSum('depoamt')"/>
  130. <Cell col="24" style="background:#ffffa0ff;background2:#ffffa0ff;font:arial,9,bold;"/>
  131. </Band>
  132. </Format>
  133. </Formats>
  134. </Grid>
  135. <Button id="btn_print1" class="btn6" position="absolute 1087 71 1140 90" text="출력" onclick="btn_print1_onclick" anchor="top right"/>
  136. <Button id="btn_excel1" class="btn7" position="absolute 1141 71 1195 90" text="엑셀" onclick="btn_excel1_onclick" anchor="top right"/>
  137. <Static id="caption4" position="absolute 95 75 230 89" style="" text="( : Dump된 헌혈증 )"/>
  138. <Shape id="rectangle1" type="rectangle" position="absolute 103 74 118 89" style="fillbrush:solid transparent true;background:#9fc93cff;border:1 solid #ffffffff ;"/>
  139. </Layout>
  140. </Layouts>
  141. <Objects>
  142. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="clmm" type="STRING" size="256"/>
  145. <Column id="claimdd" type="STRING" size="256"/>
  146. <Column id="srchcond" type="STRING" size="256"/>
  147. <Column id="fromdd" type="STRING" size="256"/>
  148. <Column id="todd" type="STRING" size="256"/>
  149. <Column id="ordtype" type="STRING" size="256"/>
  150. <Column id="depoflag" type="STRING" size="256"/>
  151. <Column id="pid" type="STRING" size="256"/>
  152. </ColumnInfo>
  153. <Rows>
  154. <Row>
  155. <Col id="clmm"/>
  156. <Col id="claimdd"/>
  157. <Col id="srchcond"/>
  158. <Col id="fromdd"/>
  159. <Col id="todd"/>
  160. <Col id="ordtype"/>
  161. <Col id="depoflag"/>
  162. <Col id="pid"/>
  163. </Row>
  164. </Rows>
  165. </Dataset>
  166. <Dataset id="ds_main_bldclist_bldcinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_bldclist_bldcinfo_oncolumnchanged">
  167. <ColumnInfo>
  168. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  169. <Column id="pidno" type="STRING" size="256" sumtext="일련번호"/>
  170. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  171. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  172. <Column id="rrgstno" type="STRING" size="256" sumtext="주민등록번호"/>
  173. <Column id="cardcnt" type="STRING" size="256" sumtext="헌혈증매수"/>
  174. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
  175. <Column id="ordtypenm" type="STRING" size="256" sumtext="진료형태"/>
  176. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  177. <Column id="insukindnm" type="STRING" size="256" sumtext="보험유형"/>
  178. <Column id="corpactaddrate" type="STRING" size="256" sumtext="의료기관종별가산률"/>
  179. <Column id="payownbrate" type="STRING" size="256" sumtext="환자본인부담률"/>
  180. <Column id="appdd" type="STRING" size="256" sumtext="수혈일자"/>
  181. <Column id="abocnt" type="STRING" size="256" sumtext="ABO혈청검사횟수"/>
  182. <Column id="grupcalcscorcd" type="STRING" size="256" sumtext="그룹수가코드"/>
  183. <Column id="bldabbrgb" type="STRING" size="256" sumtext="헌혈증구분"/>
  184. <Column id="bldnm" type="STRING" size="256" sumtext="혈액명"/>
  185. <Column id="bldvol" type="STRING" size="256" sumtext="용량"/>
  186. <Column id="totalcnt" type="INT" size="256" sumtext="수혈수량"/>
  187. <Column id="totalamt" type="INT" size="256" sumtext="수혈비용"/>
  188. <Column id="discamt" type="INT" size="256" sumtext="청구금액"/>
  189. <Column id="orddd" type="STRING" size="256" sumtext="입원/진료일"/>
  190. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원/진료일"/>
  191. <Column id="rcptexecdd" type="STRING" size="256" sumtext="수납일"/>
  192. <Column id="depodd" type="STRING" size="256" sumtext="입금일"/>
  193. <Column id="depoamt" type="INT" size="256" sumtext="입금금액"/>
  194. <Column id="depoflag" type="STRING" size="256" sumtext="청구여부"/>
  195. <Column id="bldno" type="STRING" size="256" sumtext="수혈번호 목록"/>
  196. <Column id="apprsn" type="STRING" size="256" sumtext="적용사유(D:Dump)"/>
  197. <Column id="background" type="STRING" size="256"/>
  198. <Column id="background_apprsn" type="STRING" size="256"/>
  199. </ColumnInfo>
  200. </Dataset>
  201. <Dataset id="ds_hidden_daylist_dayinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  202. <ColumnInfo>
  203. <Column id="claimdd" type="STRING" size="256" sumtext="청구일"/>
  204. <Column id="claimdd_f" type="STRING" size="256" sumtext="청구일(포맷팅)"/>
  205. <Column id="srchstr" type="STRING" size="256" sumtext="검색조건"/>
  206. </ColumnInfo>
  207. </Dataset>
  208. <Dataset id="ds_main_prtlist_prtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  211. <Column id="pidno" type="STRING" size="256" sumtext="일련번호"/>
  212. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  213. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  214. <Column id="rrgstno" type="STRING" size="256" sumtext="주민등록번호"/>
  215. <Column id="cardcnt" type="STRING" size="256" sumtext="헌혈증매수"/>
  216. <Column id="ordtypenm" type="STRING" size="256" sumtext="진료형태"/>
  217. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  218. <Column id="insukindnm" type="STRING" size="256" sumtext="보험유형"/>
  219. <Column id="corpactaddrate" type="STRING" size="256" sumtext="의료기관종별가산률"/>
  220. <Column id="payownbrate" type="STRING" size="256" sumtext="환자본인부담률"/>
  221. <Column id="appdd" type="STRING" size="256" sumtext="수혈일자"/>
  222. <Column id="abocnt" type="STRING" size="256" sumtext="ABO혈청검사횟수"/>
  223. <Column id="grupcalcscorcd" type="STRING" size="256" sumtext="그룹수가코드"/>
  224. <Column id="bldabbrgb" type="STRING" size="256" sumtext="헌혈증구분"/>
  225. <Column id="bldnm" type="STRING" size="256" sumtext="혈액명"/>
  226. <Column id="bldvol" type="STRING" size="256" sumtext="용량"/>
  227. <Column id="totalcnt" type="STRING" size="256" sumtext="수혈수량"/>
  228. <Column id="cntsum" type="STRING" size="256" sumtext="수혈수량합계"/>
  229. <Column id="totalamt" type="STRING" size="256" sumtext="수혈비용"/>
  230. <Column id="discamt" type="STRING" size="256" sumtext="청구금액"/>
  231. <Column id="orddd" type="STRING" size="256" sumtext="입원/진료일"/>
  232. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원/진료일"/>
  233. <Column id="rcptexecdd" type="STRING" size="256" sumtext="수납일"/>
  234. <Column id="depodd" type="STRING" size="256" sumtext="입금일"/>
  235. <Column id="depoamt" type="STRING" size="256" sumtext="입금금액"/>
  236. <Column id="depoflag" type="STRING" size="256" sumtext="청구여부"/>
  237. <Column id="sumflag" type="STRING" size="256" sumtext="합산여부"/>
  238. </ColumnInfo>
  239. </Dataset>
  240. <Dataset id="ds_main_ptlist_ptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  241. <ColumnInfo>
  242. <Column id="pidno" type="STRING" size="256" sumtext="환자별일련번호"/>
  243. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  244. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  245. <Column id="ordtypenm" type="STRING" size="256" sumtext="진료형태"/>
  246. <Column id="appdd" type="STRING" size="256" sumtext="수혈일자"/>
  247. <Column id="totalcnt" type="STRING" size="256" sumtext="수혈수량"/>
  248. <Column id="discamt" type="STRING" size="256" sumtext="청구금액"/>
  249. </ColumnInfo>
  250. </Dataset>
  251. <Dataset id="ds_main_bldnolist_bldnoinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  252. <ColumnInfo>
  253. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  254. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  255. <Column id="cnt" type="STRING" size="256" sumtext="수혈수량"/>
  256. <Column id="bldno" type="STRING" size="256" sumtext="혈액번호 목록"/>
  257. </ColumnInfo>
  258. </Dataset>
  259. </Objects>
  260. <Bind>
  261. <BindItem id="item0" compid="grp_sea.ipt_clmm" propid="value" datasetid="ds_send" columnid="clmm"/>
  262. <BindItem id="item1" compid="grp_sea.cmb_claimdd" propid="value" datasetid="ds_send" columnid="claimdd"/>
  263. </Bind>
  264. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  265. * System Name :
  266. * Job Name :
  267. * Creator :
  268. * Make Date : 2016-05-24
  269. * Description :
  270. *---------------------------------------------------------------------------------------
  271. * Modify Date Modifier Modify Description
  272. *---------------------------------------------------------------------------------------
  273. * 2016-05-24 Live Converter TF->XP
  274. *
  275. *---------------------------------------------------------------------------------------
  276. ****************************************************************************************/
  277. //=======================================================================================
  278. include 'com_commonxp::comm_main.xjs';
  279. include 'pam_pamcomnxp::PAM.xjs';
  280. include 'pam_pamcomnxp::PAM001.xjs';
  281. function SMPAS00153_oninit(obj:Form, e:InitEventInfo)
  282. {
  283. frmf_initForm(obj);
  284. }
  285. function SMPAS00153_onload(obj:Form, e:LoadEventInfo)
  286. {
  287. grdf_initGrid(grd_bldc);
  288. ds_send.setColumn(0, "clmm", String(utlf_getCurrentDate()).substr(0, 6));
  289. var oParam = {};
  290. oParam.id = "TRPAS00154";
  291. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  292. oParam.method = "reqGetBldcClamDays";
  293. oParam.inds = "req=ds_send";
  294. oParam.outds = "ds_hidden_daylist_dayinfo=day";
  295. oParam.async = false;
  296. //oParam.callback = "cf_TRPAS00154";
  297. tranf_submit(oParam);
  298. if(ds_hidden_daylist_dayinfo.rowcount > 0)
  299. {
  300. grp_sea.cmb_claimdd.index = parseInt(ds_hidden_daylist_dayinfo.rowcount-1);
  301. frmf_inputEnterKey("grp_sea.cmb_claimdd", "onitemchanged", new ItemChangeEventInfo );
  302. }
  303. }
  304. function grp_sea_cmb_claimdd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  305. {
  306. var arr = String(ds_hidden_daylist_dayinfo.lookup("claimdd", obj.value, "srchstr")).split("|");
  307. var srchflag = "";
  308. switch (arr[0])
  309. {
  310. case "appdd" : srchflag = "실시일"; break;
  311. case "orddd" : srchflag = "진료일"; break;
  312. case "rcptexecdd" : srchflag = "수납일"; break;
  313. case "depodd" : srchflag = "입금일"; break;
  314. default : break;
  315. }
  316. grp_sea.cap_srchflag.text = srchflag;
  317. grp_sea.cap_dd.text = String(utlf_transNullToEmpty(arr[1])).substr(0, 4) + "-" + String(utlf_transNullToEmpty(arr[1])).substr(4, 2) + "-"
  318. + String(utlf_transNullToEmpty(arr[1])).substr(6, 2) + " ~ " + String(utlf_transNullToEmpty(arr[2])).substr(0, 4) + "-"
  319. + String(utlf_transNullToEmpty(arr[2])).substr(4, 2) + "-" + String(utlf_transNullToEmpty(arr[2])).substr(6, 2);
  320. var ordtype = "";
  321. switch (arr[3])
  322. {
  323. case "T" : ordtype = "전체"; break;
  324. case "I" : ordtype = "입원"; break;
  325. case "O" : ordtype = "외래"; break;
  326. default : break;
  327. }
  328. grp_sea.cap_ordtype.text = ordtype;
  329. var depoflag = "";
  330. switch (arr[4])
  331. {
  332. case "T" : depoflag = "전체"; break;
  333. case "Y" : depoflag = "입금완료"; break;
  334. case "N" : depoflag = "미입금"; break;
  335. default : break;
  336. }
  337. grp_sea.cap_depoflag.text = depoflag;
  338. grp_sea.cap_pid.text = utlf_transNullToEmpty(arr[5]);
  339. ds_send.setColumn(0, "srchcond", arr[0]);
  340. ds_send.setColumn(0, "fromdd", arr[1]);
  341. ds_send.setColumn(0, "todd", arr[2]);
  342. ds_send.setColumn(0, "ordtype", arr[3]);
  343. ds_send.setColumn(0, "depoflag", arr[4]);
  344. ds_send.setColumn(0, "pid", arr[5]);
  345. }
  346. function grp_sea_ipt_clmm_onchanged(obj:Calendar, e:ChangeEventInfo)
  347. {
  348. ds_send.setColumn(0, "clmm", String(obj.value).substr(0,6));
  349. var oParam = {};
  350. oParam.id = "TRPAS00154";
  351. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  352. oParam.method = "reqGetBldcClamDays";
  353. oParam.inds = "req=ds_send";
  354. oParam.outds = "ds_hidden_daylist_dayinfo=day";
  355. oParam.async = false;
  356. //oParam.callback = "cf_TRPAS00154";
  357. tranf_submit(oParam);
  358. grp_sea.cmb_claimdd.index = parseInt(ds_hidden_daylist_dayinfo.rowcount-1);
  359. frmf_inputEnterKey("grp_sea.cmb_claimdd", "onitemchanged", new ItemChangeEventInfo );
  360. }
  361. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  362. {
  363. ds_main_prtlist_prtinfo.clearData();
  364. ds_main_ptlist_ptinfo.clearData();
  365. ds_main_bldclist_bldcinfo.clearData();
  366. var oParam = {};
  367. oParam.id = "TRPAS00155";
  368. oParam.service = "rcptteamstatsapp.rcptTeamOrdStats";
  369. oParam.method = "reqGetBldcClamList";
  370. oParam.inds = "req=ds_send";
  371. oParam.outds = "ds_main_bldclist_bldcinfo=bldc ds_main_prtlist_prtinfo=prt ds_main_ptlist_ptinfo=pt ds_main_bldnolist_bldnoinfo=bldno";
  372. oParam.async = false;
  373. //oParam.callback = "cf_TRPAS00155";
  374. tranf_submit(oParam);
  375. var path = ds_main_bldclist_bldcinfo;
  376. var cnt = path.rowcount;
  377. var prevPid = path.getColumn(0, "pid");
  378. var color = "#dcffdc";
  379. var sRow = 0;
  380. var samcolor = "#dcffdc";
  381. for (var i = 0; i < cnt; i++)
  382. {
  383. var pid = path.getColumn(i, "pid");
  384. if(pid != prevPid)
  385. {
  386. dsf_makeValue(path, "background", "string", color, sRow);
  387. dsf_makeValue(path, "background_apprsn", "string", color, sRow);
  388. prevPid = pid;
  389. sRow = i;
  390. color = (color == "transparent") ? "#dcffdc" : "transparent";
  391. }
  392. if (i == parseInt(cnt-1))
  393. {
  394. dsf_makeValue(path, "background", "string", color, sRow);
  395. dsf_makeValue(path, "background_apprsn", "string", color, sRow);
  396. }
  397. }
  398. for (var i = 0; i < cnt; i++)
  399. {
  400. // 1.0 background 방식과 달라서 추가한 내용 merge 된 background 색상 지정
  401. if(utlf_isNull(path.getColumn(i, "background")))
  402. {
  403. path.setColumn(i, "background", path.getColumn(parseInt(i-1), "background"));
  404. path.setColumn(i, "background_apprsn", path.getColumn(parseInt(i-1), "background_apprsn"));
  405. }
  406. if (path.getColumn(i, "apprsn") == "D")
  407. {
  408. dsf_makeValue(path, "background_apprsn", "string", "#9FC93C", sRow);
  409. }
  410. }
  411. }
  412. function btn_print1_onclick(obj:Button, e:ClickEventInfo)
  413. {
  414. var objDOM = rptf_createDOM();
  415. rptf_setNodeListToDOM(objDOM, "/root/send", ds_send);
  416. rptf_setNodeListToDOM(objDOM, "/root/main/ptlist/ptinfo", ds_main_ptlist_ptinfo);
  417. var objParam = new Object();
  418. objParam.xml_data_XML1 = objDOM.documentElement.source;
  419. var option = null;
  420. rptf_exeReportPreview30(["RPPAS00155"],[objParam], option);
  421. var objDOM = rptf_createDOM();
  422. rptf_setNodeListToDOM(objDOM, "/root/main/prtlist/prtinfo", ds_main_prtlist_prtinfo);
  423. var objParam = new Object();
  424. objParam.xml_data_XML1 = objDOM.documentElement.source;
  425. var option = null;
  426. rptf_exeReportPreview30(["RPPAS00154"],[objParam], option);
  427. var objDOM = rptf_createDOM();
  428. rptf_setNodeListToDOM(objDOM, "/root/send", ds_send);
  429. rptf_setNodeListToDOM(objDOM, "/root/main/bldnolist/bldnoinfo", ds_main_bldnolist_bldnoinfo);
  430. var objParam = new Object();
  431. objParam.xml_data_XML1 = objDOM.documentElement.source;
  432. var option = null;
  433. rptf_exeReportPreview30(["RPPAS00156"],[objParam], option);
  434. }
  435. function btn_excel1_onclick(obj:Button, e:ClickEventInfo)
  436. {
  437. var clmm = ds_send.getColumn(0, "clmm");
  438. grdf_exportExcel(grd_bldc, "수혈청구현황_"+ clmm + "-" + todd, "수혈청구현황", "true", "", "");
  439. sysf_messageBox("엑셀 저장이 완료되었습니다.", "I999");
  440. }
  441. function ds_main_bldclist_bldcinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  442. {
  443. if(e.columnid == "depoflag")
  444. {
  445. obj.setColumn(e.row, "depoflag", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  446. }
  447. }
  448. ]]></Script>
  449. </Form>
  450. </FDL>