SMLLP01200_누적결과조회2.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP00100_WorkList조회.xrw
  4. * 설 명 : WorkList조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.09.17
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <acptddlist>
  20. <cd/>
  21. <nm/>
  22. <testmdlcd/>
  23. </acptddlist>
  24. <testmdllist>
  25. <nm00 chk="" gbn="" cd="" readonly=""/>
  26. <nm01 chk="" gbn="" cd="" readonly=""/>
  27. <nm02 chk="" gbn="" cd="" readonly=""/>
  28. <nm03 chk="" gbn="" cd="" readonly=""/>
  29. <nm04 chk="" gbn="" cd="" readonly=""/>
  30. <nm05 chk="" gbn="" cd="" readonly=""/>
  31. <nm06 chk="" gbn="" cd="" readonly=""/>
  32. <nm07 chk="" gbn="" cd="" readonly=""/>
  33. <nm08 chk="" gbn="" cd="" readonly=""/>
  34. <nm09 chk="" gbn="" cd="" readonly=""/>
  35. <nm10 chk="" gbn="" cd="" readonly=""/>
  36. </testmdllist>
  37. <rsltlist>
  38. <row>
  39. <a/>
  40. <b/>
  41. <c/>
  42. <d/>
  43. <e/>
  44. </row>
  45. <hearder/>
  46. <patinfo>
  47. <pid/>
  48. <hngnm/>
  49. <sex/>
  50. <age/>
  51. <rrgstno1/>
  52. <rrgstno2/>
  53. </patinfo>
  54. </rsltlist>
  55. <rsltlist2>
  56. <row>
  57. <chk/>
  58. <tclsscrnnm/>
  59. </row>
  60. </rsltlist2>
  61. </main>
  62. <send>
  63. <data1/>
  64. <data2/>
  65. </send>
  66. <init>
  67. <LB0103>
  68. <cd/>
  69. <nm/>
  70. </LB0103>
  71. </init>
  72. <hidden>
  73. <ref>
  74. <testgrupseqno/>
  75. <startdd/>
  76. <enddd/>
  77. <pid/>
  78. <refgbn>1</refgbn>
  79. <acptdd/>
  80. <acptdde/>
  81. <testmdllist/>
  82. <tclscdlist>
  83. <tclscdlist/>
  84. <tclsnmlist/>
  85. <tclscdlist2/>
  86. <tclsnmlist2/>
  87. </tclscdlist>
  88. <refflag>2</refflag>
  89. <hngnm/>
  90. <sex/>
  91. <age/>
  92. <rrgstno1/>
  93. <rrgstno2/>
  94. </ref>
  95. <temp>
  96. <rsltlist/>
  97. </temp>
  98. <testmdllist/>
  99. </hidden>
  100. </root>
  101. </instance>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  104. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/tchartHelper.js"/>
  109. <script type="javascript" ev:event="xforms-model-construct-done">
  110. <![CDATA[
  111. // 초기정보 조회
  112. //datagrid2.fixedcellcheckbox(0,1)=true;
  113. fBaseInfoRef("0103|");
  114. //fMakeTestMdlList();
  115. createTChart("object1", 215, 5, 975, 710, case2); //그래프 object 생성
  116. //createTChart8("object1", 215, 5, 975, 710, case2);. //그래프 object 생성
  117. datagrid2.rowHeight(0) = 30;
  118. datagrid3.fixedcellcheckbox(0,1)=true;
  119. datagrid3.removeRow();
  120. //datagrid2.removeRow();
  121. /*model.setValue("/root/hidden/ref/pid", "10646383");
  122. model.setValue("/root/hidden/ref/sex", "A");
  123. model.setValue("/root/hidden/ref/age", "37");
  124. model.setValue("/root/hidden/ref/hngnm", "개똥아");
  125. model.setValue("/root/hidden/ref/rrgstno1", "800111");
  126. model.setValue("/root/hidden/ref/rrgstno2", "2632542");*/
  127. if(model.getvalue("/root/hidden/ref/pid") == "" ){
  128. model.setValue("/root/hidden/ref/startdd", getCurrentDate());
  129. model.setValue("/root/hidden/ref/enddd", getCurrentDate());
  130. model.refresh();
  131. }
  132. else{
  133. model.refresh();
  134. if(model.getvalue("/root/hidden/ref/refgbn") == "1"){
  135. model.toggle("case1");
  136. fGetNResultRef();
  137. }
  138. else{
  139. model.toggle("case2");
  140. button16.selected = true;
  141. fGetNResultRef();
  142. for(i=1;i<datagrid2.rows;i++){
  143. datagrid2.valueMatrix(i, 1) = "true";
  144. }
  145. fDrawGraph();
  146. }
  147. }
  148. //model.setValue("/root/hidden/ref/testgrupseqno", "00");
  149. ]]>
  150. </script>
  151. <!-- 시행부서 조회-->
  152. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  153. <submission id="TRLZZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/LB0103"/>
  154. <submission id="TRLLP01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/temp/rsltlist"/>
  155. </model>
  156. <script type="javascript">
  157. <![CDATA[
  158. function fSetInit(){
  159. //fMakeTestMdlList();
  160. model.resetInstanceNode("/root/main/acptddlist");
  161. model.removeNodeset("/root/main/rsltlist/row");
  162. model.removeNodeset("/root/main/rsltlist2/row");
  163. model.refresh();
  164. }
  165. function fMakeTestMdlList(){
  166. submit("TRLLP01002");
  167. datagrid1.rowHidden(0) = true;
  168. if(model.getvalue("/root/main/testmdllist/maxcol") !=""){
  169. var maxcol = parseInt(model.getvalue("/root/main/testmdllist/maxcol")) + 1
  170. for(i=maxcol;i<datagrid1.cols;i++){
  171. datagrid1.colHidden(i) = true;
  172. }
  173. }
  174. for (var r=1; r<datagrid1.rows; r++) {
  175. for (var c=0; c<datagrid1.cols; c++) {
  176. var vCol = c.toString().getLeftPad(2,0);
  177. var imgYN = model.getValue("/root/main/testmdllist["+r+"]/nm" + vCol+"/@img");
  178. if(imgYN == "Y"){
  179. datagrid1.cellstyle("background-image", r, c) = "../../../lis/commonweb/images/chkBOOLG0.gif";
  180. datagrid1.cellstyle("background-position",r, c) = "left";
  181. datagrid1.cellstyle("background-color" , r,c) = "#EEFFFF";
  182. datagrid1.cellstyle("padding-left", r, c) = 15;
  183. }
  184. else{
  185. model.setValue("/root/main/testmdllist["+r+"]/nm" + vCol + "/@readonly", "true");
  186. datagrid1.cellStyle("background-color",r,c,r,c) = "#eaeaea";
  187. }
  188. if(c == 0){
  189. //datagrid1.cellStyle("background-color",r,c,r,c) = "#b9e5fb";
  190. }
  191. }
  192. }
  193. }
  194. function fTestLRGList_Click(){
  195. var row = datagrid1.row;
  196. for(i=0; i<datagrid1.cols; i++){
  197. fTestMdlList_Click(row , i);
  198. }
  199. }
  200. function fTestMdlList_Click(row, col) {
  201. var curRow = row;
  202. var curCol = col;
  203. var vCol = curCol.toString().getLeftPad(2,0);
  204. var chk = model.getValue("/root/main/testmdllist["+curRow+"]/nm" + vCol + "/@chk");
  205. var vSlipcd = model.getValue("/root/main/testmdllist["+curRow+"]/nm" + vCol + "/@cd");
  206. var vReadonly = model.getValue("/root/main/testmdllist["+curRow+"]/nm" + vCol + "/@readonly");
  207. var vSelSlipcd = model.getvalue("/root/hidden/testmdllist");
  208. if (vReadonly != "true") {
  209. if (chk == "1") {
  210. datagrid1.cellstyle("background-image", curRow, curCol) = "../../../lis/commonweb/images/chkBOOLG0.gif";
  211. datagrid1.cellstyle("background-position",curRow, curCol) = "left";
  212. datagrid1.cellstyle("padding-left", curRow, curCol) = 15;
  213. model.setValue("/root/main/testmdllist["+curRow+"]/nm" + vCol + "/@chk", "0");
  214. datagrid1.cellStyle("background-color",curRow,curCol,curRow,curCol) = "#EEFFFF";
  215. //var color = new Array(3);
  216. //color = fCOMLIS_getBackColor("WHITE");
  217. //TFGridRowColor("grdSlipList", curRow, curCol, curRow, curCol, 1, color[0], color[1], color[2]);
  218. if (vSelSlipcd.indexOf("'" + vSlipcd.getTrim() + "'" + ",") >= 0) {
  219. vSelSlipcd = vSelSlipcd.replace("'" +vSlipcd.getTrim() + "'"+ ",", "");
  220. }
  221. } else {
  222. datagrid1.cellstyle("background-image", curRow, curCol) = "../../../lis/commonweb/images/chkBOOLG1.gif";
  223. datagrid1.cellstyle("background-position",curRow, curCol) = "left";
  224. datagrid1.cellStyle("background-color",curRow,curCol,curRow,curCol) = "#ffe79d";
  225. datagrid1.cellstyle("padding-left", curRow, curCol) = 15;
  226. model.setValue("/root/main/testmdllist["+curRow+"]/nm" + vCol + "/@chk", "1");
  227. //TFGridRowColor("grdSlipList", curRow, curCol, curRow, curCol, 1, 221, 234, 234);
  228. if (vSelSlipcd.indexOf(vSlipcd.getTrim() + ",") <= 0) {
  229. vSelSlipcd = vSelSlipcd +"'" +vSlipcd.getTrim()+"'" + "," ;
  230. }
  231. }
  232. model.setValue("/root/hidden/testmdllist", vSelSlipcd);
  233. }
  234. }
  235. function fGetACPTDD() {
  236. //fSetInit();
  237. var vText = model.getValue("/root/hidden/ref/pid");
  238. if(vText == "" ){
  239. messageBox("등록번호를","C001","") ;
  240. return;
  241. }
  242. model.copyNode("/root/send/data1" , "/root/hidden/ref");
  243. submit("TRLLP01001",false);
  244. var mRow = getNodesetCount("/root/main/acptddlist");
  245. if(mRow > 0){
  246. model.setvalue("/root/hidden/ref/startdd" ,model.getvalue("/root/main/acptddlist["+mRow+"]/cd") );
  247. model.setvalue("/root/hidden/ref/enddd" ,model.getvalue("/root/main/acptddlist/cd") );
  248. fGetTestMDLRef();
  249. }
  250. else{
  251. model.setValue("/root/hidden/ref/startdd", getCurrentDate());
  252. model.setValue("/root/hidden/ref/enddd", getCurrentDate());
  253. messageBox("결과가 ","I004","") ;
  254. }
  255. model.refresh();
  256. /*var maxRow = getNodesetCount("/root/main/acptddlist");
  257. model.setValue("/root/hidden/ref/acptdd", model.getValue("/root/main/acptddlist[" + maxRow + "]/cd"));
  258. model.setValue("/root/hidden/ref/startdd", model.getValue("/root/main/acptddlist[" + maxRow + "]/cd"));
  259. model.setValue("/root/hidden/ref/acptdde", model.getValue("/root/MainData/TKDDList/tkdde/cd"));
  260. model.setValue("/root/hidden/ref/enddd", model.getValue("/root/MainData/TKDDList/tkdde/cd"));*/
  261. }
  262. function fGetTestMDLRef(){
  263. var vTestmdlcdStr = "";
  264. var maxr = getNodesetCount("/root/main/acptddlist");
  265. for(var j=1; j<=maxr; j++){
  266. if(model.getValue("/root/main/acptddlist["+j+"]/cd") >= model.getValue("/root/hidden/ref/startdd")){
  267. //alert("j= " + model.getValue("/root/MainData/TKDDList/tkdd["+j+"]/cd"));
  268. var vSelAcptDD = model.getValue("/root/main/acptddlist["+j+"]/cd");
  269. vTestmdlcdStr = vTestmdlcdStr + model.getValue("/root/main/acptddlist["+j+"]/testmdlcd");
  270. }
  271. }
  272. var vMaxRow = datagrid1.rows- 1
  273. var vMaxCol = model.getvalue("/root/main/testmdllist/maxcol");
  274. for (var r=1; r<=vMaxRow; r++) {
  275. for (var c=1; c<=vMaxCol; c++) {
  276. var vCol =c.toString().getLeftPad(2,0);
  277. var vTestmdlcd = model.getValue("/root/main/testmdllist[" + r + "]/nm" + vCol + "/@cd");
  278. if(vTestmdlcd != "") {
  279. if (vTestmdlcdStr.indexOf(vTestmdlcd.getTrim() + ",") < 0) {
  280. model.setValue("/root/main/testmdllist[" + r + "]/nm" + vCol + "/@readonly", "true");
  281. model.setValue("/root/main/testmdllist[" + r + "]/nm" + vCol + "/@chk", "0");
  282. datagrid1.cellstyle("background-image", r, c) = "../../../lis/commonweb/images/chkBOOLG-.gif";
  283. datagrid1.cellstyle("background-position",r, c) = "left";
  284. //datagrid1.cellstyle("background-color" , r,c) = "#EEFFFF";
  285. datagrid1.cellstyle("background-color" , r,c) = "#FFFFFA";
  286. datagrid1.cellstyle("padding-left", r, c) = 15;
  287. //var color = new Array(3);
  288. //color = fCOMLIS_getBackColor("GRAY");
  289. //TFGridRowColor("grdSlipList", r, c, r, c, 1, color[0], color[1], color[2]);
  290. } else {
  291. model.setValue("/root/main/testmdllist[" + r + "]/nm" + vCol + "/@readonly", "false");
  292. model.setValue("/root/main/testmdllist[" + r + "]/nm" + vCol + "/@chk", "0");
  293. datagrid1.cellstyle("background-image", r, c) = "../../../lis/commonweb/images/chkBOOLG0.gif";
  294. datagrid1.cellstyle("background-position",r, c) = "left";
  295. datagrid1.cellstyle("background-color" , r,c) = "#EEFFFF";
  296. datagrid1.cellstyle("padding-left", r, c) = 15;
  297. //var color = new Array(3);
  298. //color = fCOMLIS_getBackColor("WHITE");
  299. //TFGridRowColor("grdSlipList", r, c, r, c, 1, color[0], color[1], color[2]);
  300. }
  301. }
  302. }
  303. model.setValue("/root/hidden/testmdllist", "");
  304. }
  305. }
  306. function fKeyUP(){
  307. if(event.keyCode == "13"){
  308. model.setvalue("/root/hidden/ref/pid", ipt_PID.currentText);
  309. model.refresh();
  310. //fGetACPTDD();
  311. fGetNResultRef();
  312. ipt_PID.selBegin = 0;
  313. ipt_PID.selEnd = ipt_PID.currentText.length;
  314. }
  315. }
  316. function fGetNResultRef(){
  317. var vText = model.getValue("/root/hidden/ref/pid");
  318. if(vText == "" ){
  319. messageBox("등록번호를","C001","") ;
  320. return;
  321. }
  322. if(model.getvalue("/root/hidden/ref/tclscdlist/tclscdlist") == "" ){
  323. messageBox("검사항목을","C001","") ;
  324. return;
  325. }
  326. /*var vText1 = model.getvalue("/root/hidden/testmdllist");
  327. var vText2 = model.getvalue("/root/hidden/ref/testgrupseqno");
  328. if(vText1 == "" && vText2==""){
  329. messageBox("검사중분류를 ","C002","") ;
  330. return;
  331. }*/
  332. var cols = datagrid2.cols-datagrid2.fixedCols;
  333. var rows = datagrid2.rows-datagrid2.fixedRows;
  334. //alert(cols)
  335. for( var i = 0; i < cols; i++ ) {
  336. datagrid2.removeColumn(false);
  337. }
  338. for( var i = 0; i < rows; i++ ) {
  339. datagrid2.removeRow(false);
  340. }
  341. model.removeNodeset("/root/main/rsltlist");
  342. model.makeNode("/root/main/rsltlist/row");
  343. model.refresh();
  344. model.copyNode("/root/send/data1" , "/root/hidden/ref");
  345. model.copyNode("/root/send/data2" , "/root/hidden/ref/tclscdlist");
  346. submit("TRLLP01201" , false);
  347. var gridCaption = model.getValue("/root/hidden/temp/rsltlist/header/caption");
  348. if(gridCaption == "") return;
  349. //ref 정보
  350. var gridColRef = model.getValue("/root/hidden/temp/rsltlist/header/colref");
  351. var gridColRefArray = gridColRef.split("^");
  352. var gridColType = model.getValue("/root/hidden/temp/rsltlist/header/type");
  353. var gridColTypeArray = gridColType.split("^");
  354. for( var i = 0; i < gridColRefArray.length; i++ ) {
  355. datagrid2.addColumn("ref:" + gridColRefArray[i] + "; type:"+gridColTypeArray[i]+"; ", false);
  356. }
  357. datagrid2.colWidth(1) = 22;
  358. datagrid2.colWidth(2) = 150;
  359. datagrid2.colWidth(3) = 100;
  360. datagrid2.colWidth(4) = 80;
  361. for( i = 5; i < datagrid2.cols; i++ ) {
  362. datagrid2.colWidth(i) = 70;
  363. }
  364. datagrid2.caption = gridCaption;
  365. var node = instance1.selectSingleNode("/root/main");
  366. node.replaceChild(instance1.root.hidden.temp.rsltlist, instance1.root.main.rsltlist);
  367. datagrid2.fixedcellcheckbox(0,1)=true;
  368. datagrid2.rebuild();
  369. fReMake();
  370. model.refresh();
  371. }
  372. function fReMake(){
  373. xx = 0;
  374. //alert(model.getvalue("/root/main/rsltlist/row["+9+"]/judg0"))
  375. for(i=1;i<datagrid2.rows;i++){
  376. for(j=5;j<datagrid2.cols;j++){
  377. var vJudg = model.getvalue("/root/main/rsltlist/row["+i+"]/judg" + xx);
  378. if(vJudg == "H"){
  379. datagrid2.cellStyle("background-color",i,j,i,j) = "#f7a08b";
  380. }
  381. else if(vJudg == "L"){
  382. datagrid2.cellStyle("background-color",i,j,i,j) = "#b9e5fb";
  383. }
  384. xx ++;
  385. }
  386. xx = 0
  387. }
  388. }
  389. function fDrawGraph(){
  390. model.copyNode("/root/main/rsltlist2" , "/root/main/rsltlist");
  391. model.refresh();
  392. drawLine999(object1, datagrid2, 2, "누적결과추이", true);
  393. }
  394. function drawLine999(tChartObj, gridObj, row, title, refresh) {
  395. // TChart 초기화
  396. if( refresh ) {
  397. tChartObj.RemoveAllSeries();
  398. tChartObj.Tools.clear();
  399. }
  400. if( title != null || title == "" ) {
  401. tChartObj.Header.Text(0) = title; // Title 설정
  402. }
  403. tChartObj.Aspect.View3D = 0; // 모양 설정 :: 0 = 2D | 1 = 3D
  404. tChartObj.Legend.CheckBoxes = true;
  405. tChartObj.Legend.Alignment = 0; // Legend 위치 설정 :: 0 = left | 1 = right | 2 = top| 3 = bottom
  406. var Rnd1, Rnd2, Rnd3;
  407. var cColor;
  408. var i;
  409. var x, y;
  410. //var trgRow = row;
  411. for(j = 1;j<gridObj.rows;j++){
  412. if(gridObj.valueMatrix(j, 1) == "true"){
  413. tChartObj.AddSeries(0); // TChart Type 설정 :: 0 = Line | 1 = Bar ..
  414. var seriesIndex =tChartObj.SeriesCount - 1;
  415. tChartObj.Series(seriesIndex).asLine.Pointer.Visible = true;
  416. tChartObj.Series(seriesIndex).asLine.Pointer.Style = j; //PointStyle 설정 :: 0 - 8
  417. tChartObj.Series(seriesIndex).Title = datagrid2.valueMatrix(j, 2);
  418. //tChartObj.Series(seriesIndex).Marks.Visible = true;
  419. //tChartObj.Series(seriesIndex).Marks.Style = 0;
  420. tChartObj.Axis.Bottom.Labels.Angle = 270;
  421. //tChartObj.Series(cline - 2).Marks.Style = 0;
  422. Rnd1 = Math.random();
  423. Rnd2 = Math.random();
  424. Rnd3 = Math.random();
  425. cColor = window.rgb( (255 - 1) * Rnd1 + 1, (255 - 1) * Rnd2 + 1 , (255 - 1) * Rnd3 + 1);
  426. xx= 0;
  427. for( i = 5; i < gridObj.cols; i++ ){
  428. x = model.getvalue("/root/main/rsltlist/row["+j+"]/acptdt" + xx);
  429. //x = "111"
  430. y = model.getvalue("/root/main/rsltlist/row["+j+"]/rsltORD" + xx);
  431. if(y != "" && !isNaN(y)){
  432. x = x.substring(0,4) + "-" + x.substring(4,6) + "-" +x.substring(6,8) + " " + x.substring(8,10) + ":" + x.substring(10,12);
  433. tChartObj.Series(seriesIndex).Add (y, x, tChartObj.Series(seriesIndex).Color);
  434. tChartObj.Series(seriesIndex).LegendItemColor(cColor);
  435. }
  436. xx ++;
  437. }
  438. }
  439. }
  440. }
  441. function fGraphGrdClick(){
  442. var col = datagrid3.col;
  443. var row = datagrid3.row;
  444. if(col == 1){
  445. if(model.getvalue("/root/main/rsltlist2/row["+row+"]/chk") == "true"){
  446. datagrid2.valueMatrix(row , 1) = "true";
  447. }
  448. else {
  449. datagrid2.valueMatrix(row , 1) = "false";
  450. }
  451. drawLine999(object1, datagrid2, 2, "누적결과추이", true);
  452. }
  453. }
  454. function fSetInit(){
  455. //fMakeTestMdlList();
  456. var cols = datagrid2.cols-datagrid2.fixedCols;
  457. var rows = datagrid2.rows-datagrid2.fixedRows;
  458. //alert(cols)
  459. for( var i = 0; i < cols; i++ ) {
  460. datagrid2.removeColumn(false);
  461. }
  462. for( var i = 0; i < rows; i++ ) {
  463. datagrid2.removeRow(false);
  464. }
  465. model.removeNodeset("/root/main/rsltlist");
  466. model.makeNode("/root/main/rsltlist/row");
  467. model.refresh();
  468. }
  469. ]]>
  470. </script>
  471. </xhtml:head>
  472. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  473. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  474. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">누적결과조회</caption>
  475. </group>
  476. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  477. <switch id="switch1" style="left:0px; top:20px; width:1195px; height:720px; ">
  478. <case id="case1">
  479. <datagrid id="datagrid2" nodeset="/root/main/rsltlist/row" backcoloralternate="transparent" caption="검사항목" colsep="^" colwidth="100" dataheight="25" ellipsis="true" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" selectionmode="free" style="left:0px; top:5px; width:1190px; height:710px; ">
  480. <col ref="chk"/>
  481. </datagrid>
  482. <line id="line2" class="line_1" style="x1:0px; y1:1px; x2:1190px; y2:1px; "/>
  483. </case>
  484. <case id="case2" selected="true">
  485. <datagrid id="datagrid3" nodeset="/root/main/rsltlist2/row" backcoloralternate="transparent" caption="^검사항목" colsep="^" colwidth="22, 150" dataheight="25" ellipsis="true" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:5px; width:210px; height:710px; ">
  486. <col ref="chk" type="checkbox"/>
  487. <col ref="tclsscrnnm"/>
  488. <script type="javascript" ev:event="onclick">
  489. <![CDATA[
  490. if(datagrid3.isCell(event.target) && datagrid3.row >= datagrid3.fixedRows ){
  491. fGraphGrdClick();
  492. }
  493. ]]>
  494. </script>
  495. </datagrid>
  496. <line id="line1" class="line_1" style="x1:0px; y1:1px; x2:1190px; y2:1px; "/>
  497. <!--<object id="object1" clsid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" DragCursor="-12" style="left:215px; top:5px; width:975px; height:710px; "/>-->
  498. </case>
  499. </switch>
  500. <group id="group2" visibility="hidden" style="left:0px; top:155px; width:1195px; height:45px; vertical-align:top; ">
  501. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; "/>
  502. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">등록번호 :</caption>
  503. <input id="input3" ref="/root/hidden/ref/startdd" class="input_default" inputtype="date" rclass="input_search" style="left:335px; top:10px; width:95px; height:19px; "/>
  504. <line id="line11" class="line_4" style="x1:1125px; y1:10px; x2:1125px; y2:32px; "/>
  505. <caption id="caption3" class="search_name" style="left:580px; top:10px; width:115px; height:17px; ">검사항목 :</caption>
  506. <caption id="caption5" class="search_name" style="left:245px; top:10px; width:92px; height:17px; ">기준일자 :</caption>
  507. <input id="input2" ref="/root/hidden/ref/enddd" class="input_default" inputtype="date" rclass="input_search" style="left:450px; top:10px; width:95px; height:19px; "/>
  508. <caption id="caption7" class="search_no_b" style="left:435px; top:10px; width:15px; height:17px; ">~</caption>
  509. <button id="btn_ref" class="btn1_letter2" style="left:1135px; top:10px; width:56px; height:22px; ">
  510. <caption>조회</caption>
  511. <script type="javascript" ev:event="onclick">
  512. <![CDATA[
  513. fGetNResultRef();
  514. ]]>
  515. </script>
  516. </button>
  517. <input id="ipt_PID" ref="/root/hidden/ref/pid" class="input_search" navindex="1" inputtype="button" style="left:105px; top:10px; width:110px; height:19px; ">
  518. <script type="javascript" ev:event="onbuttonclick">
  519. <![CDATA[
  520. //fGetACPTDD();
  521. ]]>
  522. </script>
  523. <script type="javascript" ev:event="onkeyup">
  524. <![CDATA[
  525. fKeyUP();
  526. ]]>
  527. </script>
  528. </input>
  529. <output id="output1" ref="/root/hidden/ref/tclscdlist/tclsnmlist" class="output_fix" style="left:670px; top:10px; width:430px; height:19px; "/>
  530. <img id="img1" class="icon_search" style="left:1105px; top:9px; width:16px; height:16px; ">
  531. <script type="javascript" ev:event="onclick">
  532. <![CDATA[
  533. modal("SMLLF90400", 200, 300, 200);
  534. fBaseInfoRef2("0103|");
  535. ]]>
  536. </script>
  537. </img>
  538. </group>
  539. <button id="button16" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:75px; top:0px; width:75px; height:22px; ">
  540. <caption>그 래 프</caption>
  541. <script type="javascript" ev:event="onclick">
  542. <![CDATA[
  543. model.setvalue("/root/hidden/ref/refgbn","2");
  544. model.toggle("case2");
  545. fDrawGraph();
  546. ]]>
  547. </script>
  548. </button>
  549. <button id="button6" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:0px; top:0px; width:75px; height:22px; ">
  550. <caption>결 과</caption>
  551. <script type="javascript" ev:event="onclick">
  552. <![CDATA[
  553. model.setvalue("/root/hidden/ref/refgbn","1");
  554. model.toggle("case1");
  555. ]]>
  556. </script>
  557. </button>
  558. <input id="ipt_tclscdlist" visibility="hidden" style="left:225px; top:60px; width:100px; height:19px; "/>
  559. <button id="btn_excel" class="btn2_letter2" style="left:1150px; top:1px; width:42px; height:19px; ">
  560. <caption>엑셀</caption>
  561. <script type="javascript" ev:event="DOMActivate">
  562. <![CDATA[
  563. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  564. if (fileName != "")
  565. {
  566. datagrid2.saveExcel(fileName);
  567. }
  568. ]]>
  569. </script>
  570. </button>
  571. </group>
  572. <group id="group4" visibility="hidden" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  573. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  574. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  575. <caption>초기화</caption>
  576. <script type="javascript" ev:event="onclick">
  577. <![CDATA[
  578. fSetInit();
  579. ]]>
  580. </script>
  581. </button>
  582. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  583. <caption>출력</caption>
  584. </button>
  585. </group>
  586. <group id="grp_patinfo" visibility="visible" style="left:210px; top:25px; width:645px; height:35px; ">
  587. <line id="lin_6" class="line_1" style="x1:0px; y1:1px; x2:643px; y2:1px; "/>
  588. <output id="out_pid" ref="/root/main/rsltlist/patinfo/pid" class="output_fix" style="left:75px; top:9px; width:90px; height:19px; "/>
  589. <caption id="cpt_ patnm" class="cell_1" style="left:167px; top:6px; width:70px; height:23px; text-align:center; vertical-align:middle; ">성 명</caption>
  590. <output id="out_sex" ref="/root/main/rsltlist/patinfo/sex" class="output_fix" navindex="3" style="left:417px; top:9px; width:40px; height:19px; "/>
  591. <caption id="cpt_pid" class="cell_1" style="left:2px; top:6px; width:70px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
  592. <output id="opt_patnm" ref="/root/main/rsltlist/patinfo/hngnm" class="output_fix" style="left:241px; top:9px; width:100px; height:19px; "/>
  593. <caption id="cpt_sexage" class="cell_1" style="left:344px; top:6px; width:70px; height:23px; text-align:center; vertical-align:middle; ">성별/나이</caption>
  594. <output id="opt_age" ref="/root/main/rsltlist/patinfo/age" class="output_fix" navindex="3" style="left:458px; top:9px; width:40px; height:19px; "/>
  595. <line id="lin_7" class="line_2" style="x1:1px; y1:30px; x2:643; y2:30px; "/>
  596. <output id="output2" ref="/root/main/rsltlist/patinfo/rrgstno1" class="output_fix" navindex="3" style="left:499px; top:9px; width:70px; height:19px; "/>
  597. <output id="output3" ref="/root/main/rsltlist/patinfo/rrgstno2" class="output_fix" navindex="3" style="left:570px; top:9px; width:70px; height:19px; "/>
  598. </group>
  599. </xhtml:body>
  600. </xhtml:html>