1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>행위재료마스터화면</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <act>
- <actlist/>
- </act>
- <actmas>
- <actmaslist/>
- </actmas>
- <actmatrinfo>
- <actmatrlist/>
- </actmatrinfo>
- <actmatrhistinfo>
- <actmatrhistlist/>
- </actmatrhistinfo>
- <actmatrcdinfo>
- <actmatrcdcomnlist/>
- <actmatrcddetllist/>
- <historylist/>
- </actmatrcdinfo>
- </main>
- <send>
- <actmatrlist>
- <instcd/>
- <actcd/>
- <actnm/>
- <actdeptcd/>
- <actdeptnm/>
- <actprcpdrid/>
- <actprcpdrnm/>
- <stodd/>
- <todd/>
- <fromdd/>
- <efromdd/>
- <deptflag/>
- <hngnm/>
- <engnm/>
- <goodcd/>
- <goodnm/>
- <goodflag/>
- <allsizespecid/>
- </actmatrlist>
- <actmatrhistlist/>
- <goodcdlist/>
- <reslist>
- <actcd/>
- <actdeptnm/>
- <actdeptcd/>
- <actprcpdrid/>
- <actprcpdrnm/>
- <hngnm/>
- <fromdd/>
- <todd/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- </reslist>
- <srchlist/>
- </send>
- <init/>
- <temp>
- <insert/>
- <update/>
- <delete/>
- <end/>
- </temp>
- <save>
- <actmasterlist/>
- <appdd/>
- </save>
- <hidden>
- <actmas>
- <actmaslist/>
- <actsublist/>
- <templist/>
- </actmas>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TXPIC90003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/actmasterlist" resultref="/root/temp/insert"/>
- <submission id="TRPIC90007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcdlist" resultref="/root/main/"/>
- <submission id="TXPIC90004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save" resultref="/root/temp/update"/>
- <submission id="TRPIC90008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/actmatrlist" resultref="/root/main/actmatrinfo"/>
- <submission id="TRPIC90009" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/actmatrhistlist" resultref="/root/main/actmatrhistinfo"/>
- <submission id="TXPIC90011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/actmasterlist" resultref="/root/temp/end"/>
- <submission id="TRPIC90013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchlist" resultref="/root/hidden/actmas"/>
- <submission id="TXPIC90014" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/actmasterlist" resultref="/root/temp/delete"/>
- <submission id="TRPIC90015" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/resData" resultref="/root/hidden/actmas"/>
- <submission id="TXPIC90016" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/actmasterlist" resultref="/root/temp/dsave"/>
- <submission id="TRPIC90017" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchlist" resultref="/root/hidden/actmas"/>
- </model>
- <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="../../../pam/actmatrweb/js/SMPIC90000.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript">
- <![CDATA[
- // var actflag = null;
- var Gfocus = "";
-
- function fInitialize()
- {
-
- model.removeNodeset("/root/main/actmatrinfo/actmatrlist");
- model.removeNodeset("/root/main/actmatrhistinfo/actmatrhistlist");
- model.removeNodeset("/root/hidden/rscdgood/rscdgoodlist");
- model.removeNodeset("/root/main/actmatrcdinfo/actmatrcdcomnlist");
- model.removeNodeset("/root/main/actmatrcdinfo/actmatrcddetllist");
- model.removeNodeset("/root/main/actmatrcdinfo/historylist");
-
- model.setValue(ipt_actcd.attribute("ref") , "");
- model.setValue(ipt_actdeptcd.attribute("ref") , "");
- model.setValue(ipt_actdeptnm.attribute("ref") , "");
- model.setValue(ipt_actnm.attribute("ref") , "");
-
- model.makeValue("/root/send/actmatrlist/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
-
- btn_ShrtAx.selected = true;
- btn_goodinsert.disabled = true;
- //btn_histsave.disabled = true;
- btn_rowdel.disabled = true;
- btn_save.disabled = true;
- btn_tmpsave.disabled = true;
- btn_del.disabled = true;
- btn_actend.disabled = true;
-
- model.refresh();
-
- }
-
- function fsetting()
- {
- var flag = "Y", rowno = "";
-
- if(opt_actcd.value !=""){
-
- for(i=grd_gresult.fixedRows; i < grd_gresult.rows;i++){
- if(grd_gresult.valueMatrix(i,grd_gresult.colRef("select")) == "Y"){
- for(var j=grd_actmaster.fixedRows; j < grd_actmaster.rows;j++){
- var srcgoodcd = grd_gresult.valueMatrix(i,grd_gresult.colRef( "goodcd"));
- var goodcd = grd_actmaster.valueMatrix(j,grd_actmaster.colRef("goodcd"));
- var srcallsizespecid = grd_gresult.valueMatrix( i,grd_gresult.colRef( "allsizespecid"));
- var allsizespecid = grd_actmaster.valueMatrix(j,grd_actmaster.colRef("allsizespecid"));
- if (srcgoodcd == goodcd && srcallsizespecid == allsizespecid){
- flag = "N";
- rowno = rowno + "," + i; // 이미 존재하는 코드 check
- }
- }
- if (flag == "Y"){
- var pgoodcd = grd_gresult.valueMatrix(i,grd_gresult.colRef("goodcd"));
- var pallsizeid = grd_gresult.valueMatrix(i,grd_gresult.colRef("allsizespecid"));
- var pgoodnm = grd_gresult.valueMatrix(i,grd_gresult.colRef("goodnm"));
- var pgoodmodel = grd_gresult.valueMatrix(i,grd_gresult.colRef("goodmodel"));
- var pgoodspec = grd_gresult.valueMatrix(i,grd_gresult.colRef("goodspec"));
- var pmaincustlastsuplplce = grd_gresult.valueMatrix(i,grd_gresult.colRef("maincustlastsuplplce"));
- var pmaincustlastsuplplcenm = grd_gresult.valueMatrix(i,grd_gresult.colRef("maincustlastsuplplcenm"));
- var psuppcustcd = grd_gresult.valueMatrix(i,grd_gresult.colRef("suppcustcd"));
- var psuppcustnm = grd_gresult.valueMatrix(i,grd_gresult.colRef("suppcustnm"));
- var pedicd = grd_gresult.valueMatrix(i,grd_gresult.colRef("edicd"));
- var pdeliveunit = grd_gresult.valueMatrix(i,grd_gresult.colRef("deliveunit"));
- var pgoodunitcost = grd_gresult.valueMatrix(i,grd_gresult.colRef("goodunitcost"));
- var pdrugqty = grd_gresult.valueMatrix(i,grd_gresult.colRef("drugqty"));
- var pactcd = model.getValue(opt_actcd.attribute("ref"));
-
- var pinstcd = getUserInfo("dutplceinstcd"); //기관 설정
- var pactprcpdrid = model.getValue(opt_actprcpdrid.attribute("ref"));
- var pactdeptcd = model.getValue(opt_actdeptcd.attribute("ref"));
- var ptodd = model.getValue(opt_todd.attribute("ref"));
- var pfromdd = model.getValue(opt_fromdd.attribute("ref"));
- //부서구분 추가
- var pdeptflag = model.getValue(opt_deptflag.attribute("ref"));
-
- grd_actmaster.addRow(false);
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("rowstat")) = "1";
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("goodcd")) = pgoodcd;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("allsizespecid")) = pallsizeid;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("goodnm")) = pgoodnm;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("goodmodel")) = pgoodmodel;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("goodspec")) = pgoodspec;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("maincustlastsuplplce")) = pmaincustlastsuplplce;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("maincustlastsuplplcenm")) = pmaincustlastsuplplcenm;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("suppcustcd")) = psuppcustcd;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("suppcustnm")) = psuppcustnm;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("edicd")) = pedicd;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("deliveunit")) = pdeliveunit;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("goodunitcost")) = pgoodunitcost;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("actcd")) = pactcd;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("instcd")) = pinstcd;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("actprcpdrid")) = pactprcpdrid;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("actdeptcd")) = pactdeptcd;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("todd")) = ptodd;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("fromdd")) = pfromdd;
- //부서구분 추가
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("deptflag")) = pdeptflag;
- grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("qty")) = pdrugqty;
-
- var status = grd_actmaster.valueMatrix(grd_actmaster.row, grd_actmaster.colRef("m")); //상태설정
-
- /* if(actflag == 1){
- grd_actmaster.rowStatus(grd_actmaster.row) = 1;
- }else{
- grd_actmaster.rowStatus(grd_actmaster.row) = 0;
- }*/
- }
- grd_gresult.valueMatrix(i,grd_gresult.colRef("select")) = "N";
- flag = "Y";
- }
- }
- if (rowno != ""){
- messageBox("물품조회 "+rowno.substr(1, rowno.length-1)+"번째에 동일 물품이 존재합니다.", "I");
- }
- }else{
- messageBox("행위처방코드와 물품코드는","I003");
- }
- grd_actmaster.refresh();
- }
-
- function fmatch()
- {
- var actcd = getParameter("calcscorcd"); //parameter값으로 설정
- var userid = getParameter("actprcpdrid");
- var usernm = getParameter("actprcpdrnm");
- var deptcd = getParameter("actdeptcd");
- var deptnm = getParameter("actdeptnm");
- var fromdd = getParameter("fromdd");
- var todd = getParameter("todd");
-
- model.setValue("/root/send/reslist/actcd" , actcd ); //값 셋팅해주는 역할
- model.setValue("/root/send/reslist/actdeptcd" , deptcd );
- model.setValue("/root/send/reslist/actdeptnm" , deptnm );
- model.setValue("/root/send/reslist/actprcpdrid" , userid );
- model.setValue("/root/send/reslist/actprcpdrnm" , usernm );
- model.setValue("/root/send/reslist/fromdd" , fromdd );
- model.setValue("/root/send/reslist/todd" , todd );
-
- opt_actcd.refresh();
- opt_actdeptnm.refresh();
- opt_actdeptcd.refresh();
- opt_actprcpdrid.refresh();
- opt_actprcpdrnm.refresh();
- opt_fromdd.refresh();
- opt_todd.refresh();
- }
-
- function fset(){
- var userid = getParameter("actprcpdrid");
- var usernm = getParameter("actprcpdrnm");
- var deptcd = getParameter("actdeptcd");
- var deptnm = getParameter("actdeptnm");
- model.setValue("/root/send/actmatrlist/actdeptcd",deptcd ); //값 셋팅해주는 역할
- model.setValue("/root/send/actmatrlist/actdeptnm",deptnm );
- model.setValue("/root/send/actmatrlist/actprcpdrid",userid );
- model.setValue("/root/send/actmatrlist/actprcpdrnm",usernm );
-
- ipt_actdeptcd.refresh();
- ipt_actdeptnm.refresh();
- ipt_actprcpdrid.refresh();
- ipt_actprcpdrnm.refresh();
- }
- function fSave(msg, stat){
-
- var updtdata = "", rowno = "";
- for(i=0;i<grd_actmaster.rows;i++){
-
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("instcd" )) = model.getValue(ipt_instcd.attribute("ref"));
- // grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actdeptcd" )) = model.getValue(opt_actdeptcd.attribute("ref"));
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actcd" )) = model.getValue(opt_actcd.attribute("ref"));
- // grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actprcpdrid")) = model.getValue(opt_actprcpdrid.attribute("ref"));
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("fromdd" )) = model.getValue(opt_fromdd.attribute("ref"));
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("todd" )) = model.getValue(opt_todd.attribute("ref"));
- // grd_actmaster.valueMatrix(i, grd_actmaster.colRef("deptflag" )) = model.getValue(opt_deptflag.attribute("ref"));
-
- if(grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actdeptcd")) == null || grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actdeptcd")) == ""){
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actdeptcd")) = "-"; // 시행부서 입력
- }
- if(grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actprcpdrid")) == null || grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actprcpdrid")) == ""){
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actprcpdrid")) = "00000"; // 행위처방의사
- }
- if(grd_actmaster.valueMatrix(i, grd_actmaster.colRef("deptflag")) == null || grd_actmaster.valueMatrix(i, grd_actmaster.colRef("deptflag")) == ""){
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("deptflag")) = "-"; // 부서구분코드
- }
-
- /* if (stat == "T"){
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("tmpflag" )) = "Y";
- }else{
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("tmpflag" )) = "N";
- } */
-
- if(grd_actmaster.valueMatrix(i,grd_actmaster.colRef("qty")) == "" || grd_actmaster.valueMatrix(i,grd_actmaster.colRef("qty")) == 0){
- rowno += "," + i;
- }
- }
-
- if (rowno != ""){
- messageBox(rowno.substr(1, rowno.length-1)+"번째건의 수량이 입력되지 ", "I011");
- return false;
- }
- if (msg == "저장") {
-
- updtdata = getGridUpdateData(grd_actmaster);
- if(updtdata == ""){
- messageBox(msg+"할 데이타가 ","E014");
- return false;
- }
-
- model.setValue("/root/save/actmasterlist", updtdata);
-
- } else {
-
- // updtdata = getGridUpdateData(grd_actmaster);
- // if(updtdata == ""){
- // messageBox(msg+"할 데이타가 ","E014");
- // return false;
- // }
- //
- // model.copyNode("/root/save/actmasterlist", updtdata);
-
- copyNodesetType("/root/save/actmasterlist" , "/root/main/actmatrcdinfo/actmatrcddetllist","replace");
- }
- }
- function fViewToggle(pCls) {
- var focus = "";
- if (pCls == 0) {
- focus = grd_actnmview.row;
- model.setFocus("grd_actnmview");
- grd_actnmview.row = focus;
- //grd_actnmview.dispatch("onclick");
- fSrchGood(grd_actnmview);
-
- } else {
- focus = grd_acthisview.row;
- model.setFocus("grd_acthisview");
- grd_acthisview.row = focus;
- //grd_acthisview.dispatch("onclick");
- fSrchGood(grd_acthisview);
- }
- }
- function fSrchCondInfo() {
- model.setValue(ipt_actcd.attribute("ref") , model.getValue(opt_actcd.attribute("ref") ));
- // model.setValue(ipt_actdeptcd.attribute("ref") , model.getValue(opt_actdeptcd.attribute("ref") ));
- // model.setValue(ipt_actdeptnm.attribute("ref") , model.getValue(opt_actdeptnm.attribute("ref") ));
- // model.setValue(ipt_actprcpdrid.attribute("ref") , model.getValue(opt_actprcpdrid.attribute("ref")));
- // model.setValue(ipt_actprcpdrnm.attribute("ref") , model.getValue(opt_actprcpdrnm.attribute("ref")));
-
- model.refresh();
- btn_actsearch.dispatch("DOMActivate");
- }
- function fSrchGood(pGrid) {
- var savestatcd = "";
- var tmpflag="", todd="",deptflag="";
- grd_actmaster.clearStatus();
- if (pGrid.rows - pGrid.fixedRows <= 0) return;
-
- model.copyNode("/root/send/goodcdlist", pGrid.nodeset + "[" + pGrid.row + "]");
- model.removeNode("/root/main/actmatrcdinfo");
- // model.makeNode("/root/main/actmatrcdinfo");
- //misfGridInit
-
- if(submit("TRPIC90007")) {
-
- todd = model.getValue("/root/send/goodcdlist/todd");
- if(todd != '99991231' ){
- grd_actmaster.colDisabled(grd_actmaster.colRef("qty")) = true;
- //fDisableCheck(true);
- }else{
- grd_actmaster.colDisabled(grd_actmaster.colRef("qty")) = false;
- //fDisableCheck(false);
- }
- model.makeNode("/root/main/actmatrcdinfo/actmatrcdcomnlist");
- model.copyNode("/root/main/actmatrcdinfo/actmatrcdcomnlist", pGrid.nodeset + "[" + pGrid.row + "]");
- //tmpflag = grd_actnmview.valueMatrix(grd_actnmview.row, grd_actnmview.colRef("tmpflag")).getTrim();
- //todd = grd_actnmview.valueMatrix(grd_actnmview.row, grd_actnmview.colRef("todd")).getTrim();
- //deptflag = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("deptflag")).getTrim();
- if(todd != '99991231' ){
- btn_del.disabled = true; // 삭제 비활성화
- btn_actend.disabled = true; // 행위종료 비활성화
- btn_goodinsert.disabled = true; // 물품추가 비활성화
- btn_rowdel.disabled = true; // 물품삭제 비활성화
- btn_save.disabled = true; // 저장 비활성화
- }else{
- btn_del.disabled = false; // 삭제 활성화
- btn_actend.disabled = false; // 행위종료 활성화
- btn_goodinsert.disabled = false; // 물품추가 활성화
- btn_rowdel.disabled = false; // 물품삭제 활성화
- btn_save.disabled = false; // 저장 비활성화
- }
-
- //부서구분 추가
- deptflag = pGrid.valueMatrix(pGrid.row,pGrid.colRef("deptflag")).getTrim();
-
- if (deptflag =="1") {
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/deptflagnm", "구매");
- } else if (deptflag =="2") {
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/deptflagnm", "약국");
- } else {
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/deptflagnm", "-");
- }
-
- // 그룹수가 내 싱글수가 조회화면 전달용
- model.setValue("/root/subsend/rscdgoodlist/actcd", model.getValue("/root/send/goodcdlist/actcd"));
- model.setValue("/root/subsend/rscdgoodlist/basedd", model.getValue("/root/send/goodcdlist/fromdd"));
- }
-
- /*
- if (tmpflag == "Y"){
- model.makeValue(opt_savestatcd.attribute("ref"), "T");
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "임시저장");
- }else if (tmpflag == "N"){
- model.makeValue(opt_savestatcd.attribute("ref"), "S");
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "저장");
-
- if(todd == '99991231' ){
- model.makeValue(opt_savestatcd.attribute("ref"), "S");
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "저장");
- }else{
- model.makeValue(opt_savestatcd.attribute("ref"), "H");
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "이력저장");
- }
-
- }else{
- if (grd_acthisview.rows - grd_acthisview.fixedRows != 0){
- model.makeValue(opt_savestatcd.attribute("ref"), "H");
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "이력저장");
- }
- }
- savestatcd = model.getValue(opt_savestatcd.attribute("ref"));
- if (savestatcd == "T"){ // 저장상태가 임시저장일 경우
- btn_tmpsave.disabled = false; // 임시저장 활성화
- btn_save.disabled = false; // 저장 활성화
- btn_histsave.disabled = true; // 이력저장 비활성화
- btn_rowdel.disabled = false; // 행삭제 활성화
- btn_goodinsert.disabled = false; // 행추가 활성화
- }else if (savestatcd == "S"){ // 저장상태가 저장일 경우{
- btn_tmpsave.disabled = true; // 임시저장 비활성화
- btn_save.disabled = false; // 저장 활성화
- btn_histsave.disabled = false; // 이력저장 활성화
- btn_rowdel.disabled = false; // 행삭제 활성화
- btn_goodinsert.disabled = false; // 행추가 활성화
- }else{
- btn_tmpsave.disabled = true; // 임시저장 비활성화
- btn_save.disabled = true; // 저장 비활성화
- btn_histsave.disabled = true; // 이력저장 비활성화
- btn_rowdel.disabled = true; // 행삭제 비활성화
- btn_goodinsert.disabled = true; // 행추가 비활성화
- }
- for(i=grd_actmaster.fixedRows;i<grd_actmaster.rows;i++){
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("tmpflag")) = savestatcd;
- }
- */
- model.refresh();
-
- // fActcdSearch(model.getValue(opt_actcd.attribute("ref")),
- // model.getValue(opt_hngnm.attribute("ref")));
- }
- function fSelectChoiDel(pGrid)
- {
- if (pGrid.rows - pGrid.fixedRows == 0){
- messageBox("처리할 데이타가 존재하지 ","I011");
- return;
- }
-
- if (pGrid.selectedRows > 0) {
- for ( var i=pGrid.selectedRows-1 ; i >= 0 ; i--){
- if (pGrid.valueMatrix(i, pGrid.colRef("rowstat")) == "1"){
- pGrid.deleteitem(pGrid.selectedRow(i));
- } else {
- pGrid.rowStatus(pGrid.selectedRow(i)) = "4";
- }
- }
- }
- pGrid.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="text-align:center; ">
- <output id="opt_deptflagnm" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/deptflagnm" visibility="hidden" appearance="output" style="left:757px; top:145px; width:13px; height:19px; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
- <caption id="caption18" class="cell_1" visibility="hidden" style="left:710px; top:145px; width:45px; height:19px; text-align:center; ">부서</caption>
- <button id="btn_actend" class="btn2_letter4" navindex="17" visibility="hidden" selected="true" style="left:987px; top:145px; width:64px; height:19px; ">
- <caption>행위종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_actnmview.rows - grd_actnmview.fixedRows == 0){
- messageBox("처리할 데이타가 존재하지 ","I011");
- return;
- }
- var toddvalue = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("todd"));
- var instvalue = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("instcd"));
- var actvalue = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("actcd"));
- var deptvalue = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("actdeptcd"));
- var dridvalue = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("actprcpdrid"));
- var drnmvalue = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("actprcpdrnm"));
- var fromvalue = grd_actnmview.valueMatrix(grd_actnmview.row, grd_actnmview.colRef("fromdd"));
- var tmpflag = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("tmpflag"));
-
- // model.makeValue("/root/send/srchlist/instcd",instvalue);
- // model.makeValue("/root/send/srchlist/actcd",actvalue);
- // model.makeValue("/root/send/srchlist/todd",toddvalue);
- // model.makeValue("/root/send/srchlist/actdeptcd",deptvalue);
- // model.makeValue("/root/send/srchlist/actprcpdrid",dridvalue);
- // model.makeValue("/root/send/srchlist/actprcpdrnm",drnmvalue);
- // model.makeValue("/root/send/srchlist/fromdd",fromvalue);
- if(tmpflag == "Y"){
- messageBox("임시저장한 행위코드는 종료를 ","E001");
- return;
-
- }else{
- var frddvalue = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("fromdd"));
- if(frddvalue == getCurrentDate()){
- messageBox("당일 등록한 행위코드는 종료를","E001");
- }else{
- var retMes = messageBox("처방집계시 행위재료코드와 참조할수 있는 물품마스터 코드가 종료됩니다.","Q009");
- // var retMes = messageBox("행위코드와 관련 데이터 사용이 불가합니다.행위코드 종료를","Q009");
- if ( retMes != 6) {
- return;
- }else{
- grd_actnmview.addStatus(grd_actnmview.row,"update");
- }
-
- model.setValue("/root/save/actmasterlist", grd_actnmview.getUpdateData());
- Gfocus = grd_actnmview.row;
-
- if (submit("TXPIC90011")){
- messageBox("행위 종료","I001");
- }else{
- messageBox("행위 종료","E009");
- }
- btn_actsearch.dispatch("DOMActivate");
- model.setFocus("grd_actnmview");
- grd_actnmview.row = Gfocus;
- //grd_actnmview.dispatch("onclick");
- fSrchGood(grd_actnmview);
-
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter2" navindex="15" visibility="hidden" style="left:1054px; top:145px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var retMes = "", tmpflag = grd_actnmview.valueMatrix(grd_actnmview.row, grd_actnmview.colRef("tmpflag"));
-
- if (grd_actnmview.rows - grd_actnmview.fixedRows == 0){
- messageBox("처리할 데이타가 존재하지 ","I011");
- return;
- }
-
- if (tmpflag == "N"){
- retMes = messageBox("처방집계시 행위재료코드와 참조할수 있는 물품마스터 코드가 삭제됩니다.","Q001");
- }else{
- retMes = messageBox("임시 저장된 행위코드를 ","Q001");
- }
- if ( retMes != 6) {
- return;
- }else{
- grd_actnmview.addStatus(grd_actnmview.row,"delete");
- }
- model.setValue("/root/save/actmasterlist", grd_actnmview.getUpdateData());
-
- if (submit("TXPIC90011")){
- messageBox("삭제","I001");
- }else{
- messageBox("삭제","E009");
- }
- // model.removeNodeset("/root/main/actmatrinfo/actmatrlist");
- model.removeNodeset("/root/main/actmatrcdinfo/actmatrcdcomnlist");
- model.removeNodeset("/root/main/actmatrcdinfo/actmatrcddetllist");
-
- btn_actsearch.dispatch("DOMActivate");
- //grd_actnmview.dispatch("ondblclick");
- fSrchGood(grd_actnmview);
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line5" class="line_3" style="x1:100px; y1:192px; x2:1175px; y2:192px; "/>
- <line id="line3" class="line_1" style="x1:100px; y1:168px; x2:1175px; y2:167px; "/>
- <button id="btn_tmpsave" class="btn3_letter4" disabled="true" navindex="8" visibility="hidden" style="left:765px; top:471px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_actcd.value == ""){
- messageBox("등록 후에 저장","I008");
- return;
- }
-
- if (fSave("임시 저장", "T") == false) return;
-
- if (submit("TXPIC90016")){
- messageBox("임시 저장이","I002");
- fSrchCondInfo();
- }else{
- messageBox("임시 저장","E009");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn3_letter3" navindex="14" style="left:1105px; top:471px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:140px; height:14px; ">행위재료/약품 관리</caption>
- <line id="line16" class="line_1" style="x1:100px; y1:217px; x2:1175px; y2:216px; "/>
- <caption id="caption21" class="tit_2" style="left:0px; top:149px; width:177px; height:13px; ">행위재료/약품 리스트</caption>
- <import id="import1" src="SMPIC90200_물품조회(행위재료).xrw" style="left:5px; top:505px; width:1172px; height:270px; "/>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:5px; top:20px; width:520px; height:120px; "/>
- <caption id="caption2" class="search_name" style="left:18px; top:40px; width:112px; height:17px; ">행위처방코드 :</caption>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:430px; top:25px; width:87px; height:17px; ">시행부서 :</caption>
- <input id="ipt_actcd" ref="/root/send/actmatrlist/actcd" class="input_search" navindex="1" imemode="alpha" _chartype="upper" style="left:140px; top:39px; width:125px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13" ){
- setInputNodeCurText();
- ipt_actcd.refresh();
- btn_actsearch.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/main/actmatrinfo/actmatrlist");
- model.removeNodeset("/root/hidden/rscdgood/rscdgoodlist");
- model.removeNodeset("/root/main/actmatrinfo/actmatrhistlist");
- ]]>
- </script>
- </input>
- <input id="ipt_actdeptcd" ref="/root/send/actmatrlist/actdeptcd" class="input_essential" navindex="11" visibility="hidden" style="left:455px; top:40px; width:17px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13" && ipt_actcd.value =="") {
- messageBox("행위코드와 시행부서는","I003");
- return;
- }
- if(event.keyCode == "13") {
- setInputNodeCurText();
- ipt_actdeptcd.refresh();
- btn_actsearch.dispatch("DOMActivate");
-
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_actdeptcd.value != ""){
-
- fSmCodeValidationCheck("02", "", "actdeptcd,actdeptnm" );
- model.setFocus("btn_actsearch");
-
- }else{
- ipt_actdeptnm.value = "";
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- <input id="ipt_actdeptnm" ref="/root/send/actmatrlist/actdeptnm" visibility="hidden" style="left:494px; top:40px; width:22px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(ipt_actdeptnm.value != ""){
- fSmValidationCheck("TRPIC90404", "reqcustomlist", "instcd,usndeptch,actdeptnm",
- model.getValue(ipt_instcd.attribute("ref")) +",," + model.getValue(ipt_actdeptnm.attribute("ref"))
- ,"","actdeptcd,actdeptnm" ,ipt_actdeptcd,"SMPIC90400","instcd","ipt_instcd");
- }/*else{
- ipt_actdeptcd.value = "";
- }*/
-
- model.refresh();
-
- ]]>
- </script>
- </input>
- <button id="btn_actcd" class="icon_search" style="left:270px; top:39px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMPIC90600");
- fSmSet();
-
- ]]>
- </script>
- </button>
- <button id="btn_actdeptcd" class="icon_search" visibility="hidden" style="left:475px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMPIC90400");
- fset();
- // opener.javascript.setParameter("vflag","Y");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:450px; y1:30px; x2:450px; y2:133px; "/>
- <button id="btn_actsearch" class="btn1_letter2" navindex="5" style="left:460px; top:69px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(submit("TRPIC90008")){
-
- grd_actnmview.rebuildStyle();
- for(var i=1;i<grd_actnmview.rows;i++){
- var todd = grd_actnmview.valueMatrix(i,grd_actnmview.colRef("todd"));
-
- if(todd != '99991231' ){
- grd_actnmview.rowStyle(i,"data","background-color") = "#FFFF66";
- }
- }
- fViewToggle(0);
- //grd_actnmview.row = 1;
- //fSrchGood(grd_actnmview);
-
- //model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_ShrtAx" class="btn_sw" group="tab" selected="true" style="left:996px; top:0px; width:90px; height:22px; ">
- <caption>단축조회</caption>
- <toggle case="case1" ev:event="onclick"/>
- <!--onclick 이벤트시 발생-->
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fViewToggle(0);
- ]]>
- </script>
- </button>
- <button id="btn_hist" class="btn_sw" group="tab" style="left:1085px; top:0px; width:90px; height:22px; ">
- <caption>이력조회</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode("/root/send/actmatrhistlist", grd_actnmview.nodeset + "[" + grd_actnmview.row + "]");
- submit("TRPIC90009");
- if (grd_acthisview.rows - grd_acthisview.fixedRows == 0){
- btn_goodinsert.disabled = true;
- //btn_histsave.disabled = true;
- btn_rowdel.disabled = true;
- btn_save.disabled = true;
- btn_tmpsave.disabled = true;
- btn_del.disabled = true;
- btn_actend.disabled = true;
- }
- btn_actend.disabled = true;
- fViewToggle(1);
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" disabled="true" navindex="13" style="left:986px; top:471px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var savestatcd = "";
- savestatcd = model.getValue(opt_savestatcd.attribute("ref"));
- if(opt_actcd.value == ""){
- messageBox("등록 후에 저장","I008");
- return;
- }
- if (savestatcd == "T"){ // 임시저장 -> 저장
- if(grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("tmpflag")) == "Y"){
- var retMes = messageBox("처방집계시 참조됩니다. 적용 하시겠습니까?", "Q999");
- if ( retMes != 6) return;
- }
- for(i=grd_actmaster.fixedRows;i<grd_actmaster.rows;i++){
- if (grd_actmaster.rowStatus(i) == 0){
- grd_actmaster.rowStatus(i) = 2;
- }
- }
- }
- if (fSave("저장", "S") == false) return;
-
- if (submit("TXPIC90016")){
- messageBox("저장이","I002");
- fSrchCondInfo();
- }else{
- messageBox("저장","E009");
- return;
- }
- ]]>
- </script>
- </button>
- <caption id="caption7" class="cell_1" style="left:100px; top:172px; width:85px; height:19px; text-align:center; ">행위처방코드</caption>
- <output id="opt_actcd" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/actcd" appearance="output" style="left:188px; top:172px; width:108px; height:19px; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
- <caption id="caption8" class="cell_1" visibility="hidden" style="left:334px; top:146px; width:60px; height:19px; text-align:center; ">시행부서</caption>
- <output id="opt_actdeptnm" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/actdeptnm" visibility="hidden" appearance="output" style="left:398px; top:146px; width:20px; height:19px; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
- <caption id="caption9" class="cell_1" visibility="hidden" style="left:422px; top:146px; width:45px; height:19px; text-align:center; ">의사ID</caption>
- <output id="opt_actprcpdrid" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/actprcpdrid" visibility="hidden" appearance="output" style="left:471px; top:146px; width:20px; height:19px; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
- <caption id="caption10" class="cell_1" visibility="hidden" style="left:495px; top:146px; width:45px; height:19px; text-align:center; ">의사명</caption>
- <output id="opt_actprcpdrnm" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/actprcpdrnm" visibility="hidden" appearance="output" style="left:544px; top:146px; width:20px; height:19px; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
- <caption id="caption11" class="cell_1" style="left:100px; top:195px; width:85px; height:19px; text-align:center; ">적용일자</caption>
- <caption id="caption12" class="cell_1" style="left:302px; top:195px; width:85px; height:19px; text-align:center; ">종료일자</caption>
- <output id="opt_fromdd" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/fromdd" format="yyyy-mm-dd" inputtype="date" appearance="output" style="left:188px; top:195px; width:108px; height:19px; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
- <output id="opt_todd" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/todd" format="yyyy-mm-dd" inputtype="date" appearance="output" style="left:390px; top:195px; width:108px; height:19px; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
- <datagrid id="grd_actmaster" nodeset="/root/main/actmatrcdinfo/actmatrcddetllist" caption="상태^기관코드^행위코드^의사id^부서코드^todd^fromdd^부서구분^물품코드^물품코드^물품명^규격^단가^수량^모델^EDICD^수불단위^주거래처명^보조거래처명^임시저장상태" colsep="^" colwidth="18, 43, 29, 47, 40, 36, 37, 37, 87, 23, 194, 119, 70, 45, 114, 88, 69, 120, 120, 28" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="7" style="left:100px; top:220px; width:1075px; height:245px; ">
- <col ref="rowstat" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="actcd" visibility="hidden"/>
- <col ref="actprcpdrid" visibility="hidden"/>
- <col ref="actdeptcd" visibility="hidden"/>
- <col ref="todd" visibility="hidden"/>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="deptflag" visibility="hidden"/>
- <col ref="goodcd" style="text-align:left; padding-left:5; "/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; padding-left:5; "/>
- <col ref="goodspec" style="text-align:left; padding-left:5; "/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="qty" type="input" format="#,###.##" style="text-align:right; padding-right:5; "/>
- <col ref="goodmodel" style="text-align:left; padding-left:5; "/>
- <col ref="edicd" style="text-align:center; "/>
- <col ref="deliveunit" style="text-align:center; "/>
- <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:5; "/>
- <col ref="suppcustnm" style="text-align:left; padding-left:5; "/>
- <col ref="tmpflag" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_rgst" class="btn4_letter2" navindex="12" style="left:1046px; top:471px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var retMes = messageBox("새로", "Q014");
- if ( retMes != 6) return;
-
- modal("SMPIC90100");
- if(getParameter("calcscorcd") == ""){
- return;
- }else{
- btn_tmpsave.disabled = false; // 임시저장 활성화
- btn_save.disabled = false; // 저장 활성화
- //btn_histsave.disabled = true; // 이력저장 비활성화
- btn_rowdel.disabled = false; // 행삭제 활성화
- btn_goodinsert.disabled = false; // 행추가 활성화
-
- fActcdSearch(getParameter("calcscorcd"),
- getParameter("hngnm"));
- }
- model.removeNodeset("/root/main/actmatrcdinfo");
- //fDisableCheck(false);
- //btn_histsave.disabled = "true"
- fmatch();
-
- model.makeValue(opt_actprcpdrid.attribute("ref"), getParameter("actprcpdrid"));
- model.makeValue(opt_actcd.attribute("ref"), getParameter("calcscorcd" ));
- model.makeValue(opt_actprcpdrnm.attribute("ref"), getParameter("actprcpdrnm"));
- model.makeValue(opt_actdeptnm.attribute("ref"), getParameter("actdeptnm" ));
- model.makeValue(opt_todd.attribute("ref"), '99991231');
- model.makeValue(opt_fromdd.attribute("ref"), getCurrentDate());
- model.makeValue(ipt_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- model.makeValue(opt_actdeptcd.attribute("ref"), getParameter("actdeptcd" ));
- model.makeValue(opt_savestatnm.attribute("ref"), "");
- model.makeValue(opt_hngnm.attribute("ref"), getParameter("hngnm" ));
- model.makeValue(opt_engnm.attribute("ref"), getParameter("engnm" ));
- model.makeValue(opt_deptflag.attribute("ref"), getParameter("deptflag"));
-
- if(model.getValue(opt_deptflag.attribute("ref")) == '1'){
- model.makeValue(opt_deptflagnm.attribute("ref"),'구매');
- } else if (model.getValue(opt_deptflag.attribute("ref")) == '2'){
- model.makeValue(opt_deptflagnm.attribute("ref"),'약국');
- } else {
- alert(model.getValue(opt_deptflag.attribute("ref")));
- model.makeValue(opt_deptflagnm.attribute("ref"),'-');
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption6">이력저장</caption>
- <button id="btn_histsave" class="btn4_letter4" disabled="false" navindex="9" visibility="visible" style="left:902px; top:471px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var frddvalue = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("fromdd"));
- var chngyn = "N";
-
- if(frddvalue == getCurrentDate()){
- messageBox("당일 등록한 행위코드는 이력변경을","E001");
- return;
- }
-
- // if( grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("tmpflag")) == "Y"){
- // messageBox("임시저장한 행위코드는 이력변경을","E001");
- // return;
- // }
- // for(i=grd_actmaster.fixedRows;i<grd_actmaster.rows;i++){
- // if (grd_actmaster.rowStatus(i) != 0){
- // chngyn = "Y";
- // break;
- // }
- // }
- //
- // if( chngyn == "N"){
- // messageBox("한 건이상의 변경 데이타 존재시 이력 저장이","I006");
- // return;
- // }
- //grd_actmaster.clearStatus();
- var retMes = messageBox("행위코드 이력을","Q002");
- if ( retMes != 6) {
- return;
- }
-
- // for(i=grd_actmaster.fixedRows;i<grd_actmaster.rows;i++){
- // if (grd_actmaster.rowStatus(i) == 0){
- // grd_actmaster.rowStatus(i) = 2;
- // }
- // }
- if (fSave("이력 저장", "H") == false) return;
-
- // 적용일자 설정
- model.setValue("/root/save/appdd", model.getValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/fromdd"));
- if (submit("TXPIC90004")){
- messageBox("이력 저장이","I002");
- fSrchCondInfo();
- }else{
- messageBox("이력 저장","E009");
- return;
- }
- ]]>
- </script>
- <caption>이력저장</caption>
- </button>
- <line id="line2" class="line_3" style="x1:5px; y1:497px; x2:1175px; y2:497px; "/>
- <output id="opt_actdeptcd" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/actdeptcd" visibility="hidden" appearance="output" style="left:190px; top:145px; width:65px; height:19px; "/>
- <button id="btn_rowdel" class="btn2_letter3" disabled="true" navindex="10" style="left:844px; top:471px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectChoiDel(grd_actmaster);
- ]]>
- </script>
- </button>
- <input id="ipt_instcd" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/instcd" visibility="hidden" appearance="input" style="left:130px; top:145px; width:50px; height:19px; "/>
- <img id="img2" src="../../../com/commonweb/images/grid_scroll_v_up.gif" style="left:537px; top:0px; width:16px; height:17px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- switch1.attribute("height") = "120";
- //grd_sngllist.attribute("height") = "100";
- grd_actnmview.attribute("height") = "118";
- grd_acthisview.attribute("height") = "118";
- ]]>
- </script>
- </img>
- <img id="img1" src="../../../com/commonweb/images/grid_scroll_v_down.gif" style="left:557px; top:0px; width:16px; height:17px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- switch1.attribute("height") = "490";
- //grd_sngllist.attribute("height") = "505";
- grd_actnmview.attribute("height") = "488";
- grd_acthisview.attribute("height") = "488";
- ]]>
- </script>
- </img>
- <output id="opt_savestatnm" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm" visibility="hidden" appearance="output" style="left:820px; top:0px; width:75px; height:19px; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
- <caption id="caption16" class="cell_1" visibility="hidden" style="left:750px; top:0px; width:60px; height:19px; text-align:center; ">저장상태</caption>
- <output id="opt_savestatcd" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatcd" visibility="hidden" appearance="output" style="left:260px; top:145px; width:65px; height:19px; "/>
- <caption id="caption17" visibility="hidden" style="left:601px; top:0px; width:67px; height:15px; font-weight:bold; ">: 행위종료</caption>
- <output id="output1" visibility="hidden" style="left:580px; top:0px; width:15px; height:19px; background-color:#ffff00; border-style:solid; "/>
- <output id="opt_deptflag" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/deptflag" visibility="hidden" appearance="output" style="left:925px; top:144px; width:25px; height:19px; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
- <button id="btn_excel" class="btn5_letter5" navindex="16" style="left:1099px; top:145px; width:75px; height:19px; ">
- <caption>Excel 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_actnmview.fixedRows != grd_actnmview.rows)
- {
- var fileName = window.fileDialog("save", ",", false, "행위재료약품관리", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_actnmview.saveExcel(fileName, "행위재료약품관리");
- }
- }else{
- messageBox("저장할 Data가 없습니다. Data 조회 후 다시 실행하세요.", "I999");
- }
- ]]>
- </script>
- </button>
- <caption id="caption20" class="cell_1" style="left:302px; top:172px; width:85px; height:19px; text-align:center; ">수가명(한글)</caption>
- <output id="opt_hngnm" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/hngnm" appearance="output" style="left:390px; top:172px; width:342px; height:19px; text-align:left; padding-left:5; border-color:#c0c0c0; border-style:solid; "/>
- <caption id="caption14" class="cell_1" style="left:738px; top:172px; width:85px; height:19px; text-align:center; ">수가명(영문)</caption>
- <output id="opt_engnm" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/engnm" appearance="output" style="left:826px; top:172px; width:349px; height:19px; text-align:left; padding-left:5; border-color:#c0c0c0; border-style:solid; "/>
- <caption id="caption15" class="search_name" style="left:18px; top:71px; width:113px; height:17px; ">수가명(한글) :</caption>
- <input id="ipt_actnm" ref="/root/send/actmatrlist/actnm" class="input_search" navindex="3" style="left:140px; top:71px; width:295px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_actsearch", "DOMActivate");
- ]]>
- </script>
- </input>
- <switch id="switch1" style="left:535px; top:20px; width:640px; height:120px; ">
- <case id="case2">
- <datagrid id="grd_acthisview" nodeset="/root/main/actmatrhistinfo/actmatrhistlist" caption="행위코드^시행부서^시행부서^의사ID^의사명^적용일^종료일^부서구분" colsep="^" colwidth="101, 4, 133, 87, 75, 102, 105, 62" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:638px; height:120px; ">
- <col ref="actcd" style="text-align:center; "/>
- <col ref="actdeptcd" visibility="hidden"/>
- <col ref="actdeptnm" style="text-align:center; "/>
- <col ref="actprcpdrid" style="text-align:center; "/>
- <col ref="actprcpdrnm" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="deptflag" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell() == true) {
- fSrchGood(grd_acthisview);
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case1" selected="true">
- <datagrid id="grd_actnmview" nodeset="/root/main/actmatrinfo/actmatrlist" caption="행위코드^수가명(한글)^수가명(영문)^시행부서^시행부서^의사ID^의사명^적용일^종료일^임시저장^부서구분" colsep="^" colwidth="103, 250, 250, 6, 111, 85, 81, 80, 78, 19, 33" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" navindex="6" style="left:0px; top:0px; width:638px; height:118px; ">
- <col ref="actcd" style="text-align:left; padding-left:10; "/>
- <col ref="hngnm" style="text-align:left; padding-left:5; "/>
- <col ref="engnm" style="text-align:left; padding-left:5; "/>
- <col ref="actdeptcd" visibility="hidden"/>
- <col ref="actdeptnm" visibility="hidden" style="text-align:center; "/>
- <col ref="actprcpdrid" visibility="hidden" style="text-align:center; "/>
- <col ref="actprcpdrnm" visibility="hidden" style="text-align:center; "/>
- <col ref="fromdd" visibility="visible" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" visibility="visible" format="yyyy-mm-dd" style="text-align:center; "/>
- <col checkvalue="Y,N" disabled="true" ref="tmpflag" type="checkbox" visibility="hidden"/>
- <col ref="deptflag" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell() == true) {
- fSrchGood(grd_actnmview);
- }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="button1" class="icon_search" style="left:225px; top:103px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSmOpenPopUpListByWndName(ipt_searchgoodcd,"","goodcd,allsizespecid,goodnm,goodflag","SPRSD00210");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption23" class="search_name" style="left:18px; top:104px; width:126px; height:17px; ">물 품 코 드 :</caption>
- <input id="ipt_searchgoodnm" ref="/root/send/actmatrlist/goodnm" class="output_fix" navindex="2" editable="false" style="left:248px; top:103px; width:187px; height:19px; "/>
- <input id="ipt_searchgoodcd" ref="/root/send/actmatrlist/goodcd" class="input_search" navindex="1" imemode="alpha" _chartype="upper" style="left:140px; top:103px; width:80px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_actsearch", "DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var goodcd = model.getValue(ipt_searchgoodcd.attribute("ref")).getTrim();
- ipt_searchgoodnm.value = "";
- ipt_searchgoodnm.refresh();
- ipt_searchgoodcd.refresh();
- ]]>
- </script>
- </input>
- <datagrid id="grd_historyview" nodeset="/root/main/actmatrcdinfo/historylist" caption="기관코드^행위코드^적용일자^종료일자^수가명(한글)^수가명(영문)" colsep="^" colwidth="40, 30, 83, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" navindex="7" style="left:5px; top:170px; width:85px; height:295px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="actcd" visibility="hidden"/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" visibility="hidden"/>
- <col ref="hngnm" visibility="hidden"/>
- <col ref="engnm" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell() == true) {
- fSrchGood(grd_historyview);
- }
- ]]>
- </script>
- </datagrid>
- <input id="input1" ref="/root/main/actmatrcdinfo/actmatrcdcomnlist/fromdd" inputtype="date" style="left:188px; top:195px; width:108px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|