SMMNB01210_지표관리 모니터링.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNB01210" position="absolute 0 0 1140 755" titletext="지표관리 모니터링" oninit="SMMNB01210_oninit" onload="SMMNB01210_onload" scrollbars="none" ontimer="SMMNB01210_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1137 749" id="group5" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 24 1135 64" align="align:center top;" id="grp_sea" anchor="default" class="div_SA">
  11. <Layouts>
  12. <Layout>
  13. <Static text="등록일자 :" position="absolute 390 12 465 29" id="caption17" class="search_name" anchor="default"/>
  14. <Calendar position="absolute 465 10 553 29" id="ipt_fromrecdd" class="input_search" anchor="default" autoselect="true" autoskip="true"/>
  15. <Button position="absolute 1055 10 1111 32" id="button1" class="btn1" text="조회" anchor="default" onclick="group5_grp_sea_button1_onclick"/>
  16. <Shape position="absolute 1042 10 1048 30" linetype="vertical" id="line1" class="line_4" anchor="default"/>
  17. <Static text="부 서 :" position="absolute 5 12 60 29" id="ctn_deptcd" class="search_name" anchor="default"/>
  18. <Combo position="absolute 60 10 165 29" id="cmb_deptcd" class="combo_search" innerdataset="@ds_codelist_I12" datacolumn="cdnm" codecolumn="cdid" anchor="default" displayrowcount="40" type="search" onitemchanged="group5_grp_sea_cmb_deptcd_onitemchanged"/>
  19. <Static text="항 목 :" position="absolute 205 12 255 29" id="caption3" class="search_name" anchor="default"/>
  20. <Combo position="absolute 260 10 350 29" id="cmb_rptcd" class="combo_search" innerdataset="@ds_codelist_I04" datacolumn="cdnm" codecolumn="cdid" anchor="default" displayrowcount="40" type="search" onitemchanged="group5_grp_sea_cmb_rptcd_onitemchanged"/>
  21. <Calendar position="absolute 575 10 663 29" id="ipt_torecdd" class="input_search" anchor="default" autoselect="true" autoskip="true"/>
  22. <Static text="~" position="absolute 560 10 575 30" id="caption4" anchor="default"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <Static text="지표관리 모니터링" position="absolute 0 0 142 25" id="caption6" class="tit_1" anchor="default"/>
  27. <Grid position="absolute 0 99 560 749" id="grd_mnidctrptlist" binddataset="ds_main_mnidctinfo_mnidctrptlist" anchor="default" cellsizingtype="both" autosizingtype="row" extendsizetype="row">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="25" band="left"/>
  32. <Column size="90"/>
  33. <Column size="70"/>
  34. <Column size="35"/>
  35. <Column size="80"/>
  36. <Column size="30"/>
  37. <Column size="70"/>
  38. <Column size="70"/>
  39. <Column size="70"/>
  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="Duty"/>
  50. <Cell col="4" text="항목"/>
  51. <Cell col="5" text="No."/>
  52. <Cell col="6" text="등록번호"/>
  53. <Cell col="7" text="환자명"/>
  54. <Cell col="8" text="보고자"/>
  55. </Band>
  56. <Band id="body">
  57. <Cell celltype="head" expr="expr:currow + 1"/>
  58. <Cell col="1" displaytype="combo" edittype="none" style="padding:2 2 2 2;" text="bind:deptcd" wordwrap="word" suppress="1" suppressalign="middle,over" combodataset="ds_codelist_I12" combocodecol="cdid" combodatacol="cdnm" autosizerow="limitmin" enable="false"/>
  59. <Cell col="2" displaytype="date" style="align:center middle;" text="bind:reportdd" suppress="2" suppressalign="middle,over" calendardisplaynulltype="none"/>
  60. <Cell col="3" style="align:center middle;" text="bind:duty" suppress="3" suppressalign="middle,over"/>
  61. <Cell col="4" displaytype="combo" edittype="none" style="padding:0 0 0 2;" text="bind:rptcd" suppress="4" suppressalign="middle,over" combodataset="ds_codelist_I04" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  62. <Cell col="5" style="align:center middle;" text="bind:num"/>
  63. <Cell col="6" style="align:center middle;" text="bind:pid"/>
  64. <Cell col="7" style="align:left;" text="bind:patnm"/>
  65. <Cell col="8" style="align:center middle;" text="bind:recnm"/>
  66. </Band>
  67. </Format>
  68. </Formats>
  69. </Grid>
  70. <Shape position="absolute 0 95 560 101" linetype="horizontal" id="line5" class="line_10" anchor="default"/>
  71. <Static text="보고 등록 환자 리스트" position="absolute 0 79 175 95" align="align:center middle;" id="caption14" class="tit_2" anchor="default"/>
  72. <Grid position="absolute 565 99 1134 749" id="grd_mnidctlist" binddataset="ds_main_mnidctinfo_mnidctlist" anchor="default" cellsizingtype="col">
  73. <Formats>
  74. <Format id="default">
  75. <Columns>
  76. <Column size="90"/>
  77. <Column size="70"/>
  78. <Column size="35"/>
  79. <Column size="80"/>
  80. <Column size="45"/>
  81. <Column size="150"/>
  82. <Column size="70"/>
  83. </Columns>
  84. <Rows>
  85. <Row size="24" band="head"/>
  86. <Row size="24"/>
  87. </Rows>
  88. <Band id="head">
  89. <Cell text="부서"/>
  90. <Cell col="1" text="작성일자"/>
  91. <Cell col="2" text="Duty"/>
  92. <Cell col="3" text="항목"/>
  93. <Cell col="4" text="건수"/>
  94. <Cell col="5" text="대상환자"/>
  95. <Cell col="6" text="작성자"/>
  96. </Band>
  97. <Band id="body">
  98. <Cell displaytype="combo" edittype="none" style="padding:0 0 0 2;" text="bind:deptcd" suppress="1" suppressalign="middle,over" combodataset="ds_codelist_I12" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  99. <Cell col="1" displaytype="date" style="align:center middle;" text="bind:recdd" suppress="2" suppressalign="middle,over" calendardisplaynulltype="none"/>
  100. <Cell col="2" style="align:center middle;" text="bind:duty" suppress="3" suppressalign="middle,over"/>
  101. <Cell col="3" displaytype="combo" edittype="none" style="padding:0 0 0 2;" text="bind:rptcd" suppress="4" suppressalign="middle,over" combodataset="ds_codelist_I04" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  102. <Cell col="4" style="align:center middle;" text="bind:rptcnt"/>
  103. <Cell col="5" style="align:left middle;" text="bind:rptpatnm"/>
  104. <Cell col="6" style="align:center middle;" text="bind:recnm"/>
  105. </Band>
  106. </Format>
  107. </Formats>
  108. </Grid>
  109. <Shape position="absolute 565 95 1133 101" linetype="horizontal" id="line4" class="line_10" anchor="default"/>
  110. <Static text="보고 미등록 환자 리스트" position="absolute 565 79 738 95" align="align:center middle;" id="caption1" class="tit_2" anchor="default"/>
  111. <Button position="absolute 518 74 560 93" id="button2" class="btn2" text="엑셀" anchor="default" onclick="group5_button2_onclick"/>
  112. <Button position="absolute 1090 74 1132 93" id="button3" class="btn2" text="엑셀" anchor="default" onclick="group5_button3_onclick"/>
  113. </Layout>
  114. </Layouts>
  115. </Div>
  116. <Static position="absolute 220 765 1420 795" id="caption2"/>
  117. </Layout>
  118. </Layouts>
  119. <Objects>
  120. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  121. <ColumnInfo>
  122. <Column id="deptcd" type="STRING" size="256"/>
  123. <Column id="fromrecdd" type="STRING" size="256"/>
  124. <Column id="rptcd" type="STRING" size="256"/>
  125. <Column id="torecdd" type="STRING" size="256"/>
  126. </ColumnInfo>
  127. <Rows>
  128. <Row>
  129. <Col id="deptcd"/>
  130. <Col id="fromrecdd"/>
  131. <Col id="rptcd"/>
  132. <Col id="torecdd"/>
  133. </Row>
  134. </Rows>
  135. </Dataset>
  136. <Dataset id="ds_main_mnidctinfo_mnidctrptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  137. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  138. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  139. <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  140. <Dataset id="ds_main_mnidctinfo_mnidctlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  141. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  142. <Dataset id="ds_codelist_I12" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  143. <Dataset id="ds_codelist_I04" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  144. </Objects>
  145. <Bind>
  146. <BindItem id="item0" compid="group5.grp_sea.ipt_fromrecdd" propid="value" datasetid="ds_main_cond" columnid="fromrecdd"/>
  147. <BindItem id="item1" compid="group5.grp_sea.cmb_deptcd" propid="value" datasetid="ds_main_cond" columnid="deptcd"/>
  148. <BindItem id="item2" compid="group5.grp_sea.cmb_rptcd" propid="value" datasetid="ds_main_cond" columnid="rptcd"/>
  149. <BindItem id="item3" compid="group5.grp_sea.ipt_torecdd" propid="value" datasetid="ds_main_cond" columnid="torecdd"/>
  150. </Bind>
  151. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  152. * System Name :
  153. * Job Name :
  154. * Creator :
  155. * Make Date : 2015-11-13
  156. * Description :
  157. *---------------------------------------------------------------------------------------
  158. * Modify Date Modifier Modify Description
  159. *---------------------------------------------------------------------------------------
  160. * 2015-11-13 Live Converter TF->XP
  161. *
  162. *---------------------------------------------------------------------------------------
  163. ****************************************************************************************/
  164. include "com_commonxp::comm_main.xjs";
  165. include "emr_carecomxp::CareCom.xjs";
  166. function finit(){
  167. var dt = utlf_getCurrentDate();
  168. ds_codelist.clearData();
  169. fGetNursHardCdInfo("'I04','I12'", dt);
  170. ds_codelist.filter("cdgrupid == 'I12'");
  171. ds_codelist_I12.copyData(ds_codelist,true);
  172. ds_codelist.filter("");
  173. ds_codelist.filter("cdgrupid == 'I04'");
  174. ds_codelist_I04.copyData(ds_codelist,true);
  175. ds_codelist.filter("");
  176. ds_main_cond.setColumn(0, "fromrecdd" , dt);
  177. ds_main_cond.setColumn(0, "torecdd" , dt);
  178. ds_main_cond.setColumn(0, "rptcd" , "-");
  179. ds_main_cond.setColumn(0, "deptcd" , "-");
  180. //fSearch();
  181. this.setTimer(0, 100);
  182. }
  183. // 조회버튼 클릭시
  184. function fSearch(){
  185. var dept = "";
  186. var rptcd = "";
  187. if ( utlf_isNull(ds_main_cond.getColumn(0, "fromrecdd")) ){
  188. sysf_messageBox("작성일자","I003");//필수입력입니다
  189. return;
  190. }
  191. if ( utlf_isNull(ds_main_cond.getColumn(0, "torecdd")) ){
  192. sysf_messageBox("작성일자","I003");//필수입력입니다
  193. return;
  194. }
  195. var sdate = ds_main_cond.getColumn(0, "fromrecdd");
  196. var edate = ds_main_cond.getColumn(0, "torecdd");
  197. var days = utlf_getDateInterval(sdate, edate, "dd");
  198. if (days > 30) {
  199. sysf_messageBox("조회기간이 30일을 초과하였습니다.", "I999");
  200. return;
  201. }
  202. if(ds_main_cond.getColumn(0, "deptcd") == "-"){
  203. dept = "";
  204. }else{
  205. dept = ds_main_cond.getColumn(0, "deptcd");
  206. }
  207. if(ds_main_cond.getColumn(0, "rptcd") == "-"){
  208. rptcd = "";
  209. }else{
  210. rptcd = ds_main_cond.getColumn(0, "rptcd");
  211. }
  212. dsf_makeValue(ds_send_reqdata,"deptcd" ,"string" ,dept);
  213. dsf_makeValue(ds_send_reqdata,"rptcd" ,"string" ,rptcd);
  214. dsf_makeValue(ds_send_reqdata,"fromrecdd" ,"string" ,ds_main_cond.getColumn(0, "fromrecdd"));
  215. dsf_makeValue(ds_send_reqdata,"torecdd" ,"string" ,ds_main_cond.getColumn(0, "torecdd"));
  216. var oParam = {};
  217. oParam.id = "TRMNB01210";
  218. oParam.service = "wardcareapp.WardBizMngt";
  219. oParam.method = "reqGetMnIdctList";
  220. oParam.inds = "reqdata=ds_send_reqdata";
  221. oParam.outds = "ds_main_mnidctinfo_mnidctrptlist=mnidctrptlist ds_main_mnidctinfo_mnidctlist=mnidctlist";
  222. oParam.async = false;
  223. tranf_submit(oParam);
  224. ds_main_mnidctinfo_mnidctrptlist.rowposition = -1;
  225. ds_main_mnidctinfo_mnidctlist.rowposition = -1;
  226. }
  227. function SMMNB01210_oninit(obj:Form, e:InitEventInfo)
  228. {
  229. frmf_initForm(obj);
  230. }
  231. function SMMNB01210_onload(obj:Form, e:LoadEventInfo)
  232. {
  233. finit();
  234. }
  235. function group5_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  236. {
  237. fSearch();
  238. }
  239. function group5_grp_sea_cmb_deptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  240. {
  241. fSearch();
  242. }
  243. function group5_grp_sea_cmb_rptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  244. {
  245. fSearch();
  246. }
  247. function group5_button2_onclick(obj:Button, e:ClickEventInfo)
  248. {
  249. grdf_exportExcel(group5.grd_mnidctrptlist, "지표관리_보고 등록 환자", "sheet1" , true, "" , "" , true);
  250. }
  251. function group5_button3_onclick(obj:Button, e:ClickEventInfo)
  252. {
  253. grdf_exportExcel(group5.grd_mnidctlist, "지표관리_보고 미등록 환자", "sheet1" , true, "" , "" , true);
  254. }
  255. function SMMNB01210_ontimer(obj:Form, e:TimerEventInfo)
  256. {
  257. if( e.timerid == 0 ){
  258. this.killTimer(0);
  259. fSearch();
  260. }
  261. }
  262. ]]></Script>
  263. </Form>
  264. </FDL>