SMSDT03000_사회사업협의진료실적.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMSDT03000" position="absolute 0 0 1200 799" titletext="사회사업 협의진료실적" oninit="SMSDT03000_oninit" onload="SMSDT03000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="사회사업 협의진료 실적조회" class="tit_1" position="absolute 0 0 224 25"/>
  8. <Static id="caption21" text="사회사업 협의진료 실적" class="tit_2" position="absolute 0 81 195 103"/>
  9. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 95 1195 106" anchor="left top right"/>
  10. <Div id="group4" anchor="left top right" taborder="2" class="div_SA" position="absolute 0 25 1195 65">
  11. <Layouts>
  12. <Layout>
  13. <Button id="button2" taborder="4" text="조회" class="btn1" position="absolute 1123 9 1179 31" anchor="top right" onclick="group4_button2_onclick"/>
  14. <Static id="caption23" text="조회구분 :" class="search_name" position="absolute 15 11 101 28"/>
  15. <Shape id="line2" linetype="vertical" position="absolute 1110 9 1116 31" anchor="top right"/>
  16. <Static id="cap1" text="~" position="absolute 439 11 448 31"/>
  17. <Calendar id="ipt_fromdd" taborder="5" class="input_search" position="absolute 335 11 435 30" mask="yyyy-mm" autoselect="true" dateformat="yyyy-MM" editformat="yyyy-MM" autoskip="true" onchanged="group4_ipt_fromdd_onchanged"/>
  18. <Calendar id="ipt_todd" taborder="6" class="input_search" position="absolute 457 11 557 30" mask="yyyy-mm" autoselect="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="group4_ipt_todd_onchanged"/>
  19. <Static id="caption1" text="조회기간 :" class="search_name" position="absolute 249 13 333 30"/>
  20. <Combo id="cmb_sumflag" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 110 11 220 30" onitemchanged="group4_cmb_sumflag_onitemchanged">
  21. <Dataset id="innerdataset">
  22. <ColumnInfo>
  23. <Column id="codecolumn"/>
  24. <Column id="datacolumn"/>
  25. </ColumnInfo>
  26. <Rows>
  27. <Row>
  28. <Col id="codecolumn">2</Col>
  29. <Col id="datacolumn">월별</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">1</Col>
  33. <Col id="datacolumn">업무분야별</Col>
  34. </Row>
  35. </Rows>
  36. </Dataset>
  37. </Combo>
  38. </Layout>
  39. </Layouts>
  40. </Div>
  41. <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 78 1195 97" anchor="top right" onclick="btn_excel_onclick"/>
  42. <Grid id="grd_cnst" class="datagrid2" taborder="4" binddataset="ds_main_cnstinfo_cnstlist" useinputpanel="false" position="absolute 0 102 1195 766" autoenter="select" cellsizingtype="col" anchor="all">
  43. <Formats>
  44. <Format id="default">
  45. <Columns>
  46. <Column size="160"/>
  47. <Column size="90"/>
  48. <Column size="90"/>
  49. <Column size="90"/>
  50. <Column size="95"/>
  51. <Column size="80"/>
  52. <Column size="80"/>
  53. <Column size="80"/>
  54. <Column size="89"/>
  55. <Column size="80"/>
  56. <Column size="80"/>
  57. <Column size="80"/>
  58. <Column size="90"/>
  59. </Columns>
  60. <Rows>
  61. <Row size="24" band="head"/>
  62. <Row size="24" band="head"/>
  63. <Row size="24" band="head"/>
  64. <Row size="24"/>
  65. </Rows>
  66. <Band id="head">
  67. <Cell rowspan="3" text="구분" taborder="undefined"/>
  68. <Cell col="1" rowspan="3" text="사회사업&#13;&#10;협진의뢰 건수" taborder="undefined"/>
  69. <Cell col="2" rowspan="3" text="사회사업&#13;&#10;협진회신 건수" taborder="undefined"/>
  70. <Cell col="3" rowspan="3" text="사회사업&#13;&#10;협진회신율" taborder="undefined"/>
  71. <Cell col="4" rowspan="3" text="사회사업&#13;&#10;협진평균 회신일" taborder="undefined"/>
  72. <Cell col="5" colspan="4" text="전월실적" taborder="undefined"/>
  73. <Cell col="9" colspan="4" text="전월대비실적비교" taborder="undefined"/>
  74. <Cell row="1" col="5" rowspan="2" text="협진의뢰건수" taborder="undefined"/>
  75. <Cell row="1" col="6" rowspan="2" text="협진회신건수" taborder="undefined"/>
  76. <Cell row="1" col="7" rowspan="2" text="협진회신율" taborder="undefined"/>
  77. <Cell row="1" col="8" rowspan="2" text="협진평균회신일" wordwrap="word" taborder="undefined"/>
  78. <Cell row="1" col="9" rowspan="2" text="협진의뢰건수" taborder="undefined"/>
  79. <Cell row="1" col="10" rowspan="2" text="협진회신건수" taborder="undefined"/>
  80. <Cell row="1" col="11" rowspan="2" text="협진회신율" taborder="undefined"/>
  81. <Cell row="1" col="12" rowspan="2" text="협진평균회신일" wordwrap="word" taborder="undefined"/>
  82. </Band>
  83. <Band id="body">
  84. <Cell text="bind:cdnm" maskchar=" " calendardisplaynulltype="nulltext"/>
  85. <Cell col="1" text="bind:reqcnt"/>
  86. <Cell col="2" text="bind:replcnt"/>
  87. <Cell col="3" text="bind:avgrate" wordwrap="word"/>
  88. <Cell col="4" text="bind:avgdayno" wordwrap="word"/>
  89. <Cell col="5" text="bind:bfreqcnt"/>
  90. <Cell col="6" text="bind:bfreplcnt"/>
  91. <Cell col="7" text="bind:bfavgrate"/>
  92. <Cell col="8" text="bind:bfavgdayno"/>
  93. <Cell col="9" text="bind:comparereqcnt"/>
  94. <Cell col="10" text="bind:comparereplcnt"/>
  95. <Cell col="11" text="bind:comparereplper"/>
  96. <Cell col="12" text="bind:comparerepldayno"/>
  97. </Band>
  98. </Format>
  99. </Formats>
  100. </Grid>
  101. <Shape id="line37" class="line_6" position="absolute 0 766 1195 772" anchor="left right bottom"/>
  102. <Button id="btn_search0" taborder="5" text="초기화" class="btn4" position="absolute 1127 771 1195 793" anchor="right bottom" onclick="btn_search0_onclick"/>
  103. </Layout>
  104. </Layouts>
  105. <Objects>
  106. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  107. <ColumnInfo>
  108. <Column id="fromdd" type="STRING" size="256"/>
  109. <Column id="todd" type="STRING" size="256"/>
  110. <Column id="flag" type="STRING" size="256"/>
  111. </ColumnInfo>
  112. <Rows>
  113. <Row>
  114. <Col id="fromdd"/>
  115. <Col id="todd"/>
  116. <Col id="flag">2</Col>
  117. </Row>
  118. </Rows>
  119. </Dataset>
  120. <Dataset id="ds_main_cnstinfo_cnstlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  121. <ColumnInfo>
  122. <Column id="cdnm" type="STRING" size="256" sumtext="구분"/>
  123. <Column id="reqcnt" type="STRING" size="256" sumtext="사회사업협진의뢰건수"/>
  124. <Column id="replcnt" type="STRING" size="256" sumtext="사회사업협진회신건수"/>
  125. <Column id="avgrate" type="STRING" size="256" sumtext="사회사업협진회신율"/>
  126. <Column id="avgdayno" type="STRING" size="256" sumtext="사회사업협진평균회신일"/>
  127. <Column id="bfreqcnt" type="STRING" size="256" sumtext="전월실적-협진의뢰건수"/>
  128. <Column id="bfreplcnt" type="STRING" size="256" sumtext="전월실적-협진회신건수"/>
  129. <Column id="bfavgrate" type="STRING" size="256" sumtext="전월실적-협진회신율"/>
  130. <Column id="bfavgdayno" type="STRING" size="256" sumtext="전월실적-협진평균회신일"/>
  131. <Column id="comparereqcnt" type="STRING" size="256" sumtext="전월대비-협진의뢰건수"/>
  132. <Column id="comparereplcnt" type="STRING" size="256" sumtext="전월대비-협진회신건수"/>
  133. <Column id="comparereplper" type="STRING" size="256" sumtext="전월대비-협진회신율"/>
  134. <Column id="comparerepldayno" type="STRING" size="256" sumtext="전월대비-협진의뢰평균회신일"/>
  135. </ColumnInfo>
  136. </Dataset>
  137. </Objects>
  138. <Bind>
  139. <BindItem id="item0" compid="group4.cmb_sumflag" propid="value" datasetid="ds_main_cond" columnid="flag"/>
  140. <BindItem id="item1" compid="group4.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  141. <BindItem id="item2" compid="group4.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  142. </Bind>
  143. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  144. * System Name :
  145. * Job Name :
  146. * Creator :
  147. * Make Date : 2016-05-24
  148. * Description :
  149. *---------------------------------------------------------------------------------------
  150. * Modify Date Modifier Modify Description
  151. *---------------------------------------------------------------------------------------
  152. * 2016-05-24 Live Converter TF->XP
  153. *
  154. *---------------------------------------------------------------------------------------
  155. ****************************************************************************************/
  156. include "com_commonxp::comm_main.xjs";
  157. function SMSDT03000_oninit(obj:Form, e:InitEventInfo)
  158. {
  159. frmf_initForm(obj);
  160. }
  161. function SMSDT03000_onload(obj:Form, e:LoadEventInfo)
  162. {
  163. grdf_initGrid(grd_cnst);
  164. fInit();
  165. }
  166. function fInit()
  167. {
  168. ds_main_cnstinfo_cnstlist.clearData();
  169. group4.cmb_sumflag.index = 0;
  170. var currentDate = utlf_getCurrentDate();
  171. var LastDate = currentDate.toDate().getAddDate(-1,"M").getDateFormat();
  172. var LastDateYM = String(LastDate).substr(0,6);
  173. ds_main_cond.setColumn(0, "fromdd",LastDateYM);
  174. ds_main_cond.setColumn(0, "todd",LastDateYM);
  175. }
  176. function group4_cmb_sumflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  177. {
  178. fGetSoclConfCnstInfo();
  179. }
  180. function fGetSoclConfCnstInfo()
  181. {
  182. var fromdd = ds_main_cond.getColumn(0, "fromdd") +"01";
  183. var todd = ds_main_cond.getColumn(0, "todd")+ "01";
  184. var dateintval = utlf_getDateInterval(fromdd,todd);
  185. var fdate = ds_main_cond.getColumn(0, "fromdd");
  186. var todate = ds_main_cond.getColumn(0, "todd");
  187. if(utlf_isNull(fdate))
  188. {
  189. sysf_messageBox("조회시작일자는","I003");
  190. group4.ipt_fromdd.setFocus();
  191. return;
  192. }
  193. if(utlf_isNull(todate))
  194. {
  195. sysf_messageBox("조회종료일자는","I003");
  196. group4.ipt_todd.setFocus();
  197. return;
  198. }
  199. if(fdate > todate)
  200. {
  201. sysf_messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
  202. group4.ipt_todd.setFocus();
  203. return;
  204. }
  205. if(dateintval>=365)
  206. {
  207. sysf_messageBox("조회기간은 최대1년까지 할 수 있습니다.","I");
  208. group4.ipt_todd.setFocus();
  209. return;
  210. }
  211. if(group4.cmb_sumflag.value == '1')
  212. {
  213. grd_cnst.setFormatColProperty(5, "size", 0);
  214. grd_cnst.setFormatColProperty(6, "size", 0);
  215. grd_cnst.setFormatColProperty(7, "size", 0);
  216. grd_cnst.setFormatColProperty(8, "size", 0);
  217. grd_cnst.setFormatColProperty(9, "size", 0);
  218. grd_cnst.setFormatColProperty(10, "size", 0);
  219. grd_cnst.setFormatColProperty(11, "size", 0);
  220. grd_cnst.setFormatColProperty(12, "size", 0);
  221. grd_cnst.setFormatColProperty(13, "size", 0);
  222. var oParam = {};
  223. oParam.id = "TRSDT03001";
  224. oParam.service = "stscmcnwapp.SoclEndStats";
  225. oParam.method = "reqGetSoclConfCnstInfo";
  226. oParam.inds = "req=ds_main_cond";
  227. oParam.outds = "ds_main_cnstinfo_cnstlist=cnstlist";
  228. oParam.async = false;
  229. //oParam.callback = "cf_TRSDT03001";
  230. tranf_submit(oParam);
  231. }
  232. else if(group4.cmb_sumflag.value == '2')
  233. {
  234. grd_cnst.setFormatColProperty(5, "size", 80);
  235. grd_cnst.setFormatColProperty(6, "size", 80);
  236. grd_cnst.setFormatColProperty(7, "size", 80);
  237. grd_cnst.setFormatColProperty(8, "size", 80);
  238. grd_cnst.setFormatColProperty(9, "size", 80);
  239. grd_cnst.setFormatColProperty(10, "size", 80);
  240. grd_cnst.setFormatColProperty(11, "size", 80);
  241. grd_cnst.setFormatColProperty(12, "size", 80);
  242. grd_cnst.setFormatColProperty(13, "size", 80);
  243. var oParam = {};
  244. oParam.id = "TRSDT03001";
  245. oParam.service = "stscmcnwapp.SoclEndStats";
  246. oParam.method = "reqGetSoclConfCnstInfo";
  247. oParam.inds = "req=ds_main_cond";
  248. oParam.outds = "ds_main_cnstinfo_cnstlist=cnstlist";
  249. oParam.async = false;
  250. //oParam.callback = "cf_TRSDT03001";
  251. tranf_submit(oParam);
  252. fStat();
  253. }
  254. }
  255. function fStat()
  256. {
  257. if(ds_main_cnstinfo_cnstlist.rowcount > 1)
  258. {
  259. var val = ds_main_cnstinfo_cnstlist.getColumn(0, "cdnm");
  260. if(utlf_isNull(val)) return;
  261. if(ds_main_cnstinfo_cnstlist.rowcount > 0)
  262. {
  263. var sStat = 0;
  264. var insRow = ds_main_cnstinfo_cnstlist.addRow();
  265. ds_main_cnstinfo_cnstlist.setColumn(insRow, "cdnm", "전기간대비실적비교");
  266. for(var i = 1; i < 5; i++)
  267. {
  268. var bfResult = eval(ds_main_cnstinfo_cnstlist.getColumn(insRow-1 , i));
  269. var sSum = eval(ds_main_cnstinfo_cnstlist.getColumn(insRow-2, i));
  270. sStat = eval(sSum)- eval(bfResult);
  271. ds_main_cnstinfo_cnstlist.setColumn(insRow, i , eval(sStat));
  272. }
  273. }
  274. }
  275. else
  276. {
  277. ds_main_cnstinfo_cnstlist.clearData();
  278. }
  279. }
  280. function group4_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  281. {
  282. ds_main_cond.setColumn(0, "fromdd", String(obj.value).substr(0,6));
  283. }
  284. function group4_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
  285. {
  286. ds_main_cond.setColumn(0, "todd", String(obj.value).substr(0,6));
  287. }
  288. function group4_button2_onclick(obj:Button, e:ClickEventInfo)
  289. {
  290. fGetSoclConfCnstInfo()
  291. }
  292. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  293. {
  294. fExcel();
  295. }
  296. function fExcel()
  297. {
  298. if (ds_main_cnstinfo_cnstlist.rowcount == 0)
  299. {
  300. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  301. return;
  302. }
  303. grdf_exportExcel(grd_cnst, "사회사업협의진료실적", "SheetName", "true", "", "");
  304. }
  305. function btn_search0_onclick(obj:Button, e:ClickEventInfo)
  306. {
  307. fInit();
  308. }
  309. ]]></Script>
  310. </Form>
  311. </FDL>