123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLIF00100_장비코드관리.xrw
- * 설 명 : 장비코드관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.05.11
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>장비코드관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <eqmtcdlist>
- <eqmtfromdd/>
- <eqmttodd/>
- <eqmtcd/>
- <eqmtnm/>
- <eqmtabbrnm/>
- <rsltreptid/>
- <rsltreptkind/>
- <rsltreptresn/>
- <retestyn/>
- <meterno/>
- <qcyn/>
- </eqmtcdlist>
- </main>
- <send>
- <refgbn/>
- <eqmtdata/>
- <lasc/>
- <deptflag/>
- <dept/>
- </send>
- <init>
- </init>
- <hidden>
- <refgbn>1</refgbn>
- <lasc/>
- <dept>00</dept>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <!-- 장비코드 상세내역 조회-->
- <submission id="TRLIF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/eqmtcdlist"/>
- <!-- 장비코드 상세내역 수정, 등록-->
- <submission id="TXLIF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/eqmtcdlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 권한 설정
- var auth = model.getValue("/root/properties/auth");
- checkAuth(auth);
- btn_save.disabled = !checkAuth("X") ;
-
- //사용자부서코드 조회 *추가 20080703 -승현-
- model.makeValue("/root/send/codeflag","0000|0111|"); //0000:사용자부서코드
- submit("TRLZZ00101");
-
- //핵의학 일경우에 LASC관련 숨기기
- if(model.getValue("/root/init/LB0000/nm") == "N"){
- ipt_lasc.visible = false;
- btn_lasc.visible = false;
- }
-
- fGetEqmtCdList(); //화면 로드시 장비코드 내역 조회 -승현추가080719
- ]]>
- </script>
- <submission id="TXLIF00102" 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" resultref="/root/LB0000"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fSetInit(){
- //model.reset();
- model.removeNodeset("/root/main/eqmtcdlist");
- grd_eqmtcd.refresh();
- }
-
- // 조회
- function fGetEqmtCdList(){
- model.setValue("/root/send/refgbn", model.getValue("/root/hidden/refgbn"));
- model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm")); //20080703 승현 추가
- model.setValue("/root/send/dept" , model.getValue("/root/hidden/dept"));
-
- submit("TRLIF00101");
- }
-
- // 저장
- function fExeEqmtSave(){
- //alert("!!!!!");
- for( i = 1 ; i < grd_eqmtcd.rows ; i++){
- var eqmtfromdd = model.getValue("/root/main/eqmtcdlist["+i+"]/eqmtfromdd");
- eqmtfromdd = eqmtfromdd.getTrim();
- var eqmttodd = model.getValue("/root/main/eqmtcdlist["+i+"]/eqmttodd");
- eqmttodd = eqmttodd.getTrim();
- var eqmtcd = model.getValue("/root/main/eqmtcdlist["+i+"]/eqmtcd");
- eqmtcd = eqmtcd.getTrim();
- var eqmtnm = model.getValue("/root/main/eqmtcdlist["+i+"]/eqmtnm");
- eqmtnm = eqmtnm.getTrim();
- var eqmtabbrnm = model.getValue("/root/main/eqmtcdlist["+i+"]/eqmtabbrnm");
- eqmtabbrnm = eqmtabbrnm.getTrim();
- var rsltreptid = model.getValue("/root/main/eqmtcdlist["+i+"]/rsltreptid");
- rsltreptid = rsltreptid.getTrim();
- var rsltreptkind = model.getValue("/root/main/eqmtcdlist["+i+"]/rsltreptkind");
- rsltreptkind = rsltreptkind.getTrim();
- var rsltreptresn = model.getValue("/root/main/eqmtcdlist["+i+"]/rsltreptresn");
- rsltreptresn = rsltreptresn.getTrim();
- var meterno = model.getValue("/root/main/eqmtcdlist["+i+"]/meterno");
- meterno = meterno.getTrim();
- var retestyn = model.getValue("/root/main/eqmtcdlist["+i+"]/retestyn");
- var qcyn = model.getValue("/root/main/eqmtcdlist["+i+"]/qcyn");
- var a = "";
- var b ;
- if(grd_eqmtcd.rowStatus(i) != 0){
- if( eqmtfromdd == ""){
- //grd_eqmtcd.rowStatus(i) = 0;
- a = a + grd_eqmtcd.labelMatrix(0,1);
- //alert( grd_eqmtcd.labelMatrix(0,1) + "를 입력해 주십시요");
- //return;
- }
- }
- if(grd_eqmtcd.rowStatus(i) != 0){
- if( eqmttodd == ""){
- //grd_eqmtcd.rowStatus(i) = 0;
- if(a == ""){
- a = a + grd_eqmtcd.labelMatrix(0,2);
- }
- else{
- a = a +", " +grd_eqmtcd.labelMatrix(0,2);
- }
- //alert( grd_eqmtcd.labelMatrix(0,2) + "를 입력해 주십시요");
- //return;
- }
- }
- if(grd_eqmtcd.rowStatus(i) != 0){
- if( eqmtcd == ""){
- //grd_eqmtcd.rowStatus(i) = 0;
- if(a == ""){
- a = a + grd_eqmtcd.labelMatrix(0,3);
- }
- else{
- a = a +", " +grd_eqmtcd.labelMatrix(0,3);
- }
- //alert( grd_eqmtcd.labelMatrix(0,3) + "를 입력해 주십시요");
- //return;
-
- }
- }
- if(grd_eqmtcd.rowStatus(i) != 0){
- if( eqmtnm == ""){
- //alert("!!!!!");
- //grd_eqmtcd.rowStatus(i) = 0;
- if(a == ""){
- a = a + grd_eqmtcd.labelMatrix(0,4);
- }
- else{
- a = a +", " +grd_eqmtcd.labelMatrix(0,4);
- }
- //alert( grd_eqmtcd.labelMatrix(0,4) + "을 입력해 주십시요");
- //return;
- }
- }
- if(grd_eqmtcd.rowStatus(i) != 0){
- if( meterno == ""){
- //grd_eqmtcd.rowStatus(i) = 0;
- if(a ==""){
- a = a + grd_eqmtcd.labelMatrix(0,5);
- }
- else{
- a = a +", " +grd_eqmtcd.labelMatrix(0,5);
- }
- //alert( grd_eqmtcd.labelMatrix(0,5) + "를 입력해 주십시요");
- //return;
- }
- }
- if(grd_eqmtcd.rowStatus(i) != 0){
- if( eqmtabbrnm == ""){
- //grd_eqmtcd.rowStatus(i) = 0;
- if(a == ""){
- a = a + grd_eqmtcd.labelMatrix(0,6);
- }
- else{
- a = a +", " +grd_eqmtcd.labelMatrix(0,6);
- }
- //alert( grd_eqmtcd.labelMatrix(0,6) + "를 입력해 주십시요");
- //return;
- }
- }
- if(grd_eqmtcd.rowStatus(i) != 0){
- if( rsltreptid == ""){
- //grd_eqmtcd.rowStatus(i) = 0;
- if(a == ""){
- a = a + grd_eqmtcd.labelMatrix(0,7);
- }
- else{
- a = a +", " +grd_eqmtcd.labelMatrix(0,7);
- }
- //alert( grd_eqmtcd.labelMatrix(0,7) + "을 입력해 주십시요");
- //return;
- }
- }
- if(grd_eqmtcd.rowStatus(i) != 0){
- if( rsltreptkind == 0){
- //grd_eqmtcd.rowStatus(i) = 0;
- if(a == ""){
- a = a + grd_eqmtcd.labelMatrix(0,8);
- }
- else{
- a = a +", " +grd_eqmtcd.labelMatrix(0,8);
- }
- //alert( grd_eqmtcd.labelMatrix(0,8) + "를 입력해 주십시요");
- //return;
- }
- }
- if(grd_eqmtcd.rowStatus(i) != 0){
- if( rsltreptresn == ""){
- //grd_eqmtcd.rowStatus(i) = 0;
- if(a == ""){
- a = a + grd_eqmtcd.labelMatrix(0,9);
- }
- else{
- a = a +", " +grd_eqmtcd.labelMatrix(0,9);
- }
- //alert( grd_eqmtcd.labelMatrix(0,9) + "를 입력해 주십시요");
- //return;
- }
- }
- if(grd_eqmtcd.rowStatus(i) != 0){
-
- if( retestyn == ""){
- //grd_eqmtcd.rowStatus(i) = 0;
- if(a == ""){
- a = a + grd_eqmtcd.labelMatrix(0,10);
- }
- else{
- a = a +", " +grd_eqmtcd.labelMatrix(0,10);
- }
- //alert( grd_eqmtcd.labelMatrix(0,10) + "를 입력해 주십시요");
- //return;
- }
- }
-
- if(grd_eqmtcd.rowStatus(i) != 0){
- if( qcyn == ""){
- //grd_eqmtcd.rowStatus(i) = 0;
- if(a == ""){
- a = a + grd_eqmtcd.labelMatrix(0,11);
- }
- else{
- a = a +", " +grd_eqmtcd.labelMatrix(0,11);
- }
- //alert( grd_eqmtcd.labelMatrix(0,11) + "를 입력해 주십시요");
- //return;
- }
-
- }
-
- if(a !=""){
- b = a.split(",");
- //alert(b);
- var ii = b.length - 1
-
-
-
- // alert("!!!!!");
- // alert(b[ii] + "0");
- if( b[ii].getTrim().toString() == "장비코드" || b[ii].getTrim().toString() == "장비SirialNo"
- || b[ii].getTrim().toString() == "결과보고자ID" || b[ii].getTrim().toString() == "결과보고사유" ){
- // alert("!!!!!");
- model.alert( i +"번째줄의 "+a+"를 추가하여 입력하여주십시요","항목오류");
- // grd_eqmtcd.rowStatus(i) = 0;
- return;
- }else{
- model.alert( i +"번째줄의 "+a+"을 추가하여 입력하여주십시요","항목오류");
- // grd_eqmtcd.rowStatus(i) = 0;
- return;
-
- }
- // else{
- // exit for
- // }
-
- }
- //return;
- // alert("!!!!!");
- }// for
-
-
- var eqmtdata = grd_eqmtcd.getUpdateData();
-
- model.setValue("/root/send/eqmtdata" , eqmtdata);
- model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm")); //20080703 승현추가
-
- //alert("!!!!!");
-
- if(submit("TXLIF00101")){
- fGetEqmtCdList();
- }
-
- // 저장 후 조회
- //fGetEqmtCdList();
- }
-
- // 행추가
- function fInsRowAdd(){
- grd_eqmtcd.addRow();
-
- //alert(grd_eqmtcd.row);
- //alert(grd_eqmtcd.rows);
- grd_eqmtcd.topRow = grd_eqmtcd.row;
-
- var tDay = getCurrentDate();
- var checked = "N"
- model.setValue("/root/main/eqmtcdlist["+grd_eqmtcd.row+"]/eqmtfromdd", tDay);
- model.setValue("/root/main/eqmtcdlist["+grd_eqmtcd.row+"]/eqmttodd", "99991231");
-
- model.setvalue("/root/main/eqmtcdlist["+grd_eqmtcd.row+"]/retestyn", checked);
- model.setvalue("/root/main/eqmtcdlist["+grd_eqmtcd.row+"]/qcyn", checked);
- }
-
- //LASC변경
- function fSetLasc() {
- if(model.getValue("/root/hidden/lasc") != "" && getUserId() == "LIS") {
- model.setValue("/root/send/lasc", model.getValue("/root/hidden/lasc"));
-
- if(submit("TXLIF00102")) {
- model.setValue("/root/hidden/lasc", "");
- }
-
- model.refresh();
- } else {
- if(getUserId() != "LIS") {
- alert("LIS 개발자들만 변경이 가능합니다.");
- }else {
- alert("LASC를 입력하세요..");
- }
- }
- }
- function Checked(){
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:134px; height:13px; ">장비코드상세내역</caption>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- <line id="line14" class="line_4" style="x1:448px; y1:6px; x2:448px; y2:28px; "/>
- <select1 id="cmb_refgbn" ref="/root/hidden/refgbn" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>사용가능자료</label>
- <value>1</value>
- </item>
- <item>
- <label>전체자료</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:458px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetEqmtCdList();
- ]]>
- </script>
- </button>
- <input id="ipt_lasc" ref="/root/hidden/lasc" style="left:880px; top:8px; width:165px; height:19px; "/>
- <button id="btn_lasc" class="btn1_letter6" style="left:1075px; top:7px; width:104px; height:22px; ">
- <caption>LASC 변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetLasc();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1060px; y1:6px; x2:1060px; y2:28px; "/>
- <caption id="caption3" class="search_name" style="left:265px; top:10px; width:86px; height:17px; ">검사실 :</caption>
- <select1 id="cbo_execDept" ref="/root/hidden/dept" class="combo_s_essential" appearance="minimal" style="left:340px; top:9px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <button id="btn_addrow" class="btn2_letter3" style="left:1141px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowAdd();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_eqmtcd" nodeset="/root/main/eqmtcdlist" caption="사용시작일자^사용종료일자^장비코드^장비명^장비SirialNo^장비약어명^결과보고자ID^결과보고유형^결과보고사유^재검여부^QC여부" colwidth="100, 100, 80, 190, 100, 100, 110, 110, 100, 80, 80" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:647px; ">
- <col ref="eqmtfromdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="eqmttodd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="eqmtcd" type="input"/>
- <col ref="eqmtnm" type="input"/>
- <col ref="meterno" type="input"/>
- <col ref="eqmtabbrnm" type="input"/>
- <col ref="rsltreptid" type="input"/>
- <col ref="rsltreptkind" type="combo">
- <choices>
- <item>
- <label>결과저장</label>
- <value>1</value>
- </item>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="rsltreptresn" type="input"/>
- <col checkvalue="Y,N" ref="retestyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="qcyn" type="checkbox"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_eqmtcd.gridToInstance();
-
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtSave();
- ]]>
- </script>
- </button>
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- </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:800px; height:14px; ">장비코드관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|