SPMMO26100_입원결정대기자리스트.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO26100" position="absolute 0 0 1030 709" titletext="입원결정" oninit="SPMMO26100_oninit" onload="SPMMO26100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1010 65" align="align:center top;" id="gp1" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Static text="조회일자:" position="absolute 635 11 725 28" id="caption2" class="search_name" visible="false" anchor="default"/>
  11. <Button position="absolute 875 9 931 31" id="btn_sear" class="btn1" text="조회" anchor="default" onclick="gp1_btn_sear_onclick"/>
  12. <Shape position="absolute 862 7 868 32" linetype="vertical" id="line16" anchor="default"/>
  13. <Calendar position="absolute 725 12 835 31" align="align:center middle;" id="ipt_workdd" class="input_search" visible="false" anchor="default" dateformat="yyyy-MM-dd" value="null" type="normal" autoselect="true"/>
  14. <Static text="구 분:" position="absolute 20 11 110 28" id="caption1" class="search_name" anchor="default"/>
  15. <Button position="absolute 932 9 988 31" id="button1" class="btn4" text="저장" onclick="gp1_button1_onclick"/>
  16. <cp_checkboxList id="chk_gbn" taborder="1" scrollbars="none" position="absolute 96 10 436 30" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Grid position="absolute 0 75 1010 670" id="grd_decnlist" class="datagrid2" binddataset="ds_grd_decnlist" autofittype="col" onheadclick="grd_decnlist_onheadclick" onenterdown="grd_decnlist_onenterdown" oncellclick="grd_decnlist_oncellclick">
  21. <Formats>
  22. <Format id="default">
  23. <Columns>
  24. <Column size="25"/>
  25. <Column size="130"/>
  26. <Column size="50"/>
  27. <Column size="105"/>
  28. <Column size="65"/>
  29. <Column size="70"/>
  30. <Column size="60"/>
  31. <Column size="80"/>
  32. <Column size="105"/>
  33. <Column size="60"/>
  34. <Column size="60"/>
  35. <Column size="70"/>
  36. <Column size="73"/>
  37. <Column size="42"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="24" band="head"/>
  43. <Row size="24"/>
  44. </Rows>
  45. <Band id="head">
  46. <Cell/>
  47. <Cell col="1" text="구분"/>
  48. <Cell col="2" text="순위"/>
  49. <Cell col="3" text="결정일시"/>
  50. <Cell col="4" text="환자번호"/>
  51. <Cell col="5" text="이름"/>
  52. <Cell col="6" text="성별/나이"/>
  53. <Cell col="7" text="위치"/>
  54. <Cell col="8" text="주진료과"/>
  55. <Cell col="9" text="담당교수"/>
  56. <Cell col="10" text="담당의"/>
  57. <Cell col="11" text="응급진료의"/>
  58. <Cell col="12" colspan="2" text="내원일시" taborder="undefined"/>
  59. <Cell col="14" text="orddd"/>
  60. <Cell col="15" text="cretno"/>
  61. </Band>
  62. <Band id="body">
  63. <Cell celltype="head"/>
  64. <Cell col="1" text="bind:adflag"/>
  65. <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:decnseq"/>
  66. <Cell col="3" displaytype="date" style="align:left middle;" text="bind:decndt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="none"/>
  67. <Cell col="4" style="align:left middle;" text="bind:pid"/>
  68. <Cell col="5" style="align:left middle;" text="bind:hngnm"/>
  69. <Cell col="6" text="bind:sa"/>
  70. <Cell col="7" text="bind:bedposcnts"/>
  71. <Cell col="8" style="align:left middle;" text="bind:deptnm"/>
  72. <Cell col="9" style="align:left middle;" text="bind:drnm"/>
  73. <Cell col="10" style="align:left middle;" text="bind:resnm"/>
  74. <Cell col="11" style="align:left middle;" text="bind:erdrnm"/>
  75. <Cell col="12" displaytype="date" style="align:left middle;" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  76. <Cell col="13" displaytype="date" style="align:left middle;" text="bind:intm" mask="HH:mm" calendardisplaynulltype="none"/>
  77. <Cell col="14" text="bind:orddd"/>
  78. <Cell col="15" text="bind:cretno"/>
  79. </Band>
  80. </Format>
  81. </Formats>
  82. </Grid>
  83. <Static text="응급실 입원 결정 대상자 리스트" position="absolute 0 0 225 25" id="caption6" class="tit_1"/>
  84. <Shape position="absolute 0 70 1010 76" linetype="horizontal" id="line3" class="line_10"/>
  85. <Static text="[표]" position="absolute 910 674 1010 694" align="align:right middle;" id="caption3"/>
  86. </Layout>
  87. </Layouts>
  88. <Objects>
  89. <Dataset id="ds_grd_decnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  90. <ColumnInfo>
  91. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  92. <Column id="hngnm" type="STRING" size="256" sumtext="이름"/>
  93. <Column id="sa" type="STRING" size="256" sumtext="성별/나이"/>
  94. <Column id="bedposcnts" type="STRING" size="256" sumtext="위치"/>
  95. <Column id="deptnm" type="STRING" size="256" sumtext="진료과"/>
  96. <Column id="drnm" type="STRING" size="256" sumtext="주치의"/>
  97. <Column id="resnm" type="STRING" size="256" sumtext="담당의"/>
  98. <Column id="erdrnm" type="STRING" size="256" sumtext="응급진료의"/>
  99. <Column id="indd" type="STRING" size="256" sumtext="내원일"/>
  100. <Column id="intm" type="STRING" size="256" sumtext="내원시간"/>
  101. <Column id="adflag" type="STRING" size="256" sumtext="결정구분"/>
  102. <Column id="decnseq" type="STRING" size="256" sumtext="우선순위"/>
  103. <Column id="decndt" type="STRING" size="256" sumtext="결정일시"/>
  104. <Column id="orddd" type="STRING" size="256"/>
  105. <Column id="cretno" type="STRING" size="256"/>
  106. </ColumnInfo>
  107. </Dataset>
  108. <Dataset id="ds_init_chk_gbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="value" type="STRING" size="256"/>
  111. <Column id="label" type="STRING" size="256"/>
  112. </ColumnInfo>
  113. <Rows>
  114. <Row>
  115. <Col id="value">C</Col>
  116. <Col id="label">병실입원(응급입원실)</Col>
  117. </Row>
  118. <Row>
  119. <Col id="value">B</Col>
  120. <Col id="label">병실입원(EICU)</Col>
  121. </Row>
  122. <Row>
  123. <Col id="value">A</Col>
  124. <Col id="label">병실입원</Col>
  125. </Row>
  126. </Rows>
  127. </Dataset>
  128. <Dataset id="ds_req_TXMMO26101" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  131. <Column id="orddd" type="STRING" size="256" sumtext="내원일"/>
  132. <Column id="cretno" type="STRING" size="256" sumtext="cretno"/>
  133. <Column id="decnseq" type="STRING" size="256" sumtext="우선순위"/>
  134. </ColumnInfo>
  135. </Dataset>
  136. </Objects>
  137. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  138. * System Name :
  139. * Job Name :
  140. * Creator :
  141. * Make Date : 2015-11-13
  142. * Description :
  143. *---------------------------------------------------------------------------------------
  144. * Modify Date Modifier Modify Description
  145. *---------------------------------------------------------------------------------------
  146. * 2015-11-13 Live Converter TF->XP
  147. *
  148. *---------------------------------------------------------------------------------------
  149. ****************************************************************************************/
  150. //=======================================================================================
  151. // Lib Include
  152. //---------------------------------------------------------------------------------------
  153. include "com_commonxp::comm_main.xjs"
  154. var workdd;
  155. function fSearch(){
  156. var gbn = new String(gp1.chk_gbn.getData());
  157. if(gbn.length < 1){
  158. sysf_messageBox('구분을 반드시 1개 이상 선택하십시요', 'E999');
  159. return;
  160. }
  161. if(gbn.length > 1){
  162. var list = gbn.split(',');
  163. gbn = '';
  164. for(var i = 0; i < list.length; i++){
  165. if(i > 0){
  166. gbn += "','";
  167. }
  168. gbn += list[i];
  169. }
  170. }
  171. gbn = "('" + gbn + "')";
  172. dsf_createDsRow('ds_req',[
  173. { col: 'workdd', type: 'string', size: 256, val: workdd },
  174. { col: 'gbn', type: 'string', size: 256, val: gbn }
  175. ],
  176. false);
  177. var oParam = {};
  178. oParam.id = "TRMMO26101";
  179. oParam.service = "prcpmngtapp.ErMngt";
  180. oParam.method = "reqGetErDecnList";
  181. oParam.inds = "req=ds_req";
  182. oParam.outds = "ds_grd_decnlist=decnlist";
  183. oParam.async = false;
  184. //oParam.callback = "cf_TRMMO26101";
  185. tranf_submit(oParam);
  186. // var workdd = model.getValue("/root/cond/workdd");
  187. // var gbn = model.getValue("/root/cond/gbn");
  188. // var gbnlist = gbn.split(" ");
  189. //
  190. // if (gbn.length>0) {
  191. // for (var i=0; i<gbnlist.length;i++) {
  192. // gbn = gbn.replace(" ","','");
  193. // }
  194. // gbn = "('" + gbn + "')";
  195. // } else {
  196. // messageBox("구분을 반드시 1개 이상 선택하십시오", "E999");
  197. // return;
  198. // }
  199. //
  200. // model.removeNodeset("/root/send/reqdata");
  201. // model.makeValue("/root/send/reqdata/workdd", workdd);
  202. // model.makeValue("/root/send/reqdata/gbn", gbn);
  203. //
  204. // submit("TRMMO26101");
  205. }
  206. //=======================================================================================
  207. // Event
  208. //---------------------------------------------------------------------------------------
  209. /******************************************************************
  210. * Argument :
  211. * Description : oninit 메서드 호출
  212. ******************************************************************/
  213. function SPMMO26100_oninit(obj:Form, e:InitEventInfo){
  214. }
  215. var rows, cols;
  216. /******************************************************************
  217. * Argument :
  218. * Description : oninit 메서드 호출
  219. ******************************************************************/
  220. function SPMMO26100_onload(obj:Form, e:LoadEventInfo){
  221. // 화면공통
  222. frmf_initForm(obj);
  223. grdf_setRowTypeIcon(grd_decnlist, 0);
  224. // ipt_workdd 의 visible 이 false 이므로..
  225. //gp1.ipt_workdd.value = utlf_getcurrentDate();
  226. workdd = utlf_getCurrentDate();
  227. // 체크박스 설정
  228. var sProp = "col=3, row=1, cellspacing=14, vcellspacing=0, itemWidth=-1, itemHeight=20, overflow='visible'";
  229. gp1.chk_gbn.setInitComp(sProp, ds_init_chk_gbn, 'value', 'label', '');
  230. gp1.chk_gbn.setData(['C']);
  231. //ds_cond.setColumn(0, "gbn", String(gp1.chk_gbn.getData()).replace(","," "));
  232. }
  233. /******************************************************************
  234. * Argument :
  235. * Description : 조회버튼 클릭
  236. ******************************************************************/
  237. function gp1_btn_sear_onclick(obj:Button, e:ClickEventInfo){
  238. fSearch();
  239. }
  240. /******************************************************************
  241. * Argument :
  242. * Description : 컬럼 헤드 클릭 이벤트
  243. ******************************************************************/
  244. function grd_decnlist_onheadclick(obj:Grid, e:GridClickEventInfo){
  245. grdf_gridSort(obj, e);
  246. }
  247. function grd_decnlist_onenterdown(obj:Grid, e:GridEditEventInfo){
  248. // numbering and merged cell
  249. // var cnt = obj.getCellCount('head') - 2;
  250. // sysf_trace('cols: ' + obj.getCellCount('head'));
  251. // for(var i = 0; i < cnt; i++){
  252. // obj.moveToNextCell();
  253. // }
  254. obj.moveToNextCell();
  255. return true;
  256. }
  257. function gp1_button1_onclick(obj:Button, e:ClickEventInfo){
  258. ds_req_TXMMO26101.clearData();
  259. for(var i = 0; i < ds_grd_decnlist.rowcount; i++){
  260. ds_req_TXMMO26101.addRow();
  261. ds_req_TXMMO26101.copyRow(i, ds_grd_decnlist, i, 'pid=pid,orddd=orddd,cretno=cretno,decnseq=decnseq');
  262. }
  263. dsf_createDsRow('ds_item', [{col: 'cnt', type: 'string', size: 256, val: '' }], false);
  264. var oParam = {};
  265. oParam.id = "TXMMO26101";
  266. oParam.service = "prcpmngtapp.ErMngt";
  267. oParam.method = "reqSetErDecnSeq";
  268. oParam.inds = "req=ds_req_TXMMO26101";
  269. oParam.outds = "ds_item=item";
  270. oParam.async = false;
  271. //oParam.callback = "cf_TXMMO26101";
  272. tranf_submit(oParam);
  273. fSearch();
  274. }
  275. ]]></Script>
  276. </Form>
  277. </FDL>