SMMRI01200_미비현황조회.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMRI01200" position="absolute 0 0 1200 782" titletext="미비현황조회" oninit="SMMRI01200_oninit" onload="SMMRI01200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="1" position="absolute 0 25 1195 85" anchor="left top right" class="div_SA">
  8. <Layouts>
  9. <Layout/>
  10. </Layouts>
  11. </Div>
  12. <Static text="미비현황조회" position="absolute 0 0 189 25" id="cap_title" class="tit_1"/>
  13. <Button position="absolute 1130 44 1186 66" id="btn_req" class="btn1" text="조회" anchor="top right" onclick="btn_req_onclick"/>
  14. <Shape position="absolute 1107 32 1113 77" linetype="vertical" id="line5" anchor="top right"/>
  15. <Static text="미비현황조회" position="absolute 0 98 108 120" id="caption20" class="tit_2"/>
  16. <Shape position="absolute 0 114 1195 120" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
  17. <Grid position="absolute 0 119 1195 774" id="grd_unpreplist" binddataset="ds_main_unpreplist_unpreplist" autoenter="select" cellsizingtype="col" anchor="all">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="100"/>
  22. <Column size="60"/>
  23. <Column size="100"/>
  24. <Column size="100"/>
  25. <Column size="100"/>
  26. <Column size="60"/>
  27. <Column size="100"/>
  28. <Column size="100"/>
  29. <Column size="100"/>
  30. <Column size="60"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="24" band="head"/>
  34. <Row size="24"/>
  35. </Rows>
  36. <Band id="head">
  37. <Cell text="미비과"/>
  38. <Cell col="1" text="구분"/>
  39. <Cell col="2" text="의사명"/>
  40. <Cell col="3" text="등록번호"/>
  41. <Cell col="4" text="환자명"/>
  42. <Cell col="5" text="회차"/>
  43. <Cell col="6" text="입원일"/>
  44. <Cell col="7" text="퇴원일"/>
  45. <Cell col="8" text="퇴원과"/>
  46. <Cell col="9" text="INDEX"/>
  47. </Band>
  48. <Band id="body">
  49. <Cell style="align:left middle;padding:0 0 0 3;" text="bind:deptnm"/>
  50. <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:doctkindflag"/>
  51. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:unprepdrnm"/>
  52. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:pid"/>
  53. <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:patnm"/>
  54. <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:cnt"/>
  55. <Cell col="6" displaytype="date" style="align:left middle;padding:0 0 0 3;" text="bind:indd" calendardisplaynulltype="nulltext"/>
  56. <Cell col="7" displaytype="date" style="align:left middle;padding:0 0 0 3;" text="bind:dschdd" calendardisplaynulltype="nulltext"/>
  57. <Cell col="8" style="align:left middle;padding:0 0 0 3;" text="bind:dschdept"/>
  58. <Cell col="9" style="align:left middle;padding:0 0 0 3;" text="bind:indx"/>
  59. </Band>
  60. </Format>
  61. </Formats>
  62. </Grid>
  63. <Button position="absolute 1145 95 1195 114" id="btn_ex" class="btn7" text="엑셀" anchor="top right" onclick="btn_ex_onclick"/>
  64. <Static text="퇴원과 :" position="absolute 358 60 428 77" id="caption7" class="search_name"/>
  65. <Static text="~" position="absolute 224 36 239 51" id="caption8"/>
  66. <Static text="미비입력일 :" position="absolute 30 35 129 52" id="caption9" class="search_name"/>
  67. <Static text="~" position="absolute 224 61 239 76" id="caption1"/>
  68. <Static text="퇴원일 :" position="absolute 30 60 129 77" id="caption2" class="search_name"/>
  69. <Static text="미비과 :" position="absolute 358 36 428 53" id="caption3" class="search_name"/>
  70. <Static text="미비의사 :" position="absolute 589 35 667 52" id="caption4" class="search_name"/>
  71. <Static text="의사구분 :" position="absolute 589 60 667 77" id="caption5" class="search_name"/>
  72. <Calendar position="absolute 122 34 220 53" id="ipt_fromdd" enable="false" autoselect="true" autoskip="true"/>
  73. <Calendar position="absolute 240 34 338 53" id="ipt_todd" enable="false" autoselect="true"/>
  74. <Calendar position="absolute 122 59 220 78" id="ipt_dschfromdd" enable="false" autoselect="true" autoskip="true"/>
  75. <Calendar position="absolute 240 59 338 78" id="ipt_dschtodd" enable="false" autoselect="true"/>
  76. <Combo position="absolute 427 34 570 53" id="cmb_unpredeptcd" class="combo_search" innerdataset="@ds_init_orddept_dept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="cmb_unpredeptcd_onitemchanged"/>
  77. <Combo position="absolute 427 59 570 78" id="cmb_indschdeptcd" class="combo_search" innerdataset="@ds_init_orddept_dept" datacolumn="depthngnm" codecolumn="deptcd"/>
  78. <Combo position="absolute 671 33 814 52" id="cmb_unpredr" class="combo_search" innerdataset="@ds_init_userlist_usercombo" datacolumn="usernm" codecolumn="userid"/>
  79. <CheckBox position="absolute 9 33 29 53" id="chk_unpredd" truevalue="Y" onclick="chk_unpredd_onclick"/>
  80. <CheckBox position="absolute 9 58 29 78" id="chk_dschdd" truevalue="Y" onclick="chk_dschdd_onclick"/>
  81. <cp_checkboxList id="chk_drkind" titletext="CheckBox List" taborder="2" text="cp_checkboxList00" scrollbars="none" position="absolute 672 57 1001 82" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  82. </Layout>
  83. </Layouts>
  84. <Objects>
  85. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  86. <ColumnInfo>
  87. <Column id="unpredd" type="STRING" size="256"/>
  88. <Column id="dschdd" type="STRING" size="256"/>
  89. <Column id="fromdd" type="STRING" size="256"/>
  90. <Column id="todd" type="STRING" size="256"/>
  91. <Column id="dschfromdd" type="STRING" size="256"/>
  92. <Column id="dschtodd" type="STRING" size="256"/>
  93. <Column id="unpredeptcd" type="STRING" size="256"/>
  94. <Column id="indschdeptcd" type="STRING" size="256"/>
  95. <Column id="unpredr" type="STRING" size="256"/>
  96. <Column id="drkind" type="STRING" size="256"/>
  97. </ColumnInfo>
  98. <Rows>
  99. <Row>
  100. <Col id="unpredd"/>
  101. <Col id="dschdd"/>
  102. <Col id="fromdd"/>
  103. <Col id="todd"/>
  104. <Col id="dschfromdd"/>
  105. <Col id="dschtodd"/>
  106. <Col id="unpredeptcd"/>
  107. <Col id="indschdeptcd"/>
  108. <Col id="unpredr"/>
  109. <Col id="drkind"/>
  110. </Row>
  111. </Rows>
  112. </Dataset>
  113. <Dataset id="ds_main_unpreplist_unpreplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="deptnm" type="STRING" size="256" sumtext="미비과"/>
  116. <Column id="doctkindflag" type="STRING" size="256" sumtext="구분"/>
  117. <Column id="unprepdrnm" type="STRING" size="256" sumtext="의사명"/>
  118. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  119. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  120. <Column id="cnt" type="STRING" size="256" sumtext="회차"/>
  121. <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
  122. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일"/>
  123. <Column id="dschdept" type="STRING" size="256" sumtext="퇴원과"/>
  124. <Column id="indx" type="STRING" size="256" sumtext="INDEX"/>
  125. </ColumnInfo>
  126. </Dataset>
  127. <Dataset id="ds_init_userlist_usercombo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  128. <ColumnInfo>
  129. <Column id="userid" type="STRING" size="256"/>
  130. <Column id="usernm" type="STRING" size="256"/>
  131. </ColumnInfo>
  132. </Dataset>
  133. <Dataset id="ds_init_unpredrkind_row" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  134. <ColumnInfo>
  135. <Column id="cdnm" type="STRING" size="256"/>
  136. <Column id="cdid" type="STRING" size="256"/>
  137. </ColumnInfo>
  138. <Rows>
  139. <Row>
  140. <Col id="cdnm">Total</Col>
  141. <Col id="cdid">T</Col>
  142. </Row>
  143. <Row>
  144. <Col id="cdnm">Staff</Col>
  145. <Col id="cdid">St</Col>
  146. </Row>
  147. <Row>
  148. <Col id="cdnm">Resident</Col>
  149. <Col id="cdid">R</Col>
  150. </Row>
  151. <Row>
  152. <Col id="cdnm">Intern</Col>
  153. <Col id="cdid">I</Col>
  154. </Row>
  155. </Rows>
  156. </Dataset>
  157. <Dataset id="ds_init_orddept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  158. </Objects>
  159. <Bind>
  160. <BindItem id="item0" compid="ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  161. <BindItem id="item1" compid="ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  162. <BindItem id="item2" compid="ipt_dschtodd" propid="value" datasetid="ds_main_cond" columnid="dschtodd"/>
  163. <BindItem id="item3" compid="ipt_dschfromdd" propid="value" datasetid="ds_main_cond" columnid="dschfromdd"/>
  164. <BindItem id="item4" compid="cmb_indschdeptcd" propid="value" datasetid="ds_main_cond" columnid="indschdeptcd"/>
  165. <BindItem id="item5" compid="cmb_unpredeptcd" propid="value" datasetid="ds_main_cond" columnid="unpredeptcd"/>
  166. <BindItem id="item6" compid="cmb_unpredr" propid="value" datasetid="ds_main_cond" columnid="unpredr"/>
  167. <BindItem id="item7" compid="chk_dschdd" propid="value" datasetid="ds_main_cond" columnid="dschdd"/>
  168. <BindItem id="item8" compid="chk_unpredd" propid="value" datasetid="ds_main_cond" columnid="unpredd"/>
  169. </Bind>
  170. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  171. * System Name :
  172. * Job Name :
  173. * Creator :
  174. * Make Date : 2015-05-01
  175. * Description :
  176. *---------------------------------------------------------------------------------------
  177. * Modify Date Modifier Modify Description
  178. *---------------------------------------------------------------------------------------
  179. * 2015-05-01 Live Converter TF->XP
  180. *
  181. *---------------------------------------------------------------------------------------
  182. ****************************************************************************************/
  183. include "com_commonxp::comm_main.xjs";
  184. include "emr_prcpmngtxp::MMOCommon.xjs";
  185. include "emr_prcpmngtxp::MMO001.xjs";
  186. function SMMRI01200_oninit(obj:Form, e:InitEventInfo)
  187. {
  188. frmf_initForm(obj);
  189. }
  190. function SMMRI01200_onload(obj:Form, e:LoadEventInfo)
  191. {
  192. grdf_initGrid(grd_unpreplist);
  193. var sProp="col=4,row=1,cellspacing=4,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
  194. chk_drkind.setInitComp(sProp, ds_init_unpredrkind_row,"cdid","cdnm","fn_cmpEvent");
  195. lf_mmbfGetDeptCodeComboList(ds_init_orddept_dept, "A");
  196. frmf_addComboItem("cmb_indschdeptcd", "전체", "-", "above");
  197. frmf_addComboItem("cmb_unpredr", "전체", "-", "above");
  198. ds_main_unpreplist_unpreplist.clearData();
  199. ds_main_cond.setColumn(0, "unpredeptcd", "-");
  200. ds_main_cond.setColumn(0, "indschdeptcd", "-");
  201. ds_main_cond.setColumn(0, "unpredr", "-");
  202. ds_main_cond.setColumn(0, "drkind", "T");
  203. var aData = new Array();
  204. aData[0] = "T";
  205. chk_drkind.setData(aData, "",false);
  206. }
  207. function fn_cmpEvent()
  208. {
  209. var drkind = chk_drkind.getData();
  210. if(String(drkind).indexOf("T") > -1)
  211. {
  212. ds_main_cond.setColumn(0, "drkind", "T");
  213. var aData = new Array();
  214. aData[0] = "T";
  215. var aFalse = new Array();
  216. aFalse[0] = "St"
  217. aFalse[1] = "R"
  218. aFalse[2] = "I"
  219. chk_drkind.setData(aData, aFalse,false);
  220. }
  221. else
  222. {
  223. var rtn = chk_drkind.getData();
  224. rtn = String(rtn).replace(",", "','");
  225. ds_main_cond.setColumn(0, "drkind", rtn);
  226. }
  227. }
  228. function chk_unpredd_onclick(obj:CheckBox, e:ClickEventInfo)
  229. {
  230. var unpredd = obj.value;
  231. if(unpredd == "Y")
  232. {
  233. ipt_fromdd.enable = true;
  234. ipt_todd.enable = true;
  235. ds_main_cond.setColumn(0, "fromdd", utlf_getCurrentDate());
  236. ds_main_cond.setColumn(0, "todd", utlf_getCurrentDate());
  237. }
  238. else
  239. {
  240. ipt_fromdd.enable = false;
  241. ipt_todd.enable = false;
  242. ds_main_cond.setColumn(0, "fromdd", "");
  243. ds_main_cond.setColumn(0, "todd", "");
  244. ds_main_cond.setColumn(0, "unpredd", "");
  245. }
  246. }
  247. function chk_dschdd_onclick(obj:CheckBox, e:ClickEventInfo)
  248. {
  249. var dschdd = obj.value;
  250. if(dschdd == "Y")
  251. {
  252. ipt_dschfromdd.enable = true;
  253. ipt_dschtodd.enable = true;
  254. ds_main_cond.setColumn(0, "dschfromdd", utlf_getCurrentDate());
  255. ds_main_cond.setColumn(0, "dschtodd", utlf_getCurrentDate());
  256. }
  257. else
  258. {
  259. ipt_dschfromdd.enable = false;
  260. ipt_dschtodd.enable = false;
  261. ds_main_cond.setColumn(0, "dschfromdd", "");
  262. ds_main_cond.setColumn(0, "dschtodd", "");
  263. ds_main_cond.setColumn(0, "dschdd", "");
  264. }
  265. }
  266. function cmb_unpredeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  267. {
  268. lf_mmbfGetUserComboList(ds_init_userlist_usercombo, obj.value, "0330");
  269. frmf_addComboItem("cmb_unpredr", "전체", "-", "above");
  270. cmb_unpredr.value = "-";
  271. }
  272. function btn_req_onclick(obj:Button, e:ClickEventInfo)
  273. {
  274. var unpredd = ds_main_cond.getColumn(0, "unpredd");
  275. var dschdd = ds_main_cond.getColumn(0, "dschdd");
  276. var drkind = ds_main_cond.getColumn(0, "drkind");
  277. if(utlf_isNull(unpredd) && utlf_isNull(dschdd))
  278. {
  279. sysf_messageBox("조회기간을 ","C002");
  280. return false;
  281. }
  282. if(utlf_isNull(drkind))
  283. {
  284. sysf_messageBox("의사구분을 ","C002");
  285. return false;
  286. }
  287. var oParam = {};
  288. oParam.id = "TRMRI01200";
  289. oParam.service = "unprepmngtapp.ChrtUnprepMngt";
  290. oParam.method = "reqGetUnPrepPreStatList";
  291. oParam.inds = "req=ds_main_cond";
  292. oParam.outds = "ds_main_unpreplist_unpreplist=unpreplist";
  293. oParam.async = false;
  294. //oParam.callback = "cf_TRMRI01200";
  295. tranf_submit(oParam);
  296. }
  297. function btn_ex_onclick(obj:Button, e:ClickEventInfo)
  298. {
  299. grdf_exportExcel(grd_unpreplist, "excel", "Sheet1", "true", "", "");
  300. }
  301. ]]></Script>
  302. </Form>
  303. </FDL>