SPMQR04000_수술부위표지율.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMQR04000" position="absolute 0 0 645 515" titletext="수술부위표지율" onload="SPMQR04000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="수술부위 표지율" position="absolute 0 0 134 21" id="caption3" class="tit_1"/>
  8. <Div position="absolute 0 21 645 79" id="roundrect1" type="roundrectangle" class="div_SA" anchor="left top right"/>
  9. <Static text="조회기간" position="absolute 5 30 91 47" id="caption1" class="search_name"/>
  10. <Calendar position="absolute 85 30 185 49" id="ipt_fromdd" class="input_essential" autoselect="true" dateformat="yyyy-MM-dd" value="null"/>
  11. <Static text="~" position="absolute 190 30 205 50" id="caption2"/>
  12. <Calendar position="absolute 210 30 310 49" id="ipt_todd" class="input_essential" autoselect="true" dateformat="yyyy-MM-dd"/>
  13. <Button position="absolute 583 30 639 52" id="btn_search" class="btn1" text="조회" onclick="btn_search_onclick" anchor="top right"/>
  14. <Grid position="absolute 0 88 645 515" id="grd_oppartrate" binddataset="ds_main_oppartinfo_oppartlist" selecttype="multirow" cellsizingtype="col" anchor="all">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="25" band="left"/>
  19. <Column size="0"/>
  20. <Column size="110"/>
  21. <Column size="110"/>
  22. <Column size="60"/>
  23. <Column size="60"/>
  24. <Column size="70"/>
  25. <Column size="60"/>
  26. <Column size="70"/>
  27. <Column size="60"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="24" band="head"/>
  31. <Row size="24" band="head"/>
  32. <Row size="24"/>
  33. </Rows>
  34. <Band id="head">
  35. <Cell rowspan="2" taborder="undefined"/>
  36. <Cell col="1" rowspan="2" text="perfdeptcd" taborder="undefined"/>
  37. <Cell col="2" rowspan="2" text="진료과" taborder="undefined"/>
  38. <Cell col="3" rowspan="2" text="집도의" taborder="undefined"/>
  39. <Cell col="4" rowspan="2" text="총인원" taborder="undefined"/>
  40. <Cell col="5" colspan="2" text="예" taborder="undefined"/>
  41. <Cell col="7" colspan="2" text="아니오" taborder="undefined"/>
  42. <Cell col="9" rowspan="2" text="해당없음" taborder="undefined"/>
  43. <Cell row="1" col="5" text="건수"/>
  44. <Cell row="1" col="6" text="비율"/>
  45. <Cell row="1" col="7" text="건수"/>
  46. <Cell row="1" col="8" text="비율"/>
  47. </Band>
  48. <Band id="body">
  49. <Cell celltype="head" text="expr:currow + 1"/>
  50. <Cell col="1" text="bind:perfdeptcd"/>
  51. <Cell col="2" celltype="head" text="bind:depthngnm" expr="expr:depthngnm == '소계' ? '' : depthngnm" suppress="1" suppressalign="middle,over"/>
  52. <Cell col="3" celltype="head" text="bind:usernm" suppress="2" suppressalign="middle,over"/>
  53. <Cell col="4" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:totalcnt"/>
  54. <Cell col="5" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:yescnt"/>
  55. <Cell col="6" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:yesrate"/>
  56. <Cell col="7" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:nocnt"/>
  57. <Cell col="8" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:norate"/>
  58. <Cell col="9" style="background:EXPR(seqno == '2' ? '#ffcc00' : '');background2:EXPR(seqno == '2' ? '#ffcc00' : '');" text="bind:nothingcnt"/>
  59. </Band>
  60. </Format>
  61. </Formats>
  62. </Grid>
  63. <Shape position="absolute 0 83 645 89" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
  64. <Button position="absolute 564 55 639 74" id="button1" class="btn7" text="엑셀저장" onclick="button1_onclick" anchor="top right"/>
  65. <Static text="수술구분" position="absolute 5 55 90 72" id="caption4" class="search_name"/>
  66. <Combo position="absolute 85 55 185 74" id="combo1" innerdataset="@ds_init_op_opflag" datacolumn="cdnm" codecolumn="cdid"/>
  67. <Static text="단계별" position="absolute 190 55 275 72" id="caption5" class="search_name"/>
  68. <Combo position="absolute 255 55 355 74" id="combo2" enable="true" innerdataset="ds_init_op_stage" datacolumn="cdnm" codecolumn="cdid"/>
  69. <Static text="수술환자구분" position="absolute 320 30 430 47" id="caption6" class="search_name"/>
  70. <Combo position="absolute 425 30 525 49" id="combo3" innerdataset="@ds_init_op_oppatflag" datacolumn="cdnm" codecolumn="cdid"/>
  71. <Static text="수술장소" position="absolute 365 55 445 72" id="caption7" class="search_name"/>
  72. <Combo position="absolute 445 55 545 74" id="combo4" innerdataset="@ds_init_op_opplace" datacolumn="cdnm" codecolumn="cdid"/>
  73. </Layout>
  74. </Layouts>
  75. <Objects>
  76. <Dataset id="ds_main_oppartinfo_oppartlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  77. <ColumnInfo>
  78. <Column id="perfdeptcd" type="STRING"/>
  79. <Column id="depthngnm" type="STRING"/>
  80. <Column id="usernm" type="STRING"/>
  81. <Column id="totalcnt" type="STRING"/>
  82. <Column id="yescnt" type="STRING"/>
  83. <Column id="yesrate" type="STRING"/>
  84. <Column id="nocnt" type="STRING"/>
  85. <Column id="norate" type="STRING"/>
  86. <Column id="nothingcnt" type="STRING"/>
  87. </ColumnInfo>
  88. </Dataset>
  89. <Dataset id="ds_init_op_opflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  90. <ColumnInfo>
  91. <Column id="cdid" type="STRING" size="256"/>
  92. <Column id="cdnm" type="STRING" size="256"/>
  93. </ColumnInfo>
  94. <Rows>
  95. <Row>
  96. <Col id="cdid">-</Col>
  97. <Col id="cdnm">전체</Col>
  98. </Row>
  99. <Row>
  100. <Col id="cdid">1</Col>
  101. <Col id="cdnm">정규</Col>
  102. </Row>
  103. <Row>
  104. <Col id="cdid">2</Col>
  105. <Col id="cdnm">응급</Col>
  106. </Row>
  107. <Row>
  108. <Col id="cdid">3</Col>
  109. <Col id="cdnm">추가</Col>
  110. </Row>
  111. </Rows>
  112. </Dataset>
  113. <Dataset id="ds_init_op_stage" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="cdid" type="STRING" size="256"/>
  116. <Column id="cdnm" type="STRING" size="256"/>
  117. </ColumnInfo>
  118. <Rows>
  119. <Row>
  120. <Col id="cdid">01</Col>
  121. <Col id="cdnm">간호단위</Col>
  122. </Row>
  123. <Row>
  124. <Col id="cdid">02</Col>
  125. <Col id="cdnm">대기실</Col>
  126. </Row>
  127. <Row>
  128. <Col id="cdid">03</Col>
  129. <Col id="cdnm">수술실</Col>
  130. </Row>
  131. </Rows>
  132. </Dataset>
  133. <Dataset id="ds_init_op_oppatflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  134. <ColumnInfo>
  135. <Column id="cdid" type="STRING" size="256"/>
  136. <Column id="cdnm" type="STRING" size="256"/>
  137. </ColumnInfo>
  138. <Rows>
  139. <Row>
  140. <Col id="cdid">I</Col>
  141. <Col id="cdnm">병동</Col>
  142. </Row>
  143. <Row>
  144. <Col id="cdid">D</Col>
  145. <Col id="cdnm">외래(DSC)</Col>
  146. </Row>
  147. <Row>
  148. <Col id="cdid">-</Col>
  149. <Col id="cdnm">전체</Col>
  150. </Row>
  151. </Rows>
  152. </Dataset>
  153. <Dataset id="ds_init_op_opplace" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  154. <ColumnInfo>
  155. <Column id="cdid" type="STRING" size="256"/>
  156. <Column id="cdnm" type="STRING" size="256"/>
  157. </ColumnInfo>
  158. <Rows>
  159. <Row>
  160. <Col id="cdid">-</Col>
  161. <Col id="cdnm">전체</Col>
  162. </Row>
  163. <Row>
  164. <Col id="cdid">01</Col>
  165. <Col id="cdnm">일일수술실</Col>
  166. </Row>
  167. <Row>
  168. <Col id="cdid">02</Col>
  169. <Col id="cdnm">중앙수술실</Col>
  170. </Row>
  171. </Rows>
  172. </Dataset>
  173. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_cond_oncolumnchanged">
  174. <ColumnInfo>
  175. <Column id="fromdd" type="STRING" size="256"/>
  176. <Column id="todd" type="STRING" size="256"/>
  177. <Column id="opflag" type="STRING" size="256"/>
  178. <Column id="stage" type="STRING" size="256"/>
  179. <Column id="oppatflag" type="STRING" size="256"/>
  180. <Column id="opplace" type="STRING" size="256"/>
  181. </ColumnInfo>
  182. <Rows>
  183. <Row>
  184. <Col id="fromdd"/>
  185. <Col id="todd"/>
  186. <Col id="opflag"/>
  187. <Col id="stage"/>
  188. <Col id="oppatflag"/>
  189. <Col id="opplace"/>
  190. </Row>
  191. </Rows>
  192. </Dataset>
  193. </Objects>
  194. <Bind>
  195. <BindItem id="item0" compid="ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  196. <BindItem id="item1" compid="ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  197. <BindItem id="item2" compid="combo1" propid="value" datasetid="ds_main_cond" columnid="opflag"/>
  198. <BindItem id="item3" compid="combo2" propid="value" datasetid="ds_main_cond" columnid="stage"/>
  199. <BindItem id="item4" compid="combo3" propid="value" datasetid="ds_main_cond" columnid="oppatflag"/>
  200. <BindItem id="item5" compid="combo4" propid="value" datasetid="ds_main_cond" columnid="opplace"/>
  201. </Bind>
  202. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  203. * System Name :
  204. * Job Name :
  205. * Creator :
  206. * Make Date : 2015-11-13
  207. * Description :
  208. *---------------------------------------------------------------------------------------
  209. * Modify Date Modifier Modify Description
  210. *---------------------------------------------------------------------------------------
  211. * 2015-11-13 Live Converter TF->XP
  212. *
  213. *---------------------------------------------------------------------------------------
  214. ****************************************************************************************/
  215. include "com_commonxp::comm_main.xjs";
  216. //include "emr_prcpmngtxp::MMO001.xjs";
  217. //=======================================================================================
  218. // Global Form Variable
  219. //---------------------------------------------------------------------------------------
  220. var arErrorCode = new HashArray();
  221. //=======================================================================================
  222. // Function
  223. //---------------------------------------------------------------------------------------
  224. //=======================================================================================
  225. // Event
  226. //---------------------------------------------------------------------------------------
  227. /****************************************************************************************
  228. * Components : Form
  229. * Components ID : SPMQR04000
  230. * Event : onload
  231. * Argument : 01.obj : Object Event has occurred
  232. * : 02.e : Event Object
  233. * Description : 화면 초기화
  234. ****************************************************************************************/
  235. function SPMQR04000_onload(obj:Form, e:LoadEventInfo)
  236. {
  237. frmf_initForm(obj);
  238. ds_main_cond.enableevent = false;
  239. ipt_fromdd.value = utlf_getCurrentDate();
  240. ipt_todd.value = utlf_getCurrentDate();
  241. ds_main_cond.enableevent = true;
  242. ds_main_cond.setColumn(0, "opflag", "-"); //수술구분 전체 디폴트 선택
  243. ds_main_cond.setColumn(0, "oppatflag", "-"); //수술환자구분 전체 디폴트 선택
  244. ds_main_cond.setColumn(0, "stage", "01"); //단계 간호단위 디폴트 선택
  245. ds_main_cond.setColumn(0, "opplace", "-"); //수술장소 디폴트 선택
  246. }
  247. function ds_main_cond_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  248. {
  249. if( e.columnid == "fromdd" ){
  250. if(!utlf_isNull(e.newvalue)) {
  251. if(e.newvalue > ipt_todd.value) {
  252. sysf_messageBox("종료일 이전 날자만 입력","I006");
  253. ipt_fromdd.value = utlf_getCurrentDate();
  254. }
  255. }
  256. }else if( e.columnid == "todd" ){
  257. if(!utlf_isNull(e.newvalue)) {
  258. if(ipt_fromdd.value > e.newvalue) {
  259. sysf_messageBox("시작일 이후 날자만 입력","I006");
  260. ipt_todd.value = utlf_getCurrentDate();
  261. }
  262. }
  263. }
  264. }
  265. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  266. {
  267. if(utlf_isNull(ipt_todd.value) || utlf_isNull(ipt_fromdd.value)) {
  268. sysf_messageBox("날짜는", "I003");
  269. ds_main_cond.enableevent = false;
  270. ipt_todd.value = utlf_getCurrentDate();
  271. ipt_fromdd.value = utlf_getCurrentDate();
  272. ds_main_cond.enableevent = true;
  273. return;
  274. }
  275. var oParam = {};
  276. oParam.id = "TRMQR03001";
  277. oParam.service = "qiapp.QiActivityMngt";
  278. oParam.method = "reqGetOpBfCurePartInfo";
  279. oParam.inds = "req=ds_main_cond";
  280. oParam.outds = "ds_main_oppartinfo_oppartlist=oppartlist";
  281. oParam.async = true;
  282. tranf_submit(oParam);
  283. // if (submit("TRMQR04001") ) {
  284. // for (i= 1; i < grd_oppartrate.rows; i++ ) {
  285. // if (model.getValue("/root/main/oppartinfo/oppartlist[" + i + "]/seqno") =="2") {
  286. // grd_oppartrate.rowStyle(parseInt(i)+ 1, "all", "background-color") = "#ffcc00";
  287. // }
  288. // }
  289. // }
  290. }
  291. function button1_onclick(obj:Button, e:ClickEventInfo)
  292. {
  293. var selectValue1 = true;
  294. var selectValue2 = 1;
  295. var today = utlf_getCurrentDate();
  296. grdf_exportExcel(grd_oppartrate, "수술부위표지율_"+today, "sheet1", true);
  297. }
  298. ]]></Script>
  299. </Form>
  300. </FDL>