SMAEA05800_재진료대상자조회.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEA05800" position="absolute 0 0 1256 805" titletext="재진료대상자조회" oninit="SMAEA05800_oninit" onload="SMAEA05800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 26" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="재진료 대상자" position="absolute 0 0 134 25" id="caption6" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="grp_biz" taborder="1" position="absolute 0 28 1195 772">
  15. <Layouts>
  16. <Layout>
  17. <Shape id="roundrect2" type="roundrectangle" class="roundrect_search" position="absolute 0 0 1191 35"/>
  18. <Static id="caption1" text="재진료 대상자 List" class="tit_2" position="absolute 5 40 205 53"/>
  19. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 55 1195 61" style="strokepen:3 solid #33bbbbff;"/>
  20. <Button id="btn_excsave" taborder="5" text="엑셀저장" class="btn2" position="absolute 1125 35 1189 54" onclick="grp_biz_btn_excsave_onclick"/>
  21. <Combo id="cmb_execdrid" taborder="6" innerdataset="@ds_out_execrcode" codecolumn="basecd" datacolumn="basecdflagdesc" position="absolute 605 8 720 27"/>
  22. <Static id="caption13" text="입원/외래구분 :" class="search_name" position="absolute 760 10 879 27"/>
  23. <Button id="btn_sea" taborder="7" text="조회" class="btn1" position="absolute 1115 7 1171 29" onclick="grp_biz_btn_sea_onclick"/>
  24. <Radio id="radio3" taborder="8" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 885 9 1025 27" value=" " index="-1">
  25. <Dataset id="innerdataset">
  26. <ColumnInfo>
  27. <Column id="codecolumn"/>
  28. <Column id="datacolumn"/>
  29. </ColumnInfo>
  30. <Rows>
  31. <Row>
  32. <Col id="codecolumn"/>
  33. <Col id="datacolumn">전체</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">I</Col>
  37. <Col id="datacolumn">입원</Col>
  38. </Row>
  39. <Row>
  40. <Col id="codecolumn">O</Col>
  41. <Col id="datacolumn">외래</Col>
  42. </Row>
  43. </Rows>
  44. </Dataset>
  45. </Radio>
  46. <Combo id="cmb_curerm" taborder="9" innerdataset="@ds_out_curerm" codecolumn="basecd" datacolumn="basecdflagdesc" position="absolute 390 8 505 27"/>
  47. <Static id="caption8" text="치료실 :" class="search_name" position="absolute 310 10 388 27"/>
  48. <Static id="caption9" text="치료사 :" class="search_name" position="absolute 525 10 603 27"/>
  49. <Static id="caption2" text="접수일자 :" class="search_name" position="absolute 10 10 96 27"/>
  50. <Calendar id="ipt_todd" taborder="10" class="input_s_essential" position="absolute 197 8 288 27" autoselect="true"/>
  51. <Calendar id="ipt_fromdd" taborder="11" class="input_s_essential" position="absolute 98 8 190 27" autoselect="true"/>
  52. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1103 7 1109 29"/>
  53. <Grid id="grd_list" taborder="12" binddataset="ds_grd_list" useinputpanel="false" position="absolute 0 60 1195 727">
  54. <Formats>
  55. <Format id="default">
  56. <Columns>
  57. <Column size="100"/>
  58. <Column size="62"/>
  59. <Column size="100"/>
  60. <Column size="66"/>
  61. <Column size="100"/>
  62. <Column size="100"/>
  63. <Column size="100"/>
  64. <Column size="100"/>
  65. <Column size="100"/>
  66. <Column size="100"/>
  67. <Column size="100"/>
  68. <Column size="100"/>
  69. </Columns>
  70. <Rows>
  71. <Row size="24" band="head"/>
  72. <Row size="24"/>
  73. </Rows>
  74. <Band id="head">
  75. <Cell text="등록번호"/>
  76. <Cell col="1" text="성명"/>
  77. <Cell col="2" text="성별/나이"/>
  78. <Cell col="3" text="입원/외래"/>
  79. <Cell col="4" text="병동"/>
  80. <Cell col="5" text="병동"/>
  81. <Cell col="6" text="병실"/>
  82. <Cell col="7" text="진료과"/>
  83. <Cell col="8" text="진료과"/>
  84. <Cell col="9" text="처방의"/>
  85. <Cell col="10" text="처방의"/>
  86. <Cell col="11" text="연속처방종료일"/>
  87. </Band>
  88. <Band id="body">
  89. <Cell text="bind:pid"/>
  90. <Cell col="1" text="bind:hngnm"/>
  91. <Cell col="2" text="bind:age"/>
  92. <Cell col="3" text="bind:ioflag"/>
  93. <Cell col="4" text="bind:wardcd"/>
  94. <Cell col="5" text="bind:wardnm"/>
  95. <Cell col="6" text="bind:roomcd"/>
  96. <Cell col="7" text="bind:orddeptcd"/>
  97. <Cell col="8" text="bind:orddeptnm"/>
  98. <Cell col="9" text="bind:orddrid"/>
  99. <Cell col="10" text="bind:orddrnm"/>
  100. <Cell col="11" displaytype="date" edittype="date" text="bind:acptdd" calendardisplaynulltype="none"/>
  101. </Band>
  102. </Format>
  103. </Formats>
  104. </Grid>
  105. </Layout>
  106. </Layouts>
  107. </Div>
  108. </Layout>
  109. </Layouts>
  110. <Objects>
  111. <Dataset id="ds_grd_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="pid" type="STRING"/>
  114. <Column id="hngnm" type="STRING"/>
  115. <Column id="age" type="STRING"/>
  116. <Column id="ioflag" type="STRING"/>
  117. <Column id="wardcd" type="STRING"/>
  118. <Column id="wardnm" type="STRING"/>
  119. <Column id="roomcd" type="STRING"/>
  120. <Column id="orddeptcd" type="STRING"/>
  121. <Column id="orddeptnm" type="STRING"/>
  122. <Column id="orddrid" type="STRING"/>
  123. <Column id="orddrnm" type="STRING"/>
  124. <Column id="acptdd" type="STRING"/>
  125. </ColumnInfo>
  126. </Dataset>
  127. <Dataset id="ds_send_req2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  128. <ColumnInfo>
  129. <Column id="basecd" type="STRING" size="256" sumtext="실시자코드"/>
  130. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
  131. <Column id="ebasecdflag" type="STRING" size="256" sumtext="부서코드"/>
  132. </ColumnInfo>
  133. <Rows>
  134. <Row/>
  135. </Rows>
  136. </Dataset>
  137. <Dataset id="ds_out_execrcode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  138. <ColumnInfo>
  139. <Column id="basecd" type="STRING" size="256" sumtext="사번"/>
  140. <Column id="basecdflagdesc" type="STRING" size="256" sumtext="성명"/>
  141. </ColumnInfo>
  142. <Rows>
  143. <Row>
  144. <Col id="basecdflagdesc">--전체--</Col>
  145. </Row>
  146. </Rows>
  147. </Dataset>
  148. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="basecd" type="STRING" size="256" sumtext="부서코드"/>
  151. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
  152. <Column id="rbasecdflag" type="STRING" size="256" sumtext="검사실코드"/>
  153. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  154. </ColumnInfo>
  155. <Rows>
  156. <Row/>
  157. </Rows>
  158. </Dataset>
  159. <Dataset id="ds_out_curerm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  160. <ColumnInfo>
  161. <Column id="basecd" type="STRING" size="256" sumtext="기본코드"/>
  162. <Column id="basecdflagdesc" type="STRING" size="256" sumtext="코드설명"/>
  163. </ColumnInfo>
  164. <Rows>
  165. <Row>
  166. <Col id="basecdflagdesc">--전체--</Col>
  167. </Row>
  168. </Rows>
  169. </Dataset>
  170. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  171. <ColumnInfo>
  172. <Column id="srchioflag" type="STRING" size="256" sumtext="조회구분"/>
  173. <Column id="srchdate1" type="STRING" size="256" sumtext="조회시작일자"/>
  174. <Column id="srchdate2" type="STRING" size="256" sumtext="조회종료일자"/>
  175. <Column id="excuroomcd" type="STRING" size="256" sumtext="치료실"/>
  176. <Column id="execrid" type="STRING" size="256" sumtext="치료사"/>
  177. <Column id="suppdeptcd" type="STRING" size="256" sumtext="지원부서"/>
  178. </ColumnInfo>
  179. <Rows>
  180. <Row/>
  181. </Rows>
  182. </Dataset>
  183. </Objects>
  184. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  185. * System Name :
  186. * Job Name :
  187. * Creator :
  188. * Make Date : 2015-11-13
  189. * Description :
  190. *---------------------------------------------------------------------------------------
  191. * Modify Date Modifier Modify Description
  192. *---------------------------------------------------------------------------------------
  193. * 2015-11-13 Live Converter TF->XP
  194. *
  195. *---------------------------------------------------------------------------------------
  196. ****************************************************************************************/
  197. include "com_commonxp::comm_main.xjs";
  198. include "ast_examcurexp::AEZ0001.xjs";
  199. include "ast_examcurexp::combolist.xjs";
  200. include "com_commodulexp::SSZFM00401.xjs"; // Dataset 뷰어용
  201. include "com_commodulexp::SMZFS00501.xjs";
  202. //include "com_commodulexp::SMZFS00401.xjs";
  203. function SMAEA05800_oninit(obj:Form, e:InitEventInfo)
  204. {
  205. frmf_initForm(obj); // 화면공통
  206. }
  207. function SMAEA05800_onload(obj:Form, e:LoadEventInfo)
  208. {
  209. lf_aezfSetSuppDeptcd();
  210. fn_TRAEA00902();
  211. fn_TRAEA00903();
  212. //
  213. // var arrParam = [{dsNm: "ds_init_A510", cdGrpId: "A510"}
  214. // ]
  215. // lf_getAstCodeList(arrParam);
  216. //
  217. //
  218. //
  219. //
  220. var curDate = utlf_getCurrentDate();
  221. grp_biz.ipt_fromdd.value = curDate;
  222. grp_biz.ipt_todd.value = curDate;
  223. grp_biz.cmb_curerm.value = "";
  224. grp_biz.cmb_execdrid.value = "";
  225. grp_biz.radio3.value = "";
  226. }
  227. function fn_TRAEA00902() {
  228. var dutplcecd = sysf_getUserInfo("dutplcecd");
  229. ds_send_req.setColumn(0,"basecd","");
  230. ds_send_req.setColumn(0,"basesuppdeptcd",suppdeptcd);
  231. ds_send_req.setColumn(0,"rbasecdflag","R");
  232. ds_send_req.setColumn(0,"instcd","");
  233. var oParam = {};
  234. oParam.id = "TRAEA00902";
  235. oParam.service = "examcurebaseapp.ExamCureRoom";
  236. oParam.method = "reqGetExamCureRoomGrpList";
  237. oParam.inds = "req=ds_send_req";
  238. oParam.outds = "ds_out_curerm=item";
  239. oParam.async = false;
  240. oParam.callback = "cf_TRAEA00902";
  241. tranf_submit(oParam);
  242. }
  243. function cf_TRAEA00902(sSvcId, nErrorCode, sErrorMsg) {
  244. if(nErrorCode < 0) return;
  245. dsf_addDsItem( ds_out_curerm, "basecd", "basecdflagdesc", "-- 전체 --", "", "above" ); //치료실콤보 Item '전체'추가
  246. }
  247. function fn_TRAEA00903() {
  248. var dutplcecd = sysf_getUserInfo("dutplcecd");
  249. ds_send_req2.setColumn(0,"basecd","");
  250. ds_send_req2.setColumn(0,"basesuppdeptcd",suppdeptcd);
  251. ds_send_req2.setColumn(0,"ebasecdflag","E");
  252. var oParam = {};
  253. oParam.id = "TRAEA00903";
  254. oParam.service = "examcurebaseapp.ExecrCode";
  255. oParam.method = "reqGetExecrCodeList";
  256. oParam.inds = "req=ds_send_req2";
  257. oParam.outds = "ds_out_execrcode=execrcode";
  258. oParam.async = false;
  259. oParam.callback = "cf_TRAEA00903";
  260. tranf_submit(oParam);
  261. }
  262. function cf_TRAEA00903(sSvcId, nErrorCode, sErrorMsg) {
  263. if(nErrorCode < 0) return;
  264. dsf_addDsItem( ds_out_execrcode, "basecd", "basecdflagdesc", "-- 전체 --", "", "above" ); //치료실콤보 Item '전체'추가
  265. }
  266. function grp_biz_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  267. {
  268. ds_send.setColumn(0,"srchioflag",grp_biz.radio3.value);
  269. ds_send.setColumn(0,"srchdate1",grp_biz.ipt_fromdd.value);
  270. ds_send.setColumn(0,"srchdate2",grp_biz.ipt_todd.value);
  271. ds_send.setColumn(0,"excuroomcd",grp_biz.cmb_curerm.value);
  272. ds_send.setColumn(0,"execrid",grp_biz.cmb_execdrid.value);
  273. ds_send.setColumn(0,"suppdeptcd",suppdeptcd);
  274. var oParam = {};
  275. oParam.id = "TRAEA05800";
  276. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  277. oParam.method = "reqGetRehbAcptEndList";
  278. oParam.inds = "req=ds_send";
  279. oParam.outds = "ds_grd_list=item";
  280. oParam.async = false;
  281. //oParam.callback = "cf_TRAEA05800";
  282. tranf_submit(oParam);
  283. }
  284. function grp_biz_btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  285. {
  286. if( ds_grd_list.rowcount > 0 ){
  287. grdf_exportExcel(grp_biz.grd_list,"재진료 대상자 조회", "재진료 대상자 조회", false, "", "user", false);
  288. } else {
  289. sysf_messageBox("조회된 데이터가 ", "I004");
  290. }
  291. }
  292. ]]></Script>
  293. </Form>
  294. </FDL>