SMPMC02402_응급대불환자리스트.xfdl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMC02402" position="absolute 0 0 1219 784" titletext="응급대불환자리스트" onload="SMPMC02402_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption16" position="absolute 5 760 490 775" style="" text="※ 색표시된 컬럼은 수정 가능합니다."/>
  8. <Static id="caption6" text="응급대불환자리스트" class="tit_1" position="absolute 0 0 160 25"/>
  9. <Shape id="line1" class="line_10" position="absolute 0 66 1194 70"/>
  10. <Grid id="grd_espm" taborder="4" binddataset="ds_main_h_espm_espm" useinputpanel="false" position="absolute 0 70 1194 747" onexpanddown="grd_espm_onexpanddown" autoenter="select" oncloseup="grd_espm_oncloseup">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="25" band="left"/>
  15. <Column size="70" band="left"/>
  16. <Column size="55" band="left"/>
  17. <Column size="15" band="left"/>
  18. <Column size="70"/>
  19. <Column size="70"/>
  20. <Column size="90"/>
  21. <Column size="69"/>
  22. <Column size="33"/>
  23. <Column size="100"/>
  24. <Column size="85"/>
  25. <Column size="85"/>
  26. <Column size="70"/>
  27. <Column size="70"/>
  28. <Column size="85"/>
  29. <Column size="70"/>
  30. <Column size="90"/>
  31. <Column size="100"/>
  32. <Column size="85"/>
  33. <Column size="85"/>
  34. <Column size="500"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell text="√"/>
  42. <Cell col="1" text="등록번호"/>
  43. <Cell col="2" text="환자명"/>
  44. <Cell col="3" text="-"/>
  45. <Cell col="4" colspan="2" text="진료기간" taborder="undefined"/>
  46. <Cell col="6" text="진료과"/>
  47. <Cell col="7" text="진료의"/>
  48. <Cell col="8" text="유형"/>
  49. <Cell col="9" text="보조"/>
  50. <Cell col="10" text="총진료비"/>
  51. <Cell col="11" text="미수금"/>
  52. <Cell col="12" colspan="2" text="대불적용기간" taborder="undefined"/>
  53. <Cell col="14" text="대불청구액"/>
  54. <Cell col="15" text="청구일자"/>
  55. <Cell col="16" text="대불제외미수금"/>
  56. <Cell col="17" text="대불입금일자"/>
  57. <Cell col="18" text="대불입금액"/>
  58. <Cell col="19" text="미수잔액"/>
  59. <Cell col="20" text="메모"/>
  60. </Band>
  61. <Band id="body">
  62. <Cell displaytype="checkbox" edittype="checkbox" text="bind:espm_ckbox" expr="expr:(espm_ckbox == 'true' || espm_ckbox == '1') ? '1' : '0'"/>
  63. <Cell col="1" style="align:left middle;" text="bind:espm_pid"/>
  64. <Cell col="2" style="align:left middle;" text="bind:espm_hngnm"/>
  65. <Cell col="3" displaytype="text" edittype="expand" expandshow="show"/>
  66. <Cell col="4" displaytype="date" style="align:left middle;" text="bind:espm_fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  67. <Cell col="5" displaytype="date" style="align:left middle;" text="bind:espm_todd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  68. <Cell col="6" text="bind:espm_orddeptcdnm" wordwrap="char"/>
  69. <Cell col="7" style="align:left middle;" text="bind:espm_medispclidnm"/>
  70. <Cell col="8" style="align:center middle;" text="bind:espm_insukind"/>
  71. <Cell col="9" displaytype="combo" text="bind:espm_suppkind" combodataset="ds_init_suppkind" combocodecol="cd" combodatacol="nm"/>
  72. <Cell col="10" displaytype="number" text="bind:espm_erordamt" mask="9,999"/>
  73. <Cell col="11" displaytype="number" text="bind:espm_uncoamt" mask="9,999"/>
  74. <Cell col="12" displaytype="date" style="align:left middle;" text="bind:espm_appfromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  75. <Cell col="13" displaytype="date" style="align:left middle;" text="bind:espm_appenddd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  76. <Cell col="14" displaytype="number" text="bind:espm_clamamt" mask="9,999"/>
  77. <Cell col="15" displaytype="normal" style="align:left middle;" text="bind:espm_clamdd" mask="####-##-##" calendardisplaynulltype="none"/>
  78. <Cell col="16" displaytype="number" text="bind:espm_clamrestamt" mask="9,999"/>
  79. <Cell col="17" displaytype="normal" edittype="date" style="align:center middle;color:#ff0066ff;color2:#ff0066ff;font:dutum,9,bold;" text="bind:espm_rcptdd" mask="####-##-##" calendardisplaynulltype="none"/>
  80. <Cell col="18" displaytype="number" edittype="masknumber" style="color:#ff0066ff;color2:#ff0066ff;font:dutum,9,bold;" text="bind:espm_rcptamt" wordwrap="char" mask="9,999"/>
  81. <Cell col="19" displaytype="number" edittype="none" text="bind:espm_uncorestamt" mask="9,999"/>
  82. <Cell col="20" displaytype="text" edittype="text" style="font:dutum,9,bold;" text="bind:espm_remfact"/>
  83. </Band>
  84. </Format>
  85. </Formats>
  86. </Grid>
  87. <Div id="grp" taborder="13" position="absolute 0 25 1194 58" class="div_SA2">
  88. <Layouts>
  89. <Layout>
  90. <Button id="button1" taborder="0" text="조회" onclick="group3_button1_onclick" class="btn1" position="absolute 1130 6 1186 28" anchor="default"/>
  91. <Static id="caption7" text="~" position="absolute 348 7 359 27" style="align:center ;" anchor="default"/>
  92. <Static id="caption4" text="기준일자 :" class="search_name" position="absolute 19 8 105 25" anchor="default"/>
  93. <Shape id="line4" linetype="vertical" class="line_4" position="absolute 470 7 473 27" anchor="default"/>
  94. <Calendar id="ipt_fromdd" taborder="1" dateformat="yyyy-MM-dd" class="input_search" position="absolute 258 7 343 26" anchor="default" autoselect="true" autoskip="true"/>
  95. <Calendar id="ipt_todd" taborder="2" dateformat="yyyy-MM-dd" class="input_search" position="absolute 364 7 449 26" anchor="default" autoselect="true" autoskip="true"/>
  96. <Radio id="radio1" taborder="3" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 109 9 254 24" anchor="default" index="-1" style="textpadding:0 3 0 3;">
  97. <Dataset id="innerdataset">
  98. <ColumnInfo>
  99. <Column id="codecolumn"/>
  100. <Column id="datacolumn"/>
  101. </ColumnInfo>
  102. <Rows>
  103. <Row>
  104. <Col id="codecolumn">genrdd</Col>
  105. <Col id="datacolumn">생성일자</Col>
  106. </Row>
  107. <Row>
  108. <Col id="codecolumn">clamdd</Col>
  109. <Col id="datacolumn">청구일자</Col>
  110. </Row>
  111. </Rows>
  112. </Dataset>
  113. </Radio>
  114. <Edit id="ipt_pid" taborder="4" onkeyup="group3_ipt_pid_onkeyup" position="absolute 584 7 664 26" anchor="default" autoselect="true"/>
  115. <Button id="btn_pid" taborder="5" onclick="group3_btn_pid_onclick" class="icon_search" position="absolute 899 9 915 25" anchor="default"/>
  116. <Static id="caption3" text="등록번호 :" class="search_name" position="absolute 494 8 580 25" style="align:center middle;" anchor="default"/>
  117. <Button id="btn_excel" taborder="9" text="엑셀" onclick="group3_btn_excel_onclick" class="btn7" position="absolute 1073 6 1129 28" anchor="default"/>
  118. <Button id="btn_unco" taborder="10" text="미수수납" onclick="group3_btn_unco_onclick" class="btn3" position="absolute 992 6 1072 28" anchor="default"/>
  119. <Edit id="output3" taborder="11" readonly="true" class="output_fix" enable="false" position="absolute 815 7 890 26" style=":disabled {background:URL('theme://images/bg_edit_D.png') stretch 5,5;}"/>
  120. <Edit id="output2" taborder="12" readonly="true" class="output_fix" enable="false" position="absolute 738 7 813 26" style=":disabled {background:URL('theme://images/bg_edit_D.png') stretch 5,5;}"/>
  121. <Edit id="output1" taborder="13" readonly="true" class="output_fix" enable="false" position="absolute 666 7 736 26" style=":disabled {background:URL('theme://images/bg_edit_D.png') stretch 5,5;}"/>
  122. </Layout>
  123. </Layouts>
  124. </Div>
  125. <Shape id="line32" class="line_6" position="absolute 0 748 1194 751"/>
  126. <Button id="btn_save" taborder="14" text="저장" onclick="group5_btn_save_onclick" class="btn4" position="absolute 1068 753 1124 775"/>
  127. <Button id="btn_init" taborder="15" text="초기화" onclick="group5_btn_init_onclick" class="btn4" position="absolute 1126 753 1194 775"/>
  128. </Layout>
  129. </Layouts>
  130. <Objects>
  131. <Dataset id="ds_init_P0083list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  132. <ColumnInfo/>
  133. </Dataset>
  134. <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  135. <ColumnInfo/>
  136. </Dataset>
  137. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  138. <ColumnInfo/>
  139. </Dataset>
  140. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  141. <ColumnInfo/>
  142. </Dataset>
  143. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  144. <ColumnInfo>
  145. <Column id="temp" type="STRING" size="256"/>
  146. </ColumnInfo>
  147. </Dataset>
  148. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  149. <ColumnInfo>
  150. <Column id="data2" type="STRING" size="256"/>
  151. </ColumnInfo>
  152. </Dataset>
  153. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  154. <ColumnInfo>
  155. <Column id="ddflag" type="STRING" size="256"/>
  156. <Column id="pid" type="STRING" size="256"/>
  157. <Column id="appfromdd" type="STRING" size="256"/>
  158. <Column id="apptodd" type="STRING" size="256"/>
  159. </ColumnInfo>
  160. <Rows>
  161. <Row>
  162. <Col id="ddflag"/>
  163. <Col id="pid"/>
  164. <Col id="appfromdd"/>
  165. <Col id="apptodd"/>
  166. </Row>
  167. </Rows>
  168. </Dataset>
  169. <Dataset id="ds_send_data3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  170. <ColumnInfo>
  171. <Column id="pid" type="STRING" size="256"/>
  172. <Column id="indd" type="STRING" size="256"/>
  173. <Column id="cretno" type="STRING" size="256"/>
  174. </ColumnInfo>
  175. <Rows>
  176. <Row>
  177. <Col id="pid"/>
  178. <Col id="indd"/>
  179. <Col id="cretno"/>
  180. </Row>
  181. </Rows>
  182. </Dataset>
  183. <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  184. <ColumnInfo>
  185. <Column id="pid" type="STRING" size="256"/>
  186. <Column id="hngnm" type="STRING" size="256"/>
  187. <Column id="rrgstno1" type="STRING" size="256"/>
  188. <Column id="rrgstno2" type="STRING" size="256"/>
  189. </ColumnInfo>
  190. <Rows>
  191. <Row>
  192. <Col id="pid"/>
  193. <Col id="hngnm"/>
  194. <Col id="rrgstno1"/>
  195. <Col id="rrgstno2"/>
  196. </Row>
  197. </Rows>
  198. </Dataset>
  199. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  200. <ColumnInfo>
  201. <Column id="hidden" type="STRING" size="256"/>
  202. </ColumnInfo>
  203. <Rows>
  204. <Row>
  205. <Col id="hidden"/>
  206. </Row>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_main_h_espm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  210. <ColumnInfo/>
  211. </Dataset>
  212. <Dataset id="ds_init_P0083list_P0083" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  213. <ColumnInfo>
  214. <Column id="cdnm" type="STRING" size="256"/>
  215. <Column id="cdid" type="STRING" size="256"/>
  216. </ColumnInfo>
  217. <Rows>
  218. <Row>
  219. <Col id="cdnm"/>
  220. <Col id="cdid"/>
  221. </Row>
  222. </Rows>
  223. </Dataset>
  224. <Dataset id="ds_main_h_espm_espm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_h_espm_espm_oncolumnchanged">
  225. <ColumnInfo>
  226. <Column id="espm_ckbox" type="STRING" size="256"/>
  227. <Column id="espm_pid" type="STRING" size="256"/>
  228. <Column id="espm_hngnm" type="STRING" size="256"/>
  229. <Column id="espm_fromdd" type="STRING" size="256"/>
  230. <Column id="espm_todd" type="STRING" size="256"/>
  231. <Column id="espm_orddeptcd" type="STRING" size="256"/>
  232. <Column id="espm_orddeptcdnm" type="STRING" size="256"/>
  233. <Column id="espm_medispclid" type="STRING" size="256"/>
  234. <Column id="espm_medispclidnm" type="STRING" size="256"/>
  235. <Column id="espm_insukind" type="STRING" size="256"/>
  236. <Column id="espm_suppkind" type="STRING" size="256"/>
  237. <Column id="espm_uncoamt" type="STRING" size="256"/>
  238. <Column id="espm_appfromdd" type="STRING" size="256"/>
  239. <Column id="espm_appenddd" type="STRING" size="256"/>
  240. <Column id="espm_clamamt" type="STRING" size="256"/>
  241. <Column id="espm_clamdd" type="STRING" size="256"/>
  242. <Column id="espm_uncorestamt" type="STRING" size="256"/>
  243. <Column id="espm_uncocd" type="STRING" size="256"/>
  244. <Column id="espm_remfact" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. </Dataset>
  247. <Dataset id="ds_hidden_rcv_h_espm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  248. <Dataset id="ds_node_bk_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  249. <Dataset id="ds_node_bk_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  250. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  251. <ColumnInfo>
  252. <Column id="srchcond" type="STRING" size="256"/>
  253. <Column id="pid" type="STRING" size="256"/>
  254. </ColumnInfo>
  255. </Dataset>
  256. <Dataset id="ds_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  257. <Dataset id="ds_init_disccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  258. <Dataset id="ds_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  259. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  260. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  261. <Dataset id="ds_init_reducd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  262. <Dataset id="ds_init_uncocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  263. <Dataset id="ds_init_proccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  264. <Dataset id="ds_init_subjno" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  265. <Dataset id="ds_init_rcptflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  266. <Dataset id="ds_hidden_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  267. <Dataset id="ds_send_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  268. </Objects>
  269. <Bind>
  270. <BindItem id="item4" compid="grp.output1" propid="value" datasetid="ds_main_patinfo_patinfolist" columnid="hngnm"/>
  271. <BindItem id="item5" compid="grp.output2" propid="value" datasetid="ds_main_patinfo_patinfolist" columnid="rrgstno1"/>
  272. <BindItem id="item6" compid="grp.output3" propid="value" datasetid="ds_main_patinfo_patinfolist" columnid="rrgstno2"/>
  273. <BindItem id="item0" compid="grp.ipt_fromdd" propid="value" datasetid="ds_send_data1" columnid="appfromdd"/>
  274. <BindItem id="item1" compid="grp.ipt_todd" propid="value" datasetid="ds_send_data1" columnid="apptodd"/>
  275. <BindItem id="item2" compid="grp.radio1" propid="value" datasetid="ds_send_data1" columnid="ddflag"/>
  276. <BindItem id="item3" compid="grp.ipt_pid" propid="value" datasetid="ds_main_patinfo_patinfolist" columnid="pid"/>
  277. </Bind>
  278. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
  279. include "com_basiccodexp::ZBC001.xjs"
  280. include "pam_pamcomnxp::PAM001.xjs"
  281. var arErrorCode = new HashArray();
  282. // prefix를 삭제하기
  283. function dsf_copyDsWithoutPrefix(destDS, srcDS, prefix) {
  284. destDS.clear();
  285. destDS.loadXML(srcDS.saveXML(srcDS, "a"));
  286. var objCol = new Object();
  287. var sColID = "";
  288. for (var i = 0; i < srcDS.getColCount(); i++) {
  289. sColID = srcDS.getColID(i);
  290. destDS.updateColID(sColID, String(sColID).replace(prefix, ""));
  291. }
  292. destDS.applyChange();
  293. }
  294. function SMPMC02402_onload(obj: Form, e: LoadEventInfo) {
  295. frmf_initForm(obj);
  296. // grdf_initGrid(grd_espm);
  297. ds_node_bk_main.clearData();
  298. ds_node_bk_send.clearData();
  299. ds_node_bk_main.copyData(ds_main);
  300. ds_node_bk_send.copyData(ds_send);
  301. fInitialize();
  302. //원무사용 기초코드 조회 cache기능 추가
  303. if (frmf_copyFromCache("TRPAMCOM01_depttree", ds_init_orddeptcd)) {
  304. frmf_copyFromCache("TRPAMCOM01_disccdtree", ds_init_disccd);
  305. frmf_copyFromCache("TRPAMCOM01_insukindtree", ds_init_insukind);
  306. frmf_copyFromCache("TRPAMCOM01_suppkindtree", ds_init_suppkind);
  307. frmf_copyFromCache("TRPAMCOM01_depttree", ds_init_orddeptcd);
  308. frmf_copyFromCache("TRPAMCOM01_orddridtree", ds_init_orddrid);
  309. frmf_copyFromCache("TRPAMCOM01_reducdtree", ds_init_reducd);
  310. frmf_copyFromCache("TRPAMCOM01_uncocdtree", ds_init_uncocd);
  311. frmf_copyFromCache("TRPAMCOM01_proccdtree", ds_init_proccd);
  312. frmf_copyFromCache("TRPAMCOM01_subjnotree", ds_init_subjno);
  313. frmf_copyFromCache("TRPAMCOM01_rcptflagtree", ds_init_rcptflag);
  314. }
  315. else {
  316. ds_hidden.clearData();
  317. dsf_makeValue(ds_hidden, "sess_posinstcd", "string", sysf_getUserInfo("dutplceinstcd"));
  318. //if ( submit("TRPAMCOM01") ) {
  319. var oParam = {};
  320. oParam.id = "TRPAMCOM01";
  321. oParam.service = "pamcomnapp.PamComn";
  322. oParam.method = "reqGetComCD";
  323. oParam.inds = "req=ds_hidden";
  324. oParam.outds = "ds_init_disccd=disccd " +
  325. "ds_init_insukind=insukind " +
  326. "ds_init_suppkind=suppkind " +
  327. "ds_init_orddeptcd=orddeptcd " +
  328. "ds_init_orddrid=orddrid " +
  329. "ds_init_reducd=reducd " +
  330. "ds_init_uncocd=uncocd " +
  331. "ds_init_proccd=proccd " +
  332. "ds_init_subjno=subjno " +
  333. "ds_init_rcptflag=rcptflag";
  334. oParam.async = false;
  335. oParam.callback = "cf_TRPAMCOM01";
  336. tranf_submit(oParam);
  337. if (arErrorCode.pop("TRPAMCOM01") > -1) {
  338. frmf_storeIntoCache("TRPAMCOM01_depttree", ds_init_orddeptcd); //,"540");
  339. frmf_storeIntoCache("TRPAMCOM01_disccdtree", ds_init_disccd);
  340. frmf_storeIntoCache("TRPAMCOM01_insukindtree", ds_init_insukind);
  341. frmf_storeIntoCache("TRPAMCOM01_suppkindtree", ds_init_suppkind);
  342. frmf_storeIntoCache("TRPAMCOM01_depttree", ds_init_orddeptcd);
  343. frmf_storeIntoCache("TRPAMCOM01_orddridtree", ds_init_orddrid);
  344. frmf_storeIntoCache("TRPAMCOM01_reducdtree", ds_init_reducd);
  345. frmf_storeIntoCache("TRPAMCOM01_uncocdtree", ds_init_uncocd);
  346. frmf_storeIntoCache("TRPAMCOM01_proccdtree", ds_init_proccd);
  347. frmf_storeIntoCache("TRPAMCOM01_subjnotree", ds_init_subjno);
  348. frmf_storeIntoCache("TRPAMCOM01_rcptflagtree", ds_init_rcptflag);
  349. }
  350. }
  351. }
  352. function cf_TRPAMCOM01(sSvcId, nErrorCode, sErrorMsg) {
  353. arErrorCode.push(sSvcId, nErrorCode);
  354. }
  355. function fInitialize() {
  356. ds_main.copyData(ds_node_bk_main);
  357. ds_send.copyData(ds_node_bk_send);
  358. ds_send_data1.setColumn(0, "ddflag", "clamdd");
  359. ds_send_data1.setColumn(0, "appfromdd", utlf_getCurrentDate().substr(0, 6) + "01");
  360. ds_send_data1.setColumn(0, "apptodd", utlf_getCurrentDate());
  361. ds_source.clearData();
  362. ds_source.addRow();
  363. }
  364. //보조유형세팅
  365. function fEactlistClick0() {
  366. for (var a = 0; a < grd_espm.rows; a++) {
  367. var espm_insukind = ds_main_h_espm_espm.getColumn(a, "espm_insukind");
  368. var dsName = 'ds_init_suppkind' + a;
  369. dsf_createDs(dsName);
  370. dsName.copyData(ds_init_suppkind, false);
  371. dsName.filter("up == '" + espm_insukind + "' && (io == 'A' || io == 'I'");
  372. grd_espm.setCellProperty("Body", iCol, "combodataset", "dsName");
  373. }
  374. }
  375. //입금액 저장
  376. function fSave() {
  377. if (ds_main_h_espm_espm.getCaseCount("espm_ckbox=='true' || espm_ckbox == '1' ") == 0) {
  378. sysf_messageBox("체크된 내역이 있어야 저장 가능합니다.", "E999");
  379. return;
  380. }
  381. ds_hidden_data2.clearData();
  382. dsf_copyColInfo(ds_hidden_data2, ds_main_h_espm_espm);
  383. var iSelRow = 0;
  384. for (var a = 0; a < ds_main_h_espm_espm.rowcount; a++) {
  385. if (ds_main_h_espm_espm.getColumn(a, "espm_ckbox") == "true" || ds_main_h_espm_espm.getColumn(a, "espm_ckbox") == "1") {
  386. ds_hidden_data2.copyRow(ds_hidden_data2.addRow(), ds_main_h_espm_espm, a);
  387. }
  388. }
  389. dsf_copyDsWithoutPrefix(ds_send_data2, ds_hidden_data2, "espm_");
  390. //if(submit("TXPMC02405"))
  391. var oParam = {};
  392. oParam.id = "TXPMC02405";
  393. oParam.service = "patinfomngtapp.ERSubtApp";
  394. oParam.method = "reqSetEspm_Rcpt";
  395. oParam.inds = "req=ds_send_data2";
  396. oParam.outds = "ds_temp=temp";
  397. oParam.async = false;
  398. oParam.callback = "cf_TXPMC02405";
  399. tranf_submit(oParam);
  400. if (arErrorCode.pop("TXPMC02405") > -1) {
  401. fSearch();
  402. }
  403. }
  404. function cf_TXPMC02405(sSvcId, nErrorCode, sErrorMsg) {
  405. arErrorCode.push(sSvcId, nErrorCode);
  406. }
  407. //조회
  408. function fSearch() {
  409. ds_send_data1.setColumn(0, "pid", ds_main_patinfo_patinfolist.getColumn(0, "pid"));
  410. var oParam = {};
  411. oParam.id = "TRPMC02407";
  412. oParam.service = "patinfomngtapp.ERSubtApp";
  413. oParam.method = "reqGetErubudList";
  414. oParam.inds = "req=ds_send_data1";
  415. oParam.outds = "ds_hidden_rcv_h_espm=espm";
  416. oParam.async = false;
  417. tranf_submit(oParam);
  418. dsf_copyDsWithPrefix(ds_main_h_espm_espm, ds_hidden_rcv_h_espm, "espm_");
  419. fEactlistClick0();
  420. }
  421. function group3_button1_onclick(obj: Button, e: ClickEventInfo) {
  422. fSearch();
  423. }
  424. function fGetPid() {
  425. ds_send_data1.setColumn(0, "pid", ds_main_patinfo_patinfolist.getColumn(0, "pid"));
  426. var vcheck_pid = utlf_transNullToEmpty(ds_send_data1.getColumn(0, "pid"));
  427. //환자번호 null체크
  428. if (vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  429. sysf_messageBox("환자등록번호가 입력되지", "E007");
  430. return;
  431. }
  432. //환자번호 조건으로 인적정보 조회
  433. ds_source.setColumn(0, "srchcond", "1");
  434. ds_source.setColumn(0, "pid", ipt_pid.text);
  435. //환자등록번호 체크
  436. var oParam = {};
  437. oParam.id = "TRPMC02500";
  438. oParam.service = "patinfomngtapp.PatBaseInfo";
  439. oParam.method = "reqGetPatInfo";
  440. oParam.inds = "req=ds_source";
  441. oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
  442. oParam.async = false;
  443. oParam.callback = "cf_TRPMC02500";
  444. tranf_submit(oParam);
  445. if (arErrorCode.pop("TRPMC02500") > -1) {
  446. var vcheck_pid = ds_main_patinfo_patinfolist.getColumn(0, "pid");
  447. if (utlf_isNull(vcheck_pid) || vcheck_pid == " " || vcheck_pid == "-") {
  448. //조회내역 체크
  449. sysf_messageBox("존재하지 않는 등록번호", "E008"); //E008=입니다
  450. dsf_makeValue(ds_main_patinfo_patinfolist, "pid", "string", "");
  451. dsf_makeValue(ds_main_patinfo_patinfolist, "hngnm", "string", "");
  452. dsf_makeValue(ds_main_patinfo_patinfolist, "rrgstno1", "string", "");
  453. dsf_makeValue(ds_main_patinfo_patinfolist, "rrgstno2", "string", "");
  454. ipt_pid.setFocus();
  455. return;
  456. }
  457. else {
  458. fSearch();
  459. }
  460. }
  461. }
  462. function cf_TRPMC02500(sSvcId, nErrorCode, sErrorMsg) {
  463. arErrorCode.push(sSvcId, nErrorCode);
  464. }
  465. function group3_ipt_pid_onkeyup(obj: Edit, e: KeyEventInfo) {
  466. if (e.keycode == 13) {
  467. obj.updateToDataset();
  468. fGetPid();
  469. }
  470. }
  471. function group3_btn_pid_onclick(obj: Button, e: ClickEventInfo) {
  472. var objArg = new Object();
  473. objArg.arg_ds_send = ds_source;
  474. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", "1", "150", "150", "", "", "", "", "", "M");
  475. }
  476. function group3_btn_excel_onclick(obj: Button, e: ClickEventInfo) {
  477. grdf_exportExcel(grd_espm, 'excel', "Sheet1", true, "", 'user', true);
  478. }
  479. function group3_btn_unco_onclick(obj: Button, e: ClickEventInfo) {
  480. frmf_setParameter("SMPAM00100_PID_PARM", ds_main_h_espm_espm.getColumn(grd_espm.row, "espm_pid"));
  481. frmf_open("SMPAM00100", "SMPAM00100", "", "", "", "", "", "", "", "", "", "", "M");
  482. }
  483. function group5_btn_save_onclick(obj: Button, e: ClickEventInfo) {
  484. fSave();
  485. }
  486. function group5_btn_init_onclick(obj: Button, e: ClickEventInfo) {
  487. fInitialize();
  488. }
  489. function grd_espm_onexpanddown(obj: Grid, e: GridMouseEventInfo) {
  490. var iRow = ds_main_h_espm_espm.rowposition;
  491. ds_send_data3.setColumn(0, "pid", ds_main_h_espm_espm.getColumn(iRow, "espm_pid"));
  492. ds_send_data3.setColumn(0, "indd", ds_main_h_espm_espm.getColumn(iRow, "espm_inoutdd"));
  493. ds_send_data3.setColumn(0, "cretno", ds_main_h_espm_espm.getColumn(iRow, "espm_cretno"));
  494. frmf_modal("SMPMC02403", "SMPMC02403", "", "", "", "", "", "", "", "", "", "", "M");
  495. }
  496. function grd_espm_oncloseup(obj: Grid, e: GridEditEventInfo) {
  497. obj.moveToNextCell();
  498. var value = String(e.value).substr(0, 8);
  499. ds_main_h_espm_espm.setColumn(e.row, 'espm_rcptdd', value);
  500. }
  501. function ds_main_h_espm_espm_oncolumnchanged(obj: Dataset, e: DSColChangeEventInfo) {
  502. if (e.columnid == 'espm_ckbox') {
  503. var value = obj.getColumn(e.row, 'espm_ckbox');
  504. value = (value == 'true' || value == '1') ? 'true' : 'false';
  505. obj.setColumn(e.row, 'espm_ckbox', value);
  506. }
  507. }
  508. ]]></Script>
  509. </Form>
  510. </FDL>