SMADC03400_TDM회신내용조회.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADC03400" position="absolute 0 0 1174 714" titletext="TDM회신내용조회" oninit="SMADC03400_oninit" onload="SMADC03400_onload" scrollbars="none">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption19" text="TDM회신내용조회" class="tit_1" position="absolute 0 0 151 25"/>
  8. <Div id="group2" taborder="2" class="div_SA" position="absolute 0 25 1172 65" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Radio id="rdo_ioflag" taborder="7" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 314 13 489 30" anchor="default" onitemchanged="group2_rdo_ioflag_onitemchanged">
  12. <Dataset id="innerdataset">
  13. <ColumnInfo>
  14. <Column id="codecolumn"/>
  15. <Column id="datacolumn"/>
  16. </ColumnInfo>
  17. <Rows>
  18. <Row>
  19. <Col id="codecolumn">day</Col>
  20. <Col id="datacolumn">일자별</Col>
  21. </Row>
  22. <Row>
  23. <Col id="codecolumn">month</Col>
  24. <Col id="datacolumn">월별</Col>
  25. </Row>
  26. <Row>
  27. <Col id="codecolumn">year</Col>
  28. <Col id="datacolumn">연별</Col>
  29. </Row>
  30. </Rows>
  31. </Dataset>
  32. </Radio>
  33. <Static id="caption5" text="회신일자 :" class="search_name" position="absolute 5 12 79 29" anchor="default"/>
  34. <Calendar id="ipt_startreqdd" taborder="8" class="input_search" position="absolute 77 10 181 31" anchor="default" autoselect="true"/>
  35. <Calendar id="ipt_endreqdd" taborder="9" class="input_search" position="absolute 195 10 300 31" anchor="default" autoselect="true"/>
  36. <Shape id="line13" linetype="vertical" position="absolute 1081 8 1087 33" anchor="default"/>
  37. <Static id="caption7" text="회신상태 :" class="search_name" position="absolute 488 13 559 30" anchor="default"/>
  38. <Button id="btn_sea" taborder="10" text="조회" class="btn1" position="absolute 1099 9 1155 31" anchor="top right" onclick="group2_btn_sea_onclick"/>
  39. <Radio id="radio1" taborder="11" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 563 13 774 30" style="textpadding:0 0 0 2;" anchor="default">
  40. <Dataset id="innerdataset">
  41. <ColumnInfo>
  42. <Column id="codecolumn"/>
  43. <Column id="datacolumn"/>
  44. </ColumnInfo>
  45. <Rows>
  46. <Row>
  47. <Col id="codecolumn">all</Col>
  48. <Col id="datacolumn">전체</Col>
  49. </Row>
  50. <Row>
  51. <Col id="codecolumn">z</Col>
  52. <Col id="datacolumn">자문회신</Col>
  53. </Row>
  54. <Row>
  55. <Col id="codecolumn">zr</Col>
  56. <Col id="datacolumn">회신제외</Col>
  57. </Row>
  58. </Rows>
  59. </Dataset>
  60. </Radio>
  61. <Radio id="radio2" taborder="12" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 858 13 1048 30" anchor="default">
  62. <Dataset id="innerdataset">
  63. <ColumnInfo>
  64. <Column id="codecolumn"/>
  65. <Column id="datacolumn"/>
  66. </ColumnInfo>
  67. <Rows>
  68. <Row>
  69. <Col id="codecolumn">all</Col>
  70. <Col id="datacolumn">전체</Col>
  71. </Row>
  72. <Row>
  73. <Col id="codecolumn">I</Col>
  74. <Col id="datacolumn">입원</Col>
  75. </Row>
  76. <Row>
  77. <Col id="codecolumn">E</Col>
  78. <Col id="datacolumn">응급</Col>
  79. </Row>
  80. <Row>
  81. <Col id="codecolumn">O</Col>
  82. <Col id="datacolumn">외래</Col>
  83. </Row>
  84. </Rows>
  85. </Dataset>
  86. </Radio>
  87. <Static id="caption1" text="의뢰경로 :" class="search_name" position="absolute 783 14 856 31" anchor="default"/>
  88. </Layout>
  89. </Layouts>
  90. </Div>
  91. <Button id="button7" taborder="3" text="엑셀" class="btn7" position="absolute 1118 69 1172 91" onclick="button7_onclick" anchor="top right"/>
  92. <Grid id="grd_repllist" taborder="4" binddataset="ds_main_repllist" useinputpanel="false" position="absolute 0 93 1172 712" anchor="all" extendsizetype="row" cellsizingtype="both">
  93. <Formats>
  94. <Format id="default">
  95. <Columns>
  96. <Column size="25" band="left"/>
  97. <Column size="73"/>
  98. <Column size="62"/>
  99. <Column size="100"/>
  100. <Column size="77"/>
  101. <Column size="70"/>
  102. <Column size="39"/>
  103. <Column size="35"/>
  104. <Column size="100"/>
  105. <Column size="92"/>
  106. <Column size="119"/>
  107. <Column size="88"/>
  108. <Column size="82"/>
  109. <Column size="110"/>
  110. <Column size="103"/>
  111. <Column size="100"/>
  112. <Column size="100"/>
  113. <Column size="103"/>
  114. <Column size="100"/>
  115. <Column size="100"/>
  116. <Column size="100"/>
  117. <Column size="100"/>
  118. <Column size="100"/>
  119. <Column size="100"/>
  120. <Column size="100"/>
  121. <Column size="100"/>
  122. <Column size="100"/>
  123. <Column size="40"/>
  124. <Column size="50"/>
  125. <Column size="100"/>
  126. <Column size="100"/>
  127. <Column size="100"/>
  128. <Column size="72"/>
  129. <Column size="67"/>
  130. </Columns>
  131. <Rows>
  132. <Row size="24" band="head"/>
  133. <Row size="24"/>
  134. </Rows>
  135. <Band id="head">
  136. <Cell/>
  137. <Cell col="1" text="회신상태"/>
  138. <Cell col="2" text="의뢰경로"/>
  139. <Cell col="3" text="회신일자"/>
  140. <Cell col="4" text="환자번호"/>
  141. <Cell col="5" text="성명"/>
  142. <Cell col="6" text="나이"/>
  143. <Cell col="7" text="성별"/>
  144. <Cell col="8" text="주상병"/>
  145. <Cell col="9" text="의뢰과"/>
  146. <Cell col="10" text="의뢰이유"/>
  147. <Cell col="11" text="의뢰약물"/>
  148. <Cell col="12" text="회신결과"/>
  149. <Cell col="13" text="자문내용"/>
  150. <Cell col="14" text="참고사항"/>
  151. <Cell col="15" text="현재 Regimen"/>
  152. <Cell col="16" text="추천 Regimen"/>
  153. <Cell col="17" text="채혈시간(Trough)"/>
  154. <Cell col="18" text="채혈시간(Peak)"/>
  155. <Cell col="19" text="혈중농도(Trough)"/>
  156. <Cell col="20" text="혈중농도(Peak)"/>
  157. <Cell col="21" text="반감기(TI/2)"/>
  158. <Cell col="22" text="분포용적(V/d)"/>
  159. <Cell col="23" text="Clearancel(CL)"/>
  160. <Cell col="24" text="Km"/>
  161. <Cell col="25" text="Vmax"/>
  162. <Cell col="26" text="분석방법"/>
  163. <Cell col="27" text="키"/>
  164. <Cell col="28" text="체중"/>
  165. <Cell col="29" text="Scr"/>
  166. <Cell col="30" text="Ccr"/>
  167. <Cell col="31" text="Albumin"/>
  168. <Cell col="32" text="수가상태"/>
  169. <Cell col="33" text="자문상태"/>
  170. </Band>
  171. <Band id="body">
  172. <Cell celltype="head" text="expr:currow + 1"/>
  173. <Cell col="1" displaytype="combo" edittype="combo" style="align:center middle;padding:0 0 0 0;" text="bind:statflag" combodataset="ds_init_statflag" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  174. <Cell col="2" displaytype="combo" edittype="combo" style="align:center middle;padding:0 0 0 0;" text="bind:chosflag" combodataset="ds_init_chosflag" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  175. <Cell col="3" displaytype="expr:utlf_isNull(repldd)?'normal':'date'" text="bind:repldd" mask="expr:utlf_isNull(repldd)?'':'yyyy-MM-dd HH:mm'"/>
  176. <Cell col="4" text="bind:pid"/>
  177. <Cell col="5" text="bind:hngnm"/>
  178. <Cell col="6" text="bind:age"/>
  179. <Cell col="7" text="bind:sex"/>
  180. <Cell col="8" text="bind:sikcnm"/>
  181. <Cell col="9" style="align:left;padding:0 2 0 2;" text="bind:reqdeptcd"/>
  182. <Cell col="10" style="align:left middle;padding:0 2 0 2;" text="bind:reqresn"/>
  183. <Cell col="11" text="bind:cnstdrugnm"/>
  184. <Cell col="12" text="bind:replrsltflag"/>
  185. <Cell col="13" text="bind:cnstcnts"/>
  186. <Cell col="14" text="bind:cmt"/>
  187. <Cell col="15" text="bind:prestregmcnts"/>
  188. <Cell col="16" text="bind:recmregmcnts"/>
  189. <Cell col="17" displaytype="expr:utlf_isNull(trghbcoldt)?'normal':'date'" text="bind:trghbcoldt" mask="expr:utlf_isNull(trghbcoldt)?'':'yyyy-MM-dd HH:mm'"/>
  190. <Cell col="18" displaytype="expr:utlf_isNull(peakbcoldt)?'normal':'date'" text="bind:peakbcoldt" mask="expr:utlf_isNull(peakbcoldt)?'':'yyyy-MM-dd HH:mm'"/>
  191. <Cell col="19" text="bind:trghblodconcen"/>
  192. <Cell col="20" text="bind:peakblodconcen"/>
  193. <Cell col="21" text="bind:t12val"/>
  194. <Cell col="22" text="bind:vdval"/>
  195. <Cell col="23" text="bind:clval"/>
  196. <Cell col="24" text="bind:kmval"/>
  197. <Cell col="25" text="bind:vmaxval"/>
  198. <Cell col="26" text="bind:analymthdcnts"/>
  199. <Cell col="27" text="bind:ht"/>
  200. <Cell col="28" text="bind:wt"/>
  201. <Cell col="29" text="bind:scrval"/>
  202. <Cell col="30" text="bind:ccrval"/>
  203. <Cell col="31" text="bind:albuminval"/>
  204. <Cell col="32" text="bind:sugastat"/>
  205. <Cell col="33" text="bind:jamonstat"/>
  206. </Band>
  207. </Format>
  208. </Formats>
  209. </Grid>
  210. </Layout>
  211. </Layouts>
  212. <Objects>
  213. <Dataset id="ds_main_repllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  214. <ColumnInfo>
  215. <Column id="statflag" type="STRING"/>
  216. <Column id="chosflag" type="STRING"/>
  217. <Column id="repldd" type="STRING"/>
  218. <Column id="pid" type="STRING"/>
  219. <Column id="hngnm" type="STRING"/>
  220. <Column id="age" type="STRING"/>
  221. <Column id="sex" type="STRING"/>
  222. <Column id="sikcnm" type="STRING"/>
  223. <Column id="reqdeptcd" type="STRING"/>
  224. <Column id="reqresn" type="STRING"/>
  225. <Column id="cnstdrugnm" type="STRING"/>
  226. <Column id="replrsltflag" type="STRING"/>
  227. <Column id="cnstcnts" type="STRING"/>
  228. <Column id="cmt" type="STRING"/>
  229. <Column id="prestregmcnts" type="STRING"/>
  230. <Column id="recmregmcnts" type="STRING"/>
  231. <Column id="trghbcoldt" type="STRING"/>
  232. <Column id="peakbcoldt" type="STRING"/>
  233. <Column id="trghblodconcen" type="STRING"/>
  234. <Column id="peakblodconcen" type="STRING"/>
  235. <Column id="t12val" type="STRING"/>
  236. <Column id="vdval" type="STRING"/>
  237. <Column id="clval" type="STRING"/>
  238. <Column id="kmval" type="STRING"/>
  239. <Column id="vmaxval" type="STRING"/>
  240. <Column id="analymthdcnts" type="STRING"/>
  241. <Column id="ht" type="STRING"/>
  242. <Column id="wt" type="STRING"/>
  243. <Column id="scrval" type="STRING"/>
  244. <Column id="ccrval" type="STRING"/>
  245. <Column id="albuminval" type="STRING"/>
  246. <Column id="sugastat" type="STRING"/>
  247. <Column id="jamonstat" type="STRING"/>
  248. </ColumnInfo>
  249. <Rows>
  250. <Row/>
  251. </Rows>
  252. </Dataset>
  253. <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  254. <ColumnInfo>
  255. <Column id="startrepldd" type="STRING" size="256"/>
  256. <Column id="endrepldd" type="STRING" size="256"/>
  257. <Column id="dateflag" type="STRING" size="256"/>
  258. <Column id="replstat" type="STRING" size="256"/>
  259. <Column id="chosflag" type="STRING" size="256"/>
  260. </ColumnInfo>
  261. <Rows>
  262. <Row>
  263. <Col id="startrepldd"/>
  264. <Col id="endrepldd"/>
  265. <Col id="dateflag">day</Col>
  266. <Col id="replstat">all</Col>
  267. <Col id="chosflag">all</Col>
  268. </Row>
  269. </Rows>
  270. </Dataset>
  271. <Dataset id="ds_init_statflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  272. <ColumnInfo>
  273. <Column id="cdid" type="STRING" size="256"/>
  274. <Column id="cdnm" type="STRING" size="256"/>
  275. </ColumnInfo>
  276. <Rows>
  277. <Row>
  278. <Col id="cdid">z</Col>
  279. <Col id="cdnm">자문회신</Col>
  280. </Row>
  281. <Row>
  282. <Col id="cdid">zr</Col>
  283. <Col id="cdnm">회신제외</Col>
  284. </Row>
  285. </Rows>
  286. </Dataset>
  287. <Dataset id="ds_init_chosflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  288. <ColumnInfo>
  289. <Column id="cdid" type="STRING" size="256"/>
  290. <Column id="cdnm" type="STRING" size="256"/>
  291. </ColumnInfo>
  292. <Rows>
  293. <Row>
  294. <Col id="cdid">I</Col>
  295. <Col id="cdnm">입원</Col>
  296. </Row>
  297. <Row>
  298. <Col id="cdid">E</Col>
  299. <Col id="cdnm">응급</Col>
  300. </Row>
  301. <Row>
  302. <Col id="cdid">O</Col>
  303. <Col id="cdnm">외래</Col>
  304. </Row>
  305. </Rows>
  306. </Dataset>
  307. </Objects>
  308. <Bind>
  309. <BindItem id="item0" compid="group2.ipt_startreqdd" propid="value" datasetid="ds_send_srchinfo" columnid="startrepldd"/>
  310. <BindItem id="item1" compid="group2.ipt_endreqdd" propid="value" datasetid="ds_send_srchinfo" columnid="endrepldd"/>
  311. <BindItem id="item2" compid="group2.rdo_ioflag" propid="value" datasetid="ds_send_srchinfo" columnid="dateflag"/>
  312. <BindItem id="item3" compid="group2.radio1" propid="value" datasetid="ds_send_srchinfo" columnid="replstat"/>
  313. <BindItem id="item4" compid="group2.radio2" propid="value" datasetid="ds_send_srchinfo" columnid="chosflag"/>
  314. </Bind>
  315. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  316. * System Name :
  317. * Job Name :
  318. * Creator :
  319. * Make Date : 2015-11-13
  320. * Description :
  321. *---------------------------------------------------------------------------------------
  322. * Modify Date Modifier Modify Description
  323. *---------------------------------------------------------------------------------------
  324. * 2015-11-13 Live Converter TF->XP
  325. *
  326. *---------------------------------------------------------------------------------------
  327. ****************************************************************************************/
  328. include "com_commonxp::comm_main.xjs";
  329. var arErrorCode = new HashArray();
  330. /******************************************************************
  331. * Argument :
  332. * Description : 초기화
  333. ******************************************************************/
  334. function SMADC03400_oninit(obj:Form, e:InitEventInfo)
  335. {
  336. frmf_initForm(obj);
  337. }
  338. function SMADC03400_onload(obj:Form, e:LoadEventInfo)
  339. {
  340. ds_send_srchinfo.setColumn(0, "startrepldd", utlf_getCurrentDate());
  341. ds_send_srchinfo.setColumn(0, "endrepldd", utlf_getCurrentDate());
  342. // 그리드 소트만
  343. grdf_setGridSort(grd_repllist);
  344. }
  345. /******************************************************************
  346. * Argument :
  347. * Description : 조회 button event
  348. ******************************************************************/
  349. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  350. {
  351. var oParam = {};
  352. oParam.id = "TRADC03401";
  353. oParam.service = "pharmacyconsultapp.TDMMngt";
  354. oParam.method = "reqGetTDMReplRsltList";
  355. oParam.inds = "req=ds_send_srchinfo";
  356. oParam.outds = "ds_main_repllist=repllist";
  357. oParam.async = false;
  358. //oParam.callback = "cf_TRADC03401";
  359. tranf_submit(oParam);
  360. fCnstResn(); //의뢰이유를 코드명으로 나열하기
  361. }
  362. /******************************************************************
  363. * Argument : fCnstResn()
  364. * Description :
  365. ******************************************************************/
  366. function fCnstResn() {
  367. for ( var k = 0; k < ds_main_repllist.rowcount; k++ ) {
  368. var cnstresn = utlf_transNullToEmpty(ds_main_repllist.getColumn(k, "reqresn")).split(" ");
  369. var temp = "";
  370. if( cnstresn.length > 0 ) {
  371. for( i = 0; i < cnstresn.length; i++ ) {
  372. if(cnstresn[i] == "1") temp = temp + "적정용량 확인, ";
  373. else if(cnstresn[i] == "2") temp = temp + "독성의심, ";
  374. else if(cnstresn[i] == "3") temp = temp + "기대이하의 약효, ";
  375. else if(cnstresn[i] == "4") temp = temp + "상호작용약물 추가/중단, ";
  376. else if(cnstresn[i] == "5") temp = temp + "입원시 초기 농도 확인, ";
  377. else if(cnstresn[i] == "6") temp = temp + "중단 후 감소된 농도확인, ";
  378. }
  379. ds_main_repllist.setColumn(k, "reqresn", temp.substr(0, temp.length-2));
  380. }
  381. }
  382. }
  383. /******************************************************************
  384. * Argument :
  385. * Description : 일자별/월별/연별
  386. ******************************************************************/
  387. function group2_rdo_ioflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  388. {
  389. ds_send_srchinfo.setColumn(0, "startrepldd", utlf_getCurrentDate());
  390. ds_send_srchinfo.setColumn(0, "endrepldd", utlf_getCurrentDate());
  391. if( ds_send_srchinfo.getColumn(0, "dateflag") == "day" ) { //일자별
  392. group2.ipt_startreqdd.dateformat = "yyyy-mm-dd";
  393. group2.ipt_endreqdd.dateformat = "yyyy-mm-dd";
  394. }
  395. if( ds_send_srchinfo.getColumn(0, "dateflag") == "month" ) { //월별
  396. group2.ipt_startreqdd.dateformat = "yyyy-mm";
  397. group2.ipt_endreqdd.dateformat = "yyyy-mm";
  398. }
  399. if( ds_send_srchinfo.getColumn(0, "dateflag") == "year" ) { //연별
  400. group2.ipt_startreqdd.dateformat= "yyyy";
  401. group2.ipt_endreqdd.dateformat = "yyyy";
  402. }
  403. }
  404. /******************************************************************
  405. * Argument :
  406. * Description : 일자별/월별/연별
  407. ******************************************************************/
  408. function button7_onclick(obj:Button, e:ClickEventInfo)
  409. {
  410. if( ds_main_repllist.rowcount > 0 ){
  411. grdf_exportExcel(grd_repllist, "TDM회신내용조회", "TDM회신내용조회", false, "", "user", false);
  412. } else {
  413. sysf_messageBox("조회된 데이터가 ", "I004");
  414. }
  415. }
  416. ]]></Script>
  417. </Form>
  418. </FDL>