SPPIJ03800_복잡수술료사유조회.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIJ03800" position="absolute 0 0 948 637" titletext="복잡수술료 사유조회" oninit="SPPIJ03800_oninit" onload="SPPIJ03800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 18 942 610" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Grid position="absolute 0 78 940 592" id="grd_cplxoplist" class="datagrid3" binddataset="ds_main_cplxop_cplxoplist" anchor="default" autofittype="col" cellsizingtype="row" extendsizetype="row" autosizingtype="row" oncellclick="grp_biz_grd_cplxoplist_oncellclick" autoenter="select">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="24"/>
  15. <Column size="61"/>
  16. <Column size="64"/>
  17. <Column size="74"/>
  18. <Column size="81"/>
  19. <Column size="225"/>
  20. <Column size="392"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="24" band="head"/>
  24. <Row size="24"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell/>
  28. <Cell col="1" text="환자번호"/>
  29. <Cell col="2" text="환자명"/>
  30. <Cell col="3" text="진료일자"/>
  31. <Cell col="4" text="처방코드"/>
  32. <Cell col="5" text="처방명"/>
  33. <Cell col="6" text="사유"/>
  34. </Band>
  35. <Band id="body">
  36. <Cell celltype="head"/>
  37. <Cell col="1" text="bind:pid"/>
  38. <Cell col="2" text="bind:patnm"/>
  39. <Cell col="3" displaytype="date" edittype="none" text="bind:orddd" mask="yyyy-MM-dd"/>
  40. <Cell col="4" displaytype="normal" edittype="normal" text="bind:calcscorcd"/>
  41. <Cell col="5" edittype="normal" style="align:left middle;" text="bind:calcscorcdnm"/>
  42. <Cell col="6" displaytype="normal" edittype="normal" style="align:left middle;" text="bind:resncnts" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
  43. </Band>
  44. </Format>
  45. </Formats>
  46. </Grid>
  47. <Static text="복잡수술료 사유조회 리스트" position="absolute 0 57 234 80" id="cap_judgtrgtman" class="tit_2" anchor="default"/>
  48. <Shape position="absolute 0 73 940 79" linetype="horizontal" id="line1" class="line_1" anchor="default" style="strokepen:3 solid #33bbbbff;"/>
  49. <Div position="absolute 0 6 940 46" align="align:center top;" id="group1" class="div_SA" anchor="default">
  50. <Layouts>
  51. <Layout>
  52. <Button position="absolute 875 10 931 32" id="btn_select" class="btn1" taborder="32" text="조회" anchor="default" onclick="grp_biz_group1_btn_select_onclick"/>
  53. <Shape position="absolute 857 5 863 38" linetype="vertical" id="line3" class="line_4" anchor="default"/>
  54. <Edit position="absolute 100 10 165 29" id="ipt_drgno" anchor="default" onkeyup="grp_biz_group1_ipt_drgno_onkeyup"/>
  55. <Static text="환자번호 :" position="absolute 11 12 106 29" id="caption30" class="search_name" anchor="default"/>
  56. <Static text="진료일자 :" position="absolute 223 13 322 30" id="caption1" class="search_name" anchor="default"/>
  57. <Calendar position="absolute 310 11 395 30" id="ipt_fromdd" class="input_search" mask="yyyy-mm-dd" anchor="default"/>
  58. <Button position="absolute 170 12 186 28" id="button27" class="icon_search" text="" anchor="default" onclick="grp_biz_group1_button27_onclick"/>
  59. <Calendar position="absolute 418 12 503 31" id="input1" class="input_search" mask="yyyy-mm-dd" anchor="default"/>
  60. <Static text="~" position="absolute 400 12 420 32" id="caption2" anchor="default"/>
  61. </Layout>
  62. </Layouts>
  63. </Div>
  64. <Button position="absolute 860 54 940 73" id="btn_excelsave" class="btn7" text="엑셀저장" anchor="default" onclick="grp_biz_btn_excelsave_onclick"/>
  65. </Layout>
  66. </Layouts>
  67. </Div>
  68. <Button position="absolute 884 611 940 633" id="btn_cancel" class="btn4" text="종료" onclick="btn_cancel_onclick"/>
  69. <Static id="cap_title" text="복잡수술료 사유조회" class="tit_1" position="absolute 0 0 216 23"/>
  70. </Layout>
  71. </Layouts>
  72. <Objects>
  73. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  74. <ColumnInfo>
  75. <Column id="cplxoplist" type="STRING" size="256"/>
  76. <Column id="pid" type="STRING" size="256"/>
  77. <Column id="cretno" type="STRING" size="256"/>
  78. <Column id="instcd" type="STRING" size="256"/>
  79. <Column id="orddd" type="STRING" size="256"/>
  80. <Column id="ordtodd" type="STRING" size="256"/>
  81. </ColumnInfo>
  82. <Rows>
  83. <Row>
  84. <Col id="cplxoplist"/>
  85. <Col id="pid"/>
  86. <Col id="cretno"/>
  87. <Col id="instcd">031</Col>
  88. <Col id="orddd"/>
  89. <Col id="ordtodd"/>
  90. </Row>
  91. </Rows>
  92. </Dataset>
  93. <Dataset id="ds_main_cplxop_cplxoplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  94. <Dataset id="ds_hidden_sppmc02500_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  95. <ColumnInfo>
  96. <Column id="srchcond" type="STRING" size="256"/>
  97. <Column id="pid" type="STRING" size="256"/>
  98. </ColumnInfo>
  99. <Rows>
  100. <Row/>
  101. </Rows>
  102. </Dataset>
  103. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  104. </Objects>
  105. <Bind>
  106. <BindItem id="item0" compid="grp_biz.group1.ipt_drgno" propid="value" datasetid="ds_send" columnid="pid"/>
  107. <BindItem id="item1" compid="grp_biz.group1.ipt_fromdd" propid="value" datasetid="ds_send" columnid="orddd"/>
  108. <BindItem id="item2" compid="grp_biz.group1.input1" propid="value" datasetid="ds_send" columnid="ordtodd"/>
  109. </Bind>
  110. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  111. * System Name :
  112. * Job Name :
  113. * Creator :
  114. * Make Date : 2016-05-24
  115. * Description :
  116. *---------------------------------------------------------------------------------------
  117. * Modify Date Modifier Modify Description
  118. *---------------------------------------------------------------------------------------
  119. * 2016-05-24 Live Converter TF->XP
  120. *
  121. *---------------------------------------------------------------------------------------
  122. ****************************************************************************************/
  123. include "com_commonxp::comm_main.xjs";
  124. function SPPIJ03800_oninit(obj:Form, e:InitEventInfo)
  125. {
  126. frmf_initForm(obj);
  127. }
  128. function SPPIJ03800_onload(obj:Form, e:LoadEventInfo)
  129. {
  130. grdf_initGrid(grp_biz.grd_cplxoplist);
  131. grdf_setRowTypeIcon(grp_biz.grd_cplxoplist, 0);
  132. fInitialize();
  133. }
  134. var gToday = new Date();
  135. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  136. var gBasemonth = gToday.getDateFormat("MM");
  137. var gBaseday = gToday.getDateFormat("DD");
  138. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  139. var gCurrentym = gBaseyear + gBasemonth;
  140. function fInitialize()
  141. {
  142. if(frmf_checkOpener())
  143. {
  144. var pid = opener.frmf_getParameter("pid");
  145. var orddd = opener.frmf_getParameter("orddd");
  146. var ordtodd = opener.frmf_getParameter("ordtodd");
  147. ds_send.setColumn(0, "pid", pid);
  148. ds_send.setColumn(0, "orddd", orddd);
  149. ds_send.setColumn(0, "ordtodd", ordtodd);
  150. }
  151. if (utlf_isNull(ds_send.getColumn(0, "orddd")))
  152. {
  153. ds_send.setColumn(0, "orddd", utlf_getCurrentDate());
  154. ds_send.setColumn(0, "ordtodd", utlf_getCurrentDate());
  155. }
  156. grp_biz_group1_btn_select_onclick();
  157. }
  158. function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
  159. {
  160. fGetDocuList();
  161. }
  162. function fGetDocuList()
  163. {
  164. var oParam = {};
  165. oParam.id = "TRPIJ03800";
  166. oParam.service = "bfjudgapp.InHospJudg";
  167. oParam.method = "reqGetComplOpResnList";
  168. oParam.inds = "req=ds_send";
  169. oParam.outds = "ds_main_cplxop_cplxoplist=cplxop";
  170. oParam.async = false;
  171. //oParam.callback = "cf_TRPIJ03800";
  172. tranf_submit(oParam);
  173. }
  174. function grp_biz_group1_ipt_drgno_onkeyup(obj:Edit, e:KeyEventInfo)
  175. {
  176. if(e.keycode == 13)
  177. {
  178. fGetDocuList();
  179. }
  180. }
  181. function grp_biz_group1_button27_onclick(obj:Button, e:ClickEventInfo)
  182. {
  183. var ipt_pid = grp_biz.group1.ipt_drgno.value;
  184. ds_hidden_sppmc02500_cond.setColumn(0, "srchcond","1");
  185. ds_hidden_sppmc02500_cond.setColumn(0, "pid", ipt_pid);
  186. var objArg = new Object();
  187. objArg.arg_ds_send = ds_hidden_sppmc02500_cond;
  188. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", "", "", "", "", "", "", "", "", "M");
  189. var srch_pid = ds_patinfolist.getColumn(0, "pid");
  190. if (srch_pid)
  191. {
  192. ds_patinfolist.clearData();
  193. ds_send.setColumn(0, "pid", srch_pid);
  194. ds_send.setColumn(0, "cretno", "");
  195. }
  196. }
  197. function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  198. {
  199. if(ds_main_cplxop_cplxoplist.rowcount == 0)
  200. {
  201. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  202. }
  203. else
  204. {
  205. grdf_exportExcel(grp_biz.grd_cplxoplist, "복잡수술료 사유조회", "see");
  206. }
  207. }
  208. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  209. {
  210. this.close();
  211. }]]></Script>
  212. </Form>
  213. </FDL>