SMMNW10000_예약정보.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNW10000" position="absolute 0 0 1195 249" titletext="예약정보" onload="SMMNW10000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 249" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="외래예약" position="absolute 0 23 95 39" id="caption1" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 40 594 46" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  12. <Grid position="absolute 0 45 594 125" id="grd_ordrsrvinfo" binddataset="ds_grd_ordrsrvinfo" anchor="default" cellsizingtype="col" tooltiptype="hover" autofittype="col">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="20"/>
  17. <Column size="102"/>
  18. <Column size="0"/>
  19. <Column size="150"/>
  20. <Column size="100"/>
  21. <Column size="90"/>
  22. <Column size="80"/>
  23. <Column size="30"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. </Columns>
  30. <Rows>
  31. <Row size="22" band="head"/>
  32. <Row size="21"/>
  33. </Rows>
  34. <Band id="head">
  35. <Cell/>
  36. <Cell col="1" text="예약일시"/>
  37. <Cell col="2" text="예약요일"/>
  38. <Cell col="3" text="진료과"/>
  39. <Cell col="4" text="센터"/>
  40. <Cell col="5" text="진료의"/>
  41. <Cell col="6" text="예약등록일시"/>
  42. <Cell col="7" text="수납"/>
  43. <Cell col="8" text="진료과코드"/>
  44. <Cell col="9" text="센터코드"/>
  45. <Cell col="10" text="하위부서코드"/>
  46. <Cell col="11" text="진료의ID"/>
  47. <Cell col="12"/>
  48. </Band>
  49. <Band id="body">
  50. <Cell celltype="head" expr="expr:currow + 1"/>
  51. <Cell col="1" displaytype="date" text="bind:rsrvdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext" tooltiptext="bind:rsrvdt"/>
  52. <Cell col="2" text="bind:rsrvday" mask="yyyy-mm-dd hh:mm"/>
  53. <Cell col="3" style="align:left;" text="bind:orddeptnm" tooltiptext="bind:orddeptnm"/>
  54. <Cell col="4" text="bind:centnm" tooltiptext="bind:centnm"/>
  55. <Cell col="5" style="align:left;" text="bind:orddrnm" tooltiptext="bind:orddrnm"/>
  56. <Cell col="6" displaytype="date" text="bind:fstrgstdt" calendardisplaynulltype="nulltext" tooltiptext="bind:fstrgstdt"/>
  57. <Cell col="7" text="bind:rcptamt" tooltiptext="bind:rcptamt"/>
  58. <Cell col="8" text="bind:orddeptcd"/>
  59. <Cell col="9" text="bind:centcd"/>
  60. <Cell col="10" text="bind:subdeptcd"/>
  61. <Cell col="11" text="bind:orddrid"/>
  62. <Cell col="12" text="bind:subdeptnm"/>
  63. </Band>
  64. </Format>
  65. </Formats>
  66. </Grid>
  67. <Static text="퇴원 후 외래 처방" position="absolute 599 23 725 39" id="caption2" class="tit_2" anchor="default"/>
  68. <Shape position="absolute 599 40 1195 46" linetype="horizontal" id="line2" class="line_10" anchor="default"/>
  69. <Grid position="absolute 599 45 1195 125" id="grd_testrsrvinfo" binddataset="ds_grd_testrsrvinfo" anchor="default" extendsizetype="row" autosizingtype="row" cellsizingtype="col" tooltiptype="hover" autofittype="col">
  70. <Formats>
  71. <Format id="default">
  72. <Columns>
  73. <Column size="20"/>
  74. <Column size="50"/>
  75. <Column size="60"/>
  76. <Column size="0"/>
  77. <Column size="180"/>
  78. <Column size="100"/>
  79. <Column size="105"/>
  80. <Column size="65"/>
  81. <Column size="0"/>
  82. <Column size="0"/>
  83. </Columns>
  84. <Rows>
  85. <Row size="22" band="head"/>
  86. <Row size="21"/>
  87. </Rows>
  88. <Band id="head">
  89. <Cell/>
  90. <Cell col="1" text="처방분류"/>
  91. <Cell col="2" text="처방코드"/>
  92. <Cell col="3" text="예약일시"/>
  93. <Cell col="4" text="처방명"/>
  94. <Cell col="5" text="처방과"/>
  95. <Cell col="6" text="시행부서"/>
  96. <Cell col="7" text="희망일자"/>
  97. <Cell col="8" text="부서코드"/>
  98. <Cell col="9" text="수가코드"/>
  99. </Band>
  100. <Band id="body">
  101. <Cell celltype="head" expr="expr:currow + 1"/>
  102. <Cell col="1" style="align:left;" text="bind:prcpclsnm" tooltiptext="bind:prcpclsnm"/>
  103. <Cell col="2" style="align:left;" text="bind:calcscorcd" tooltiptext="bind:calcscorcd"/>
  104. <Cell col="3" text="bind:rsrvdt" mask="yyyy-mm-dd hh:mm"/>
  105. <Cell col="4" style="align:left;" text="bind:testnm" tooltiptext="bind:testnm"/>
  106. <Cell col="5" style="align:left;padding:2 0 2 0;" text="bind:orddeptcdnm" wordwrap="word" tooltiptext="bind:orddeptcdnm"/>
  107. <Cell col="6" style="align:left;padding:2 0 2 0;" text="bind:testplacnm" wordwrap="word" tooltiptext="bind:testplacnm"/>
  108. <Cell col="7" displaytype="date" text="bind:prcphopedd" calendardisplaynulltype="nulltext" tooltiptext="bind:prcphopedd"/>
  109. <Cell col="8" text="bind:orddeptcd"/>
  110. <Cell col="9" text="bind:stat"/>
  111. </Band>
  112. </Format>
  113. </Formats>
  114. </Grid>
  115. <Static text="퇴원약 투약사항" position="absolute 0 131 128 147" id="caption3" class="tit_2" anchor="default"/>
  116. <Shape position="absolute 0 148 1195 153" linetype="horizontal" id="line3" class="line_10" anchor="default"/>
  117. <Grid position="absolute 0 152 1195 249" id="grd_dschdrugmedifact" binddataset="ds_grd_dschdrugmedifact" anchor="default" autofittype="col" cellsizingtype="col" tooltiptype="hover">
  118. <Formats>
  119. <Format id="default">
  120. <Columns>
  121. <Column size="0"/>
  122. <Column size="25"/>
  123. <Column size="100"/>
  124. <Column size="365"/>
  125. <Column size="60"/>
  126. <Column size="35"/>
  127. <Column size="54"/>
  128. <Column size="37"/>
  129. <Column size="50"/>
  130. <Column size="60"/>
  131. <Column size="185"/>
  132. <Column size="210"/>
  133. <Column size="0"/>
  134. </Columns>
  135. <Rows>
  136. <Row size="22" band="head"/>
  137. <Row size="21"/>
  138. </Rows>
  139. <Band id="head">
  140. <Cell text="처방번호"/>
  141. <Cell col="1"/>
  142. <Cell col="2" text="약품코드"/>
  143. <Cell col="3" text="약품명[* : 혼동주의/고위험 약제]"/>
  144. <Cell col="4" colspan="2" text="1회 용량" taborder="undefined"/>
  145. <Cell col="6" colspan="2" text="1회 수량" taborder="undefined"/>
  146. <Cell col="8" text="횟수"/>
  147. <Cell col="9" text="일수"/>
  148. <Cell col="10" text="용법"/>
  149. <Cell col="11" text="주의사항"/>
  150. <Cell col="12" text="부서코드"/>
  151. </Band>
  152. <Band id="body">
  153. <Cell text="bind:prcpno"/>
  154. <Cell col="1" celltype="head" expr="expr:currow + 1"/>
  155. <Cell col="2" style="align:left;" text="bind:drugcd" tooltiptext="bind:drugcd"/>
  156. <Cell col="3" style="align:left;" text="bind:drugnm" tooltiptext="bind:drugnm"/>
  157. <Cell col="4" style="align:right;" text="bind:drprcpetc7" tooltiptext="bind:drprcpetc7"/>
  158. <Cell col="5" style="align:left;" text="bind:prcpvolunitflag" tooltiptext="bind:prcpvolunitflag"/>
  159. <Cell col="6" style="align:right;" text="bind:drprcpetc8" tooltiptext="bind:drprcpetc8"/>
  160. <Cell col="7" style="align:left;" text="bind:prcpqtyunitflag" tooltiptext="bind:prcpqtyunitflag"/>
  161. <Cell col="8" text="bind:prcptims" tooltiptext="bind:prcptims"/>
  162. <Cell col="9" text="bind:prcpdayno" tooltiptext="bind:prcpdayno"/>
  163. <Cell col="10" style="align:left middle;" text="bind:direc" tooltiptext="bind:direc"/>
  164. <Cell col="11" style="align:left;" text="bind:caucnts" tooltiptext="bind:caucnts"/>
  165. <Cell col="12" text="bind:orddeptcd"/>
  166. </Band>
  167. </Format>
  168. </Formats>
  169. </Grid>
  170. <Static text="입원의뢰서 정보" position="absolute 0 2 120 22" id="caption4" class="tit_2" anchor="default"/>
  171. <Edit readonly="true" position="absolute 121 0 577 20" id="output1" anchor="default" class="output"/>
  172. </Layout>
  173. </Layouts>
  174. </Div>
  175. </Layout>
  176. </Layouts>
  177. <Objects>
  178. <Dataset id="ds_grd_ordrsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  179. <ColumnInfo>
  180. <Column id="rsrvdt" type="STRING"/>
  181. <Column id="rsrvday" type="STRING"/>
  182. <Column id="orddeptnm" type="STRING"/>
  183. <Column id="centnm" type="STRING"/>
  184. <Column id="orddrnm" type="STRING"/>
  185. <Column id="fstrgstdt" type="STRING"/>
  186. <Column id="rcptamt" type="STRING"/>
  187. <Column id="orddeptcd" type="STRING"/>
  188. <Column id="centcd" type="STRING"/>
  189. <Column id="subdeptcd" type="STRING"/>
  190. <Column id="orddrid" type="STRING"/>
  191. <Column id="subdeptnm" type="STRING"/>
  192. </ColumnInfo>
  193. </Dataset>
  194. <Dataset id="ds_grd_testrsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  195. <ColumnInfo>
  196. <Column id="prcpclsnm" type="STRING"/>
  197. <Column id="calcscorcd" type="STRING"/>
  198. <Column id="rsrvdt" type="STRING"/>
  199. <Column id="testnm" type="STRING"/>
  200. <Column id="testplacnm" type="STRING"/>
  201. <Column id="prcphopedd" type="STRING"/>
  202. <Column id="orddeptcd" type="STRING"/>
  203. <Column id="stat" type="STRING"/>
  204. <Column id="orddeptcdnm" type="STRING" size="0"/>
  205. </ColumnInfo>
  206. </Dataset>
  207. <Dataset id="ds_grd_dschdrugmedifact" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  208. <ColumnInfo>
  209. <Column id="prcpno" type="STRING"/>
  210. <Column id="drugcd" type="STRING"/>
  211. <Column id="drugnm" type="STRING"/>
  212. <Column id="drprcpetc7" type="STRING"/>
  213. <Column id="prcpvolunitflag" type="STRING"/>
  214. <Column id="drprcpetc8" type="STRING"/>
  215. <Column id="prcpqtyunitflag" type="STRING"/>
  216. <Column id="prcptims" type="STRING"/>
  217. <Column id="prcpdayno" type="STRING"/>
  218. <Column id="direc" type="STRING"/>
  219. <Column id="caucnts" type="STRING"/>
  220. <Column id="orddeptcd" type="STRING"/>
  221. </ColumnInfo>
  222. </Dataset>
  223. <Dataset id="ds_main_inrsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="inreq" type="STRING" size="256"/>
  226. </ColumnInfo>
  227. <Rows>
  228. <Row/>
  229. </Rows>
  230. </Dataset>
  231. <Dataset id="ds_temp_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  232. <ColumnInfo>
  233. <Column id="pid" type="STRING" size="256"/>
  234. <Column id="indd" type="STRING" size="256"/>
  235. <Column id="cretno" type="STRING" size="256"/>
  236. <Column id="orddeptcd" type="STRING" size="256"/>
  237. <Column id="instcd" type="STRING" size="256"/>
  238. <Column id="dschdclrdt" type="STRING" size="256"/>
  239. <Column id="dschdclrtyn" type="STRING" size="256"/>
  240. <Column id="wardcd" type="STRING" size="256"/>
  241. <Column id="roomcd" type="STRING" size="256"/>
  242. <Column id="hngnm2" type="STRING" size="256"/>
  243. <Column id="sex" type="STRING" size="256"/>
  244. <Column id="age" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. <Rows>
  247. <Row/>
  248. </Rows>
  249. </Dataset>
  250. <Dataset id="ds_temp_dschtransferinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  251. <Dataset id="ds_hidden_ordrsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  252. <ColumnInfo>
  253. <Column id="rsrvdt" type="STRING"/>
  254. <Column id="rsrvday" type="STRING"/>
  255. <Column id="orddeptnm" type="STRING"/>
  256. <Column id="centnm" type="STRING"/>
  257. <Column id="orddrnm" type="STRING"/>
  258. <Column id="fstrgstdt" type="STRING"/>
  259. <Column id="rcptamt" type="STRING"/>
  260. <Column id="orddeptcd" type="STRING"/>
  261. <Column id="centcd" type="STRING"/>
  262. <Column id="subdeptcd" type="STRING"/>
  263. <Column id="orddrid" type="STRING"/>
  264. <Column id="subdeptnm" type="STRING"/>
  265. </ColumnInfo>
  266. </Dataset>
  267. </Objects>
  268. <Bind>
  269. <BindItem id="item0" compid="grp_biz.output1" propid="value" datasetid="ds_main_inrsrvinfo" columnid="inreq"/>
  270. </Bind>
  271. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  272. * System Name :
  273. * Job Name :
  274. * Creator :
  275. * Make Date : 2015-11-13
  276. * Description :
  277. *---------------------------------------------------------------------------------------
  278. * Modify Date Modifier Modify Description
  279. *---------------------------------------------------------------------------------------
  280. * 2015-11-13 Live Converter TF->XP
  281. *
  282. *---------------------------------------------------------------------------------------
  283. ****************************************************************************************/
  284. include "com_commonxp::comm_main.xjs";
  285. function fGetRsrvInfo(){
  286. /*var pid = model.getValue("/root/temp/cond/list/pid");*/
  287. var pid = ds_temp_cond.getColumn(0, "pid");
  288. var _tmp = String(ds_temp_cond.getColumn(0, "dschdclrdt"));
  289. var _dschdclrdt = _tmp.substr(0, 8)
  290. ds_temp_cond.setColumn(0, "dschdclrdt", _dschdclrdt );
  291. if (pid != ""){
  292. /*submit("TRMNW10001");*/
  293. //this.grp_biz.grd_dschdrugmedifact.
  294. var oParam = {};
  295. oParam.id = "TRMNW10001";
  296. oParam.service = "wardcareapp.WardDschCareRec";
  297. oParam.method = "reqGetPamRsrvInfo";
  298. oParam.inds = "req=ds_temp_cond";
  299. oParam.outds = "ds_grd_ordrsrvinfo=ordrsrvinfo ds_grd_testrsrvinfo=testrsrvinfo ds_grd_dschdrugmedifact=dschdrugfactinfo ds_temp_dschtransferinfo=dschtransferinfo ds_main_inrsrvinfo=inrsrvinfo";
  300. oParam.async = false;
  301. tranf_submit(oParam);
  302. //trace("ds_grd_testrsrvinfo:" + ds_grd_testrsrvinfo.saveXML());
  303. // model.makeNode("/root/main/dschcareinfo/ordrsrvinfo"); //-> ds_grd_ordsrvinfo
  304. // model.makeNode("/root/main/dschcareinfo/testrsrvinfo"); //-> ds_grd_testsrvinfo
  305. // model.makeNode("/root/main/dschcareinfo/dschdrugfactinfo"); //-> ds_grd_dschdrugmedifact
  306. /*copyNodeType("/root/main/dschcareinfo/ordrsrvinfo", "/root/hidden/dschcareinfo/ordrsrvinfo");*/
  307. dsf_copyDs(ds_hidden_ordrsrvinfo, this.ds_grd_ordrsrvinfo , "replace"); //after, before, replace,
  308. var dschdclrtyn = ds_temp_cond.getColumn(0, "dschdclrtyn"); //퇴원예고
  309. //trace("dschdclrtyn : " + dschdclrtyn);
  310. if(dschdclrtyn == 'N') {
  311. //model.makeValue("/root/main/dschcareinfo/rsrvinfo/inrsrvinfo/inreq", "입원예정으로 발급된 입원장이 없습니다.");
  312. ds_main_inrsrvinfo.setColumn(0, "inreq", "입원예정으로 발급된 입원장이 없습니다.");
  313. }
  314. if(ds_main_inrsrvinfo.rowcount == 0)
  315. {
  316. ds_main_inrsrvinfo.addRow();
  317. }
  318. if(utlf_isNull(ds_main_inrsrvinfo.getColumn(0, "inreq"))){
  319. ds_main_inrsrvinfo.setColumn(0, "inreq", "입원예정으로 발급된 입원장이 없습니다.");
  320. }
  321. // var cnt = getNodesetCount("/root/main/dschcareinfo/testrsrvinfo");
  322. var cnt = this.ds_grd_testrsrvinfo.rowcount;
  323. if(cnt> 0){
  324. for(var i=0;i< ds_grd_testrsrvinfo.rowcount ;i++){
  325. var testplacnm = ds_grd_testrsrvinfo.getColumn( i, "testplacnm");
  326. if(testplacnm.length > 8){
  327. var testplacnm2 = testplacnm.substr(testplacnm.length-8,testplacnm.length-4);
  328. if(testplacnm2.isNumber() == true){
  329. ds_grd_testrsrvinfo.setColumn(i, "testplacnm",testplacnm.substr(0,testplacnm.length-8));
  330. }
  331. }
  332. }
  333. }
  334. // grd_ordrsrvinfo.rebuild();
  335. // grd_testrsrvinfo.rebuild();
  336. // grd_dschdrugmedifact.rebuild();
  337. //model.refresh();
  338. }
  339. }
  340. function SMMNW10000_onload(obj:Form, e:LoadEventInfo)
  341. {
  342. frmf_initForm(obj);
  343. // grdf_initGrid(grp_biz.grd_dschdrugmedifact);
  344. // grdf_initGrid(grp_biz.grd_ordrsrvinfo);
  345. // grdf_initGrid(grp_biz.grd_testrsrvinfo);
  346. }
  347. ]]></Script>
  348. </Form>
  349. </FDL>