SMAEA08000_예약환자현황(초음파).xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEA08000" position="absolute 0 0 1192 777" titletext="외래 초음파 예약현황조회" onload="SMAEA08000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="외래 초음파 예약현황조회" class="tit_1" position="absolute 0 0 180 25"/>
  8. <Div id="group2" taborder="1" class="div_SA" position="absolute 0 25 1180 65" anchor="left top right">
  9. <Layouts>
  10. <Layout width="1180" height="35">
  11. <Shape id="line1" linetype="vertical" position="absolute 1092 8 1098 32" anchor="top right"/>
  12. <Static id="caption2" text="진료과 :" class="search_name" position="absolute 289 12 353 29"/>
  13. <Combo id="cmb_orddeptcd" taborder="2" innerdataset="@ds_init_orddept" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 359 11 473 30"/>
  14. <Calendar id="torsrvdd" taborder="1" class="input_default" position="absolute 187 11 277 30" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  15. <Calendar id="frrsrvdd" taborder="0" class="input_default" position="absolute 92 11 182 30" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  16. <Static id="caption11" text="예약일자 :" class="search_name" position="absolute 10 12 87 29"/>
  17. <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1110 10 1166 32" onclick="group2_btn_sea_onclick" anchor="top right"/>
  18. <Static id="caption1" text="환자번호 :" class="search_name" position="absolute 485 12 561 29"/>
  19. <Edit id="input1" taborder="4" position="absolute 567 11 667 30" onkeydown="group2_input1_onkeydown"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Button id="button2" taborder="2" text="엑셀" class="btn7" position="absolute 1130 68 1180 87" onclick="button2_onclick" anchor="top right"/>
  24. <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 0 87 1180 93" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  25. <Grid id="datagrid1" taborder="3" binddataset="ds_main_rsrvsonolist" useinputpanel="false" position="absolute 0 92 1180 762" anchor="all">
  26. <Formats>
  27. <Format id="default">
  28. <Columns>
  29. <Column size="25" band="left"/>
  30. <Column size="120"/>
  31. <Column size="70"/>
  32. <Column size="70"/>
  33. <Column size="60"/>
  34. <Column size="60"/>
  35. <Column size="100"/>
  36. <Column size="80"/>
  37. <Column size="230"/>
  38. <Column size="70"/>
  39. <Column size="70"/>
  40. <Column size="65"/>
  41. <Column size="65"/>
  42. <Column size="65"/>
  43. <Column size="65"/>
  44. <Column size="65"/>
  45. <Column size="65"/>
  46. <Column size="65"/>
  47. <Column size="100"/>
  48. </Columns>
  49. <Rows>
  50. <Row size="24" band="head"/>
  51. <Row size="24"/>
  52. </Rows>
  53. <Band id="head">
  54. <Cell/>
  55. <Cell col="1" text="진료과"/>
  56. <Cell col="2" text="등록번호"/>
  57. <Cell col="3" text="환자명"/>
  58. <Cell col="4" text="보험유형"/>
  59. <Cell col="5" text="보조유형"/>
  60. <Cell col="6" text="주상병코드"/>
  61. <Cell col="7" text="처방코드"/>
  62. <Cell col="8" text="처방명"/>
  63. <Cell col="9" text="처방급비"/>
  64. <Cell col="10" text="계산급비"/>
  65. <Cell col="11" text="처방수량"/>
  66. <Cell col="12" text="처방일자"/>
  67. <Cell col="13" text="예약일자"/>
  68. <Cell col="14" text="예약시간"/>
  69. <Cell col="15" text="처방의사"/>
  70. <Cell col="16" text="선택의사"/>
  71. <Cell col="17" text="시행의사"/>
  72. <Cell col="18" text="비고"/>
  73. </Band>
  74. <Band id="body">
  75. <Cell celltype="head" expr="expr:currow + 1"/>
  76. <Cell col="1" style="align:left middle;padding:0 0 0 2;" text="bind:orddeptnm"/>
  77. <Cell col="2" style="align:left middle;padding:0 0 0 2;" text="bind:pid"/>
  78. <Cell col="3" style="align:center middle;" text="bind:pname"/>
  79. <Cell col="4" style="align:left middle;padding:0 0 0 2;" text="bind:insukind"/>
  80. <Cell col="5" style="align:left middle;padding:0 0 0 2;" text="bind:suppkind"/>
  81. <Cell col="6" style="align:left middle;padding:0 0 0 2;" text="bind:diagcd"/>
  82. <Cell col="7" style="align:left middle;padding:0 0 0 2;" text="bind:prcpcd"/>
  83. <Cell col="8" style="align:left top;padding:5 2 3 2;" text="bind:prcpnm" wordwrap="char"/>
  84. <Cell col="9" style="align:center middle;" text="bind:payflagcd"/>
  85. <Cell col="10" style="align:center middle;" text="bind:calcpayflag"/>
  86. <Cell col="11" style="align:center middle;" text="bind:ordqty"/>
  87. <Cell col="12" style="align:center middle;" text="bind:prcpdd"/>
  88. <Cell col="13" style="align:center middle;" text="bind:rsrvdd"/>
  89. <Cell col="14" displaytype="date" style="align:center middle;" text="bind:rsrvtm" mask="hh:mm" calendardisplaynulltype="none"/>
  90. <Cell col="15" style="align:center middle;" text="bind:orddrid"/>
  91. <Cell col="16" text="bind:specdrid"/>
  92. <Cell col="17" text="bind:execrid"/>
  93. <Cell col="18" text="bind:remark"/>
  94. </Band>
  95. </Format>
  96. </Formats>
  97. </Grid>
  98. <Button id="btnprint" taborder="4" text="출력" class="btn6" position="absolute 1078 68 1128 87" onclick="btnprint_onclick" anchor="top right"/>
  99. </Layout>
  100. </Layouts>
  101. <Objects>
  102. <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  103. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  104. <ColumnInfo>
  105. <Column id="rsrvfromdd" type="STRING" size="256"/>
  106. <Column id="rsrvtodd" type="STRING" size="256"/>
  107. <Column id="orddeptcd" type="STRING" size="256"/>
  108. <Column id="pid" type="STRING" size="256"/>
  109. </ColumnInfo>
  110. <Rows>
  111. <Row>
  112. <Col id="rsrvfromdd"/>
  113. <Col id="rsrvtodd"/>
  114. <Col id="orddeptcd"/>
  115. <Col id="pid"/>
  116. </Row>
  117. </Rows>
  118. </Dataset>
  119. <Dataset id="ds_main_rsrvsonolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  120. <ColumnInfo>
  121. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
  122. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  123. <Column id="pname" type="STRING" size="256" sumtext="환자명"/>
  124. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  125. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  126. <Column id="diagcd" type="STRING" size="256" sumtext="주상병코드"/>
  127. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  128. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  129. <Column id="payflagcd" type="STRING" size="256" sumtext="처방급비"/>
  130. <Column id="calcpayflag" type="STRING" size="256" sumtext="계산급비"/>
  131. <Column id="ordqty" type="STRING" size="256" sumtext="수량"/>
  132. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  133. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  134. <Column id="rsrvtm" type="STRING" size="256" sumtext="예약일자"/>
  135. <Column id="orddrid" type="STRING" size="256" sumtext="처방의사"/>
  136. <Column id="specdrid" type="STRING" size="256" sumtext="선택의사"/>
  137. <Column id="execrid" type="STRING" size="256" sumtext="시행의사"/>
  138. <Column id="remark" type="STRING" size="256" sumtext="비고"/>
  139. </ColumnInfo>
  140. </Dataset>
  141. </Objects>
  142. <Bind>
  143. <BindItem id="item0" compid="group2.input1" propid="value" datasetid="ds_send" columnid="pid"/>
  144. <BindItem id="item1" compid="group2.cmb_orddeptcd" propid="value" datasetid="ds_send" columnid="orddeptcd"/>
  145. <BindItem id="item2" compid="group2.torsrvdd" propid="value" datasetid="ds_send" columnid="rsrvtodd"/>
  146. <BindItem id="item3" compid="group2.frrsrvdd" propid="value" datasetid="ds_send" columnid="rsrvfromdd"/>
  147. </Bind>
  148. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  149. * System Name :
  150. * Job Name :
  151. * Creator :
  152. * Make Date : 2015-11-13
  153. * Description :
  154. *---------------------------------------------------------------------------------------
  155. * Modify Date Modifier Modify Description
  156. *---------------------------------------------------------------------------------------
  157. * 2015-11-13 Live Converter TF->XP
  158. *
  159. *---------------------------------------------------------------------------------------
  160. ****************************************************************************************/
  161. //=======================================================================================
  162. // Lib Include
  163. //---------------------------------------------------------------------------------------
  164. include 'com_commonxp::comm_main.xjs';
  165. var arErrorCode = new HashArray();
  166. //=======================================================================================
  167. // Local methods
  168. //---------------------------------------------------------------------------------------
  169. /**
  170. * 출력 메서드
  171. */
  172. function lf_printGrid() {
  173. dsf_makeValue(ds_main_rsrvsonolist, "rsrvfromdd", 'string', ds_send.getColumn(0, "rsrvfromdd"));
  174. dsf_makeValue(ds_main_rsrvsonolist, "rsrvtodd", 'string', ds_send.getColumn(0, "rsrvtodd"));
  175. // DOM 객체 설정
  176. var objDOM = rptf_createDOM();
  177. rptf_setNodeListToDOM(objDOM, "root/main/rsrvsonolist", ds_main_rsrvsonolist);
  178. var option = "open=1;save=1;directprint=0;printdialog=0;print=1;zoom=0";
  179. rptf_exeReportPreview30(["RPAEA08000"], [{ xml_data_XML1: objDOM.documentElement.source }], option);
  180. }
  181. /**
  182. * submit 후 호출 될 공통 콜백
  183. * @param {[type]} sSvcId [description]
  184. * @param {[type]} nErrorCode [description]
  185. * @param {[type]} sErrorMsg [description]
  186. * @return {Function} [description]
  187. */
  188. function callback(sSvcId, nErrorCode, sErrorMsg){
  189. arErrorCode.push(sSvcId, nErrorCode);
  190. }
  191. //=======================================================================================
  192. // Events
  193. //---------------------------------------------------------------------------------------
  194. /**
  195. * onload 이벤트 발생 시 호출
  196. * @param {[type]} obj:Form [description]
  197. * @param {[type]} e:LoadEventInfo [description]
  198. */
  199. function SMAEA08000_onload(obj: Form, e: LoadEventInfo) {
  200. frmf_initForm(obj);
  201. grdf_setGridSort(datagrid1);
  202. appf_getDeptCodeList(sysf_getUserInfo("dutplceinstcd"), "orduseyn", "D", "depthngnm", "", "", "", "", "ds_init_orddept", false, "");
  203. if (ds_init_orddept.rowcount > 0) {
  204. dsf_addDsItem(ds_init_orddept, "deptcd", "depthngnm", "전체", "", "above");
  205. }
  206. ds_send.setColumn(0, "rsrvfromdd", utlf_getCurrentDate());
  207. ds_send.setColumn(0, "rsrvtodd", utlf_getCurrentDate());
  208. }
  209. /**
  210. * 환자번호 키보드 입력 이벤트
  211. * @param {*} obj
  212. * @param {*} e
  213. */
  214. function group2_input1_onkeydown(obj: Edit, e: KeyEventInfo) {
  215. if (e.keycode == 13) {
  216. group2.btn_sea.click();
  217. }
  218. }
  219. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  220. {
  221. submit("TRAEA08000", true);
  222. }
  223. /**
  224. * 조회버튼 클릭 이벤트
  225. * @param {*} obj
  226. * @param {*} e
  227. */
  228. function group2_btn_sea_onclick(obj: Button, e: ClickEventInfo) {
  229. var oParam = {};
  230. oParam.id = "TRAEA08000";
  231. oParam.service = "examcurersrvapp.RsrvRef";
  232. oParam.method = "reqgetOpdSonoRsrvList";
  233. oParam.inds = "req=ds_send";
  234. oParam.outds = "ds_main_rsrvsonolist=rsrvsonolist";
  235. oParam.async = false;
  236. tranf_submit(oParam);
  237. }
  238. /**
  239. * 출력 버튼 클릭 이벤트
  240. * @param {*} obj
  241. * @param {*} e
  242. */
  243. function btnprint_onclick(obj: Button, e: ClickEventInfo) {
  244. lf_printGrid();
  245. }
  246. /**
  247. * 엑셀 버튼 클릭 이벤트
  248. * @param {*} obj
  249. * @param {*} e
  250. */
  251. function button2_onclick(obj: Button, e: ClickEventInfo) {
  252. if (ds_main_rsrvsonolist.rowcount < 1) {
  253. return;
  254. }
  255. grdf_exportExcel(datagrid1, "excel", "SheetName", false, "", "user", false);
  256. sysf_messageBox("EXCEL 저장이 완료되었습니다.", "I999");
  257. }
  258. ]]></Script>
  259. </Form>
  260. </FDL>