SPMNW12400_약품인계내역.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNW12400" position="absolute 0 0 1201 620" titletext="약품인계내역" oninit="SPMNW12400_oninit" onload="SPMNW12400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1193 611" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="환자 전실 현황" position="absolute 5 9 113 25" id="caption1" class="tit_2"/>
  11. <Shape position="absolute 0 25 396 31" linetype="horizontal" id="line1" class="line_10"/>
  12. <Grid position="absolute 0 30 397 585" id="grd_patlist" binddataset="ds_main_patlist_patlist" oncelldblclick="grp_biz_grd_patlist_oncelldblclick">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="25"/>
  17. <Column size="110"/>
  18. <Column size="80"/>
  19. <Column size="45"/>
  20. <Column size="80"/>
  21. <Column size="45"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="24" band="head"/>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell/>
  39. <Cell col="1" rowspan="2" text="변경일시"/>
  40. <Cell col="2" colspan="2" text="From"/>
  41. <Cell col="4" colspan="2" text="To"/>
  42. <Cell col="6" text="pid"/>
  43. <Cell col="7" text="indd"/>
  44. <Cell col="8"/>
  45. <Cell col="9"/>
  46. <Cell col="10"/>
  47. <Cell col="11"/>
  48. <Cell col="12"/>
  49. <Cell col="13"/>
  50. <Cell col="14"/>
  51. <Cell row="1"/>
  52. <Cell row="1" col="2" text="병동"/>
  53. <Cell row="1" col="3" text="병실"/>
  54. <Cell row="1" col="4" text="병동"/>
  55. <Cell row="1" col="5" text="병실"/>
  56. <Cell row="1" col="6" text="pid"/>
  57. <Cell row="1" col="7" text="indd"/>
  58. <Cell row="1" col="8" text="prestwardcd"/>
  59. <Cell row="1" col="9" text="chngwardcd"/>
  60. <Cell row="1" col="10" text="appdd"/>
  61. <Cell row="1" col="11" text="apptm"/>
  62. <Cell row="1" col="12" text="prepamacptdd"/>
  63. <Cell row="1" col="13" text="prepamacpttm"/>
  64. <Cell row="1" col="14"/>
  65. </Band>
  66. <Band id="body">
  67. <Cell celltype="head" text="expr:currow +1"/>
  68. <Cell col="1" style="align:center middle;" text="bind:chngdt" mask="####-##-## ##:##"/>
  69. <Cell col="2" style="align:center middle;" text="bind:prestward"/>
  70. <Cell col="3" style="align:center middle;" text="bind:prestroom"/>
  71. <Cell col="4" style="align:center middle;" text="bind:chngward"/>
  72. <Cell col="5" style="align:center middle;" text="bind:chngroom"/>
  73. <Cell col="6" text="bind:pid"/>
  74. <Cell col="7" text="bind:indd"/>
  75. <Cell col="8" text="bind:prestwardcd"/>
  76. <Cell col="9" text="bind:chngwardcd"/>
  77. <Cell col="10" text="bind:appdd"/>
  78. <Cell col="11" text="bind:apptm"/>
  79. <Cell col="12" text="bind:prepamacptdd"/>
  80. <Cell col="13" text="bind:prepamacpttm"/>
  81. <Cell col="14" text="bind:cretno"/>
  82. </Band>
  83. </Format>
  84. </Formats>
  85. </Grid>
  86. <Static text="처방내역" position="absolute 405 9 510 25" id="caption2" class="tit_2"/>
  87. <Shape position="absolute 400 25 1193 31" linetype="horizontal" id="line2" class="line_10"/>
  88. <Grid position="absolute 400 30 1193 585" id="grd_prcpspec" binddataset="ds_main_prcpspec_prcpspec">
  89. <Formats>
  90. <Format id="default">
  91. <Columns>
  92. <Column size="80"/>
  93. <Column size="85"/>
  94. <Column size="80"/>
  95. <Column size="200"/>
  96. <Column size="35"/>
  97. <Column size="30"/>
  98. <Column size="35"/>
  99. <Column size="30"/>
  100. <Column size="30"/>
  101. <Column size="105"/>
  102. <Column size="50"/>
  103. <Column size="30"/>
  104. </Columns>
  105. <Rows>
  106. <Row size="24" band="head"/>
  107. <Row size="24"/>
  108. </Rows>
  109. <Band id="head">
  110. <Cell text="구분"/>
  111. <Cell col="1" text="약품전달"/>
  112. <Cell col="2" colspan="7" text="대상처방리스트"/>
  113. <Cell col="9" text="처방일시"/>
  114. <Cell col="10" colspan="2" text="약품전달갯수"/>
  115. </Band>
  116. <Band id="body">
  117. <Cell style="align:center middle;" text="bind:flag" suppress="1" suppressalign="middle"/>
  118. <Cell col="1" style="align:center middle;" text="bind:spec"/>
  119. <Cell col="2" style="align:left middle;" text="bind:prcpcd"/>
  120. <Cell col="3" style="align:left middle;" text="bind:prcpnm"/>
  121. <Cell col="4" style="align:right middle;linetype:onlyhorz;" text="bind:prcpvol"/>
  122. <Cell col="5" style="align:left middle;" text="bind:prcpvolunitflag"/>
  123. <Cell col="6" style="align:right middle;linetype:onlyhorz;" text="bind:prcpqty"/>
  124. <Cell col="7" style="align:left middle;" text="bind:prcpqtyunitflag"/>
  125. <Cell col="8" style="align:center middle;" text="bind:prcptims"/>
  126. <Cell col="9" style="align:center middle;" text="bind:prcpdt" mask="####/##/## ##:##"/>
  127. <Cell col="10" style="align:right middle;linetype:onlyhorz;" text="bind:transfspec"/>
  128. <Cell col="11" style="align:left middle;padding:0 0 0 0;" text="bind:transfspecunitflag"/>
  129. </Band>
  130. </Format>
  131. </Formats>
  132. </Grid>
  133. <Button position="absolute 1143 5 1192 24" id="btn_pnt" class="btn6" text="출력" onclick="grp_biz_btn_pnt_onclick"/>
  134. <Static text="※ 마약과 항정약의 주사제제는 간호 마약/항정약 처방관리 화면에서 정확한 용량을 확인하시기 바랍니다." position="absolute 400 589 1085 609" id="caption3" style="color:#0000ffff;font:Dotum,9,bold;"/>
  135. </Layout>
  136. </Layouts>
  137. </Div>
  138. </Layout>
  139. </Layouts>
  140. <Objects>
  141. <Dataset id="ds_main_patlist_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="chngdt" type="STRING" size="256"/>
  144. <Column id="prestward" type="STRING" size="256"/>
  145. <Column id="prestroom" type="STRING" size="256"/>
  146. <Column id="chngward" type="STRING" size="256"/>
  147. <Column id="chngroom" type="STRING" size="256"/>
  148. <Column id="pid" type="STRING" size="256"/>
  149. <Column id="indd" type="STRING" size="256"/>
  150. <Column id="instcd" type="STRING" size="256"/>
  151. <Column id="cretno" type="STRING" size="256"/>
  152. <Column id="hngnm" type="STRING" size="256"/>
  153. <Column id="sexage" type="STRING" size="256"/>
  154. <Column id="orddeptnm" type="STRING" size="256"/>
  155. <Column id="prepamacptdd" type="STRING" size="256"/>
  156. <Column id="prepamacpttm" type="STRING" size="256"/>
  157. </ColumnInfo>
  158. <Rows>
  159. <Row>
  160. <Col id="chngdt"/>
  161. <Col id="prestward"/>
  162. <Col id="prestroom"/>
  163. <Col id="chngward"/>
  164. <Col id="chngroom"/>
  165. <Col id="pid"/>
  166. <Col id="indd"/>
  167. <Col id="instcd"/>
  168. <Col id="cretno"/>
  169. <Col id="hngnm"/>
  170. <Col id="sexage"/>
  171. <Col id="orddeptnm"/>
  172. <Col id="prepamacptdd"/>
  173. <Col id="prepamacpttm"/>
  174. </Row>
  175. </Rows>
  176. </Dataset>
  177. <Dataset id="ds_main_prcpspec_prcpspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  178. <ColumnInfo>
  179. <Column id="flag" type="STRING" size="256"/>
  180. <Column id="spec" type="STRING" size="256"/>
  181. <Column id="prcpcd" type="STRING" size="256"/>
  182. <Column id="prcpnm" type="STRING" size="256"/>
  183. <Column id="prcpvol" type="STRING" size="256"/>
  184. <Column id="prcpqty" type="STRING" size="256"/>
  185. <Column id="prcptims" type="STRING" size="256"/>
  186. <Column id="prcpdayno" type="STRING" size="256"/>
  187. <Column id="prcpdt" type="STRING" size="256"/>
  188. <Column id="prcpvolunitflag" type="STRING" size="256"/>
  189. <Column id="prcpqtyunitflag" type="STRING" size="256"/>
  190. <Column id="transfspecunitflag" type="STRING" size="256"/>
  191. </ColumnInfo>
  192. <Rows>
  193. <Row>
  194. <Col id="flag"/>
  195. <Col id="spec"/>
  196. <Col id="prcpcd"/>
  197. <Col id="prcpnm"/>
  198. <Col id="prcpvol"/>
  199. <Col id="prcpqty"/>
  200. <Col id="prcptims"/>
  201. <Col id="prcpdayno"/>
  202. <Col id="prcpdt"/>
  203. <Col id="prcpvolunitflag"/>
  204. <Col id="prcpqtyunitflag"/>
  205. <Col id="transfspecunitflag"/>
  206. </Row>
  207. </Rows>
  208. </Dataset>
  209. </Objects>
  210. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  211. * System Name :
  212. * Job Name :
  213. * Creator :
  214. * Make Date : 2015-11-13
  215. * Description :
  216. *---------------------------------------------------------------------------------------
  217. * Modify Date Modifier Modify Description
  218. *---------------------------------------------------------------------------------------
  219. * 2015-11-13 Live Converter TF->XP
  220. *
  221. *---------------------------------------------------------------------------------------
  222. ****************************************************************************************/
  223. include "com_commonxp::comm_main.xjs";
  224. /*SPMNW12400_oninit*/
  225. function SPMNW12400_oninit(obj:Form, e:InitEventInfo)
  226. {
  227. frmf_initForm(obj);
  228. }
  229. /*SPMNW12400_onload*/
  230. function SPMNW12400_onload(obj:Form, e:LoadEventInfo)
  231. {
  232. ds_main_patlist_patlist.clearData();
  233. //메뉴에서 사용할 경우 사용자의 병동으로 세팅
  234. var instcd = sysf_getUserInfo("dutplceinstcd");
  235. var pid = "";
  236. var indd = ""; // 추가_20081229(ByJA)
  237. if(frmf_checkOpener() ) {
  238. pid = opener.frmf_getParameter("SPMNW12400_PARAM1");
  239. indd = opener.frmf_getParameter("SPMNW12400_PARAM2"); // 추가_20081229(ByJA)
  240. dsf_createDs("ds_send");
  241. dsf_makeValue(ds_send,"pid" , "string" , pid);
  242. dsf_makeValue(ds_send,"indd", "string" , indd); // 추가_20081229(ByJA)
  243. var oParam = {};
  244. oParam.id = "TRMNW12401";
  245. oParam.service = "wardcareapp.WardCareMngt";
  246. oParam.method = "reqGetChngRoomStat";
  247. oParam.inds = "req=ds_send";
  248. oParam.outds = "ds_main_patlist_patlist=patlist";
  249. oParam.async = false;
  250. tranf_submit(oParam);
  251. }
  252. }
  253. /*grp_biz_grd_patlist_oncelldblclick*/
  254. function grp_biz_grd_patlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  255. {
  256. var pid = grp_biz.grd_patlist.getCellValue(grp_biz.grd_patlist.currentrow, grp_biz.grd_patlist.getBindCellIndex("body","pid"));
  257. var indd = grp_biz.grd_patlist.getCellValue(grp_biz.grd_patlist.currentrow, grp_biz.grd_patlist.getBindCellIndex("body","indd"));
  258. var prestwardcd = grp_biz.grd_patlist.getCellValue(grp_biz.grd_patlist.currentrow, grp_biz.grd_patlist.getBindCellIndex("body","prestwardcd"));
  259. var chngwardcd = grp_biz.grd_patlist.getCellValue(grp_biz.grd_patlist.currentrow, grp_biz.grd_patlist.getBindCellIndex("body","chngwardcd"));
  260. var appdd = grp_biz.grd_patlist.getCellValue(grp_biz.grd_patlist.currentrow, grp_biz.grd_patlist.getBindCellIndex("body","appdd"));
  261. var apptm = grp_biz.grd_patlist.getCellValue(grp_biz.grd_patlist.currentrow, grp_biz.grd_patlist.getBindCellIndex("body","apptm"));
  262. var prepamacptdd= grp_biz.grd_patlist.getCellValue(grp_biz.grd_patlist.currentrow, grp_biz.grd_patlist.getBindCellIndex("body","prepamacptdd"));
  263. var prepamacpttm= grp_biz.grd_patlist.getCellValue(grp_biz.grd_patlist.currentrow, grp_biz.grd_patlist.getBindCellIndex("body","prepamacpttm"));
  264. var cretno = grp_biz.grd_patlist.getCellValue(grp_biz.grd_patlist.currentrow, grp_biz.grd_patlist.getBindCellIndex("body","cretno"));
  265. var prestroomcd = grp_biz.grd_patlist.getCellValue(grp_biz.grd_patlist.currentrow, grp_biz.grd_patlist.getBindCellIndex("body","prestroom"));
  266. var chngroomcd = grp_biz.grd_patlist.getCellValue(grp_biz.grd_patlist.currentrow, grp_biz.grd_patlist.getBindCellIndex("body","chngroom"));
  267. dsf_createDs("ds_send_req");
  268. dsf_makeValue(ds_send_req,"pid" , "string" , pid);
  269. dsf_makeValue(ds_send_req,"indd" , "string" , indd);
  270. dsf_makeValue(ds_send_req,"prestwardcd" , "string" , prestwardcd);
  271. dsf_makeValue(ds_send_req,"chngwardcd" , "string" , chngwardcd);
  272. dsf_makeValue(ds_send_req,"appdd" , "string" , appdd);
  273. dsf_makeValue(ds_send_req,"apptm" , "string" , apptm);
  274. dsf_makeValue(ds_send_req,"prepamacptdd", "string" , prepamacptdd);
  275. dsf_makeValue(ds_send_req,"prepamacpttm", "string" , prepamacpttm);
  276. dsf_makeValue(ds_send_req,"cretno" , "string" , cretno);
  277. dsf_makeValue(ds_send_req,"prestroomcd" , "string" , prestroomcd);
  278. dsf_makeValue(ds_send_req,"chngroomcd" , "string" , chngroomcd);
  279. var oParam = {};
  280. oParam.id = "TRMNW12402";
  281. oParam.service = "wardcareapp.WardCareMngt";
  282. oParam.method = "reqGetDrugPrcpSpec";
  283. oParam.inds = "req=ds_send_req";
  284. oParam.outds = "ds_main_prcpspec_prcpspec=prcpspec";
  285. oParam.async = false;
  286. tranf_submit(oParam);
  287. }
  288. /*grp_biz_btn_pnt_onclick*/
  289. function grp_biz_btn_pnt_onclick(obj:Button, e:ClickEventInfo)
  290. {
  291. dsf_createDs("ds_send_patlist");
  292. ds_send_patlist.copyData(ds_main_patlist_patlist);
  293. dsf_createDs("ds_send_prcpspec");
  294. ds_send_prcpspec.copyData(ds_main_prcpspec_prcpspec);
  295. var objDOM = rptf_createDOM();
  296. rptf_setNodeListToDOM(objDOM, "/root/send/prcpspec/prcpspec", ds_send_prcpspec); // 데이터셋 1
  297. rptf_setNodeListToDOM(objDOM, "/root/send/patlist", ds_send_patlist); // 데이터셋 2
  298. var objParam = new Object();
  299. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  300. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  301. rptf_exeReportPreview30(["RPMNW12400"],[objParam], option);
  302. }
  303. ]]></Script>
  304. </Form>
  305. </FDL>