SPLLP90400_환자전실정보조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLLP90400" position="absolute 0 0 600 559" titletext="입원환자조회" onload="SPLLP90400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="6" position="absolute 12 6 588 48" class="div_SA2">
  8. <Layouts>
  9. <Layout/>
  10. </Layouts>
  11. </Div>
  12. <Static id="caption1" class="tit_2" position="absolute 12 248 177 268" anchor="default" positiontype="position" text="전실내역조회"/>
  13. <Shape id="line1" class="line_1" position="absolute 0 215 570 215" anchor="default" positiontype="position" linetype="horizontal"/>
  14. <Grid id="grd_patlist" position="absolute 12 268 588 525" anchor="default" positiontype="position" binddataset="ds_grid_grd_patlist" autofittype="col" cellsizingtype="col">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="30"/>
  19. <Column size="110"/>
  20. <Column size="80"/>
  21. <Column size="45"/>
  22. <Column size="80"/>
  23. <Column size="45"/>
  24. <Column size="80"/>
  25. <Column size="80"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell rowspan="2"/>
  42. <Cell col="1" rowspan="2" text="변경일시"/>
  43. <Cell col="2" colspan="2" text="From"/>
  44. <Cell col="4" colspan="2" text="To"/>
  45. <Cell col="6" rowspan="2" text="등록번호"/>
  46. <Cell col="7" rowspan="2" text="환자명"/>
  47. <Cell col="8" text="indd"/>
  48. <Cell col="9"/>
  49. <Cell col="10"/>
  50. <Cell col="11"/>
  51. <Cell col="12"/>
  52. <Cell col="13"/>
  53. <Cell col="14"/>
  54. <Cell col="15"/>
  55. <Cell row="1" col="2" text="병동"/>
  56. <Cell row="1" col="3" text="병실"/>
  57. <Cell row="1" col="4" text="병동"/>
  58. <Cell row="1" col="5" text="병실"/>
  59. <Cell row="1" col="8" text="indd"/>
  60. <Cell row="1" col="9" text="prestwardcd"/>
  61. <Cell row="1" col="10" text="chngwardcd"/>
  62. <Cell row="1" col="11" text="appdd"/>
  63. <Cell row="1" col="12" text="apptm"/>
  64. <Cell row="1" col="13" text="prepamacptdd"/>
  65. <Cell row="1" col="14" text="prepamacpttm"/>
  66. <Cell row="1" col="15"/>
  67. </Band>
  68. <Band id="body">
  69. <Cell celltype="head" expr="currow+1"/>
  70. <Cell col="1" text="bind:chngdt" mask="@@@@-@@-@@ @@:@@"/>
  71. <Cell col="2" text="bind:prestward"/>
  72. <Cell col="3" text="bind:prestroom"/>
  73. <Cell col="4" text="bind:chngward"/>
  74. <Cell col="5" text="bind:chngroom"/>
  75. <Cell col="6" text="bind:pid"/>
  76. <Cell col="7" text="bind:hngnm"/>
  77. <Cell col="8" text="bind:indd"/>
  78. <Cell col="9" text="bind:prestwardcd"/>
  79. <Cell col="10" text="bind:chngwardcd"/>
  80. <Cell col="11" text="bind:appdd"/>
  81. <Cell col="12" text="bind:apptm"/>
  82. <Cell col="13" text="bind:prepamacptdd"/>
  83. <Cell col="14" text="bind:prepamacpttm"/>
  84. <Cell col="15" text="bind:cretno"/>
  85. </Band>
  86. </Format>
  87. </Formats>
  88. </Grid>
  89. <Button id="button3" class="btn1" taborder="4" position="absolute 521 17 577 37" anchor="default" positiontype="position" text="조회" onclick="button3_onclick"/>
  90. <Static id="caption2" class="search_name" position="absolute 21 17 95 37" anchor="default" positiontype="position" text="검색구분"/>
  91. <Edit id="ipt_refval" class="input_search" taborder="3" position="absolute 241 17 361 37" anchor="default" positiontype="position" imemode="hangul" onkeydown="ipt_refval_onkeydown" lengthunit="utf8" maxlength="9" inputtype="digit"/>
  92. <Radio id="rdo_refflag" class="radio_search" columncount="2" position="absolute 98 17 238 37" anchor="default" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_refflag_onitemchanged">
  93. <Dataset id="innerdataset">
  94. <ColumnInfo>
  95. <Column id="codecolumn" size="256"/>
  96. <Column id="datacolumn" size="256"/>
  97. </ColumnInfo>
  98. <Rows>
  99. <Row>
  100. <Col id="codecolumn">1</Col>
  101. <Col id="datacolumn">등록번호</Col>
  102. </Row>
  103. <Row>
  104. <Col id="codecolumn">2</Col>
  105. <Col id="datacolumn">환자명</Col>
  106. </Row>
  107. </Rows>
  108. </Dataset>
  109. </Radio>
  110. <Grid id="grd_patinfo" position="absolute 12 78 588 238" anchor="default" positiontype="position" onclick="grd_patinfo_onclick" binddataset="ds_grid_grd_patinfo" autofittype="col" oncellclick="grd_patinfo_oncellclick" cellsizingtype="col">
  111. <Formats>
  112. <Format id="default">
  113. <Columns>
  114. <Column size="30"/>
  115. <Column size="80"/>
  116. <Column size="80"/>
  117. <Column size="80"/>
  118. <Column size="80"/>
  119. <Column size="100"/>
  120. <Column size="100"/>
  121. </Columns>
  122. <Rows>
  123. <Row size="22" band="head"/>
  124. <Row size="20"/>
  125. </Rows>
  126. <Band id="head">
  127. <Cell/>
  128. <Cell col="1" text="등록번호"/>
  129. <Cell col="2" text="환자명"/>
  130. <Cell col="3" text="입원일자"/>
  131. <Cell col="4" text="진료과"/>
  132. <Cell col="5" text="병동"/>
  133. <Cell col="6" text="병실"/>
  134. </Band>
  135. <Band id="body">
  136. <Cell celltype="head" expr="currow+1"/>
  137. <Cell col="1" text="bind:pid"/>
  138. <Cell col="2" text="bind:patnm"/>
  139. <Cell col="3" text="bind:indd" mask="####-##-##"/>
  140. <Cell col="4" text="bind:orddeptnm"/>
  141. <Cell col="5" text="bind:wardcd"/>
  142. <Cell col="6" text="bind:roomcd"/>
  143. </Band>
  144. </Format>
  145. </Formats>
  146. </Grid>
  147. <Static id="caption3" class="tit_2" position="absolute 12 58 117 78" anchor="default" positiontype="position" text="입원환자조회"/>
  148. <Shape id="line2" class="line_1" position="absolute 0 25 570 25" anchor="default" positiontype="position" linetype="horizontal"/>
  149. <Button id="btn_save" taborder="7" text="닫기" class="btn4" position="absolute 532 530 588 552" onclick="btn_save_onclick"/>
  150. </Layout>
  151. </Layouts>
  152. <Objects>
  153. <Dataset id="ds_grid_grd_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  154. <ColumnInfo>
  155. <Column id="chngdt" type="STRING"/>
  156. <Column id="prestward" type="STRING"/>
  157. <Column id="prestroom" type="STRING"/>
  158. <Column id="chngward" type="STRING"/>
  159. <Column id="chngroom" type="STRING"/>
  160. <Column id="pid" type="STRING"/>
  161. <Column id="hngnm" type="STRING"/>
  162. <Column id="indd" type="STRING"/>
  163. <Column id="prestwardcd" type="STRING"/>
  164. <Column id="chngwardcd" type="STRING"/>
  165. <Column id="appdd" type="STRING"/>
  166. <Column id="apptm" type="STRING"/>
  167. <Column id="prepamacptdd" type="STRING"/>
  168. <Column id="prepamacpttm" type="STRING"/>
  169. <Column id="cretno" type="STRING"/>
  170. </ColumnInfo>
  171. </Dataset>
  172. <Dataset id="ds_grid_grd_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  173. <ColumnInfo>
  174. <Column id="pid" type="STRING"/>
  175. <Column id="patnm" type="STRING"/>
  176. <Column id="indd" type="STRING"/>
  177. <Column id="orddeptnm" type="STRING"/>
  178. <Column id="wardcd" type="STRING"/>
  179. <Column id="roomcd" type="STRING"/>
  180. </ColumnInfo>
  181. </Dataset>
  182. </Objects>
  183. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  184. * System Name :
  185. * Job Name :
  186. * Creator :
  187. * Make Date : 2015-05-01
  188. * Description :
  189. *---------------------------------------------------------------------------------------
  190. * Modify Date Modifier Modify Description
  191. *---------------------------------------------------------------------------------------
  192. * 2015-05-01 Live Converter TF->XP
  193. *
  194. *---------------------------------------------------------------------------------------
  195. ****************************************************************************************/
  196. include "com_commonxp::comm_main.xjs";
  197. include "lis_commonxp::LLZ001.xjs";
  198. function lf_setInit()
  199. {
  200. var instcd = sysf_getUserInfo("dutplceinstcd");
  201. var pid = "";
  202. var indd = "";
  203. var ioflag = "";
  204. pid = appf_getPatientInfoDetail("pid");
  205. indd = appf_getPatientInfoDetail("indd");
  206. ioflag = appf_getPatientInfoDetail("ioflag");
  207. if( !utlf_isNull(pid))
  208. {
  209. if(ioflag == "I")
  210. {
  211. var sInDsName = dsf_createDsRow("in_ds_search", [{col: "pid", val: pid} //등록번호
  212. , {col: "indd", val: indd}]); // 조회구분
  213. ds_grid_grd_patlist.clearData();
  214. var oParam = {};
  215. oParam.id = "TRMNW12401";
  216. oParam.service = "wardcareapp.WardCareMngt";
  217. oParam.method = "reqGetChngRoomStat";
  218. oParam.inds = "req="+sInDsName;
  219. oParam.outds = "ds_grid_grd_patlist=patlist";
  220. oParam.async = false;
  221. tranf_submit(oParam);
  222. }else{
  223. sysf_messageBox("입원환자가 아닙니다.","I");
  224. return;
  225. }
  226. }
  227. }
  228. //입원환자조회
  229. function lf_getPatinfo(){
  230. var sInDsName = dsf_createDsRow("in_ds_search"
  231. , [{col: "searchtext", val: ipt_refval.value} //등록번호
  232. , {col: "searchgbn", val: rdo_refflag.value}]); // 조회구분
  233. ds_grid_grd_patinfo.clearData();
  234. var oParam = {};
  235. oParam.id = "TRLLP90401";
  236. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  237. oParam.method = "reqGetPatInDD";
  238. oParam.inds = "cond="+sInDsName;
  239. oParam.outds = "ds_grid_grd_patinfo=getPatInDD";
  240. oParam.async = false;
  241. tranf_submit(oParam);
  242. if(ds_grid_grd_patinfo.rowcount>0){
  243. lf_getPatinfolist();
  244. }
  245. }
  246. //전실내역조회
  247. function lf_getPatinfolist(){
  248. var pid = ds_grid_grd_patinfo.getColumn(ds_grid_grd_patinfo.rowposition,"pid");
  249. var indd = ds_grid_grd_patinfo.getColumn(ds_grid_grd_patinfo.rowposition,"indd");
  250. var sInDsName = dsf_createDsRow("in_ds_search"
  251. , [{col: "pid", val: pid} //등록번호
  252. , {col: "indd", val: indd}]); // 조회구분
  253. ds_grid_grd_patlist.clearData();
  254. if(indd != null){
  255. var oParam = {};
  256. oParam.id = "TRMNW12401";
  257. oParam.service = "wardcareapp.WardCareMngt";
  258. oParam.method = "reqGetChngRoomStat";
  259. oParam.inds = "req="+sInDsName;
  260. oParam.outds = "ds_grid_grd_patlist=patlist";
  261. oParam.async = false;
  262. tranf_submit(oParam);
  263. }else{
  264. sysf_messageBox("입원환자가 아닙니다.","I");
  265. return;
  266. }
  267. }
  268. function SPLLP90400_onload(obj:Form, e:LoadEventInfo)
  269. {
  270. frmf_initForm(obj); // 화면공통
  271. rdo_refflag.value="1";
  272. lf_setInit();
  273. //그리드 Sort
  274. grdf_setGridSort(grd_patinfo);
  275. grdf_setGridSort(grd_patlist);
  276. }
  277. //조회버튼
  278. function button3_onclick(obj:Button, e:ClickEventInfo)
  279. {
  280. lf_getPatinfo();
  281. }
  282. //검색어 입력 후 엔터
  283. function ipt_refval_onkeydown(obj:Edit, e:KeyEventInfo)
  284. {
  285. if(e.keycode=="13"){
  286. lf_getPatinfo();
  287. }
  288. }
  289. //입원환자조회 그리드 클릭해 전실내역조회
  290. function grd_patinfo_oncellclick(obj:Grid, e:GridClickEventInfo)
  291. {
  292. lf_getPatinfolist();
  293. }
  294. //검색구분 변경하면 검색어 null
  295. function rdo_refflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  296. {
  297. ipt_refval.value="";
  298. if(rdo_refflag.value == 1){ // 등록번호
  299. ipt_refval.maxlength = "9";
  300. ipt_refval.inputtype = "digit";
  301. }else{ // 환자명
  302. //ipt_refval.lengthunit = "utf8";
  303. ipt_refval.maxlength = "50";
  304. ipt_refval.inputtype = "normal";
  305. }
  306. }
  307. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  308. {
  309. this.close();
  310. }
  311. ]]></Script>
  312. </Form>
  313. </FDL>