SMASI00800_제한항생제사용환자조회.xfdl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMASI00800" position="absolute 0 0 1200 790" titletext="제한항생제사용환자조회" oninit="SMASI00800_oninit" onload="SMASI00800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 23" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="제한항생제 사용환자조회" position="absolute 0 0 183 24" id="caption6" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 13 1195 757" id="grp_biz" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout>
  17. <Div position="absolute 0 11 1194 71" align="align:center top;" id="grp_sea" class="div_SA">
  18. <Layouts>
  19. <Layout>
  20. <Shape position="absolute 1104 7 1110 52" linetype="vertical" id="line13" class="line_4"/>
  21. <Static text="진료과 :" position="absolute 700 8 773 25" id="caption3" class="search_name"/>
  22. <Static text="~" position="absolute 297 9 310 26" id="caption5" class="search_no_b"/>
  23. <Static text="등록번호 :" position="absolute 449 34 528 51" id="caption9" class="search_name"/>
  24. <Static text="진행상태 :" position="absolute 448 8 519 25" id="caption1" class="search_name"/>
  25. <Static text="환자명 :" position="absolute 15 34 84 51" id="caption7" class="search_name"/>
  26. <Combo position="absolute 85 9 185 28" id="cmb_termflag" class="combo_s_essential" codecolumn="codecolumn" datacolumn="datacolumn">
  27. <Dataset id="innerdataset">
  28. <ColumnInfo>
  29. <Column id="codecolumn"/>
  30. <Column id="datacolumn"/>
  31. </ColumnInfo>
  32. <Rows>
  33. <Row>
  34. <Col id="codecolumn">P</Col>
  35. <Col id="datacolumn">처방일</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">A</Col>
  39. <Col id="datacolumn">승인일</Col>
  40. </Row>
  41. </Rows>
  42. </Dataset>
  43. </Combo>
  44. <Static text="기 간 :" position="absolute 15 9 80 26" id="cap_termflag" class="search_name"/>
  45. <Calendar position="absolute 193 9 293 28" id="ipt_fromdd" class="input_s_essential" autoselect="true"/>
  46. <Calendar position="absolute 310 9 410 28" id="ipt_todd" class="input_s_essential" autoselect="true"/>
  47. <Combo position="absolute 790 7 910 26" id="cmb_orddeptcd" class="combo_search" innerdataset="@ds_init_deptlist_dept" datacolumn="depthngnm" codecolumn="deptcd"/>
  48. <Combo position="absolute 529 8 629 27" id="cmb_prcsstat" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn">
  49. <Dataset id="innerdataset">
  50. <ColumnInfo>
  51. <Column id="codecolumn"/>
  52. <Column id="datacolumn"/>
  53. </ColumnInfo>
  54. <Rows>
  55. <Row>
  56. <Col id="codecolumn">
  57. </Col>
  58. <Col id="datacolumn">- 전 체 -</Col>
  59. </Row>
  60. <Row>
  61. <Col id="codecolumn">0</Col>
  62. <Col id="datacolumn">미확인</Col>
  63. </Row>
  64. <Row>
  65. <Col id="codecolumn">1</Col>
  66. <Col id="datacolumn">승인</Col>
  67. </Row>
  68. <Row>
  69. <Col id="codecolumn">2</Col>
  70. <Col id="datacolumn">비승인</Col>
  71. </Row>
  72. </Rows>
  73. </Dataset>
  74. </Combo>
  75. <Edit position="absolute 529 34 629 53" id="ipt_pid" class="input_search" autoselect="true" onkillfocus="grp_biz_grp_sea_ipt_pid_onkillfocus" onkeydown="grp_biz_grp_sea_ipt_pid_onkeydown"/>
  76. <Edit position="absolute 85 34 185 53" id="ipt_patnm" class="input_search" enable="false" autoselect="true"/>
  77. <Button position="absolute 1123 20 1179 42" id="btn_search" class="btn1" text="조회" onclick="grp_biz_grp_sea_btn_search_onclick"/>
  78. <Button position="absolute 193 35 209 51" id="btn_prcpclsnm" class="icon_search" text="" onclick="grp_biz_grp_sea_btn_prcpclsnm_onclick"/>
  79. <Static text="제한항생제 :" position="absolute 700 34 789 51" id="caption2" class="search_name"/>
  80. <Combo position="absolute 790 33 1065 52" id="cmb_limantibio" innerdataset="@ds_init_list_limantibio" datacolumn="hngnm" codecolumn="prcpcd"/>
  81. </Layout>
  82. </Layouts>
  83. </Div>
  84. <Shape position="absolute 0 96 1195 102" linetype="horizontal" id="line2" class="line_10"/>
  85. <Grid position="absolute 0 101 1194 742" id="grd_limantibiouspatref" binddataset="ds_main_limantibiouspatrefinfo_limantibiouspatreflist" oncelldblclick="grp_biz_grd_limantibiouspatref_oncelldblclick">
  86. <Formats>
  87. <Format id="default">
  88. <Columns>
  89. <Column size="20" band="left"/>
  90. <Column size="0"/>
  91. <Column size="70"/>
  92. <Column size="70"/>
  93. <Column size="70"/>
  94. <Column size="70"/>
  95. <Column size="50"/>
  96. <Column size="50"/>
  97. <Column size="100"/>
  98. <Column size="200"/>
  99. <Column size="100"/>
  100. <Column size="0"/>
  101. <Column size="200"/>
  102. <Column size="80"/>
  103. <Column size="80"/>
  104. <Column size="60"/>
  105. <Column size="200"/>
  106. <Column size="0"/>
  107. <Column size="0"/>
  108. <Column size="0"/>
  109. <Column size="0"/>
  110. <Column size="0"/>
  111. <Column size="0"/>
  112. </Columns>
  113. <Rows>
  114. <Row size="24" band="head"/>
  115. <Row size="24"/>
  116. </Rows>
  117. <Band id="head">
  118. <Cell/>
  119. <Cell col="1" text="진행상태"/>
  120. <Cell col="2" text="의뢰일시"/>
  121. <Cell col="3" text="의뢰의사"/>
  122. <Cell col="4" text="등록번호"/>
  123. <Cell col="5" text="환자명"/>
  124. <Cell col="6" text="나이"/>
  125. <Cell col="7" text="성별"/>
  126. <Cell col="8" text="진료과"/>
  127. <Cell col="9" text="상병명"/>
  128. <Cell col="10" text="처방명"/>
  129. <Cell col="11" text="항생제코드"/>
  130. <Cell col="12" text="항생제명"/>
  131. <Cell col="13" text="시작일자"/>
  132. <Cell col="14" text="종료일자"/>
  133. <Cell col="15" text="승인상태"/>
  134. <Cell col="16" text="승인/거부 Comment"/>
  135. <Cell col="17" text="cretno"/>
  136. <Cell col="18" text="instcd"/>
  137. <Cell col="19" text="seqno"/>
  138. <Cell col="20" text="orddd"/>
  139. <Cell col="21" text="indd"/>
  140. <Cell col="22" text="ioflag"/>
  141. </Band>
  142. <Band id="body">
  143. <Cell celltype="head" expr="expr:currow + 1"/>
  144. <Cell col="1" text="bind:stat"/>
  145. <Cell col="2" displaytype="date" style="align:left;" text="bind:agndt" calendardisplaynulltype="none"/>
  146. <Cell col="3" style="align:left;" text="bind:agndr"/>
  147. <Cell col="4" style="align:left;" text="bind:pid"/>
  148. <Cell col="5" style="align:left;" text="bind:patnm"/>
  149. <Cell col="6" style="align:left;" text="bind:age"/>
  150. <Cell col="7" style="align:left;" text="bind:sex"/>
  151. <Cell col="8" style="align:left;" text="bind:orddeptcd"/>
  152. <Cell col="9" style="align:left;" text="bind:snwnm"/>
  153. <Cell col="10" style="align:left;" text="bind:prcpnm"/>
  154. <Cell col="11" style="align:left;" text="bind:antibiocd"/>
  155. <Cell col="12" style="align:left;" text="bind:antibionm"/>
  156. <Cell col="13" displaytype="date" style="align:left;" text="bind:fromdd" calendardisplaynulltype="none"/>
  157. <Cell col="14" displaytype="date" style="align:left;" text="bind:todd" calendardisplaynulltype="none"/>
  158. <Cell col="15" style="align:left;" text="bind:aprvstat"/>
  159. <Cell col="16" style="align:left;" text="bind:aprvrejtcmt"/>
  160. <Cell col="17" text="bind:cretno"/>
  161. <Cell col="18" text="bind:instcd"/>
  162. <Cell col="19" text="bind:seqno"/>
  163. <Cell col="20" text="bind:orddd"/>
  164. <Cell col="21" text="bind:indd"/>
  165. <Cell col="22" text="bind:ioflag"/>
  166. </Band>
  167. </Format>
  168. </Formats>
  169. </Grid>
  170. <Static text="제한항생제 사용환자" position="absolute 0 80 178 96" id="caption25" class="tit_2"/>
  171. <Button position="absolute 1151 75 1193 94" id="btn_excel" class="btn2" text="엑셀" onclick="grp_biz_btn_excel_onclick"/>
  172. </Layout>
  173. </Layouts>
  174. </Div>
  175. <Div position="absolute 0 757 1195 784" id="grp_btn">
  176. <Layouts>
  177. <Layout>
  178. <Button position="absolute 0 3 56 25" id="btn_print" class="btn6" text="출력"/>
  179. <Button position="absolute 1120 3 1188 25" id="btn_init" class="btn4" text="초기화" onclick="grp_btn_btn_init_onclick"/>
  180. <Button position="absolute 57 3 161 25" id="btn_sytsrecref" class="btn3" text="통합기록조회" onclick="grp_btn_btn_sytsrecref_onclick"/>
  181. </Layout>
  182. </Layouts>
  183. </Div>
  184. </Layout>
  185. </Layouts>
  186. <Objects>
  187. <Dataset id="ds_init_deptlist_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  188. <ColumnInfo>
  189. <Column id="depthngnm" type="STRING"/>
  190. <Column id="deptcd" type="STRING"/>
  191. </ColumnInfo>
  192. </Dataset>
  193. <Dataset id="ds_init_list_limantibio" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  194. <ColumnInfo>
  195. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  196. <Column id="hngnm" type="STRING" size="256" sumtext="제한항생제명"/>
  197. </ColumnInfo>
  198. </Dataset>
  199. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="termflag" type="STRING" size="256" sumtext="기간선택"/>
  202. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  203. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  204. <Column id="prcsstat" type="STRING" size="256" sumtext="진행상태"/>
  205. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  206. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  207. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  208. <Column id="limantibio" type="STRING" size="256" sumtext="제한항생제종류"/>
  209. </ColumnInfo>
  210. <Rows>
  211. <Row/>
  212. </Rows>
  213. </Dataset>
  214. <Dataset id="ds_main_limantibiouspatrefinfo_limantibiouspatreflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  215. <ColumnInfo>
  216. <Column id="stat" type="STRING" size="256" sumtext="상태"/>
  217. <Column id="prcs" type="STRING" size="256" sumtext="진행"/>
  218. <Column id="agndt" type="STRING" size="256" sumtext="의뢰일시"/>
  219. <Column id="agndr" type="STRING" size="256" sumtext="의뢰의사"/>
  220. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  221. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  222. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  223. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  224. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  225. <Column id="snwnm" type="STRING" size="256" sumtext="상병명"/>
  226. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  227. <Column id="antibiocd" type="STRING" size="256" sumtext="항생제코드"/>
  228. <Column id="antibionm" type="STRING" size="256" sumtext="항생제명"/>
  229. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  230. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  231. <Column id="aprvstat" type="STRING" size="256" sumtext="승인상태"/>
  232. <Column id="aprvrejtcmt" type="STRING" size="256" sumtext="승인/거부 Comment"/>
  233. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  234. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  235. <Column id="seqno" type="STRING" size="256" sumtext="일련번호"/>
  236. <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
  237. <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
  238. <Column id="ioflag" type="STRING" size="256" sumtext="ioflag"/>
  239. </ColumnInfo>
  240. </Dataset>
  241. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  242. <ColumnInfo>
  243. <Column id="termflag" type="STRING" size="256"/>
  244. <Column id="fromdd" type="STRING" size="256"/>
  245. <Column id="todd" type="STRING" size="256"/>
  246. <Column id="prcsstat" type="STRING" size="256"/>
  247. <Column id="orddeptcd" type="STRING" size="256"/>
  248. <Column id="pid" type="STRING" size="256"/>
  249. <Column id="patnm" type="STRING" size="256"/>
  250. <Column id="limantibio" type="STRING" size="256"/>
  251. </ColumnInfo>
  252. <Rows>
  253. <Row/>
  254. </Rows>
  255. </Dataset>
  256. <Dataset id="ds_init_initdate" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  257. <ColumnInfo>
  258. <Column id="today" type="STRING" size="256"/>
  259. </ColumnInfo>
  260. <Rows>
  261. <Row/>
  262. </Rows>
  263. </Dataset>
  264. <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  265. <ColumnInfo>
  266. <Column id="fromdd" type="STRING" size="256"/>
  267. <Column id="todd" type="STRING" size="256"/>
  268. </ColumnInfo>
  269. <Rows>
  270. <Row/>
  271. </Rows>
  272. </Dataset>
  273. </Objects>
  274. <Bind>
  275. <BindItem id="item0" compid="grp_biz.grp_sea.cmb_termflag" propid="value" datasetid="ds_main_cond" columnid="termflag"/>
  276. <BindItem id="item1" compid="grp_biz.grp_sea.ipt_patnm" propid="value" datasetid="ds_main_cond" columnid="patnm"/>
  277. <BindItem id="item2" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  278. <BindItem id="item3" compid="grp_biz.grp_sea.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  279. <BindItem id="item4" compid="grp_biz.grp_sea.cmb_prcsstat" propid="value" datasetid="ds_main_cond" columnid="prcsstat"/>
  280. <BindItem id="item5" compid="grp_biz.grp_sea.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
  281. <BindItem id="item6" compid="grp_biz.grp_sea.cmb_orddeptcd" propid="value" datasetid="ds_main_cond" columnid="orddeptcd"/>
  282. <BindItem id="item7" compid="grp_biz.grp_sea.cmb_limantibio" propid="value" datasetid="ds_main_cond" columnid="limantibio"/>
  283. </Bind>
  284. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  285. * System Name : 경대 의료정보시스템
  286. * Job Name : ast_infcmngtxp -> SMASI00800
  287. * Creator : yjh
  288. * Make Date : 2017-09-21
  289. * Description :
  290. *---------------------------------------------------------------------------------------
  291. * Modify Date Modifier Modify Description
  292. *---------------------------------------------------------------------------------------
  293. * 2017-09-21 yjh TF->XP
  294. *
  295. *---------------------------------------------------------------------------------------
  296. ****************************************************************************************/
  297. //=======================================================================================
  298. // Lib Include
  299. //---------------------------------------------------------------------------------------
  300. include "com_commonxp::comm_main.xjs";
  301. //=======================================================================================
  302. // Global Form Variable
  303. //---------------------------------------------------------------------------------------
  304. //=======================================================================================
  305. // Function
  306. //---------------------------------------------------------------------------------------
  307. function fInitialize(){
  308. // 로그인한 사용자의 과로 기본 setting
  309. // model.setValue("/root/main/cond/orddeptcd", getUserInfo("posdeptcd"));
  310. // 진료과
  311. var instcd = sysf_getUserInfo("dutplceinstcd");
  312. var standard_yn = "orduseyn";
  313. var ord_deptflag = "D";
  314. var rslt_ref = "ds_init_deptlist_dept";
  315. var sort_field = "depthngnm";
  316. var sort_method = "asc";
  317. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, "", "", "", rslt_ref);
  318. frmf_addComboItem("grp_biz.grp_sea.cmb_orddeptcd","- 전 체 -","","above");
  319. grp_biz.grp_sea.cmb_orddeptcd.index = 0;
  320. //제한항생제종류
  321. var rslt_ref = "/root/init/limantibio";
  322. var sort_field = "hngnm";
  323. var sort_method = "asc";
  324. var oParam = {};
  325. oParam.id = "TRASI00801";
  326. oParam.service = "infcmngtapp.HospInfcMngt";
  327. oParam.method = "reqGetLimAntibio";
  328. oParam.inds = "";
  329. oParam.outds = "ds_init_list_limantibio=limantibio";
  330. oParam.async = false;
  331. //oParam.callback = "cf_TRASI00801";
  332. tranf_submit(oParam);
  333. frmf_addComboItem("grp_biz.grp_sea.cmb_limantibio","- 전 체 -","","above");
  334. grp_biz.grp_sea.cmb_limantibio.index = 0;
  335. }
  336. function fSetParameter(){
  337. var today = utlf_getCurrentDate();
  338. var idate = new Date();
  339. var peveDate = idate.getAddDate(-1, "M");
  340. ds_init_initdate.setColumn(0, "today", today);
  341. ds_send_cond.setColumn(0, "fromdd", peveDate.getDateFormat());
  342. ds_send_cond.setColumn(0, "todd", today);
  343. ds_main_cond.setColumn(0, "fromdd", peveDate.getDateFormat());
  344. ds_main_cond.setColumn(0, "todd", today);
  345. }
  346. //상단정보설정
  347. function fUpInfo(){
  348. var sessionPID = getPatientId();
  349. if(sessionPID != model.getValue("/root/main/limantibiouspatrefinfo/limantibiouspatreflist["+grd_limantibiouspatref.row+"]/pid")){
  350. fReqOpPatPamInfo();
  351. }
  352. }
  353. function fReqOpPatPamInfo(){
  354. var param;
  355. var tioflag=ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(ds_main_limantibiouspatrefinfo_limantibiouspatreflist.rowposition, "ioflag");
  356. if(tioflag == "I") {
  357. var ioflag="I";
  358. var pid= ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(ds_main_limantibiouspatrefinfo_limantibiouspatreflist.rowposition, "pid");
  359. var indd=ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(ds_main_limantibiouspatrefinfo_limantibiouspatreflist.rowposition, "indd");
  360. var cretno=ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(ds_main_limantibiouspatrefinfo_limantibiouspatreflist.rowposition, "cretno") ;
  361. var seqno=ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(ds_main_limantibiouspatrefinfo_limantibiouspatreflist.rowposition, "seqno");
  362. var instcd=sysf_getUserInfo("dutplceinstcd");
  363. var srchdd=utlf_getCurrentDate();
  364. param= ioflag + "▦" //입원환자
  365. + pid + "▦"
  366. + indd + "▦"
  367. + cretno + "▦"
  368. + instcd+ "▦"
  369. + srchdd;
  370. //frmf_setParameter("condparam", param);
  371. }
  372. else if(tioflag == "O") {
  373. var ioflag="O";
  374. var pid= ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(ds_main_limantibiouspatrefinfo_limantibiouspatreflist.rowposition, "pid");
  375. var orddd=ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(ds_main_limantibiouspatrefinfo_limantibiouspatreflist.rowposition, "indd");
  376. var cretno=ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(ds_main_limantibiouspatrefinfo_limantibiouspatreflist.rowposition, "cretno") ;
  377. var instcd=sysf_getUserInfo("dutplceinstcd");
  378. var srchdd=utlf_getCurrentDate();
  379. param= ioflag + "▦" //외래환자
  380. + pid + "▦"
  381. + orddd + "▦"
  382. + cretno + "▦"
  383. + instcd;
  384. //frmf_setParameter("condparam", param);
  385. }
  386. //modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  387. appf_initPatientInfo(param); //상단정보 셋팅
  388. }
  389. //=======================================================================================
  390. // Event
  391. //---------------------------------------------------------------------------------------
  392. /****************************************************************************************
  393. * Components : Form
  394. * Components ID : SMASI00800
  395. * Event : oninit
  396. * Argument : 01.obj : Object Event has occurred
  397. * : 02.e : Event Object
  398. * Description : 화면 처음 초기화시
  399. ****************************************************************************************/
  400. function SMASI00800_oninit(obj:Form, e:InitEventInfo)
  401. {
  402. frmf_initForm(obj); //폼 초기화
  403. }
  404. /****************************************************************************************
  405. * Components : Form
  406. * Components ID : SMASI00800
  407. * Event : onload
  408. * Argument : 01.obj : Object Event has occurred
  409. * : 02.e : Event Object
  410. * Description : 화면 로딩 완료시
  411. ****************************************************************************************/
  412. function SMASI00800_onload(obj:Form, e:LoadEventInfo)
  413. {
  414. ds_main_cond.setColumn(0, "termflag", "P");
  415. grdf_setGridSort(grp_biz.grd_limantibiouspatref);
  416. grp_biz.grp_sea.cmb_prcsstat.index = 0;
  417. fInitialize();
  418. ds_main_limantibiouspatrefinfo_limantibiouspatreflist.clearData();
  419. fSetParameter() ;
  420. }
  421. /****************************************************************************************
  422. * Components : Edit
  423. * Components ID : ipt_pid
  424. * Event : onkillfocus
  425. * Argument : 01.obj : Object Event has occurred
  426. * : 02.e : Event Object
  427. * Description : 포커스 아웃시
  428. ****************************************************************************************/
  429. function grp_biz_grp_sea_ipt_pid_onkillfocus(obj:Edit, e:KillFocusEventInfo)
  430. {
  431. var pidlength = ds_main_cond.getColumn(0, "pid");
  432. }
  433. /****************************************************************************************
  434. * Components : Edit
  435. * Components ID : ipt_pid
  436. * Event : onkeydown
  437. * Argument : 01.obj : Object Event has occurred
  438. * : 02.e : Event Object
  439. * Description : 에디터 키 입력시
  440. ****************************************************************************************/
  441. function grp_biz_grp_sea_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  442. {
  443. if( e.keycode == 13 ){
  444. obj.updateToDataset();
  445. grp_biz.grp_sea.btn_search.click();
  446. }
  447. }
  448. /****************************************************************************************
  449. * Components : Button
  450. * Components ID : btn_search
  451. * Event : onclick
  452. * Argument : 01.obj : Object Event has occurred
  453. * : 02.e : Event Object
  454. * Description : 조회버튼 클릭시
  455. ****************************************************************************************/
  456. function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  457. {
  458. var arrCompId = new Array("grp_biz.grp_sea.cmb_termflag","grp_biz.grp_sea.ipt_fromdd","grp_biz.grp_sea.ipt_todd");
  459. if( !frmf_isRequiredControls(arrCompId) ){
  460. return;
  461. }
  462. ds_send_reqdata.copyRow(0, ds_main_cond, 0);
  463. var oParam = {};
  464. oParam.id = "TRASI00801";
  465. oParam.service = "infcmngtapp.HospInfcMngt";
  466. oParam.method = "reqGetLimAntibioUsPatRefList";
  467. oParam.inds = "req=ds_send_reqdata";
  468. oParam.outds = "ds_main_limantibiouspatrefinfo_limantibiouspatreflist=limantibiouspatreflist";
  469. oParam.async = false;
  470. //oParam.callback = "cf_TRASI00801";
  471. tranf_submit(oParam);
  472. }
  473. /****************************************************************************************
  474. * Components : Button
  475. * Components ID : btn_prcpclsnm
  476. * Event : onclick
  477. * Argument : 01.obj : Object Event has occurred
  478. * : 02.e : Event Object
  479. * Description : 돋보기버튼 클릭시버튼 클릭시
  480. ****************************************************************************************/
  481. function grp_biz_grp_sea_btn_prcpclsnm_onclick(obj:Button, e:ClickEventInfo)
  482. {
  483. frmf_modal("SPPMC02500","SPPMC02500",null,"",1,1,1,"","","","","","M");
  484. var sPid = ds_patinfolist.getColumn(0, "pid");
  485. var sHngnm = ds_patinfolist.getColumn(0, "hngnm");
  486. ds_main_cond.setColumn(0, "pid", sPid);
  487. ds_main_cond.setColumn(0, "patnm", sHngnm);
  488. }
  489. /****************************************************************************************
  490. * Components : Grid
  491. * Components ID : grd_limantibiouspatref
  492. * Event : oncelldblclick
  493. * Argument : 01.obj : Object Event has occurred
  494. * : 02.e : Event Object
  495. * Description : 그리드 셀 더블클릭시
  496. ****************************************************************************************/
  497. function grp_biz_grd_limantibiouspatref_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  498. {
  499. fReqOpPatPamInfo();
  500. }
  501. /****************************************************************************************
  502. * Components : Button
  503. * Components ID : btn_excel
  504. * Event : onclick
  505. * Argument : 01.obj : Object Event has occurred
  506. * : 02.e : Event Object
  507. * Description : 엑셀버튼 클릭시
  508. ****************************************************************************************/
  509. function grp_biz_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  510. {
  511. //if( grp_biz.grd_limantibiouspatref.rowcount > 0 ){
  512. grdf_exportExcel(grp_biz.grd_limantibiouspatref, "제한항생제사용자조회", "제한항생제 사용자", false, "", "user", false);
  513. // } else {
  514. // sysf_messageBox("조회된 데이터가 ", "I004");
  515. // return;
  516. // }
  517. }
  518. /****************************************************************************************
  519. * Components : Button
  520. * Components ID : btn_init
  521. * Event : onclick
  522. * Argument : 01.obj : Object Event has occurred
  523. * : 02.e : Event Object
  524. * Description : 초기화버튼 클릭시
  525. ****************************************************************************************/
  526. function grp_btn_btn_init_onclick(obj:Button, e:ClickEventInfo)
  527. {
  528. ds_main_limantibiouspatrefinfo_limantibiouspatreflist.clearData();
  529. }
  530. /****************************************************************************************
  531. * Components : Button
  532. * Components ID : btn_sytsrecref
  533. * Event : onclick
  534. * Argument : 01.obj : Object Event has occurred
  535. * : 02.e : Event Object
  536. * Description : 통합기록조회버튼 클릭시
  537. ****************************************************************************************/
  538. function grp_btn_btn_sytsrecref_onclick(obj:Button, e:ClickEventInfo)
  539. {
  540. var sessionPID = appf_getPatientId();
  541. var iRow=ds_main_limantibiouspatrefinfo_limantibiouspatreflist.rowposition;
  542. if(ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(0, "ioflag") == "I"){
  543. if(sessionPID != ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(iRow, "pid")){
  544. fReqInPatPamInfo();
  545. }
  546. }else if(ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(0, "ioflag") == "O"){
  547. if(sessionPID != ds_main_limantibiouspatrefinfo_limantibiouspatreflist.getColumn(iRow, "pid")){
  548. fReqOutPatPamInfo();
  549. }
  550. }
  551. frmf_modal("SMMRI00400","SMMRI00400",null,"",1,10,10,"","","","","","M");
  552. }
  553. ]]></Script>
  554. </Form>
  555. </FDL>