SMSDT12000_의료협력병의원의사별진료의뢰통계.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMSDT12000" position="absolute 0 0 1202 805" titletext="의료협력병의원의사별진료의뢰통계" oninit="SMSDT12000_oninit" onload="SMSDT12000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="의료협력병의원의사별진료의뢰통계" class="tit_1" position="absolute 0 0 278 24"/>
  8. <Static id="caption21" text="의료협력병의원의사별진료의뢰통계" class="tit_2" position="absolute 0 78 232 100"/>
  9. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 93 1195 102" anchor="left top right"/>
  10. <Div id="group4" taborder="2" class="div_SA" position="absolute 0 24 1195 64" anchor="left top right">
  11. <Layouts>
  12. <Layout>
  13. <cp_monthCal id="ipt_fromdd" titletext="monthCalendar" taborder="11" text="cp_monthCal00" scrollbars="none" position="absolute 310 10 386 30"/>
  14. <cp_monthCal id="ipt_todd" titletext="monthCalendar" taborder="12" text="cp_monthCal00" scrollbars="none" position="absolute 411 10 487 30"/>
  15. <Button id="button2" taborder="6" text="조회" class="btn1" position="absolute 1123 9 1179 31" anchor="top right" onclick="group4_button2_onclick"/>
  16. <Shape id="line2" linetype="vertical" position="absolute 1110 9 1116 31" anchor="top right"/>
  17. <Static id="cap1" text="~" position="absolute 392 10 409 30"/>
  18. <Static id="caption2" text="조회기간 :" class="search_name" position="absolute 229 12 329 29"/>
  19. <Static id="caption23" text="조회구분 :" class="search_name" position="absolute 15 12 101 29"/>
  20. <Combo id="cmb_reqflag" taborder="10" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 104 10 189 29" onitemchanged="group4_cmb_reqflag_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. <Calendar id="ipt_fromentryy" taborder="7" class="input_search" position="absolute 310 10 368 30" mask="yyyy" autoselect="true" dateformat="yyyy" value="null" editformat="yyyy" onchanged="group4_ipt_fromentryy_onchanged"/>
  39. </Layout>
  40. </Layouts>
  41. </Div>
  42. <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 75 1195 94" anchor="top right" onclick="btn_excel_onclick"/>
  43. <Grid id="grd_brgstincmexpsprescond" class="datagrid2" taborder="4" binddataset="ds_main_brgstincmexpspres_brgstincmexpsprescond" useinputpanel="false" position="absolute 0 99 1195 763" autoenter="select" cellsizingtype="col" anchor="all">
  44. <Formats>
  45. <Format id="default">
  46. <Columns>
  47. <Column size="25"/>
  48. <Column size="0"/>
  49. <Column size="178"/>
  50. <Column size="0"/>
  51. <Column size="227"/>
  52. <Column size="0"/>
  53. <Column size="138"/>
  54. <Column size="118"/>
  55. <Column size="118"/>
  56. <Column size="96"/>
  57. <Column size="96"/>
  58. <Column size="87"/>
  59. <Column size="88"/>
  60. </Columns>
  61. <Rows>
  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="2" taborder="undefined"/>
  68. <Cell col="1" rowspan="2" text="caption3" taborder="undefined"/>
  69. <Cell col="2" rowspan="2" text="지역" taborder="undefined"/>
  70. <Cell col="3" text="caption1"/>
  71. <Cell col="4" rowspan="2" text="병원명" taborder="undefined"/>
  72. <Cell col="5" text="caption2"/>
  73. <Cell col="6" rowspan="2" text="의사별" taborder="undefined"/>
  74. <Cell col="7" rowspan="2" text="전기간의뢰건수" taborder="undefined"/>
  75. <Cell col="8" rowspan="2" text="조회기간의뢰건수" taborder="undefined"/>
  76. <Cell col="9" colspan="2" text="증감(전기간대비)" taborder="undefined"/>
  77. <Cell col="11" rowspan="2" text="동문여부" taborder="undefined"/>
  78. <Cell col="12" rowspan="2" text="협력여부" taborder="undefined"/>
  79. <Cell row="1" col="3" text="caption1"/>
  80. <Cell row="1" col="5" text="caption2"/>
  81. <Cell row="1" col="9" text="건수"/>
  82. <Cell row="1" col="10" text="증감율(%)"/>
  83. </Band>
  84. <Band id="body">
  85. <Cell celltype="head" expr="currow+1"/>
  86. <Cell col="1" text="bind:areacd"/>
  87. <Cell col="2" text="bind:areanm" suppress="1" suppressalign="middle,over"/>
  88. <Cell col="3" text="bind:coophospcd"/>
  89. <Cell col="4" displaytype="text" style="align:left middle;padding:2 2 2 2;" text="bind:coophospnm" suppress="2" suppressalign="middle,over"/>
  90. <Cell col="5" text="bind:coopdrcd"/>
  91. <Cell col="6" style="align:center middle;" text="bind:drnm"/>
  92. <Cell col="7" displaytype="number" style="align:center middle;" text="bind:lstconscnt"/>
  93. <Cell col="8" displaytype="number" style="align:center middle;" text="bind:conscnt"/>
  94. <Cell col="9" displaytype="number" style="align:center middle;" text="bind:cnt"/>
  95. <Cell col="10" displaytype="number" style="align:center middle;" text="bind:cntpet"/>
  96. <Cell col="11" text="bind:clsmatyn"/>
  97. <Cell col="12" text="bind:coopyn"/>
  98. </Band>
  99. </Format>
  100. </Formats>
  101. </Grid>
  102. <Button id="btn_search0" taborder="5" text="초기화" class="btn4" position="absolute 1127 772 1195 794" anchor="right bottom" onclick="btn_search0_onclick"/>
  103. <Shape id="line37" class="line_6" position="absolute 0 768 1195 774" anchor="left right bottom"/>
  104. </Layout>
  105. </Layouts>
  106. <Objects>
  107. <Dataset id="ds_main_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  108. <ColumnInfo>
  109. <Column id="reqflag" type="STRING" size="256"/>
  110. <Column id="fromdd" type="STRING" size="256"/>
  111. <Column id="todd" type="STRING" size="256"/>
  112. <Column id="fromentryy" type="STRING" size="256"/>
  113. </ColumnInfo>
  114. <Rows>
  115. <Row>
  116. <Col id="reqflag">1</Col>
  117. <Col id="fromdd"/>
  118. <Col id="todd"/>
  119. <Col id="fromentryy"/>
  120. </Row>
  121. </Rows>
  122. </Dataset>
  123. <Dataset id="ds_main_brgstincmexpspres_brgstincmexpsprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  124. <ColumnInfo>
  125. <Column id="areacd" type="STRING" size="256" sumtext="지역코드"/>
  126. <Column id="areanm" type="STRING" size="256" sumtext="지역"/>
  127. <Column id="coophospcd" type="STRING" size="256" sumtext="병원코드"/>
  128. <Column id="coophospnm" type="STRING" size="256" sumtext="병원명"/>
  129. <Column id="coopdrcd" type="STRING" size="256" sumtext="의사코드"/>
  130. <Column id="drnm" type="STRING" size="256"/>
  131. <Column id="lstconscnt" type="STRING" size="256" sumtext="전기간의뢰건수"/>
  132. <Column id="conscnt" type="STRING" size="256" sumtext="조회기간의뢰건수"/>
  133. <Column id="cnt" type="STRING" size="256" sumtext="전월대비증감건수"/>
  134. <Column id="cntpet" type="STRING" size="256" sumtext="전월대비증감율"/>
  135. <Column id="clsmatyn" type="STRING" size="256" sumtext="동문여부"/>
  136. <Column id="coopyn" type="STRING" size="256" sumtext="협력여부"/>
  137. </ColumnInfo>
  138. </Dataset>
  139. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  140. </Objects>
  141. <Bind>
  142. <BindItem id="item0" compid="group4.cmb_reqflag" propid="value" datasetid="ds_main_search" columnid="reqflag"/>
  143. <BindItem id="item3" compid="group4.ipt_fromentryy" propid="value" datasetid="ds_main_search" columnid="fromentryy"/>
  144. </Bind>
  145. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  146. * System Name :
  147. * Job Name :
  148. * Creator :
  149. * Make Date : 2016-05-24
  150. * Description :
  151. *---------------------------------------------------------------------------------------
  152. * Modify Date Modifier Modify Description
  153. *---------------------------------------------------------------------------------------
  154. * 2016-05-24 Live Converter TF->XP
  155. *
  156. *---------------------------------------------------------------------------------------
  157. ****************************************************************************************/
  158. include "com_commonxp::comm_main.xjs";
  159. function SMSDT12000_oninit(obj:Form, e:InitEventInfo)
  160. {
  161. frmf_initForm(obj);
  162. }
  163. function SMSDT12000_onload(obj:Form, e:LoadEventInfo)
  164. {
  165. grdf_initGrid(grd_brgstincmexpsprescond);
  166. fInit();
  167. fReqBrgstIncmExpsCond();
  168. }
  169. function fn_Cal_fromdd()
  170. {
  171. var fromdd = group4.ipt_fromdd.getData();
  172. ds_main_search.setColumn(0, "fromdd", fromdd);
  173. }
  174. function fn_Cal_todd()
  175. {
  176. var todd = group4.ipt_todd.getData();
  177. ds_main_search.setColumn(0, "todd", todd);
  178. }
  179. function fInit()
  180. {
  181. group4.ipt_fromdd.setCallEvent("fn_Cal_fromdd");
  182. group4.ipt_todd.setCallEvent("fn_Cal_todd");
  183. ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
  184. var CurrentDate = utlf_getCurrentDate();
  185. var LastDate = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
  186. var LastDateYM = LastDate.substr(0,6);
  187. var CurrentDateYY = CurrentDate.substring(0,4);
  188. group4.ipt_fromdd.setData(LastDateYM);
  189. group4.ipt_todd.setData(LastDateYM);
  190. dsf_makeValue(ds_main_search, "fromentryy", "string", CurrentDateYY);
  191. dsf_makeValue(ds_main_search, "toentryy", "string", CurrentDateYY);
  192. dsf_makeValue(ds_main_search, "fromdd", "string", LastDateYM);
  193. dsf_makeValue(ds_main_search, "todd", "string", LastDateYM);
  194. group4.ipt_fromentryy.visible = false;
  195. }
  196. function fReqBrgstIncmExpsCond()
  197. {
  198. ds_send_reqdata.clearData();
  199. var fromdd = ds_main_search.getColumn(0, "fromdd");
  200. var todd = ds_main_search.getColumn(0, "todd");
  201. var reqflag = ds_main_search.getColumn(0, "reqflag");
  202. var fromentryy = ds_main_search.getColumn(0, "fromentryy");
  203. dsf_makeValue(ds_send_reqdata, "reqflag", "string", reqflag);
  204. if(reqflag == "1") //조회 구분이 월 일때
  205. {
  206. if(utlf_isNull(fromdd))
  207. {
  208. sysf_messageBox("조회시작일자는","I003");
  209. group4.ipt_fromdd.setFocus();
  210. return;
  211. }
  212. if(utlf_isNull(todd))
  213. {
  214. sysf_messageBox("조회종료일자는","I003");
  215. group4.ipt_todd.setFocus();
  216. return;
  217. }
  218. var dateintval = utlf_getDateInterval(fromdd+"01",todd+"31");
  219. if(fromdd > todd)
  220. {
  221. sysf_messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
  222. group4.ipt_todd.setFocus();
  223. return;
  224. }
  225. if(dateintval > "370")
  226. {
  227. sysf_messageBox("조회기간은 최대 1년까지 할 수 있습니다","I");
  228. group4.ipt_fromdd.setFocus();
  229. return;
  230. }
  231. dsf_makeValue(ds_send_reqdata, "fromdd", "string", fromdd);
  232. dsf_makeValue(ds_send_reqdata, "todd", "string", todd);
  233. dsf_makeValue(ds_send_reqdata, "fromentryy", "string", "");
  234. if(fromdd == todd)
  235. {
  236. dsf_makeValue(ds_send_reqdata, "dateflag", "string", "1"); // 조회월이 같으면 전기간을 전월로 하기 위해 dateflag셋팅
  237. }
  238. else
  239. {
  240. dsf_makeValue(ds_send_reqdata, "dateflag", "string", "2");
  241. }
  242. }
  243. else //조회구분이 년도 일때
  244. {
  245. if(utlf_isNull(fromentryy))
  246. {
  247. sysf_messageBox("조회시작연도는","I003");
  248. group4.ipt_fromentryy.setFocus();
  249. return;
  250. }
  251. dsf_makeValue(ds_send_reqdata, "fromdd", "string", "");
  252. dsf_makeValue(ds_send_reqdata, "todd", "string", "");
  253. dsf_makeValue(ds_send_reqdata, "dateflag", "string", "");
  254. dsf_makeValue(ds_send_reqdata, "fromentryy", "string", fromentryy);
  255. }
  256. var oParam = {};
  257. oParam.id = "TRSDT12001";
  258. oParam.service = "stscmcnwapp.CoopEndStats";
  259. oParam.method = "reqGetHealCareCoopDrAchiv";
  260. oParam.inds = "req=ds_send_reqdata";
  261. oParam.outds = "ds_main_brgstincmexpspres_brgstincmexpsprescond=brgstincmexpsprescond";
  262. oParam.async = false;
  263. oParam.callback = "cf_TRSDT12001";
  264. tranf_submit(oParam);
  265. }
  266. function cf_TRSDT12001(sSvcId, nErrorCode, sErrorMsg)
  267. {
  268. if(nErrorCode < 0) return;
  269. else
  270. {
  271. for(var i = 0; i < ds_main_brgstincmexpspres_brgstincmexpsprescond.rowcount; i++)
  272. {
  273. var cnt = ds_main_brgstincmexpspres_brgstincmexpsprescond.getColumn(i, "cnt");
  274. var lstconscnt = ds_main_brgstincmexpspres_brgstincmexpsprescond.getColumn(i, "lstconscnt");
  275. var cntpet = Math.round(cnt/lstconscnt*100, 2);
  276. dsf_makeValue(ds_main_brgstincmexpspres_brgstincmexpsprescond, "cntpet", "float", cntpet, i);
  277. }
  278. }
  279. }
  280. function group4_ipt_fromentryy_onchanged(obj:Calendar, e:ChangeEventInfo)
  281. {
  282. ds_main_search.setColumn(0, "fromentryy", String(obj.value).substr(0,4));
  283. }
  284. function group4_button2_onclick(obj:Button, e:ClickEventInfo)
  285. {
  286. fReqBrgstIncmExpsCond();
  287. }
  288. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  289. {
  290. fExcel();
  291. }
  292. function fExcel()
  293. {
  294. if (ds_main_brgstincmexpspres_brgstincmexpsprescond.rowcount == 0)
  295. {
  296. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  297. return;
  298. }
  299. grdf_exportExcel(grd_brgstincmexpsprescond, "의료협력병의원의사별진료의뢰통계", "SheetName", "true", "", "");
  300. }
  301. function btn_search0_onclick(obj:Button, e:ClickEventInfo)
  302. {
  303. ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
  304. }
  305. function group4_cmb_reqflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  306. {
  307. var CurrentDate = utlf_getCurrentDate();
  308. if(obj.value == "1")
  309. {
  310. group4.ipt_fromdd.visible = true;
  311. group4.ipt_todd.visible = true;
  312. group4.ipt_fromentryy.visible = false;
  313. group4.cap1.visible = true;
  314. }
  315. else
  316. {
  317. group4.ipt_fromdd.visible = false;
  318. group4.ipt_todd.visible = false;
  319. group4.ipt_fromentryy.visible = true;
  320. group4.cap1.visible = false;
  321. ds_send_reqdata.setColumn(0, "fromdd", "");
  322. ds_send_reqdata.setColumn(0, "todd", "");
  323. }
  324. fReqBrgstIncmExpsCond(); //조회함수
  325. }
  326. ]]></Script>
  327. </Form>
  328. </FDL>