SMPID37100_접촉환자조회.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPPI01100" position="absolute 0 0 1156 764" titletext="접촉 환자 조회" oninit="SMPPI01100_oninit" onload="SMPPI01100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 26 1139 732" id="grp_biz" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 1133 41" align="align:center top;" id="group1" class="div_SA" anchor="left top right">
  11. <Layouts>
  12. <Layout width="1160" height="40">
  13. <Button position="absolute 1063 10 1119 32" id="btn_select" class="btn1" taborder="5" text="조회" anchor="top right" onclick="grp_biz_group1_btn_select_onclick"/>
  14. <Shape position="absolute 1045 5 1051 38" linetype="vertical" id="line3" class="line_4" anchor="top right"/>
  15. <Static text="조회기간 :" position="absolute 15 13 100 30" id="caption2" class="search_name" anchor="left top"/>
  16. <Calendar position="absolute 101 13 216 32" id="ipt_fromdd" enable="true" mask="yyyy-mm-dd" anchor="left top" onkeydown="grp_biz_group1_input2_onkeydown" oneditclick="grp_biz_group1_ipt_fromdd_oneditclick" onkeyup="grp_biz_group1_ipt_fromdd_onkeyup" onchanged="grp_biz_group1_ipt_fromdd_onchanged" autoselect="true" taborder="2"/>
  17. <Calendar id="ipt_todd" taborder="3" onkeydown="grp_biz_group1_input2_onkeydown" position="absolute 241 13 356 32" mask="yyyy-mm-dd" onkeyup="grp_biz_group1_ipt_todd_onkeyup" autoselect="true" anchor="left top"/>
  18. <Static id="Static00" text="~" position="absolute 220 13 238 33" style="align:center middle;" anchor="left top"/>
  19. <Static id="caption05" text="병동 :" class="search_name" position="absolute 383 15 456 32" anchor="left top"/>
  20. <Combo id="cmb_wardcd" taborder="6" position="absolute 434 12 592 32" index="-1" innerdataset="@ds_init_wardcd" codecolumn="cd" datacolumn="nm" anchor="left top" onitemchanged="grp_biz_group1_cmb_wardcd_onitemchanged"/>
  21. <Static id="caption00" text="병실 :" class="search_name" position="absolute 599 15 647 32" anchor="left top"/>
  22. <Combo id="cmb_roomcd" taborder="7" position="absolute 650 12 728 32" innerdataset="@ds_cmb_roomcd" codecolumn="cd" datacolumn="nm" anchor="left top"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <Button id="btn_excelsave" taborder="4" text="엑셀저장" onclick="grp_biz_btn_excelsave_onclick" class="btn7" position="absolute 1053 49 1133 68" anchor="top right"/>
  27. <Grid id="grd_dpcdlist" class="datagrid3" taborder="5" binddataset="ds_grd_dpcdlist" autoenter="select" useinputpanel="false" cellsizingtype="both" cellclickbound="control" position="absolute 0 70 1133 705" anchor="all" extendsizetype="row" cellmovingtype="none">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="54"/>
  32. <Column size="64"/>
  33. <Column size="80"/>
  34. <Column size="35"/>
  35. <Column size="35"/>
  36. <Column size="80"/>
  37. <Column size="80"/>
  38. <Column size="63"/>
  39. <Column size="80"/>
  40. <Column size="59"/>
  41. <Column size="100"/>
  42. <Column size="63"/>
  43. <Column size="43"/>
  44. <Column size="65"/>
  45. <Column size="52"/>
  46. <Column size="84"/>
  47. <Column size="68"/>
  48. </Columns>
  49. <Rows>
  50. <Row size="24" band="head"/>
  51. <Row size="24"/>
  52. </Rows>
  53. <Band id="head">
  54. <Cell displaytype="normal" text="병실"/>
  55. <Cell col="1" displaytype="normal" text="환자번호"/>
  56. <Cell col="2" displaytype="normal" text="환자명"/>
  57. <Cell col="3" displaytype="normal" text="나이"/>
  58. <Cell col="4" displaytype="normal" text="성별"/>
  59. <Cell col="5" displaytype="normal" text="입원일자"/>
  60. <Cell col="6" displaytype="normal" text="입실일"/>
  61. <Cell col="7" text="입실시간"/>
  62. <Cell col="8" displaytype="normal" text="퇴실일"/>
  63. <Cell col="9" text="퇴실시간"/>
  64. <Cell col="10" displaytype="normal" text="진료과"/>
  65. <Cell col="11" displaytype="normal" text="담당의"/>
  66. <Cell col="12" displaytype="normal" text="상태"/>
  67. <Cell col="13" displaytype="normal" text="전실병실"/>
  68. <Cell col="14" displaytype="normal" text="비고"/>
  69. <Cell col="15" text="퇴원일자"/>
  70. <Cell col="16" displaytype="normal" text="현재병실"/>
  71. </Band>
  72. <Band id="body">
  73. <Cell displaytype="text" style="align:left middle;padding:0 0 0 5;" text="bind:roomcd" combodataset="ds_init_roomcd" combocodecol="cd" combodatacol="nm"/>
  74. <Cell col="1" displaytype="text" style="align:left middle;" text="bind:pid"/>
  75. <Cell col="2" displaytype="text" style="align:left middle;" text="bind:hngnm"/>
  76. <Cell col="3" displaytype="number" style="padding:0 5 0 0;" text="bind:page"/>
  77. <Cell col="4" displaytype="text" style="align:center middle;" text="bind:sex"/>
  78. <Cell col="5" displaytype="date" text="bind:indd"/>
  79. <Cell col="6" displaytype="date" text="bind:fromdd"/>
  80. <Cell col="7" displaytype="expr:utlf_isNull(getColumn(currow, self.text.replace('bind:','') )) == true || getColumn(currow, self.text.replace('bind:','')) == '-' ? 'nomal' : 'date'" text="bind:fromtm" mask="expr:utlf_isNull(getColumn(currow, self.text.replace('bind:','') )) == true || getColumn(currow, self.text.replace('bind:','')) == '-' ? '' : 'HH:mm'"/>
  81. <Cell col="8" displaytype="expr:expr:utlf_isNull(getColumn(currow, self.text.replace(&quot;bind:&quot;,&quot;&quot;) )) == true ? &quot;normal&quot; : &quot;date&quot;" text="bind:todd"/>
  82. <Cell col="9" displaytype="expr:utlf_isNull(getColumn(currow, self.text.replace('bind:','') )) == true || getColumn(currow, self.text.replace('bind:','')) == '-' ? 'nomal' : 'date'" text="bind:totm" mask="expr:utlf_isNull(getColumn(currow, self.text.replace('bind:','') )) == true || getColumn(currow, self.text.replace('bind:','')) == '-' ? '' : 'HH:mm'"/>
  83. <Cell col="10" displaytype="combo" style="padding:0 0 0 5;" text="bind:orddeptcd" combodataset="ds_init_cmb_orddeptcd" combocodecol="cd" combodatacol="nm"/>
  84. <Cell col="11" displaytype="combo" style="padding:0 0 0 5;" text="bind:medispclid" combodataset="ds_init_orddrid" combocodecol="cd" combodatacol="nm"/>
  85. <Cell col="12" displaytype="normal" text="bind:histstat"/>
  86. <Cell col="13" displaytype="normal" style="padding:0 0 0 5;" text="bind:to_roomcd" combodataset="ds_init_roomcd" combocodecol="cd" combodatacol="nm"/>
  87. <Cell col="14" displaytype="normal" text="bind:bigo"/>
  88. <Cell col="15" displaytype="expr:expr:expr:utlf_isNull(getColumn(currow, self.text.replace(&quot;bind:&quot;,&quot;&quot;) )) == true ? &quot;normal&quot; : &quot;date&quot;" text="bind:dschdd"/>
  89. <Cell col="16" displaytype="normal" text="bind:trandd"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. <Static id="cap_judgtrgtman" text="접촉 환자 대상자" onclick="cap_diag_onclick" class="tit_2" position="absolute 0 52 192 72" anchor="left top"/>
  95. </Layout>
  96. </Layouts>
  97. </Div>
  98. <Static id="cap_title" text="접촉 환자 조회" class="tit_1" position="absolute 0 0 272 26"/>
  99. </Layout>
  100. </Layouts>
  101. <Objects>
  102. <Dataset id="ds_grd_dpcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_dpcdlist_oncolumnchanged">
  103. <ColumnInfo>
  104. <Column id="roomcd" type="STRING" size="255"/>
  105. <Column id="pid" type="STRING" size="255"/>
  106. <Column id="hngnm" type="STRING" size="255"/>
  107. <Column id="page" type="STRING" size="255"/>
  108. <Column id="sex" type="STRING" size="255"/>
  109. <Column id="indd" type="STRING" size="255"/>
  110. <Column id="fromdd" type="STRING" size="255"/>
  111. <Column id="todd" type="STRING" size="255"/>
  112. <Column id="orddeptcd" type="STRING" size="255"/>
  113. <Column id="medispclid" type="STRING" size="255"/>
  114. <Column id="histstat" type="STRING" size="255"/>
  115. <Column id="to_roomcd" type="STRING" size="255"/>
  116. <Column id="bigo" type="STRING" size="255"/>
  117. <Column id="trandd" type="STRING" size="255"/>
  118. <Column id="dschdd" type="STRING" size="256"/>
  119. <Column id="fromtm" type="STRING" size="256"/>
  120. <Column id="totm" type="STRING" size="256"/>
  121. </ColumnInfo>
  122. </Dataset>
  123. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  124. <ColumnInfo>
  125. <Column id="fromdd" type="STRING" size="256"/>
  126. <Column id="todd" type="STRING" size="256"/>
  127. <Column id="wardcd" type="STRING" size="256"/>
  128. <Column id="roomcd" type="STRING" size="256"/>
  129. </ColumnInfo>
  130. <Rows>
  131. <Row/>
  132. </Rows>
  133. </Dataset>
  134. <Dataset id="ds_init_cmb_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  135. <Dataset id="ds_init_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  136. <Dataset id="ds_init_roomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  137. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  138. <FilteredDataset id="ds_cmb_roomcd" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" binddataset="@ds_init_roomcd"/>
  139. </Objects>
  140. <Bind>
  141. <BindItem id="item0" compid="grp_biz.group1.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  142. <BindItem id="item1" compid="grp_biz.group1.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  143. <BindItem id="item2" compid="grp_biz.group1.cmb_wardcd" propid="value" datasetid="ds_send" columnid="wardcd"/>
  144. <BindItem id="item3" compid="grp_biz.group1.cmb_roomcd" propid="value" datasetid="ds_send" columnid="roomcd"/>
  145. </Bind>
  146. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  147. * System Name :
  148. * Job Name :
  149. * Creator :
  150. * Make Date : 2016-05-24
  151. * Description :
  152. *---------------------------------------------------------------------------------------
  153. * Modify Date Modifier Modify Description
  154. *---------------------------------------------------------------------------------------
  155. * 2016-05-24 Live Converter TF->XP
  156. *
  157. *---------------------------------------------------------------------------------------
  158. ****************************************************************************************/
  159. include "com_commonxp::comm_main.xjs";
  160. include "pam_pamcomnxp::PAM001.xjs";
  161. var lgv_hscroll_pos = 0;
  162. var lgv_vscroll_pos = 0;
  163. function SMPPI01100_oninit(obj:Form, e:InitEventInfo)
  164. {
  165. frmf_initForm(obj)
  166. }
  167. function SMPPI01100_onload(obj:Form, e:LoadEventInfo)
  168. {
  169. grdf_initGrid(grp_biz.grd_dpcdlist);
  170. // grdf_setRowTypeIcon(grp_biz.grd_dpcdlist, 0);
  171. grdf_setToolTipBind(grp_biz.grd_dpcdlist);
  172. dsf_createDsRow("ds_search", {col: "sess_posinstcd", val: sysf_getUserInfo("dutplceinstcd")});
  173. var oParam = {};
  174. oParam.id = "TRPAI01803";
  175. oParam.service = "pamcomnapp.PamComn";
  176. oParam.method = "reqGetComCD";
  177. oParam.inds = "req=ds_search";
  178. oParam.outds = "ds_init_cmb_orddeptcd=orddeptcd ds_init_orddrid=orddrid ds_init_wardcd=wardcd ds_init_roomcd=roomcd";
  179. oParam.async = false;
  180. //oParam.callback = "cf_TRPAI01803";
  181. tranf_submit(oParam);
  182. fInitialize();
  183. }
  184. function fInitialize(){
  185. var mm = utlf_getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
  186. var lastdate = utlf_lastDateNum(mm)
  187. ds_send.setColumn(0,"fromdd", mm.substr(0,6) + '01');
  188. ds_send.setColumn(0,"todd", mm.substr(0,6) + lastdate);
  189. //fGetDocuList();
  190. }
  191. function cf_TRPPI01001(sSvcId, nErrorCode, sErrorMsg) {
  192. if(nErrorCode < 0) return;
  193. }
  194. function fGetDocuList(){
  195. lgv_hscroll_pos = grp_biz.grd_dpcdlist.hscrollbar.pos;
  196. lgv_vscroll_pos = grp_biz.grd_dpcdlist.vscrollbar.pos;
  197. var oParam = {};
  198. oParam.id = "TRPPI01300";
  199. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  200. oParam.method = "reqGetCnctPatList";
  201. oParam.inds = "req=ds_send";
  202. oParam.outds = "ds_grd_dpcdlist=rsltlist";
  203. oParam.async = false;
  204. oParam.callback = "cf_TRPPI01300";
  205. tranf_submit(oParam);
  206. }
  207. function cf_TRPPI01300(sSvcId, nErrorCode, sErrorMsg) {
  208. if(nErrorCode < 0) {return};
  209. grp_biz.grd_dpcdlist.hscrollbar.pos = lgv_hscroll_pos;
  210. grp_biz.grd_dpcdlist.vscrollbar.pos = lgv_vscroll_pos;
  211. }
  212. function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  213. {
  214. //grdf_exportExcel(switch1.case1.grd_bfprcplist_excel, "환자진료정보처방이력", "SheetName", false, null, "open", true);
  215. if (ds_grd_dpcdlist.rowcount > 0) {
  216. grdf_exportExcel(grp_biz.grd_dpcdlist, grp_biz.cap_judgtrgtman.text , "see", false, null, "open", true);
  217. }else{
  218. sysf_messageBox("엑셀저장할 내역이", "I004");
  219. }
  220. }
  221. function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
  222. {
  223. fGetDocuList();
  224. }
  225. function grp_biz_group1_ipt_fromdd_onkeyup(obj:Calendar, e:KeyEventInfo)
  226. {
  227. if(e.keycode == 13)
  228. {
  229. obj.updateToDataset();
  230. grp_biz.group1.ipt_todd.setFocus();
  231. //grp_biz_group1_btn_select_onclick();
  232. }
  233. }
  234. function grp_biz_group1_ipt_todd_onkeyup(obj:Calendar, e:KeyEventInfo)
  235. {
  236. if(e.keycode == 13)
  237. {
  238. obj.updateToDataset();
  239. grp_biz_group1_btn_select_onclick();
  240. }
  241. }
  242. function grp_biz_group1_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  243. {
  244. grp_biz.group1.ipt_todd.value = e.postvalue;
  245. }
  246. function grp_biz_group1_cmb_wardcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  247. {
  248. ds_cmb_roomcd.filter("wd=='"+e.postvalue+"'");
  249. }
  250. ]]></Script>
  251. </Form>
  252. </FDL>