SSMNO00100_외래환자수.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SSMNO00100" position="absolute 0 0 1212 800" titletext="외래환자수" onload="SSMNO00100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" scrollbars="autoboth" position="absolute 0 26 1212 770" style="" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Grid id="grd_outpatlist" binddataset="ds_main_outpatinfo_outpatlist" position="absolute 0 61 1212 732" style="" anchor="all" cellsizingtype="both" cellmovingtype="col">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="124" band="left"/>
  15. <Column size="45"/>
  16. <Column size="48"/>
  17. <Column size="48"/>
  18. <Column size="48"/>
  19. <Column size="48"/>
  20. <Column size="48"/>
  21. <Column size="48"/>
  22. <Column size="48"/>
  23. <Column size="48"/>
  24. <Column size="40"/>
  25. <Column size="40"/>
  26. <Column size="45"/>
  27. <Column size="54"/>
  28. <Column size="48"/>
  29. <Column size="48"/>
  30. <Column size="48"/>
  31. <Column size="48"/>
  32. <Column size="48"/>
  33. <Column size="48"/>
  34. <Column size="48"/>
  35. <Column size="48"/>
  36. <Column size="48"/>
  37. <Column size="48"/>
  38. <Column size="48"/>
  39. <Column size="58"/>
  40. <Column size="48"/>
  41. <Column size="48"/>
  42. <Column size="48"/>
  43. <Column size="48"/>
  44. <Column size="48"/>
  45. <Column size="48"/>
  46. <Column size="48"/>
  47. <Column size="48"/>
  48. <Column size="48"/>
  49. </Columns>
  50. <Rows>
  51. <Row size="25" band="head"/>
  52. <Row size="25" band="head"/>
  53. <Row size="25" band="head"/>
  54. <Row size="25"/>
  55. </Rows>
  56. <Band id="head">
  57. <Cell rowspan="3" taborder="undefined"/>
  58. <Cell col="1" colspan="13" text="초진" taborder="undefined"/>
  59. <Cell col="14" colspan="12" text="재진" taborder="undefined"/>
  60. <Cell col="26" colspan="3" text="외래환자수" taborder="undefined"/>
  61. <Cell col="29" rowspan="3" text="특진율" taborder="undefined"/>
  62. <Cell col="30" rowspan="3" text="초진율" taborder="undefined"/>
  63. <Cell col="31" rowspan="3" text="진료&#10;예약" taborder="undefined"/>
  64. <Cell col="32" rowspan="3" text="진료&#10;반환" taborder="undefined"/>
  65. <Cell col="33" rowspan="3" text="부도율" taborder="undefined"/>
  66. <Cell col="34" rowspan="3" text="진료&#10;과별&#10;비율" taborder="undefined"/>
  67. <Cell col="35" text="caption1"/>
  68. <Cell col="36" text="caption3"/>
  69. <Cell col="37" text="caption2"/>
  70. <Cell col="38"/>
  71. <Cell col="39" text="전화&#10;예약"/>
  72. <Cell col="40" text="과예약"/>
  73. <Cell col="41" text=" 인터넷&#10;예약"/>
  74. <Cell col="42" text="당일&#10;접수"/>
  75. <Cell col="43" text="당일&#10;예약"/>
  76. <Cell col="44" text="협력&#10;예약"/>
  77. <Cell col="45" text="의뢰"/>
  78. <Cell col="46" text="기타"/>
  79. <Cell col="47" text="부도"/>
  80. <Cell col="48" text="외래환자수"/>
  81. <Cell col="49" text="외래환자수"/>
  82. <Cell col="50" text="외래환자수"/>
  83. <Cell col="51" text="초진&#10;부도율"/>
  84. <Cell col="52" text="전화&#10;예약"/>
  85. <Cell col="53" text="과예약"/>
  86. <Cell col="54" text="당일&#10;접수"/>
  87. <Cell col="55" text="당일&#10;예약"/>
  88. <Cell col="56" text="협력&#10;예약"/>
  89. <Cell col="57" text="의뢰"/>
  90. <Cell col="58" text="기타"/>
  91. <Cell col="59" text="부도"/>
  92. <Cell col="60" text="외래환자수"/>
  93. <Cell col="61" text="외래환자수"/>
  94. <Cell col="62" text="외래환자수"/>
  95. <Cell col="63" text=" 재진 부도율"/>
  96. <Cell col="64" text="특진"/>
  97. <Cell col="65" text="일반"/>
  98. <Cell col="66" text="합계"/>
  99. <Cell col="67" text="특진율"/>
  100. <Cell col="68" text="초진율"/>
  101. <Cell col="69" text="진료&#10;예약"/>
  102. <Cell col="70" text="진료&#10;반환"/>
  103. <Cell col="71" text="부도율"/>
  104. <Cell col="72" text="진료&#10;과별&#10;비율"/>
  105. <Cell col="73" text="caption1"/>
  106. <Cell col="74" text="caption3"/>
  107. <Cell col="75" text="caption2"/>
  108. <Cell col="76"/>
  109. <Cell col="77" text="전화&#10;예약"/>
  110. <Cell col="78" text="과예약"/>
  111. <Cell col="79" text=" 인터넷&#10;예약"/>
  112. <Cell col="80" text="당일&#10;접수"/>
  113. <Cell col="81" text="당일&#10;예약"/>
  114. <Cell col="82" text="협력&#10;예약"/>
  115. <Cell col="83" text="의뢰"/>
  116. <Cell col="84" text="기타"/>
  117. <Cell col="85" text="부도"/>
  118. <Cell col="86" text="특진"/>
  119. <Cell col="87" text="일반"/>
  120. <Cell col="88" text="합계"/>
  121. <Cell col="89" text="초진&#10;부도율"/>
  122. <Cell col="90" text="전화&#10;예약"/>
  123. <Cell col="91" text="과예약"/>
  124. <Cell col="92" text="당일&#10;접수"/>
  125. <Cell col="93" text="당일&#10;예약"/>
  126. <Cell col="94" text="협력&#10;예약"/>
  127. <Cell col="95" text="의뢰"/>
  128. <Cell col="96" text="기타"/>
  129. <Cell col="97" text="부도"/>
  130. <Cell col="98" text="특진"/>
  131. <Cell col="99" text="일반"/>
  132. <Cell col="100" text="합계"/>
  133. <Cell col="101" text=" 재진 부도율"/>
  134. <Cell col="102" text="특진"/>
  135. <Cell col="103" text="일반"/>
  136. <Cell col="104" text="합계"/>
  137. <Cell col="105" text="특진율"/>
  138. <Cell col="106" text="초진율"/>
  139. <Cell col="107" text="진료&#10;예약"/>
  140. <Cell col="108" text="진료&#10;반환"/>
  141. <Cell col="109" text="부도율"/>
  142. <Cell col="110" text="진료&#10;과별&#10;비율"/>
  143. <Cell col="111" text="caption1"/>
  144. <Cell col="112" text="caption3"/>
  145. <Cell col="113" text="caption2"/>
  146. <Cell row="1" col="1" rowspan="2" text="전화&#10;예약" taborder="undefined"/>
  147. <Cell row="1" col="2" rowspan="2" text="과예약" taborder="undefined"/>
  148. <Cell row="1" col="3" rowspan="2" text=" 인터넷&#10;예약" taborder="undefined"/>
  149. <Cell row="1" col="4" rowspan="2" text="당일&#10;접수" taborder="undefined"/>
  150. <Cell row="1" col="5" rowspan="2" text="당일&#10;예약" taborder="undefined"/>
  151. <Cell row="1" col="6" rowspan="2" text="협력&#10;예약" taborder="undefined"/>
  152. <Cell row="1" col="7" rowspan="2" text="의뢰" taborder="undefined"/>
  153. <Cell row="1" col="8" rowspan="2" text="기타" taborder="undefined"/>
  154. <Cell row="1" col="9" rowspan="2" text="부도" taborder="undefined"/>
  155. <Cell row="1" col="10" colspan="3" text="외래환자수" taborder="undefined"/>
  156. <Cell row="1" col="13" rowspan="2" text="초진&#10;부도율" taborder="undefined"/>
  157. <Cell row="1" col="14" rowspan="2" text="전화&#10;예약" taborder="undefined"/>
  158. <Cell row="1" col="15" rowspan="2" text="과예약" taborder="undefined"/>
  159. <Cell row="1" col="16" rowspan="2" text="당일&#10;접수" taborder="undefined"/>
  160. <Cell row="1" col="17" rowspan="2" text="당일&#10;예약" taborder="undefined"/>
  161. <Cell row="1" col="18" rowspan="2" text="협력&#10;예약" taborder="undefined"/>
  162. <Cell row="1" col="19" rowspan="2" text="의뢰" taborder="undefined"/>
  163. <Cell row="1" col="20" rowspan="2" text="기타" taborder="undefined"/>
  164. <Cell row="1" col="21" rowspan="2" text="부도" taborder="undefined"/>
  165. <Cell row="1" col="22" colspan="3" text="외래환자수" taborder="undefined"/>
  166. <Cell row="1" col="25" rowspan="2" text=" 재진 부도율" taborder="undefined"/>
  167. <Cell row="1" col="26" rowspan="2" text="특진" taborder="undefined"/>
  168. <Cell row="1" col="27" rowspan="2" text="일반" taborder="undefined"/>
  169. <Cell row="1" col="28" rowspan="2" text="합계" taborder="undefined"/>
  170. <Cell row="1" col="35" text="caption1"/>
  171. <Cell row="1" col="36" text="caption3"/>
  172. <Cell row="1" col="37" text="caption2"/>
  173. <Cell row="2" col="10" text="특진"/>
  174. <Cell row="2" col="11" text="일반"/>
  175. <Cell row="2" col="12" text="합계"/>
  176. <Cell row="2" col="22" text="특진"/>
  177. <Cell row="2" col="23" text="일반"/>
  178. <Cell row="2" col="24" text="합계"/>
  179. <Cell row="2" col="35" text="caption1"/>
  180. <Cell row="2" col="36" text="caption3"/>
  181. <Cell row="2" col="37" text="caption2"/>
  182. </Band>
  183. <Band id="body">
  184. <Cell style="align:left middle;" text="bind:stsview"/>
  185. <Cell col="1" displaytype="number" text="bind:fstelrsrv"/>
  186. <Cell col="2" displaytype="number" text="bind:fsdeptrsrv"/>
  187. <Cell col="3" displaytype="number" text="bind:fsitnrsrv"/>
  188. <Cell col="4" displaytype="number" text="bind:fstdyrsrv"/>
  189. <Cell col="5" displaytype="number" text="bind:fscurntrsrv"/>
  190. <Cell col="6" displaytype="number" text="bind:fscorsrv"/>
  191. <Cell col="7" displaytype="number" text="bind:fscnsltrsrv"/>
  192. <Cell col="8" displaytype="number" text="bind:fsetcrsrv"/>
  193. <Cell col="9" displaytype="number" text="bind:fsabsntrsrv"/>
  194. <Cell col="10" displaytype="number" text="bind:fssltdiagrsrv"/>
  195. <Cell col="11" displaytype="number" text="bind:fsgendiagrsrv"/>
  196. <Cell col="12" displaytype="number" text="bind:fsotpttot"/>
  197. <Cell col="13" displaytype="number" text="bind:fsabsntrsrvrate"/>
  198. <Cell col="14" displaytype="number" text="bind:sectelrsrv"/>
  199. <Cell col="15" displaytype="number" text="bind:secdeptrsrv"/>
  200. <Cell col="16" displaytype="number" text="bind:sectdyrsrv"/>
  201. <Cell col="17" displaytype="number" text="bind:seccurntrsrv"/>
  202. <Cell col="18" displaytype="number" text="bind:seccorsrv"/>
  203. <Cell col="19" displaytype="number" text="bind:seccnsltrsrv"/>
  204. <Cell col="20" displaytype="number" text="bind:secetcrsrv"/>
  205. <Cell col="21" displaytype="number" text="bind:secabsntrsrv"/>
  206. <Cell col="22" displaytype="number" text="bind:secsltdiagrsrv"/>
  207. <Cell col="23" displaytype="number" text="bind:secgendiagrsrv"/>
  208. <Cell col="24" displaytype="number" text="bind:secotpttot"/>
  209. <Cell col="25" displaytype="number" text="bind:secabsntrsrvrate"/>
  210. <Cell col="26" displaytype="number" text="bind:sltotpt"/>
  211. <Cell col="27" displaytype="number" text="bind:genotpt"/>
  212. <Cell col="28" displaytype="number" text="bind:otpttot"/>
  213. <Cell col="29" displaytype="number" text="bind:sltotptrate"/>
  214. <Cell col="30" displaytype="number" text="bind:genotptrate"/>
  215. <Cell col="31" displaytype="number" text="bind:totrsrv"/>
  216. <Cell col="32" displaytype="number" text="bind:cnclrsrv"/>
  217. <Cell col="33" displaytype="number" text="bind:absntrsrvrate"/>
  218. <Cell col="34" displaytype="number" text="bind:deptrate"/>
  219. </Band>
  220. </Format>
  221. </Formats>
  222. </Grid>
  223. <Div id="grp_sea" position="absolute 0 0 1212 35" style="align: top;" class="div_SA" anchor="left top right">
  224. <Layouts>
  225. <Layout>
  226. <Button id="btn_print" class="btn6" position="absolute 1147 7 1203 29" text="출력" onclick="group3_grp_sea_btn_print_onclick" anchor="top right"/>
  227. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1021 7 1024 29" style="" anchor="top right"/>
  228. <Static id="caption3" class="search_name" position="absolute 25 10 90 27" text="기간 :" anchor="left top"/>
  229. <Combo innerdataset="ds_init_orddr_orddr" datacolumn="usernm" codecolumn="userid" columncount="-1" rowcount="-1" id="cmb_orddrid" class="combo_search" position="absolute 554 10 660 29" anchor="left top"/>
  230. <Static id="caption4" class="search_name" position="absolute 460 10 564 27" text="진료의별 :" anchor="left top"/>
  231. <Static id="caption8" class="search_name" position="absolute 215 10 319 27" text="진료과별 :" anchor="left top"/>
  232. <Combo innerdataset="ds_init_orddeptlist_dept" datacolumn="depthngnm" codecolumn="deptcd" columncount="-1" rowcount="-1" id="cmb_orddeptcd" class="combo_search" position="absolute 309 10 425 29" style="" onitemchanged="group3_grp_sea_cmb_orddeptcd_onitemchanged" anchor="left top"/>
  233. <Calendar id="input1" class="input_s_essential" position="absolute 90 10 185 29" style="" anchor="left top"/>
  234. <Button id="btn_srch" class="btn1" position="absolute 1031 7 1087 29" text="조회" onclick="group3_grp_sea_btn_srch_onclick" anchor="top right"/>
  235. <Button id="btn_excel" class="btn7" position="absolute 1089 7 1145 29" text="엑셀" onclick="group3_grp_sea_btn_excel_onclick" anchor="top right"/>
  236. </Layout>
  237. </Layouts>
  238. </Div>
  239. </Layout>
  240. </Layouts>
  241. </Div>
  242. <Static id="caption1" class="tit_2" position="absolute 0 71 156 85" text="외래환자수"/>
  243. <Static id="caption2" position="absolute 0 760 1212 795" style="font:Dotum,9,bold;" text="*** 기타: 물리치료, 인공신장실, 주사, F_U, 치료방사선&#10;*** 과예약: 외래, 병동, 응급, DSC, 특수주사실 포함한 예약건수" anchor="left right bottom"/>
  244. <Static id="cap_title" text="외래환자수" class="tit_1" position="absolute 0 0 181 26"/>
  245. </Layout>
  246. </Layouts>
  247. <Objects>
  248. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  249. <ColumnInfo>
  250. <Column id="orddeptlist" type="STRING" size="256"/>
  251. <Column id="orddr" type="STRING" size="256"/>
  252. </ColumnInfo>
  253. <Rows>
  254. <Row>
  255. <Col id="orddeptlist"/>
  256. <Col id="orddr"/>
  257. </Row>
  258. </Rows>
  259. </Dataset>
  260. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  261. <ColumnInfo>
  262. <Column id="outpatinfo" type="STRING" size="256"/>
  263. </ColumnInfo>
  264. </Dataset>
  265. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  266. <ColumnInfo>
  267. <Column id="srchdd" type="STRING" size="256"/>
  268. <Column id="orddeptcd" type="STRING" size="256"/>
  269. <Column id="orddrid" type="STRING" size="256"/>
  270. </ColumnInfo>
  271. <Rows>
  272. <Row>
  273. <Col id="srchdd"/>
  274. <Col id="orddeptcd"/>
  275. <Col id="orddrid"/>
  276. </Row>
  277. </Rows>
  278. </Dataset>
  279. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  280. <ColumnInfo>
  281. <Column id="reqdata" type="STRING" size="256"/>
  282. <Column id="outpatinfo" type="STRING" size="256"/>
  283. </ColumnInfo>
  284. </Dataset>
  285. <Dataset id="ds_main_outpatinfo_outpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  286. <Dataset id="ds_init_orddeptlist_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  287. <Dataset id="ds_init_orddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  288. <Dataset id="ds_init_orddr_orddr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  289. <ColumnInfo>
  290. <Column id="userid" type="STRING" size="256"/>
  291. <Column id="usernm" type="STRING" size="256"/>
  292. </ColumnInfo>
  293. </Dataset>
  294. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  295. <Dataset id="ds_send_outpatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  296. <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  297. </Objects>
  298. <Bind>
  299. <BindItem id="item0" compid="group3.grp_sea.cmb_orddrid" propid="value" datasetid="ds_main_cond" columnid="orddrid"/>
  300. <BindItem id="item1" compid="group3.grp_sea.cmb_orddeptcd" propid="value" datasetid="ds_main_cond" columnid="orddeptcd"/>
  301. <BindItem id="item2" compid="group3.grp_sea.input1" propid="value" datasetid="ds_main_cond" columnid="srchdd"/>
  302. </Bind>
  303. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  304. * System Name :
  305. * Job Name :
  306. * Creator :
  307. * Make Date : 2016-05-24
  308. * Description :
  309. *---------------------------------------------------------------------------------------
  310. * Modify Date Modifier Modify Description
  311. *---------------------------------------------------------------------------------------
  312. * 2016-05-24 Live Converter TF->XP
  313. *
  314. *---------------------------------------------------------------------------------------
  315. ****************************************************************************************/
  316. include "com_commonxp::comm_main.xjs";
  317. var menuParam = String(frmf_getMenuParam());
  318. //스크립트 끝
  319. function SSMNO00100_onload(obj:Form, e:LoadEventInfo) {
  320. frmf_initForm(obj);
  321. grdf_initGrid(group3.grd_outpatlist);
  322. //grdf_setGridSort(grd_XXX);
  323. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  324. //fInit();
  325. var currDate = utlf_getCurrentDate();
  326. ds_main_cond.setColumn( 0, "srchdd", (currDate.toDate().getAddDate(-1, "D").getDateFormat()) );
  327. var instcd = sysf_getUserInfo("dutplceinstcd");
  328. var rslt_ref = "ds_init_orddeptlist_dept";
  329. //ds_main_cond.setColumn( 0, "orddeptcd", "%");
  330. ds_main_cond.setColumn( 0, "orddrid", "");
  331. var dt = ds_main_cond.getColumn(0, "srchdd");
  332. appf_getCareOutOrderDepartmentList(instcd, dt, rslt_ref);
  333. frmf_addComboItem("group3.grp_sea.cmb_orddeptcd","전체","","above");
  334. frmf_addComboItem("group3.grp_sea.cmb_orddrid","전체","","above");
  335. group3.grp_sea.btn_srch.click();
  336. }
  337. function group3_grp_sea_btn_print_onclick(obj:Button, e:ClickEventInfo) {
  338. var srchdd = ds_main_cond.getColumn(0, "srchdd");
  339. var currdt = utlf_getCurrentDate()+""+utlf_getCurrentTime();
  340. ds_send_outpatinfo.copyData(ds_main_outpatinfo_outpatlist);
  341. var objDOM = rptf_createDOM(); //DOM 객체 설정
  342. rptf_setNodeListToDOM(objDOM, "root/send/outpatinfo/outpatlist", ds_send_outpatinfo);
  343. var objParam = new Object();
  344. objParam.xml_data_XML1 = objDOM.documentElement.source;
  345. objParam.srchdd = srchdd.substring(0,4)+"/"+srchdd.substring(4,6)+"/"+srchdd.substring(6,8);
  346. objParam.orddeptnm = group3.grp_sea.cmb_orddeptcd.text;
  347. objParam.orddrnm = group3.grp_sea.cmb_orddrid.text;
  348. objParam.usernm = sysf_getUserInfo("usernm");
  349. objParam.printdt = currdt.substring(0,4)+"/"+currdt.substring(4,6)+"/"+currdt.substring(6,8)+" "+
  350. currdt.substring(8,10)+":"+currdt.substring(10,12)+":"+currdt.substring(12,14) ;
  351. var option = //"open=1;save=1;directprint=0;print=1;zoom=0";
  352. rptf_exeReportPreview30(["RPSTO00100"],[objParam], option);
  353. }
  354. function group3_grp_sea_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  355. var sordclsdeptflag = ds_init_orddeptlist_dept.lookupExpr("deptcd == '"+obj.value+"'" , "ordclsdeptflag"); // 대표_분과_서브 구분
  356. var sorddeptkind = ds_init_orddeptlist_dept.lookupExpr("deptcd == '"+obj.value+"'" , "orddeptkind"); // 센터_대표 구분
  357. var ssupdeptcd = ds_init_orddeptlist_dept.lookupExpr("deptcd == '"+obj.value+"'" , "supdeptcd"); // 상위부서코드
  358. var sorddeptflag = "";
  359. if (sorddeptkind == "C") { // 센터이면
  360. sorddeptflag = "C";
  361. } else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
  362. sorddeptflag = "A";
  363. } else { // 그외에 기타과
  364. sorddeptflag = "etc";
  365. }
  366. dsf_makeValue( ds_send_reqdata, "ordclsdeptflag", "string", sorddeptflag);
  367. dsf_makeValue( ds_send_reqdata, "supdeptcd", "string", ssupdeptcd);
  368. dsf_makeValue( ds_send_reqdata, "prcpspecflag", "string", "Y");
  369. dsf_makeValue( ds_send_reqdata, "orddd", "string", ds_main_cond.getColumn(0, "srchdd"));
  370. dsf_makeValue( ds_send_reqdata, "orddeptcd", "string", ds_main_cond.getColumn(0, "orddeptcd"));
  371. var oParam = {};
  372. oParam.id = "TRMNO00104";
  373. oParam.service = "outcareapp.OutCareMngt";
  374. oParam.method = "reqGetDrId";
  375. oParam.inds = "reqdrid=ds_send_reqdata";
  376. oParam.outds = "ds_init_orddr_orddr=orddr";
  377. oParam.async = false;
  378. //oParam.callback = "cf_TRMNO00104";
  379. tranf_submit(oParam);
  380. frmf_addComboItem("group3.grp_sea.cmb_orddrid");
  381. }
  382. function group3_grp_sea_btn_srch_onclick(obj:Button, e:ClickEventInfo) {
  383. if ( utlf_isNull(ds_main_cond.getColumn(0, "srchdd")) || ds_main_cond.getColumn(0, "srchdd") >= utlf_getCurrentDate() ){
  384. sysf_messageBox("과거의 외래환자수를 조회합니다.기간을 ","I007");//확인하십시오
  385. return;
  386. }
  387. ds_send_reqdata.clearData();
  388. dsf_makeValue( ds_send_reqdata, "srchdd", "string", ds_main_cond.getColumn(0, "srchdd") );
  389. dsf_makeValue( ds_send_reqdata, "menu", "string", "SUM");
  390. if ( !utlf_isNull( ds_main_cond.getColumn(0, "orddeptcd") ) && ds_main_cond.getColumn(0, "orddeptcd") != "%") {
  391. dsf_makeValue( ds_send_reqdata, "orddeptcd", "string", ds_main_cond.getColumn(0, "orddeptcd"));
  392. }
  393. if ( !utlf_isNull( ds_main_cond.getColumn(0, "orddrid") ) && ds_main_cond.getColumn(0, "orddrid") != "%") {
  394. dsf_makeValue( ds_send_reqdata, "orddrid", "string", ds_main_cond.getColumn(0, "orddrid"));
  395. }
  396. var oParam = {};
  397. oParam.id = "TRSNO00101";
  398. oParam.service = "stsenrapp.StsOutMngt";
  399. oParam.method = "reqGetOutPatlist";
  400. oParam.inds = "req=ds_send_reqdata";
  401. oParam.outds = "ds_main_outpatinfo_outpatlist=outpatlist";
  402. oParam.async = false;
  403. //oParam.callback = "cf_TRSNO00101";
  404. tranf_submit(oParam);
  405. }
  406. function group3_grp_sea_btn_excel_onclick(obj:Button, e:ClickEventInfo) {
  407. if (ds_main_outpatinfo_outpatlist.rowcount > 0) {
  408. grdf_exportExcel(group3.grd_outpatlist, caption1.text , "see");
  409. }else{
  410. sysf_messageBox("엑셀저장할 내역이", "I004");
  411. }
  412. }
  413. ]]></Script>
  414. </Form>
  415. </FDL>