SMMNW19200_뇌사추정자확인.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNW19200" position="absolute 0 0 805 605" titletext="뇌사추정자 리스트 조회" oninit="SMMNW19200_oninit" onload="SMMNW19200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 805 25" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="뇌사추정자 리스트 조회" position="absolute 0 0 171 25" id="caption6" class="tit_1"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 13 805 605" id="grp_biz">
  15. <Layouts>
  16. <Layout>
  17. <Div position="absolute 1 12 804 67" align="align:center top;" id="grp_sea">
  18. <Layouts>
  19. <Layout>
  20. <Shape position="absolute 0 0 803 55" id="roundrect1" type="roundrectangle" anchor="default"/>
  21. <Button position="absolute 630 15 686 37" id="button3" class="btn1" text="조회" onclick="grp_biz_grp_sea_button3_onclick" anchor="default"/>
  22. <Shape position="absolute 597 15 603 37" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  23. <Calendar position="absolute 83 20 183 39" id="ipt_searchdd" class="input_default" autoselect="true" anchor="default"/>
  24. <Static text="조회일자 :" position="absolute 8 22 79 39" id="caption9" class="search_name" anchor="default"/>
  25. <Button position="absolute 694 15 774 37" id="button1" class="btn1" text="엑셀저장" onclick="grp_biz_grp_sea_button1_onclick" anchor="default"/>
  26. <CheckBox position="absolute 215 20 345 38" id="chk_deptflag" class="checkbox_search" text="GCS 점수 조건해제" truevalue="Y" anchor="default"/>
  27. <CheckBox position="absolute 355 20 545 38" id="checkbox1" class="checkbox_search" text="Pupil Reflex(Fixed) 조건포함" truevalue="Y" anchor="default"/>
  28. </Layout>
  29. </Layouts>
  30. </Div>
  31. <Shape position="absolute 0 90 800 96" linetype="horizontal" id="line16" class="line_10"/>
  32. <Static text="뇌사추정자자 리스트" position="absolute 0 74 150 90" align="align:center middle;" id="caption26" class="tit_2"/>
  33. <Grid position="absolute 0 95 800 587" id="grd_rsrv" binddataset="ds_main_rsrvlist_rsrvinfo" onmousemove="grp_biz_grd_rsrv_onmousemove" cellsizingtype="col">
  34. <Formats>
  35. <Format id="default">
  36. <Columns>
  37. <Column size="25"/>
  38. <Column size="80"/>
  39. <Column size="80"/>
  40. <Column size="80"/>
  41. <Column size="70"/>
  42. <Column size="60"/>
  43. <Column size="138"/>
  44. <Column size="80"/>
  45. <Column size="80"/>
  46. <Column size="90"/>
  47. </Columns>
  48. <Rows>
  49. <Row size="24" band="head"/>
  50. <Row size="24"/>
  51. </Rows>
  52. <Band id="head">
  53. <Cell text="▶"/>
  54. <Cell col="1" text="병실"/>
  55. <Cell col="2" text="병상"/>
  56. <Cell col="3" text="등록번호"/>
  57. <Cell col="4" text="이름"/>
  58. <Cell col="5" text="S/A"/>
  59. <Cell col="6" text="진료과"/>
  60. <Cell col="7" text="주치의"/>
  61. <Cell col="8" text="담당의"/>
  62. <Cell col="9" text="입원일자"/>
  63. </Band>
  64. <Band id="body">
  65. <Cell celltype="head" text="expr:currow == ds_main_rsrvlist_rsrvinfo.rowposition ? &quot;▶&quot; : &quot;&quot;"/>
  66. <Cell col="1" style="align:center middle;" text="bind:wardnm"/>
  67. <Cell col="2" style="align:center middle;" text="bind:bedcd"/>
  68. <Cell col="3" style="align:center middle;" text="bind:pid"/>
  69. <Cell col="4" style="align:center middle;" text="bind:patnm"/>
  70. <Cell col="5" style="align:center middle;" text="bind:sexage"/>
  71. <Cell col="6" style="align:center middle;" text="bind:orddeptnm"/>
  72. <Cell col="7" style="align:center middle;" text="bind:medispclnm"/>
  73. <Cell col="8" style="align:center middle;" text="bind:atdoctnm"/>
  74. <Cell col="9" style="align:center middle;" text="bind:indd" mask="####-##-##"/>
  75. </Band>
  76. </Format>
  77. </Formats>
  78. </Grid>
  79. </Layout>
  80. </Layouts>
  81. </Div>
  82. </Layout>
  83. </Layouts>
  84. <Objects>
  85. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_cond_oncolumnchanged">
  86. <ColumnInfo>
  87. <Column id="searchdd" type="STRING" size="256"/>
  88. <Column id="gcsflag" type="STRING" size="256"/>
  89. <Column id="prflag" type="STRING" size="256"/>
  90. </ColumnInfo>
  91. <Rows>
  92. <Row/>
  93. </Rows>
  94. </Dataset>
  95. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  96. <Dataset id="ds_main_rsrvlist_rsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  97. <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  98. <ColumnInfo>
  99. <Column id="wardcd" type="STRING" size="256"/>
  100. <Column id="wardnm" type="STRING" size="256"/>
  101. </ColumnInfo>
  102. <Rows>
  103. <Row/>
  104. </Rows>
  105. </Dataset>
  106. <Dataset id="ds_init_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  107. <ColumnInfo>
  108. <Column id="deptcd" type="STRING" size="256"/>
  109. <Column id="depthngnm" type="STRING" size="256"/>
  110. </ColumnInfo>
  111. <Rows>
  112. <Row/>
  113. </Rows>
  114. </Dataset>
  115. <Dataset id="ds_init_settingrn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  116. <ColumnInfo>
  117. <Column id="settingrnid" type="STRING" size="256"/>
  118. <Column id="settingrnnm" type="STRING" size="256"/>
  119. </ColumnInfo>
  120. <Rows>
  121. <Row/>
  122. </Rows>
  123. </Dataset>
  124. </Objects>
  125. <Bind>
  126. <BindItem id="item0" compid="grp_biz.grp_sea.ipt_searchdd" propid="value" datasetid="ds_main_cond" columnid="searchdd"/>
  127. <BindItem id="item1" compid="grp_biz.grp_sea.chk_deptflag" propid="value" datasetid="ds_main_cond" columnid="gcsflag"/>
  128. <BindItem id="item2" compid="grp_biz.grp_sea.checkbox1" propid="value" datasetid="ds_main_cond" columnid="prflag"/>
  129. </Bind>
  130. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  131. * System Name :
  132. * Job Name :
  133. * Creator :
  134. * Make Date : 2016-11-17
  135. * Description :
  136. *---------------------------------------------------------------------------------------
  137. * Modify Date Modifier Modify Description
  138. *---------------------------------------------------------------------------------------
  139. * 2016-11-17 Live Converter TF->XP
  140. *
  141. *---------------------------------------------------------------------------------------
  142. ****************************************************************************************/
  143. include "com_commonxp::comm_main.xjs";
  144. var arErrorCode = new HashArray();
  145. function cf_TRMNW19100(sSvcId, nErrorCode, sErrorMsg) {
  146. arErrorCode.push(sSvcId, nErrorCode);
  147. if(nErrorCode < 0) return;
  148. utlf_addLog("***** cf_TRMNW19100 *****");
  149. }
  150. function fInit(){
  151. //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
  152. ds_send_reqdata.clearData();
  153. fGetRsrvPatientList();
  154. }
  155. function fGetRsrvPatientList(){
  156. var searchdd = ds_main_cond.getColumn(0, "searchdd");
  157. ds_send_reqdata.clearData();
  158. dsf_makeValue(ds_send_reqdata,"searchdd" , "string", searchdd);
  159. dsf_makeValue(ds_send_reqdata,"gcsflag" , "string", ds_main_cond.getColumn(0, "gcsflag"));
  160. dsf_makeValue(ds_send_reqdata,"prflag" , "string", ds_main_cond.getColumn(0, "prflag"));
  161. // 뇌사추정자 리스트 초기화
  162. ds_main_rsrvlist_rsrvinfo.clearData();
  163. var oParam = {};
  164. oParam.id = "TRMNW19100";
  165. oParam.service = "wardcareapp.WardCareMngt";
  166. oParam.method = "reqGetBrainDeathPatientList";
  167. oParam.inds = "req=ds_send_reqdata";
  168. oParam.outds = "ds_main_rsrvlist_rsrvinfo=rsrvinfo";
  169. oParam.async = false;
  170. oParam.callback = "cf_TRMNW19100";
  171. tranf_submit(oParam);
  172. if(arErrorCode.pop("TRMNW19100") > -1) {
  173. if (ds_main_rsrvlist_rsrvinfo.rowcount == 0) {
  174. sysf_messageBox("출력할 데이터가 존재하지 않습니다.", "I");
  175. return;
  176. }
  177. }
  178. }
  179. function fSaveExcel(){
  180. grdf_exportExcel(grp_biz.grd_rsrv, "검사예약환자리스트_"+utlf_getCurrentDate(), "SheetName" , true, "" , "" , true);
  181. }
  182. function SMMNW19200_oninit(obj:Form, e:InitEventInfo)
  183. {
  184. frmf_initForm(obj);
  185. }
  186. function SMMNW19200_onload(obj:Form, e:LoadEventInfo)
  187. {
  188. grp_biz.grp_sea.ipt_searchdd.value = utlf_getCurrentDate() ;// 기준일에 현재날짜(디폴트)
  189. fInit();
  190. }
  191. function grp_biz_grp_sea_button3_onclick(obj:Button, e:ClickEventInfo)
  192. {
  193. fGetRsrvPatientList();// 뇌사추정자 리스트 조회시
  194. }
  195. function grp_biz_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  196. {
  197. fSaveExcel();
  198. }
  199. function grp_biz_grd_rsrv_onmousemove(obj:Grid, e:GridMouseEventInfo)
  200. {
  201. if(e.row >-1 && e.col > -1){
  202. if(!utlf_isNull(grp_biz.grd_rsrv.getCellValue(e.row,e.col))){
  203. grp_biz.grd_rsrv.tooltiptext = grp_biz.grd_rsrv.getCellValue(e.row,e.col);
  204. }else{
  205. grp_biz.grd_rsrv.tooltiptext ="";
  206. }
  207. }
  208. }
  209. function ds_main_cond_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  210. {
  211. if( e.columnid == "gcsflag" ){
  212. obj.setColumn(0, "gcsflag", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "");
  213. }
  214. if( e.columnid == "prflag" ){
  215. obj.setColumn(0, "prflag", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "");
  216. }
  217. }
  218. ]]></Script>
  219. </Form>
  220. </FDL>