123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>Control Range 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <getlevel>
- <chk/>
- <levlcd/>
- <levlnm/>
- </getlevel>
- <testlist>
- <chk/>
- <testcd/>
- <testnm/>
- </testlist>
- <matrtclslist>
- <testcd/>
- <testnm/>
- <matrcd/>
- <matrnm/>
- <levlcd/>
- <testfromdd/>
- <testtodd/>
- <rsltkind/>
- <refkind/>
- <refflag/>
- <refl/>
- <refls/>
- <refhs/>
- <refh/>
- <refcval/>
- <intrsltfrmt/>
- <rsltunit/>
- <avg/>
- <sdval/>
- <wgmrscop/>
- <judgkind/>
- <rundkind/>
- <graphdispyn/>
- <lotno/>
- <prodcmpy/>
- <proddt/>
- <windt/>
- <validd/>
- <matrifcd/>
- <userdeptflagcd/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <ddosevalue/>
- </matrtclslist>
- </main>
- <init/>
- <hidden>
- <refgbn>1</refgbn>
- <searchtestcd/>
- <testlrg>00</testlrg>
- <testmdl>
- <cd>00</cd>
- </testmdl>
- <refcont/>
- <temp/>
- </hidden>
- <send>
- <codeflag/>
- <refcont/>
- <refgbn/>
- <deptflag/>
- <searchflag/>
- <matrtclslist/>
- <matrfromdd/>
- <matrcd/>
- <levlcd/>
- <matrinfo/>
- <testlrgcd/>
- <testmdlcd/>
- <userdeptcd/>
- <testcd/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <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/dateHelper.js"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/LB0000"/>
- <submission id="TRLQF00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/testlist"/>
- <submission id="TXLQF00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TRLQF00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getlevel"/>
- <submission id="TRLQF00705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/matrtclslist"/>
- <submission id="TXLQF00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //초기화
- function fSetInit(){
-
- model.resetInstanceNode("/root/main/matrinfo");
- model.removeNodeset("/root/main/getlevel");
- grd_levllist.rebuild();
- model.removeNodeset("/root/main/testlist");
- grd_testList.rebuild();
- model.removeNodeset("/root/main/matrtclslist");
- grd_matrTclsList.rebuild();
-
- grd_levllist.fixedcellcheckbox(0, 1) = true;
- grd_levllist.fixedcellischeck(0, 1) = false;
-
- grd_matrTclsList.fixedcellcheckbox(0, grd_matrTclsList.colRef("graphdispyn")) = true;
- grd_matrTclsList.fixedcellischeck(0, grd_matrTclsList.colRef("graphdispyn")) = false;
-
- model.setValue("/root/send/codeflag", "0102|0104|0000|"); // 0102= 중분류 // 0104 대분류 // 0000 userdeptflagcd
- submit("TRLZZ00101", false);
-
- model.makeValue("/root/send/basecdid", model.getValue("/root/init/LB0000/nm"));
- model.setValue("/root/send/codeflag", "0501|"); //체외꺼 레벨만 조회
- submit("TRLZZ00101", false);
-
- fGetLevel(); //물질리스트조회
- fGetTestList(); //검사항목리스트조회
- }
- //엔터키
- function fKeyEvent(){
- if(event.keyCode == "13"){
-
- //검사항목 리스트 조회
- if(event.target == "ipt_searchTestCd"){
- model.setValue("/root/send/refcont", ipt_searchTestCd.currentText);
- fGetTestList();
- }
- }
- }
-
- //조회
- function fGetLevel() {
- model.setValue("/root/send/userdeptcd", model.getValue("/root/init/LB0000/nm"));
- submit("TRLQF00501", false);
- }
-
- //검사항목 리스트 조회
- function fGetTestList(){
-
- //model.setValue("/root/send/refcont" , model.getValue("/root/hidden/searchtestcd")); //입력Text
- model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm")); //사용자 부서코드
-
- submit("TRLQF00702");
- }
-
- //물질별 검사항목 조회
- function fGetMatrTclsList(){
- model.setValue("/root/send/refgbn" , model.getValue("/root/hidden/refgbn")); //전체, 사용가능자료 구분
- model.setValue("/root/send/testcd" , model.getValue("/root/main/testlist[" + grd_testList.row + "]/testcd")); //입력Text
- model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm")); //사용자 부서코드
-
- submit("TRLQF00705");
-
- }
-
- //저장 데이터 확인
- function checkGridUpdate(grid)
- {
- var iData = grid.getUpdateDataXml("insert");
- var uData = grid.getUpdateDataXml("update");
- var dData = grid.getUpdateDataXml("delete");
-
- if (iData=="" && uData=="" && dData=="") return false;
- else return true;
- }
-
- //물질별 검사 정보 저장
- function fExeMatrTclsList(){
- model.setValue("/root/send/matrtclslist" , grd_matrTclsList.getUpdateData());
- model.copyNode("/root/send/matrinfo" , "/root/main/matrinfo");
- model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm"));
-
- for(i = 1; i < grd_matrTclsList.rows; i++){
- if(grd_matrTclsList.rowStatus(i) == 3 || grd_matrTclsList.rowStatus(i) == 1){
- if(model.getValue("/root/main/matrtclslist[" + i + "]/testcd") == ""){
- messageBox("검사 코드는", "I003");
- return;
- }
- if(model.getValue("/root/main/matrtclslist[" + i + "]/matrcd") == ""){
- messageBox("Control 코드는", "I003");
- return;
- }
- if(model.getValue("/root/main/matrtclslist[" + i + "]/matrnm") == ""){
- messageBox("Control 명은", "I003");
- return;
- }
- if(model.getValue("/root/main/matrtclslist[" + i + "]/testfromdd") == ""){
- messageBox("시작일자는", "I003");
- return;
- }
- if(model.getValue("/root/main/matrtclslist[" + i + "]/testtodd") == ""){
- messageBox("종료일자는", "I003");
- return;
- }
- if(model.getValue("/root/main/matrtclslist[" + i + "]/levlcd") == ""){
- messageBox("Standard 코드는", "I003");
- return;
- }
- }
- }
- if ( submit("TXLQF00702") ) {
- //grd_matrTclsList.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- fGetMatrTclsList(); // 물질정보 다시 조회
- }
- }
-
- //검사항목 리스트 클릭시 Row선택하면 체크 선택되게
- function fTestListClick(){
- //if(grd_testList.col != "1"){
- //if(model.getValue("/root/main/testlist[" + grd_testList.row + "]/chk") == "false"){
- for(i = 1; i < grd_testList.rows; i++){
- if(i == grd_testList.row){
- model.setValue("/root/main/testlist[" + i + "]/chk", "true");
- }else{
- model.setValue("/root/main/testlist[" + i + "]/chk", "false");
- }
- }
-
- //}else{
- // model.setValue("/root/main/testlist[" + grd_testList.row + "]/chk", "false");
- //}
- //}
- }
-
- //아래버튼 클릭시 선택된 레벨 항목 복사함
- function fCopyTestList(){ //grd_matrTclsList
-
- var testCnt = model.getXPathValue('count(/root/main/testlist[chk="true"])');
- if(testCnt == 0){
- alert("검사항목을 선택하세요");
- return;
- }else if(testCnt > 1){
- alert("검사항목을 하나만 선택하세요!!");
- return;
- }
-
- var levlCnt = model.getXPathValue('count(/root/main/getlevel[chk="true"])');
- if(levlCnt == 0){
- alert("선택된 Control이 없습니다!!");
- return;
- }
-
- var row = grd_testList.findRow("true", 1, 1, true, true)
- var vLevlCd, vLevlNm;
- var vTestCd = model.getValue("/root/main/testlist[" + row + "]/testcd");
- var vTestNm = model.getValue("/root/main/testlist[" + row + "]/testnm");
- var sDeptFlag = model.getValue("/root/init/LB0000/nm");
-
- for(i = 1; i < grd_levllist.rows; i++){
-
- if(model.getValue("/root/main/getlevel[" + i + "]/chk") == "true"){
- vLevlCd = model.getValue("/root/main/getlevel[" + i + "]/levlcd");
- vLevlNm = model.getValue("/root/main/getlevel[" + i + "]/levlnm");
- if(grd_matrTclsList.findRow(vLevlCd, 1, 5, true, true) == -1){
- grd_matrTclsList.addRow(false);
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testcd" , vTestCd); //검사코드
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testnm" , vTestNm); //검사명
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testfromdd" , getCurrentDate()); //시작일자
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testtodd" , '99991231'); //종료일자
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/levlcd" , vLevlCd);
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/matrcd" , vTestCd); //물질코드는 검사코드로 (강영직 선생님 요구사항)
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/matrnm" , vTestNm + "-" + vLevlNm); //물질명은 검사명-레벨명으로 (강영직 선생님 요구사항)
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/userdeptflagcd" , sDeptFlag);
- }else{
- alert(model.getValue("/root/main/getlevel[" + i + "]/levlcd") + " 항목이 중복되었습니다");
- }
- //model.setValue("/root/main/testlist[" + i + "]/chk", "false");
- }
- }
- model.refresh();
- grd_matrTclsList.bottomRow = grd_matrTclsList.rows;
-
- }
-
- //레벨리스트 더블클릭시 선택 레벨 아래로 복사
- function fSetLevlCopy(){
-
- var testCnt = model.getXPathValue('count(/root/main/testlist[chk="true"])');
- if(testCnt == 0){
- alert("검사항목을 선택하세요");
- return;
- }else if(testCnt > 1){
- alert("검사항목을 하나만 선택하세요!!");
- return;
- }
-
- var row = grd_testList.findRow("true", 1, 1, true, true);
- var sTestCd = model.getValue("/root/main/testlist[" + row + "]/testcd");
- var sTestNm = model.getValue("/root/main/testlist[" + row + "]/testnm");
- var sLevlCd = model.getValue("/root/main/getlevel[" + grd_levllist.row + "]/levlcd");
- var sLevlNm = model.getValue("/root/main/getlevel[" + grd_levllist.row + "]/levlnm");
- var sDeptFlag = model.getValue("/root/init/LB0000/nm");
- var findrow = grd_matrTclsList.findRow(sLevlCd , 1,5 , true,true);
-
- if(findrow >0 ) {
- alert("이미 선택된 검사코드입니다.");
- model.setValue("/root/main/getlevel[" + grd_levllist.row + "]/chk", "false");
- return;
- }
-
- grd_matrTclsList.addRow(false);
-
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/levlcd" , sLevlCd);
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testcd" , sTestCd); //검사코드
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/matrcd" , sTestCd); //물질코드는 검사코드로 (강영직 선생님 요구사항)
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/matrnm" , sTestNm + "-" + sLevlNm); //물질명은 검사명-레벨명으로 (강영직 선생님 요구사항)
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testnm" , sTestNm); //검사명
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testfromdd" , getCurrentDate()); //시작일자
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testtodd" , '99991231'); //종료일자
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/userdeptflagcd" , sDeptFlag);
-
- model.setValue("/root/main/getlevel[" + grd_levllist.row + "]/chk", "false");
-
- grd_matrTclsList.bottomRow = grd_matrTclsList.rows;
- model.refresh();
- }
-
- function fLevlListClick(){
- if(grd_levllist.col != "1"){
- if(model.getValue("/root/main/getlevel[" + grd_levllist.row + "]/chk") != "true"){
- model.setValue("/root/main/getlevel[" + grd_levllist.row + "]/chk", "true");
- }else{
- model.setValue("/root/main/getlevel[" + grd_levllist.row + "]/chk", "false");
- }
- }
- }
-
- //종료
- function fEndMatr() {
- if(grd_matrTclsList.row == -1){
- return;
- }
- var todd = model.getValue("/root/main/matrtclslist["+grd_matrTclsList.row+"]/testtodd");
- if(todd < getCurrentDate()){
- alert("이미 종료된 물질입니다.");
- return;
- }
-
- grd_matrTclsList.rowStatus(grd_matrTclsList.row) = 4;
-
- model.setValue("/root/send/matrtclslist", getGridUpdateData(grd_matrTclsList));
- model.setValue("/root/send/userdeptcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TXLQF00703", false);
-
- fGetMatrTclsList();
- }
-
- //물질변경
- function fChangeMatr(){
- if(grd_matrTclsList.row == -1){
- return;
- }
- copyNodeListType("/root/hidden/temp", "/root/main/matrtclslist["+grd_matrTclsList.row+"]", "replace"); //선택항목 임시노드에 복사
- fEndMatr(); //선택된항목 물질 종료
-
- grd_matrTclsList.addrow();
- //선택했던 물질 정보 복사
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/matrcd" , model.getValue("/root/hidden/temp/matrtclslist/matrcd"));
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/levlcd" , model.getValue("/root/hidden/temp/matrtclslist/levlcd"));
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/matrnm" , model.getValue("/root/hidden/temp/matrtclslist/matrnm"));
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testcd" , model.getValue("/root/hidden/temp/matrtclslist/testcd"));
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testnm" , model.getValue("/root/hidden/temp/matrtclslist/testnm"));
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/userdeptflagcd" , model.getValue("/root/init/LB0000/nm"));
- //초기 정보 설정
-
- var fromdate = getCurrentDate().toDate("YYYYMMDD").getAddDate(1)
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testfromdd", fromdate.getDateFormat("YYYYMMDD")); //새로운 물질 시작일자를 다음날로 변경
- model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testtodd","99991231");
- grd_matrTclsList.bottomRow = grd_matrTclsList.rows;
-
- fExeMatrTclsList();
- }
-
- //Low, High 입력시 평균 및 표준편차 Set
- function fSetRef(){
-
- var vRefL = model.getValue("/root/main/matrtclslist[" + grd_matrTclsList.row + "]/refl");
- var vRefH = model.getValue("/root/main/matrtclslist[" + grd_matrTclsList.row + "]/refh");
- if(vRefL != "" && vRefH != ""){
- if(parseFloat(vRefL) > parseFloat(vRefH)){
- alert("참고치 하한값이 상한값보다 클 수 없습니다.");
- return;
- }
- var vAvg = (parseFloat(vRefL) + parseFloat(vRefH)) / 2;
- var vSD = ((parseFloat(vRefH) - parseFloat(vRefL))) / 4;//윤선희선생님 요청에 의해 변경
- //var vSD = vAvg / 2;
-
- model.setValue("/root/main/matrtclslist[" + grd_matrTclsList.row + "]/avg" , vAvg);
- model.setValue("/root/main/matrtclslist[" + grd_matrTclsList.row + "]/sdval" , vSD);
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:30px; width:1195px; height:745px; font-size:18pt; ">
- <group id="group4" style="left:0px; top:10px; width:1195px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <button id="btn_sea" class="btn1_letter2" visibility="hidden" style="left:560px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //물질리스트조회
- //fGetMatrList();
- ]]>
- </script>
- </button>
- <caption id="caption15" class="search_name" style="left:15px; top:9px; width:86px; height:18px; ">조회구분 :</caption>
- <select1 id="cbo_searchFlag" ref="/root/hidden/refgbn" class="combo_s_essential" appearance="minimal" style="left:103px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>사용가능자료</label>
- <value>1</value>
- </item>
- <item>
- <label>전체자료</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <line id="line2" class="line_4" style="x1:458px; y1:6px; x2:458px; y2:28px; "/>
- <button id="button1" class="btn1_letter2" style="left:471px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestList();
- ]]>
- </script>
- </button>
- <input id="ipt_searchTestCd" ref="/root/hidden/searchtestcd" class="input_s_button" style="left:345px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:252px; top:9px; width:86px; height:17px; ">검사코드 :</caption>
- </group>
- <datagrid id="grd_levllist" nodeset="/root/main/getlevel" caption="^Standard 및 Control수 코드^Standard 및 Control수^OnCall레벨코드" colsep="^" colwidth="30, 200, 300" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:599px; top:75px; width:595px; height:290px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox" visibility="visible"/>
- <col ref="levlcd"/>
- <col ref="levlnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_levllist.isCell(event.target) && grd_levllist.row >= grd_levllist.fixedRows){
- fSetLevlCopy();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_levllist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_levllist.isCell(event.target) && grd_levllist.row >= grd_levllist.fixedRows){
- fLevlListClick();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:600px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption7" class="tit_2" style="left:600px; top:55px; width:115px; height:13px; ">Control 리스트</caption>
- <group id="group3" visibility="hidden" style="left:615px; top:10px; width:565px; height:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:565px; height:35px; "/>
- <select1 id="cmb_testLrgCd" ref="/root/hidden/testlrg" class="combo_s_essential" visibility="hidden" appearance="minimal" itemcount="10" style="left:325px; top:8px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0104">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSetTestLrgCd();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_testMdlCd" ref="/root/hidden/testmdl/cd" class="combo_s_essential" visibility="hidden" appearance="minimal" itemcount="10" style="left:440px; top:8px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //검사코드리스트조회
- //fGetTclscdList();
- ]]>
- </script>
- </select1>
- <line id="line13" class="line_4" style="x1:214px; y1:6px; x2:214px; y2:28px; "/>
- <line id="line5" class="line_4" style="x1:304px; y1:6px; x2:304px; y2:28px; "/>
- </group>
- <datagrid id="grd_testList" nodeset="/root/main/testlist" caption="^검사코드^검사명" colsep="^" colwidth="30, 150, 200" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:595px; height:290px; ">
- <col checkvalue="true,false" disabled="true" ref="chk" type="checkbox" visibility="visible"/>
- <col ref="testcd"/>
- <col ref="testnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //더블 클릭시
- if(grd_testList.isCell(event.target) && grd_testList.row >= grd_testList.fixedRows){
- //fSetTestCopy();
- fTestListClick();
- fGetMatrTclsList();
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_testList.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_testList.isCell(event.target) && grd_testList.row >= grd_testList.fixedRows){
-
- }
- ]]>
- </script>
- </datagrid>
- <line id="line14" class="line_1" style="x1:0px; y1:70px; x2:595px; y2:70px; "/>
- <caption id="caption3" class="tit_2" style="left:0px; top:55px; width:115px; height:13px; ">검사항목 리스트</caption>
- <datagrid id="grd_matrTclsList" nodeset="/root/main/matrtclslist" caption="검사코드^검사명^Control코드^Control명^Standard^시작일자^종료일자^Def. Dose^결과유형^참고치유형^참고치구분^참고치하한^하한^상한^참고치상한^참고치문자^소수길이^단위^평균^표준편차^WGMR범위^판정유형^반올림옵션^그래프^LotNo^제조회사^제조일시^입고일시^유효일시^IF연동코드^부서코드^등록자^등록일시^최종수정자^최종수정일시" colsep="^" colwidth="80, 120, 80, 100, 100, 85, 85, 80, 80, 80, 80, 80, 50, 50, 80, 80, 60, 50, 50, 60, 80, 80, 80, 60, 70, 80, 85, 85, 85, 80, 80, 80, 135, 80, 135" dataheight="23" explorerbar="sortshow" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:2px; top:390px; width:1191px; height:336px; ">
- <col ref="testcd"/>
- <col ref="testnm"/>
- <col disabled="true" ref="matrcd" type="input" maxlength="10"/>
- <col ref="matrnm" type="input" maxlength="100"/>
- <col disabled="true" ref="levlcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/LB0501">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="testfromdd" type="inputdate"/>
- <col disabled="true" ref="testtodd" type="inputdate"/>
- <col ref="ddosevalue" type="input"/>
- <col ref="rsltkind" type="combo">
- <choices>
- <item>
- <label>문자+숫자</label>
- <value>0</value>
- </item>
- <item>
- <label>숫자</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="refkind" type="combo">
- <choices>
- <item>
- <label>없음</label>
- <value>0</value>
- </item>
- <item>
- <label>문자</label>
- <value>1</value>
- </item>
- <item>
- <label>숫자</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="refflag" type="combo">
- <choices>
- <item>
- <label>사용안함</label>
- <value>0</value>
- </item>
- <item>
- <label>하한만사용</label>
- <value>1</value>
- </item>
- <item>
- <label>상한만사용</label>
- <value>2</value>
- </item>
- <item>
- <label>모두사용</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="refl" type="input"/>
- <col ref="refls" type="combo">
- <choices>
- <item>
- <label>
- <![CDATA[<]]>
- </label>
- <value>0</value>
- </item>
- <item>
- <label>
- <![CDATA[<=]]>
- </label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="refhs" type="combo">
- <choices>
- <item>
- <label>
- <![CDATA[<]]>
- </label>
- <value>0</value>
- </item>
- <item>
- <label>
- <![CDATA[<=]]>
- </label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="refh" type="input"/>
- <col ref="refcval" type="input"/>
- <col ref="intrsltfrmt" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>0</label>
- <value>0</value>
- </item>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- <item>
- <label>4</label>
- <value>4</value>
- </item>
- <item>
- <label>5</label>
- <value>5</value>
- </item>
- <item>
- <label>6</label>
- <value>6</value>
- </item>
- <item>
- <label>7</label>
- <value>7</value>
- </item>
- <item>
- <label>8</label>
- <value>8</value>
- </item>
- <item>
- <label>9</label>
- <value>9</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- </choices>
- </col>
- <col ref="rsltunit" type="input"/>
- <col ref="avg" type="input"/>
- <col ref="sdval" type="input"/>
- <col imemode="disabled" ref="wgmrscop" type="input" visibility="hidden" maxlength="6" _chartype="upper"/>
- <col ref="judgkind" type="combo">
- <choices>
- <item>
- <label>미사용</label>
- <value>0</value>
- </item>
- <item>
- <label>
- <![CDATA[L/H]]>
- </label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="rundkind" type="combo">
- <choices>
- <item>
- <label>사용안함</label>
- <value>0</value>
- </item>
- <item>
- <label>반올림</label>
- <value>1</value>
- </item>
- <item>
- <label>올림</label>
- <value>2</value>
- </item>
- <item>
- <label>내림</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="graphdispyn" type="checkbox"/>
- <col ref="lotno" type="input"/>
- <col ref="prodcmpy" type="input"/>
- <col ref="proddt" type="inputdate"/>
- <col ref="windt" type="inputdate"/>
- <col ref="validd" type="inputdate"/>
- <col ref="matrifcd" type="input" maxlength="20"/>
- <col ref="userdeptflagcd" visibility="hidden"/>
- <col ref="fstrgstrid"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:mm:ss"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_matrTclsList.isCell(event.target) && grd_matrTclsList.row >= grd_matrTclsList.fixedRows){
- if(grd_matrTclsList.col == grd_matrTclsList.colRef("refl") || grd_matrTclsList.col == grd_matrTclsList.colRef("refh")){
- fSetRef();
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="button52" class="btn2_letter3" disabled="true" visibility="hidden" style="left:1085px; top:366px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_matrTclsList.addItem();
- ]]>
- </script>
- </button>
- <button id="button53" class="btn2_letter3" visibility="visible" style="left:1139px; top:366px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_matrTclsList.rowStatus(grd_matrTclsList.row) = 4; //멀티업데이트 시 Delete로 설정 //0:new, 1:insert, 2:update, 3:insert&new, 4:delete
- grd_matrTclsList.deleteitem(grd_matrTclsList.row);
- ]]>
- </script>
- </button>
- <button id="btn_end" class="btn2_letter2" style="left:1007px; top:366px; width:42px; height:19px; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rtn = messageBox("" , "Q003");
- if(rtn == "7"){
- return;
- }
- fEndMatr();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter6" style="left:1051px; top:366px; width:86px; height:19px; ">
- <caption>Control변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rtn = messageBox("" , "Q003");
- if(rtn == "7"){
- return;
- }
- fChangeMatr();
- ]]>
- </script>
- </button>
- <button id="btn_up" class="icon_bottom" style="left:585px; top:366px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCopyTestList();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:0px; top:371px; width:170px; height:13px; ">Control 별 검사항목 설정</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:386px; x2:1193px; y2:386px; "/>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:139px; height:14px; ">Control Range 관리</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.reload();
- ]]>
- </script>
- </button>
- <button id="btn_exec" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("", "Q002")==6){
- if(!checkGridUpdate(grd_matrTclsList)){
- messageBox("저장할 자료가 존재하지 않아 실행", "E001");
- return;
- }
- //저장버튼
- fExeMatrTclsList();
- }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <caption id="cap" style="left:320px; top:5px; width:720px; height:15px; font-weight:bold; color:#3366ff; ">단일Control에 여러 검사항목이 묶인 Control과 외부 정도관리 관련 Control은 Control Range 관리 화면을 이용하세요.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|