SSMNO00200_외래환자예약현황.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SSMNO00200" position="absolute 0 0 1256 805" titletext="외래환자예약현황" onload="SSMNO00200_onload" scrollbars="none">
  5. <Layouts>
  6. <Layout>
  7. <Static text="*** 기타: 물리치료, 인공신장실, 주사, F/U, 치료방사선&#13;&#10;*** 과예약: 외래, 병동, 응급, DSC, 특수주사실 포함한 예약건수" position="absolute 10 768 1194 803" id="caption2" positiontype="position" anchor="left right bottom" style="font:Dotum,9,bold;"/>
  8. <Static id="Static11" text="폼의 상단부터 h25" class="sta_guide" visible="false" position="absolute 313 0 533 25"/>
  9. <Static id="caption6" text="외래환자예약현황" class="tit_1" position="absolute 0 0 130 26"/>
  10. <Div id="Div00" anchor="left top right" taborder="1" text="Div00" scrollbars="none" class="div_SA" position="absolute 0 26 1256 68">
  11. <Layouts>
  12. <Layout>
  13. <Static id="sta_Fund" text="기간 :" class="search_name" position="absolute 8 10 88 30" ustext="Fund" anchor="default"/>
  14. <Static id="Static08" class="sta_WF_Line" position="absolute 265 19 267 30" anchor="default"/>
  15. <Static id="sta_Fund00" text="진료과별 :" class="search_name" position="absolute 191 10 273 31" ustext="Fund" anchor="default"/>
  16. <Static id="Static11" text="h10" class="sta_guide" visible="false" position="absolute 1189 0 1244 10" anchor="default"/>
  17. <Static id="Static10" text="w&#13;&#10;10" onclick="Static04_onclick" class="sta_guide" visible="false" position="absolute 1244 0 1254 41" anchor="default"/>
  18. <Static id="Static00" text="w24" onclick="Static04_onclick" class="sta_guide" visible="false" position="absolute 390 0 414 41" anchor="default"/>
  19. <Static id="Static03" text="w8" class="sta_guide" visible="false" position="absolute 489 1 497 41" anchor="default"/>
  20. <Static id="sta_Fund01" text="진료의별 :" class="search_name" position="absolute 414 10 496 31" ustext="Fund" anchor="default"/>
  21. </Layout>
  22. </Layouts>
  23. </Div>
  24. <Button id="btn_excel" taborder="2" text="엑셀" onclick="btn_excel_onclick" class="btn7" position="absolute 1145 74 1200 94" anchor="top right"/>
  25. <Static id="caption26" text="외래환자예약현황" class="tit_2" position="absolute 1 79 128 93"/>
  26. <Static id="Static00" text="h10" class="sta_guide" visible="false" position="absolute 0 67 55 77"/>
  27. <Button id="btn_srch" taborder="3" text="조회" onclick="btn_srch_onclick" class="btn1" position="absolute 1189 36 1245 56" anchor="top right"/>
  28. <Static id="Static10" text="w24" onclick="Static04_onclick" class="sta_guide" visible="false" position="absolute 168 25 192 66"/>
  29. <Static id="Static01" text="h7" class="sta_guide" visible="false" position="absolute 1200 67 1255 74"/>
  30. <Static id="Static02" text="h3" class="sta_guide" visible="false" position="absolute 1200 94 1255 97"/>
  31. <Static id="Static19" text="w8" class="sta_guide" visible="false" position="absolute 58 26 66 66"/>
  32. <Static id="Static03" text="w8" class="sta_guide" visible="false" position="absolute 267 26 275 66"/>
  33. <Calendar id="input1" taborder="4" autoselect="true" class="input_s_essential" position="absolute 66 36 169 56"/>
  34. <Combo id="cmb_orddeptcd" taborder="5" innerdataset="ds_init_cmb_orddeptcd" onitemchanged="cmb_orddeptcd_onitemchanged" class="combo_search" position="absolute 275 36 391 56" codecolumn="deptcd" datacolumn="depthngnm"/>
  35. <Combo id="cmb_orddrid" taborder="6" class="combo_search" position="absolute 498 36 604 56"/>
  36. <Button id="btn_print" taborder="7" text="출력" onclick="btn_print_onclick" class="btn6" position="absolute 1204 74 1256 94" anchor="top right"/>
  37. <Grid id="grd_outpatrsrv" taborder="8" binddataset="ds_grid_grd_outpatrsrv" useinputpanel="false" position="absolute 0 97 1256 765" anchor="all">
  38. <Formats>
  39. <Format id="default">
  40. <Columns>
  41. <Column size="20" band="left"/>
  42. <Column size="107" band="left"/>
  43. <Column size="45"/>
  44. <Column size="48"/>
  45. <Column size="48"/>
  46. <Column size="48"/>
  47. <Column size="48"/>
  48. <Column size="48"/>
  49. <Column size="48"/>
  50. <Column size="48"/>
  51. <Column size="40"/>
  52. <Column size="40"/>
  53. <Column size="45"/>
  54. <Column size="48"/>
  55. <Column size="48"/>
  56. <Column size="48"/>
  57. <Column size="48"/>
  58. <Column size="48"/>
  59. <Column size="48"/>
  60. <Column size="48"/>
  61. <Column size="48"/>
  62. <Column size="48"/>
  63. <Column size="48"/>
  64. <Column size="48"/>
  65. <Column size="48"/>
  66. <Column size="48"/>
  67. <Column size="48"/>
  68. <Column size="48"/>
  69. <Column size="48"/>
  70. <Column size="48"/>
  71. <Column size="48"/>
  72. </Columns>
  73. <Rows>
  74. <Row size="24" band="head"/>
  75. <Row size="24" band="head"/>
  76. <Row size="24" band="head"/>
  77. <Row size="24"/>
  78. </Rows>
  79. <Band id="head">
  80. <Cell rowspan="3"/>
  81. <Cell col="1" rowspan="3"/>
  82. <Cell col="2" colspan="11" text="초진"/>
  83. <Cell col="13" colspan="10" text="재진"/>
  84. <Cell col="23" colspan="3" text="외래환자수"/>
  85. <Cell col="26" rowspan="3" text="특진율"/>
  86. <Cell col="27" rowspan="3" text="초진율"/>
  87. <Cell col="28" rowspan="3" text="진료&#10;예약"/>
  88. <Cell col="29" rowspan="3" text="진료&#10;반환"/>
  89. <Cell col="30" rowspan="3" text="진료&#10;과별&#10;비율"/>
  90. <Cell row="1" col="2" rowspan="2" text="전화&#10;예약"/>
  91. <Cell row="1" col="3" rowspan="2" text="과예약"/>
  92. <Cell row="1" col="4" rowspan="2" text=" 인터넷&#10;예약"/>
  93. <Cell row="1" col="5" rowspan="2" text="당일&#10;접수"/>
  94. <Cell row="1" col="6" rowspan="2" text="당일&#10;예약"/>
  95. <Cell row="1" col="7" rowspan="2" text="협력&#10;예약"/>
  96. <Cell row="1" col="8" rowspan="2" text="의뢰"/>
  97. <Cell row="1" col="9" rowspan="2" text="기타"/>
  98. <Cell row="1" col="10" colspan="3" text="외래환자수"/>
  99. <Cell row="1" col="13" rowspan="2" text="전화&#10;예약"/>
  100. <Cell row="1" col="14" rowspan="2" text="과예약"/>
  101. <Cell row="1" col="15" rowspan="2" text="당일&#10;접수"/>
  102. <Cell row="1" col="16" rowspan="2" text="당일&#10;예약"/>
  103. <Cell row="1" col="17" rowspan="2" text="협력&#10;예약"/>
  104. <Cell row="1" col="18" rowspan="2" text="의뢰"/>
  105. <Cell row="1" col="19" rowspan="2" text="기타"/>
  106. <Cell row="1" col="20" colspan="3" text="외래환자수"/>
  107. <Cell row="1" col="23" rowspan="2" text="특진"/>
  108. <Cell row="1" col="24" rowspan="2" text="일반"/>
  109. <Cell row="1" col="25" rowspan="2" text="합계"/>
  110. <Cell row="2" col="10" text="특진"/>
  111. <Cell row="2" col="11" text="일반"/>
  112. <Cell row="2" col="12" text="합계"/>
  113. <Cell row="2" col="20" text="특진"/>
  114. <Cell row="2" col="21" text="일반"/>
  115. <Cell row="2" col="22" text="합계"/>
  116. </Band>
  117. <Band id="body">
  118. <Cell celltype="head" text="expr:currow+1"/>
  119. <Cell col="1" style="align:left;" text="bind:stsview"/>
  120. <Cell col="2" style="align:right;" text="bind:fstelrsrv"/>
  121. <Cell col="3" style="align:right;" text="bind:fsdeptrsrv"/>
  122. <Cell col="4" style="align:right;" text="bind:fsitnrsrv"/>
  123. <Cell col="5" style="align:right;" text="bind:fstdyrsrv"/>
  124. <Cell col="6" style="align:right;" text="bind:fscurntrsrv"/>
  125. <Cell col="7" style="align:right;" text="bind:fscorsrv"/>
  126. <Cell col="8" style="align:right;" text="bind:fscnsltrsrv"/>
  127. <Cell col="9" style="align:right;" text="bind:fsetcrsrv"/>
  128. <Cell col="10" style="align:right;" text="bind:fssltdiagrsrv"/>
  129. <Cell col="11" style="align:right;" text="bind:fsgendiagrsrv"/>
  130. <Cell col="12" style="align:right;" text="bind:fsotpttot"/>
  131. <Cell col="13" style="align:right;" text="bind:sectelrsrv"/>
  132. <Cell col="14" style="align:right;" text="bind:secdeptrsrv"/>
  133. <Cell col="15" style="align:right;" text="bind:sectdyrsrv"/>
  134. <Cell col="16" style="align:right;" text="bind:seccurntrsrv"/>
  135. <Cell col="17" style="align:right;" text="bind:seccorsrv"/>
  136. <Cell col="18" style="align:right;" text="bind:seccnsltrsrv"/>
  137. <Cell col="19" style="align:right;" text="bind:secetcrsrv"/>
  138. <Cell col="20" style="align:right;" text="bind:secsltdiagrsrv"/>
  139. <Cell col="21" style="align:right;" text="bind:secgendiagrsrv"/>
  140. <Cell col="22" style="align:right;" text="bind:secotpttot"/>
  141. <Cell col="23" style="align:right;" text="bind:sltotpt"/>
  142. <Cell col="24" style="align:right;" text="bind:genotpt"/>
  143. <Cell col="25" style="align:right;" text="bind:otpttot"/>
  144. <Cell col="26" style="align:right;" text="bind:sltotptrate"/>
  145. <Cell col="27" style="align:right;" text="bind:genotptrate"/>
  146. <Cell col="28" style="align:right;" text="bind:totrsrv"/>
  147. <Cell col="29" style="align:right;" text="bind:cnclrsrv"/>
  148. <Cell col="30" style="align:right;" text="bind:deptrate"/>
  149. </Band>
  150. </Format>
  151. </Formats>
  152. </Grid>
  153. </Layout>
  154. </Layouts>
  155. <Objects>
  156. <Dataset id="ds_grid_grd_outpatrsrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  157. <ColumnInfo>
  158. <Column id="stsview" type="STRING"/>
  159. <Column id="fstelrsrv" type="STRING"/>
  160. <Column id="fsdeptrsrv" type="STRING"/>
  161. <Column id="fsitnrsrv" type="STRING"/>
  162. <Column id="fstdyrsrv" type="STRING"/>
  163. <Column id="fscurntrsrv" type="STRING"/>
  164. <Column id="fscorsrv" type="STRING"/>
  165. <Column id="fscnsltrsrv" type="STRING"/>
  166. <Column id="fsetcrsrv" type="STRING"/>
  167. <Column id="fssltdiagrsrv" type="STRING"/>
  168. <Column id="fsgendiagrsrv" type="STRING"/>
  169. <Column id="fsotpttot" type="STRING"/>
  170. <Column id="sectelrsrv" type="STRING"/>
  171. <Column id="secdeptrsrv" type="STRING"/>
  172. <Column id="sectdyrsrv" type="STRING"/>
  173. <Column id="seccurntrsrv" type="STRING"/>
  174. <Column id="seccorsrv" type="STRING"/>
  175. <Column id="seccnsltrsrv" type="STRING"/>
  176. <Column id="secetcrsrv" type="STRING"/>
  177. <Column id="secsltdiagrsrv" type="STRING"/>
  178. <Column id="secgendiagrsrv" type="STRING"/>
  179. <Column id="secotpttot" type="STRING"/>
  180. <Column id="sltotpt" type="STRING"/>
  181. <Column id="genotpt" type="STRING"/>
  182. <Column id="otpttot" type="STRING"/>
  183. <Column id="sltotptrate" type="STRING"/>
  184. <Column id="genotptrate" type="STRING"/>
  185. <Column id="totrsrv" type="STRING"/>
  186. <Column id="cnclrsrv" type="STRING"/>
  187. <Column id="deptrate" type="STRING"/>
  188. </ColumnInfo>
  189. </Dataset>
  190. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  191. <ColumnInfo>
  192. <Column id="srchdd" type="STRING" size="256"/>
  193. <Column id="orddeptcd" type="STRING" size="256"/>
  194. <Column id="orddrid" type="STRING" size="256"/>
  195. </ColumnInfo>
  196. <Rows>
  197. <Row/>
  198. </Rows>
  199. </Dataset>
  200. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  201. <ColumnInfo>
  202. <Column id="srchdd" type="STRING" size="256"/>
  203. <Column id="srchyear" type="STRING" size="256"/>
  204. <Column id="srchfromdd" type="STRING" size="256"/>
  205. <Column id="srchtodd" type="STRING" size="256"/>
  206. <Column id="srchflag1" type="STRING" size="256"/>
  207. <Column id="srchflag2" type="STRING" size="256"/>
  208. <Column id="basedd" type="STRING" size="256"/>
  209. <Column id="orddeptcd" type="STRING" size="256"/>
  210. <Column id="orddrid" type="STRING" size="256"/>
  211. <Column id="menu" type="STRING" size="256"/>
  212. <Column id="orddeptnm" type="STRING" size="256"/>
  213. <Column id="orddrnm" type="STRING" size="256"/>
  214. <Column id="usernm" type="STRING" size="256"/>
  215. <Column id="printdt" type="STRING" size="256"/>
  216. </ColumnInfo>
  217. <Rows>
  218. <Row/>
  219. </Rows>
  220. </Dataset>
  221. <Dataset id="ds_init_cmb_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  222. <ColumnInfo>
  223. <Column id="instcd" type="STRING" size="255"/>
  224. <Column id="deptcd" type="STRING" size="255"/>
  225. <Column id="depthngnm" type="STRING" size="255"/>
  226. <Column id="ordclsdeptflag" type="STRING" size="255"/>
  227. <Column id="orddeptkind" type="STRING" size="255"/>
  228. <Column id="supdeptcd" type="STRING" size="255"/>
  229. <Column id="clincdeptdispseq" type="BIGDECIMAL" size="255"/>
  230. </ColumnInfo>
  231. </Dataset>
  232. <Dataset id="ds_cond_cmb_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  233. <ColumnInfo>
  234. <Column id="instcd" type="STRING" size="256"/>
  235. <Column id="basedd" type="STRING" size="256"/>
  236. </ColumnInfo>
  237. <Rows>
  238. <Row/>
  239. </Rows>
  240. </Dataset>
  241. <Dataset id="ds_init_cmb_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  242. <ColumnInfo>
  243. <Column id="usernm" type="STRING" size="256"/>
  244. <Column id="userid" type="STRING" size="256"/>
  245. <Column id="deptcd" type="STRING" size="256"/>
  246. <Column id="userdepthngnm" type="STRING" size="256"/>
  247. </ColumnInfo>
  248. </Dataset>
  249. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  250. <ColumnInfo>
  251. <Column id="ordclsdeptflag" type="STRING" size="256"/>
  252. <Column id="supdeptcd" type="STRING" size="256"/>
  253. <Column id="prcpspecflag" type="STRING" size="256"/>
  254. <Column id="orddd" type="STRING" size="256"/>
  255. <Column id="orddeptcd" type="STRING" size="256"/>
  256. <Column id="MDdeptcd" type="STRING" size="256"/>
  257. <Column id="srchdd" type="STRING" size="256"/>
  258. <Column id="orddrid" type="STRING" size="256"/>
  259. <Column id="menu" type="STRING" size="256"/>
  260. </ColumnInfo>
  261. <Rows>
  262. <Row/>
  263. </Rows>
  264. </Dataset>
  265. <Dataset id="ds_send_grd_outpatrsrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  266. <ColumnInfo>
  267. <Column id="stsview" type="STRING"/>
  268. <Column id="fstelrsrv" type="STRING"/>
  269. <Column id="fsdeptrsrv" type="STRING"/>
  270. <Column id="fsitnrsrv" type="STRING"/>
  271. <Column id="fstdyrsrv" type="STRING"/>
  272. <Column id="fscurntrsrv" type="STRING"/>
  273. <Column id="fscorsrv" type="STRING"/>
  274. <Column id="fscnsltrsrv" type="STRING"/>
  275. <Column id="fsetcrsrv" type="STRING"/>
  276. <Column id="fssltdiagrsrv" type="STRING"/>
  277. <Column id="fsgendiagrsrv" type="STRING"/>
  278. <Column id="fsotpttot" type="STRING"/>
  279. <Column id="sectelrsrv" type="STRING"/>
  280. <Column id="secdeptrsrv" type="STRING"/>
  281. <Column id="sectdyrsrv" type="STRING"/>
  282. <Column id="seccurntrsrv" type="STRING"/>
  283. <Column id="seccorsrv" type="STRING"/>
  284. <Column id="seccnsltrsrv" type="STRING"/>
  285. <Column id="secetcrsrv" type="STRING"/>
  286. <Column id="secsltdiagrsrv" type="STRING"/>
  287. <Column id="secgendiagrsrv" type="STRING"/>
  288. <Column id="secotpttot" type="STRING"/>
  289. <Column id="sltotpt" type="STRING"/>
  290. <Column id="genotpt" type="STRING"/>
  291. <Column id="otpttot" type="STRING"/>
  292. <Column id="sltotptrate" type="STRING"/>
  293. <Column id="genotptrate" type="STRING"/>
  294. <Column id="totrsrv" type="STRING"/>
  295. <Column id="cnclrsrv" type="STRING"/>
  296. <Column id="deptrate" type="STRING"/>
  297. </ColumnInfo>
  298. </Dataset>
  299. </Objects>
  300. <Bind>
  301. <BindItem id="item0" compid="input1" propid="value" datasetid="ds_main_cond" columnid="srchdd"/>
  302. <BindItem id="item1" compid="cmb_orddeptcd" propid="value" datasetid="ds_main_cond" columnid="orddeptcd"/>
  303. <BindItem id="item2" compid="cmb_orddrid" propid="value" datasetid="ds_main_cond" columnid="orddrid"/>
  304. </Bind>
  305. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  306. * System Name : Himed
  307. * Job Name :
  308. * File Name : SSMNO00200_외래환자예약현황.xfdl
  309. * Creator :
  310. * Make Date : 2014-08-20
  311. *
  312. * Description :
  313. *---------------------------------------------------------------------------------------
  314. * Modify Date Modifier Modify Description
  315. *---------------------------------------------------------------------------------------
  316. * 2014-08-20 Converting Program(TF->XP)
  317. *
  318. *---------------------------------------------------------------------------------------
  319. ****************************************************************************************/
  320. //=======================================================================================
  321. // xjs Include
  322. //---------------------------------------------------------------------------------------
  323. include "com_commonxp::comm_main.xjs";
  324. //=======================================================================================
  325. // Function
  326. //---------------------------------------------------------------------------------------
  327. /****************************************************************************************
  328. * Argument :
  329. * Description : 데이터셋 바인드
  330. ****************************************************************************************/
  331. function lf_initDataSet()
  332. {
  333. // cmb_orddeptcd의 INIT Dataset
  334. this.cmb_orddeptcd.innerdataset = "ds_init_cmb_orddeptcd";
  335. this.cmb_orddeptcd.codecolumn = "deptcd";
  336. this.cmb_orddeptcd.datacolumn = "depthngnm";
  337. }
  338. //=======================================================================================
  339. // Event
  340. //---------------------------------------------------------------------------------------
  341. /****************************************************************************************
  342. * Components :
  343. * Components ID : SSMNO00200
  344. * Event : onload
  345. * Argument : 01.obj : Object Event has occurred
  346. * : 02.e : Event Object
  347. * Description : 온로드
  348. ****************************************************************************************/
  349. function SSMNO00200_onload(obj:Form, e:LoadEventInfo)
  350. {
  351. frmf_initForm(obj); // 화면공통
  352. lf_commoduleDataSetShow(); //DataSet 조회;
  353. var currDate = utlf_getCurrentDate();
  354. var instcd = sysf_getUserInfo("dutplceinstcd");
  355. var rslt_ref = "/root/init/orddeptlist";
  356. ds_main_cond.enableevent = false;
  357. ds_main_cond.setColumn(0, "srchdd", currDate);
  358. ds_main_cond.setColumn(0, "orddrid", "");
  359. ds_main_cond.enableevent = true;
  360. var dt = ds_main_cond.getColumn(0, "srchdd");
  361. if( utlf_isNull(instcd) ) {
  362. return;
  363. }
  364. ds_cond_cmb_orddeptcd.enableevent = false;
  365. ds_cond_cmb_orddeptcd.setColumn(0, "instcd", instcd);
  366. ds_cond_cmb_orddeptcd.setColumn(0, "basedd", currDate);
  367. ds_cond_cmb_orddeptcd.enableevent = true;
  368. tranf_submit({
  369. id : "TRZSD00206"
  370. , service : "departmentcodeapp.DepartmentCodeUser"
  371. , method : "reqGetCareOutOrderDepartmentList"
  372. , inds : "req=ds_cond_cmb_orddeptcd"
  373. , outds : "ds_init_cmb_orddeptcd=dept"
  374. , async : false
  375. });
  376. ds_init_cmb_orddeptcd.insertRow(0);
  377. ds_init_cmb_orddeptcd.enableevent = false;
  378. ds_init_cmb_orddeptcd.setColumn(0, "depthngnm", "전 체");
  379. ds_init_cmb_orddeptcd.setColumn(0, "deptcd", "");
  380. ds_init_cmb_orddeptcd.enableevent = true;
  381. lf_initDataSet();
  382. ds_main_cond.enableevent = false;
  383. ds_main_cond.setColumn(0, "orddeptcd", "");
  384. ds_main_cond.enableevent = true;
  385. ds_init_cmb_orddrid.clearData();
  386. ds_init_cmb_orddrid.addRow();
  387. ds_init_cmb_orddrid.enableevent = false;
  388. ds_init_cmb_orddrid.setColumn(0, "usernm", "전 체");
  389. ds_init_cmb_orddrid.setColumn(0, "userid", "");
  390. ds_init_cmb_orddrid.enableevent = true;
  391. this.cmb_orddrid.innerdataset = "ds_init_cmb_orddrid";
  392. this.cmb_orddrid.codecolumn = "userid";
  393. this.cmb_orddrid.datacolumn = "usernm";
  394. ds_main_cond.enableevent = false;
  395. ds_main_cond.setColumn(0, "orddrid", "");
  396. ds_main_cond.enableevent = true;
  397. btn_srch_onclick();
  398. }
  399. /****************************************************************************************
  400. * Components :
  401. * Components ID : btn_print
  402. * Event : onclick
  403. * Argument : 01.obj : Object Event has occurred
  404. * : 02.e : Event Object
  405. * Description : 출력
  406. ****************************************************************************************/
  407. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  408. {
  409. var srchdd = ds_main_cond.getColumn(0, "srchdd");
  410. var currdt = utlf_getCurrentDate()+""+utlf_getCurrentTime();
  411. ds_send_grd_outpatrsrv.copyData(ds_grid_grd_outpatrsrv);
  412. var objDOM = rptf_createDOM(); //DOM 객체 설정
  413. rptf_setNodeListToDOM(objDOM, "root/send/outpatinfo/outpatlist", ds_send_grd_outpatrsrv);
  414. var objParam = new Object();
  415. objParam.xml_data_XML1 = objDOM.documentElement.source;
  416. objParam.srchdd = srchdd.substring(0,4)+"/"+srchdd.substring(4,6)+"/"+srchdd.substring(6,8);
  417. objParam.orddeptnm = cmb_orddeptcd.text;
  418. objParam.orddrnm = cmb_orddrid.text;
  419. objParam.usernm = sysf_getUserInfo("usernm");
  420. objParam.printdt = currdt.substring(0,4)+"/"+currdt.substring(4,6)+"/"+currdt.substring(6,8)+" "+
  421. currdt.substring(8,10)+":"+currdt.substring(10,12)+":"+currdt.substring(12,14) ;
  422. var option = "open=1;save=1;directprint=0;print=1;zoom=0";
  423. rptf_exeReportPreview30(["RPSTO00101"],[objParam], option);
  424. }
  425. /****************************************************************************************
  426. * Components :
  427. * Components ID : btn_srch
  428. * Event : onclick
  429. * Argument : 01.obj : Object Event has occurred
  430. * : 02.e : Event Object
  431. * Description : 조회
  432. ****************************************************************************************/
  433. function btn_srch_onclick(obj:Button, e:ClickEventInfo)
  434. {
  435. input1.updateToDataset();
  436. if ( utlf_isNull(ds_main_cond.getColumn(0, "srchdd")) || ds_main_cond.getColumn(0, "srchdd") < utlf_getCurrentDate() ){
  437. sysf_messageBox("금일이후의 외래환자예약현황을 조회합니다.기간을 ","I007");
  438. return;
  439. }
  440. ds_send_reqdata.clearData();
  441. ds_send_reqdata.addRow();
  442. ds_send_reqdata.enableevent = false;
  443. ds_send_reqdata.setColumn(0, "srchdd", ds_main_cond.getColumn(0, "srchdd") );
  444. ds_send_reqdata.setColumn(0, "menu", "");
  445. if ( !utlf_isNull( ds_main_cond.getColumn(0, "orddeptcd") ) && ds_main_cond.getColumn(0, "orddeptcd") != "%") {
  446. ds_send_reqdata.setColumn(0, "orddeptcd", ds_main_cond.getColumn(0, "orddeptcd"));
  447. }
  448. if ( !utlf_isNull( ds_main_cond.getColumn(0, "orddrid") ) && ds_main_cond.getColumn(0, "orddrid") != "%") {
  449. ds_send_reqdata.setColumn(0, "orddrid", ds_main_cond.getColumn(0, "orddrid"));
  450. }
  451. ds_send_reqdata.enableevent = true;
  452. tranf_submit({
  453. id : "TRSNO00101"
  454. , service : "stsenrapp.StsOutMngt"
  455. , method : "reqGetOutPatlist"
  456. , inds : "req=ds_send_reqdata"
  457. , outds : "ds_grid_grd_outpatrsrv=outpatlist"
  458. , async : false
  459. });
  460. }
  461. /****************************************************************************************
  462. * Components :
  463. * Components ID : btn_excel
  464. * Event : onclick
  465. * Argument : 01.obj : Object Event has occurred
  466. * : 02.e : Event Object
  467. * Description : 엑셀
  468. ****************************************************************************************/
  469. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  470. {
  471. grdf_exportExcel(grd_outpatrsrv, "외래환자예약현황_"+ ds_main_cond.getColumn(0, "srchdd"), "외래환자예약현황_"+ ds_main_cond.getColumn(0, "srchdd"));
  472. }
  473. /****************************************************************************************
  474. * Components :
  475. * Components ID : cmb_orddeptcd
  476. * Event : onitemchanged
  477. * Argument : 01.obj : Object Event has occurred
  478. * : 02.e : Event Object
  479. * Description : 진료과 변경시
  480. ****************************************************************************************/
  481. function cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  482. {
  483. var fRow = ds_init_cmb_orddeptcd.findRow("deptcd", ds_main_cond.getColumn(0, "orddeptcd"));
  484. var sordclsdeptflag = ds_init_cmb_orddeptcd.getColumn(fRow, "ordclsdeptflag"); // 대표/분과/서브 구분
  485. var sorddeptkind = ds_init_cmb_orddeptcd.getColumn(fRow, "orddeptkind"); // 센터/대표 구분
  486. var ssupdeptcd = ds_init_cmb_orddeptcd.getColumn(fRow, "supdeptcd"); // 상위부서코드
  487. var sorddeptflag = "";
  488. if (sorddeptkind == "C") { // 센터이면
  489. sorddeptflag = "C";
  490. } else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
  491. sorddeptflag = "A";
  492. } else { // 그외에 기타과
  493. sorddeptflag = "etc";
  494. }
  495. ds_send_reqdata.clearData();
  496. ds_send_reqdata.addRow();
  497. ds_send_reqdata.enableevent = false;
  498. ds_send_reqdata.setColumn(0, "ordclsdeptflag", sorddeptflag);
  499. ds_send_reqdata.setColumn(0, "supdeptcd", ssupdeptcd);
  500. ds_send_reqdata.setColumn(0, "prcpspecflag", "Y");
  501. ds_send_reqdata.setColumn(0, "orddd", ds_main_cond.getColumn(0, "srchdd"));
  502. ds_send_reqdata.setColumn(0, "orddeptcd", ds_main_cond.getColumn(0, "orddeptcd"));
  503. ds_send_reqdata.enableevent = true;
  504. // 의사리스트 조회
  505. ds_init_cmb_orddrid.clearData();
  506. tranf_submit({
  507. id : "TRMNO00104"
  508. , service : "outcareapp.OutCareMngt"
  509. , method : "reqGetDrId"
  510. , inds : "reqdrid=ds_send_reqdata"
  511. , outds : "ds_init_cmb_orddrid=orddr"
  512. , async : false
  513. });
  514. // cmb_orddrid의 INIT Dataset
  515. this.cmb_orddrid.innerdataset = "ds_init_cmb_orddrid";
  516. this.cmb_orddrid.codecolumn = "userid";
  517. this.cmb_orddrid.datacolumn = "usernm";
  518. cmb_orddrid.index = 1;
  519. cmb_orddrid.index = 0;
  520. }
  521. ]]></Script>
  522. </Form>
  523. </FDL>