SPASB00800_약품조회.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPASB00800" position="absolute 0 0 1103 619" titletext="항생제 투약정보" oninit="SPASB00800_oninit" onload="SPASB00800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 592 1100 619" id="group6" taborder="10">
  8. <Layouts>
  9. <Layout>
  10. <Button position="absolute 1028 3 1096 25" id="btn_init" class="btn4" text="초기화" onclick="group6_btn_init_onclick"/>
  11. <Button position="absolute 3 3 59 25" id="btn_print" class="btn6" text="출력"/>
  12. </Layout>
  13. </Layouts>
  14. </Div>
  15. <Shape id="line56" linetype="horizontal" class="line_10" position="absolute 0 51 1100 57"/>
  16. <Static id="caption1" text="약품조회" class="tit_2" position="absolute 1 7 77 25"/>
  17. <Shape id="line7" linetype="horizontal" class="line_10" position="absolute 0 24 1098 30"/>
  18. <Static id="caption3" text="~" position="absolute 354 31 369 51"/>
  19. <Static id="caption4" text="약품코드" class="cell_1" position="absolute 482 28 545 51"/>
  20. <Grid id="grd_antibiomediinfo" taborder="6" binddataset="ds_grd_antibiomediinfo" useinputpanel="false" position="absolute 0 55 1100 592" cellsizingtype="col">
  21. <Formats>
  22. <Format id="default">
  23. <Columns>
  24. <Column size="30"/>
  25. <Column size="80"/>
  26. <Column size="100"/>
  27. <Column size="100"/>
  28. <Column size="100"/>
  29. <Column size="80"/>
  30. <Column size="60"/>
  31. <Column size="0"/>
  32. <Column size="100"/>
  33. <Column size="80"/>
  34. <Column size="80"/>
  35. <Column size="80"/>
  36. <Column size="0"/>
  37. <Column size="70"/>
  38. <Column size="60"/>
  39. <Column size="60"/>
  40. <Column size="60"/>
  41. <Column size="81"/>
  42. <Column size="60"/>
  43. <Column size="60"/>
  44. <Column size="50"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. <Column size="0"/>
  49. </Columns>
  50. <Rows>
  51. <Row size="24" band="head"/>
  52. <Row size="24"/>
  53. </Rows>
  54. <Band id="head">
  55. <Cell text="선택"/>
  56. <Cell col="1" text="투여시작일"/>
  57. <Cell col="2" text="투여종료일"/>
  58. <Cell col="3" text="약품코드"/>
  59. <Cell col="4" text="약품명"/>
  60. <Cell col="5" text="처방일"/>
  61. <Cell col="6" text="구분"/>
  62. <Cell col="7" text="특별약품구분"/>
  63. <Cell col="8" text="진료과"/>
  64. <Cell col="9" text="병동"/>
  65. <Cell col="10" text="병실"/>
  66. <Cell col="11" text="종류"/>
  67. <Cell col="12" text="처방명"/>
  68. <Cell col="13" text="처방의"/>
  69. <Cell col="14" text="용량"/>
  70. <Cell col="15" text="단위"/>
  71. <Cell col="16" text="1일수량"/>
  72. <Cell col="17" text="용법"/>
  73. <Cell col="18" text="횟수"/>
  74. <Cell col="19" text="날수"/>
  75. <Cell col="20" text="Hold"/>
  76. <Cell col="21" text="TPN"/>
  77. <Cell col="22" text="항암제"/>
  78. <Cell col="23" text="Steroid"/>
  79. <Cell col="24" text="비고"/>
  80. </Band>
  81. <Band id="body">
  82. <Cell displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  83. <Cell col="1" text="bind:drugusdt" mask="expr:!utlf_isNull(drugusdt) ? '####-##-##' : ''" maskchar=" "/>
  84. <Cell col="2" text="bind:druguedt" mask="expr:utlf_isNull(utlf_trim(druguedt)) ? '' : '####-##-## ##:##'" maskchar=" "/>
  85. <Cell col="3" style="align:left middle;" text="bind:drugcd"/>
  86. <Cell col="4" style="align:left middle;" text="bind:drugnm"/>
  87. <Cell col="5" text="bind:prcpdd" mask="expr:!utlf_isNull(prcpdd) ? '####-##-##' : ''" maskchar=" "/>
  88. <Cell col="6" displaytype="combo" style="align:center;" text="bind:infcflagcd" combodataset="ds_infcflagcd" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  89. <Cell col="7" displaytype="combo" edittype="combo" text="bind:spcldrug" enable="false"/>
  90. <Cell col="8" style="align:left middle;" text="bind:orddeptcd"/>
  91. <Cell col="9" text="bind:wardcd"/>
  92. <Cell col="10" text="bind:roomcd"/>
  93. <Cell col="11" displaytype="combo" style="align:center;" text="bind:drugkind" combodataset="ds_init_A0014" combocodecol="cdid" combodatacol="cdnm"/>
  94. <Cell col="12" text="bind:prcpnm"/>
  95. <Cell col="13" text="bind:orddridnm"/>
  96. <Cell col="14" text="bind:prcpvol"/>
  97. <Cell col="15" text="bind:ordunit"/>
  98. <Cell col="16" text="bind:prcpqty"/>
  99. <Cell col="17" style="align:left middle;" text="bind:basemthdcd"/>
  100. <Cell col="18" text="bind:prcptims"/>
  101. <Cell col="19" text="bind:prcpdayno"/>
  102. <Cell col="20" text="bind:holdyn"/>
  103. <Cell col="21" displaytype="combo" edittype="combo" text="bind:tpnyn"/>
  104. <Cell col="22" displaytype="combo" edittype="combo" text="bind:anticncryn"/>
  105. <Cell col="23" displaytype="combo" edittype="combo" text="bind:steroidyn"/>
  106. <Cell col="24" text="bind:etc"/>
  107. </Band>
  108. </Format>
  109. </Formats>
  110. </Grid>
  111. <Edit id="ipt_pid" taborder="0" class="input_s_essential" enable="false" position="absolute 65 30 168 49"/>
  112. <Calendar id="ipt_fromdd" taborder="1" class="input_s_essential" position="absolute 237 30 345 49"/>
  113. <Calendar id="ipt_todd" taborder="2" class="input_s_essential" position="absolute 367 30 475 49"/>
  114. <Edit id="ipt_drugcd" taborder="3" class="input_search" position="absolute 547 30 650 49"/>
  115. <Button id="btn_cnfm" taborder="9" text="확인" class="btn2" position="absolute 1055 2 1097 21" onclick="btn_cnfm_onclick"/>
  116. <Button id="btn_allchoi" taborder="7" text="전체선택" class="btn2" position="absolute 925 2 989 21" onclick="btn_allchoi_onclick"/>
  117. <Button id="btn_allcncl" taborder="8" text="전체취소" class="btn2" position="absolute 990 2 1054 21" onclick="btn_allcncl_onclick"/>
  118. <Button id="btn_drugcd" taborder="4" class="icon_search" position="absolute 654 31 670 47" onclick="btn_drugcd_onclick"/>
  119. <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 1042 29 1098 51" onclick="btn_search_onclick"/>
  120. <Static id="cap_fromdd" text="처방기간" class="cell_1" visible="true" position="absolute 172 28 235 51"/>
  121. <Static id="cap_pid" text="등록번호" class="cell_1" position="absolute 0 28 63 51"/>
  122. </Layout>
  123. </Layouts>
  124. <Objects>
  125. <Dataset id="ds_grd_antibiomediinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  126. <ColumnInfo>
  127. <Column id="check" type="STRING"/>
  128. <Column id="drugusdt" type="STRING"/>
  129. <Column id="druguedt" type="STRING"/>
  130. <Column id="drugcd" type="STRING"/>
  131. <Column id="drugnm" type="STRING"/>
  132. <Column id="prcpdd" type="STRING"/>
  133. <Column id="infcflagcd" type="STRING"/>
  134. <Column id="spcldrug" type="STRING"/>
  135. <Column id="orddeptcd" type="STRING"/>
  136. <Column id="wardcd" type="STRING"/>
  137. <Column id="roomcd" type="STRING"/>
  138. <Column id="drugkind" type="STRING"/>
  139. <Column id="prcpnm" type="STRING"/>
  140. <Column id="orddridnm" type="STRING"/>
  141. <Column id="prcpvol" type="STRING"/>
  142. <Column id="ordunit" type="STRING"/>
  143. <Column id="prcpqty" type="STRING"/>
  144. <Column id="basemthdcd" type="STRING"/>
  145. <Column id="prcptims" type="STRING"/>
  146. <Column id="prcpdayno" type="STRING"/>
  147. <Column id="holdyn" type="STRING"/>
  148. <Column id="tpnyn" type="STRING"/>
  149. <Column id="anticncryn" type="STRING"/>
  150. <Column id="steroidyn" type="STRING"/>
  151. <Column id="etc" type="STRING"/>
  152. </ColumnInfo>
  153. </Dataset>
  154. <Dataset id="ds_init_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  155. <Dataset id="ds_init_warddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  156. <Dataset id="ds_init_A0006" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  157. <Dataset id="ds_init_A0014" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  158. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  159. <ColumnInfo>
  160. <Column id="pid" type="STRING" size="256"/>
  161. <Column id="fromdd" type="STRING" size="256"/>
  162. <Column id="todd" type="STRING" size="256"/>
  163. <Column id="drugcd" type="STRING" size="256"/>
  164. </ColumnInfo>
  165. <Rows>
  166. <Row/>
  167. </Rows>
  168. </Dataset>
  169. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  170. <ColumnInfo>
  171. <Column id="drugcd" type="STRING" size="256"/>
  172. <Column id="pid" type="STRING" size="256"/>
  173. <Column id="fromdd" type="STRING" size="256"/>
  174. <Column id="todd" type="STRING" size="256"/>
  175. </ColumnInfo>
  176. <Rows>
  177. <Row/>
  178. </Rows>
  179. </Dataset>
  180. <Dataset id="ds_infcflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  181. <ColumnInfo>
  182. <Column id="cdnm" type="STRING" size="256"/>
  183. <Column id="cdid" type="STRING" size="256"/>
  184. </ColumnInfo>
  185. <Rows>
  186. <Row>
  187. <Col id="cdnm">-</Col>
  188. <Col id="cdid">-</Col>
  189. </Row>
  190. <Row>
  191. <Col id="cdnm">항암제</Col>
  192. <Col id="cdid">C</Col>
  193. </Row>
  194. <Row>
  195. <Col id="cdnm">항바이러스제</Col>
  196. <Col id="cdid">V</Col>
  197. </Row>
  198. </Rows>
  199. </Dataset>
  200. </Objects>
  201. <Bind>
  202. <BindItem id="item0" compid="ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
  203. <BindItem id="item1" compid="ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  204. <BindItem id="item2" compid="ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  205. <BindItem id="item3" compid="ipt_drugcd" propid="value" datasetid="ds_main_cond" columnid="drugcd"/>
  206. </Bind>
  207. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  208. * System Name :
  209. * Job Name :
  210. * Creator :
  211. * Make Date : 2015-11-13
  212. * Description :
  213. *---------------------------------------------------------------------------------------
  214. * Modify Date Modifier Modify Description
  215. *---------------------------------------------------------------------------------------
  216. * 2015-11-13 Live Converter TF->XP
  217. *
  218. *---------------------------------------------------------------------------------------
  219. ****************************************************************************************/
  220. include "com_commonxp::comm_main.xjs";
  221. include "com_basiccodexp::ZBC001.xjs";
  222. include "com_departmentcodexp::ZSD001.xjs";
  223. function SPASB00800_oninit(obj:Form, e:InitEventInfo)
  224. {
  225. frmf_initForm(obj);
  226. }
  227. function SPASB00800_onload(obj:Form, e:LoadEventInfo)
  228. {
  229. grdf_initGrid(grd_antibiomediinfo);
  230. grdf_setToolTipBind(grd_antibiomediinfo);
  231. ds_main_cond.copyData(arg_ds_main_cond);
  232. dsf_makeValue( ds_main_cond, "drugcd", "string", "" );
  233. fInitialize();
  234. }
  235. function fInitialize()
  236. {
  237. // 공통코드를 조회한다.
  238. var arrParam = [ { dsNm: "ds_init_A0006", cdGrpId: "A0006" }
  239. ,{ dsNm: "ds_init_A0014", cdGrpId: "A0014" }];
  240. appf_getCodeList(arrParam);
  241. // 진료과
  242. var instcd = sysf_getUserInfo("dutplceinstcd");
  243. var standard_yn = "orduseyn";
  244. var ord_deptflag = 'D';
  245. var rslt_ref = "ds_init_deptlist";
  246. sort_field = "deptcd";
  247. sort_method = "asc";
  248. var dt = utlf_getCurrentDate();
  249. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, dt, "", "",rslt_ref ,false, "");
  250. //병동
  251. standard_yn = "orduseyn";
  252. ord_deptflag = "W";
  253. rslt_ref = "ds_init_warddeptlist";
  254. sort_field = "deptcd";
  255. sort_method = "asc";
  256. var dt = utlf_getCurrentDate();
  257. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, dt, "", "",rslt_ref ,false, "");
  258. }
  259. //약품코드 조회
  260. function btn_drugcd_onclick(obj:Button, e:ClickEventInfo)
  261. {
  262. var objArg = new Object();
  263. objArg.arg_ds_main_cond = ds_main_cond;
  264. frmf_modal("SPASB01500", "SPASB01500", objArg, null, null, null, null, null, null, null, null, null, "M");
  265. }
  266. //조회버튼
  267. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  268. {
  269. fSearch();
  270. }
  271. function fSearch()
  272. {
  273. if( !frmf_isRequiredControls("ipt_pid","ipt_fromdd","ipt_todd"))
  274. {
  275. return;
  276. }
  277. //dsf_createDs("ds_send_reqdata");
  278. ds_send_reqdata.copyData(ds_main_cond);
  279. var oParam = {};
  280. oParam.id = "TRASB00801";
  281. oParam.service = "infcmngtapp.HospInfcMngt";
  282. oParam.method = "reqGetAntibioMediInfoList";
  283. oParam.inds = "req=ds_main_cond";
  284. oParam.outds = "ds_grd_antibiomediinfo=antibiomediinfolist";
  285. oParam.async = false;
  286. //oParam.callback = "cf_TRASB00801";
  287. tranf_submit(oParam);
  288. }
  289. //전체선택
  290. function btn_allchoi_onclick(obj:Button, e:ClickEventInfo)
  291. {
  292. for(var i = 0; i < ds_grd_antibiomediinfo.rowcount; i++)
  293. {
  294. ds_grd_antibiomediinfo.setColumn(i, "check", "1");
  295. }
  296. }
  297. //전체취소
  298. function btn_allcncl_onclick(obj:Button, e:ClickEventInfo)
  299. {
  300. for(var i = 0; i < ds_grd_antibiomediinfo.rowcount; i++)
  301. {
  302. ds_grd_antibiomediinfo.setColumn(i, "check", "0");
  303. }
  304. }
  305. function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
  306. {
  307. var mainObj = frmf_getMainViewer();
  308. var rtnmsg_header = "infcflagcd▦spcldrug▦drugnm▦drugusdt▦druguedt▦prcpstatcd▦tpnyn▦anticncr▦steroid▦drugcd▦etc▩";
  309. var rtnmsg_data = "";
  310. for(var iRow = 0; iRow < ds_grd_antibiomediinfo.rowcount; iRow++)
  311. {
  312. if(ds_grd_antibiomediinfo.getColumn(iRow, "check") == "1")
  313. {
  314. rtnmsg_data+= utlf_transNullToEmpty(ds_grd_antibiomediinfo.getColumn(iRow, "infcflagcd"))+"▦"
  315. +utlf_transNullToEmpty(ds_grd_antibiomediinfo.getColumn(iRow, "spcldrug"))+"▦"
  316. +utlf_transNullToEmpty(ds_grd_antibiomediinfo.getColumn(iRow, "drugnm"))+"▦"
  317. +utlf_transNullToEmpty(ds_grd_antibiomediinfo.getColumn(iRow, "drugusdt"))+"▦"
  318. +utlf_transNullToEmpty(ds_grd_antibiomediinfo.getColumn(iRow, "druguedt"))+"▦"
  319. +utlf_transNullToEmpty(ds_grd_antibiomediinfo.getColumn(iRow, "tpnyn"))+"▦"
  320. +utlf_transNullToEmpty(ds_grd_antibiomediinfo.getColumn(iRow, "anticncr"))+"▦"
  321. +utlf_transNullToEmpty(ds_grd_antibiomediinfo.getColumn(iRow, "steroid"))+"▦"
  322. +utlf_transNullToEmpty(ds_grd_antibiomediinfo.getColumn(iRow, "drugcd"))+"▦"
  323. +utlf_transNullToEmpty(ds_grd_antibiomediinfo.getColumn(iRow, "etc"))+"▩";
  324. }
  325. }
  326. //opener.frmf_setParameter("setVal", rtnmsg_header+rtnmsg_data);
  327. mainObj.frmf_setParameter("setVal", rtnmsg_header+rtnmsg_data);
  328. this.close();
  329. }
  330. function group6_btn_init_onclick(obj:Button, e:ClickEventInfo)
  331. {
  332. ds_grd_antibiomediinfo.clearData();
  333. }
  334. ]]></Script>
  335. </Form>
  336. </FDL>