123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLLR90700_DIFF입력.xrw
- * 설 명 : DIFF입력
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.07.06
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>DiffCount Result</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patInfo>
- <pid/>
- <hngnm/>
- <patsexage/>
- <bcno/>
- <testcd/>
- </patInfo>
- <testlist>
- <tclsscrnnm/>
- <diffcountkey/>
- <cnt readonly=""/>
- <percent/>
- <testcd/>
- <spccd/>
- <used/>
- <iud/>
- </testlist>
- </main>
- <send>
- <data1/>
- <data2/>
- <codeflag/>
- </send>
- <init>
- </init>
- <hidden>
- <Count>
- <Max/>
- <Total/>
- <BFcount/>
- </Count>
- <isSetKey/>
- <manual/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fBaseInfoRef("8002|");
-
- grd_TestInfoCnts.removeRow();
-
- fInitForm_Click();
-
- model.setValue("/root/hidden/isSetKey", "y");
- fSetKey_Click("Y");
-
- ]]>
- </script>
- <submission id="TRLLR90701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testlist"/>
- <submission id="TXLLR90701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <bind id="bind1" ref="/root/main/testlist/percent" calculate="../cnt div /root/hidden/Count/Total * 100"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fInitForm_Click(){
-
- fGetDiffCountHangMok();
-
- model.setValue("/root/hidden/Count/Max", "100");
- model.setValue("/root/hidden/Count/Total", "0");
- model.setvalue("/root/hidden/Count/BFcount" , "100");
-
- model.setFocus("grd_TestInfoCnts");
- model.refresh();
- }
-
- function fGetDiffCountHangMok(){
-
- model.copyNode("/root/send/data1" , "/root/main/patInfo");
-
- submit("TRLLR90701");
- fRefreshKeyPad();
- }
-
- function fRefreshKeyPad() {
-
- model.resetInstanceNode("/root/main/KeyPad");
- var colRef_diffcountkey = grd_TestInfoCnts.colRef("diffcountkey");
- var colRef_cnt = grd_TestInfoCnts.colRef("cnt");
-
- for (var vRow = 1; vRow < grd_TestInfoCnts.rows; vRow++) {
- var key = model.getValue("/root/main/testlist[" + vRow +"]/diffcounttkey");
- var tnm = "";
-
- var sTestcd = model.getvalue("/root/main/testlist[" + vRow +"]/testcd");
- var abTF = false;
-
- for(xx=1;xx<=getNodesetCount("/root/main/patInfo/testinfo/getTestInfoCnts");xx++){
- var cd = model.getvalue("/root/main/patInfo/testinfo/getTestInfoCnts["+xx+"]/testcd");
-
- if(cd == sTestcd){
- abTF = true;
-
- break;
- }
-
- }
-
- if(abTF) model.setvalue("/root/main/testlist[" + vRow +"]/used" , "Y");
-
- if (model.getValue("/root/main/testlist[" + vRow +"]/used") == "N" ) {
- grd_TestInfoCnts.rowStyle(vRow, "data", "background-color") = "#eaeaea";
-
- } else {
- /* 2009.09.18 김성희 수정. 의정부성모병원요청사항으로
- 1. Count 라인의 위치를 가장 오른쪽으로 변경하여 주시고, 글씨 색을 빨간색으로 변경해 주세요.
- 2. 키패드 라인은 삭제하시고 커서를 해당 검사 항목에 놓으면 아래 그럼처럼 해당하는 키패드의 내용이 표시되도록 해주세요.
-
- 서울성모병원, 성가병원, 의정부성모병원, 빈센트병원 협의로..
- 해당 요구사항은 의정부 성모병원만 적용키로 하였음.
- 1. count 위치 변경 없이 글씨색만 빨간색으로
- 2. 키패드 숨기고, 커서를 해당 검사 항목에 놓으면 아래 그럼처럼 해당하는 키패드의 내용이 표시되도록
- */
- //키패드 컬럼 숨김여부가 Y이면
-
- if(model.getValue("/root/init/LB8002[cd='01']/etc01") == "Y"){
-
- grd_TestInfoCnts.colHidden(colRef_diffcountkey) = true; //컬럼숨김
- grd_TestInfoCnts.cellstyle("background-color", vRow, colRef_cnt) = "#f3e1bf"; //배경색변경
- grd_TestInfoCnts.cellstyle("font-weight", vRow, colRef_cnt) = "bold"; //글씨굵게
- grd_TestInfoCnts.cellstyle("color", vRow, colRef_cnt) = "#ff3300"; //글씨색변경
- }else{
- grd_TestInfoCnts.colHidden(colRef_diffcountkey) = false;
-
- grd_TestInfoCnts.cellstyle("background-color", vRow, colRef_cnt) = "#b9e5fb";
- }
-
- grd_TestInfoCnts.cellstyle("background-color", vRow, colRef_diffcountkey) = "#f3e1bf";
-
- grd_TestInfoCnts.cellstyle("color", vRow, colRef_diffcountkey) = "#ff3300";
-
- grd_TestInfoCnts.cellstyle("background-position", vRow, colRef_diffcountkey) = "center";
- grd_TestInfoCnts.cellstyle("font-weight", vRow, colRef_diffcountkey) = "bold";
- }
-
- }
-
- model.refresh();
- }
-
-
- function fGrdOnKeyPress(){
- var isSetKey = model.getValue("/root/hidden/isSetKey"); // 키설정 구분
- var isAdd = "true";
-
- var sysKey = event.keyCode;
-
- //var curkey = String.fromCharCode(event.keyCode);
-
- var key = fKepMap(sysKey, "2");
-
- if (event.ctrlKey == "1") isAdd = "false";
-
- var curCol = grd_TestInfoCnts.col;
- var curRow = grd_TestInfoCnts.row;
-
- //var key = curkey;
-
- if (isSetKey == "n") {
-
- fCalcDiffCount(key, isAdd);
- } else { //키설정
-
- if (key.getTrim() != "" ) {
- var findrow = grd_TestInfoCnts.FindRow(key, 1, grd_TestInfoCnts.colRef("diffcountkey"), false,false);
- if (findrow == curRow) return;
-
- if (findrow > 0) {
-
- var tnm = model.getValue("/root/main/testlist[" + findrow + "]/tclsscrnnm");
- var yn = messageBox("[" + key + "]키는 항목 [" + tnm + "]에 정의된 키 입니다.\n\n선택한 항목에 키를 ","S001","");
-
- if (yn != 6) return; // No
-
- fGrdSetKey("/root/main/testlist", findrow, "");
- }
-
- fGrdSetKey("/root/main/testlist", curRow, key);
- //} else if (curKey == 8) { // Back Space
- // fGrdSetKey("/root/MainData/HangMokList", curRow, ""); // 설정된키 제거
- }
- }
-
- }
-
- function fGrdSetKey(pRef, pRow, pKey) {
-
- model.setValue(pRef + "[" + pRow + "]/diffcountkey", pKey);
- model.setvalue(pRef + "[" + pRow + "]/iud", "U");
- grd_TestInfoCnts.refresh();
- }
-
- function fCalcDiffCount(pKey, pIsAdd) {
-
- var findrow = grd_TestInfoCnts.FindRow(pKey, 1, grd_TestInfoCnts.colRef("diffcountkey"), true, true);
- //alert("pIsAdd : " + pIsAdd + " pKey :" + pKey )
- //alert(findrow)
-
- var nrbcTF = false;
-
- if(model.getvalue("/root/main/testlist[" + findrow + "]/testcd") == "LHR10518"){
- nrbcTF = true;
- }
-
- if (findrow > 0) {
- // 키패드의 항목 찾은경우
- if (pIsAdd == "") pIsAdd = "true";
-
- if (model.getValue("/root/main/testlist[" + findrow + "]/used") == "Y") {
- // Order가 있을때만 Count 증가
- var maxcnt = model.getValue("/root/hidden/Count/Max"); // Maxium Count
- var totalcnt = model.getValue("/root/hidden/Count/Total"); // Total Count
- if (totalcnt == "") totalcnt = "0";
-
- var curcnt = model.getvalue("/root/main/testlist[" + findrow + "]/cnt"); // 해당항목 Count
- if (curcnt == "") curcnt = "0";
- //alert(pIsAdd)
- if (pIsAdd == "false") {
-
- if (parseInt(curcnt) - 1 < 0) {
- //alert( findrow)
- // 최대입력 초과시
-
- //messageBox("Count는 0보다 작을 수 없습니다." ,"E","");
-
- } else {
-
- if(!nrbcTF) totalcnt = (parseInt(totalcnt) - 1).toString();
- curcnt = (parseInt(curcnt) - 1).toString();
-
- model.setValue("/root/hidden/Count/Total", totalcnt);
- model.setValue("/root/main/testlist[" + findrow + "]/cnt", curcnt);
- grd_TestInfoCnts.row= findrow;
- grd_TestInfoCnts.col= grd_TestInfoCnts.colRef("tclsscrnnm");
- }
-
- } else {
- if (parseInt(totalcnt) + 1 > parseInt(maxcnt ) && !nrbcTF) {
- // 최대입력 초과시
- messageBox("Maxium Count를 ","E003","");
-
- } else if(parseInt(totalcnt) + 1 > parseInt(maxcnt ) && nrbcTF) {
- } else {
-
- if(!nrbcTF) totalcnt = (parseInt(totalcnt) + 1).toString();
-
- curcnt = (parseInt(curcnt) + 1).toString();
-
- model.setValue("/root/hidden/Count/Total", totalcnt);
- model.setValue("/root/main/testlist[" + findrow + "]/cnt", curcnt);
- grd_TestInfoCnts.row= findrow;
- grd_TestInfoCnts.col= grd_TestInfoCnts.colRef("tclsscrnnm");
- }
- }
-
- var cnt = model.getvalue("/root/main/testlist[" + findrow + "]/cnt");
- var total = model.getvalue("/root/hidden/Count/Total");
-
- model.recalculate(); // 재 계산
-
- //if(getNodesetCount("/root/main/testlist[testcd = 'LHR10518']/percent") > 0)
- //model.setValue("/root/main/testlist[testcd = 'LHR10518']/percent","0");
-
- //model.gridRefresh("grdHML");
- model.refresh();
- }
- }
- }
-
- function fOnEndEdit() {
- var row = grd_TestInfoCnts.row;
- var nrbcTF = false;
-
- if(model.getvalue("/root/main/testlist[" + row + "]/testcd") == "LHR10518"){ // NRBC인 경우 total에 포함 안하게 하기 위해.
- nrbcTF = true;
- }
-
- if (row > 0) {
- if (model.getValue("/root/main/testlist[" + row + "]/used") == "Y") { // Order가 있을때만 수기입력 가능
- var nrbccount = model.getValue("/root/main/testlist[testcd = 'LHR10518']/cnt"); //NRBC COUNT
-
- if(nrbccount != "") {
- model.setValue("/root/hidden/Count/Total", model.getXPathValue("sum(/root/main/testlist/cnt)") - parseInt(nrbccount)); //총합 - NRBC count
- } else {
- model.setValue("/root/hidden/Count/Total", model.getXPathValue("sum(/root/main/testlist/cnt)"));
- }
-
- var maxcnt = model.getValue("/root/hidden/Count/Max"); // Maxium Count
- var totalcnt = model.getValue("/root/hidden/Count/Total"); // Total Count
-
- if (totalcnt == "") totalcnt = "0";
-
- var countsum = model.getXPathValue("sum(/root/main/testlist/cnt)"); //전체 Count
- var percentsum = model.getXPathValue("sum(/root/main/testlist/percent)"); //전체 percent
-
- if (countsum == "") countsum = "0";
- if (percentsum == "") percentsum = "0";
-
- if (parseInt(totalcnt) > parseInt(maxcnt ) && !nrbcTF) { //total이 maxium 넘을때. (NRBC 외 다른 것들은 입력 불가)
- // 최대입력 초과시 (NRBC는 count에 들어가지 않는다.)
- messageBox("Maxium Count를 ","E003","");
-
- totalcnt = totalcnt - parseInt(model.getValue("/root/main/testlist[" + row + "]/cnt")); // Total - 현재 입력한 count
-
- model.setValue("/root/hidden/Count/Total", totalcnt);
- model.setValue("/root/main/testlist[" + row + "]/cnt", "0"); //현재 입력한 count 초기화.
- }
-
- var cnt = model.getValue("/root/main/testlist[" + row + "]/cnt");
- var total = model.getValue("/root/hidden/Count/Total");
-
- //model.recalculate(); // 재 계산
-
- //if(getNodesetCount("/root/main/testlist[testcd = 'LHR10518']/percent") > 0) //NRBC의 percent는 항상 0
- //model.setValue("/root/main/testlist[testcd = 'LHR10518']/percent","0");
-
- model.recalculate(); // 재 계산
-
- //model.gridRefresh("grdHML");
- model.refresh();
- }
- }
- }
-
- /**
- * 키설정버튼 클릭
- *
- */
- function fSetKey_Click(pInit) {
- var isSetKey = model.getvalue("/root/hidden/isSetKey");
-
- if (isSetKey == "y") {
- // Diff Count 입력상태로 변경
-
- var findrow = grd_TestInfoCnts.FindRow("U", 1, grd_TestInfoCnts.colRef("iud"), false, false);
- //alert(findrow);
- if (pInit != "Y" && findrow > 0 ) {
-
- var yn = messageBox("변경된 키패드 설정을 ","S001","");
- if (yn == 6) {
- grd_TestInfoCnts.clearStatus();
- for(i=1 ; i <grd_TestInfoCnts.rows ; i++){
- if(model.getvalue("/root/main/testlist["+i+"]/iud") == "U"){
- grd_TestInfoCnts.addStatus(i, "update");
-
- }
- }
-
-
- model.setValue("/root/send/data2" , grd_TestInfoCnts.getUpdateData());
-
- submit("TXLLR90701");
-
- fRefreshKeyPad();
-
- } else {
- // 다시조회
- fInitForm_Click()
-
- }
- }
-
- // 키설정 상태
- model.setValue("/root/hidden/isSetKey", "n");
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("cnt")) = false;
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("percent")) = false;
-
- //키패드 컬럼 숨김 여부
- if(model.getValue("/root/init/LB8002[cd='01']/etc01") == "Y"){
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("diffcountkey")) = true; //컬럼숨김
- grd_TestInfoCnts.cellstyle("background-color", 1, grd_TestInfoCnts.colRef("cnt"), grd_TestInfoCnts.rows) = "#f3e1bf"; //배경색변경
- grd_TestInfoCnts.cellstyle("font-weight", 1, grd_TestInfoCnts.colRef("cnt"), grd_TestInfoCnts.rows) = "bold"; //글씨굵게
- grd_TestInfoCnts.cellstyle("color", 1, grd_TestInfoCnts.colRef("cnt"), grd_TestInfoCnts.rows) = "#ff3300"; //글씨색변경
- }else{
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("diffcountkey")) = false;
-
- }
-
- grd_TestInfoCnts.colWidth(grd_TestInfoCnts.colRef("diffcountkey")) = 52;
-
- button26.attribute("text") = "키 설정";
-
- } else {
- // Diff Count Key 설정상태로 변경
- model.setValue("/root/hidden/isSetKey", "y");
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("diffcountkey")) = false;
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("cnt")) = true;
- grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("percent")) = true;
- button26.attribute("text") = "설정저장";
- grd_TestInfoCnts.colWidth(grd_TestInfoCnts.colRef("diffcountkey")) = 168;
-
- }
-
- model.refresh();
- }
-
- function fSetDiffCnt() {
- var nrbcTF = false;
-
-
-
- var maxcnt = model.getValue("/root/hidden/Count/Max");
-
- var totalcnt = model.getValue("/root/hidden/Count/Total");
- if(parseInt(maxcnt) > parseInt(totalcnt)) {
- messageBox("Total Count가 Maxium Count보다 작을 수 없습니다. ","E","");
- return;
- }
- var vSendData = "";
- for(x=1;x<grd_TestInfoCnts.rows;x++){
-
-
-
- var tclscd = model.getValue("/root/main/testlist[" + x + "]/testcd");
- var orgrst = model.getValue("/root/main/testlist[" + x+ "]/percent");
- var count = model.getValue("/root/main/testlist[" + x+ "]/cnt");
-
- if (count.getTrim() == "" ) {//|| count.getTrim() == "0" ) {
- vSendData = vSendData + tclscd + "▦▩"; // Count가 0이거나 결과가 없으면 초기화
-
- } else {
- orgrst = fCOMLIS_RstRound(orgrst, "0", "1");
- /*if(model.getvalue("/root/main/testlist[" + x + "]/testcd") == "LHR10518"){
- vSendData = vSendData + tclscd + "▦" + count + "▩";
- }
- else{
- vSendData = vSendData + tclscd + "▦" + orgrst + "▩";
- }*/
- vSendData = vSendData + tclscd + "▦" + orgrst + "▩";
- }
- }
- opener.model.setValue("/root/hidden/DiffGGParm/bufDiffGG", vSendData);
- opener.model.setValue("/root/main/TestInfo/getSpcInfo/testcont", "MANUAL DIFFERENTIAL COUNT RESULT");
- window.opener.javascript.fSoGyeonJeoJang();
- window.close();
- }
-
- /**
- * 정의된 키코드, 키값 리턴
- *
- */
- function fKepMap(pKey, pGbn) {
- var sKeyMap = new Array("A", "B", "C", "D", "E",
- "F", "G", "H", "I", "J",
- "K", "L", "M", "N", "O",
- "P", "Q", "R", "S", "T",
- "U", "V", "W", "X", "Y",
- "Z", "0", "1", "2", "3",
- "4", "5", "6", "7", "8",
- "9", "/", "*", "-", "+",
- "e", ".",
- "0" ,"1" ,"2" ,"3" ,"4" ,"5" ,"6" ,"7" ,"8" ,"9" ,
- "ins" , "hom" , "up" , "del" , "end" , "down");
- var sKeyVal = new Array("65", "66", "67", "68", "69",
- "70", "71", "72", "73", "74",
- "75", "76", "77", "78", "79",
- "80", "81", "82", "83", "84",
- "85", "86", "87", "88", "89",
- "90", "96", "97", "98", "99",
- "100", "101", "102", "103", "104",
- "105", "111", "106", "109", "107",
- "13", "110",
- "48" , "49" ,"50","51" , "52" , "53" , "54" ,"55" ,"56" , "57",
- "45", "36" , "33" , "46" , "35" , "34");
- var vRet = "";
-
- if (pGbn == "1") {
- for (var i = 0; i < sKeyMap.length; i++) {
- if (sKeyMap[i] == pKey) {
- vRet = (i + 1).toString().getLeftPad(2,0);
- break;
- }
- }
-
- } else if (pGbn == "2") {
- for (var i = 0; i < sKeyVal.length; i++) {
- if (sKeyVal[i] == pKey) {
- vRet = sKeyMap[i];
- break;
- }
- }
- }
-
- return vRet;
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="390" pageheight="580" guideline="1,1194;" style="border-color:#000000; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:365px; height:565px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:364px; y2:26px; "/>
- <datagrid id="grd_TestInfoCnts" nodeset="/root/main/testlist" backcoloralternate="transparent" caption="검사항목명^키패드^Count^Percent(%)^testcd^spccd^caption1^iud" colsep="^" colwidth="173, 52, 46, 70, 0, 0, 0, 0" dataheight="23" defaultrows="1" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" selectionmode="free" navindex="1" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:55px; width:364px; height:485px; ">
- <col ref="tclsscrnnm" format="yyyy-mm-dd"/>
- <col ref="diffcountkey"/>
- <col ref="cnt"/>
- <col ref="percent" format="#,###.99"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col/>
- <col ref="iud"/>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(model.getValue("/root/hidden/manual") != "1") { //menual 입력이 아닌 경우
- fGrdOnKeyPress();
- }
- //alert("down --> "+event.keyCode)
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- fOnEndEdit();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- grd_TestInfoCnts.tooltipText( grd_TestInfoCnts.mouseRow, grd_TestInfoCnts.mouseCol ) = model.getValue("/root/main/testlist[" + grd_TestInfoCnts.mouseRow +"]/diffcountkey");
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:5px; top:11px; width:123px; height:14px; ">DiffCount Result</caption>
- <caption id="caption15" class="cell_1" style="left:0px; top:31px; width:108px; height:23px; vertical-align:middle; ">Maxium Count</caption>
- <select1 id="combo3" ref="/root/hidden/Count/Max" class="combo_search" appearance="minimal" style="left:110px; top:33px; width:45px; height:19px; ">
- <choices>
- <item>
- <label>5</label>
- <value>5</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>20</label>
- <value>20</value>
- </item>
- <item>
- <label>25</label>
- <value>25</value>
- </item>
- <item>
- <label>30</label>
- <value>30</value>
- </item>
- <item>
- <label>50</label>
- <value>50</value>
- </item>
- <item>
- <label>70</label>
- <value>70</value>
- </item>
- <item>
- <label>100</label>
- <value>100</value>
- </item>
- <item>
- <label>150</label>
- <value>150</value>
- </item>
- <item>
- <label>200</label>
- <value>200</value>
- </item>
- <item>
- <label>250</label>
- <value>250</value>
- </item>
- <item>
- <label>300</label>
- <value>300</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var maxCnt = model.getvalue("/root/hidden/Count/Max");
- var totalCnt = model.getvalue("/root/hidden/Count/Total");
- var bfmaxlCnt = model.getvalue("/root/hidden/Count/BFcount");
-
- //alert("maxCnt :" + maxCnt + ", totalCnt : " +totalCnt+ ", bfmaxlCnt : " + bfmaxlCnt )
- if(parseInt(maxCnt) < parseInt(totalCnt)){
-
- model.setvalue("/root/hidden/Count/Max" , bfmaxlCnt);
- messageBox(" Maxium Count가 Total Count보다 작을수 없습니다. ","E","");
- model.setFocus("grd_TestInfoCnts");
- model.refresh();
- return;
-
- }
- else{
- model.setvalue("/root/hidden/Count/BFcount" , maxCnt);
- model.setFocus("grd_TestInfoCnts");
- model.refresh();
- }
-
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="cell_1" style="left:160px; top:30px; width:80px; height:24px; vertical-align:middle; ">Total Count</caption>
- <output id="output1" ref="/root/hidden/Count/Total" class="output_fix" style="left:241px; top:33px; width:29px; height:19px; "/>
- <line id="line2" class="line_3" style="x1:0px; y1:55px; x2:364px; y2:55px; "/>
- <select id="checkbox1" ref="/root/hidden/manual" overflow="visible" appearance="full" style="left:270px; top:5px; width:93px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Manual 입력</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInitForm_Click();
-
- if(model.getvalue("/root/hidden/manual") == "1"){
- grd_TestInfoCnts.colType(grd_TestInfoCnts.colRef("cnt")) = "input";
- // grd_TestInfoCnts.colType(grd_TestInfoCnts.colRef("percent")) = "input";
- } else {
- grd_TestInfoCnts.colType(grd_TestInfoCnts.colRef("cnt")) = "";
- // grd_TestInfoCnts.colType(grd_TestInfoCnts.colRef("percent")) = "";
- }
-
- model.refresh();
- ]]>
- </script>
- </select>
- </group>
- <group id="group3" style="left:0px; top:541px; width:365px; height:27px; ">
- <button id="button1" class="btn4_letter2" visibility="visible" style="left:181px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetDiffCnt();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:307px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter3" style="left:238px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInitForm_Click();
- ]]>
- </script>
- </button>
- <caption id="caption2" style="left:0px; top:5px; width:168px; height:20px; ">☞【 Ctrl+키패드 】Count 감소</caption>
- </group>
- <button id="button26" class="btn3_letter4" style="left:284px; top:32px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter5.gif; ">
- <caption>키 설정</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- fSetKey_Click();
-
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //fGrdOnKeydown();
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|