SPMNG04200_SET처방 상세내역.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNG04200" position="absolute 0 0 753 640" titletext="SET기구 처방 집계현황" oninit="SPMNG04200_oninit" onload="SPMNG04200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 15 745 635" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 10 745 45" align="align:center top;" id="grp_sea" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Shape position="absolute 0 0 745 35" id="roundrect1" class="roundrect_search" type="roundrectangle" anchor="default"/>
  14. <Static text="처방일자:" position="absolute 15 10 101 27" id="cap_instcd" class="search_name" anchor="default"/>
  15. <Shape position="absolute 607 4 613 29" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  16. <Button position="absolute 620 7 676 29" id="btn_search" class="btn1" taborder="2" text="조회" anchor="default" onclick="grp_biz_grp_sea_btn_search_onclick"/>
  17. <Calendar position="absolute 100 8 185 27" id="ipt_fromdd" anchor="default"/>
  18. <Calendar position="absolute 195 8 280 27" id="ipt_todd" anchor="default"/>
  19. <Static text="~" position="absolute 185 10 201 28" id="caption1" anchor="default"/>
  20. <Button position="absolute 680 7 736 29" id="button1" class="btn7" taborder="2" text="엑셀" anchor="default" onclick="grp_biz_grp_sea_button1_onclick"/>
  21. <Static text="물품코드 :" position="absolute 290 10 381 27" id="caption2" class="search_name" anchor="default"/>
  22. </Layout>
  23. </Layouts>
  24. </Div>
  25. <Static text="SET처방 상세내역" position="absolute 2 58 203 76" id="caption8" class="tit_2" anchor="default"/>
  26. <Shape position="absolute 0 74 745 80" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  27. <Grid position="absolute 0 79 745 620" id="grd_sumlist" class="datagrid2" binddataset="ds_main_suminfo_sumlist" anchor="default" autofittype="col" cellsizingtype="col">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="0"/>
  32. <Column size="24"/>
  33. <Column size="44"/>
  34. <Column size="63"/>
  35. <Column size="65"/>
  36. <Column size="75"/>
  37. <Column size="75"/>
  38. <Column size="111"/>
  39. <Column size="75"/>
  40. <Column size="118"/>
  41. <Column size="40"/>
  42. <Column size="40"/>
  43. </Columns>
  44. <Rows>
  45. <Row size="24" band="head"/>
  46. <Row size="24"/>
  47. <Row size="24" band="summ"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell text="부서명"/>
  51. <Cell col="1"/>
  52. <Cell col="2" text="병실"/>
  53. <Cell col="3" text="등록번호"/>
  54. <Cell col="4" text="환자명"/>
  55. <Cell col="5" text="처방일자"/>
  56. <Cell col="6" text="처방코드"/>
  57. <Cell col="7" text="처방명"/>
  58. <Cell col="8" text="물품코드"/>
  59. <Cell col="9" text="물품명"/>
  60. <Cell col="10" text="수량"/>
  61. <Cell col="11" text="집계&#10;구분"/>
  62. </Band>
  63. <Band id="body">
  64. <Cell text="bind:deptnm"/>
  65. <Cell col="1" celltype="head" expr="currow + 1"/>
  66. <Cell col="2" text="bind:room"/>
  67. <Cell col="3" text="bind:pid"/>
  68. <Cell col="4" text="bind:patnm"/>
  69. <Cell col="5" displaytype="date" text="bind:prcpdd" calendardisplaynulltype="none"/>
  70. <Cell col="6" style="align:left top;padding:5 2 1 2;" text="bind:prcpcd" wordwrap="word"/>
  71. <Cell col="7" style="align:left top;padding:5 2 1 2;" text="bind:prcpnm" wordwrap="word"/>
  72. <Cell col="8" style="align:left top;padding:5 2 1 2;" text="bind:goodcd" wordwrap="word"/>
  73. <Cell col="9" style="align:left top;padding:5 2 1 2;" text="bind:goodnm" wordwrap="word"/>
  74. <Cell col="10" text="bind:sumcnt"/>
  75. <Cell col="11" text="bind:sumflag"/>
  76. </Band>
  77. <Band id="summary">
  78. <Cell/>
  79. <Cell col="1"/>
  80. <Cell col="2" style="font:arial,9,bold;" text="합계"/>
  81. <Cell col="3"/>
  82. <Cell col="4"/>
  83. <Cell col="5"/>
  84. <Cell col="6"/>
  85. <Cell col="7"/>
  86. <Cell col="8"/>
  87. <Cell col="9"/>
  88. <Cell col="10" style="font:arial,9,bold;" expr="expr:getSum(&quot;sumcnt&quot;)"/>
  89. <Cell col="11"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. <Edit position="absolute 320 50 420 69" id="ipt_deptcd" visible="false" anchor="default"/>
  95. <Combo position="absolute 380 18 530 37" id="cmb_goodcd" innerdataset="@ds_init_R0435list" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
  96. </Layout>
  97. </Layouts>
  98. </Div>
  99. <Static id="caption6" text="부서별 Set처방 상세내역" class="tit_1" position="absolute 0 0 199 25"/>
  100. </Layout>
  101. </Layouts>
  102. <Objects>
  103. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  104. <ColumnInfo>
  105. <Column id="fromdd" type="STRING" size="256"/>
  106. <Column id="todd" type="STRING" size="256"/>
  107. <Column id="flag" type="STRING" size="256"/>
  108. <Column id="deptcd" type="STRING" size="256"/>
  109. <Column id="deptflag" type="STRING" size="256"/>
  110. <Column id="goodcd" type="STRING" size="256"/>
  111. </ColumnInfo>
  112. <Rows>
  113. <Row>
  114. <Col id="fromdd"/>
  115. <Col id="todd"/>
  116. <Col id="flag"/>
  117. <Col id="deptcd"/>
  118. <Col id="deptflag"/>
  119. <Col id="goodcd"/>
  120. </Row>
  121. </Rows>
  122. </Dataset>
  123. <Dataset id="ds_main_suminfo_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  124. <Dataset id="ds_init_R0435list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  125. <Dataset id="Dataset00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  126. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  127. </Objects>
  128. <Bind>
  129. <BindItem id="item0" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  130. <BindItem id="item1" compid="grp_biz.grp_sea.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  131. <BindItem id="item2" compid="grp_biz.cmb_goodcd" propid="value" datasetid="ds_main_cond" columnid="goodcd"/>
  132. <BindItem id="item3" compid="grp_biz.ipt_deptcd" propid="value" datasetid="ds_main_cond" columnid="deptcd"/>
  133. </Bind>
  134. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  135. * System Name :
  136. * Job Name :
  137. * Creator :
  138. * Make Date : 2017-07-11
  139. * Description :
  140. *---------------------------------------------------------------------------------------
  141. * Modify Date Modifier Modify Description
  142. *---------------------------------------------------------------------------------------
  143. * 2017-07-11 Live Converter TF->XP
  144. *
  145. *---------------------------------------------------------------------------------------
  146. ****************************************************************************************/
  147. include "com_commonxp::comm_main.xjs";
  148. var arErrorCode = new HashArray();
  149. function SPMNG04200_oninit(obj:Form, e:InitEventInfo)
  150. {
  151. frmf_initForm(obj); //폼 초기화
  152. }
  153. function SPMNG04200_onload(obj:Form, e:LoadEventInfo)
  154. {
  155. fInitialize();
  156. }
  157. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  158. function fInitialize() {
  159. var arrParam = [{dsNm: "ds_init_R0435list", cdGrpId: "R0435"}
  160. ]
  161. appf_getCodeList(arrParam);
  162. frmf_addComboItem("grp_biz.cmb_goodcd", "전체", "", "above");
  163. grp_biz.cmb_goodcd.value = "";
  164. if(frmf_checkOpener()) {
  165. grp_biz.grp_sea.ipt_fromdd.value = opener.frmf_getParameter("fromdd");
  166. grp_biz.grp_sea.ipt_todd.value = opener.frmf_getParameter("todd");
  167. if(utlf_isNull(opener.frmf_getParameter("goodcd"))){
  168. grp_biz.cmb_goodcd.value = "";
  169. }else{
  170. grp_biz.cmb_goodcd.value = opener.frmf_getParameter("goodcd");
  171. }
  172. grp_biz.ipt_deptcd.value = opener.frmf_getParameter("deptcd");
  173. } else {
  174. grp_biz.grp_sea.ipt_fromdd.value = utlf_getCurrentDate();
  175. grp_biz.grp_sea.ipt_todd.value = utlf_getCurrentDate();
  176. grp_biz.cmb_goodcd.value = "";
  177. grp_biz.ipt_deptcd.value = sysf_getUserInfo("dutplcecd");
  178. }
  179. fSearch();
  180. }
  181. function fSearch(){
  182. ds_send_reqdata.clearData();
  183. ds_send_reqdata.copyData(ds_main_cond);
  184. var oParam = {};
  185. oParam.id = "TRMNG04201";
  186. oParam.service = "csrapp.CsrMngt";
  187. oParam.method = "reqGetSumDetlList";
  188. oParam.inds = "req=ds_send_reqdata";
  189. oParam.outds = "ds_main_suminfo_sumlist=sumlist";
  190. oParam.async = false;
  191. tranf_submit(oParam);
  192. //ds_main_suminfo_sumlist.keystring =
  193. //grd_sumlist.subtotal("sum", -1, grd_sumlist.colRef("sumcnt"), "#,###.##", "background-color:#99ff99; font-weight:bold", grd_sumlist.colRef("room"), "합계");
  194. }
  195. function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  196. {
  197. fSearch();
  198. }
  199. function grp_biz_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  200. {
  201. grdf_exportExcel(grd_list, "부서별Enema SkinPrep" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  202. }
  203. ]]></Script>
  204. </Form>
  205. </FDL>