SPASI03000_삽입기구조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPASI03000" position="absolute 0 0 1197 792" titletext="삽입기구관련대상자조회" oninit="SPASI03000_oninit" onload="SPASI03000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 6 1195 790" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout width="1195" height="784"/>
  10. </Layouts>
  11. </Div>
  12. <Div position="absolute 0 763 1195 790" id="grp_btn">
  13. <Layouts>
  14. <Layout>
  15. <Button position="absolute 5 3 61 25" id="btn_print" class="btn6" visible="false" text="출력"/>
  16. <Button position="absolute 1126 3 1194 25" id="btn_init" class="btn4" text="초기화"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Static id="caption6" text="삽입기구 관련 대상자 조회" class="tit_1" position="absolute 0 0 189 25"/>
  21. <Shape id="line6" linetype="vertical" class="line_3" position="absolute -1 136 1193 142"/>
  22. <Shape id="line5" linetype="vertical" class="line_1" position="absolute -1 107 1193 113"/>
  23. <Div id="group6" taborder="1" class="div_SA" position="absolute 0 26 1194 86">
  24. <Layouts>
  25. <Layout>
  26. <Shape id="line8" linetype="vertical" class="line_4" position="absolute 1107 10 1113 53"/>
  27. <Static id="caption15" text="삽입기구종류 :" class="search_name" position="absolute 435 10 547 27"/>
  28. <Static id="caption21" text="등록번호 :" class="search_name" position="absolute 15 35 101 52"/>
  29. <Static id="caption2" text="~" class="search_no_b" position="absolute 220 14 232 31"/>
  30. <Static id="caption1" text="병동 :" class="search_name" position="absolute 780 9 846 26"/>
  31. <Calendar id="ipt_fromdd" taborder="1" class="input_s_essential" position="absolute 108 11 218 30"/>
  32. <Calendar id="ipt_todd" taborder="2" class="input_s_essential" position="absolute 232 11 342 30"/>
  33. <Edit id="ipt_pid" taborder="3" class="input_default" enable="false" position="absolute 108 34 218 53"/>
  34. <Combo id="cmb_catheter" taborder="4" innerdataset="ds_init_cmb_catheter" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 559 9 689 28"/>
  35. <Combo id="cmb_wardcd" taborder="5" innerdataset="ds_init_cmb_wardcd" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 850 9 955 28"/>
  36. <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1126 21 1182 43" onclick="group6_btn_search_onclick"/>
  37. <Static id="cap_fromdd" text="기간선택 :" class="search_name" visible="false" position="absolute 15 9 104 26"/>
  38. <Static id="cap_todd" text="기간선택 :" class="search_name" position="absolute 15 9 104 26"/>
  39. </Layout>
  40. </Layouts>
  41. </Div>
  42. <Shape id="line1" class="line_10" position="absolute -1 111 1193 117"/>
  43. <Button id="btn_excel" taborder="2" text="선택" class="btn2" position="absolute 1061 89 1103 108"/>
  44. <Button id="btn_spread" taborder="3" text="펼침" class="btn2" position="absolute 1106 89 1148 108"/>
  45. <Button id="btn_close" taborder="4" text="닫침" class="btn2" position="absolute 1151 89 1193 108"/>
  46. <Grid id="grd_catpatlist" taborder="5" binddataset="ds_grd_catpatlist" useinputpanel="false" position="absolute 1 115 1195 756">
  47. <Formats>
  48. <Format id="default">
  49. <Columns>
  50. <Column size="90"/>
  51. <Column size="0"/>
  52. <Column size="76"/>
  53. <Column size="35"/>
  54. <Column size="50"/>
  55. <Column size="0"/>
  56. <Column size="100"/>
  57. <Column size="100"/>
  58. <Column size="100"/>
  59. <Column size="90"/>
  60. <Column size="0"/>
  61. <Column size="73"/>
  62. <Column size="93"/>
  63. <Column size="73"/>
  64. <Column size="80"/>
  65. <Column size="80"/>
  66. <Column size="200"/>
  67. <Column size="0"/>
  68. <Column size="0"/>
  69. <Column size="0"/>
  70. </Columns>
  71. <Rows>
  72. <Row size="24" band="head"/>
  73. <Row size="24"/>
  74. </Rows>
  75. <Band id="head">
  76. <Cell text="등록번호"/>
  77. <Cell col="1" text="level"/>
  78. <Cell col="2" text="성명"/>
  79. <Cell col="3" text="성별"/>
  80. <Cell col="4" text="나이"/>
  81. <Cell col="5" text="삽입기구코드"/>
  82. <Cell col="6" text="삽입기구"/>
  83. <Cell col="7" text="삽입일"/>
  84. <Cell col="8" text="제거일"/>
  85. <Cell col="9" text="진료과"/>
  86. <Cell col="10" text="주치의코드"/>
  87. <Cell col="11" text="주치의"/>
  88. <Cell col="12" text="병동"/>
  89. <Cell col="13" text="병실"/>
  90. <Cell col="14" text="입원일"/>
  91. <Cell col="15" text="퇴원일"/>
  92. <Cell col="16" text="진단명"/>
  93. <Cell col="17" text="cretno"/>
  94. <Cell col="18" text="seqno"/>
  95. <Cell col="19" text="instcd"/>
  96. </Band>
  97. <Band id="body">
  98. <Cell text="bind:pid"/>
  99. <Cell col="1" text="bind:levl"/>
  100. <Cell col="2" text="bind:name"/>
  101. <Cell col="3" text="bind:sexflag"/>
  102. <Cell col="4" text="bind:age"/>
  103. <Cell col="5" text="bind:itemcd"/>
  104. <Cell col="6" text="bind:itemnm"/>
  105. <Cell col="7" text="bind:opdt" mask="yyyy-mm-dd"/>
  106. <Cell col="8" text="bind:cncldt" mask="yyyy-mm-dd"/>
  107. <Cell col="9" text="bind:orddeptcd"/>
  108. <Cell col="10" text="bind:atdoct"/>
  109. <Cell col="11" text="bind:atdoctnm"/>
  110. <Cell col="12" enable="false" text="bind:wardcd"/>
  111. <Cell col="13" text="bind:roomcd"/>
  112. <Cell col="14" enable="false" text="bind:indd" mask="yyyy-mm-dd"/>
  113. <Cell col="15" text="bind:dschdd" mask="yyyy-mm-dd"/>
  114. <Cell col="16" text="bind:diagnm"/>
  115. <Cell col="17" text="bind:cretno"/>
  116. <Cell col="18" text="bind:seqno"/>
  117. <Cell col="19" text="bind:instcd"/>
  118. </Band>
  119. </Format>
  120. </Formats>
  121. </Grid>
  122. <Static id="caption25" text="삽입기구사용환자" class="tit_2" position="absolute 1 95 129 112"/>
  123. </Layout>
  124. </Layouts>
  125. <Objects>
  126. <Dataset id="ds_init_cmb_catheter" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  127. <ColumnInfo>
  128. <Column id="cdnm" type="STRING"/>
  129. <Column id="cdid" type="STRING"/>
  130. </ColumnInfo>
  131. </Dataset>
  132. <Dataset id="ds_init_cmb_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  133. <ColumnInfo>
  134. <Column id="depthngnm" type="STRING"/>
  135. <Column id="deptcd" type="STRING"/>
  136. </ColumnInfo>
  137. </Dataset>
  138. <Dataset id="ds_grd_catpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  139. <ColumnInfo>
  140. <Column id="pid" type="STRING"/>
  141. <Column id="levl" type="STRING"/>
  142. <Column id="name" type="STRING"/>
  143. <Column id="sexflag" type="STRING"/>
  144. <Column id="age" type="STRING"/>
  145. <Column id="itemcd" type="STRING"/>
  146. <Column id="itemnm" type="STRING"/>
  147. <Column id="opdt" type="STRING"/>
  148. <Column id="cncldt" type="STRING"/>
  149. <Column id="orddeptcd" type="STRING"/>
  150. <Column id="atdoct" type="STRING"/>
  151. <Column id="atdoctnm" type="STRING"/>
  152. <Column id="wardcd" type="STRING"/>
  153. <Column id="roomcd" type="STRING"/>
  154. <Column id="indd" type="STRING"/>
  155. <Column id="dschdd" type="STRING"/>
  156. <Column id="diagnm" type="STRING"/>
  157. <Column id="cretno" type="STRING"/>
  158. <Column id="seqno" type="STRING"/>
  159. <Column id="instcd" type="STRING"/>
  160. </ColumnInfo>
  161. </Dataset>
  162. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  163. <ColumnInfo>
  164. <Column id="fromdd" type="STRING" size="256"/>
  165. <Column id="todd" type="STRING" size="256"/>
  166. <Column id="pid" type="STRING" size="256"/>
  167. <Column id="catheter" type="STRING" size="256"/>
  168. <Column id="wardcd" type="STRING" size="256"/>
  169. </ColumnInfo>
  170. <Rows>
  171. <Row/>
  172. </Rows>
  173. </Dataset>
  174. <Dataset id="ds_init_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  175. <Dataset id="ds_init_warddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  176. </Objects>
  177. <Bind>
  178. <BindItem id="item0" compid="group6.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  179. <BindItem id="item1" compid="group6.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  180. <BindItem id="item2" compid="group6.cmb_catheter" propid="value" datasetid="ds_main_cond" columnid="catheter"/>
  181. <BindItem id="item3" compid="group6.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
  182. <BindItem id="item4" compid="group6.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
  183. </Bind>
  184. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  185. * System Name :
  186. * Job Name :
  187. * Creator :
  188. * Make Date : 2015-11-13
  189. * Description :
  190. *---------------------------------------------------------------------------------------
  191. * Modify Date Modifier Modify Description
  192. *---------------------------------------------------------------------------------------
  193. * 2015-11-13 Live Converter TF->XP
  194. *
  195. *---------------------------------------------------------------------------------------
  196. ****************************************************************************************/
  197. include "com_commonxp::comm_main.xjs";
  198. include "com_basiccodexp::ZBC001.xjs";
  199. include "com_departmentcodexp::ZSD001.xjs";
  200. function SPASI03000_oninit(obj:Form, e:InitEventInfo)
  201. {
  202. frmf_initForm(obj);
  203. grdf_initGrid(grd_catpatlist);
  204. }
  205. function SPASI03000_onload(obj:Form, e:LoadEventInfo)
  206. {
  207. fInitialize();
  208. ds_grd_catpatlist.clearData();
  209. }
  210. function fInitialize()
  211. {
  212. // 부모창에서 환자 등록번호 조회
  213. //var pid = opener.model.getValue("/root/main/hospinfcinfo/hospinfc/info/pid");
  214. var pid = opener.ds_main_hospinfcinfo_hospinfc_info.getColumn(0, "pid");
  215. //model.setValue("/root/main/cond/pid", pid);
  216. ds_main_cond.setColumn(0, "pid", pid);
  217. // 공통코드를 조회한다.
  218. //삽입기구종류
  219. //addComboItem("cmb_catheter","","","above");
  220. var arrParam = [{dsNm: "ds_init_A0358", cdGrpId: "A0358" }];
  221. appf_getCodeList(arrParam);
  222. switch1.case1.setFocus();
  223. // 진료과
  224. var instcd = sysf_getUserInfo("dutplceinstcd");
  225. var standard_yn = "orduseyn";
  226. var ord_deptflag = 'D';
  227. var rslt_ref = "ds_init_deptlist";
  228. sort_field = "deptcd";
  229. sort_method = "asc";
  230. var dt = utlf_getCurrentDate();
  231. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, dt, "", "",rslt_ref ,false, "");
  232. //병동
  233. standard_yn = "orduseyn";
  234. ord_deptflag = "W";
  235. rslt_ref = "ds_init_warddeptlist";
  236. sort_field = "deptcd";
  237. sort_method = "asc";
  238. var dt = utlf_getCurrentDate();
  239. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, dt, "", "",rslt_ref ,false, "");
  240. var today = utlf_getCurrentDate();
  241. var idate = new Date();
  242. var peveDate = idate.getAddDate(-1, "D");
  243. //model.setValue("/root/init/initdate/today", today);
  244. ds_init_initdate.setColumn(0, "today", today);
  245. //model.makeValue("/root/send/cond/trgtmancnt", "I");
  246. ds_send_cond.setColumn(0, "trgtmancnt", "I");
  247. // model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  248. // model.makeValue("/root/send/cond/todd", today);
  249. //model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  250. //model.setValue("/root/main/cond/todd", today);
  251. ds_main_cond.setColumn(0, "fromdd", peveDate.getDateFormat());
  252. ds_main_cond.setColumn(0, "todd", today);
  253. }]]></Script>
  254. </Form>
  255. </FDL>