123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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 xmlns="">
- <main>
- <cond>
- <wardcd/>
- <searchfromdd/>
- <searchtodd/>
- <userid/>
- <usernm/>
- <bspntcd/>
- <srchflag>T</srchflag>
- <saveflag/>
- </cond>
- <nursebasicinfo>
- <info/>
- </nursebasicinfo>
- <forminfo>
- <info>
- <roomcd/>
- <hngnm/>
- <sexage/>
- <pid/>
- <indd/>
- <cretno/>
- <instcd/>
- <seqno/>
- <orddeptcd/>
- <orddeptnm/>
- <diagcd/>
- <termengnm/>
- <termhngnm/>
- <timsval01/>
- <timsval02/>
- <timsval04/>
- <clsgrupkind/>
- <rgstdd/>
- <rgstno/>
- <rgsthistno/>
- <appdt/>
- <apprid/>
- <appdeptcd/>
- <appdeptnm/>
- <hrwshappstat/>
- <bathappstat/>
- <execdt/>
- <execrid/>
- <execdeptcd/>
- <execdeptnm/>
- <hrwshexecstat/>
- <bathexecstat/>
- <hrwshremcnts/>
- <bathremcnts/>
- <status/>
- </info>
- </forminfo>
- </main>
- <init>
- <wardcdgrup>
- <wardcd/>
- <wardnm/>
- </wardcdgrup>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- <detlgrup>
- <!-- 중증 분류 -->
- <detlgruplist/>
- </detlgrup>
- <A0078list/>
- </init>
- <send/>
- <temp>
- <popupmenu>
- <item>
- <name>추가시행등록</name>
- <func>fInsExecInfo</func>
- </item>
- <item>
- <name>추가시행수정</name>
- <func>fSetExecInfo</func>
- </item>
- </popupmenu>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </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"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- var ref = "/root/main/nursebasicinfo/info";
- var saveFlag = "";
-
- function fInitialize(){
- var menuParam = getScreenMenuParameter();
- var openerParam = opener.javascript.getParameter("SMMNR08200_saveflag");
-
- if( isNull(menuParam) ) saveFlag = openerParam;
- else saveFlag = menuParam;
-
- //saveFlag = "E"; //@ test를 위해 고정값 설정 - 삭제할 것!!!!!!!!!!!!!!!
-
- //오늘 날짜로 초기화 하는 부분.(조회일자를 default로 오늘 날짜로 선택함)
- var currDate;
- currDate = getCurrentDate();
-
- var addDy;
- addDy = currDate.toDate().getAddDate(-1,"D");
- addDy = addDy.getDateFormat("YYYYMMDD");
-
- if( saveFlag == "E" ){
- //기본간호 mode
- //기본간호 수행모드
- document.title = "기본간호수행";
- cap_title.attribute("text") = "기본간호 수행";
-
- btn_app.visible = false;
- btn_exec.visible = true;
- btn_addexec.visible = true;
- grd_nursebasic.colDisabled (13) = true;
- grd_nursebasic.colDisabled (14) = true;
-
- addDy = currDate;
-
- }else{
- //병동간호 mode(신청)
- //기본간호 신청모드
- document.title = "기본간호신청";
- cap_title.attribute("text") = "기본간호 신청";
-
- btn_app.visible = true;
- btn_exec.visible = false;
- btn_addexec.visible = false;
- grd_nursebasic.colDisabled (16) = true;
- grd_nursebasic.colDisabled (17) = true;
-
- addDy = currDate.toDate().getAddDate(-1,"D");
- addDy = addDy.getDateFormat("YYYYMMDD");
- }
-
- //간호신청/수행 란은 merge되지 않도록 함
- for(i=12;i<=17;i++){
- grd_nursebasic.mergeCol(i) = false;
- }
-
-
- model.setValue("/root/main/cond/searchfromdd", addDy );
- model.setValue("/root/main/cond/searchtodd", getCurrentDate() );
- model.setValue("/root/main/cond/wardcd", getUserInfo("dutunitcd")); //로그인한 사원의부서 default //getUserInfo("dutplcecd")
- model.setValue("/root/main/cond/bspntcd", "01,02,03,04,05,06");
- //model.setValue("/root/main/cond/srchflag", "A"); //조회모드(A:신청모드, E:수행저장모드)
- model.setValue("/root/main/cond/userid", getUserId());
- model.setValue("/root/main/cond/usernm", getUserName());
- model.setValue("/root/main/cond/saveflag", ""); //저장모드 '메뉴파라메터'에 의해 결정(A:신청모드, E:수행저장모드)
-
- //병동 조회 ->
- if( !submit("TRMNW04003") ){ //병동, 진료과 조회 submit("TRMNW00101")
- messageBox( "병동 리스트 조회를", "E009"); //실패
- return;
- }
-
- var wardNodes = instance1.selectNodes("/root/init/wardcdgrup/wardcdgruplist");
- if( wardNodes.length > 0 ){
- model.makeValue("/root/init/wardcdgrup/wardcdgruplist[" + (wardNodes.length+1) + "]/wardnm", "전체병동");
- model.makeValue("/root/init/wardcdgrup/wardcdgruplist[" + (wardNodes.length+1) + "]/wardcd", "1000000000");
- }
- cmb_wardcd.refresh();
-
- //중증 분류 조회 ->
- model.makeValue("/root/send/cond/recflag", "1");
- model.makeValue("/root/send/cond/clsflag", "4");
- model.makeValue("/root/send/cond/fromdd", currDate);
-
- if( !submit("TRMNR00404") ){ //TRMNR08201
- messageBox( "중증분류 조회를", "E009"); //실패
- return;
- }
-
- //기간 내 환자 및 신청정보 조회 ->
- if ( !isNull(model.getValue("/root/main/cond/wardcd")) ){
- fGetBasicNursePatList();
- }
- }
-
- function fGetBasicNursePatList(){
- if( !isNull(model.getValue("/root/main/cond/wardcd")) ){
- if( !isRequiredControls("ipt_searchfromdd","ipt_searchtodd","cmb_wardcd") ){
- return;
- }
- /*
- if( getDateInterval( model.getValue("/root/main/cond/searchfromdd"), model.getValue("/root/main/cond/searchtodd") ) > '7' ){
- messageBox( "최대 조회기간은 1주일입니다.", "I007");//확인하십시오
- return;
- }
- */
- model.removenode("/root/send/cond");
- model.makeNode("/root/send/cond");
- model.copyNode("/root/send/cond", "/root/main/cond");
- /*
- model.makeValue("/root/send/searchfromdd",model.getValue("/root/main/cond/searchfromdd") );
- model.makeValue("/root/send/searchtodd",model.getValue("/root/main/cond/searchtodd") );
- model.makeValue("/root/send/wardcd",model.getValue("/root/main/cond/wardcd") );
- model.makeValue("/root/send/bspntcd",model.getValue("/root/main/cond/bspntcd") );
- model.makeValue("/root/send/srchflag",model.getValue("/root/main/cond/srchflag") );
- model.makeValue("/root/send/saveflag",model.getValue("/root/main/cond/saveflag") );
- */
- //submit("TRMNR04112");
- submit("TRMNR08202");
- //fGridColorChange();
- }
-
- }
-
- /* 사용안함 */
- function fGridColorChange(){
- var nodeList1 = instance1.selectNodes("/root/main/nursebasicinfo/info/timsval01");
- var nodeList2 = instance1.selectNodes("/root/main/nursebasicinfo/info/timsval02");
- var nodeList3 = instance1.selectNodes("/root/main/nursebasicinfo/info/timsval04");
- var row = grd_nursebasic.fixedRows;
- var color ="";
- var rowidx = 0;
-
-
- if ( nodeList1 != null && nodeList1.length > 0 ){
- for ( var idx = 0 ; idx < nodeList1.length ; idx++ ){
- rowidx = 0;
- rowidx = idx+row;
- if( nodeList1.item(idx).value >= '3' ){
- grd_nursebasic.cellStyle("background-color", rowidx, 6) = "#FFFF00";
- } else {
-
- grd_nursebasic.cellStyle("background-color", rowidx, 6) = "#f2f2f2";
- }
- }
- }
-
- if ( nodeList2 != null && nodeList2.length > 0 ){
- for ( var idx = 0 ; idx < nodeList2.length ; idx++ ){
- rowidx = 0;
- rowidx = idx+row;
- if( nodeList2.item(idx).value >= '3' ){
- grd_nursebasic.cellStyle("background-color", rowidx, 7) = "#FFFF00";
- } else {
- grd_nursebasic.cellStyle("background-color", rowidx, 7) = "#f2f2f2";
- }
- }
- }
- if ( nodeList3 != null && nodeList3.length > 0 ){
- for ( var idx = 0 ; idx < nodeList3.length ; idx++ ){
- rowidx = 0;
- rowidx = idx+row;
-
- if( nodeList3.item(idx).value >= '3' ){
- grd_nursebasic.cellStyle("background-color", rowidx, 8) = "#FFFF00";
- } else {
- grd_nursebasic.cellStyle("background-color", rowidx, 8) = "#f2f2f2";
- }
- }
- }
-
- model.refresh();
- }
-
- /* 신청, 수행 정보를 저장한다. */
- function fSaveInfo(flag, qestyn){
- if( isNull(qestyn) ) qestyn = "Y";
-
- if( qestyn == "Y" ){
- var saveDataNodes = instance1.selectNodes("/root/main/nursebasicinfo/info[status!='-']");
- if( saveDataNodes.length <= 0 ){
- messageBox( "저장할 데이터가", "I004"); //없습니다
- return;
- }
- }
-
- model.removeNodeset("root/send/nursebasicinfo");
- model.makeNode("root/send/nursebasicinfo");
- model.copyNode("root/send/nursebasicinfo", "/root/main/nursebasicinfo");
- model.setValue("/root/send/cond/saveflag", flag); //저장모드(A:신청모드, E:수행저장모드)
-
- if( submit("TXMNR08201", false) ){
- grd_nursebasic.clearStatus();
- grd_nursebasic.refresh();
- return true;
- }else{
- return false;
- }
- }
-
-
- function fInsExecInfo(){
- model.setValue("/root/main/forminfo/info/status", "I"); //추가시행에서 저장 시 신규등록임
- modal("SPMNR08300");
- }
-
- function fSetExecInfo(){
- model.setValue("/root/main/forminfo/info/status", "U"); //추가시행 수정
- modal("SPMNR08300");
- }
-
- ]]>
- </script>
- <submission id="TRMNR04112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/nursebasicinfo"/>
- <!-- 병동 부서 조회 -->
- <!-- <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init"/> -->
- <submission id="TRMNW04003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/wardcdgrup"/>
- <!-- 분류구분 조회 -->
- <submission id="TRMNR00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/init/detlgrup"/>
- <!--<submission id="TRMNR08201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/init/pntgrup"/>-->
- <!-- 환자 리스트 조회 -->
- <submission id="TRMNR08202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/nursebasicinfo"/>
- <!-- 저장 -->
- <submission id="TXMNR08201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/nursebasicinfo"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- grd_nursebasic.explorerbar = "sortshow";
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:257px; height:14px; ">기본간호 신청</caption>
- </group>
- <group id="group5" class="datagrid2" scroll="auto" style="left:0px; top:13px; width:1195px; height:771px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <caption id="cap_searchtodd" class="search_name" style="left:211px; top:10px; width:89px; height:17px; ">조회일자 :</caption>
- <button id="button1" class="btn1_letter2" navindex="6" style="left:1041px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetBasicNursePatList();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1020px; y1:7px; x2:1020px; y2:29px; "/>
- <button id="button3" class="btn1_letter4" style="left:1102px; top:7px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "기본간호신청조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "") grd_nursebasic.saveExcel(fileName, "기본간호신청조회", false, false, "", "", false);
- ]]>
- </script>
- </button>
- <input id="ipt_searchfromdd" ref="/root/main/cond/searchfromdd" class="input_s_essential" disabled="true" navindex="1" inputtype="date" style="left:300px; top:9px; width:90px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:695px; top:11px; width:74px; height:17px; ">분류군 :</caption>
- <caption id="cap_wardcd" class="search_name" style="left:515px; top:11px; width:65px; height:17px; ">병동 :</caption>
- <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="input_s_essential" navindex="3" appearance="minimal" style="left:580px; top:10px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/wardcdgrup/wardcdgruplist">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetBasicNursePatList();
- ]]>
- </script>
- </select1>
- <input id="ipt_searchtodd" ref="/root/main/cond/searchtodd" class="input_s_essential" disabled="true" navindex="2" inputtype="date" style="left:405px; top:9px; width:90px; height:19px; "/>
- <caption id="caption4" style="left:390px; top:10px; width:15px; height:15px; text-align:center; ">-</caption>
- <select id="checkbox1" ref="/root/main/cond/bspntcd" navindex="4" overflow="visible" appearance="full" cols="10" sep="," style="left:770px; top:10px; width:240px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/detlgrup/detlgruplist">
- <label ref="bspntnm"/>
- <value ref="bspntcd"/>
- </itemset>
- </choices>
- </select>
- <select1 id="radio1" ref="/root/main/cond/srchflag" navindex="5" appearance="full" cols="3" overflow="visible" style="left:5px; top:10px; width:190px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>대상자(전체)</label>
- <value>T</value>
- </item>
- <item>
- <label>신청</label>
- <value>A</value>
- </item>
- <item>
- <label>수행</label>
- <value>E</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/main/cond/srchflag") == "T" ){
- ipt_searchfromdd.disabled = true;
- ipt_searchtodd.disabled = true;
- }else{
- ipt_searchfromdd.disabled = false;
- ipt_searchtodd.disabled = false;
- }
-
- fGetBasicNursePatList();
- ]]>
- </script>
- </select1>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:75px; "/>
- <datagrid id="grd_nursebasic" class="datagrid2" nodeset="/root/main/nursebasicinfo/info" caption="병실^성명^S/A^등록번호^입원일^HD^진료과^진단명^환자분류(중증도) 사정결과^환자분류(중증도) 사정결과^환자분류(중증도) 사정결과^환자분류(중증도) 사정결과^기본간호 신청^기본간호 신청^기본간호 신청^기본간호 수행^기본간호 수행^기본간호 수행^status^cretno^instcd^seqno^orddeptcd^diagcd^diaghngnm^rgstdd^rgstno^rgsthistno^apprid^appdeptcd^appdeptnm^execrid^execdeptcd^execdeptnm|병실^성명^S/A^등록번호^입원일^HD^진료과^진단명^분류결과^위생^영양^운동/활동^세발간호^목욕(전신)^신청일자^세발간호^목욕(전신)^수행일자^status^cretno^instcd^seqno^orddeptcd^diagcd^diaghngnm^rgstdd^rgstno^rgsthistno^apprid^appdeptcd^appdeptnm^execrid^execdeptcd^execdeptnm" colsep="^" colwidth="43, 50, 45, 60, 72, 43, 85, 135, 57, 38, 38, 62, 70, 70, 74, 70, 70, 74, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10" ellipsis="true" mergecells="byrestriccol" mergecellsfixedrows="byrowrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:80px; width:1195px; height:683px; ">
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="hd" style="text-align:right; "/>
- <col ref="orddeptnm"/>
- <col ref="diagengnm"/>
- <col ref="clsgrupkind" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/detlgrup/detlgruplist">
- <label ref="bspntnm"/>
- <value ref="bspntcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="timsval01" style="text-align:center; "/>
- <col ref="timsval02" style="text-align:center; "/>
- <col ref="timsval04" style="text-align:center; "/>
- <col ref="hrwshappstat" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="bathappstat" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="appdt" format="yyyy-mm-dd"/>
- <col ref="hrwshexecstat" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="bathexecstat" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="execdt" format="yyyy-mm-dd"/>
- <col ref="status" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="diagcd" visibility="hidden"/>
- <col ref="diaghngnm" visibility="hidden"/>
- <col ref="rgstdd" visibility="hidden"/>
- <col ref="rgstno" visibility="hidden"/>
- <col ref="rgsthistno" visibility="hidden"/>
- <col ref="apprid" visibility="hidden"/>
- <col ref="appdeptcd" visibility="hidden"/>
- <col ref="appdeptnm" visibility="hidden"/>
- <col ref="execrid" visibility="hidden"/>
- <col ref="execdeptcd" visibility="hidden"/>
- <col ref="execdeptnm" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var grdRow = grd_nursebasic.row;
- var iRow = grd_nursebasic.row - grd_nursebasic.fixedRows + 1;
- var iCol = grd_nursebasic.col; //12~13 신청, 14~15 수행
- var rowStatus = "";
- var chgStatus = "";
-
- if( iRow > 0 && iRow <= grd_nursebasic.rows ){
- var appDT = model.getValue(ref + "[" + iRow + "]/appdt");
- var execDT = model.getValue(ref + "[" + iRow + "]/execdt");
- var appHrStat = model.getValue(ref + "[" + iRow + "]/hrwshappstat");
- var appBtStat = model.getValue(ref + "[" + iRow + "]/bathappstat");
- var execHrStat = model.getValue(ref + "[" + iRow + "]/hrwshexecstat");
- var execBtStat = model.getValue(ref + "[" + iRow + "]/bathexecstat");
- rowStatus = model.getValue(ref + "[" + iRow + "]/status");
-
- //신청 변경
- if( iCol == grd_nursebasic.colRef("hrwshappstat") || iCol == grd_nursebasic.colRef("bathappstat") ){
- //이미 수행한 건이면 신청변경 불가
- if( execHrStat == "Y" || execBtStat == "Y" ){
- messageBox( "이미 수행하여 수정할 수", "I004"); //없습니다
-
- if( iCol == grd_nursebasic.colRef("hrwshappstat") ){
- if( appHrStat == "Y" ) model.setValue(ref + "[" + iRow + "]/hrwshappstat", "N");
- else if( appHrStat == "N" ) model.setValue(ref + "[" + iRow + "]/hrwshappstat", "Y");
- }else if( iCol == grd_nursebasic.colRef("bathappstat") ){
- if( appBtStat == "Y" ) model.setValue(ref + "[" + iRow + "]/bathappstat", "N");
- else if( appBtStat == "N" ) model.setValue(ref + "[" + iRow + "]/bathappstat", "Y");
- }
- chgStatus = "-";
-
- return;
- }
-
- if( appHrStat == "Y" && appBtStat == "Y" ){
- chgStatus = "I"; //appdt system time으로 update
- }
- else if( appHrStat == "N" && appBtStat == "N" ){
- if( rowStatus != "I" ) chgStatus = "D"; //appdt null 으로 update
- else chgStatus = "-"; //변경했다가 취소하는경우
- }
- else {
- if( isNull(appDT) ){
- chgStatus = "I"; //appdt system time으로 update
- }else{
- if( rowStatus != "I" ) chgStatus = "U"; //appdt update하지 않음
- }
- }
- }
-
- //수행 변경
- if( iCol == grd_nursebasic.colRef("hrwshexecstat") || iCol == grd_nursebasic.colRef("bathexecstat") ){
- if( execHrStat == "Y" && execBtStat == "Y" ){
- chgStatus = "I"; //appdt system time으로 update
- }
- else if( execHrStat == "N" && execBtStat == "N" ){
- if( rowStatus != "I" ) chgStatus = "D"; //appdt null 으로 update
- else chgStatus = "-"; //변경했다가 취소하는경우
- }else {
- if( isNull(execDT) ){
- chgStatus = "I"; //appdt system time으로 update
- }else{
- if( rowStatus != "I" ) chgStatus = "U"; //appdt update하지 않음
- }
- }
- }
- model.setValue(ref + "[" + iRow + "]/status", chgStatus);
- //if( isNull(appDT) ) grd_nursebasic.rowStatus(grdRow) = 1; //insert status
- //else{
- if( chgStatus == "I" ) grd_nursebasic.rowStatus(grdRow) = 1; //insert status
- else if( chgStatus == "U" ) grd_nursebasic.rowStatus(grdRow) = 2; //update status
- else if( chgStatus == "D" ) grd_nursebasic.rowStatus(grdRow) = 2; //update status
- else grd_nursebasic.rowStatus(grdRow) = 0; //delete status
- //}
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var grdRow = grd_nursebasic.row;
- var iRow = grd_nursebasic.row - grd_nursebasic.fixedRows + 1;
- var iCol = grd_nursebasic.col; //12~13 신청, 14~15 수행
- var appHrStat = model.getValue(ref + "[" + iRow + "]/hrwshappstat");
- var appBtStat = model.getValue(ref + "[" + iRow + "]/bathappstat");
- var execHrStat = model.getValue(ref + "[" + iRow + "]/hrwshexecstat");
- var execBtStat = model.getValue(ref + "[" + iRow + "]/bathexecstat");
-
- if( iRow > 0 && iRow <= grd_nursebasic.rows ){
- //신청 없이 수행한 것은 추가수행임. 추가수행 정보를 수정하기위해 화면 호출
- if( (appHrStat == "N" && execHrStat == "Y") || (appBtStat == "N" && execBtStat == "Y") ){
- model.setValue("/root/main/forminfo/info/status", "U"); //추가시행에서 저장 시 정보 수정임
- modal("SPMNR08300");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if( saveFlag != "E" ) return;
-
- if(grd_nursebasic.isCell(event.target) && grd_nursebasic.mouseRow >= grd_nursebasic.fixedrows){
- setPopupMenu("grd_nursebasic", false, "/root/temp/popupmenu/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_nursebasic.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_3" style="x1:0px; y1:764px; x2:1195px; y2:764px; "/>
- <button id="btn_app" class="btn2_letter8" style="left:1086px; top:54px; width:108px; height:19px; ">
- <caption>기본간호신청저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveInfo("A");
-
- ]]>
- </script>
- </button>
- <button id="btn_exec" class="btn2_letter8" style="left:996px; top:54px; width:108px; height:19px; ">
- <caption>기본간호시행등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveInfo("E");
- ]]>
- </script>
- </button>
- <button id="btn_addexec" class="btn2_letter6" style="left:1107px; top:54px; width:86px; height:19px; ">
- <caption>추가시행등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/forminfo/info/status", "I"); //추가시행에서 저장 시 신규등록임
- modal("SPMNR08300");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|