SPPID33000_뇌사기증자진료비관리.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPID33000" classname="SPPID32200_외국인진료비예상금액산정" inheritanceid="" position="absolute 0 0 950 768" titletext="뇌사기증자진료비관리" onload="SPPID32400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption00" text="뇌사기증자 진료비 관리" class="tit_1" position="absolute 0 0 180 25"/>
  8. <Static id="caption18" text="뇌사기증자 리스트" onclick="caption1_onclick" class="tit_2" position="absolute 0 73 182 92" anchor="left top"/>
  9. <Shape id="line01" onclick="grp_tstmemo_line5_onclick" class="line_10" position="absolute 0 89 950 95" anchor="left top right"/>
  10. <Button id="btn_close" taborder="31" text="닫기" class="btn4" position="absolute 893 741 949 763" anchor="right bottom" onclick="btn_close_onclick"/>
  11. <Grid id="datagrid1" taborder="33" binddataset="ds_main_patlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 94 950 736" anchor="all" onexpandup="datagrid1_onexpandup" oncelldblclick="datagrid1_oncelldblclick" ontextchange="datagrid1_ontextchange">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="24"/>
  16. <Column size="80"/>
  17. <Column size="100"/>
  18. <Column size="110"/>
  19. <Column size="90"/>
  20. <Column size="90"/>
  21. <Column size="50"/>
  22. <Column size="300"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="90"/>
  27. </Columns>
  28. <Rows>
  29. <Row size="30" band="head"/>
  30. <Row size="24"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell/>
  34. <Cell col="1" text="환자번호"/>
  35. <Cell col="2" text="환자명"/>
  36. <Cell col="3" text="주민번호"/>
  37. <Cell col="4" text="입원일자"/>
  38. <Cell col="5" text="적출일" taborder="undefined"/>
  39. <Cell col="6" text="적출&#13;&#10;시간" taborder="undefined"/>
  40. <Cell col="7" text="수혜자 정보"/>
  41. <Cell col="8" text="cdgrupid_org"/>
  42. <Cell col="9" text="cdid_org"/>
  43. <Cell col="10" text="todd_org"/>
  44. <Cell col="11" text="완료일자"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell celltype="head"/>
  48. <Cell col="1" edittype="expand" text="bind:pid" expandshow="show"/>
  49. <Cell col="2" displaytype="text" style="padding:5 2 3 2;" text="bind:hngnm"/>
  50. <Cell col="3" text="bind:rrgstno" mask="expr:utlf_isNull(rrgstno)?'':'######-#******'" maskchar="*"/>
  51. <Cell col="4" displaytype="date" text="bind:indd"/>
  52. <Cell col="5" displaytype="date" edittype="expr:getRowType(currow)==2?'date':'none'" style="padding:0 0 0 0;" text="bind:extdd" editautoselect="true" calendardisplay="expr:expr:getRowType(currow)==2?'display':'edit'"/>
  53. <Cell col="6" displaytype="normal" edittype="masknumber" text="bind:exttime" mask="expr:utlf_isNull(exttime)?'':'##:##'" editautoselect="true"/>
  54. <Cell col="7" displaytype="text" edittype="text" text="bind:beneficinfo" editautoselect="true"/>
  55. <Cell col="8" text="bind:cdgrupid_org"/>
  56. <Cell col="9" text="bind:cdid_org"/>
  57. <Cell col="10" text="bind:todd_org"/>
  58. <Cell col="11" displaytype="expr:utlf_isNull(enddd)?'normal':'date'" edittype="date" style="padding:0 0 0 0;" text="bind:enddd" editautoselect="true"/>
  59. </Band>
  60. </Format>
  61. </Formats>
  62. </Grid>
  63. <Button id="btn_add" taborder="34" text="행추가" class="btn2" position="absolute 797 67 850 89" anchor="top right" onclick="btn_add_onclick"/>
  64. <Button id="btn_del" taborder="35" text="행삭제" class="btn2" position="absolute 852 67 905 89" anchor="top right" onclick="btn_del_onclick"/>
  65. <Button id="btn_save" taborder="36" text="저장" class="btn2" position="absolute 907 67 949 89" anchor="top right" onclick="btn_save_onclick"/>
  66. <Div id="grp_search" taborder="32" class="div_SA" position="absolute 0 25 950 65">
  67. <Layouts>
  68. <Layout width="1195" height="40">
  69. <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 878 10 934 32" anchor="default" onclick="grp_search_btn_search_onclick"/>
  70. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 862 9 865 32" anchor="default"/>
  71. <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 8 13 96 30" anchor="default"/>
  72. <Button id="btn_patsrch" taborder="1" class="icon_search" position="absolute 154 11 174 31" anchor="default" onclick="grp_search_btn_patsrch_onclick"/>
  73. <Edit id="ipt_hngnm" taborder="2" autoselect="true" class="input_search" position="absolute 175 11 297 31" anchor="default"/>
  74. <Edit id="input2" taborder="3" autoselect="true" position="absolute 86 11 154 31" anchor="default" onkeyup="grp_search_input2_onkeyup"/>
  75. <Static id="caption00" text="적출일 : " class="search_name" position="absolute 335 12 402 29" anchor="default"/>
  76. <Calendar id="cal_srch_fromdd" taborder="4" position="absolute 400 10 508 30" anchor="default"/>
  77. <Static id="Static00" text="~" position="absolute 512 14 524 26" anchor="default"/>
  78. <Calendar id="cal_srch_todd" taborder="5" position="absolute 528 10 636 30" anchor="default"/>
  79. <CheckBox id="chk_noend" taborder="6" text="미완료건만 조회" position="absolute 658 10 774 30" falsevalue="N" truevalue="Y"/>
  80. </Layout>
  81. </Layouts>
  82. </Div>
  83. </Layout>
  84. </Layouts>
  85. <Objects>
  86. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  87. <ColumnInfo>
  88. <Column id="pid" type="STRING" size="256"/>
  89. <Column id="hngnm" type="STRING" size="256"/>
  90. <Column id="fromdd" type="STRING" size="256"/>
  91. <Column id="todd" type="STRING" size="256"/>
  92. <Column id="endyn" type="STRING" size="256"/>
  93. </ColumnInfo>
  94. <Rows>
  95. <Row>
  96. <Col id="pid"/>
  97. <Col id="hngnm"/>
  98. <Col id="fromdd"/>
  99. <Col id="todd"/>
  100. <Col id="endyn">N</Col>
  101. </Row>
  102. </Rows>
  103. </Dataset>
  104. <Dataset id="ds_main_patlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_patlist_oncolumnchanged">
  105. <ColumnInfo>
  106. <Column id="instcd" type="STRING" size="256"/>
  107. <Column id="pid" type="STRING" size="256"/>
  108. <Column id="extdd" type="STRING" size="256"/>
  109. <Column id="hngnm" type="STRING" size="256"/>
  110. <Column id="rrgstno" type="STRING" size="256"/>
  111. <Column id="indd" type="STRING" size="256"/>
  112. <Column id="beneficinfo" type="STRING" size="256"/>
  113. <Column id="exttime" type="STRING" size="256"/>
  114. <Column id="enddd" type="STRING" size="256"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  118. </Objects>
  119. <Bind>
  120. <BindItem id="item2" compid="grp_search.ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
  121. <BindItem id="item1" compid="grp_search.input2" propid="value" datasetid="ds_send" columnid="pid"/>
  122. <BindItem id="item0" compid="grp_search.cal_srch_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  123. <BindItem id="item3" compid="grp_search.cal_srch_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  124. <BindItem id="item4" compid="grp_search.chk_noend" propid="value" datasetid="ds_send" columnid="endyn"/>
  125. </Bind>
  126. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  127. function fInitialize() {
  128. grdf_initGrid(datagrid1);
  129. grdf_setRowTypeIcon(datagrid1, 0);
  130. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-5,"Y").getDateFormat());
  131. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  132. }
  133. function fSearch() {
  134. var oParam = {};
  135. oParam.id = "getDonorCalcInfo";
  136. oParam.service = "aftjudgapp.InAftJudg";
  137. oParam.method = "reqGetDonorCalcInfo";
  138. oParam.inds = "req=ds_send";
  139. oParam.outds = "ds_main_patlist=item";
  140. oParam.async = false;
  141. //oParam.callback = "cf_getDonorCalcInfo";
  142. tranf_submit(oParam);
  143. }
  144. function fSave() {
  145. dsf_createDs("ds_send_savedata");
  146. var dsUpdate = grdf_getGridUpdateData(datagrid1, "all");
  147. grdf_setStatusColumn(dsUpdate, "m");
  148. ds_send_savedata.copyData(dsUpdate, true);
  149. var oParam = {};
  150. oParam.id = "setDonorCalcInfo";
  151. oParam.service = "aftjudgapp.InAftJudg";
  152. oParam.method = "reqExeDonorCalcInfo";
  153. oParam.inds = "req=ds_send_savedata";
  154. oParam.async = false;
  155. tranf_submit(oParam);
  156. }
  157. function SPPID32400_onload(obj:Form, e:LoadEventInfo)
  158. {
  159. frmf_initForm(obj);
  160. fInitialize();
  161. }
  162. function grp_search_btn_patsrch_onclick(obj:Button, e:ClickEventInfo)
  163. {
  164. dsf_createDsRow("ds_temp", [{col:"srchcond", val:"2"}
  165. ,{col:"hngnm", val:ds_send.getColumn(0,"hngnm")}]);
  166. var objArg = new Object();
  167. objArg.arg_ds_send = ds_temp;
  168. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", 1, 150, 150, "", "", "", "", "", "M");
  169. ds_send.setColumn(0, "pid", ds_patinfolist.getColumn(0,"pid"));
  170. ds_send.setColumn(0, "hngnm", ds_patinfolist.getColumn(0,"hngnm"));
  171. }
  172. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  173. {
  174. fSearch();
  175. }
  176. function grp_search_input2_onkeyup(obj:Edit, e:KeyEventInfo)
  177. {
  178. if(e.keycode == 13) {
  179. obj.updateToDataset();
  180. fSearch();
  181. }
  182. }
  183. function btn_add_onclick(obj:Button, e:ClickEventInfo)
  184. {
  185. ds_main_patlist.addRow();
  186. }
  187. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  188. {
  189. var selRow = ds_main_patlist.rowposition;
  190. if(ds_main_patlist.getRowType(selRow) == 2) {
  191. ds_main_patlist.deleteRow(selRow);
  192. } else {
  193. grdf_setStatus(datagrid1, "D", [selRow]);
  194. }
  195. }
  196. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  197. {
  198. fSave();
  199. fSearch();
  200. }
  201. function datagrid1_onexpandup(obj:Grid, e:GridMouseEventInfo)
  202. {
  203. if(e.col == obj.getBindCellIndex("body", "pid") && ds_main_patlist.getRowType(e.row) == 2) {
  204. dsf_createDsRow("ds_temp", [{col:"srchcond", val:"1"}]);
  205. var objArg = new Object();
  206. objArg.arg_ds_send = ds_temp;
  207. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", 1, 150, 150, "", "", "", "", "", "M");
  208. dsf_createDsRow("ds_req", [{col:"pid", val:ds_patinfolist.getColumn(0,"pid")}
  209. ,{col:"dethdd", val:ds_patinfolist.getColumn(0,"dethdd")}]);
  210. dsf_createDs("ds_temp_result");
  211. var oParam = {};
  212. oParam.id = "getLastIndd";
  213. oParam.service = "aftjudgapp.InAftJudg";
  214. oParam.method = "reqGetLastIndd";
  215. oParam.inds = "req=ds_req";
  216. oParam.outds = "ds_temp_result=item";
  217. oParam.async = false;
  218. tranf_submit(oParam);
  219. ds_main_patlist.setColumn(e.row, "pid", ds_patinfolist.getColumn(0,"pid"));
  220. ds_main_patlist.setColumn(e.row, "hngnm", ds_patinfolist.getColumn(0,"hngnm"));
  221. ds_main_patlist.setColumn(e.row, "rrgstno", ds_patinfolist.getColumn(0,"rrgstno1")+ds_patinfolist.getColumn(0,"rrgstno2"));
  222. ds_main_patlist.setColumn(e.row, "indd", ds_temp_result.getColumn(0,"indd"));
  223. }
  224. }
  225. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  226. {
  227. this.close();
  228. }
  229. function datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  230. {
  231. if(e.row < 0) return;
  232. dsf_createDsRow("ds_temp", [{col:"pid", val:ds_main_patlist.getColumn(e.row, "pid")}
  233. ,{col:"hngnm", val:ds_main_patlist.getColumn(e.row, "hngnm")}
  234. ,{col:"extdd", val:ds_main_patlist.getColumn(e.row, "extdd")}
  235. ,{col:"indd", val:ds_main_patlist.getColumn(e.row, "indd")}]);
  236. var objArg = new Object();
  237. objArg.arg_ds_send = ds_temp;
  238. frmf_modal("SPPID33100", "SPPID33100", objArg, "", "", "", "", "", "", "", "", "", "M");
  239. }
  240. function datagrid1_ontextchange(obj:Grid, e:GridEditTextChangeEventInfo)
  241. {
  242. if( e.col == obj.getBindCellIndex("body","exttime") ){
  243. grdf_validGridTime(obj, e);
  244. }
  245. }
  246. function ds_main_patlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  247. {
  248. if(e.columnid == "exttime" && e.newvalue.length > 4) {
  249. obj.setColumn(e.row, e.columnid, e.newvalue.substr(0,4));
  250. }
  251. }
  252. ]]></Script>
  253. </Form>
  254. </FDL>