123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973 |
- <?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>일일 작업 일지</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <rsdhdinflist>
- <instcd/>
- <workdd/>
- <fixasetcd/>
- <goodflag/>
- <usetims/>
- <usetm/>
- <funtngtm/>
- <expsurtmpr/>
- <expsurtm/>
- <dinftmpr/>
- <dinfitemspec/>
- <nowrongyn/>
- <purfctm/>
- <userid/>
- <useridnm/>
- <totm/>
- <endpsnid/>
- <endpsnnm/>
- <cheindint/>
- <cheindext/>
- <biindng/>
- <biindg/>
- <bowdicok/>
- <bowdicic/>
- <bowdicna/>
- <incubtm/>
- <incubcnfmr/>
- <incubcnfmrnm/>
- <rsltcnfmtm/>
- <rsltcnfmpsn/>
- <rsltcnfmpsnnm/>
- <reading/>
- <spclmentfact/>
- <chrgid/>
- <chrgnm/>
- <cmt/>
- </rsdhdinflist>
- <eqiprgstlist>
- <instcd/>
- <fixasetcd/>
- <fixasetnm/>
- <dinfkind/>
- <useyn/>
- <cmt/>
- </eqiprgstlist>
- <prndatalist/>
- <list>
- <temp/>
- </list>
- </main>
- <send>
- <instcd/>
- <goodflag/>
- <dinfkind/>
- <workdd/>
- <usernm/>
- <true/>
- <fixasetcd/>
- <rsdhdinflist/>
- <test/>
- <dutycd/>
- </send>
- <init>
- <radio1>
- <label>고압증기</label>
- <value>1</value>
- <label>건열</label>
- <value>2</value>
- <label>EO gas</label>
- <value>3</value>
- <label>STERRAD</label>
- <value>4</value>
- <label>전체</label>
- <value/>
- </radio1>
- <biindflag>
- <label>No growth</label>
- <value>1</value>
- <label>Growth</label>
- <value>2</value>
- <label>N/A</label>
- <value>3</value>
- </biindflag>
- <bowdicflag1>
- <label>OK</label>
- <value>1</value>
- <label>IC</label>
- <value>2</value>
- <label>NA</label>
- <value>3</value>
- </bowdicflag1>
- <bowdicflag2>
- <label>No growth</label>
- <value>1</value>
- <label>Growth</label>
- <value>2</value>
- <label>N/A</label>
- <value>3</value>
- </bowdicflag2>
- </init>
- <temp>
- <nodeset/>
- </temp>
- <hidden>
- <common>
- <instcdinfo/>
- </common>
- </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="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TXMNG01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRMNG01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsdhdinflist"/>
- <submission id="TRRSE01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqcollcdeptlist"/>
- <submission id="TRRSE01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prndatalist"/>
- <!--20101215_KNUH_Start 변경
- submission id="TRRSS01311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/divsflaglist"/-->
- <!--20101215_KNUH_Start추가. -->
- <submission id="TRMNG01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rscmeqmdlist"/>
- <submission id="TRMNG00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/divsflaglist"/>
- <submission id="TRMNG01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/eqiprgstlist"/>
- <submission id="TRMNG00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dutylist"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //멸균, 세척 버튼 눌렀을시 설정 전역변수
- var butclkyn = "Y";
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- zbcfGetCodeList (new Array("Z0007"),new Array("/root/hidden/common/instcdinfo"),true);
-
- //기관코드 설정
- // rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"5","B");
-
-
- misfGridInit(grd_reqcollcdeptlist);
- misfGridInit(grd_rsdhdinflist);
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/useyn", "Y");
- model.makeValue("/root/send/reqdata/cdflag", "E");
- submit("TRMNG00701");
- model.removeNodeset("/root/main/dutylist[dutycd='S']"); //일반장비구분 삭제.
-
- //멸균, 세척탭으로 나뉘면서 전체 장비구분 제외 by 박영우 2010-02-22
- //addComboItem("cmb_dutycd", "전체" , "", "above");
- //cmb_dutycd.refresh();
- //fsearch2();
-
- misfMsterDetailSet(grd_rsdhdinflist, null, "TRMNG01301", "Y");
-
- model.removeNodeset("/root/main/rsdhdinflist");
- model.removeNodeset("/root/main/reqcollcdeptlist");
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/usernm", getUserInfo("usernm")); // 사용자 이름 설정
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
- model.setValue("/root/send/goodflag", "E"); // 물품 설정
- model.setValue("/root/send/true", "Y"); // 사용유무 설정.
- model.setValue("/root/send/dinfkind", rdo_dinfkind.value); // 멸균 구분
- // model.setValue("/root/send/cntrdeptcd", getUserInfo("dutplcecd")); // 귀속부서 설정
-
- model.setValue("/root/send/workdd", getCurrentDate());
-
- //화면 권한 설정
- // btn_save.disabled = !(checkAuth("X"));
- // btn_prt.disabled= !(checkAuth("P"));
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
-
- cmb_dutycd.select(0);
- rdo_dinfkind.select(0);
-
- //fsearch();
-
-
- // rszfModeGetComboList( '012', , "grd_rsdhdinflist.csrfixasetmdnm");
-
- // var obj = document.controls(grd_rsdhdinflist.colAttribute(grd_rsdhdinflist.colRef("csrfixasetmdnm"), "id"));
- // alert(obj.choices.itemset.attribute("nodeset"));
- misfSetReadOnlyCol(grd_reqcollcdeptlist, "fixasetcd,fixasetnm", true);
- }
-
- function fModeCheck() {
- // var fixasetcd = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
- //
- // if( fixasetcd.substr(0, 5) == "E8001" ) {
- //
- // grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = false;
- //
- // } else {
- //
- // grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = true;
- //
- // }
- }
-
- function fCheckTime(ftimeset) {
- if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef(ftimeset)) {
- var sTime = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset));
-
- if(sTime.length != 4) {
- messageBox("네자리를 ","C001");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
- return;
- }
-
- var sFrontTime = sTime.substr(0, 2);
- var sBackTime = sTime.substr(2, 2);
-
- if(parseInt(sFrontTime) > 24) {
- messageBox("24시를 ","E003");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
- return;
- }
-
- if(parseInt(sBackTime) > 59) {
- messageBox("59분을 ","E003");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
- return;
- }
- }
- }
-
- // 장비코드 조회
- function fsearch() {
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/dutycd", cmb_dutycd.value);
- model.makeValue("/root/send/reqdata/divscd", rdo_dinfkind.value);
- model.makeValue("/root/send/reqdata/useyn", "Y");
- model.makeValue("/root/send/reqdata/butclkyn", "Y");
-
- if(submit("TRMNG01302")) {
-
- }
- //
- //
- }
-
- function fsearch2() {
- var dutycd = model.getValue(cmb_dutycd.attribute("ref"));
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/dutycd", dutycd);
- model.makeValue("/root/send/reqdata/useyn", "Y");
-
- //20101215_KNUH_Start Submit ID변경
- //submit("TRRSS01311");
- //20101215_KNUH_End
- submit("TRMNG00601");
-
- addComboItem("rdo_dinfkind", "전체" , "", "above");
- rdo_dinfkind.select(0);
- }
-
- function fsearch3() {
-
- model.removeNodeset("/root/main/rsdhdinflist");
- grd_rsdhdinflist.rebuild();
-
- model.makeValue("/root/send/reqdata/instcd", cmb_instcd.value);
- model.makeValue("/root/send/reqdata/dutycd", cmb_dutycd.value);
- model.makeValue("/root/send/reqdata/divscd", cmb_dinfkind.value);
- model.makeValue("/root/send/reqdata/useyn", "Y");
-
- if(submit("TRMNG01302")) {
- grd_reqcollcdeptlist.row = 1;
- if(cmb_dutycd.value != "W") {
- //멸균, 세척 탭 사용에 따른 데이터 그리드 숨김, 보임 설정 by 박영우 2010-02-22
- btn_dinf.selected = true;
- grd_rsdhdinflist.caption = "횟수^모드^노출시간^멸균온도^시작시간^종료시간^작동시간^B-I^B-I nm^RESULT^정화시간^멸균품내역^이상무^시작자ID^시작자ID^종료자ID^종료자ID^Chemical indicator Internal^Chemical indicator External^Incubator 시간^Incubator 확인자ID^Incubator 확인자ID^결과확인시간^결과확인자ID^결과확인자ID^reading^특기사항^담당자ID^담당자ID^기관코드^작업일자^고정자산코드^물품구분^사용\n시간^노출온도^비고";
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("csrfixasetmd")) = false;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("expsurtm")) = false;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("dinftmpr")) = false;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("biindflag")) = false;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = false;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("bowdicflag")) = false;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmtm")) = false;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsn")) = false;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsnnm")) = false;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsnnm")) = false;
- } else {
- //멸균, 세척 탭 사용에 따른 데이터 그리드 숨김, 보임 설정 by 박영우 2010-02-22
- btn_wash.selected = true;
- grd_rsdhdinflist.caption = "횟수^모드^노출시간^멸균온도^시작시간^종료시간^세척시간^B-I^B-I nm^RESULT^정화시간^세척품내역^이상무^시작자ID^시작자ID^종료자ID^종료자ID^Chemical indicator Internal^Chemical indicator External^Incubator 시간^Incubator 확인자ID^Incubator 확인자ID^결과확인시간^결과확인자ID^결과확인자ID^reading^특기사항^담당자ID^담당자ID^기관코드^작업일자^고정자산코드^물품구분^사용\n시간^노출온도^비고";
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("csrfixasetmd")) = true;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("expsurtm")) = true;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("dinftmpr")) = true;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("biindflag")) = true;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = true;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("bowdicflag")) = true;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmtm")) = true;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsn")) = true;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsnnm")) = true;
- grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsnnm")) = true;
- }
- }
- }
-
- // 세부내역 조회
- function fsearchGrid() {
- var updtdata = getGridUpdateData(grd_rsdhdinflist);
- if ( updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
- model.setValue("/root/send/fixasetcd", grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")));
- model.setValue("/root/send/workdd", ipt_workdd.value);
- model.setValue("/root/send/dinfkind", rdo_dinfkind.value); // 멸균 구분
- submit("TRMNG01301");
- misfSetReadOnlyCol(grd_rsdhdinflist, "instcd,workdd,fixasetcd,goodflag", true);
- }
-
- //행 추가
- function finsert() {
- if(grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")) == "") {
- messageBox("장비코드를","C002");
- }else{
- misfGridIUD(grd_rsdhdinflist, "A");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
- }
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("usetims") ) = grd_rsdhdinflist.row;
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgid") ) = getUserInfo("userid");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgnm") ) = getUserInfo("usernm");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("workdd")) = ipt_workdd.value;
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("goodflag")) = "E";
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("nowrongyn")) = "Y";
-
- if(grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd")) == "") {
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) = cmb_instcd.value;
- }else{
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd"));
- }
-
- misfSetReadOnlyCol(grd_rsdhdinflist, "instcd,fixasetcd,goodflag", true);
- }
-
-
- function fModeComboNodeSetGet() {
- //////////////////////////모드코드 콤보설정//////////////////////////////////////////
- // 모드 콤보 설정되기전에 콤보에 nodeset이 지정되어 있으며 화면상에 나타내어 지고 있으면 콤보의 노드를 변경할 수가 없다.
- // 그리드를 초기화 시켜줌으로써 nodeset을 재설정 할수있도록 해준다.
- misfGridInit(grd_rsdhdinflist);
- grd_rsdhdinflist.rebuild();
-
- // 모드코드 콤보를 설정한다.
- //20101215_KNUH_Start 주석처리(mis함수에서 강제로 TRRSS01303호출함.(TRMNG01303으로 변경).
- // rszfModeGetComboList( grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd")), grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")), "grd_rsdhdinflist.csrfixasetmd");
-
- //20101215_KNUH_Start submit ID TRMNG01303으로 변경
- var instcd = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd"));
- var fixasetcd = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
- var useyn = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("useyn"));
-
-
- model.makeValue("/root/send/reqdata/instcd", instcd);
- model.makeValue("/root/send/reqdata/fixasetcd", fixasetcd);
- model.makeValue("/root/send/reqdata/useyn", useyn);
- submit("TRMNG01303");
-
- //20101215_KNUH_End
-
-
- /* 모드콤보에 설정된 nodeset을 임시저장소에 담아둔다.
- 이유 : 임시저장소에 저장된 nodeset은 모드코드콤보를 선택했을시
- 콤보값에 맞는 노출시간과 멸균온도를 가져오기위한 위치를 나타낼때 사용됨.
- */
- var obj = document.controls(grd_rsdhdinflist.colAttribute(grd_rsdhdinflist.colRef("csrfixasetmd"), "id"));
- model.removenode("/root/temp/nodeset");
- model.makeNode("/root/temp/nodeset");
- model.setValue("/root/temp/nodeset", obj.choices.itemset.attribute("nodeset"));
- //////////////////////////모드코드 콤보설정//////////////////////////////////////////
- }
-
-
-
- function subTm(fstTm, lastTm) {
-
- var fstHour = fstTm.substr(0,2);
- var fstTm2 = fstTm.substr(2,2);
-
- var fstss = fstTm.substr(4,2);
-
- var lastHour = lastTm.substr(0,2);
- var lastTm2 = lastTm.substr(2,2);
- var lastss = lastTm.substr(4,2);
-
- var subHour = Number(lastHour) - Number(fstHour);
- var subTm = Number(lastTm2) - Number(fstTm2);
- var subss = Number(lastss) - Number(fstss);
-
- var hr;
- var tm;
- var ss;
-
- if(subss < 0) {
- subss += 60;
- subTm -= 1;
- }
-
- if(subTm < 0) {
- subTm += 60;
- subHour -= 1;
- }
-
- if(subHour < 0) {
- subHour += 24;
- }
-
- if(subHour < 10) {
- subHour = "0" + subHour;
- } else {
- subHour = String(subHour);
- }
-
- if(subTm < 10) {
- subTm = "0" + subTm;
- } else {
- subTm = String(subTm);
- }
-
- if(subss <10) {
- subss = "0" + subss;
- } else {
- subss = String(subss);
- }
- return subHour + subTm + subss;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">일일 작업 일지</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1191px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:4px; width:1190px; height:51px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_workdd" class="search_name" style="left:15px; top:35; width:86px; height:17px; ">작업일자 :</caption>
- <caption id="cap_dinfkind" class="search_name" style="left:465px; top:10px; width:102px; height:17px; ">분류구분 :</caption>
- <input id="ipt_workdd" ref="/root/send/workdd" class="input_default" inputtype="date" style="left:103px; top:34px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var workdd = model.getValue(ipt_workdd.attribute("ref"));
-
- /*
- if(workdd == getCurrentDate()) {
- btn_insert.disabled = false;
- btn_delete.disabled = false;
- btn_save.disabled = false;
-
- } else {
- btn_insert.disabled = true;
- btn_delete.disabled = true;
- btn_save.disabled = true;
-
- }
- btn_insert.refresh();
- btn_delete.refresh();
- btn_save.refresh();
- */
- fsearchGrid();
- ]]>
- </script>
- </input>
- <caption id="cap_usernm" class="search_name" visibility="hidden" style="left:235px; top:35px; width:83px; height:17px; ">담 당 자 :</caption>
- <output id="opt_usernm" ref="/root/send/usernm" class="output_fix" visibility="hidden" appearance="output" style="left:323px; top:34px; width:130px; height:19px; "/>
- <line id="line30" class="line_4" style="x1:785px; y1:14px; x2:785px; y2:47px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:796px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fsearch3();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:103px; top:8px; width:120px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/instcd", cmb_instcd.value);
- fsearch();
- ]]>
- </script>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:90px; height:17px; ">기관코드 :</caption>
- <select1 id="rdo_dinfkind" ref="/root/send/dinfkind" visibility="hidden" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:660px; top:10px; width:219px; height:15px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/divsflaglist">
- <label ref="divsnm"/>
- <value ref="divscd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fsearch();
- ]]>
- </script>
- </select1>
- <button id="btn_excel" class="btn1_letter2" style="left:854px; top:19px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //일일작업일지로 명칭 변경 by 박영우 2010-02-22
- var fileName = window.fileDialog("save", ",", false, "일일작업일지", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_rsdhdinflist.saveExcel(fileName, "sheetname:일일작업일지;");
- }
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn1_letter8" style="left:912px; top:19px; width:128px; height:22px; ">
- <caption>일일작업일지출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //세척일지, 멸균일지로 구분 by 박영우 2010-02-22
- var dutycd = model.getValue("/root/send/dutycd");
- model.removeNodeset("/root/send/report/rsdhdinflist");
- model.makeNode("/root/send/report/rsdhdinflist");
- model.makeValue("/root/send/report/prtdata/currentdate" ,getCurrentDate());
- model.makeValue("/root/send/report/prtdata/currentday" ,getCurrentWeek("K"));
- model.makeValue("/root/send/report/prtdata/divsnm" ,grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("divsnm")));
- model.makeValue("/root/send/report/prtdata/csrfixasetnm",grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("csrfixasetnm")));
-
- if(grd_rsdhdinflist.rowStatus(grd_rsdhdinflist.rows-1) =="0"){
- for(var i=1; i < grd_rsdhdinflist.rows;i++){
- model.makeValue("/root/main/rsdhdinflist["+i+"]/biindflagnm",grd_rsdhdinflist.labelMatrix(i,grd_rsdhdinflist.colRef("biindflag")));
- }
- copyNodesetType("/root/send/report/rsdhdinflist", "/root/main/rsdhdinflist");
- }
-
- if(dutycd == "W") {
- exeReportPreview("RPMNG01001", "XMLSTR", "/root/send/report/rsdhdinflist");
- } else {
- exeReportPreview("RPMNG01000", "XMLSTR", "/root/send/report/rsdhdinflist");
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:235px; top:10px; width:87px; height:17px; ">장비구분 :</caption>
- <select1 id="cmb_dutycd" ref="/root/send/dutycd" appearance="minimal" style="left:323px; top:10px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/dutylist">
- <label ref="dutynm"/>
- <value ref="dutycd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(butclkyn == "Y") {
- model.makeValue("/root/send/reqdata/butclkyn", "Y");
- } else {
- model.makeValue("/root/send/reqdata/butclkyn", "");
- }
- fsearch2();
- fsearch3();
-
- butclkyn = "N";
- ]]>
- </script>
- </select1>
- <select1 id="cmb_dinfkind" ref="/root/send/dinfkind" appearance="minimal" style="left:550px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/divsflaglist">
- <label ref="divsnm"/>
- <value ref="divscd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fsearch3();
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn1_letter9" style="left:1042px; top:19px; width:140px; height:22px; ">
- <caption>인디케이터일지출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/send/report/rsdhdinflist");
- model.makeNode("/root/send/report/rsdhdinflist");
- model.makeValue("/root/send/report/prtdata/currentdate" ,getCurrentDate());
- model.makeValue("/root/send/report/prtdata/currentday" ,getCurrentWeek("K"));
- model.makeValue("/root/send/report/prtdata/divsnm" ,grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("divsnm")));
- model.makeValue("/root/send/report/prtdata/csrfixasetnm",grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("csrfixasetnm")));
-
- copyNodesetType("/root/send/report/rsdhdinflist", "/root/main/rsdhdinflist");
-
- exeReportPreview("RPMNG01600", "XMLSTR", "/root/send/report/rsdhdinflist");
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" style="left:0px; top:90px; width:200px; height:645px; border-color:#808080; border-style:solid; ">
- <caption id="cap_fixasetcdlist" class="tit_2" style="left:5px; top:0px; width:80px; height:13px; ">장비코드</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:14px; x2:198px; y2:14px; "/>
- <datagrid id="grd_reqcollcdeptlist" nodeset="/root/main/eqiprgstlist" caption="기관코드^장비코드^분류구분^장비명^CSR청구부서코드^사용유무^비고" colsep="^" colwidth="0, 0, 85, 90, 70, 58, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:19px; width:198px; height:623px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="divsnm" style="text-align:center; "/>
- <col ref="csrfixasetnm" style="text-align:center; "/>
- <col ref="dinfkind" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="fixasetnm" visibility="hidden"/>
- <col ref="csrfixaset" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(grd_reqcollcdeptlist.row > 0){
-
- fModeCheck();
-
- // 모드콤보 설정.
- fModeComboNodeSetGet();
-
- fsearchGrid();
-
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <button id="btn_dinf" class="btn_sw" group="sw" selected="true" style="left:0px; top:70px; width:100px; height:22px; ">
- <caption>멸균</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/dutycd", "D");
- butclkyn = "Y";
- cmb_dutycd.refresh();
- cmb_dutycd.dispatch("xforms-value-changed");
- ]]>
- </script>
- </button>
- <button id="btn_wash" class="btn_sw" group="sw" style="left:100px; top:70px; width:100px; height:22px; ">
- <caption>세척</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/dutycd", "W");
- butclkyn = "Y";
- cmb_dutycd.refresh();
- cmb_dutycd.dispatch("xforms-value-changed");
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn2_letter3" style="left:1090px; top:86px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rsdhdinflist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter3" style="left:1035px; top:86px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // finsert()
- grd_rsdhdinflist.addRow();
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("usetims") ) = grd_rsdhdinflist.row;
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgid") ) = getUserInfo("userid");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgnm") ) = getUserInfo("usernm");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("workdd")) = ipt_workdd.value;
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("goodflag")) = "E";
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("nowrongyn")) = "Y";
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) = getUserInfo("dutplceinstcd");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("nowrongyn")) = "Y";
-
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter2" style="left:1145px; top:86px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_rsdhdinflist);
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }else{
- /*
- var csrfixasetmd = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("csrfixasetmd"));
- if(csrfixasetmd==""){
- messageBox("모드","I003");
- return;
- }
- var expsurtm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("expsurtm"));
- if(expsurtm==""){
- messageBox("노출시간은","I003");
- return;
- }
- var dinftmpr = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("dinftmpr"));
- if(dinftmpr==""){
- messageBox("멸균온도는","I003");
- return;
- }
- var starttm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("starttm"));
- if(starttm==""){
- messageBox("시작시간은","I003");
- return;
- }
- var endtm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("endtm"));
- if(endtm==""){
- messageBox("종료시간은","I003");
- return;
- }
- var funtngtm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("funtngtm"));
- if(funtngtm==""){
- messageBox("작동시간은","I003");
- return;
- }
- */
- /*
- var biindflag = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("biindflag"));
- if(biindflag==""){
- messageBox("B-I","I003");
- return;
- }*/
- /*
- var bowdicflag = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("bowdicflag"));
- if(bowdicflag==""){
- messageBox("RESULT는","I003");
- return;
- }
-
- var purfctm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("purfctm"));
- if(purfctm==""){
- messageBox("정화시간는","I003");
- return;
- }
- var dinfitemspec = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("dinfitemspec"));
-
- var rsltcnfmpsn = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("rsltcnfmpsn"));
- if(rsltcnfmpsn==""){
- messageBox("결과확인자는","I003");
- return;
- }
- */
- rtn = messageBox("", "Q002");
- if(rtn != "6" ) return false;
-
- misfSave("TXMNG01301");
-
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:205px; top:92px; width:70px; height:13px; ">세부내역</caption>
- <line id="line1" class="line_1" style="x1:205px; y1:106px; x2:1190px; y2:106px; "/>
- <datagrid id="grd_rsdhdinflist" nodeset="/root/main/rsdhdinflist" class="datagrid2" autoresize="true" caption="횟수^모드^노출시간^멸균온도^시작시간^종료시간^작동시간^B-I^B-I nm^RESULT^정화시간^멸균품내역^이상무^시작자ID^시작자ID^종료자ID^종료자ID^Chemical indicator Internal^Chemical indicator External^Incubator 시간^Incubator 확인자ID^Incubator 확인자ID^결과확인시간^결과확인자ID^결과확인자ID^reading^특기사항^담당자ID^담당자ID^기관코드^작업일자^고정자산코드^물품구분^사용
시간^노출온도^비고" colsep="^" colwidth="36, 129, 75, 55, 70, 70, 55, 83, 100, 73, 55, 192, 46, 80, 70, 80, 70, 60, 60, 100, 160, 169, 130, 120, 120, 120, 100, 100, 120, 100, 100, 100, 130, 39, 100, 250" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:205px; top:111px; width:985px; height:623px; ">
- <col ref="usetims" format="########" _key="true" style="left:20px; top:23px; width:36px; height:23px; text-align:center; "/>
- <col ref="csrfixasetmd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/rscmeqmdlist">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="expsurtm" format="hh:nn:ss" maxlength="6" style="text-align:right; "/>
- <col ref="dinftmpr" maxlength="4" style="text-align:right; "/>
- <col ref="starttm" type="input" format="hh:nn:ss" style="text-align:right; "/>
- <col ref="endtm" type="input" format="hh:nn:ss" style="text-align:right; "/>
- <col ref="funtngtm" format="hh:nn:ss" style="text-align:right; "/>
- <col ref="biindflag" type="combo" visibility="visible">
- <choices>
- <itemset nodeset="/root/init/biindflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="biindflagnm" visibility="hidden"/>
- <col id="bowdicflag" ref="bowdicflag" type="combo" visibility="visible">
- <choices>
- <itemset nodeset="/root/init/bowdicflag1">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="purfctm" type="input" maxlength="8" style="text-align:right; "/>
- <col ref="dinfitemspec" type="inputbutton" maxlength="1000"/>
- <col checkvalue="Y,N" ref="nowrongyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="userid" type="inputbutton" maxlength="10"/>
- <col ref="useridnm"/>
- <col ref="endpsnid" type="inputbutton" maxlength="10"/>
- <col ref="endpsnnm"/>
- <col ref="cheindint" type="input" visibility="hidden" maxlength="24"/>
- <col ref="cheindext" type="input" visibility="hidden" maxlength="24"/>
- <col ref="incubtm" type="input" visibility="hidden" format="hh:nn"/>
- <col ref="incubcnfmr" type="inputbutton" visibility="hidden" maxlength="10"/>
- <col ref="incubcnfmrnm" visibility="hidden"/>
- <col ref="rsltcnfmtm" type="input" format="hh:nn"/>
- <col ref="rsltcnfmpsn" type="inputbutton" maxlength="10"/>
- <col ref="rsltcnfmpsnnm"/>
- <col ref="reading" type="input" visibility="hidden" maxlength="24"/>
- <col ref="spclmentfact" type="input" visibility="hidden" maxlength="36"/>
- <col ref="chrgid" type="inputbutton" visibility="hidden" maxlength="10"/>
- <col ref="chrgnm" visibility="hidden"/>
- <col ref="instcd" type="input" visibility="hidden" maxlength="3" _key="true"/>
- <col class="input_default" ref="workdd" type="inputdate" visibility="hidden" _key="true"/>
- <col ref="fixasetcd" type="input" visibility="hidden" maxlength="20" _key="true"/>
- <col ref="goodflag" type="input" visibility="hidden" maxlength="1" _key="true"/>
- <col disabled="true" ref="usetm" visibility="hidden" format="hh:nn"/>
- <col ref="expsurtmpr" type="input" visibility="hidden" maxlength="4"/>
- <col ref="cmt" type="input" maxlength="100"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- fCheckTime("usetm");
- fCheckTime("funtngtm");
- fCheckTime("expsurtm");
- // fCheckTime("purfctm");
- fCheckTime("totm");
- fCheckTime("incubtm");
- fCheckTime("rsltcnfmtm");
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.property("instcd") = cmb_instcd.value;
- model.property("dutplcecd") = getUserInfo("dutplcecd");
- model.property("dutplcenm") = getUserInfo("dutplcenm");
- clearParameter("param");
- if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("userid")) {//작동자 ID 버튼을 눌렀을 때
- modal("SPMNG01000");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("userid")) = model.property("userid");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("useridnm")) = model.property("usernm");
- }
- else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("endpsnid")) {//종료자ID 버튼을 눌렀을 때
- modal("SPMNG01000");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("endpsnid")) = model.property("userid");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("endpsnnm")) = model.property("usernm");
- }
- else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("incubcnfmr")) {//Incubator 확인자ID 버튼을 눌렀을 때
- modal("SPMNG01000");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("incubcnfmr")) = model.property("userid");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("incubcnfmrnm")) = model.property("usernm");
- }
- else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("rsltcnfmpsn")) {//결과확인자ID 버튼을 눌렀을 때
- modal("SPMNG01000");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("rsltcnfmpsn")) = model.property("userid");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("rsltcnfmpsnnm")) = model.property("usernm");
- }
- else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("chrgid")) {//담당자ID 버튼을 눌렀을 때
- modal("SPMNG01000");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgid")) = model.property("userid");
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgnm")) = model.property("usernm");
- }
- else if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("dinfitemspec")){
- clearParameter("dutycd");
- var dutycd = model.getValue("/root/send/dutycd");
- setParameter("dutycd", dutycd);
- modal("SPMNG00700");
-
- if(grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinfitemspec")) !=""){
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinfitemspec")) = (grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinfitemspec"))+"\n"+getParameter("param"));
- }else{
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinfitemspec")) = getParameter("param");
- }
- grd_rsdhdinflist.resizeCells();
- }
- model.property("instcd") = "";
- model.property("dutplcecd") = "";
- model.property("dutplcenm") = "";
- grd_rsdhdinflist.rowStatus(grd_rsdhdinflist.row) = 2
- grd_rsdhdinflist.refresh();
-
- // else if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("csrfixasetmdnm")){
- // misfOpenPopUpList("42", grd_rsdhdinflist, "", "fixasetcd,csrfixasetmd,csrfixasetmdnm,expsurtm,dinftmpr", grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) + "," + grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")),"instcd,fixasetcd");
- // //rszfOpenPopUpListByWndName(grd_rsdhdinflist,"","csrfixasetmd,expsurtm,dinftmpr","SPRSD00300", "instcd,fixasetcd", sins+ "," + sfix, "Y");
- // }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var starttm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("starttm"));
- var endtm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("endtm"));
-
- if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("starttm")) {
-
- if(starttm.length < 6) {
- messageBox("시작시간 hh:mm:ss 시:분:초 자릿수가 맞지않습니다.", "E");
- grd_rsdhdinflist.col = grd_rsdhdinflist.colRef("starttm");
- return;
- }
- }
- if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("endtm")){
- if(endtm.length < 6) {
- messageBox("종료시간 hh:mm:ss 시:분:초 자릿수가 맞지않습니다.", "E");
- grd_rsdhdinflist.col = grd_rsdhdinflist.colRef("endtm");
- return;
- }
- }
- var fixasetcd = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
- var csrfixasetmd = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("csrfixasetmd"));
- if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("csrfixasetmd")) {
-
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("expsurtm")) = model.getValue("/root/main/rscmeqmdlist[csrfixasetmd='"+csrfixasetmd+"']/expsurtm");
-
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinftmpr")) = model.getValue("/root/main/rscmeqmdlist[csrfixasetmd='"+csrfixasetmd+"']/dinftmpr");
-
- }
-
- if(starttm != "" && endtm != "") {
-
- grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("funtngtm")) = subTm(starttm, endtm);
- }
- grd_rsdhdinflist.rowStatus(grd_rsdhdinflist.row) = 2
- grd_rsdhdinflist.refresh();
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|