SPPIR31110_청구처방조회.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIR31110" position="absolute 0 0 810 451" titletext="청구처방조회" oninit="SPPIR31110_oninit" onload="SPPIR31110_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="청구처방조회" class="tit_1" position="absolute 0 0 183 23"/>
  8. <Static id="caption32" text="청구 처방내역" class="tit_2" position="absolute 0 26 160 47"/>
  9. <Shape id="line4" class="line_1" position="absolute 0 42 805 48" style="strokepen:3 solid #33bbbbff;"/>
  10. <Grid id="grd_clodlist" class="datagrid2" taborder="1" binddataset="ds_main_list1_clod" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 47 805 426">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="23"/>
  15. <Column size="30"/>
  16. <Column size="0"/>
  17. <Column size="0"/>
  18. <Column size="0"/>
  19. <Column size="0"/>
  20. <Column size="0"/>
  21. <Column size="83"/>
  22. <Column size="83"/>
  23. <Column size="265"/>
  24. <Column size="76"/>
  25. <Column size="42"/>
  26. <Column size="45"/>
  27. <Column size="45"/>
  28. <Column size="70"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. </Columns>
  37. <Rows>
  38. <Row size="31" band="head"/>
  39. <Row size="24"/>
  40. </Rows>
  41. <Band id="head">
  42. <Cell/>
  43. <Cell col="1" text="선택"/>
  44. <Cell col="2" text="clamym"/>
  45. <Cell col="3" text="clamdg"/>
  46. <Cell col="4" text="pid"/>
  47. <Cell col="5" text="pidsn"/>
  48. <Cell col="6" text="seqno"/>
  49. <Cell col="7" text="처방코드"/>
  50. <Cell col="8" text="EDI코드"/>
  51. <Cell col="9" text="처방명칭"/>
  52. <Cell col="10" text="단가"/>
  53. <Cell col="11" text="청구&#10;일회"/>
  54. <Cell col="12" text="청구&#10;일투"/>
  55. <Cell col="13" text="청구&#10;총투"/>
  56. <Cell col="14" text="청구액"/>
  57. <Cell col="15" text="정산&#10;일회"/>
  58. <Cell col="16" text="정산&#10;일투"/>
  59. <Cell col="17" text="정산&#10;총투"/>
  60. <Cell col="18" text="정산진료비"/>
  61. <Cell col="19" text="정산의뢰액"/>
  62. <Cell col="20" text="edilnno"/>
  63. <Cell col="21" text="edicdflag"/>
  64. </Band>
  65. <Band id="body">
  66. <Cell celltype="head" expr="currow+1"/>
  67. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chksel" expr="expr:chksel == 'true' || chksel == '1' ? 1 : 0"/>
  68. <Cell col="2" text="bind:clamym"/>
  69. <Cell col="3" text="bind:clamdg"/>
  70. <Cell col="4" text="bind:pid"/>
  71. <Cell col="5" text="bind:pidsn"/>
  72. <Cell col="6" text="bind:seqno"/>
  73. <Cell col="7" style="align:left middle;" text="bind:snglcalcscorcd"/>
  74. <Cell col="8" style="align:left middle;" text="bind:edicd"/>
  75. <Cell col="9" style="align:left middle;" text="bind:hngnm"/>
  76. <Cell col="10" displaytype="number" text="bind:unitcost"/>
  77. <Cell col="11" text="bind:edidrugqty"/>
  78. <Cell col="12" text="bind:tims"/>
  79. <Cell col="13" text="bind:edidayno"/>
  80. <Cell col="14" displaytype="number" text="bind:ediamt"/>
  81. <Cell col="15" displaytype="text" edittype="text" text="bind:obtapponeqty"/>
  82. <Cell col="16" displaytype="text" edittype="text" text="bind:obtappdayqty"/>
  83. <Cell col="17" displaytype="text" edittype="text" text="bind:obtapptotqty"/>
  84. <Cell col="18" text="bind:changeediamt" mask="#,###"/>
  85. <Cell col="19" text="bind:obtappamt" mask="#,###"/>
  86. <Cell col="20" text="bind:edilnno"/>
  87. <Cell col="21" text="bind:edicdflag"/>
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. <Button id="btn_save" taborder="2" text="환수내역전달" class="btn3" position="absolute 643 427 747 449" onclick="btn_save_onclick"/>
  93. <Button id="btn_close" taborder="3" text="취소" class="btn3" position="absolute 749 427 805 449" onclick="btn_close_onclick"/>
  94. </Layout>
  95. </Layouts>
  96. <Objects>
  97. <Dataset id="ds_main_list1_clod" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_list1_clod_oncolumnchanged">
  98. <ColumnInfo>
  99. <Column id="chksel" type="STRING"/>
  100. <Column id="clamym" type="STRING"/>
  101. <Column id="clamdg" type="STRING"/>
  102. <Column id="pid" type="STRING"/>
  103. <Column id="pidsn" type="STRING"/>
  104. <Column id="seqno" type="STRING"/>
  105. <Column id="snglcalcscorcd" type="STRING"/>
  106. <Column id="edicd" type="STRING"/>
  107. <Column id="hngnm" type="STRING"/>
  108. <Column id="unitcost" type="STRING"/>
  109. <Column id="edidrugqty" type="STRING"/>
  110. <Column id="tims" type="STRING"/>
  111. <Column id="edidayno" type="STRING"/>
  112. <Column id="ediamt" type="STRING"/>
  113. <Column id="obtapponeqty" type="STRING"/>
  114. <Column id="obtappdayqty" type="STRING"/>
  115. <Column id="obtapptotqty" type="STRING"/>
  116. <Column id="changeediamt" type="STRING"/>
  117. <Column id="obtappamt" type="STRING"/>
  118. <Column id="edilnno" type="STRING"/>
  119. <Column id="edicdflag" type="STRING"/>
  120. </ColumnInfo>
  121. </Dataset>
  122. <Dataset id="ds_send_data2_clod" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="seqno" type="STRING" size="256"/>
  125. </ColumnInfo>
  126. </Dataset>
  127. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  128. <ColumnInfo>
  129. <Column id="clamym" type="STRING" size="256"/>
  130. <Column id="clamdg" type="STRING" size="256"/>
  131. <Column id="pid" type="STRING" size="256"/>
  132. <Column id="pidsn" type="STRING" size="256"/>
  133. </ColumnInfo>
  134. <Rows>
  135. <Row>
  136. <Col id="clamym"/>
  137. <Col id="clamdg"/>
  138. <Col id="pid"/>
  139. <Col id="pidsn"/>
  140. </Row>
  141. </Rows>
  142. </Dataset>
  143. <Dataset id="ds_hidden_sppir31110_rslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  144. <ColumnInfo>
  145. <Column id="chksel" type="STRING"/>
  146. <Column id="clamym" type="STRING"/>
  147. <Column id="clamdg" type="STRING"/>
  148. <Column id="pid" type="STRING"/>
  149. <Column id="pidsn" type="STRING"/>
  150. <Column id="seqno" type="STRING"/>
  151. <Column id="snglcalcscorcd" type="STRING"/>
  152. <Column id="edicd" type="STRING"/>
  153. <Column id="hngnm" type="STRING"/>
  154. <Column id="unitcost" type="STRING"/>
  155. <Column id="edidrugqty" type="STRING"/>
  156. <Column id="tims" type="STRING"/>
  157. <Column id="edidayno" type="STRING"/>
  158. <Column id="ediamt" type="STRING"/>
  159. <Column id="obtapponeqty" type="STRING"/>
  160. <Column id="obtappdayqty" type="STRING"/>
  161. <Column id="obtapptotqty" type="STRING"/>
  162. <Column id="changeediamt" type="STRING"/>
  163. <Column id="obtappamt" type="STRING"/>
  164. <Column id="edilnno" type="STRING"/>
  165. <Column id="edicdflag" type="STRING"/>
  166. </ColumnInfo>
  167. </Dataset>
  168. </Objects>
  169. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  170. * System Name :
  171. * Job Name :
  172. * Creator :
  173. * Make Date : 2016-05-24
  174. * Description :
  175. *---------------------------------------------------------------------------------------
  176. * Modify Date Modifier Modify Description
  177. *---------------------------------------------------------------------------------------
  178. * 2016-05-24 Live Converter TF->XP
  179. *
  180. *---------------------------------------------------------------------------------------
  181. ****************************************************************************************/
  182. include "com_commonxp::comm_main.xjs";
  183. function SPPIR31110_oninit(obj:Form, e:InitEventInfo)
  184. {
  185. frmf_initForm(obj);
  186. }
  187. function SPPIR31110_onload(obj:Form, e:LoadEventInfo)
  188. {
  189. grdf_initGrid(grd_clodlist);
  190. fInitialize();
  191. }
  192. function fInitialize()
  193. {
  194. if ( frmf_checkOpener())
  195. {
  196. ds_send_data1.copyData(arg_ds_send);
  197. }
  198. var oParam = {};
  199. oParam.id = "TRPIR31003";
  200. oParam.service = "cutmngtapp.CutMngt";
  201. oParam.method = "reqGetRefundClodList";
  202. oParam.inds = "req=ds_send_data1";
  203. oParam.outds = "ds_main_list1_clod=clod";
  204. oParam.async = false;
  205. //oParam.callback = "cf_TRPIR31003";
  206. tranf_submit(oParam);
  207. var nodeList = ds_send_data2_clod.rowcount;
  208. for(var i = 0; i < nodeList; i++)
  209. {
  210. var isFind = false;
  211. var seqno1 = ds_send_data2_clod.getColumn(i, "seqno");
  212. for (var j = 0; j < ds_main_list1_clod.rowcount && !isFind; j++)
  213. {
  214. var seqno2 = ds_main_list1_clod.getColumn(j, "seqno");
  215. if (seqno1 == seqno2)
  216. {
  217. isFind = true;
  218. ds_main_list1_clod.setColumn(j, "chksel", "true");
  219. }
  220. }
  221. }
  222. }
  223. function ds_main_list1_clod_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  224. {
  225. if(e.columnid == "chksel")
  226. {
  227. obj.setColumn(e.row, "chksel", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  228. }
  229. }
  230. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  231. {
  232. ds_hidden_sppir31110_rslt.clearData();
  233. var check = false;
  234. for (var i = 0; i < ds_main_list1_clod.rowcount; i++)
  235. {
  236. check = ds_main_list1_clod.getColumn(i, "chksel");
  237. if (check == "true")
  238. {
  239. var cnt = ds_hidden_sppir31110_rslt.addRow();
  240. if (cnt == 0)
  241. {
  242. ds_hidden_sppir31110_rslt.copyRow(cnt, ds_main_list1_clod, i);
  243. }
  244. else
  245. {
  246. ds_hidden_sppir31110_rslt.copyRow(cnt, ds_main_list1_clod, i);
  247. }
  248. }
  249. }
  250. if (cnt == 0)
  251. {
  252. return;
  253. }
  254. opener.ds_hidden_sppir31110_rslt.copyData(ds_hidden_sppir31110_rslt);
  255. this.close();
  256. }
  257. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  258. {
  259. this.close();
  260. }
  261. ]]></Script>
  262. </Form>
  263. </FDL>