SPMMO32500_응급실응급질환대상자검색.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO32500" position="absolute 0 0 807 686" titletext="응급질환 입력대상자 조회" oninit="SPMMO32500_oninit" onload="SPMMO32500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 805 65" id="roundrect1" type="roundrectangle" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 730 9 786 31" anchor="top right" onclick="roundrect1_btn_search_onclick"/>
  11. <Combo id="combo3" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 84 9 169 31" anchor="default">
  12. <Dataset id="innerdataset">
  13. <ColumnInfo>
  14. <Column id="codecolumn"/>
  15. <Column id="datacolumn"/>
  16. </ColumnInfo>
  17. <Rows>
  18. <Row>
  19. <Col id="codecolumn">1</Col>
  20. <Col id="datacolumn">퇴원일</Col>
  21. </Row>
  22. <Row>
  23. <Col id="codecolumn">2</Col>
  24. <Col id="datacolumn">내원일</Col>
  25. </Row>
  26. </Rows>
  27. </Dataset>
  28. </Combo>
  29. <Calendar id="input3" taborder="2" class="input_search" position="absolute 184 9 277 31" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  30. <Calendar id="input1" taborder="3" class="input_search" position="absolute 302 9 395 31" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
  31. <Static id="caption1" text="~" position="absolute 284 10 295 30" anchor="default"/>
  32. <Static id="caption8" text="검색조건 :" class="search_name" position="absolute 10 13 81 30" anchor="default"/>
  33. <Shape id="line2" linetype="vertical" position="absolute 707 9 713 32" anchor="top right"/>
  34. <Radio id="radio1" taborder="4" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 465 9 655 29" anchor="default" onitemchanged="roundrect1_radio1_onitemchanged">
  35. <Dataset id="innerdataset">
  36. <ColumnInfo>
  37. <Column id="codecolumn"/>
  38. <Column id="datacolumn"/>
  39. </ColumnInfo>
  40. <Rows>
  41. <Row>
  42. <Col id="codecolumn">1</Col>
  43. <Col id="datacolumn">응급심장질환</Col>
  44. </Row>
  45. <Row>
  46. <Col id="codecolumn">2</Col>
  47. <Col id="datacolumn">응급뇌질환</Col>
  48. </Row>
  49. </Rows>
  50. </Dataset>
  51. </Radio>
  52. </Layout>
  53. </Layouts>
  54. </Div>
  55. <Shape position="absolute 0 69 805 75" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
  56. <Grid position="absolute 0 74 805 684" id="grd_rsamiptinfo" visible="false" binddataset="ds_main_rsamiptlist" anchor="all" oncelldblclick="grd_rsamiptinfo_oncelldblclick">
  57. <Formats>
  58. <Format id="default">
  59. <Columns>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="69"/>
  63. <Column size="76"/>
  64. <Column size="74"/>
  65. <Column size="73"/>
  66. <Column size="99"/>
  67. <Column size="0"/>
  68. </Columns>
  69. <Rows>
  70. <Row size="24" band="head"/>
  71. <Row size="24"/>
  72. </Rows>
  73. <Band id="head">
  74. <Cell text="indd"/>
  75. <Cell col="1" text="cretno"/>
  76. <Cell col="2" text="환자번호"/>
  77. <Cell col="3" text="환자명"/>
  78. <Cell col="4" text="내원일자"/>
  79. <Cell col="5" text="내원시간"/>
  80. <Cell col="6" text="내원사유"/>
  81. <Cell col="7" text="응급진료결과"/>
  82. </Band>
  83. <Band id="body">
  84. <Cell text="bind:indd"/>
  85. <Cell col="1" text="bind:cretno"/>
  86. <Cell col="2" text="bind:pid"/>
  87. <Cell col="3" text="bind:pathngnm"/>
  88. <Cell col="4" text="bind:chosdd"/>
  89. <Cell col="5" text="bind:chostm"/>
  90. <Cell col="6" text="bind:chosresn"/>
  91. <Cell col="7" text="bind:erclincrslt"/>
  92. </Band>
  93. </Format>
  94. </Formats>
  95. </Grid>
  96. <Static text="응급질환 입력대상자 조회" position="absolute 0 0 188 25" id="caption6" class="tit_1"/>
  97. <Grid position="absolute 0 74 805 684" id="grd_rscviptinfo" visible="false" binddataset="ds_main_rscviptlist" anchor="all" oncelldblclick="grd_rscviptinfo_oncelldblclick">
  98. <Formats>
  99. <Format id="default">
  100. <Columns>
  101. <Column size="0"/>
  102. <Column size="0"/>
  103. <Column size="80"/>
  104. <Column size="80"/>
  105. <Column size="0"/>
  106. <Column size="70"/>
  107. <Column size="110"/>
  108. <Column size="0"/>
  109. </Columns>
  110. <Rows>
  111. <Row size="24" band="head"/>
  112. <Row size="24"/>
  113. </Rows>
  114. <Band id="head">
  115. <Cell text="indd"/>
  116. <Cell col="1" text="cretno"/>
  117. <Cell col="2" text="환자번호"/>
  118. <Cell col="3" text="환자명"/>
  119. <Cell col="4" text="내원일자"/>
  120. <Cell col="5" text="내원시간"/>
  121. <Cell col="6" text="내원사유"/>
  122. <Cell col="7" text="응급진료결과"/>
  123. </Band>
  124. <Band id="body">
  125. <Cell text="bind:indd"/>
  126. <Cell col="1" text="bind:cretno"/>
  127. <Cell col="2" text="bind:pid"/>
  128. <Cell col="3" text="bind:pathngnm"/>
  129. <Cell col="4" text="bind:chosdd"/>
  130. <Cell col="5" text="bind:chostm"/>
  131. <Cell col="6" text="bind:chosresn"/>
  132. <Cell col="7" text="bind:erclincrslt"/>
  133. </Band>
  134. </Format>
  135. </Formats>
  136. </Grid>
  137. </Layout>
  138. </Layouts>
  139. <Objects>
  140. <Dataset id="ds_main_rsamiptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="indd" type="STRING" size="256"/>
  143. <Column id="cretno" type="STRING" size="256"/>
  144. <Column id="pid" type="STRING" size="256"/>
  145. <Column id="pathngnm" type="STRING" size="256"/>
  146. <Column id="chosdd" type="STRING" size="256"/>
  147. <Column id="chostm" type="STRING" size="256"/>
  148. <Column id="chosresn" type="STRING" size="256"/>
  149. <Column id="erclincrslt" type="STRING" size="256"/>
  150. <Column id="tmprts" type="STRING" size="256"/>
  151. <Column id="recovwardcd" type="STRING" size="256"/>
  152. </ColumnInfo>
  153. <Rows>
  154. <Row>
  155. <Col id="indd"/>
  156. <Col id="cretno"/>
  157. <Col id="pid"/>
  158. <Col id="pathngnm"/>
  159. <Col id="chosdd"/>
  160. <Col id="chostm"/>
  161. <Col id="chosresn"/>
  162. <Col id="erclincrslt"/>
  163. <Col id="tmprts"/>
  164. <Col id="recovwardcd"/>
  165. </Row>
  166. </Rows>
  167. </Dataset>
  168. <Dataset id="ds_main_rscviptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  169. <ColumnInfo>
  170. <Column id="indd" type="STRING" size="256"/>
  171. <Column id="cretno" type="STRING" size="256"/>
  172. <Column id="pid" type="STRING" size="256"/>
  173. <Column id="pathngnm" type="STRING" size="256"/>
  174. <Column id="chosdd" type="STRING" size="256"/>
  175. <Column id="chostm" type="STRING" size="256"/>
  176. <Column id="chosresn" type="STRING" size="256"/>
  177. <Column id="erclincrslt" type="STRING" size="256"/>
  178. <Column id="tmprts" type="STRING" size="256"/>
  179. <Column id="recovwardcd" type="STRING" size="256"/>
  180. </ColumnInfo>
  181. <Rows>
  182. <Row>
  183. <Col id="indd"/>
  184. <Col id="cretno"/>
  185. <Col id="pid"/>
  186. <Col id="pathngnm"/>
  187. <Col id="chosdd"/>
  188. <Col id="chostm"/>
  189. <Col id="chosresn"/>
  190. <Col id="erclincrslt"/>
  191. <Col id="tmprts"/>
  192. <Col id="recovwardcd"/>
  193. </Row>
  194. </Rows>
  195. </Dataset>
  196. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="srch_kind" type="STRING" size="256"/>
  199. <Column id="srch_startdd" type="STRING" size="256"/>
  200. <Column id="srch_enddd" type="STRING" size="256"/>
  201. </ColumnInfo>
  202. </Dataset>
  203. <Dataset id="ds_send_srchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  204. <ColumnInfo>
  205. <Column id="srch_kind" type="STRING" size="256"/>
  206. <Column id="srch_startdd" type="STRING" size="256"/>
  207. <Column id="srch_enddd" type="STRING" size="256"/>
  208. <Column id="srch_flag" type="STRING" size="256"/>
  209. </ColumnInfo>
  210. <Rows>
  211. <Row>
  212. <Col id="srch_kind"/>
  213. <Col id="srch_startdd"/>
  214. <Col id="srch_enddd"/>
  215. <Col id="srch_flag"/>
  216. </Row>
  217. </Rows>
  218. </Dataset>
  219. </Objects>
  220. <Bind>
  221. <BindItem id="item0" compid="roundrect1.combo3" propid="value" datasetid="ds_send_srchdata" columnid="srch_kind"/>
  222. <BindItem id="item1" compid="roundrect1.input3" propid="value" datasetid="ds_send_srchdata" columnid="srch_startdd"/>
  223. <BindItem id="item2" compid="roundrect1.input1" propid="value" datasetid="ds_send_srchdata" columnid="srch_enddd"/>
  224. <BindItem id="item3" compid="roundrect1.radio1" propid="value" datasetid="ds_send_srchdata" columnid="srch_flag"/>
  225. </Bind>
  226. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  227. * System Name :
  228. * Job Name :
  229. * Creator :
  230. * Make Date : 2015-11-13
  231. * Description :
  232. *---------------------------------------------------------------------------------------
  233. * Modify Date Modifier Modify Description
  234. *---------------------------------------------------------------------------------------
  235. * 2015-11-13 Live Converter TF->XP
  236. *
  237. *---------------------------------------------------------------------------------------
  238. ****************************************************************************************/
  239. include "com_commonxp::comm_main.xjs";
  240. var arErrorCode = new HashArray();
  241. /******************************************************************
  242. * Argument :
  243. * Description : 초기화
  244. ******************************************************************/
  245. function SPMMO32500_oninit(obj:Form, e:InitEventInfo)
  246. {
  247. frmf_initForm(obj);
  248. }
  249. function SPMMO32500_onload(obj:Form, e:LoadEventInfo)
  250. {
  251. ds_main_rsamiptlist.clearData();
  252. ds_main_rscviptlist.clearData();
  253. ds_send_srchdata.setColumn(0, "srch_flag", "1");
  254. if( ds_send_srchdata.getColumn(0, "srch_flag") == "1" ){
  255. grd_rsamiptinfo.visible = true;
  256. }else{
  257. grd_rscviptinfo.visible = false;
  258. }
  259. //Grd Sort
  260. grdf_setGridSort(grd_rscviptinfo);
  261. grdf_setGridSort(grd_rsamiptinfo);
  262. }
  263. /******************************************************************
  264. * Argument :
  265. * Description : 심장질환/뇌질환 radio event
  266. ******************************************************************/
  267. function roundrect1_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  268. {
  269. if( ds_send_srchdata.getColumn(0, "srch_flag") == "1" ){
  270. grd_rsamiptinfo.visible = true;
  271. grd_rscviptinfo.visible = false;
  272. }else{
  273. grd_rsamiptinfo.visible = false;
  274. grd_rscviptinfo.visible = true;
  275. }
  276. }
  277. /******************************************************************
  278. * Argument :
  279. * Description : 조회 button event
  280. ******************************************************************/
  281. function roundrect1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  282. {
  283. if( ds_send_srchdata.getColumn(0, "srch_flag") == "1" ){
  284. Search_Heart();
  285. }else{
  286. Search_Brain();
  287. }
  288. }
  289. /******************************************************************
  290. * Argument : Search_Heart()
  291. * Description : 응급심장질환 조회 event
  292. ******************************************************************/
  293. function Search_Heart(){
  294. ds_main_rsamiptlist.clearData();
  295. ds_send.clearData();
  296. var iRow = ds_send.addRow();
  297. ds_send.setColumn(iRow, "srch_kind", ds_send_srchdata.getColumn(0, "srch_kind") );
  298. ds_send.setColumn(iRow, "srch_startdd", ds_send_srchdata.getColumn(0, "srch_startdd") );
  299. ds_send.setColumn(iRow, "srch_enddd", ds_send_srchdata.getColumn(0, "srch_enddd") );
  300. var oParam = {};
  301. oParam.id = "TRMMO32501";
  302. oParam.service = "prcpmngtapp.ErMngt";
  303. oParam.method = "reqGetKAMIInputList";
  304. oParam.inds = "req=ds_send";
  305. oParam.outds = "ds_main_rsamiptlist=rsamiptlist";
  306. oParam.async = true;
  307. //oParam.callback = "cf_TRMMO32501";
  308. tranf_submit(oParam);
  309. }
  310. /******************************************************************
  311. * Argument : Search_Brain()
  312. * Description : 응급뇌질환 조회 event
  313. ******************************************************************/
  314. function Search_Brain(){
  315. ds_main_rscviptlist.clearData();
  316. ds_send.clearData();
  317. var iRow = ds_send.addRow();
  318. ds_send.setColumn(iRow, "srch_kind", ds_send_srchdata.getColumn(0, "srch_kind") );
  319. ds_send.setColumn(iRow, "srch_startdd", ds_send_srchdata.getColumn(0, "srch_startdd") );
  320. ds_send.setColumn(iRow, "srch_enddd", ds_send_srchdata.getColumn(0, "srch_enddd") );
  321. var oParam = {};
  322. oParam.id = "TRMMO32502";
  323. oParam.service = "prcpmngtapp.ErMngt";
  324. oParam.method = "reqGetKCVAInputList";
  325. oParam.inds = "req=ds_send";
  326. oParam.outds = "ds_main_rscviptlist=rscviptlist";
  327. oParam.async = true;
  328. //oParam.callback = "cf_TRMMO32502";
  329. tranf_submit(oParam);
  330. }
  331. /******************************************************************
  332. * Argument :
  333. * Description : 응급심장질환 조회 event
  334. ******************************************************************/
  335. function grd_rsamiptinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  336. {
  337. var cRow = ds_main_rsamiptlist.rowposition;
  338. if( cRow > -1 ) {
  339. frmf_setParameter("SPMMO32600_pid", ds_main_rsamiptlist.getColumn(cRow, "pid"));
  340. frmf_setParameter("SPMMO32600_orddd", ds_main_rsamiptlist.getColumn(cRow, "indd"));
  341. frmf_setParameter("SPMMO32600_cretno", ds_main_rsamiptlist.getColumn(cRow, "cretno"));
  342. frmf_open("SPMMO32600", "SPMMO32600", null, null, null, null, null, null, null, null, null, null, "M");
  343. }
  344. }
  345. /******************************************************************
  346. * Argument :
  347. * Description : 응급뇌질환 조회 event
  348. ******************************************************************/
  349. function grd_rscviptinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  350. {
  351. var cRow = ds_main_rscviptlist.rowposition;
  352. if( cRow > -1 ) {
  353. frmf_setParameter("SPMMO32700_pid", model.getValue("/root/main/rscviptlist/rscviptinfo[" + currow + "]/pid"));
  354. frmf_setParameter("SPMMO32700_orddd", model.getValue("/root/main/rscviptlist/rscviptinfo[" + currow + "]/indd"));
  355. frmf_setParameter("SPMMO32700_cretno", model.getValue("/root/main/rscviptlist/rscviptinfo[" + currow + "]/cretno"));
  356. frmf_open("SPMMO32700", "SPMMO32700", null, null, null, null, null, null, null, null, null, null, "M");
  357. }
  358. }
  359. ]]></Script>
  360. </Form>
  361. </FDL>