123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[/* ---------------------------------------------------------------------
- 환자 시술전 처치 및 간호상태 확인 사항
- - Version :
- 1) : Ver.1.00.01
- : Created By AYS
- : 2015.03.18
- ---------------------------------------------------------------------- */
- var xPath_curenurgstatspec = ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList; // 환자 수술전 처치 및 간호상태 확인 사항
- var xPath_famyinfo = ds_main_ssminfo_ssmlist_famyinfo_famylist_MnwmpfifList; // 가족사항
- var xPath_spcinfo = ds_main_ssminfo_ssmlist_spcinfo_spclists; // 검체사항
- var xPath_Infecinfo = ds_main_ssminfo_ssmlist_infecinfo_InfectionLists_InfectionList; // 감염정보
- var xPath_PatBaseInfo = ds_init_patbaseinfo_patinfo; // 환자기본정보
- var xPath_Fmt_curenurgstatspec = ds_init_cureiteminfo_ItemCheckList; // 환자 수술전 처치 및 간호상태 확인 사항
- var xPath_MnpmcssrList = ds_main_ssminfo_ssmlist; // 환자 수술전 처치 및 간호상태 확인 사항 정보
- /****************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
- function fInit() {
- var spid = "";
- var sorddd = "";
- var scretno = "";
- node = sysf_getGlobalVariable("paminfo");
- dsf_setCSVToDs("ds_main_paminfo_list", node);
-
- if( utlf_isNull(ds_main_paminfo_list.getColumnInfo("orddd")) ){
- ds_main_paminfo_list.addColumn("orddd", "string");
- }
- if( utlf_isNull(ds_main_paminfo_list.getColumnInfo("ordtype")) ){
- ds_main_paminfo_list.addColumn("ordtype", "string");
- }
-
- var spid = ds_main_paminfo_list.getColumn(0, "pid");
- var orddd = ds_main_paminfo_list.getColumn(0, "orddd");
- var indd = ds_main_paminfo_list.getColumn(0, "indd");
- var hngnm = ds_main_paminfo_list.getColumn(0, "hngnm");
- if(utlf_isNull(spid)) {
- sysf_messageBox("상단에 환자정보가 없습니다", "I");
- this.close();
- return;
- }
- // 화면 우측상단 환자정보 호출
- fGetPatBaseInfo();
-
- var sPatBaseInfo = utlf_transNullToEmpty(xPath_PatBaseInfo.getColumn(0,"wardnm")) + " " // 병동
- + utlf_transNullToEmpty(xPath_PatBaseInfo.getColumn(0,"roomcd")) + " " // 병실
- + utlf_transNullToEmpty(xPath_PatBaseInfo.getColumn(0,"patnm")) + "(" // 환자명
- + utlf_transNullToEmpty(xPath_PatBaseInfo.getColumn(0,"pid")) + ") " // 등록번호
- + utlf_transNullToEmpty(xPath_PatBaseInfo.getColumn(0,"sexage")) + " " // SA
- + utlf_transNullToEmpty(xPath_PatBaseInfo.getColumn(0,"orddeptnm")) + " " // 진료과
- + utlf_transNullToEmpty(xPath_PatBaseInfo.getColumn(0,"medispclnm")) + " " // 주치의
- + utlf_transNullToEmpty(xPath_PatBaseInfo.getColumn(0,"atdoctnm")) + " " // 담당의
- + utlf_transNullToEmpty(xPath_PatBaseInfo.getColumn(0,"pdano")); // 담당의연락처
- ds_init.setColumn(0,"patinfo",sPatBaseInfo);
- fGetNursHardCdInfo("'S06'",utlf_getCurrentDate()); //CareCom.xjs
- fAddSSList();
- ds_init.setColumn(0,"ssbfcureseqno",ds_init_ssinfo_sslist.getColumn(0,"ssbfcureseqno"));
- var ssbfcureseqno = ds_init.getColumn(0, "ssbfcureseqno");
- sysf_trace("ssbfcureseqno > " + ssbfcureseqno)
- if ( utlf_isNull(ssbfcureseqno) ) {
- fNew();
- } else {
- fGetData();
- }
- // grd_ItemCheckList.fixedcellcheckbox(1,grd_ItemCheckList.colRef("pyes")) = true;
- // grd_ItemCheckList.fixedcellcheckbox(1,grd_ItemCheckList.colRef("syes")) = true;
- grdf_initGrid(grp_main.grd_ItemCheckList); // 그리드 전체 체크 기능 + 그리드소트
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : fAddSSList
- ****************************************************************************************/
- function fAddSSList() {
- var spid = ds_main_paminfo_list.getColumn(0, "pid");
- var sorddd = ds_main_paminfo_list.getColumn(0, "orddd");
- var sindd = ds_main_paminfo_list.getColumn(0, "indd");
- var scretno = ds_main_paminfo_list.getColumn(0, "cretno");
- var sordtype = ds_main_paminfo_list.getColumn(0, "ordtype");
- var sinstcd = sysf_getUserInfo("dutplceinstcd");
- if (!(sordtype == "S" || sordtype =="O")) {
- sorddd = sindd;
- }
- dsf_makeValue( ds_send, "pid", "string", spid);
- dsf_makeValue( ds_send, "orddd", "string", sorddd);
- dsf_makeValue( ds_send, "cretno", "string", scretno);
- dsf_makeValue( ds_send, "instcd", "string", sinstcd);
- dsf_makeValue( ds_send, "flag", "string", 2);
- var oParam = {};
- oParam.id = "TRMNP00213";
- oParam.service = "opanstapp.OpAnstPatMngt";
- oParam.method = "reqGetSSInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_ssinfo_sslist=sslist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP00213";
- tranf_submit(oParam);
-
- fGetData();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 조회
- ****************************************************************************************/
- function fGetData() {
- ds_send.clearData();
- dsf_makeValue( ds_send, "ssbfcureseqno", "string", grp_main.cmb_sslist.value);
- ds_data_ItemCheckList.clearData();
- ds_data_MnwmpfifList.clearData();
- ds_data_InfectionList.clearData();
- var oParam = {};
- oParam.id = "TRMNP00214";
- oParam.service = "opanstapp.OpAnstPatMngt";
- oParam.method = "reqGetSSMInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_ssminfo_ssmlist=ssmlist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP00214";
- tranf_submit(oParam);
-
- var sParamObj = new Object();
- sParamObj.pathYN = 'N';
-
- if( !utlf_isNull(ds_main_ssminfo_ssmlist.getColumn(0, "curenurgstatspec")) ){
- lf_convertXmlToDs(ds_main_ssminfo_ssmlist.getColumn(0, "curenurgstatspec"), sParamObj); //ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList
- }
- if( !utlf_isNull(ds_main_ssminfo_ssmlist.getColumn(0, "famyinfo")) ){
- lf_convertXmlToDs(ds_main_ssminfo_ssmlist.getColumn(0, "famyinfo"), sParamObj); //ds_main_ssminfo_ssmlist_famyinfo_famylist_MnwmpfifList
- }
- if( !utlf_isNull(ds_main_ssminfo_ssmlist.getColumn(0, "infecinfo")) ){
- lf_convertXmlToDs(ds_main_ssminfo_ssmlist.getColumn(0, "infecinfo"), sParamObj); //ds_main_ssminfo_ssmlist_infecinfo_InfectionLists_InfectionList
- }
- // if( !utlf_isNull(ds_main_ssminfo_ssmlist.getColumn(0, "spcinfo")) ){
- // lf_convertXmlToDs(ds_main_ssminfo_ssmlist.getColumn(0, "spcinfo"), sParamObj); //ds_main_ssminfo_ssmlist_spcinfo_spclists
- // }
-
- if(ds_data_ItemCheckList.rowcount > 0)
- {
- ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.copyData(ds_data_ItemCheckList);
- }
- if(ds_data_MnwmpfifList.rowcount > 0)
- {
- ds_main_ssminfo_ssmlist_famyinfo_famylist_MnwmpfifList.copyData(ds_data_MnwmpfifList);
- }
- else
- {
- ds_main_ssminfo_ssmlist_famyinfo_famylist_MnwmpfifList.clearData();
- }
- if(ds_data_InfectionList.rowcount > 0)
- {
- ds_main_ssminfo_ssmlist_infecinfo_InfectionLists_InfectionList.copyData(ds_data_InfectionList);
- }
- else
- {
- ds_main_ssminfo_ssmlist_infecinfo_InfectionLists_InfectionList.clearData();
- }
-
- if (xPath_curenurgstatspec.rowcount == 0 ) {
- fGetBaseCheckList();
- }
-
- // fSetBtn(); //EXPR처리
- }
- function cf_TRMNP00214(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- if( utlf_isNull(ds_main_ssminfo_ssmlist.getColumnInfo("ordtypeo")) ){
- ds_main_ssminfo_ssmlist.addColumn("ordtypeo", "string");
- }
- if( utlf_isNull(ds_main_ssminfo_ssmlist.getColumnInfo("indd")) ){
- ds_main_ssminfo_ssmlist.addColumn("indd", "string");
- }
- if( utlf_isNull(ds_main_ssminfo_ssmlist.getColumnInfo("orddrid")) ){
- ds_main_ssminfo_ssmlist.addColumn("orddrid", "string");
- }
- if( utlf_isNull(ds_main_ssminfo_ssmlist.getColumnInfo("medispclid")) ){
- ds_main_ssminfo_ssmlist.addColumn("medispclid", "string");
- }
-
- ds_main_ssminfo_ssmlist.updateColID("ordtypeo","ordtype");
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 신규
- ****************************************************************************************/
- function fNew() {
- ds_init.setColumn(0,"ssbfcureseqno","");
- ds_main_ssminfo_ssmlist_famyinfo_famylist_MnwmpfifList.clearData();
- ds_main_ssminfo_ssmlist_spcinfo_spclists.clearData();
- //16.03.17_추가_AYS
- ds_main_ssminfo_ssmlist_infecinfo_InfectionLists_InfectionList.clearData();
- xPath_curenurgstatspec.clearData();
- xPath_curenurgstatspec.addRow();
- ds_main_ssminfo_ssmlist.clearData();
- ds_main_ssminfo_ssmlist.addRow();
- dsf_makeValue(ds_main_ssminfo_ssmlist,"pid" ,"string",ds_main_paminfo_list.getColumn(0, "pid"));
- dsf_makeValue(ds_main_ssminfo_ssmlist,"orddd" ,"string",ds_main_paminfo_list.getColumn(0, "orddd"));
- dsf_makeValue(ds_main_ssminfo_ssmlist,"cretno" ,"string",ds_main_paminfo_list.getColumn(0, "cretno"));
- dsf_makeValue(ds_main_ssminfo_ssmlist,"indd" ,"string",ds_main_paminfo_list.getColumn(0, "indd"));
- dsf_makeValue(ds_main_ssminfo_ssmlist,"orddeptcd" ,"string",ds_main_paminfo_list.getColumn(0, "orddeptcd"));
- dsf_makeValue(ds_main_ssminfo_ssmlist,"ordtype" ,"string",ds_main_paminfo_list.getColumn(0, "ioflag"));
- dsf_makeValue(ds_main_ssminfo_ssmlist,"orddrid" ,"string",ds_main_paminfo_list.getColumn(0, "orddrid"));
- dsf_makeValue(ds_main_ssminfo_ssmlist,"medispclid" ,"string",ds_main_paminfo_list.getColumn(0, "medispclid"));
- dsf_makeValue(ds_main_ssminfo_ssmlist,"emeryn" ,"string","N");
- fGetBaseCheckList();
- //환자정보
- // var nodelist = instance1.selectNodes("ds_init_patbaseinfo_MnwmpfifList");
- // var nodePath = "ds_main_ssminfo_ssmlist_famyinfo_famylist_MnwmpfifList";
- //
- // eval(nodePath).addRow();
- //
- // var desnode = instance1.selectSingleNode(nodePath);
- //
- // if(nodelist.length > 0) {
- // while(node = nodelist.nextNode()) {
- // model.duplicate(desnode, node);
- // }
- // }
- if(ds_init_patbaseinfo_MnwmpfifList.rowcount > 0)
- {
- ds_main_ssminfo_ssmlist_famyinfo_famylist_MnwmpfifList.copyData(ds_init_patbaseinfo_MnwmpfifList);
- }
- //감염정보
- // var nodelist2 = instance1.selectNodes("ds_init_patbaseinfo_InfectionList");
- // var nodePath2 ="ds_main_ssminfo_ssmlist_infecinfo_InfectionLists_InfectionList";
- //
- // eval(nodePath2).addRow();
- //
- // var desnode2 = instance1.selectSingleNode(nodePath2);
- //
- // if(nodelist2.length > 0) {
- // while(node = nodelist2.nextNode()) {
- // model.duplicate(desnode2, node);
- // }
- // }
- var bolpna = false;
- var bolsna = false;
-
- if(ds_init_patbaseinfo_InfectionList.rowcount > 0) ds_main_ssminfo_ssmlist_infecinfo_InfectionLists_InfectionList.copyData(ds_init_patbaseinfo_InfectionList);
-
- if(utlf_isNull(ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.getColumnInfo("pna")))
- {
- ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.addColumn("pna", "string");
- bolpna = true;
- }
- if(utlf_isNull(ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.getColumnInfo("sna")))
- {
- ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.addColumn("sna", "string");
- bolsna = true;
- }
- for(var i = 0; i < ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.rowcount ;i++)
- {
- if(bolpna == true)
- {
- ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.setColumn(i, "pna", "false");
- }
- if(bolsna == true)
- {
- ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.setColumn(i, "sna", "false");
- }
- }
- }
- function fGridCheckConfirm() {
- // var BoolCheck = false;
- // var GridNm = grd_ItemCheckList;
- // var opchkyn ="";
- // var cnt = 0;
- //
- // for (var iRow = GridNm.fixedrows; iRow < GridNm.rows; iRow++){
- // opchkyn = model.getValue(GridNm.nodeset + "[" + (iRow-1) + "]_opchkyn");
- //
- // if (chk_stay.value == "1") {
- // if ((GridNm.valueMatrix(iRow, GridNm.colRef("Syes"))== "false" || GridNm.valueMatrix(iRow, GridNm.colRef("Syes"))== "") &&
- // (GridNm.valueMatrix(iRow, GridNm.colRef("Sno"))== "false" || GridNm.valueMatrix(iRow, GridNm.colRef("Sno"))== "") &&
- // (GridNm.valueMatrix(iRow, GridNm.colRef("Snothing"))== "false" || GridNm.valueMatrix(iRow, GridNm.colRef("Snothing"))== "")) {
- // BoolCheck = true;
- // break;
- // }
- // } else if (chk_stay.value == "2") {
- // if ((GridNm.valueMatrix(iRow, GridNm.colRef("Oyes"))== "false" || GridNm.valueMatrix(iRow, GridNm.colRef("Oyes"))== "") &&
- // (GridNm.valueMatrix(iRow, GridNm.colRef("Ono"))== "false" || GridNm.valueMatrix(iRow, GridNm.colRef("Ono"))== "") &&
- // (GridNm.valueMatrix(iRow, GridNm.colRef("Onothing"))== "false" || GridNm.valueMatrix(iRow, GridNm.colRef("Onothing"))== "") &&
- // (opchkyn == "Y" ||opchkyn == "" || opchkyn == null) ) {
- // BoolCheck = true;
- // break;
- // }
- // } else {
- //
- // if ((GridNm.valueMatrix(iRow, GridNm.colRef("pyes"))== "false" || GridNm.valueMatrix(iRow, GridNm.colRef("pyes"))== "") &&
- // (GridNm.valueMatrix(iRow, GridNm.colRef("Pno"))== "false" || GridNm.valueMatrix(iRow, GridNm.colRef("Pno"))== "") &&
- // (GridNm.valueMatrix(iRow, GridNm.colRef("Pnothing"))== "false" || GridNm.valueMatrix(iRow, GridNm.colRef("Pnothing"))== "")) {
- //
- // BoolCheck = true;
- // break;
- // }
- // }
- // }
- //
- // return BoolCheck;
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 저장
- ****************************************************************************************/
- function fSave(pFlag){
- var pid = xPath_MnpmcssrList.getColumn(0,"pid" ); // 환자번호
- var instcd = xPath_MnpmcssrList.getColumn(0,"instcd" ); // 원무외래_입원등록정보 PK
- var ordtype = xPath_MnpmcssrList.getColumn(0,"ordtype" ); // 외래입원구분
- var orddd = xPath_MnpmcssrList.getColumn(0,"orddd" ); // 진료일자
- var indd = xPath_MnpmcssrList.getColumn(0,"indd" ); // 입원일자
- var orddrid = xPath_MnpmcssrList.getColumn(0,"orddrid" ); // 진료의사
- var medispclid = xPath_MnpmcssrList.getColumn(0,"medispclid" ); // 주치교수
- var cretno = xPath_MnpmcssrList.getColumn(0,"cretno" ); // 원무생성번호
- var orddeptcd = xPath_MnpmcssrList.getColumn(0,"orddeptcd" ); // 진료부서
- var ssdd = xPath_MnpmcssrList.getColumn(0,"ssdd" ); // 시술일
- //var ssplace = xPath_MnpmcssrList.getColumn(0,"ssplace" ); // 시술장소
- var ssnm = xPath_MnpmcssrList.getColumn(0,"ssnm" ); // 시술명
- var ssnmetc = xPath_MnpmcssrList.getColumn(0,"ssnmetc" ); // 시술명
- var nrecnm = xPath_MnpmcssrList.getColumn(0,"nrecnm" ); // 간호단위기록자
- var nrecdt = xPath_MnpmcssrList.getColumn(0,"nrecdt" ); // 간호단위기록일시
- var nrecdept = xPath_MnpmcssrList.getColumn(0,"nrecdept" ); // 간호단위기록 부서코드
- var srecnm = xPath_MnpmcssrList.getColumn(0,"srecnm" ); // 시술실 기록자
- var srecdt = xPath_MnpmcssrList.getColumn(0,"srecdt" ); // 시술실 기록일시
- var srecdept = xPath_MnpmcssrList.getColumn(0,"srecdept" ); // 시술실기록 부서코드
- var semeryn = xPath_MnpmcssrList.getColumn(0,"emeryn" ); // 응급여부
- var strans = xPath_MnpmcssrList.getColumn(0,"trans" ); // 이동수단
- var snrectel = xPath_MnpmcssrList.getColumn(0,"nrectel" ); // 간호단위 전화번호
- var ssrectel = xPath_MnpmcssrList.getColumn(0,"srectel" ); // 시술실 전화번호
- if (utlf_isNull(ssdd)) {
- sysf_messageBox("시술일이 입력되지 않았습니다","I");
- return;
- }
- if (ssdd.length != 8) {
- sysf_messageBox("시술일이 정확히 입력되지 않았습니다","I");
- return;
- }
- if (utlf_isNull(nrecdept)) {
- sysf_messageBox("간호단위 기록부서가 입력되지 않았습니다","I");
- return;
- }
- if (utlf_isNull(nrecnm)) {
- sysf_messageBox("간호단위 기록자가 입력되지 않았습니다","I");
- return;
- }
- if (utlf_isNull(nrecdt)) {
- sysf_messageBox("간호단위 기록일시가 입력되지 않았습니다","I");
- return;
- }
- if (utlf_isNull(semeryn)) {
- sysf_messageBox("응급여부가 입력되지 않았습니다","I");
- return;
- }
- if (utlf_isNull(strans)) {
- sysf_messageBox("이동수단이 입력되지 않았습니다","I");
- return;
- }
- if (utlf_isNull(snrectel)) {
- sysf_messageBox("간호단위 전화번호가 입력되지 않았습니다","I");
- return;
- }
- if (!(ordtype == "S" || ordtype =="O")) {
- orddd = indd;
- orddrid = medispclid;
- }
- var curenurgstatspec = "";
- var famyinfo = "";
- var spcinfo = "";
- if(xPath_curenurgstatspec.rowcount > 0) {
- // var curenurgstatspec = instance1.selectSingleNode(xPath_curenurgstatspec).xml;
- var curenurgstatspec = "";
- var sParamObjArr = [{ds: "ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList", path:"ItemCheckLists/ItemCheckList", filter: ""}];
- //curenurgstatspec = lf_convertDsToXml(sParamObjArr,"<ItemCheckLists><ItemCheckList><iteminfobk/><iteminfo/><pyes/><pno/><syes/><sno/><itemcode/></ItemCheckList></ItemCheckLists>");
- curenurgstatspec = lf_convertDsToXml(sParamObjArr,"<ItemCheckLists><ItemCheckList><iteminfobk/><iteminfo/><pyes/><pno/><pna/><syes/><sno/><sna/><itemcode/></ItemCheckList></ItemCheckLists>");
- //<ItemCheckLists><ItemCheckList><iteminfobk/><iteminfo/><pyes/><pno/><pna/><syes/><sno/><sna/><itemcode/></ItemCheckList></ItemCheckLists>
- }
- if(xPath_famyinfo.rowcount > 0) {
- // var famyinfo = instance1.selectSingleNode(xPath_famyinfo).xml;
- var famyinfo = "";
- var sParamObjArr = [{ds: "ds_main_ssminfo_ssmlist_famyinfo_famylist_MnwmpfifList", path:"famylist/MnwmpfifList", filter: ""}];
- //famyinfo = lf_convertDsToXml(sParamObjArr,"<famylist><MnwmpfifList><chkyn/><cdnm/><tel/><mpphone/><addr/><detladdr/></MnwmpfifList></famylist>");
- famyinfo = lf_convertDsToXml(sParamObjArr,"<famylist><MnwmpfifList><chkyn/><cdnm/><tel/><mpphone/><rela/><hngnm/><addr/><detladdr/><indd/><instcd/><pid/><recflag/><remfact/></MnwmpfifList></famylist>");
- }
- // 감염정보 추가('16.03.17 - AYS)
- if(xPath_Infecinfo.rowcount > 0) {
- // var infecinfo = instance1.selectSingleNode(xPath_Infecinfo).xml;
- var infecinfo = "";
- var sParamObjArr = [{ds: "ds_main_ssminfo_ssmlist_infecinfo_InfectionLists_InfectionList", path:"InfectionLists/InfectionList", filter: ""}];
- infecinfo = lf_convertDsToXml(sParamObjArr,"<InfectionLists><InfectionList><testcd/><tclsscrnnm/><checkrsult/><genrdd/><sortinfo/></InfectionList></InfectionLists>");
- }
- var nmemo = xPath_MnpmcssrList.getColumn(0,"nmemo" ); // 간호단위메모
- var smemo = xPath_MnpmcssrList.getColumn(0,"smemo" ); // 수술,대기 단위메모
- var signno = xPath_MnpmcssrList.getColumn(0,"signno" ); // 인증번호
- var ssbfcureseqno = xPath_MnpmcssrList.getColumn(0,"ssbfcureseqno" ); // 의뢰번호(년도(4) + 일련번호(6))
- if (utlf_isNull(ssbfcureseqno)) {
- var stat = "I";
- } else {
- var stat = "U";
- }
- if ( pFlag == "D" ) {
- var stat = "D";
- }
- var wUserId = sysf_getUserInfo("userid" ); // 사용자
- var wUserNm = sysf_getUserInfo("usernm" ); // 사용자 명
- var wDeptCd = sysf_getUserInfo("dutplcecd"); // 사용자 부서코드
- var wDeptNm = sysf_getUserInfo("dutplcenm"); // 사용자 부서명
- var wRecoDate = utlf_getCurrentDate() + utlf_getCurrentTime(); // 시스템일자 기록
- var wSaveDate = utlf_getCurrentDate() + utlf_getCurrentTime(); // 시스템일자 기록
- // ds_send.clearData();
- // // Title Set
- // var sMnpmcssrData = "pid" + "▦" // 환자번호
- // + "instcd" + "▦" // 원무외래_입원등록정보 PK
- // + "ordtype" + "▦" // 외래입원구분
- // + "orddd" + "▦" // 진료일자
- // + "cretno" + "▦" // 원무생성번호
- // + "orddeptcd" + "▦" // 진료부서
- // + "orddrid" + "▦" // 진료의사
- // + "curenurgstatspec" + "▦" // 처치및간호상태정보
- // + "certflag" + "▦" //
- // + "ssdd" + "▦" //
- // + "ssnm" + "▦" //
- // + "ssnmetc" + "▦" //
- // + "nrecnm" + "▦" // 간호단위기록자
- // + "nrecdt" + "▦" // 간호단위기록일시
- // + "nrecdept" + "▦" // 간호단위기록부서
- // + "srecnm" + "▦" // 시술실 기록자ID
- // + "srecdt" + "▦" // 시술실 기록일시
- // + "srecdept" + "▦" // 시술실 기록부서
- // + "nmemo" + "▦" // 간호단위메모
- // + "smemo" + "▦" // 수술,대기 단위메모
- // + "signno" + "▦" // 인증번호
- // + "ssbfcureseqno" + "▦" // 시술에대한의뢰번호(년도(4) + 일련번호(6))
- // + "stat" + "▦" // 진행상태
- // + "famyinfo" + "▦" // 가족정보
- // + "infecinfo" + "▦" // 감염정보
- // + "emeryn" + "▦" // 응급여부
- // + "trans" + "▦" // 이동수당
- // + "nrectel" + "▦" // 간호단위 전화번호
- // + "srectel" + "▩"; // 시술실 전화번호
- // // Title Set
- // sMnpmcssrData += pid + "▦" // 환자번호
- // + instcd + "▦" // 원무외래_입원등록정보 PK
- // + ordtype + "▦" // 외래입원구분
- // + orddd + "▦" // 진료일자
- // + cretno + "▦" // 원무생성번호
- // + orddeptcd + "▦" // 진료부서
- // + orddrid + "▦" // 진료의사
- // + curenurgstatspec + "▦" // 처치및간호상태정보
- // + pFlag + "▦" // 인증저장구분
- // + ssdd + "▦" // 시술일
- // + ssnm + "▦" // 시술명
- // + ssnmetc + "▦" // 시술명
- // + nrecnm + "▦" // 간호단위기록자
- // + nrecdt + "▦" // 간호단위기록일시
- // + nrecdept + "▦" // 간호단위기록부서
- // + srecnm + "▦" // 시술실 기록자
- // + srecdt + "▦" // 시술실 기록일시
- // + srecdept + "▦" // 시술실 기록부서
- // + nmemo + "▦" // 간호단위메모
- // + smemo + "▦" // 수술,대기 단위메모
- // + signno + "▦" // 인증번호
- // + ssbfcureseqno + "▦" // 수술에대한의뢰번호(년도(4) + 일련번호(6))
- // + stat + "▦" // 진행상태
- // + famyinfo + "▦" // 가족정보
- // + infecinfo + "▦" // 감염정보
- // + semeryn + "▦" // 응급여부
- // + strans + "▦" // 이동수당
- // + snrectel + "▦" // 간호단위 전화번호
- // + ssrectel + "▩"; // 시술실 전화번호
- //
- // dsf_makeValue( ds_send, "MnpmcssrList", "string", sMnpmcssrData);
-
- dsf_createDsRow("ds_send_MnpmcssrList", [
- {col:"pid", type:"STRING", size:256, val:pid} //1
- , {col:"instcd", type:"STRING", size:256, val:instcd} //2
- , {col:"ordtype", type:"STRING", size:256, val:ordtype} //3
- , {col:"orddd", type:"STRING", size:256, val:orddd} //4
- , {col:"cretno", type:"STRING", size:256, val:cretno} //5
- , {col:"orddeptcd", type:"STRING", size:256, val:orddeptcd} //6
- , {col:"orddrid", type:"STRING", size:256, val:orddrid}
- , {col:"curenurgstatspec", type:"STRING", size:256, val:curenurgstatspec}
- , {col:"certflag", type:"STRING", size:256, val:pFlag}
- , {col:"ssdd", type:"STRING", size:256, val:ssdd}
- , {col:"ssnm", type:"STRING", size:256, val:ssnm}
- , {col:"ssnmetc", type:"STRING", size:256, val:ssnmetc}
- , {col:"nrecnm", type:"STRING", size:256, val:nrecnm}
- , {col:"nrecdt", type:"STRING", size:256, val:nrecdt}
- , {col:"nrecdept", type:"STRING", size:256, val:nrecdept}
- , {col:"srecnm", type:"STRING", size:256, val:srecnm}
- , {col:"srecdt", type:"STRING", size:256, val:srecdt}
- , {col:"srecdept", type:"STRING", size:256, val:srecdept}
- , {col:"nmemo", type:"STRING", size:256, val:nmemo}
- , {col:"smemo", type:"STRING", size:256, val:smemo}
- , {col:"signno", type:"STRING", size:256, val:signno}
- , {col:"ssbfcureseqno", type:"STRING", size:256, val:ssbfcureseqno}
- , {col:"stat", type:"STRING", size:256, val:stat}
- , {col:"famyinfo", type:"STRING", size:256, val:famyinfo}
- , {col:"infecinfo", type:"STRING", size:256, val:infecinfo}
- , {col:"emeryn", type:"STRING", size:256, val:semeryn}
- , {col:"trans", type:"STRING", size:256, val:strans}
- , {col:"nrectel", type:"STRING", size:256, val:snrectel}
- , {col:"srectel", type:"STRING", size:256, val:ssrectel}
- , {col:"ssplace", type:"STRING", size:256, val:""}
- , {col:"spcinfo", type:"STRING", size:256, val:""}
- ]);
- //grdf_setStatusColumn(ds_send_MnpmcssrList, "stat");
- if(pFlag == "C") {
- var CertFlag = true;
- CertFlag = fSignProcessSet();
- if (CertFlag == false){
- //2008-10-01 오전 5:54:13 taebum 인증저 취소시 통합기록 조회관련 요구사항 처리로 인한 오류발생 .
- //화면 close 시킴.
- this.close();
- return; // 인증실패
- }
- }
- var oParam = {};
- oParam.id = "TXMNP00213";
- oParam.service = "opanstapp.OpAnstPatMngt";
- oParam.method = "reqExeMnpmcssrInfo";
- oParam.inds = "MnpmcssrList=ds_send_MnpmcssrList signinfo=ds_send_signinfo";
- oParam.outds = "ds_temp_retdata=retdata";
- oParam.async = false;
- oParam.callback = "cf_TXMNP00213";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXMNP00213") > -1) {
- fAddSSList();
- if(stat == 'I' || stat == 'U'){
- if(!utlf_isNull(ssbfcureseqno)) {
- dsf_makeValue( ds_init, "ssbfcureseqno", "string", ssbfcureseqno);
- frmf_inputEnterKey("grp_main.cmb_sslist", "onitemchanged", new ItemChangeEventInfo);
- } else {
- var ssbfcureseqno_new = ds_temp_retdata.getColumn(0, "ssbfcureseqno");
- dsf_makeValue( ds_init, "ssbfcureseqno", "string", ssbfcureseqno_new);
- frmf_inputEnterKey("grp_main.cmb_sslist", "onitemchanged", new ItemChangeEventInfo);
- }
- sysf_messageBox("저장이 ", "I001");
- }
- if (pFlag =="D") {
- fNew();
- sysf_messageBox("삭제가 ", "I001");
- }
- }
- }
- function cf_TXMNP00213(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 전자서명 호출
- ****************************************************************************************/
- function fSignProcessSet() {
- //2009-02-25 YCD 인증서 호출 설정 주석 처리
- //Sign.certreload = true;
- var ordtype = xPath_MnpmcssrList.getColumn(0,"ordtype" ); // 07 외래입원구분
- if( Sign.signprocess() == true ){ // ▶ 전자인증 관련 환자 인적 정보를 보내줌.
- var wSigninfo = "pid" +"▦" // 등록번호
- + "orddd" +"▦" // 입원일자(입원,응급)_진료일자(외래)
- + "cretno" +"▦" // 생성번호
- + "signno" +"▦" // 서명번호(인증번호)
- + "recdd" +"▦" // 실제 기록이 이루어진 기록일자
- + "rectm" +"▦" // 실제 기록이 이루어진 기록시간
- + "recsaveflag" +"▦" // 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- + "signflag" +"▦" // 서명자료구분(01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
- + "signgenrflag" +"▦" // 외래_입원구분(코드정의서 M0010 참조)
- + "formcd" +"▦" // 각 기록지별 서식코드 0000002473 N57 간호 수술간호기록
- + "orddeptcd" +"▦" // 진료부서코드
- + "orddrid" +"▦" // 진료의사ID (집도의)
- + "signbfcnts" +"▦" // ▶ 인증할 데이터 정보(미기록 노드 제거된 정보)
- + "signaftcnts" +"▩" // ▶ 공인인증 처리후 데이터
- + xPath_MnpmcssrList.getColumn(0,"pid" ) +"▦" // 등록번호
- + xPath_MnpmcssrList.getColumn(0,"indd" ) + xPath_MnpmcssrList.getColumn(0,"orddd" )+"▦" // 진료일자(입원,응급)_진료일자(외래)
- + xPath_MnpmcssrList.getColumn(0,"cretno" ) +"▦" // 생성번호
- + xPath_MnpmcssrList.getColumn(0,"signno" ) +"▦" // 서명번호(인증번호)
- + utlf_getCurrentDate() +"▦" // 실제 기록이 이루어진 기록일자
- + utlf_getCurrentTime() +"▦" // 실제 기록이 이루어진 기록시간
- + "N" +"▦" // 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- + "02" +"▦" // 서명자료구분(01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
- + xPath_MnpmcssrList.getColumn(0,"ordtype") +"▦" // 외래_입원구분(코드정의서 M0010 참조)
- + "1500016488" +"▦" // 시술전 준비확인
- + xPath_MnpmcssrList.getColumn(0,"orddeptcd") +"▦" // 진료부서코드
- + xPath_MnpmcssrList.getColumn(0,"medispclid")+ xPath_MnpmcssrList.getColumn(0,"orddrid" )+"▦" // 진료의사ID (주치교수)
- + Sign.signedInfos[1] +"▦" // ▶ 인증할 데이터 정보(미기록 노드 제거된 정보)
- + Sign.signedInfos[2] +"▩"; // ▶ 공인인증 처리후 데이터
- // dsf_makeValue( ds_send, "signinfo", "string", wSigninfo);
- dsf_setCSVToDs("ds_send_signinfo",wSigninfo);
-
- // dsf_makeValue( ds_send_signinfo, "pid", "string", eval(xPath_MnpmcssrList).getColumn(0,"pid" )); // 등록번호
- // dsf_makeValue( ds_send_signinfo, "orddd", "string", eval(xPath_MnpmcssrList).getColumn(0,"orddd" )); // 입원일자(입원,응급)_진료일자(외래)
- // dsf_makeValue( ds_send_signinfo, "cretno", "string", eval(xPath_MnpmcssrList).getColumn(0,"cretno" )); // 생성번호
- // dsf_makeValue( ds_send_signinfo, "signno", "string", eval(xPath_MnpmcssrList).getColumn(0,"certno" )); // 서명번호(인증번호)
- // dsf_makeValue( ds_send_signinfo, "recdd", "string", utlf_getCurrentDate() ); // 실제 기록이 이루어진 기록일자
- // dsf_makeValue( ds_send_signinfo, "rectm", "string", utlf_getCurrentTime() ); // 실제 기록이 이루어진 기록시간
- // dsf_makeValue( ds_send_signinfo, "recsaveflag", "string", "N" ); // 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- // dsf_makeValue( ds_send_signinfo, "signflag", "string", "02" ); // 서명자료구분(01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
- // dsf_makeValue( ds_send_signinfo, "signgenrflag", "string", eval(xPath_MnpmcssrList).getColumn(0,"inoutflag" )); // 외래_입원구분(코드정의서 M0010 참조)
- // dsf_makeValue( ds_send_signinfo, "formcd", "string", "0000002431" ); // 각 기록지별 서식코드 0000002473 N57 간호 수술간호기록
- // dsf_makeValue( ds_send_signinfo, "orddeptcd", "string", eval(xPath_MnpmcssrList).getColumn(0,"orddeptcd" )); // 진료부서코드
- // dsf_makeValue( ds_send_signinfo, "orddrid", "string", eval(xPath_MnpmcssrList).getColumn(0,"perfdrid" )); // 진료의사ID (집도의)
- // dsf_makeValue( ds_send_signinfo, "signbfcnts", "string", Sign.signedInfos[1]); // ▶ 인증할 데이터 정보(미기록 노드 제거된 정보)
- // dsf_makeValue( ds_send_signinfo, "signaftcnts", "string", Sign.signedInfos[2]); // ▶ 공인인증 처리후 데이터
- }else{
- return false;
- }
- }
- function fMake_SignData(){
- // ▶ 기록 관련 인스턴스 전체를 copy, 인증에 저장할 모든 Instance AddNode한다.
- Sign.addnode(xPath_MnpmcssrList);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : fAddSSList
- ****************************************************************************************/
- function fGetBaseCheckList() {
- ds_send.clearData();
- dsf_makeValue( ds_send, "cdgrupid" , "string", 'S05');
- dsf_makeValue( ds_send, "currentdate" , "string", utlf_getCurrentDate());
- xPath_curenurgstatspec.clearData();
- var oParam = {};
- oParam.id = "TRMNP00215";
- oParam.service = "opanstapp.OpAnstPatMngt";
- oParam.method = "reqGetCureItemInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_cureiteminfo_ItemCheckList=ItemCheckList";
- oParam.async = false;
- // oParam.callback = "cf_TRMNP00215";
- tranf_submit(oParam);
- //sysf_trace(xPath_Fmt_curenurgstatspec.saveXML())
- xPath_curenurgstatspec.copyData(xPath_Fmt_curenurgstatspec); // 환자 수술전 처치 및 간호상태 확인 사항
- // fSetBtn(); //EXPR처리
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : GRID CheckBox 값변경 */
- /* param : pGridNm : DataGrid Name */
- /* pRow : DataGrid Row */
- /* pCol : DataGrid Col */
- /* pTrueFase : 논리값 */
- /* return : */
- /* --------------------------------------------------*/
- function fCheckBox(pGridNm,pRow,pCol,pTrueFase){
- // pGridNm.valueMatrix(pRow,pCol) = pTrueFase;
- var objDsGrid = eval(pGridNm.binddataset);
- objDsGrid.setColumn(pRow, pCol, pTrueFase);
- }
- /* ------------------------------------------------- */
- /* type : function */
- /* access : public */
- /* desc : GRID CheckBox 값변경 */
- /* param : pGridNm : DataGrid Name */
- /* return : */
- /* -------------------------------------------------*/
- function fGridValueChangedCheckBox(pGridNm, columnid){
- var wTrueFase;
- GridNm = eval(pGridNm);
- DsNm = eval(GridNm.binddataset);
- if (GridNm.currentcol > 4) {
- wTrueFase = DsNm.getColumn(GridNm.currentrow, columnid);
- if (wTrueFase == "true") {
- switch(GridNm.currentcol){
- case 5 :
- // if( GridNm.row == "1" ) { // 전체 '예' 체크 시
- // fCheckBox(GridNm, ITM002 ,GridNm.colRef("pyes"),"false");
- // fCheckBox(GridNm, ITM022 ,GridNm.colRef("pyes"),"false");
- // }
- // fCheckBox(GridNm, GridNm.currentrow ,GridNm.colRef("pno"),"false");
- fCheckBox(GridNm, GridNm.currentrow ,"pna","false");
- break;
- // case GridNm.colRef("pno") :
- // fCheckBox(GridNm,GridNm.row ,GridNm.colRef("pyes"),"false");
- // fCheckBox(GridNm, GridNm.row ,GridNm.colRef("pna"),"false");
- // break;
- case 7 :
- fCheckBox(GridNm,GridNm.currentrow ,"pyes","false");
- // fCheckBox(GridNm,GridNm.currentrow ,GridNm.colRef("pno"),"false");
- break;
- case 8 :
- // if( GridNm.row == "1" ) { // 전체 '예' 체크 시
- // fCheckBox(GridNm, ITM002 ,GridNm.colRef("syes"),"false");
- // fCheckBox(GridNm, ITM022 ,GridNm.colRef("syes"),"false");
- // }
- // fCheckBox(GridNm,GridNm.currentrow ,GridNm.colRef("sno"),"false");
- fCheckBox(GridNm,GridNm.currentrow ,"sna","false");
- break;
- // case GridNm.colRef("sno") :
- // fCheckBox(GridNm,GridNm.row ,GridNm.colRef("syes"),"false");
- // fCheckBox(GridNm,GridNm.row ,GridNm.colRef("sna"),"false");
- // break;
- case 10 :
- fCheckBox(GridNm,GridNm.currentrow ,"syes","false");
- // fCheckBox(GridNm,GridNm.currentrow ,GridNm.colRef("sno"),"false");
- break;
- }
- }
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : fSetBtn
- ****************************************************************************************/
- function fSetBtn() {
- // for(var i = 0 ; i < ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.rowcount; i++) {
- // if ( ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.getColumn(i, "itemcode") == "02" ) {
- // grd_ItemCheckList.cellstyle("background-image",i,2) = "../../.._com_commonweb_images_icon_startend.gif";
- // grd_ItemCheckList.cellstyle("cursor",i,2) = "hand";
- // }
- //
- // if ( grd_ItemCheckList.valueMatrix(i, grd_ItemCheckList.colRef("itemcode")) == "03") {
- // grd_ItemCheckList.cellstyle("background-image",i,2) = "../../.._com_commonweb_images_icon_startend.gif";
- // grd_ItemCheckList.cellstyle("cursor",i,2) = "hand";
- // }
- //
- // if ( grd_ItemCheckList.valueMatrix(i, grd_ItemCheckList.colRef("itemcode")) == "09") {
- // grd_ItemCheckList.cellstyle("background-image",i,2) = "../../.._com_commonweb_images_icon_startend.gif";
- // grd_ItemCheckList.cellstyle("cursor",i,2) = "hand";
- // }
- //
- // // '16.03.30 - 박민지 선생님 요청으로 Invisible 처리
- // // if ( grd_ItemCheckList.valueMatrix(i, grd_ItemCheckList.colRef("itemcode")) == "04") {
- // // grd_ItemCheckList.cellstyle("background-image",i,4) = "../../.._com_commonweb_images_icon_list.gif";
- // // grd_ItemCheckList.cellstyle("cursor",i,4) = "hand";
- // // }
- // //
- // // 16.09.19_보조기구, 장신구 제거 항목 추가
- // if ( grd_ItemCheckList.valueMatrix(i, grd_ItemCheckList.colRef("itemcode")) == "05") {
- // grd_ItemCheckList.cellstyle("background-image",i,4) = "../../.._com_commonweb_images_icon_list.gif";
- // grd_ItemCheckList.cellstyle("cursor",i,4) = "hand";
- // }
- //
- // if ( grd_ItemCheckList.valueMatrix(i, grd_ItemCheckList.colRef("itemcode")) == "06") {
- // grd_ItemCheckList.cellstyle("background-image",i,4) = "../../.._com_commonweb_images_icon_list.gif";
- // grd_ItemCheckList.cellstyle("cursor",i,4) = "hand";
- // }
- // }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 상세내역 조회
- ****************************************************************************************/
- function fSearchDetlInfo() {
- //시술 및 수술동의서
- var cRow = grp_main.grd_ItemCheckList.currentrow;
- var cCol = grp_main.grd_ItemCheckList.currentcol;
- if ( ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.getColumn(cRow, "itemcode") == "02" && cCol == 2 ){
- dsf_createDsRow("ds_req", [
- {col:"instcd", type:"STRING", size:256, val:sysf_getUserInfo("dutplceinstcd")}
- , {col:"pid", type:"STRING", size:256, val:xPath_MnpmcssrList.getColumn(0,"pid")}
- , {col:"orddd", type:"STRING", size:256, val:xPath_MnpmcssrList.getColumn(0,"cretno")}
- , {col:"cretno", type:"INT", size:256, val:xPath_MnpmcssrList.getColumn(0,"indd")+xPath_MnpmcssrList.getColumn(0,"orddd")}
- , {col:"chosflag", type:"STRING", size:256, val:""}
- , {col:"reckind", type:"STRING", size:256, val:"EMR"}
- , {col:"itemindxseq", type:"STRING", size:256, val:"132184"}
- , {col:"sortkind", type:"STRING", size:256, val:"D"}
- , {col:"pagingyn", type:"STRING", size:256, val:"N"}
- , {col:"keyfromdd", type:"STRING", size:256, val:""}
- , {col:"keytodd", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRMRI03009";
- oParam.service = "recmngtapp.IntegrityRec";
- oParam.method = "reqGetKeys";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_tmp_keys=item";
- oParam.async = false;
- //oParam.callback = "cf_TRMRI03009";
- tranf_submit(oParam);
-
- var Prtrecinfo = "";
- for(var i=0; i < ds_tmp_keys.rowcount; i++){
- Prtrecinfo += ds_tmp_keys.getColumn(i, "kind")
- + "▦" + ds_tmp_keys.getColumn(i, "signno")
- + "▦" + ds_tmp_keys.getColumn(i, "formcd")
- + "▩";
- }
- frmf_setParameter("SPMRI02400_prtrecinfo", Prtrecinfo);
- frmf_setParameter("SPMRI02400_prtyn", "N");
- frmf_setParameter("SPMRI02400_NurProg", "Y");
- //frmf_modal("SPMRI02400", "", "","", "", "", "", "", "", "", "", "", "", "M");
- frmf_modal("SPMRI02400", "SPMRI02400", "", "","", "", "", "", "", "", "", "", "M");
- }
- //ADR
- if ( ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.getColumn(cRow, "itemcode") == "09" && cCol == 2 ){
- //frmf_open("SPMMD03300", "", "","", "", "", "", "", "", "", "", "", "", "M");
- frmf_open("SPMMD03300", "SPMMD03300", "", "","", "", "", "", "", "", "", "", "M");
- }
- //진정동의서
- if ( ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.getColumn(cRow, "itemcode") == "03" && cCol == 2 ){
- dsf_createDsRow("ds_req", [
- {col:"instcd", type:"STRING", size:256, val:sysf_getUserInfo("dutplceinstcd")}
- , {col:"pid", type:"STRING", size:256, val:xPath_MnpmcssrList.getColumn(0,"pid")}
- , {col:"orddd", type:"STRING", size:256, val:xPath_MnpmcssrList.getColumn(0,"cretno")}
- , {col:"cretno", type:"INT", size:256, val:xPath_MnpmcssrList.getColumn(0,"indd")+xPath_MnpmcssrList.getColumn(0,"orddd")}
- , {col:"chosflag", type:"STRING", size:256, val:""}
- , {col:"reckind", type:"STRING", size:256, val:"EMR"}
- , {col:"itemindxseq", type:"STRING", size:256, val:"132185"}
- , {col:"sortkind", type:"STRING", size:256, val:"D"}
- , {col:"pagingyn", type:"STRING", size:256, val:"N"}
- , {col:"keyfromdd", type:"STRING", size:256, val:""}
- , {col:"keytodd", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRMRI03009";
- oParam.service = "recmngtapp.IntegrityRec";
- oParam.method = "reqGetKeys";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_tmp_keys=item";
- oParam.async = false;
- //oParam.callback = "cf_TRMRI03009";
- tranf_submit(oParam);
- var Prtrecinfo = "";
- for(var i=0; i < ds_tmp_keys.rowcount; i++){
- if( ds_tmp_keys.getColumn(i, "formcd") == "1100010977"){
- Prtrecinfo += ds_tmp_keys.getColumn(i, "kind")
- + "▦" + ds_tmp_keys.getColumn(i, "signno")
- + "▦" + ds_tmp_keys.getColumn(i, "formcd")
- + "▩";
- }
- }
- frmf_setParameter("SPMRI02400_prtrecinfo", Prtrecinfo);
- frmf_setParameter("SPMRI02400_prtyn", "N");
- frmf_setParameter("SPMRI02400_NurProg", "Y");
- //frmf_modal("SPMRI02400", "", "","", "", "", "", "", "", "", "", "", "", "M");
- frmf_modal("SPMRI02400", "SPMRI02400", "", "","", "", "", "", "", "", "", "", "M");
- }
- if ( ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.getColumn(cRow, "itemcode") == "04" && cCol == 4 ){
- var parammsg = "B@시술부위표시@HPCD2";
- frmf_setParameter("SPMQR06000_param", parammsg); // 파라미터 설정
- //frmf_modal("SPMQR06000", "SPMQR06000", "", "", "", "", "", "", "", "", "", "", "", "M"); // 병원코드 팝업
- frmf_modal("SPMQR06000", "SPMQR06000", "", "","", "", "", "", "", "", "", "", "M");
- }
- if ( ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.getColumn(cRow, "itemcode") == "05" && cCol == 4 ){
- var parammsg = "B@검사시 확인 사항@HPCD3";
- frmf_setParameter("SPMQR06000_param", parammsg); // 파라미터 설정
- //frmf_modal("SPMQR06000", "", "", "", "", "", "", "", "", "", "", "", "", "M"); // 병원코드 팝업
- frmf_modal("SPMQR06000", "SPMQR06000", "", "","", "", "", "", "", "", "", "", "M");
- }
- if ( ds_main_ssminfo_ssmlist_curenurgstatspec_ItemCheckLists_ItemCheckList.getColumn(cRow, "itemcode") == "06" && cCol == 4 ){
- var parammsg = "B@정맥주사 확보기준@HPCD4";
- frmf_setParameter("SPMQR06000_param", parammsg); // 파라미터 설정
- //frmf_modal("SPMQR06000", "", "", "", "", "", "", "", "", "", "", "", "", "M"); // 병원코드 팝업
- frmf_modal("SPMQR06000", "SPMQR06000", "", "","", "", "", "", "", "", "", "", "M");
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 화면 우측상단 환자정보 호출
- ****************************************************************************************/
- function fGetPatBaseInfo() {
- var spid = ds_main_paminfo_list.getColumn(0, "pid");
- var sorddd = ds_main_paminfo_list.getColumn(0, "orddd");
- var sindd = ds_main_paminfo_list.getColumn(0, "indd");
- var scretno = ds_main_paminfo_list.getColumn(0, "cretno");
- var sordtype = ds_main_paminfo_list.getColumn(0, "ordtype");
- if (!(sordtype == "S" || sordtype =="O")) {
- sorddd = sindd;
- }
- dsf_makeValue( ds_send, "pid" , "string", spid);
- dsf_makeValue( ds_send, "orddd" , "string", sorddd);
- dsf_makeValue( ds_send, "cretno", "string", scretno);
- //sysf_trace(ds_send.saveXML())
- var oParam = {};
- oParam.id = "TRMNP00216";
- oParam.service = "opanstapp.OpAnstPatMngt";
- oParam.method = "reqGetPatBaseInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_patbaseinfo_patinfo=patinfo ds_init_patbaseinfo_emplist=emplist ds_init_patbaseinfo_MnwmpfifList=MnwmpfifList ds_init_patbaseinfo_InfectionList=InfectionList";
- oParam.async = false;
- oParam.callback = "cf_TRMNP00216";
- tranf_submit(oParam);
-
- if(ds_init_patbaseinfo_MnwmpfifList.rowcount > 0)
- {
- ds_main_ssminfo_ssmlist_famyinfo_famylist_MnwmpfifList.copyData(ds_init_patbaseinfo_MnwmpfifList);
- }
- if(ds_init_patbaseinfo_InfectionList.rowcount > 0)
- {
- ds_main_ssminfo_ssmlist_infecinfo_InfectionLists_InfectionList.copyData(ds_init_patbaseinfo_InfectionList);
- }
- }
- function cf_TRMNP00216(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setFixVal(ds_init_patbaseinfo_MnwmpfifList, "chkyn:N");
- }
- function fControlGridAttr(pGrid) {
- // var menuParameter = String(frmf_getMenuParam()).;
- // var sBool1 = "";
- // var sBool2 = "";
- //
- // if(menuParameter == 'NM') {
- // sBool1 = false;
- // sBool2 = true;
- // } else if(menuParameter == 'IM') {
- // sBool1 = true;
- // sBool2 = false;
- // } else {
- // sBool1 = false;
- // sBool2 = false;
- // }
- //
- // for (var iRow = pGrid.fixedrows; iRow <= pGrid.rows; iRow++){
- // //opchkyn = model.getValue(pGrid.nodeset + "[" + (iRow-1) + "]_opchkyn");
- // //onochkyn = model.getValue(pGrid.nodeset + "[" + (iRow-1) + "]_onochkyn");
- //
- // pGrid.isReadOnly(iRow, pGrid.colRef("pyes"), iRow, pGrid.colRef("pna"))=sBool1;
- // pGrid.isReadOnly(iRow, pGrid.colRef("syes"), iRow, pGrid.colRef("sna"))=sBool2;
- // //
- // // if(sBool3 == false && (onochkyn == "N" || onochkyn == "" || onochkyn == null) ) {
- // // pGrid.isReadOnly(iRow, pGrid.colRef("Onothing"), iRow, pGrid.colRef("Onothing"))= false;
- // // } else {
- // // pGrid.isReadOnly(iRow, pGrid.colRef("Onothing"), iRow, pGrid.colRef("Onothing"))=true;
- // // }
- // //
- // // if(opchkyn == "N") {
- // // pGrid.isReadOnly(iRow, pGrid.colRef("Oyes"), iRow, pGrid.colRef("Ono"))= true;
- // // }
- // //
- // // if(pGrid.row == 1 && pGrid.col == pGrid.colRef("Oyes") && opchkyn=="N") {
- // // pGrid.valueMatrix(iRow, pGrid.colRef("Oyes")) = false;
- // // }
- // }
- //
- // grd_ItemCheckList.fixedcellcheckbox(1,pGrid.colRef("pyes")) = ((sBool1) ? "false" : "true");
- // grd_ItemCheckList.fixedcellcheckbox(1,pGrid.colRef("syes")) = ((sBool2) ? "false" : "true");
- }
- ]]></Script>
|