SMLBR00500_Irr처방관리.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLBR00500" position="absolute 0 0 1177 766" titletext="Irr처방관리" oninit="SMLBR00500_oninit" onload="SMLBR00500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" taborder="1" position="absolute 0 39 435 74" anchor="default" class="div_SA2">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 15 9 101 26" anchor="default"/>
  11. <Edit id="iptSearch" taborder="1" position="absolute 110 8 220 27" anchor="default" onkeydown="group1_iptSearch_onkeydown"/>
  12. <Button id="btn_search" taborder="2" position="absolute 202 10 218 25" style="background:skyblue;" onclick="group1_btn_search_onclick"/>
  13. </Layout>
  14. </Layouts>
  15. </Div>
  16. <Static id="caption3" text="환자수진내역" class="tit_2" position="absolute 0 84 102 101" anchor="default"/>
  17. <Grid id="grd_patinfo" taborder="2" binddataset="ds_grd_patinfo" useinputpanel="false" position="absolute 0 105 435 764" anchor="default" oncellclick="grd_patinfo_oncellclick" autosizingtype="none" cellsizingtype="none" autofittype="col">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="26"/>
  22. <Column size="100"/>
  23. <Column size="100"/>
  24. <Column size="100"/>
  25. <Column size="100"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. </Columns>
  31. <Rows>
  32. <Row size="24" band="head"/>
  33. <Row size="24"/>
  34. </Rows>
  35. <Band id="head">
  36. <Cell/>
  37. <Cell col="1" text="진료일"/>
  38. <Cell col="2" text="진료과"/>
  39. <Cell col="3" text="진료의"/>
  40. <Cell col="4" text="진료구분"/>
  41. <Cell col="5" text="진료과코드"/>
  42. <Cell col="6" text="진료의ID"/>
  43. <Cell col="7"/>
  44. <Cell col="8"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell text="expr:currow + 1"/>
  48. <Cell col="1" displaytype="date" edittype="date" text="bind:orddd"/>
  49. <Cell col="2" text="bind:orddeptnm"/>
  50. <Cell col="3" text="bind:orddrnm"/>
  51. <Cell col="4" text="bind:ordgbn"/>
  52. <Cell col="5" text="bind:orddeptcd"/>
  53. <Cell col="6" text="bind:orddrid"/>
  54. <Cell col="7" text="bind:pid"/>
  55. <Cell col="8" text="bind:cretno"/>
  56. </Band>
  57. </Format>
  58. </Formats>
  59. </Grid>
  60. <Edit id="ipt_wbc" taborder="3" class="input_default" enable="false" position="absolute 525 60 645 79" anchor="left top"/>
  61. <Static id="caption4" text="진 료 과" class="cell_1" position="absolute 450 84 522 107" anchor="left top"/>
  62. <Edit id="input2" taborder="4" class="input_default" enable="false" position="absolute 725 60 845 79" anchor="left top"/>
  63. <Static id="cpt_wbc" text="등록번호" class="cell_1" position="absolute 450 59 522 82" anchor="left top"/>
  64. <Edit id="input4" taborder="5" class="input_default" enable="false" position="absolute 525 85 645 104" anchor="left top"/>
  65. <Edit id="input5" taborder="6" class="input_default" enable="false" position="absolute 725 85 845 104" anchor="left top" oneditclick="input5_oneditclick"/>
  66. <Static id="caption2" text="환자정보" class="tit_2" position="absolute 450 39 550 60" anchor="left top"/>
  67. <Static id="caption5" text="성 명" class="cell_1" position="absolute 650 59 722 82" anchor="left top"/>
  68. <Static id="caption7" text="진 료 일" class="cell_1" position="absolute 650 84 722 107" anchor="left top"/>
  69. <Edit id="input7" taborder="7" class="input_default" enable="false" position="absolute 968 85 1005 104" anchor="left top"/>
  70. <Static id="caption8" text="주민번호" class="cell_1" position="absolute 850 59 922 82" anchor="left top"/>
  71. <Static id="caption9" text="성별/나이" class="cell_1" position="absolute 850 84 922 107" anchor="left top"/>
  72. <Edit id="input3" taborder="8" class="input_default" enable="false" position="absolute 925 60 985 79" anchor="left top"/>
  73. <Edit id="input6" taborder="9" class="input_default" enable="false" position="absolute 987 60 1057 79" anchor="left top"/>
  74. <Edit id="input8" taborder="10" class="input_default" enable="false" position="absolute 925 85 965 104" anchor="left top"/>
  75. <Grid id="grd_prcpcdlist" taborder="11" binddataset="ds_grd_prcpcdlist" useinputpanel="false" position="absolute 450 144 1175 264" anchor="left top right" autofittype="col">
  76. <Formats>
  77. <Format id="default">
  78. <Columns>
  79. <Column size="27"/>
  80. <Column size="30"/>
  81. <Column size="125"/>
  82. <Column size="340"/>
  83. <Column size="0"/>
  84. </Columns>
  85. <Rows>
  86. <Row size="24" band="head"/>
  87. <Row size="24"/>
  88. </Rows>
  89. <Band id="head">
  90. <Cell/>
  91. <Cell col="1"/>
  92. <Cell col="2" text="처방코드"/>
  93. <Cell col="3" text="처방명"/>
  94. <Cell col="4" text="검체코드"/>
  95. </Band>
  96. <Band id="body">
  97. <Cell text="expr:currow + 1"/>
  98. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  99. <Cell col="2" text="bind:prcpcd"/>
  100. <Cell col="3" text="bind:prcpnm"/>
  101. <Cell col="4" text="bind:spccd"/>
  102. </Band>
  103. </Format>
  104. </Formats>
  105. </Grid>
  106. <Static id="caption10" text="처방리스트" class="tit_2" position="absolute 450 124 536 140" anchor="left top"/>
  107. <Static id="caption11" text="완료처방리스트" class="tit_2" position="absolute 450 274 564 290" anchor="left top"/>
  108. <Grid id="grd_rsltlist" taborder="12" binddataset="ds_grd_rsltlist" useinputpanel="false" position="absolute 450 294 1175 764" anchor="left top right" autofittype="col">
  109. <Formats>
  110. <Format id="default">
  111. <Columns>
  112. <Column size="27"/>
  113. <Column size="100"/>
  114. <Column size="110"/>
  115. <Column size="300"/>
  116. <Column size="130"/>
  117. </Columns>
  118. <Rows>
  119. <Row size="24" band="head"/>
  120. <Row size="24"/>
  121. </Rows>
  122. <Band id="head">
  123. <Cell/>
  124. <Cell col="1" text="처방일자"/>
  125. <Cell col="2" text="처방코드"/>
  126. <Cell col="3" text="처방명"/>
  127. <Cell col="4" text="검사결과"/>
  128. </Band>
  129. <Band id="body">
  130. <Cell text="expr:currow + 1"/>
  131. <Cell col="1" displaytype="date" edittype="date" text="bind:prcpdd" mask="yyyy-MM-dd"/>
  132. <Cell col="2" text="bind:prcpcd"/>
  133. <Cell col="3" text="bind:prcpnm"/>
  134. <Cell col="4" text="bind:reptrslt"/>
  135. </Band>
  136. </Format>
  137. </Formats>
  138. </Grid>
  139. <Button id="btn_save" taborder="13" text="처방저장" class="btn4" position="absolute 1092 13 1172 35" anchor="top right" onclick="btn_save_onclick"/>
  140. <Static id="caption6" text="Irr 처방관리" class="tit_1" position="absolute 0 0 144 25" anchor="default"/>
  141. <Shape id="line1" onclick="grp3_line3_onclick" class="line_3" position="absolute 0 102 435 107" anchor="default" style="strokepen:3 solid #33bbbbff;"/>
  142. <Shape id="line00" onclick="grp3_line3_onclick" class="line_3" position="absolute 450 141 1175 146" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  143. <Shape id="line02" onclick="grp3_line3_onclick" class="line_3" position="absolute 450 291 1175 296" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  144. <Shape id="line03" onclick="grp3_line3_onclick" class="line_3" position="absolute 449 56 1174 61" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  145. <Shape id="line04" onclick="grp3_line3_onclick" class="line_3" position="absolute 450 81 1175 86" anchor="left top right" style="strokepen:1 solid #33bbbbff;"/>
  146. <Shape id="line05" onclick="grp3_line3_onclick" class="line_3" position="absolute 450 106 1175 111" anchor="left top right" style="strokepen:1 solid #33bbbbff;"/>
  147. </Layout>
  148. </Layouts>
  149. <Objects>
  150. <Dataset id="ds_grd_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  151. <ColumnInfo>
  152. <Column id="orddd" type="STRING"/>
  153. <Column id="orddeptnm" type="STRING"/>
  154. <Column id="orddrnm" type="STRING"/>
  155. <Column id="ordgbn" type="STRING"/>
  156. <Column id="orddeptcd" type="STRING"/>
  157. <Column id="orddrid" type="STRING"/>
  158. <Column id="pid" type="STRING"/>
  159. <Column id="cretno" type="STRING"/>
  160. </ColumnInfo>
  161. </Dataset>
  162. <Dataset id="ds_grd_prcpcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  163. <ColumnInfo>
  164. <Column id="chk" type="STRING"/>
  165. <Column id="prcpcd" type="STRING"/>
  166. <Column id="prcpnm" type="STRING"/>
  167. <Column id="spccd" type="STRING"/>
  168. </ColumnInfo>
  169. </Dataset>
  170. <Dataset id="ds_grd_rsltlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  171. <ColumnInfo>
  172. <Column id="prcpdd" type="STRING"/>
  173. <Column id="prcpcd" type="STRING"/>
  174. <Column id="prcpnm" type="STRING"/>
  175. <Column id="reptrslt" type="STRING"/>
  176. </ColumnInfo>
  177. </Dataset>
  178. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  179. <ColumnInfo>
  180. <Column id="patid" type="STRING" size="256"/>
  181. <Column id="dbsend" type="STRING" size="256"/>
  182. </ColumnInfo>
  183. <Rows>
  184. <Row/>
  185. </Rows>
  186. </Dataset>
  187. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  188. <ColumnInfo>
  189. <Column id="pid" type="STRING" size="256"/>
  190. <Column id="orddd" type="STRING" size="256"/>
  191. <Column id="orddeptcd" type="STRING" size="256"/>
  192. <Column id="orddrid" type="STRING" size="256"/>
  193. <Column id="cretno" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. <Rows>
  196. <Row/>
  197. </Rows>
  198. </Dataset>
  199. <Dataset id="ds_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="prcpcd" type="STRING" size="256"/>
  202. <Column id="spccd" type="STRING" size="256"/>
  203. </ColumnInfo>
  204. </Dataset>
  205. <Dataset id="ds_dbsend" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  206. <ColumnInfo>
  207. <Column id="pid" type="STRING" size="256"/>
  208. <Column id="orddd" type="STRING" size="256"/>
  209. <Column id="orddrid" type="STRING" size="256"/>
  210. <Column id="orddeptcd" type="STRING" size="256"/>
  211. <Column id="cretno" type="STRING" size="256"/>
  212. <Column id="data1" type="STRING" size="256"/>
  213. </ColumnInfo>
  214. <Rows>
  215. <Row/>
  216. </Rows>
  217. </Dataset>
  218. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  219. <ColumnInfo>
  220. <Column id="searchtext" type="STRING" size="256"/>
  221. </ColumnInfo>
  222. <Rows>
  223. <Row/>
  224. </Rows>
  225. </Dataset>
  226. <Dataset id="ds_patid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  227. <ColumnInfo>
  228. <Column id="patid" type="STRING" size="256"/>
  229. </ColumnInfo>
  230. <Rows>
  231. <Row/>
  232. </Rows>
  233. </Dataset>
  234. <Dataset id="ds_toppatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  235. <ColumnInfo>
  236. <Column id="pid" type="STRING" size="256"/>
  237. <Column id="patnm" type="STRING" size="256"/>
  238. <Column id="rrgstno1" type="STRING" size="256"/>
  239. <Column id="rrgstno2" type="STRING" size="256"/>
  240. <Column id="orddeptnm" type="STRING" size="256"/>
  241. <Column id="orddd" type="STRING" size="256"/>
  242. <Column id="sex" type="STRING" size="256"/>
  243. <Column id="age" type="STRING" size="256"/>
  244. </ColumnInfo>
  245. <Rows>
  246. <Row/>
  247. </Rows>
  248. </Dataset>
  249. </Objects>
  250. <Bind>
  251. <BindItem id="item0" compid="ipt_wbc" propid="value" datasetid="ds_toppatinfo" columnid="pid"/>
  252. <BindItem id="item1" compid="input2" propid="value" datasetid="ds_toppatinfo" columnid="patnm"/>
  253. <BindItem id="item2" compid="input3" propid="value" datasetid="ds_toppatinfo" columnid="rrgstno1"/>
  254. <BindItem id="item3" compid="input6" propid="value" datasetid="ds_toppatinfo" columnid="rrgstno2"/>
  255. <BindItem id="item4" compid="input4" propid="value" datasetid="ds_toppatinfo" columnid="orddeptnm"/>
  256. <BindItem id="item5" compid="input5" propid="value" datasetid="ds_toppatinfo" columnid="orddd"/>
  257. <BindItem id="item6" compid="input8" propid="value" datasetid="ds_toppatinfo" columnid="sex"/>
  258. <BindItem id="item7" compid="input7" propid="value" datasetid="ds_toppatinfo" columnid="age"/>
  259. </Bind>
  260. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  261. * System Name :
  262. * Job Name :
  263. * Creator :
  264. * Make Date : 2015-05-01
  265. * Description :
  266. *---------------------------------------------------------------------------------------
  267. * Modify Date Modifier Modify Description
  268. *---------------------------------------------------------------------------------------
  269. * 2015-05-01 Live Converter TF->XP
  270. *
  271. *---------------------------------------------------------------------------------------
  272. ****************************************************************************************/
  273. include "com_commonxp::comm_main.xjs";
  274. include "lis_commonxp::LLZ001.xjs";
  275. function SMLBR00500_oninit(obj:Form, e:InitEventInfo)
  276. {
  277. //폼 초기화 함수
  278. frmf_initForm(obj);
  279. }
  280. function SMLBR00500_onload(obj:Form, e:LoadEventInfo)
  281. {
  282. grdf_initGrid(grd_patinfo);
  283. grdf_initGrid(grd_prcpcdlist);
  284. grdf_initGrid(grd_rsltlist);
  285. }
  286. function cf_TRLBR00502(sSvcId, nErrorCode, sErrorMsg) {
  287. if(nErrorCode < 0) return;
  288. }
  289. function cf_TXLBR00501(sSvcId, nErrorCode, sErrorMsg) {
  290. if(nErrorCode < 0) return;
  291. }
  292. function fClickResultList()
  293. {
  294. var currow = ds_grd_patinfo.rowposition;
  295. ds_dbsend.setColumn(0, "orddd", ds_grd_patinfo.getColumn(currow, "orddd"));
  296. ds_dbsend.setColumn(0, "orddeptcd", ds_grd_patinfo.getColumn(currow, "orddeptcd"));
  297. ds_dbsend.setColumn(0, "orddrid", ds_grd_patinfo.getColumn(currow, "orddrid"));
  298. ds_dbsend.setColumn(0, "pid", ds_grd_patinfo.getColumn(currow, "pid"));
  299. ds_dbsend.setColumn(0, "cretno", ds_grd_patinfo.getColumn(currow, "cretno"));
  300. var oParam = {};
  301. oParam.id = "TRLBR00502";
  302. oParam.service = "rsltmngtapp.RsltMngt";
  303. oParam.method = "reqGetIrr3GridList";
  304. oParam.inds = "cond=ds_dbsend";
  305. oParam.outds = "ds_grd_prcpcdlist=getIrrPrcpList ds_grd_rsltlist=getIrrPatRsltList ds_toppatinfo=getIrrPatTopInfo";
  306. oParam.async = false;
  307. //oParam.callback = "cf_TRLBR00502";
  308. tranf_submit(oParam);
  309. }
  310. function fInsRsltSave()
  311. {
  312. var prcpRows = grd_prcpcdlist.rowcount;
  313. var saveflag = "N";
  314. for(var iRow = 0; iRow < prcpRows ; iRow++)
  315. {
  316. if(ds_grd_prcpcdlist.getColumn(iRow, "chk") == "1")
  317. {
  318. grdf_setStatus(grd_prcpcdlist, "U" ,iRow);
  319. saveflag = "Y";
  320. }
  321. else
  322. {
  323. grdf_setStatus(grd_prcpcdlist, "I", iRow);
  324. }
  325. }
  326. if(saveflag == "N")
  327. {
  328. alert("저장할 처방이 없습니다.");
  329. }
  330. var temp = grdf_getGridUpdateData(grd_prcpcdlist, "all");
  331. ds_data1.copyData(temp, true);
  332. trace(ds_data1);
  333. var oParam = {};
  334. oParam.id = "TXLBR00501";
  335. oParam.service = "rsltmngtapp.RsltMngt";
  336. oParam.method = "reqSetIrrPrcpList";
  337. oParam.inds = "cond=ds_dbsend prcd=ds_data1";
  338. oParam.transaction = false;
  339. oParam.async = false;
  340. oParam.callback = "cf_TXLBR00501";
  341. tranf_submit(oParam);
  342. fClickResultList();
  343. }
  344. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  345. {
  346. fInsRsltSave();
  347. }
  348. function group1_iptSearch_onkeydown(obj:Edit, e:KeyEventInfo)
  349. {
  350. if( e.keycode == 13 )
  351. {
  352. if(utlf_isNull(group1.iptSearch.value))
  353. {
  354. alert("등록번호를 입력하세요");
  355. }
  356. else
  357. {
  358. fClickResultList();
  359. ds_hidden_ref.setColumn(0, "searchtext", (group1.iptSearch.text).toUpperCase());
  360. ds_patid.setColumn(0, "patid", ds_hidden_ref.getColumn(0, "searchtext"));
  361. var oParam = {};
  362. oParam.id = "TRLBR00501";
  363. oParam.service = "rsltmngtapp.RsltMngt";
  364. oParam.method = "reqGetPatIrrList";
  365. oParam.inds = "cond=ds_patid";
  366. oParam.outds = "ds_grd_patinfo=getPatIrrList";
  367. oParam.async = false;
  368. //oParam.callback = "cf_TRLBR00501";
  369. tranf_submit(oParam);
  370. ds_grd_patinfo.rowposition = 0;;
  371. }
  372. }
  373. }
  374. function grd_patinfo_oncellclick(obj:Grid, e:GridClickEventInfo)
  375. {
  376. fClickResultList();
  377. }
  378. function fClickResultList(){
  379. var grd_Row = ds_grd_patinfo.rowposition ;
  380. // model.setValue("/root/send/dbsend/orddd", model.getValue("/root/main/patinfo[" + grd_Row + "]/orddd"));
  381. // model.setValue("/root/send/dbsend/orddeptcd", model.getValue("/root/main/patinfo[" + grd_Row + "]/orddeptcd"));
  382. // model.setValue("/root/send/dbsend/orddrid", model.getValue("/root/main/patinfo[" + grd_Row + "]/orddrid"));
  383. // model.setValue("/root/send/dbsend/pid", model.getValue("/root/main/patinfo[" + grd_Row + "]/pid"));
  384. // model.setValue("/root/send/dbsend/cretno", model.getValue("/root/main/patinfo[" + grd_Row + "]/cretno"));
  385. ds_dbsend.setColumn(0, "orddd", ds_grd_patinfo.getColumn(grd_Row, "orddd"));
  386. ds_dbsend.setColumn(0, "orddeptcd", ds_grd_patinfo.getColumn(grd_Row, "orddeptcd"));
  387. ds_dbsend.setColumn(0, "orddrid", ds_grd_patinfo.getColumn(grd_Row, "orddrid"));
  388. ds_dbsend.setColumn(0, "pid", ds_grd_patinfo.getColumn(grd_Row, "pid"));
  389. ds_dbsend.setColumn(0, "cretno", ds_grd_patinfo.getColumn(grd_Row, "cretno"));
  390. // submit("TRLBR00502");
  391. var oParam = {};
  392. oParam.id = "TRLBR00502";
  393. oParam.service = "rsltmngtapp.RsltMngt";
  394. oParam.method = "reqGetIrr3GridList";
  395. oParam.inds = "cond=ds_dbsend";
  396. oParam.outds = "ds_grd_prcpcdlist=getIrrPrcpList ds_grd_rsltlist=getIrrPatRsltList ds_toppatinfo=getIrrPatTopInfo";
  397. oParam.async = false;
  398. oParam.callback = "cf_TRLBR00502";
  399. tranf_submit(oParam);
  400. }
  401. ]]></Script>
  402. </Form>
  403. </FDL>