SMMNE07000_응급의료센터중증환자지표관리.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE07000" position="absolute 0 0 1196 774" titletext="응급의료센터 중증환자 지표관리" oninit="SMMNE07000_oninit" onload="SMMNE07000_onload" scrollbars="none" ontimer="SMMNE07000_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="1" class="div_SA" position="absolute 0 25 1194 65" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1036 9 1042 31" anchor="top right"/>
  11. <Static id="caption2" text="조회기간 :" class="search_name" position="absolute 15 13 86 30" anchor="default"/>
  12. <Calendar id="input_refFrDT" taborder="1" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 90 9 190 31" anchor="default" autoselect="true" autoskip="true"/>
  13. <Static id="caption5" text="~" class="search_no_b" position="absolute 198 12 209 29" anchor="default"/>
  14. <Calendar id="input_refToDT" taborder="2" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 216 9 316 31" anchor="default" autoselect="true"/>
  15. <Button id="btn_srch" taborder="3" text="조회" class="btn1" position="absolute 1055 9 1111 31" anchor="top right" onclick="group2_btn_srch_onclick"/>
  16. <Static id="caption1" text="중증분류 :" class="search_name" position="absolute 350 13 421 30" anchor="default"/>
  17. <Radio id="radio1" taborder="4" columncount="4" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 425 11 756 31" anchor="default" onitemchanged="group2_radio1_onitemchanged">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn"/>
  21. <Column id="datacolumn"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn"/>
  26. <Col id="datacolumn">전체</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">1</Col>
  30. <Col id="datacolumn">Trauma</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">2</Col>
  34. <Col id="datacolumn">New Brain</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">3</Col>
  38. <Col id="datacolumn">New Heart</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Radio>
  43. <Button id="button1" taborder="5" text="엑셀" class="btn7" position="absolute 1120 9 1176 31" anchor="top right" onclick="group2_button1_onclick"/>
  44. </Layout>
  45. </Layouts>
  46. </Div>
  47. <Shape id="line4" linetype="horizontal" class="line_10" position="absolute 0 90 1194 96" anchor="left top right"/>
  48. <Grid id="grd_erpatlist" class="datagrid2" taborder="2" binddataset="ds_main_erpatinfo" useinputpanel="false" position="absolute 0 95 1194 751" anchor="all" cellsizebandtype="allband" cellsizingtype="col" oncellclick="grd_erpatlist_oncellclick" oncloseup="grd_erpatlist_oncloseup" onlbuttonup="grd_erpatlist_onlbuttonup" autoenter="key">
  49. <Formats>
  50. <Format id="default">
  51. <Columns>
  52. <Column size="72" band="left"/>
  53. <Column size="55" band="left"/>
  54. <Column size="44" band="left"/>
  55. <Column size="100" band="left"/>
  56. <Column size="83" band="left"/>
  57. <Column size="114" band="left"/>
  58. <Column size="95" band="left"/>
  59. <Column size="60" band="left"/>
  60. <Column size="63" band="left"/>
  61. <Column size="110"/>
  62. <Column size="84"/>
  63. <Column size="101"/>
  64. <Column size="101"/>
  65. <Column size="91"/>
  66. <Column size="100"/>
  67. <Column size="110"/>
  68. <Column size="73"/>
  69. <Column size="200"/>
  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="환자명"/>
  78. <Cell col="2" text="S/A"/>
  79. <Cell col="3" text="CallType"/>
  80. <Cell col="4" text="호출Dr"/>
  81. <Cell col="5" text="CallTime(최초)"/>
  82. <Cell col="6" text="CallTime(최종)"/>
  83. <Cell col="7" text="호출횟수"/>
  84. <Cell col="8" text="호출과"/>
  85. <Cell col="9" text="VisitTime"/>
  86. <Cell col="10" text="Call ~Visit"/>
  87. <Cell col="11" text="DoorTime"/>
  88. <Cell col="12" text="OutTime"/>
  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="진단명"/>
  94. </Band>
  95. <Band id="body">
  96. <Cell text="bind:pid"/>
  97. <Cell col="1" text="bind:hngnm"/>
  98. <Cell col="2" text="bind:sex"/>
  99. <Cell col="3" text="bind:calltype"/>
  100. <Cell col="4" text="bind:calldr"/>
  101. <Cell col="5" text="bind:fcalltime" mask="expr:utlf_isNull(fcalltime) ? '' : '####/##/## ##:##'" maskchar=" "/>
  102. <Cell col="6" text="bind:lcalltime" mask="expr:utlf_isNull(lcalltime) ? '' : '####/##/## ##:##'" maskchar=" "/>
  103. <Cell col="7" text="bind:callcnt"/>
  104. <Cell col="8" text="bind:calldept"/>
  105. <Cell col="9" text="bind:visittime" mask="expr:utlf_isNull(visittime) ? '' : '####/##/## ##:##'" maskchar=" "/>
  106. <Cell col="10" text="bind:callvisit"/>
  107. <Cell col="11" text="bind:doortime" mask="expr:utlf_isNull(doortime) ? '' : '####/##/## ##:##'" maskchar=" "/>
  108. <Cell col="12" text="bind:outtime" mask="expr:utlf_isNull(outtime) ? '' : '####/##/## ##:##'" maskchar=" "/>
  109. <Cell col="13" text="bind:inroomcd"/>
  110. <Cell col="14" displaytype="combo" edittype="combo" text="bind:eroutrmkind"/>
  111. <Cell col="15" text="bind:indocuisstime" mask="expr:utlf_isNull(indocuisstime) ? '' : '####/##/## ##:##'" maskchar=" "/>
  112. <Cell col="16" text="bind:indept"/>
  113. <Cell col="17" text="bind:diagnm"/>
  114. </Band>
  115. </Format>
  116. </Formats>
  117. </Grid>
  118. <Static id="caption22" text="응급의료센터 중증환자 리스트" class="tit_2" position="absolute 0 74 201 91"/>
  119. <Shape id="line1" linetype="horizontal" class="line_3" position="absolute 0 750 1194 756" anchor="left right bottom"/>
  120. <Static id="caption6" text="응급의료센터 중증환자 지표관리" class="tit_1" position="absolute 0 0 226 25"/>
  121. <Static id="caption3" text="[표]" position="absolute 1171 757 1196 769" anchor="right bottom"/>
  122. </Layout>
  123. </Layouts>
  124. <Objects>
  125. <Dataset id="ds_main_erpatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  126. <ColumnInfo>
  127. <Column id="pid" type="STRING" size="256"/>
  128. <Column id="hngnm" type="STRING" size="256"/>
  129. <Column id="sex" type="STRING" size="256"/>
  130. <Column id="calltype" type="STRING" size="256"/>
  131. <Column id="calldr" type="STRING" size="256"/>
  132. <Column id="fcalltime" type="STRING" size="256"/>
  133. <Column id="lcalltime" type="STRING" size="256"/>
  134. <Column id="callcnt" type="STRING" size="256"/>
  135. <Column id="calldept" type="STRING" size="256"/>
  136. <Column id="visittime" type="STRING" size="256"/>
  137. <Column id="callvisit" type="STRING" size="256"/>
  138. <Column id="doortime" type="STRING" size="256"/>
  139. <Column id="outtime" type="STRING" size="256"/>
  140. <Column id="inroomcd" type="STRING" size="256"/>
  141. <Column id="eroutrmkind" type="STRING" size="256"/>
  142. <Column id="indocuisstime" type="STRING" size="256"/>
  143. <Column id="indept" type="STRING" size="256"/>
  144. <Column id="diagnm" type="STRING" size="256"/>
  145. </ColumnInfo>
  146. <Rows>
  147. <Row>
  148. <Col id="pid"/>
  149. <Col id="hngnm"/>
  150. <Col id="sex"/>
  151. <Col id="calltype"/>
  152. <Col id="calldr"/>
  153. <Col id="fcalltime"/>
  154. <Col id="lcalltime"/>
  155. <Col id="callcnt"/>
  156. <Col id="calldept"/>
  157. <Col id="visittime"/>
  158. <Col id="callvisit"/>
  159. <Col id="doortime"/>
  160. <Col id="outtime"/>
  161. <Col id="inroomcd"/>
  162. <Col id="eroutrmkind"/>
  163. <Col id="indocuisstime"/>
  164. <Col id="indept"/>
  165. <Col id="diagnm"/>
  166. </Row>
  167. </Rows>
  168. </Dataset>
  169. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  170. <ColumnInfo>
  171. <Column id="fromdd" type="STRING" size="256"/>
  172. <Column id="todd" type="STRING" size="256"/>
  173. <Column id="grtype" type="STRING" size="256"/>
  174. </ColumnInfo>
  175. <Rows>
  176. <Row/>
  177. </Rows>
  178. </Dataset>
  179. <Dataset id="ds_init_M0555" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  180. <ColumnInfo>
  181. <Column id="cdid" type="STRING" size="256"/>
  182. <Column id="cdnm" type="STRING" size="256"/>
  183. </ColumnInfo>
  184. </Dataset>
  185. </Objects>
  186. <Bind>
  187. <BindItem id="item0" compid="group2.input_refFrDT" propid="value" datasetid="ds_send" columnid="fromdd"/>
  188. <BindItem id="item1" compid="group2.input_refToDT" propid="value" datasetid="ds_send" columnid="todd"/>
  189. <BindItem id="item2" compid="group2.radio1" propid="value" datasetid="ds_send" columnid="grtype"/>
  190. </Bind>
  191. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  192. * System Name :
  193. * Job Name :
  194. * Creator :
  195. * Make Date : 2015-11-13
  196. * Description :
  197. *---------------------------------------------------------------------------------------
  198. * Modify Date Modifier Modify Description
  199. *---------------------------------------------------------------------------------------
  200. * 2015-11-13 Live Converter TF->XP
  201. *
  202. *---------------------------------------------------------------------------------------
  203. ****************************************************************************************/
  204. include "com_commonxp::comm_main.xjs";
  205. /******************************************************************
  206. * Argument :
  207. * Description : 초기화
  208. ******************************************************************/
  209. function SMMNE07000_oninit(obj:Form, e:InitEventInfo)
  210. {
  211. frmf_initForm(obj);
  212. }
  213. function SMMNE07000_onload(obj:Form, e:LoadEventInfo)
  214. {
  215. var toDate = utlf_getCurrentDate();
  216. ds_send.setColumn(0, "fromdd", toDate);
  217. ds_send.setColumn(0, "todd", toDate);
  218. ds_send.setColumn(0, "grtype", "");
  219. appf_getCodeList( [{dsNm: "ds_init_M0555", cdGrpId: "M0555"}], true );
  220. //속도개선
  221. this.setTimer(0, 100);
  222. //frmf_inputEnterKey("group2.btn_srch", "onclick", new ClickEventInfo);
  223. }
  224. /******************************************************************
  225. * Argument :
  226. * Description : 조회 button event
  227. ******************************************************************/
  228. function group2_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  229. {
  230. ds_main_erpatinfo.clearData();
  231. var oParam = {};
  232. oParam.id = "TRMNE07001";
  233. oParam.service = "ercareapp.ERSmsIndexMngt";
  234. oParam.method = "reqGetIndexMngtList";
  235. oParam.inds = "req=ds_send";
  236. oParam.outds = "ds_main_erpatinfo=erpatlist";
  237. oParam.async = false;
  238. //oParam.callback = "cf_TRMNE07001";
  239. tranf_submit(oParam);
  240. }
  241. /******************************************************************
  242. * Argument :
  243. * Description : 중증분류 combo event
  244. ******************************************************************/
  245. function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  246. {
  247. frmf_inputEnterKey("group2.btn_srch", "onclick", new ClickEventInfo);
  248. }
  249. /******************************************************************
  250. * Argument :
  251. * Description : Excel button event
  252. ******************************************************************/
  253. function group2_button1_onclick(obj:Button, e:ClickEventInfo)
  254. {
  255. if( ds_main_erpatinfo.rowcount > 0 ){
  256. grdf_exportExcel(grd_erpatlist, "응급의료센터중증환자지표", "응급의료센터중증환자지표", false, "", "", false);
  257. } else {
  258. sysf_messageBox("조회된 데이터가 ", "I004");
  259. }
  260. }
  261. function SMMNE07000_ontimer(obj:Form, e:TimerEventInfo)
  262. {
  263. if (e.timerid == 0) {
  264. this.killTimer(0);
  265. frmf_inputEnterKey("group2.btn_srch", "onclick", new ClickEventInfo);
  266. }
  267. }
  268. var lastrow1 = -1;
  269. var lastcol1 = -1;
  270. var bDrop1 = false;
  271. function grd_erpatlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  272. {
  273. lastrow1 = -1;
  274. lastcol1 = -1;
  275. }
  276. function grd_erpatlist_oncloseup(obj:Grid, e:GridEditEventInfo)
  277. {
  278. var dsGridBind = eval(obj.binddataset);
  279. var preVal = utlf_transNullToEmpty(dsGridBind.getColumn(e.row, e.col));
  280. var posVal = utlf_transNullToEmpty(e.value);
  281. if( bDrop1 == true && (!utlf_isNull(posVal) || preVal != posVal) ){
  282. obj.showEditor(false);
  283. }
  284. bDrop1 = false;
  285. lastrow1 = e.row;
  286. lastcol1 = e.col;
  287. }
  288. function grd_erpatlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  289. {
  290. grdf_setSelectedCell(obj, e);
  291. var dsGridBind = eval(obj.binddataset);
  292. // Combo DropDown Click 처리
  293. obj.autoenter = "key";
  294. if( e.fromreferenceobject.name == "dropbutton" ){
  295. bDrop1 = true;
  296. }
  297. if( e.row > -1 && obj.getCellProperty("body", e.col, "edittype") == "combo" ){
  298. // Combo 선택시 활성화 및 combodatacol 변경
  299. if( grdf_getSelectedCols(obj).length == 0 && grdf_getSelectedRows(obj).length == 0 && obj.getEditText() == undefined ){
  300. obj.showEditor(true);
  301. }else{
  302. if(!obj.isDropdownCombo() && (lastrow1 != e.row || lastcol1 != e.col)) {
  303. obj.setCellPos(e.col);
  304. dsGridBind.rowposition = e.row;
  305. obj.showEditor(true);
  306. if(bDrop1) {
  307. obj.dropdownCombo();
  308. }
  309. }
  310. }
  311. }else{
  312. obj.autoenter = "key";
  313. }
  314. }
  315. ]]></Script>
  316. </Form>
  317. </FDL>