SMMNW15000_재원환자 종교 현황.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNW15000" position="absolute 0 0 640 645" titletext="재원환자 종교 현황" oninit="SMMNW15000_oninit" onload="SMMNW15000_onload" ontimer="SMMNW15000_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 635 640" align="align:center middle;" id="group3">
  8. <Layouts>
  9. <Layout>
  10. <Static text="재원환자 종교 현황" position="absolute 0 0 145 20" align="align:center middle;" id="cpt_title" class="tit_1"/>
  11. <Div position="absolute 0 20 635 60" align="align:center top;" id="grp_sea" class="div_SA">
  12. <Layouts>
  13. <Layout>
  14. <Edit position="absolute 420 10 490 29" id="ipt_pid" autoselect="true"/>
  15. <Static text="등록번호 :" position="absolute 345 11 421 28" id="caption2" class="search_name"/>
  16. <Button position="absolute 513 10 569 32" id="button2" class="btn1" taborder="7" text="조회" onclick="group3_grp_sea_button2_onclick"/>
  17. <Shape position="absolute 502 8 508 33" linetype="vertical" id="line1" class="line_4"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Combo position="absolute 65 30 160 49" id="cmb_wardcd" class="combo_s_essential" taborder="1" innerdataset="@ds_init_dept_dept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="group3_cmb_wardcd_onitemchanged"/>
  22. <Static text="병 동 :" position="absolute 10 31 67 48" id="caption25" class="search_name"/>
  23. <Button position="absolute 570 30 626 52" id="button1" class="btn7" taborder="7" text="엑셀" onclick="group3_button1_onclick"/>
  24. <Static text="재원환자 종교 현황" position="absolute 0 69 135 85" id="caption1" class="tit_2"/>
  25. <Shape position="absolute 0 85 635 91" linetype="horizontal" id="line4" class="line_10"/>
  26. <Static text="종 교 :" position="absolute 185 31 242 48" id="caption3" class="search_name"/>
  27. <Combo position="absolute 240 30 325 49" id="cmb_religncd" class="combo_s_essential" taborder="1" innerdataset="@ds_init_M0070_M0070" datacolumn="cdnm" codecolumn="cdid" onitemchanged="group3_cmb_religncd_onitemchanged"/>
  28. <Grid position="absolute 0 90 635 640" id="grd_relignlist" binddataset="ds_main_religninfo_relignlist" cellsizingtype="col" class="datagrid2">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="85"/>
  33. <Column size="40"/>
  34. <Column size="60"/>
  35. <Column size="80"/>
  36. <Column size="0"/>
  37. <Column size="120"/>
  38. <Column size="45"/>
  39. <Column size="35"/>
  40. <Column size="65"/>
  41. <Column size="80"/>
  42. </Columns>
  43. <Rows>
  44. <Row size="26" band="head"/>
  45. <Row size="24"/>
  46. </Rows>
  47. <Band id="head">
  48. <Cell text="병동"/>
  49. <Cell col="1" text="병실"/>
  50. <Cell col="2" text="환자번호"/>
  51. <Cell col="3" text="이름"/>
  52. <Cell col="4" text="이름"/>
  53. <Cell col="5" text="입원일시"/>
  54. <Cell col="6" text="나이"/>
  55. <Cell col="7" text="성별"/>
  56. <Cell col="8" text="종교"/>
  57. <Cell col="9" text="개인정보사정&#10;미동의"/>
  58. </Band>
  59. <Band id="body">
  60. <Cell displaytype="combo" style="padding:2 2 2 2;" text="bind:wardcd" combodataset="ds_init_dept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  61. <Cell col="1" style="align:left;padding:2 2 2 2;" text="bind:roomcd"/>
  62. <Cell col="2" style="align:left;padding:2 2 2 2;" text="bind:pid"/>
  63. <Cell col="3" style="align:left;padding:2 2 2 2;" text="bind:patnm"/>
  64. <Cell col="4" style="padding:2 2 2 2;" text="bind:patnm2"/>
  65. <Cell col="5" style="padding:2 2 2 2;" text="bind:indt" mask="expr:utlf_isNull(indt) ? '' : '####-##-## ##:##'"/>
  66. <Cell col="6" style="padding:2 2 2 2;" text="bind:age"/>
  67. <Cell col="7" style="padding:2 2 2 2;" text="bind:sex"/>
  68. <Cell col="8" displaytype="combo" style="padding:2 2 2 2;" text="bind:religncd" combodataset="ds_init_M0070_M0070" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  69. <Cell col="9" style="padding:2 2 2 2;" text="bind:privacy"/>
  70. </Band>
  71. </Format>
  72. </Formats>
  73. </Grid>
  74. </Layout>
  75. </Layouts>
  76. </Div>
  77. </Layout>
  78. </Layouts>
  79. <Objects>
  80. <Dataset id="ds_init_dept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  81. <ColumnInfo>
  82. <Column id="depthngnm" type="STRING"/>
  83. <Column id="deptcd" type="STRING"/>
  84. </ColumnInfo>
  85. </Dataset>
  86. <Dataset id="ds_init_M0070_M0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  87. <ColumnInfo>
  88. <Column id="cdnm" type="STRING"/>
  89. <Column id="cdid" type="STRING"/>
  90. </ColumnInfo>
  91. </Dataset>
  92. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  95. <Column id="religncd" type="STRING" size="256" sumtext="종교코드"/>
  96. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  97. </ColumnInfo>
  98. </Dataset>
  99. <Dataset id="ds_main_religninfo_relignlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  100. <ColumnInfo>
  101. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  102. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  103. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  104. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  105. <Column id="patnm2" type="STRING" size="256" sumtext="환자명2"/>
  106. <Column id="indt" type="STRING" size="256" sumtext="입원일자"/>
  107. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  108. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  109. <Column id="religncd" type="STRING" size="256" sumtext="종교코드"/>
  110. <Column id="privacy" type="STRING" size="256" sumtext="개인정보사정 미동의 여부"/>
  111. </ColumnInfo>
  112. </Dataset>
  113. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="wardcd" type="STRING" size="256"/>
  116. <Column id="religncd" type="STRING" size="256"/>
  117. <Column id="pid" type="STRING" size="256"/>
  118. </ColumnInfo>
  119. <Rows>
  120. <Row/>
  121. </Rows>
  122. </Dataset>
  123. </Objects>
  124. <Bind>
  125. <BindItem id="item0" compid="group3.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
  126. <BindItem id="item1" compid="group3.cmb_religncd" propid="value" datasetid="ds_main_cond" columnid="religncd"/>
  127. <BindItem id="item2" compid="group3.grp_sea.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
  128. </Bind>
  129. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  130. * System Name : 경대 의료정보시스템
  131. * Job Name : emr_wardcarexp -> SMMNW15000
  132. * Creator : yjh
  133. * Make Date : 2017-01-09
  134. * Description :
  135. *---------------------------------------------------------------------------------------
  136. * Modify Date Modifier Modify Description
  137. *---------------------------------------------------------------------------------------
  138. * 2017-01-09 yjh TF->XP
  139. *
  140. *---------------------------------------------------------------------------------------
  141. ****************************************************************************************/
  142. //=======================================================================================
  143. // Lib Include
  144. //---------------------------------------------------------------------------------------
  145. include "com_commonxp::comm_main.xjs";
  146. //=======================================================================================
  147. // Global Form Variable
  148. //---------------------------------------------------------------------------------------
  149. //=======================================================================================
  150. // Function
  151. //---------------------------------------------------------------------------------------
  152. function fSearch() {
  153. ds_send_reqdata.copyData(ds_main_cond);
  154. var oParam = {};
  155. oParam.id = "TRMNW15000";
  156. oParam.service = "wardcareapp.WardCareMngt";
  157. oParam.method = "reqGetRelignList";
  158. oParam.inds = "req=ds_send_reqdata";
  159. oParam.outds = "ds_main_religninfo_relignlist=relignlist";
  160. oParam.async = false;
  161. //oParam.callback = "cf_TRMNW15000";
  162. tranf_submit(oParam);
  163. ds_main_religninfo_relignlist.rowposition = -1;
  164. }
  165. //=======================================================================================
  166. // Event
  167. //---------------------------------------------------------------------------------------
  168. /****************************************************************************************
  169. * Components : Form
  170. * Components ID : SMMNW15000
  171. * Event : oninit
  172. * Argument : 01.obj : Object Event has occurred
  173. * : 02.e : Event Object
  174. * Description : 화면 처음 초기화시
  175. ****************************************************************************************/
  176. function SMMNW15000_oninit(obj:Form, e:InitEventInfo)
  177. {
  178. frmf_initForm(obj); //폼 초기화
  179. }
  180. /****************************************************************************************
  181. * Components : Form
  182. * Components ID : SMMNW15000
  183. * Event : onload
  184. * Argument : 01.obj : Object Event has occurred
  185. * : 02.e : Event Object
  186. * Description : 화면 로딩 완료시
  187. ****************************************************************************************/
  188. function SMMNW15000_onload(obj:Form, e:LoadEventInfo)
  189. {
  190. var instcd = sysf_getUserInfo("dutplceinstcd");
  191. var standard_yn = "orduseyn";
  192. var ord_deptflag = 'W';
  193. var rslt_ref = "ds_init_dept_dept";
  194. var sort_field = "depthngnm";
  195. var sort_method = "asc";
  196. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, "", "", "", rslt_ref);
  197. frmf_addComboItem("group3.cmb_wardcd", "전 체", "", "above");
  198. group3.cmb_wardcd.value = "";
  199. // 공통코드 가져오기
  200. var arrParam = [{dsNm: "ds_init_M0070_M0070", cdGrpId: "M0070"}] // 급여구분에 대한 종류
  201. appf_getCodeList(arrParam);
  202. frmf_addComboItem("group3.cmb_religncd", "전 체", "", "above");
  203. group3.cmb_religncd.value = "";
  204. group3.cmb_wardcd.value = sysf_getUserInfo("dutplcecd");
  205. //fSearch() ;
  206. this.setTimer(0, 100);
  207. }
  208. /****************************************************************************************
  209. * Components : Button
  210. * Components ID : button2
  211. * Event : onclick
  212. * Argument : 01.obj : Object Event has occurred
  213. * : 02.e : Event Object
  214. * Description : 조회버튼 클릭시
  215. ****************************************************************************************/
  216. function group3_grp_sea_button2_onclick(obj:Button, e:ClickEventInfo)
  217. {
  218. fSearch();
  219. }
  220. /****************************************************************************************
  221. * Components : Combo
  222. * Components ID : cmb_wardcd
  223. * Event : onitemchanged
  224. * Argument : 01.obj : Object Event has occurred
  225. * : 02.e : Event Object
  226. * Description : 콤보 값 변경시
  227. ****************************************************************************************/
  228. function group3_cmb_wardcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  229. {
  230. fSearch();
  231. }
  232. /****************************************************************************************
  233. * Components : Button
  234. * Components ID : button1
  235. * Event : onclick
  236. * Argument : 01.obj : Object Event has occurred
  237. * : 02.e : Event Object
  238. * Description : 엑셀버튼 클릭시
  239. ****************************************************************************************/
  240. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  241. {
  242. if( group3.grd_relignlist.rowcount > 0 ){
  243. grdf_exportExcel(group3.grd_relignlist, "재원환자 종교 현황", "재원환자 종교 현황", false, "", "user", false);
  244. } else {
  245. sysf_messageBox("조회된 데이터가 ", "I004");
  246. return;
  247. }
  248. }
  249. /****************************************************************************************
  250. * Components : Combo
  251. * Components ID : cmb_religncd
  252. * Event : onitemchanged
  253. * Argument : 01.obj : Object Event has occurred
  254. * : 02.e : Event Object
  255. * Description : 콤보 값 변경시
  256. ****************************************************************************************/
  257. function group3_cmb_religncd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  258. {
  259. fSearch();
  260. }
  261. function SMMNW15000_ontimer(obj:Form, e:TimerEventInfo)
  262. {
  263. if( e.timerid == 0 ){
  264. this.killTimer(0);
  265. fSearch() ;
  266. }
  267. }
  268. ]]></Script>
  269. </Form>
  270. </FDL>