SPASI00400_전과전동내역조회.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPASI00400" position="absolute 0 0 1116 619" titletext="전과전동기록내역" oninit="SPASI00400_oninit" onload="SPASI00400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="line56" linetype="horizontal" class="line_10" position="absolute 0 51 1100 57"/>
  8. <Static id="caption1" text="전과전동내역조회" class="tit_2" position="absolute 1 5 126 22"/>
  9. <Shape id="line7" linetype="horizontal" class="line_10" position="absolute 0 21 1100 27"/>
  10. <Static id="caption3" text="~" position="absolute 379 29 394 49"/>
  11. <Calendar id="ipt_todd" taborder="2" class="input_s_essential" position="absolute 392 28 505 47"/>
  12. <Calendar id="ipt_fromdd" taborder="1" class="input_s_essential" position="absolute 261 28 374 47"/>
  13. <Edit id="ipt_pid" taborder="0" class="input_s_essential" position="absolute 69 27 172 46"/>
  14. <Grid id="grd_fstdeptfstwardlist" taborder="5" binddataset="ds_grd_fstdeptfstwardlist" useinputpanel="false" position="absolute 0 55 1100 592" cellsizingtype="col">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="0"/>
  19. <Column size="0"/>
  20. <Column size="25"/>
  21. <Column size="53"/>
  22. <Column size="100"/>
  23. <Column size="95"/>
  24. <Column size="0"/>
  25. <Column size="100"/>
  26. <Column size="90"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="85"/>
  30. <Column size="80"/>
  31. <Column size="0"/>
  32. <Column size="100"/>
  33. <Column size="100"/>
  34. <Column size="90"/>
  35. <Column size="0"/>
  36. <Column size="85"/>
  37. <Column size="80"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="24" band="head"/>
  43. <Row size="24"/>
  44. </Rows>
  45. <Band id="head">
  46. <Cell text="성명"/>
  47. <Cell col="1" text="성별/나이"/>
  48. <Cell col="2"/>
  49. <Cell col="3" text="구분"/>
  50. <Cell col="4" text="전과전동일시"/>
  51. <Cell col="5" text="전과"/>
  52. <Cell col="6" text="전병동코드"/>
  53. <Cell col="7" text="전병동"/>
  54. <Cell col="8" text="전병실"/>
  55. <Cell col="9" text="전동전입원기간"/>
  56. <Cell col="10" text="전스탭id(전문의)"/>
  57. <Cell col="11" text="전스탭(전문의)"/>
  58. <Cell col="12" text="전주치의"/>
  59. <Cell col="13" text="현병동입실기간"/>
  60. <Cell col="14" text="후과"/>
  61. <Cell col="15" text="후병동"/>
  62. <Cell col="16" text="후병실"/>
  63. <Cell col="17" text="후스탭id(전문의)"/>
  64. <Cell col="18" text="후스탭(전문의)"/>
  65. <Cell col="19" text="후주치의"/>
  66. <Cell col="20"/>
  67. <Cell col="21"/>
  68. </Band>
  69. <Band id="body">
  70. <Cell text="bind:pname"/>
  71. <Cell col="1" text="bind:sa"/>
  72. <Cell col="2" celltype="head" text="expr:currow + 1"/>
  73. <Cell col="3" displaytype="combo" style="align:center;" text="bind:adflag" combodataset="ds_init_adflag" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  74. <Cell col="4" displaytype="date" text="bind:fstdeptfstwarddt" mask="expr:utlf_isNull(utlf_trim(fstdeptfstwarddt)) ? '' : 'yyyy-MM-dd HH:mm'" maskchar=" "/>
  75. <Cell col="5" style="align:left;" text="bind:latdeptnm" enable="false"/>
  76. <Cell col="6" text="bind:fstwardcd"/>
  77. <Cell col="7" style="align:left;" text="bind:latwardnm" enable="false"/>
  78. <Cell col="8" text="bind:latroomcd"/>
  79. <Cell col="9" text="bind:fstwardfstindd"/>
  80. <Cell col="10" text="bind:fstmedispclid"/>
  81. <Cell col="11" text="bind:latmedispcl"/>
  82. <Cell col="12" text="bind:latatdoct"/>
  83. <Cell col="13" text="bind:prestdeptwardindd"/>
  84. <Cell col="14" style="align:left;" text="bind:fstdeptnm" enable="false"/>
  85. <Cell col="15" style="align:left;" text="bind:fstwardnm"/>
  86. <Cell col="16" text="bind:fstroomcd"/>
  87. <Cell col="17" text="bind:latmedispclid"/>
  88. <Cell col="18" text="bind:fstmedispcl"/>
  89. <Cell col="19" text="bind:fstatdoct"/>
  90. <Cell col="20" text="bind:fstdeptfstwarddd"/>
  91. <Cell col="21" text="bind:fstdeptfstwardtm"/>
  92. </Band>
  93. </Format>
  94. </Formats>
  95. </Grid>
  96. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 1042 28 1098 50" onclick="btn_search_onclick"/>
  97. <Button id="btn_cnfm" taborder="4" text="확인" class="btn2" visible="false" position="absolute 1055 2 1097 21" onclick="btn_cnfm_onclick"/>
  98. <Static id="cap_pid" text="등록번호" class="cell_1" position="absolute 0 25 66 48"/>
  99. <Static id="cap_fromdd" text="전과전동기간" class="cell_1" position="absolute 173 26 260 49"/>
  100. <Button id="btn_print" taborder="7" text="출력" class="btn6" position="absolute 147 595 203 617" visible="false"/>
  101. <Button id="btn_init" taborder="6" text="초기화" class="btn4" position="absolute 1028 595 1096 617" onclick="btn_init_onclick"/>
  102. <Button id="button2" taborder="9" text="Excel" class="btn7" position="absolute 4 595 64 617" onclick="button2_onclick"/>
  103. <Static id="cap_pname1" position="absolute 565 30 667 47" text="cap_pname"/>
  104. <Static id="cap_pname00" text="cap_age" position="absolute 661 30 763 47"/>
  105. </Layout>
  106. </Layouts>
  107. <Objects>
  108. <Dataset id="ds_grd_fstdeptfstwardlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="pname" type="STRING"/>
  111. <Column id="sa" type="STRING"/>
  112. <Column id="adflag" type="STRING"/>
  113. <Column id="fstdeptfstwarddt" type="STRING"/>
  114. <Column id="latdeptnm" type="STRING"/>
  115. <Column id="fstwardcd" type="STRING"/>
  116. <Column id="latwardnm" type="STRING"/>
  117. <Column id="latroomcd" type="STRING"/>
  118. <Column id="fstwardfstindd" type="STRING"/>
  119. <Column id="fstmedispclid" type="STRING"/>
  120. <Column id="latmedispcl" type="STRING"/>
  121. <Column id="latatdoct" type="STRING"/>
  122. <Column id="prestdeptwardindd" type="STRING"/>
  123. <Column id="fstdeptnm" type="STRING"/>
  124. <Column id="fstwardnm" type="STRING"/>
  125. <Column id="fstroomcd" type="STRING"/>
  126. <Column id="latmedispclid" type="STRING"/>
  127. <Column id="fstmedispcl" type="STRING"/>
  128. <Column id="fstatdoct" type="STRING"/>
  129. <Column id="fstdeptfstwarddd" type="STRING"/>
  130. <Column id="fstdeptfstwardtm" type="STRING"/>
  131. </ColumnInfo>
  132. </Dataset>
  133. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  134. <ColumnInfo>
  135. <Column id="pid" type="STRING" size="256"/>
  136. <Column id="fromdd" type="STRING" size="256"/>
  137. <Column id="todd" type="STRING" size="256"/>
  138. </ColumnInfo>
  139. <Rows>
  140. <Row/>
  141. </Rows>
  142. </Dataset>
  143. <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  144. <ColumnInfo>
  145. <Column id="pname" type="STRING" size="256"/>
  146. <Column id="sa" type="STRING" size="256"/>
  147. </ColumnInfo>
  148. <Rows>
  149. <Row/>
  150. </Rows>
  151. </Dataset>
  152. <Dataset id="ds_init_initdate" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  153. <ColumnInfo>
  154. <Column id="today" type="STRING" size="256"/>
  155. </ColumnInfo>
  156. </Dataset>
  157. <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="trgtmancnt" type="STRING" size="256"/>
  160. <Column id="fromdd" type="STRING" size="256"/>
  161. <Column id="todd" type="STRING" size="256"/>
  162. </ColumnInfo>
  163. </Dataset>
  164. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  165. <Dataset id="ds_init_adflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="cdnm" type="STRING"/>
  168. <Column id="cdid" type="STRING"/>
  169. </ColumnInfo>
  170. <Rows>
  171. <Row>
  172. <Col id="cdnm">전실</Col>
  173. <Col id="cdid">1</Col>
  174. </Row>
  175. <Row>
  176. <Col id="cdnm">전과</Col>
  177. <Col id="cdid">2</Col>
  178. </Row>
  179. <Row>
  180. <Col id="cdnm">입원(W)</Col>
  181. <Col id="cdid">3</Col>
  182. </Row>
  183. <Row>
  184. <Col id="cdnm">입원</Col>
  185. <Col id="cdid">4</Col>
  186. </Row>
  187. <Row>
  188. <Col id="cdnm">퇴원</Col>
  189. <Col id="cdid">5</Col>
  190. </Row>
  191. </Rows>
  192. </Dataset>
  193. </Objects>
  194. <Bind>
  195. <BindItem id="item0" compid="ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
  196. <BindItem id="item1" compid="ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  197. <BindItem id="item2" compid="ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  198. <BindItem id="item3" compid="cap_pname1" propid="text" datasetid="ds_main_patinfo" columnid="pname"/>
  199. <BindItem id="item4" compid="cap_pname00" propid="text" datasetid="ds_main_patinfo" columnid="sa"/>
  200. </Bind>
  201. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  202. * System Name :
  203. * Job Name :
  204. * Creator :
  205. * Make Date : 2015-11-13
  206. * Description :
  207. *---------------------------------------------------------------------------------------
  208. * Modify Date Modifier Modify Description
  209. *---------------------------------------------------------------------------------------
  210. * 2015-11-13 Live Converter TF->XP
  211. *
  212. *---------------------------------------------------------------------------------------
  213. ****************************************************************************************/
  214. include "com_commonxp::comm_main.xjs";
  215. include "com_basiccodexp::ZBC001.xjs";
  216. include "com_departmentcodexp::ZSD001.xjs";
  217. function SPASI00400_oninit(obj:Form, e:InitEventInfo)
  218. {
  219. frmf_initForm(obj);
  220. grdf_initGrid(grd_fstdeptfstwardlist);
  221. }
  222. function SPASI00400_onload(obj:Form, e:LoadEventInfo)
  223. {
  224. fInitialize();
  225. ds_grd_fstdeptfstwardlist.clearData();
  226. ds_main_patinfo.setColumn(0, "pname", "");
  227. ds_main_patinfo.setColumn(0, "sa", "");
  228. try
  229. {
  230. ds_main_cond.setColumn(0, "pid", arg_ds_main_cond.getColumn(0, "pid"));
  231. btn_cnfm.visible = true;
  232. }
  233. catch(E)
  234. {
  235. btn_cnfm.visible = false;
  236. }
  237. }
  238. //초기화
  239. function fInitialize()
  240. {
  241. grdf_initGrid(grd_fstdeptfstwardlist);
  242. grdf_setToolTipBind(grd_fstdeptfstwardlist);
  243. var today = utlf_getCurrentDate();
  244. var idate = new Date();
  245. var peveDate = idate.getAddDate(-1, "M");
  246. ds_init_initdate.setColumn(0, "today", today);
  247. ds_send_cond.setColumn(0, "trgtmancnt", "I");
  248. ds_send_cond.setColumn(0, "fromdd", peveDate.getDateFormat());
  249. ds_send_cond.setColumn(0, "todd", today);
  250. ds_main_cond.setColumn(0, "fromdd", peveDate.getDateFormat());
  251. ds_main_cond.setColumn(0, "todd", today);
  252. }
  253. //조회버튼
  254. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  255. {
  256. if( !frmf_isRequiredControls("ipt_pid","ipt_fromdd","ipt_todd") )
  257. {
  258. return;
  259. }
  260. ds_send_reqdata.copyData(ds_main_cond);
  261. var oParam = {};
  262. oParam.id = "TRASI00401";
  263. oParam.service = "infcmngtapp.HospInfcMngt";
  264. oParam.method = "reqGetFstDeptFstWardList";
  265. oParam.inds = "req=ds_send_reqdata";
  266. oParam.outds = "ds_grd_fstdeptfstwardlist=fstdeptfstwardlist";
  267. oParam.async = false;
  268. //oParam.callback = "cf_TRASI00401";
  269. tranf_submit(oParam);
  270. ds_main_patinfo.setColumn(0, "pname", ds_grd_fstdeptfstwardlist.getColumn(0, "pname"));
  271. ds_main_patinfo.setColumn(0, "sa", ds_grd_fstdeptfstwardlist.getColumn(0, "sa"));
  272. }
  273. //확인 버튼
  274. function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
  275. {
  276. var iRow = ds_grd_fstdeptfstwardlist.rowposition;
  277. try
  278. {
  279. var fstwardcd = ds_grd_fstdeptfstwardlist.getColumn(iRow, "fstwardcd");
  280. // 최초 입원 병동의 경우 latwardcd 값 사용
  281. if(utlf_isNull(fstwardcd))
  282. {
  283. fstwardcd = ds_grd_fstdeptfstwardlist.getColumn(iRow, "lastwardcd");
  284. }
  285. var fstroomcd = ds_grd_fstdeptfstwardlist.getColumn(iRow, "fstroomcd");
  286. // 최초 입원 병실의 경우 latroomcd 값 사용
  287. if( utlf_isNull(fstroomcd))
  288. {
  289. fstroomcd = ds_grd_fstdeptfstwardlist.getColumn(iRow, "lastroomcd");
  290. }
  291. // 부모창의 전문의 정보를 전과전동 후스탭(전문의)로 설정한다 ( 2010-07-05 )
  292. var latmedispcl = ds_grd_fstdeptfstwardlist.getColumn(iRow, "latmedispcl");
  293. var latmedispclid = ds_grd_fstdeptfstwardlist.getColumn(iRow, "latmedispclid");
  294. opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "infccaswardcd", fstwardcd);
  295. opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "infccasroomcd", fstroomcd);
  296. opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "chngroomdd", ds_grd_fstdeptfstwardlist.getColumn(iRow, "fstdeptfstwarddd"));
  297. opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "chngroomtm", ds_grd_fstdeptfstwardlist.getColumn(iRow, "fstdeptfstwardtm"));
  298. opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "atdrtnm", latmedispcl);
  299. opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "atdrtcd", latmedispclid);
  300. this.close();
  301. }
  302. catch(E)
  303. {
  304. this.close();
  305. }
  306. }
  307. //초기화 버튼
  308. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  309. {
  310. ds_grd_fstdeptfstwardlist.clearData();
  311. ds_main_patinfo.setColumn(0, "pname", "");
  312. ds_main_patinfo.setColumn(0, "sa", "");
  313. }
  314. //엑셀버튼
  315. function button2_onclick(obj:Button, e:ClickEventInfo)
  316. {
  317. //grdf_exportExcel(grd_fstdeptfstwardlist, "");
  318. grdf_exportExcel(grd_fstdeptfstwardlist, "전과전동기록내역", "전과전동기록내역", false, "", "user", false);
  319. }
  320. ]]></Script>
  321. </Form>
  322. </FDL>