SMMRD01100_사망등록조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMRD01100" position="absolute 0 0 584 532" titletext="사망등록조회" onload="SMMRD01100_onload" ontimer="SMMRD01100_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 24 574 64" id="grp_srch" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Combo id="combo18" taborder="0" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 12 10 112 29" anchor="default">
  11. <Dataset id="innerdataset">
  12. <ColumnInfo>
  13. <Column id="codecolumn"/>
  14. <Column id="datacolumn"/>
  15. </ColumnInfo>
  16. <Rows>
  17. <Row>
  18. <Col id="codecolumn">dethdt</Col>
  19. <Col id="datacolumn">사망일자</Col>
  20. </Row>
  21. <Row>
  22. <Col id="codecolumn">fstrgstdt</Col>
  23. <Col id="datacolumn">등록일자</Col>
  24. </Row>
  25. </Rows>
  26. </Dataset>
  27. </Combo>
  28. <Calendar id="input1" taborder="1" class="input_s_essential" position="absolute 136 10 238 29" anchor="default" onchanged="grp_srch_input1_onchanged" autoselect="true"/>
  29. <Static id="caption8" text="~" class="search_no_b" position="absolute 247 12 259 29" anchor="default"/>
  30. <Calendar id="input2" taborder="2" class="input_s_essential" position="absolute 265 10 367 29" anchor="default" onchanged="grp_srch_input2_onchanged" autoselect="true"/>
  31. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 487 8 493 30" anchor="default"/>
  32. <Button id="bnt_srch" taborder="3" text="조회" class="btn1" position="absolute 503 8 559 30" anchor="default" onclick="grp_srch_bnt_srch_onclick"/>
  33. </Layout>
  34. </Layouts>
  35. </Div>
  36. <Static text="사망환자 리스트" position="absolute 0 72 134 88" id="caption1" class="tit_2"/>
  37. <Button position="absolute 511 69 574 88" id="button1" class="btn7" text="Excel" onclick="button1_onclick"/>
  38. <Button position="absolute 459 502 515 524" id="btn_ok" class="btn4" text="확인" visible="false" onclick="btn_ok_onclick"/>
  39. <Button position="absolute 519 502 575 524" id="btn_cancel" class="btn4" text="취소" visible="false" onclick="btn_cancel_onclick"/>
  40. <Static id="caption6" text="사망등록 조회" class="tit_1" position="absolute 0 0 117 24"/>
  41. <Grid id="grd_dethreglist" taborder="1" binddataset="ds_main_dethreglist" scrollpixel="all" useinputpanel="false" cellsizingtype="col" oncelldblclick="grd_dethreglist_oncelldblclick" position="absolute 0 90 574 495">
  42. <Formats>
  43. <Format id="default">
  44. <Columns>
  45. <Column size="20" band="left"/>
  46. <Column size="0"/>
  47. <Column size="57"/>
  48. <Column size="65"/>
  49. <Column size="45"/>
  50. <Column size="98"/>
  51. <Column size="68"/>
  52. <Column size="64"/>
  53. <Column size="78"/>
  54. <Column size="70"/>
  55. <Column size="120"/>
  56. <Column size="200"/>
  57. </Columns>
  58. <Rows>
  59. <Row size="24" band="head"/>
  60. <Row size="24"/>
  61. </Rows>
  62. <Band id="head">
  63. <Cell/>
  64. <Cell col="1" text="구분"/>
  65. <Cell col="2" text="등록번호"/>
  66. <Cell col="3" text="환자성명"/>
  67. <Cell col="4" text="S/A"/>
  68. <Cell col="5" text="주민번호"/>
  69. <Cell col="6" text="사망일자"/>
  70. <Cell col="7" text="사망시간"/>
  71. <Cell col="8" text="등록부서"/>
  72. <Cell col="9" text="등록자명"/>
  73. <Cell col="10" text="진료과"/>
  74. <Cell col="11" text="주진단"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell celltype="head" expr="expr:currow + 1"/>
  78. <Cell col="1" displaytype="none" edittype="none" text="bind:ioflag"/>
  79. <Cell col="2" displaytype="normal" edittype="none" style="align:left;" text="bind:pid"/>
  80. <Cell col="3" displaytype="normal" edittype="none" style="align:left;" text="bind:pname"/>
  81. <Cell col="4" displaytype="normal" edittype="none" style="align:left;" text="bind:age"/>
  82. <Cell col="5" displaytype="text" edittype="masknumber" text="bind:jumin"/>
  83. <Cell col="6" displaytype="date" edittype="none" text="bind:dethdd" calendardisplaynulltype="none"/>
  84. <Cell col="7" displaytype="normal" edittype="none" style="align:left;" text="bind:dethtm" mask="expr:utlf_isNull(dethtm) ? '' : '##:##'"/>
  85. <Cell col="8" style="align:left;padding:0 0 0 3;" text="bind:depthngnm"/>
  86. <Cell col="9" style="align:left;" text="bind:usernm"/>
  87. <Cell col="10" style="align:left;padding:0 0 0 3;" text="bind:orddeptnm"/>
  88. <Cell col="11" style="align:left;padding:0 0 0 3;" text="bind:diagnm"/>
  89. </Band>
  90. </Format>
  91. </Formats>
  92. </Grid>
  93. </Layout>
  94. </Layouts>
  95. <Objects>
  96. <Dataset id="ds_main_dethreglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  97. <ColumnInfo>
  98. <Column id="ioflag" type="STRING"/>
  99. <Column id="pid" type="STRING"/>
  100. <Column id="pname" type="STRING"/>
  101. <Column id="age" type="STRING"/>
  102. <Column id="jumin" type="STRING"/>
  103. <Column id="dethdd" type="STRING"/>
  104. <Column id="dethtm" type="STRING"/>
  105. <Column id="depthngnm" type="STRING"/>
  106. <Column id="usernm" type="STRING"/>
  107. <Column id="orddeptnm" type="STRING"/>
  108. <Column id="diagnm" type="STRING"/>
  109. </ColumnInfo>
  110. </Dataset>
  111. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="reqflag" type="STRING" size="256"/>
  114. <Column id="fromdd" type="STRING" size="256"/>
  115. <Column id="todd" type="STRING" size="256"/>
  116. </ColumnInfo>
  117. <Rows>
  118. <Row>
  119. <Col id="reqflag">dethdt</Col>
  120. </Row>
  121. </Rows>
  122. </Dataset>
  123. </Objects>
  124. <Bind>
  125. <BindItem id="item0" compid="grp_srch.combo18" propid="value" datasetid="ds_main_cond" columnid="reqflag"/>
  126. <BindItem id="item1" compid="grp_srch.input1" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  127. <BindItem id="item2" compid="grp_srch.input2" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  128. </Bind>
  129. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  130. * System Name :
  131. * Job Name :
  132. * Creator :
  133. * Make Date : 2014-12-19
  134. * Description :
  135. *---------------------------------------------------------------------------------------
  136. * Modify Date Modifier Modify Description
  137. *---------------------------------------------------------------------------------------
  138. * 2014-12-19 Live Converter TF->XP
  139. *
  140. *---------------------------------------------------------------------------------------
  141. ****************************************************************************************/
  142. //=======================================================================================
  143. // Lib Include
  144. //---------------------------------------------------------------------------------------
  145. include "com_commonxp::comm_main.xjs"
  146. include "emr_dschanalyxp::MRD01100.xjs"
  147. //=======================================================================================
  148. // Event
  149. //---------------------------------------------------------------------------------------
  150. /****************************************************************************************
  151. * Components : Form
  152. * Components ID : SMMRD02000
  153. * Event : onload
  154. * Argument : 01.obj : Object Event has occurred
  155. * : 02.e : Event Object
  156. * Description : 화면오픈시 폼load이후 실행
  157. ****************************************************************************************/
  158. function SMMRD01100_onload(obj:Form, e:LoadEventInfo)
  159. {
  160. frmf_initForm(obj); // 폼 초기화
  161. grdf_initGrid(grd_dethreglist);
  162. //finitialize();
  163. this.setTimer(0, 100);
  164. }
  165. /****************************************************************************************
  166. * Components : Button
  167. * Components ID : grp_srch.bnt_srch
  168. * Event : onclick
  169. * Argument : 01.obj : Object Event has occurred
  170. * : 02.e : Event Object
  171. * Description : 조회버튼 클릭
  172. ****************************************************************************************/
  173. function grp_srch_bnt_srch_onclick(obj:Button, e:ClickEventInfo)
  174. {
  175. fsearch();
  176. }
  177. /****************************************************************************************
  178. * Components : Calendar
  179. * Components ID : grp_srch.input1
  180. * Event : onchanged
  181. * Argument : 01.obj : Object Event has occurred
  182. * : 02.e : Event Object
  183. * Description : 조회기간 변경시
  184. ****************************************************************************************/
  185. function grp_srch_input1_onchanged(obj:Calendar, e:ChangeEventInfo)
  186. {
  187. var ev = new ClickEventInfo;
  188. frmf_inputEnterKey("grp_srch.bnt_srch", "onclick", ev );
  189. }
  190. /****************************************************************************************
  191. * Components : Calendar
  192. * Components ID : grp_srch.input2
  193. * Event : onchanged
  194. * Argument : 01.obj : Object Event has occurred
  195. * : 02.e : Event Object
  196. * Description : 조회기간 변경시
  197. ****************************************************************************************/
  198. function grp_srch_input2_onchanged(obj:Calendar, e:ChangeEventInfo)
  199. {
  200. var ev = new ClickEventInfo;
  201. frmf_inputEnterKey("grp_srch.bnt_srch", "onclick", ev );
  202. }
  203. /****************************************************************************************
  204. * Components : Grid
  205. * Components ID : grd_dethreglist
  206. * Event : oncelldblclick
  207. * Argument : 01.obj : Object Event has occurred
  208. * : 02.e : Event Object
  209. * Description : 조회 리스트 더블클릭시
  210. ****************************************************************************************/
  211. function grd_dethreglist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  212. {
  213. fSendDethinfo();
  214. }
  215. /****************************************************************************************
  216. * Components : Button
  217. * Components ID : bnt_ok
  218. * Event : onclick
  219. * Argument : 01.obj : Object Event has occurred
  220. * : 02.e : Event Object
  221. * Description : 확인버튼 클릭
  222. ****************************************************************************************/
  223. function btn_ok_onclick(obj:Button, e:ClickEventInfo)
  224. {
  225. fSendDethinfo();
  226. }
  227. /****************************************************************************************
  228. * Components : Button
  229. * Components ID : btn_cancel
  230. * Event : onclick
  231. * Argument : 01.obj : Object Event has occurred
  232. * : 02.e : Event Object
  233. * Description : 삭제버튼 클릭
  234. ****************************************************************************************/
  235. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  236. {
  237. this.close();
  238. }
  239. /****************************************************************************************
  240. * Components : Button
  241. * Components ID : button1
  242. * Event : onclick
  243. * Argument : 01.obj : Object Event has occurred
  244. * : 02.e : Event Object
  245. * Description : 엑셀버튼 클릭
  246. ****************************************************************************************/
  247. function button1_onclick(obj:Button, e:ClickEventInfo)
  248. {
  249. if(ds_main_dethreglist.rowcount > 0) {
  250. grdf_exportExcel(grd_dethreglist,"사망환자 조회","사망환자 조회");
  251. } else {
  252. sysf_messageBox("조회된 데이터가 ", "I004");
  253. }
  254. }
  255. function SMMRD01100_ontimer(obj:Form, e:TimerEventInfo)
  256. {
  257. if( e.timerid == 0 ){
  258. this.killTimer(0);
  259. finitialize();
  260. }
  261. }
  262. ]]></Script>
  263. </Form>
  264. </FDL>