SMMMD01200_제한항생제의뢰내역.xfdl 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMMD01200" position="absolute 0 0 1197 744" titletext="제한항생제 의뢰내역" oninit="SMMMD01200_oninit" onload="SMMMD01200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_limantibiotrustspeclist" taborder="18" binddataset="ds_grd_limantibiotrustspeclist" useinputpanel="false" position="absolute 0 120 1193 707" cellsizingtype="col" oncelldblclick="grd_limantibiotrustspeclist_oncelldblclick" onrbuttondown="grd_limantibiotrustspeclist_onrbuttondown" anchor="all">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="26"/>
  12. <Column size="64"/>
  13. <Column size="76"/>
  14. <Column size="75"/>
  15. <Column size="56"/>
  16. <Column size="90"/>
  17. <Column size="40"/>
  18. <Column size="40"/>
  19. <Column size="0"/>
  20. <Column size="100"/>
  21. <Column size="69"/>
  22. <Column size="69"/>
  23. <Column size="68"/>
  24. <Column size="207"/>
  25. <Column size="138"/>
  26. <Column size="40"/>
  27. <Column size="200"/>
  28. <Column size="65"/>
  29. <Column size="210"/>
  30. <Column size="0"/>
  31. <Column size="140"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. </Columns>
  44. <Rows>
  45. <Row size="24" band="head"/>
  46. <Row size="24"/>
  47. </Rows>
  48. <Band id="head">
  49. <Cell/>
  50. <Cell col="1" text="추적환자"/>
  51. <Cell col="2" text="처방일"/>
  52. <Cell col="3" text="신청일"/>
  53. <Cell col="4" text="병실"/>
  54. <Cell col="5" text="환자명(표시명)"/>
  55. <Cell col="6" text="성별"/>
  56. <Cell col="7" text="나이"/>
  57. <Cell col="8" text="진료과코드"/>
  58. <Cell col="9" text="진료과"/>
  59. <Cell col="10" text="처방의"/>
  60. <Cell col="11" text="신청의"/>
  61. <Cell col="12" text="환자번호"/>
  62. <Cell col="13" text="기저질환"/>
  63. <Cell col="14" text="항생제명"/>
  64. <Cell col="15" text="일수"/>
  65. <Cell col="16" text="처방사유"/>
  66. <Cell col="17" text="상태"/>
  67. <Cell col="18" text="승인/비승인 사유"/>
  68. <Cell col="19" text="연락처"/>
  69. <Cell col="20" text="비고"/>
  70. <Cell col="21" text="ioflag"/>
  71. <Cell col="22" text="pid"/>
  72. <Cell col="23" text="indd"/>
  73. <Cell col="24" text="cretno"/>
  74. <Cell col="25" text="seqno"/>
  75. <Cell col="26" text="limaprvno"/>
  76. <Cell col="27" text="aprvseq"/>
  77. <Cell col="28" text="cd"/>
  78. <Cell col="29" text="dschdd"/>
  79. <Cell col="30" text="srchdd"/>
  80. <Cell col="31" text="orddrid"/>
  81. </Band>
  82. <Band id="body">
  83. <Cell celltype="head" text="expr:currow+1"/>
  84. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="expr:if(conpat == &quot;Y&quot;) ? 1:0" enable="false"/>
  85. <Cell col="2" displaytype="expr:utlf_isNull(prcpdd) ? &quot;mormal&quot; : &quot;date&quot;" text="bind:prcpdd"/>
  86. <Cell col="3" displaytype="expr:utlf_isNull(appdd) ? &quot;mormal&quot; : &quot;date&quot;" text="bind:appdd"/>
  87. <Cell col="4" text="bind:roomcd"/>
  88. <Cell col="5" text="bind:dispnm2"/>
  89. <Cell col="6" text="bind:patsex"/>
  90. <Cell col="7" text="bind:patage"/>
  91. <Cell col="8" text="bind:orddeptcd"/>
  92. <Cell col="9" text="bind:orddeptnm"/>
  93. <Cell col="10" text="bind:prcpdr"/>
  94. <Cell col="11" text="bind:appdr"/>
  95. <Cell col="12" text="bind:pid"/>
  96. <Cell col="13" text="bind:basedis"/>
  97. <Cell col="14" text="bind:antibionm"/>
  98. <Cell col="15" text="bind:dayno"/>
  99. <Cell col="16" text="bind:prcpresn"/>
  100. <Cell col="17" text="bind:flag"/>
  101. <Cell col="18" text="bind:rtnreqresn"/>
  102. <Cell col="19" text="bind:cntctel"/>
  103. <Cell col="20" text="bind:remark"/>
  104. <Cell col="21" text="bind:ioflag"/>
  105. <Cell col="22" text="bind:pid"/>
  106. <Cell col="23" text="bind:indd"/>
  107. <Cell col="24" text="bind:cretno"/>
  108. <Cell col="25" text="bind:seqno"/>
  109. <Cell col="26" text="bind:limaprvno"/>
  110. <Cell col="27" text="bind:aprvseq"/>
  111. <Cell col="28" text="bind:antibiocd"/>
  112. <Cell col="29" text="bind:dschdd"/>
  113. <Cell col="30" text="bind:srchdd"/>
  114. <Cell col="31" text="bind:orddrid"/>
  115. </Band>
  116. </Format>
  117. </Formats>
  118. </Grid>
  119. <Button id="btn_print" taborder="7" text="출력" class="btn6" position="absolute 3 715 59 737" onclick="btn_print_onclick" anchor="left bottom"/>
  120. <Button id="btn_basecd" taborder="8" text="기준코드" class="btn3" position="absolute 61 715 141 737" onclick="btn_basecd_onclick" anchor="left bottom" visible="false"/>
  121. <Button id="btn_druginfo" taborder="9" text="약품정보" class="btn3" position="absolute 143 715 223 737" onclick="btn_druginfo_onclick" anchor="left bottom" visible="false"/>
  122. <Button id="btn_save" taborder="10" text="저장" class="btn4" visible="false" position="absolute 1010 715 1066 737" anchor="right bottom"/>
  123. <Button id="btn_del" taborder="11" text="삭제" class="btn4" visible="false" position="absolute 1068 715 1124 737" anchor="right bottom"/>
  124. <Button id="btn_init" taborder="12" text="초기화" class="btn4" visible="false" position="absolute 1126 715 1194 737" onclick="btn_init_onclick" anchor="right bottom"/>
  125. <Static id="caption10" text="제한항생제 의뢰내역" class="tit_2" position="absolute 0 99 155 123"/>
  126. <Button id="button106" taborder="14" text="1회 1일 응급 전체초기화" class="btn2" position="absolute 987 93 1138 115" onclick="button106_onclick" anchor="top right"/>
  127. <Button id="btn_excel" taborder="15" text="엑셀" class="btn7" position="absolute 1140 93 1193 115" onclick="btn_excel_onclick" anchor="top right"/>
  128. <Div id="group1" taborder="16" position="absolute 0 25 1194 90" class="div_SA" scrollbars="none" anchor="left top right">
  129. <Layouts>
  130. <Layout>
  131. <Combo id="cmb_ward" taborder="0" innerdataset="@ds_init_ward" codecolumn="deptcd" datacolumn="depthngnm" class="combo_s_essential" position="absolute 205 38 330 57" anchor="default"/>
  132. <Static id="caption3" text="병동 :" position="absolute 165 39 208 59" anchor="default"/>
  133. <Shape id="line20" linetype="vertical" class="line_4" position="absolute 1107 10 1113 33" anchor="top right"/>
  134. <Static id="caption8" text="~" class="search_no_b" position="absolute 592 10 605 27" anchor="default"/>
  135. <Static id="caption12" text="검색조건 :" class="search_name" position="absolute 15 9 101 26" anchor="default"/>
  136. <Shape id="line16" linetype="vertical" class="line_4" position="absolute 202 10 208 33" anchor="default"/>
  137. <Static id="caption2" text="확인여부 :" class="search_name" position="absolute 730 9 816 26" anchor="default"/>
  138. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 322 10 328 33" anchor="default"/>
  139. <Radio id="rdo_outin" taborder="1" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 105 10 200 30" anchor="default" onitemchanged="group1_rdo_outin_onitemchanged">
  140. <Dataset id="innerdataset">
  141. <ColumnInfo>
  142. <Column id="codecolumn"/>
  143. <Column id="datacolumn"/>
  144. </ColumnInfo>
  145. <Rows>
  146. <Row>
  147. <Col id="codecolumn">O</Col>
  148. <Col id="datacolumn">외래</Col>
  149. </Row>
  150. <Row>
  151. <Col id="codecolumn">I</Col>
  152. <Col id="datacolumn">입원</Col>
  153. </Row>
  154. </Rows>
  155. </Dataset>
  156. </Radio>
  157. <Radio id="rdo_prcpappfrm" taborder="2" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 210 10 320 30" anchor="default" onitemchanged="group1_rdo_prcpappfrm_onitemchanged">
  158. <Dataset id="innerdataset">
  159. <ColumnInfo>
  160. <Column id="codecolumn"/>
  161. <Column id="datacolumn"/>
  162. </ColumnInfo>
  163. <Rows>
  164. <Row>
  165. <Col id="codecolumn">P</Col>
  166. <Col id="datacolumn">처방</Col>
  167. </Row>
  168. <Row>
  169. <Col id="codecolumn">A</Col>
  170. <Col id="datacolumn">신청서</Col>
  171. </Row>
  172. </Rows>
  173. </Dataset>
  174. </Radio>
  175. <Radio id="rdo_prcpappflag" taborder="3" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 330 10 475 30" anchor="default">
  176. <Dataset id="innerdataset">
  177. <ColumnInfo>
  178. <Column id="codecolumn"/>
  179. <Column id="datacolumn"/>
  180. </ColumnInfo>
  181. <Rows>
  182. <Row>
  183. <Col id="codecolumn">P</Col>
  184. <Col id="datacolumn">처방일자</Col>
  185. </Row>
  186. <Row>
  187. <Col id="codecolumn">A</Col>
  188. <Col id="datacolumn">적용일자</Col>
  189. </Row>
  190. </Rows>
  191. </Dataset>
  192. </Radio>
  193. <Radio id="rdo_appflag" taborder="4" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 330 10 425 30" anchor="default">
  194. <Dataset id="innerdataset">
  195. <ColumnInfo>
  196. <Column id="codecolumn"/>
  197. <Column id="datacolumn"/>
  198. </ColumnInfo>
  199. <Rows>
  200. <Row>
  201. <Col id="codecolumn">A</Col>
  202. <Col id="datacolumn">신청일자</Col>
  203. </Row>
  204. </Rows>
  205. </Dataset>
  206. </Radio>
  207. <Calendar id="ipt_fromdd" taborder="5" class="input_search" position="absolute 479 10 585 29" anchor="default" autoselect="true"/>
  208. <Calendar id="ipt_todd" taborder="6" class="input_search" position="absolute 610 10 715 29" anchor="default" autoselect="true"/>
  209. <Radio id="rdo_cnfmyn" taborder="7" columncount="5" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 820 10 1100 30" anchor="default">
  210. <Dataset id="innerdataset">
  211. <ColumnInfo>
  212. <Column id="codecolumn"/>
  213. <Column id="datacolumn"/>
  214. </ColumnInfo>
  215. <Rows>
  216. <Row>
  217. <Col id="codecolumn">0</Col>
  218. <Col id="datacolumn">미확인</Col>
  219. </Row>
  220. <Row>
  221. <Col id="codecolumn">1</Col>
  222. <Col id="datacolumn">승인</Col>
  223. </Row>
  224. <Row>
  225. <Col id="codecolumn">2</Col>
  226. <Col id="datacolumn">비승인</Col>
  227. </Row>
  228. <Row>
  229. <Col id="codecolumn">4</Col>
  230. <Col id="datacolumn">기투여</Col>
  231. </Row>
  232. <Row>
  233. <Col id="codecolumn">5</Col>
  234. <Col id="datacolumn">전체</Col>
  235. </Row>
  236. </Rows>
  237. </Dataset>
  238. </Radio>
  239. <Static id="caption1" position="absolute 828 30 928 50" anchor="default"/>
  240. <Button id="btn_search" taborder="10" text="조회" class="btn1" position="absolute 1126 10 1182 32" anchor="top right" onclick="group1_btn_search_onclick"/>
  241. </Layout>
  242. </Layouts>
  243. </Div>
  244. <Shape id="line19" linetype="horizontal" class="line_1" position="absolute 0 116 1193 119" anchor="left top right"/>
  245. <Shape id="line15" linetype="horizontal" class="line_3" position="absolute 0 705 1194 711" anchor="left right bottom"/>
  246. <Static id="caption6" text="제한항생제 의뢰내역" class="tit_1" position="absolute 0 0 168 25"/>
  247. <Shape id="line00" class="line_1" position="absolute 0 117 1193 120" anchor="left top right"/>
  248. <Shape id="line01" class="line_1" position="absolute 0 118 1193 121" anchor="left top right"/>
  249. </Layout>
  250. </Layouts>
  251. <Objects>
  252. <Dataset id="ds_grd_limantibiotrustspeclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  253. <ColumnInfo>
  254. <Column id="conpat" type="STRING"/>
  255. <Column id="prcpdd" type="STRING"/>
  256. <Column id="appdd" type="STRING"/>
  257. <Column id="roomcd" type="STRING"/>
  258. <Column id="dispnm2" type="STRING"/>
  259. <Column id="patsex" type="STRING"/>
  260. <Column id="patage" type="STRING"/>
  261. <Column id="orddeptcd" type="STRING"/>
  262. <Column id="orddeptnm" type="STRING"/>
  263. <Column id="prcpdr" type="STRING"/>
  264. <Column id="appdr" type="STRING"/>
  265. <Column id="pid" type="STRING"/>
  266. <Column id="basedis" type="STRING"/>
  267. <Column id="antibionm" type="STRING"/>
  268. <Column id="dayno" type="STRING"/>
  269. <Column id="prcpresn" type="STRING"/>
  270. <Column id="flag" type="STRING"/>
  271. <Column id="rtnreqresn" type="STRING"/>
  272. <Column id="cntctel" type="STRING"/>
  273. <Column id="remark" type="STRING"/>
  274. <Column id="ioflag" type="STRING"/>
  275. <Column id="pid" type="STRING"/>
  276. <Column id="indd" type="STRING"/>
  277. <Column id="cretno" type="STRING"/>
  278. <Column id="seqno" type="STRING"/>
  279. <Column id="limaprvno" type="STRING"/>
  280. <Column id="aprvseq" type="STRING"/>
  281. <Column id="antibiocd" type="STRING"/>
  282. <Column id="dschdd" type="STRING"/>
  283. <Column id="srchdd" type="STRING"/>
  284. <Column id="orddrid" type="STRING"/>
  285. </ColumnInfo>
  286. <Rows>
  287. <Row/>
  288. </Rows>
  289. </Dataset>
  290. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  291. <ColumnInfo>
  292. <Column id="outin" type="STRING" size="256"/>
  293. <Column id="prcpappfrm" type="STRING" size="256"/>
  294. <Column id="prcpappflag" type="STRING" size="256"/>
  295. <Column id="appflag" type="STRING" size="256"/>
  296. <Column id="fromdd" type="STRING" size="256"/>
  297. <Column id="todd" type="STRING" size="256"/>
  298. <Column id="cnfmyn" type="STRING" size="256"/>
  299. <Column id="org_prcpappfrm" type="STRING" size="256"/>
  300. <Column id="wardcd" type="STRING" size="256"/>
  301. </ColumnInfo>
  302. <Rows>
  303. <Row>
  304. <Col id="outin">I</Col>
  305. <Col id="prcpappfrm">A</Col>
  306. <Col id="prcpappflag">P</Col>
  307. <Col id="appflag"/>
  308. <Col id="fromdd"/>
  309. <Col id="todd"/>
  310. <Col id="cnfmyn">0</Col>
  311. <Col id="org_prcpappfrm"/>
  312. <Col id="wardcd"/>
  313. </Row>
  314. </Rows>
  315. </Dataset>
  316. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  317. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  318. <Dataset id="ds_init_cnts" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  319. <Dataset id="ds_init_curdt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  320. <Dataset id="ds_init_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  321. <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  322. <ColumnInfo>
  323. <Column id="depthngnm" type="STRING"/>
  324. <Column id="deptcd" type="STRING"/>
  325. </ColumnInfo>
  326. </Dataset>
  327. <Dataset id="ds_init_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  328. </Objects>
  329. <Bind>
  330. <BindItem id="item0" compid="group1.rdo_outin" propid="value" datasetid="ds_main_cond" columnid="outin"/>
  331. <BindItem id="item1" compid="group1.rdo_prcpappfrm" propid="value" datasetid="ds_main_cond" columnid="prcpappfrm"/>
  332. <BindItem id="item2" compid="group1.rdo_appflag" propid="value" datasetid="ds_main_cond" columnid="appflag"/>
  333. <BindItem id="item3" compid="group1.rdo_prcpappflag" propid="value" datasetid="ds_main_cond" columnid="prcpappflag"/>
  334. <BindItem id="item4" compid="group1.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  335. <BindItem id="item5" compid="group1.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  336. <BindItem id="item6" compid="group1.rdo_cnfmyn" propid="value" datasetid="ds_main_cond" columnid="cnfmyn"/>
  337. <BindItem id="item7" compid="group1.cmb_ward" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
  338. </Bind>
  339. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  340. * System Name :
  341. * Job Name :
  342. * Creator :
  343. * Make Date : 2015-11-13
  344. * Description :
  345. *---------------------------------------------------------------------------------------
  346. * Modify Date Modifier Modify Description
  347. *---------------------------------------------------------------------------------------
  348. * 2015-11-13 Live Converter TF->XP
  349. *
  350. *---------------------------------------------------------------------------------------
  351. ****************************************************************************************/
  352. include "com_commonxp::comm_main.xjs";
  353. var arErrorCode = new HashArray();
  354. /******************************************************************
  355. * Argument :
  356. * Description : 초기화
  357. ******************************************************************/
  358. function SMMMD01200_oninit(obj:Form, e:InitEventInfo)
  359. {
  360. frmf_initForm(obj);
  361. }
  362. function SMMMD01200_onload(obj:Form, e:LoadEventInfo)
  363. {
  364. //마우스 오른쪽버튼 설정
  365. frmf_createPopupMenu("pop_grd_limantibiotrustspeclist"
  366. ,"fPopupMenu"
  367. ,[{id: "fLimAntibioAprv" , level: "0", title: "제한항생제사용승인"}]
  368. );
  369. fInitialize();
  370. fInitialize1();
  371. }
  372. /******************************************************************
  373. * Argument :
  374. * Description : 마우스 오른쪽버튼 Event 호출
  375. ******************************************************************/
  376. function fPopupMenu(obj:PopupMenu, e:MenuClickEventInfo) {
  377. if(e.id == "fLimAntibioAprv") {
  378. fLimAntibioAprv();
  379. }
  380. }
  381. /******************************************************************
  382. * Argument : fLimAntibioAprv()
  383. * Description : 사용승인 popup화면에 parameter 넘기기
  384. ******************************************************************/
  385. function fLimAntibioAprv(){
  386. if( fUpInfo() ) return;
  387. var cRow = ds_grd_limantibiotrustspeclist.rowposition;
  388. frmf_setParameter("antibiocd", ds_grd_limantibiotrustspeclist.getColumn(cRow, "antibiocd"));
  389. frmf_setParameter("limaprvno", ds_grd_limantibiotrustspeclist.getColumn(cRow, "limaprvno"));
  390. frmf_setParameter("aprvseq", ds_grd_limantibiotrustspeclist.getColumn(cRow, "aprvseq"));
  391. frmf_setParameter("ioflag", ds_grd_limantibiotrustspeclist.getColumn(cRow, "ioflag"));
  392. frmf_setParameter("pid", ds_grd_limantibiotrustspeclist.getColumn(cRow, "pid"));
  393. frmf_setParameter("hngnm", ds_grd_limantibiotrustspeclist.getColumn(cRow, "patnm"));
  394. frmf_setParameter("sex", ds_grd_limantibiotrustspeclist.getColumn(cRow, "patsex"));
  395. frmf_setParameter("age", ds_grd_limantibiotrustspeclist.getColumn(cRow, "patage"));
  396. frmf_setParameter("roomcd", ds_grd_limantibiotrustspeclist.getColumn(cRow, "roomcd"));
  397. frmf_setParameter("orddeptnm", ds_grd_limantibiotrustspeclist.getColumn(cRow, "orddeptnm"));
  398. frmf_setParameter("cretno", ds_grd_limantibiotrustspeclist.getColumn(cRow, "cretno"));
  399. frmf_setParameter("orddeptcd", ds_grd_limantibiotrustspeclist.getColumn(cRow, "orddeptcd"));
  400. frmf_setParameter("prcpdd", ds_grd_limantibiotrustspeclist.getColumn(cRow, "prcpdd"));
  401. frmf_setParameter("orddrid", ds_grd_limantibiotrustspeclist.getColumn(cRow, "orddrid"));
  402. frmf_modal("SMMMD00200", "SMMMD00200", null, null, null, null, null, null, null, null, null, null, "M");
  403. }
  404. /******************************************************************
  405. * Argument : fLimAntibioAprv()
  406. * Description : 제한항생제사용승인 Event
  407. ******************************************************************/
  408. function fUpInfo(){
  409. var sessionPID = appf_getPatientId();
  410. if( sessionPID != ds_grd_limantibiotrustspeclist.getColumn(ds_grd_limantibiotrustspeclist.rowposition) ){
  411. fReqOpPatPamInfo();
  412. }
  413. }
  414. /******************************************************************
  415. * Argument : fInitialize()
  416. * Description : 검색조건 set
  417. ******************************************************************/
  418. function fInitialize(){
  419. ds_grd_limantibiotrustspeclist.clearData();
  420. fSetAprvListState();
  421. ds_init_curdt.addColumn("curdt", "string", 256);
  422. ds_init_curdt.setColumn(ds_init_curdt.addRow(), "curdt", utlf_getCurrentDate());
  423. var idate = new Date();
  424. var frDate = idate.getAddDate(-1, "D");
  425. ds_main_cond.setColumn(0, "fromdd", frDate.getDateFormat());
  426. ds_main_cond.setColumn(0, "todd", ds_init_curdt.getColumn(0, "curdt"));
  427. //미확인신청서건수
  428. fGetNoCnfmCnt();
  429. }
  430. /******************************************************************
  431. * Argument : fSetAprvListState()
  432. * Description : List Column set / 검색조건 set
  433. ******************************************************************/
  434. function fSetAprvListState(){
  435. var appflag = ds_main_cond.getColumn(0, "appflag");
  436. var prcpappfrm = ds_main_cond.getColumn(0, "prcpappfrm");
  437. if( prcpappfrm == "A" ){
  438. ds_main_cond.setColumn(0, "appflag", "A");
  439. }
  440. if( prcpappfrm == "P" ){
  441. //grd_tmedlist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body",""),"size",0); //관심
  442. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpdd"),"size",76); //처방일
  443. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","appdd"),"size",0); //신청일
  444. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","roomcd"),"size",56); //병실
  445. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","dispnm2"),"size",90); //환자명
  446. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","patsex"),"size",40); //성별
  447. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","patage"),"size",40); //나이
  448. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","orddeptnm"),"size",100); //진료과
  449. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpdr"),"size",69); //처방의
  450. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","appdr"),"size",0); //신청의
  451. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","pid"),"size",70); //환자번호
  452. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","basedis"),"size",210); //기저질환
  453. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","antibionm"),"size",140); //항생제명
  454. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpresn"),"size",0); //처방사유
  455. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","flag"),"size",65); //상태
  456. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","rtnreqresn"),"size",210); //승인사유
  457. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","cntctel"),"size",100); //연락처
  458. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","remark"),"size",140); //비고
  459. group1.rdo_appflag.visible = false; //검색조건 : 신청일
  460. group1.rdo_prcpappflag.visible = true; //검색조건 : 처방일자 / 적용일자
  461. } else if( prcpappfrm == "A" || appflag == "A" ){
  462. //grd_tmedlist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body",""),"size",0); //관심
  463. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpdd"),"size",0); //처방일
  464. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","appdd"),"size",76); //신청일
  465. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","roomcd"),"size",56); //병실
  466. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","dispnm2"),"size",90); //환자명
  467. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","patsex"),"size",40); //성별
  468. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","patage"),"size",40); //나이
  469. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","orddeptnm"),"size",100); //진료과
  470. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpdr"),"size",0); //처방의
  471. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","appdr"),"size",69); //신청의
  472. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","pid"),"size",70); //환자번호
  473. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","basedis"),"size",210); //기저질환
  474. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","antibionm"),"size",140); //항생제명
  475. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpresn"),"size",200); //처방사유
  476. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","flag"),"size",65); //상태
  477. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","rtnreqresn"),"size",210); //승인사유
  478. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","cntctel"),"size",100); //연락처
  479. grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","remark"),"size",140); //비고
  480. group1.rdo_appflag.visible = true; //검색조건 : 신청일
  481. group1.rdo_prcpappflag.visible = false; //검색조건 : 처방일자 / 적용일자
  482. }
  483. }
  484. /******************************************************************
  485. * Argument : fGetNoCnfmCnt()
  486. * Description : 미확인신청서건수
  487. ******************************************************************/
  488. function fGetNoCnfmCnt(){
  489. ds_send_reqdata.clearData();
  490. ds_send_reqdata.copyData(ds_main_cond);
  491. var oParam = {};
  492. oParam.id = "TRMMD01202";
  493. oParam.service = "prcpmngtapp.LimAntibioMngt";
  494. oParam.method = "reqGetNoCnfmCnt";
  495. oParam.inds = "req=ds_send_reqdata";
  496. oParam.outds = "ds_init_cnts=cnts";
  497. oParam.async = false;
  498. //oParam.callback = "cf_TRMMD01202";
  499. tranf_submit(oParam);
  500. group1.caption1.text = "( " + ds_init_cnts.getColumn(0, "cnt") + " / " + ds_init_cnts.getColumn(0, "allcnt") + " )";
  501. }
  502. /******************************************************************
  503. * Argument : fInitialize1()
  504. * Description : 공통코드 / 진료과 / 병동 조회
  505. ******************************************************************/
  506. function fInitialize1(){
  507. //공통코드
  508. appf_getCodeList( [{dsNm: "ds_init_P0008", cdGrpId: "P0008"}], true );
  509. //진료과
  510. var instcd = sysf_getUserInfo("dutplceinstcd");
  511. var standard_yn = "orduseyn";
  512. var ord_deptflag = 'D';
  513. var rslt_ref = "ds_init_deptlist";
  514. var sort_field = "depthngnm";
  515. var sort_method = "asc";
  516. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, null, "R", "replace", rslt_ref, null, null);
  517. //병동 조회
  518. standard_yn = "orduseyn";
  519. ord_deptflag = "W";
  520. rslt_ref = "ds_init_ward";
  521. sort_field = "deptcd";
  522. sort_method = "asc";
  523. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, null, "R", "replace", rslt_ref, null, null);
  524. frmf_addComboItem("group1.cmb_ward", "", "", "above");
  525. }
  526. /******************************************************************
  527. * Argument :
  528. * Description : 외래 / 입원 선택 시 Event
  529. ******************************************************************/
  530. function group1_rdo_outin_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  531. {
  532. if( ds_main_cond.getColumn(0, "outin") == "O" ){
  533. group1.cmb_ward.visible = false;
  534. group1.caption3.visible = false;
  535. ds_main_cond.setColumn(0, "wardcd", "");
  536. } else {
  537. group1.cmb_ward.visible = true;
  538. group1.caption3.visible = true;
  539. }
  540. }
  541. /******************************************************************
  542. * Argument :
  543. * Description : 처방 / 신청서 선택 시 Event
  544. ******************************************************************/
  545. function group1_rdo_prcpappfrm_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  546. {
  547. fSetAprvListState();
  548. }
  549. /******************************************************************
  550. * Argument :
  551. * Description : 조회 Button Event
  552. ******************************************************************/
  553. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  554. {
  555. if( utlf_isNull(ds_main_cond.getColumn(0, "fromdd")) || utlf_isNull(ds_main_cond.getColumn(0, "todd")) ){
  556. sysf_messageBox("기간을", "C002");
  557. return;
  558. }
  559. ds_send_reqdata.copyData(ds_main_cond);
  560. var oParam = {};
  561. oParam.id = "TRMMD01201";
  562. oParam.service = "prcpmngtapp.LimAntibioMngt";
  563. oParam.method = "reqGetLimAntibioTrustSpecCdList";
  564. oParam.inds = "req=ds_send_reqdata";
  565. oParam.outds = "ds_grd_limantibiotrustspeclist=limantibiotrustspeclist ds_init_cnts=cnts";
  566. oParam.async = false;
  567. //oParam.callback = "cf_TRMMD01201";
  568. tranf_submit(oParam);
  569. group1.caption1.text = "( " + ds_init_cnts.getColumn(0, "cnt") + " / " + ds_init_cnts.getColumn(0, "allcnt") + " )";
  570. }
  571. /******************************************************************
  572. * Argument :
  573. * Description : 1회 1일 응급 전체초기화 Button Event
  574. ******************************************************************/
  575. function button106_onclick(obj:Button, e:ClickEventInfo)
  576. {
  577. var retyn = sysf_messageBox("모든 환자에 대한 응급 초기화를", "S001");
  578. if( retyn == 6 ){
  579. var oParam = {};
  580. oParam.id = "TXMMD01201";
  581. oParam.service = "prcpmngtapp.LimAntibioMngt";
  582. oParam.method = "reqExeAllERInit";
  583. oParam.inds = "req=ds_send_savedata";
  584. oParam.outds = "";
  585. oParam.async = false;
  586. //oParam.callback = "cf_TXMMD01201";
  587. tranf_submit(oParam);
  588. } else return;
  589. }
  590. /******************************************************************
  591. * Argument :
  592. * Description : 엑셀 Button Event
  593. ******************************************************************/
  594. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  595. {
  596. if( ds_grd_limantibiotrustspeclist.rowcount > 0 ){
  597. grdf_exportExcel(grd_limantibiotrustspeclist, "제한항생제의뢰내역", "제한항생제의뢰내역", false, "", "user", false);
  598. } else {
  599. sysf_messageBox("조회된 데이터가 ", "I004");
  600. }
  601. }
  602. /******************************************************************
  603. * Argument :
  604. * Description : 출력 Button Event
  605. ******************************************************************/
  606. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  607. {
  608. var pFlag = ds_main_cond.getColumn(0, "prcpappfrm");
  609. var objDOM = rptf_createDOM();
  610. if( pFlag == "A" ){
  611. rptf_setNodeListToDOM(objDOM, "/root/main/limantibiotrustspecinfo/limantibiotrustspeclist", ds_grd_limantibiotrustspeclist); // 데이터셋1 - 복약기준자료
  612. sysf_trace(objDOM.documentElement.source); // XML 내용출력
  613. var objParam = new Object();
  614. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  615. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  616. rptf_exeReportPreview30(["RPMMD01200"],[objParam], option);
  617. ds_main_patinfo.enableevent = true;
  618. } else if( pFlag == "P" ){
  619. rptf_setNodeListToDOM(objDOM, "/root/main/limantibiotrustspecinfo/limantibiotrustspeclist", ds_grd_limantibiotrustspeclist); // 데이터셋1 - 복약기준자료
  620. sysf_trace(objDOM.documentElement.source); // XML 내용출력
  621. var objParam = new Object();
  622. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  623. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  624. rptf_exeReportPreview30(["RPMMD01201"],[objParam], option);
  625. ds_main_patinfo.enableevent = true;
  626. }
  627. }
  628. /******************************************************************
  629. * Argument :
  630. * Description : 기준코드 Button Event
  631. ******************************************************************/
  632. function btn_basecd_onclick(obj:Button, e:ClickEventInfo)
  633. {
  634. frmf_modal("SMMMD00400", "SMMMD00400", null, null, null, null, null, null, null, null, null, null, "M");
  635. }
  636. /******************************************************************
  637. * Argument :
  638. * Description : 약품정보 Button Event
  639. ******************************************************************/
  640. function btn_druginfo_onclick(obj:Button, e:ClickEventInfo)
  641. {
  642. frmf_modal("SMMMD00500", "SMMMD00500", null, null, null, null, null, null, null, null, null, null, "M");
  643. }
  644. /******************************************************************
  645. * Argument :
  646. * Description : 초기화 Button Event
  647. ******************************************************************/
  648. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  649. {
  650. ds_grd_limantibiotrustspeclist.clearData();
  651. }
  652. /******************************************************************
  653. * Argument :
  654. * Description : 기준코드 Button Event
  655. ******************************************************************/
  656. function grd_limantibiotrustspeclist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  657. {
  658. if( ds_grd_limantibiotrustspeclist.rowcount > 0 ){
  659. fReqOpPatPamInfo();
  660. }
  661. }
  662. /******************************************************************
  663. * Argument : fReqOpPatPamInfo()
  664. * Description : 상단정보설정
  665. ******************************************************************/
  666. function fReqOpPatPamInfo(){
  667. var iRow = ds_grd_limantibiotrustspeclist.rowposition;
  668. var tioflag = ds_grd_limantibiotrustspeclist.getColumn(iRow, "ioflag");
  669. var ioflag;
  670. var srchdd;
  671. var param;
  672. //입원환자
  673. if( tioflag == "I" || tioflag == "E" || tioflag == "D" ){
  674. var row = ds_grd_limantibiotrustspeclist.rowposition;
  675. dsf_createDsRow("ds_req",[
  676. {col:"limaprvno" , val:ds_grd_limantibiotrustspeclist.getColumn(row, "limaprvno")}
  677. ,{col:"aprvseq" , val:ds_grd_limantibiotrustspeclist.getColumn(row, "aprvseq")}
  678. ,{col:"fromdd" , val:ds_main_cond.getColumn(0, "fromdd")}
  679. ]);
  680. var oParam = {};
  681. oParam.id = "TRMMD01203";
  682. oParam.service = "prcpmngtapp.LimAntibioMngt";
  683. oParam.method = "reqGetPatPamInfo";
  684. oParam.inds = "req=ds_req";
  685. oParam.outds = "ds_send_savedata=savedata";
  686. oParam.async = false;
  687. oParam.callback = "cf_TRMMD01203";
  688. tranf_submit(oParam);
  689. if( arErrorCode.pop("TRMMD01203") > -1 ){
  690. srchdd = ds_send_savedata.getColumn(0, "srchdd");
  691. } else {
  692. srchdd = ds_main_cond.getColumn(0, "fromdd");
  693. }
  694. ioflag = tioflag;
  695. var pid = ds_grd_limantibiotrustspeclist.getColumn(row, "pid");
  696. var indd = ds_grd_limantibiotrustspeclist.getColumn(row, "indd");
  697. var cretno = ds_grd_limantibiotrustspeclist.getColumn(row, "cretno");
  698. var seqno = ds_grd_limantibiotrustspeclist.getColumn(row, "seqno");
  699. var instcd = sysf_getUserInfo("dutplceinstcd");
  700. param = ioflag + "▦"
  701. + pid + "▦"
  702. + indd + "▦"
  703. + cretno + "▦"
  704. + instcd
  705. + "▦" + srchdd;
  706. } else if( tioflag == "O" ){ // 외래환자
  707. ioflag = tioflag;
  708. var pid = ds_grd_limantibiotrustspeclist.getColumn(row, "pid");
  709. var indd = ds_grd_limantibiotrustspeclist.getColumn(row, "indd");
  710. var cretno = ds_grd_limantibiotrustspeclist.getColumn(row, "cretno");
  711. var instcd = sysf_getUserInfo("dutplceinstcd");
  712. var srchdd = utlf_getCurrentDate();
  713. param = ioflag + "▦" //외래환자
  714. + pid + "▦"
  715. + orddd + "▦"
  716. + cretno + "▦"
  717. + instcd
  718. + "▦" + srchdd;
  719. }
  720. // frmf_setParameter("condparam", param);
  721. // frmf_modal("SPMMO08900", "SPMMO08900", null, null, null, null, null, null, null, null, null, null, "M");
  722. appf_initPatientInfo(param);
  723. }
  724. function cf_TRMMD01203(sSvcId, nErrorCode, sErrorMsg) {
  725. arErrorCode.push(sSvcId, nErrorCode);
  726. }
  727. /******************************************************************
  728. * Argument :
  729. * Description : 마우스 오른쪽 버튼 Event
  730. ******************************************************************/
  731. function grd_limantibiotrustspeclist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  732. {
  733. if(e.row > -1){
  734. grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
  735. pop_grd_limantibiotrustspeclist.trackPopup(e.screenX,e.screenY);
  736. }
  737. return true;
  738. }
  739. ]]></Script>
  740. </Form>
  741. </FDL>