SMMNW04703_욕창PUSH차트그래프.xfdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNW04703" position="absolute 0 0 1172 690" titletext="욕창Push차트 그래프" oninit="SMMNW04703_oninit" onload="SMMNW04703_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 0 374 1169 686" id="grd_list" class="datagrid0" binddataset="ds_main_pushlist" onhscroll="grd_list_onhscroll" selecttype="row">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="174"/>
  12. <Column size="99"/>
  13. <Column size="99"/>
  14. <Column size="99"/>
  15. <Column size="99"/>
  16. <Column size="99"/>
  17. <Column size="99"/>
  18. <Column size="99"/>
  19. <Column size="99"/>
  20. <Column size="99"/>
  21. <Column size="99"/>
  22. <Column size="99"/>
  23. <Column size="99"/>
  24. <Column size="99"/>
  25. <Column size="0"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="0" band="head"/>
  29. <Row size="24"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell text="obspartnm"/>
  33. <Cell col="1" text="recdt1"/>
  34. <Cell col="2" text="totl"/>
  35. <Cell col="3" text="caption9"/>
  36. <Cell col="4" text="caption8"/>
  37. <Cell col="5" text="caption7"/>
  38. <Cell col="6" text="caption6"/>
  39. <Cell col="7" text="caption5"/>
  40. <Cell col="8" text="caption4"/>
  41. <Cell col="9" text="caption3"/>
  42. <Cell col="10" text="caption2"/>
  43. <Cell col="11" text="caption1"/>
  44. <Cell col="12" text="caption10"/>
  45. <Cell col="13" text="caption11"/>
  46. <Cell col="14" text="flag"/>
  47. </Band>
  48. <Band id="body">
  49. <Cell celltype="head" style="align:center;" text="bind:obspartnm" suppress="1" suppressalign="middle,over"/>
  50. <Cell col="1" displaytype="text" style="align:center;padding:0 0 0 0;" text="bind:total1"/>
  51. <Cell col="2" style="align:center;padding:0 0 0 0;" text="bind:total2"/>
  52. <Cell col="3" style="align:center;padding:0 0 0 0;" text="bind:total3"/>
  53. <Cell col="4" style="align:center;padding:0 0 0 0;" text="bind:total4"/>
  54. <Cell col="5" style="align:center;padding:0 0 0 0;" text="bind:total5"/>
  55. <Cell col="6" style="align:center;padding:0 0 0 0;" text="bind:total6"/>
  56. <Cell col="7" style="align:center;padding:0 0 0 0;" text="bind:total7"/>
  57. <Cell col="8" style="align:center;padding:0 0 0 0;" text="bind:total8"/>
  58. <Cell col="9" style="align:center;padding:0 0 0 0;" text="bind:total9"/>
  59. <Cell col="10" style="align:center;padding:0 0 0 0;" text="bind:total10"/>
  60. <Cell col="11" style="align:center;padding:0 0 0 0;" text="bind:total11"/>
  61. <Cell col="12" style="align:center;padding:0 0 0 0;" text="bind:total12"/>
  62. <Cell col="13" style="align:center;padding:0 0 0 0;" text="bind:total13"/>
  63. <Cell col="14" text="bind:flag"/>
  64. </Band>
  65. </Format>
  66. </Formats>
  67. </Grid>
  68. <ActiveX position="absolute 0 72 1169 372" id="obj_chart" progid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}"/>
  69. <Div position="absolute 0 25 1169 65" align="align:center top;" id="group1" class="div_SA">
  70. <Layouts>
  71. <Layout>
  72. <Button position="absolute 1100 10 1156 32" id="btn_search" class="btn1" taborder="13" text="조회" anchor="default" onclick="group1_btn_search_onclick"/>
  73. <Static text="기 간 :" position="absolute 20 10 80 30" id="caption1" class="search_name" anchor="default"/>
  74. <Calendar position="absolute 84 10 172 30" align="align:center middle;" id="ipt_fromdd" class="input_search" taborder="1" anchor="default"/>
  75. <Calendar position="absolute 191 10 279 30" align="align:center middle;" id="ipt_todd" class="input_search" taborder="1" anchor="default"/>
  76. <Static text="~" position="absolute 178 10 193 30" id="caption2" anchor="default"/>
  77. <Shape position="absolute 1083 6 1089 36" linetype="vertical" id="line3" class="line_4" anchor="default"/>
  78. <Edit position="absolute 397 11 491 32" align="align:center middle;" id="ipt_pid" anchor="default"/>
  79. <Static text="환 자 :" position="absolute 329 13 394 30" id="caption3" class="search_name" anchor="default"/>
  80. <Edit position="absolute 494 11 604 32" align="align:center middle;" id="ipt_pname" anchor="default" style="background:URL('theme://images/bg_edit_N.png') stretch 5,5;"/>
  81. <Edit position="absolute 745 12 845 33" id="ipt_indd" visible="false" anchor="default" style="background:URL('theme://images/bg_edit_N.png') stretch 5,5;"/>
  82. <Edit position="absolute 856 11 956 32" id="ipt_cretno" visible="false" anchor="default"/>
  83. <Button position="absolute 989 10 1069 32" id="button1" visible="false" text="button1" anchor="default" onclick="group1_button1_onclick"/>
  84. <CheckBox position="absolute 621 12 721 32" id="chk_pushyn" anchor="default" text="push만" truevalue="Y" falsevalue="N"/>
  85. </Layout>
  86. </Layouts>
  87. </Div>
  88. <Shape position="absolute 0 67 1169 73" linetype="horizontal" id="line2" class="line_1"/>
  89. <Static text="피부욕창관찰기록 PUSH 차트" position="absolute 0 0 210 25" id="caption6" class="tit_1"/>
  90. <Shape id="line00" class="line_10" position="absolute 0 67 1169 73"/>
  91. </Layout>
  92. </Layouts>
  93. <Objects>
  94. <Dataset id="ds_main_pushlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  95. <ColumnInfo>
  96. <Column id="recdd" type="STRING" size="256"/>
  97. <Column id="svalue" type="STRING" size="256"/>
  98. <Column id="avalue" type="STRING" size="256"/>
  99. <Column id="tvalue" type="STRING" size="256"/>
  100. <Column id="total" type="STRING" size="256"/>
  101. </ColumnInfo>
  102. <Rows>
  103. <Row>
  104. <Col id="recdd"/>
  105. <Col id="svalue"/>
  106. <Col id="avalue"/>
  107. <Col id="tvalue"/>
  108. <Col id="total"/>
  109. </Row>
  110. </Rows>
  111. </Dataset>
  112. <Dataset id="ds_main_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  113. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="title" type="STRING" size="256"/>
  116. <Column id="reportid" type="STRING" size="256"/>
  117. </ColumnInfo>
  118. <Rows>
  119. <Row/>
  120. </Rows>
  121. </Dataset>
  122. <Dataset id="ds_send_pinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="pid" type="STRING" size="256"/>
  125. <Column id="sdate" type="STRING" size="256"/>
  126. <Column id="edate" type="STRING" size="256"/>
  127. </ColumnInfo>
  128. <Rows>
  129. <Row>
  130. <Col id="pid"/>
  131. <Col id="sdate"/>
  132. <Col id="edate"/>
  133. </Row>
  134. </Rows>
  135. </Dataset>
  136. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  137. <ColumnInfo>
  138. <Column id="sdate" type="STRING" size="256"/>
  139. <Column id="edate" type="STRING" size="256"/>
  140. <Column id="pid" type="STRING" size="256"/>
  141. <Column id="pname" type="STRING" size="256"/>
  142. <Column id="indd" type="STRING" size="256"/>
  143. <Column id="cretno" type="STRING" size="256"/>
  144. <Column id="pushyn" type="STRING" size="256"/>
  145. </ColumnInfo>
  146. <Rows>
  147. <Row>
  148. <Col id="sdate"/>
  149. <Col id="edate"/>
  150. <Col id="pid"/>
  151. <Col id="pname"/>
  152. <Col id="indd"/>
  153. <Col id="cretno"/>
  154. <Col id="pushyn"/>
  155. </Row>
  156. </Rows>
  157. </Dataset>
  158. <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  159. <Dataset id="ds_temp_pushlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  160. <Dataset id="ds_init_scrollinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  161. <ColumnInfo>
  162. <Column id="scrollvalue" type="STRING" size="256"/>
  163. </ColumnInfo>
  164. <Rows>
  165. <Row/>
  166. </Rows>
  167. </Dataset>
  168. </Objects>
  169. <Bind>
  170. <BindItem id="item0" compid="group1.ipt_fromdd" propid="value" datasetid="ds_cond" columnid="sdate"/>
  171. <BindItem id="item1" compid="group1.ipt_todd" propid="value" datasetid="ds_cond" columnid="edate"/>
  172. <BindItem id="item2" compid="group1.ipt_pid" propid="value" datasetid="ds_cond" columnid="pid"/>
  173. <BindItem id="item3" compid="group1.chk_pushyn" propid="value" datasetid="ds_cond" columnid="pushyn"/>
  174. <BindItem id="item4" compid="group1.ipt_indd" propid="value" datasetid="ds_cond" columnid="indd"/>
  175. <BindItem id="item5" compid="group1.ipt_cretno" propid="value" datasetid="ds_cond" columnid="cretno"/>
  176. <BindItem id="item6" compid="group1.ipt_pname" propid="value" datasetid="ds_cond" columnid="pname"/>
  177. </Bind>
  178. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  179. * System Name :
  180. * Job Name :
  181. * Creator :
  182. * Make Date : 2015-11-13
  183. * Description :
  184. *---------------------------------------------------------------------------------------
  185. * Modify Date Modifier Modify Description
  186. *---------------------------------------------------------------------------------------
  187. * 2015-11-13 Live Converter TF->XP
  188. *
  189. *---------------------------------------------------------------------------------------
  190. ****************************************************************************************/
  191. include "com_commonxp::comm_main.xjs"
  192. include "emr_carecomxp::CareCom.xjs"
  193. /******************************************************************
  194. * Argument :
  195. * Description : 초기화
  196. ******************************************************************/
  197. function SMMNW04703_oninit(obj:Form, e:InitEventInfo)
  198. {
  199. frmf_initForm(obj);
  200. }
  201. function SMMNW04703_onload(obj:Form, e:LoadEventInfo)
  202. {
  203. var sPamInfo = sysf_getGlobalVariable("paminfo");
  204. //ds_main_paminfo.copyData(sPamInfo); //환자정보내리기
  205. dsf_setCSVToDs("ds_main_paminfo", sPamInfo)
  206. var pid = ds_main_paminfo.getColumn(0, "pid");
  207. var indd = ds_main_paminfo.getColumn(0, "indd");
  208. var cretno = ds_main_paminfo.getColumn(0, "cretno");
  209. var wardcd = ds_main_paminfo.getColumn(0, "wardcd");
  210. var roomcd = ds_main_paminfo.getColumn(0, "roomcd");
  211. var hngnm = ds_main_paminfo.getColumn(0, "hngnm");
  212. ds_cond.setColumn(0, "pid", pid);
  213. ds_cond.setColumn(0, "sdate", indd);
  214. ds_cond.setColumn(0, "edate", utlf_getCurrentDate());
  215. ds_cond.setColumn(0, "pname", hngnm);
  216. ds_cond.setColumn(0, "indd", indd);
  217. ds_cond.setColumn(0, "cretno", cretno);
  218. fGetNursHardCdInfo("'U30'", utlf_getCurrentDate()); // '002' 응급의료센터 여부 조회
  219. var useyn = ds_codelist.lookup("cdgrupid", "U30", "cdid");
  220. if( useyn == "Y" ) {
  221. group1.chk_pushyn.visible = true;
  222. ds_cond.setColumn(0, "pushyn", "Y");
  223. } else {
  224. group1.chk_pushyn.visible = false;
  225. ds_cond.setColumn(0, "pushyn", "N");
  226. }
  227. frmf_inputEnterKey("group1.btn_search", "onclick", new ClickEventInfo);
  228. }
  229. /******************************************************************
  230. * Argument :
  231. * Description : 조회 button event
  232. ******************************************************************/
  233. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  234. {
  235. fSearch();
  236. fMakeChart();
  237. }
  238. /******************************************************************
  239. * Argument : fSearch()
  240. * Description : 조회
  241. ******************************************************************/
  242. function fSearch(){
  243. var oParam = {};
  244. oParam.id = "TRMNW04710";
  245. oParam.service = "wardcareapp.WardCareRec";
  246. oParam.method = "reqGetPushChartInfo";
  247. oParam.inds = "req=ds_cond";
  248. oParam.outds = "ds_main_pushlist=pushlist";
  249. oParam.async = false;
  250. //oParam.callback = "cf_TRMNW04710";
  251. tranf_submit(oParam);
  252. ds_main_pushlist.rowposition = -1;
  253. var flag = ""
  254. var node = "";
  255. var EXPR = "EXPR("
  256. var EXPR2 = "EXPR("
  257. var datarows = ds_main_pushlist.rowcount;
  258. for(var i = 0; i < datarows; i++)
  259. {
  260. flag = ds_main_pushlist.getColumn(i, "flag");
  261. if(flag == "1")
  262. {
  263. EXPR += "currow == " + i + " ? '#bdddff' : ";
  264. EXPR2 += "currow == " + i + " ? '####-##-## ##:##' : ";
  265. //expr:utlf_isNull(total1) == true ? '' : '####-##-## ##:##'
  266. }
  267. }
  268. EXPR += "'')";
  269. EXPR2 += "'')";
  270. if(ds_main_pushlist.rowcount > 0)
  271. {
  272. for(var iCol = 1 ; iCol < 14 ;iCol++)
  273. {
  274. grd_list.setCellProperty("Body", iCol, "background", EXPR);
  275. grd_list.setCellProperty("Body", iCol, "background2", EXPR);
  276. grd_list.setCellProperty("Body", iCol, "mask", EXPR2);
  277. }
  278. grd_list.setCellProperty("Body", 0, "background", "#bdddff");
  279. grd_list.setCellProperty("Body", 0, "background2", "#bdddff");
  280. }
  281. var iRow = 0;
  282. var iCol = 0;
  283. for(iCol = 0; iCol < 14; iCol++ )
  284. {
  285. for(iRow = 0 ; iRow < ds_main_pushlist.rowcount; iRow++)
  286. {
  287. var colnm = ds_main_pushlist.getColumn(iRow, iCol);
  288. if(utlf_isNull(colnm))
  289. {
  290. grd_list.setFormatColProperty(iCol, "size", 0);
  291. }
  292. else
  293. {
  294. if( iCol == 0 ){
  295. grd_list.setFormatColProperty(iCol, "size", 174);
  296. }else{
  297. grd_list.setFormatColProperty(iCol, "size", 99);
  298. }
  299. }
  300. }
  301. }
  302. }
  303. /******************************************************************
  304. * Argument : fMakeChart()
  305. * Description : 조회
  306. ******************************************************************/
  307. function fMakeChart() {
  308. var flag;
  309. var cnt = 0;
  310. var title = "";
  311. obj_chart.ClearChart();
  312. obj_chart.Header.Visible = true; // Graph Header 정보 사용 여부
  313. obj_chart.Legend.Visible = true;
  314. obj_chart.Header.Font.Color = 0x000000;
  315. obj_chart.Header.Font.Size = 15;
  316. obj_chart.Legend.CheckBoxes = true;
  317. obj_chart.Legend.Alignment = 0;
  318. obj_chart.Panel.MarginTop = 15
  319. obj_chart.Panel.MarginLeft = 15;
  320. obj_chart.Panel.MarginRight = 0;
  321. obj_chart.Panel.MarginBottom = -1;
  322. obj_chart.Legend.CheckBoxes = true;
  323. obj_chart.Panel.BevelWidth = 0; // 주위 테두리 넓이 0으로 설정
  324. obj_chart.Aspect.View3D = false; // 2d 로 표현하기
  325. obj_chart.Zoom.Enable = false; // zoom 사용하지 않기 (마우스 하단으로 드래그 zoomin, 마우스 상단으로 드래그 zoomout)
  326. obj_chart.Scroll.Enable = false; // scroll 사용하지 않기
  327. obj_chart.Legend.Visible = true; // 그래프 참조 박스 띄우지 않기(범례) 우측상단
  328. obj_chart.Legend.CustomPosition = true;
  329. obj_chart.Legend.Left = 10;
  330. obj_chart.Legend.Top = 0;
  331. obj_chart.Environment.MouseWheelScroll = true; // Graph 마우스 휠 사용 여부
  332. obj_chart.Axis.Bottom.Labels.Font.Size = 8; //하단축 Label 폰트 사이즈 조절
  333. obj_chart.Axis.Bottom.Labels.Font.Color = 0xffffff; //하단축 Label 폰트 사이즈 조절
  334. obj_chart.Axis.Left.TicksInner.Visible = true; //하단축 눈금 안쪽 표시 설정
  335. obj_chart.Axis.Bottom.TicksInner.Visible = true; //하단축 눈금 안쪽 표시 설정
  336. obj_chart.Axis.Visible = true;
  337. obj_chart.Axis.Left.Automatic = false; //하단축 자동 설정(기본값)
  338. obj_chart.Axis.Left.Labels.Visible = true; //하단축 Label 설정
  339. obj_chart.Axis.Left.Labels.Multiline = true; //하단축 Label 2줄 설정
  340. obj_chart.Axis.Left.Labels.Font.Size = 1; //하단축 Label 폰트 사이즈 조절
  341. obj_chart.Axis.Left.Minimum = -1;
  342. obj_chart.Axis.Left.Maximum = 16;
  343. obj_chart.Axis.Left.Increment = 2; //하단축 증가값 설정
  344. obj_chart.Axis.Left.MinorTickCount = 0; //하단축 눈금 갯수 설정
  345. obj_chart.Axis.Left.TicksInner.Visible = true; //하단축 눈금 안쪽 표시 설정
  346. obj_chart.Axis.Bottom.Automatic = false; //하단축 자동 설정(기본값)
  347. obj_chart.Axis.Bottom.Labels.Visible = true; //하단축 Label 설정
  348. obj_chart.Axis.Bottom.Labels.Multiline = true; //하단축 Label 2줄 설정
  349. obj_chart.Axis.Bottom.Labels.Font.Size = 1; //하단축 Label 폰트 사이즈 조절
  350. obj_chart.Axis.Bottom.Minimum = 0;
  351. obj_chart.Axis.Bottom.Maximum = 10;
  352. obj_chart.Axis.Bottom.Increment = 1; //하단축 증가값 설정
  353. obj_chart.Axis.Bottom.MinorTickCount = 0; //하단축 눈금 갯수 설정
  354. obj_chart.Axis.Bottom.TicksInner.Visible = true; //하단축 눈금 안쪽 표시 설정
  355. for( var i = 0; i < ds_main_pushlist.rowcount; i++) {
  356. flag = ds_main_pushlist.getColumn(i, "flag");
  357. title = ds_main_pushlist.getColumn(i, "obspartnm");
  358. if( flag != "1" ) {
  359. // Rnd1 = Math.random();
  360. // Rnd2 = Math.random();
  361. // Rnd3 = Math.random();
  362. //cColor = window.rgb( (255 - 1) * Rnd1 + 1, (255 - 1) * Rnd2 + 1 , (255 - 1) * Rnd3 + 1);
  363. Rnd1 = Math.random();
  364. Rnd1 = Math.round((255 - 1) * Rnd1 + 1);
  365. Rnd2 = Math.random();
  366. Rnd2 = Math.round((255 - 1) * Rnd2 + 1);
  367. Rnd3 = Math.random();
  368. Rnd3 = Math.round((255 - 1) * Rnd3 + 1);
  369. cColor = (Rnd1).toString(16) + (Rnd2).toString(16) + (Rnd3).toString(16);
  370. var axis = obj_chart.Axis.AddCustom(false);
  371. obj_chart.Axis.get_Custom(cnt).AxisPen.Color = "#"+cColor;
  372. obj_chart.Axis.get_Custom(cnt).PositionPercent = 0;
  373. if( cnt == 0 ){
  374. obj_chart.Axis.get_Custom(cnt).StartPosition = 0;
  375. obj_chart.Axis.get_Custom(cnt).EndPosition = 100;
  376. }
  377. obj_chart.Axis.get_Custom(cnt).PositionPercent = 1 - (3*(cnt+1));
  378. obj_chart.Axis.get_Custom(cnt).Automatic = false;
  379. obj_chart.Axis.get_Custom(cnt).Maximum = 17;
  380. obj_chart.Axis.get_Custom(cnt).Minimum = 0;
  381. obj_chart.Axis.get_Custom(cnt).Increment = 2;
  382. obj_chart.AddSeries(0);
  383. obj_chart.Series(cnt).Color = "#"+cColor;
  384. obj_chart.Series(cnt).Title = title;
  385. obj_chart.Series(cnt).VerticalAxisCustom = axis; // 혈압
  386. obj_chart.Series(cnt).Marks.Visible = true; //데이터레이블
  387. obj_chart.Series(cnt).asLine.LinePen.Width = 2;
  388. obj_chart.Series(cnt).asLine.Pointer.Visible = true;
  389. obj_chart.Series(cnt).asLine.Pointer.Style = 1;
  390. obj_chart.Series(cnt).asLine.Pointer.VerticalSize = 3;
  391. obj_chart.Series(cnt).asLine.Pointer.HorizontalSize = 3;
  392. var total;
  393. for( var j = 1; j < 14; j++ ) {
  394. total = ds_main_pushlist.getColumn(i, j);
  395. if( total != 0 && !utlf_isNull(total) ) {
  396. obj_chart.Series(cnt).AddXY(j-1 , parseInt(total), total, cColor);
  397. } else {
  398. }
  399. }
  400. cnt++;
  401. }
  402. }
  403. }
  404. /******************************************************************
  405. * Argument :
  406. * Description : button1 event
  407. ******************************************************************/
  408. function group1_button1_onclick(obj:Button, e:ClickEventInfo)
  409. {
  410. var fileName = "욕창 PUSH차트 그래프";
  411. if( utlf_isNull(fileName) ) {
  412. return;
  413. }
  414. obj_chart.Export.asJPEG.SaveToFile(fileName);
  415. }
  416. /******************************************************************
  417. * Argument :
  418. * Description : grd scroll event
  419. ******************************************************************/
  420. function grd_list_onhscroll(obj:Grid, e:ScrollEventInfo)
  421. {
  422. var tempScroll = ds_init_scrollinfo.getColumn(0, "scrollvalue");
  423. obj_chart.Axis.Bottom.Scroll((grd_list.hscrollbar.pos - tempScroll)/99, false);
  424. ds_init_scrollinfo.setColumn(0, "scrollvalue", grd_list.hscrollbar.pos);
  425. }
  426. ]]></Script>
  427. </Form>
  428. </FDL>