SMSDT04000_사회사업협의뢰및회신실적.xfdl 16 KB

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