123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- /**
- * PET-CT 의뢰 및 의뢰취소 데이터 저장
- * @return
- */
- function fSaveData_Bak(){
- var cnt = getNodesetCount("/root/main/petctlist[chkflag='true']");
- var kind = model.getValue("/root/main/petctlist[chkflag='true']/kind");
- var pkgcd = model.getValue("/root/main/petctlist[chkflag='true']/pkgcd");
- var rcptstatcd = model.getValue("/root/main/petctlist[chkflag='true']/rcptstatcd")
-
- if(parseInt(cnt)<1){
- messageBox("선택된 내역이 없습니다.", "E");
- return;
- }
-
- if(parseInt(cnt)>1){
- messageBox("복수건의 데이터가 선택되었습니다.", "E");
- return;
- }
-
- if(event.currentTarget=="btn_E"){
- if(kind=="F"){
- messageBox("의뢰취소 된 건을 재의뢰 하실 수는 없습니다.\n신규로 의뢰 부탁드립니다.", "E");
- return;
- }
- }else if(event.currentTarget=="btn_F"){
- if(kind=="F"){
- messageBox("이미 의뢰취소 된 건입니다.", "E");
- return;
- }
- if(kind=="S" || kind == "R"){
- messageBox("예약 또는 수납된 의뢰건은 의뢰취소가 불가능합니다.\n건진센터로 연락부탁드리겠습니다.", "E");
- return;
- }
-
- var rtn = messageBox("선택된 내역을 의뢰취소하시겠습니까?", "S001");
- if(rtn!="6"){
- return;
- }
- }
-
- if(isNull(pkgcd)){
- messageBox("패키지명이 선택되지 않았습니다.", "E");
- return;
- }
-
-
- if(isNull(model.getValue("/root/main/petctlist[chkflag='true']/pid"))){
- messageBox("환자번호가 입력되지 않았습니다.", "E");
- return;
- }else{
- model.makeValue("/root/send/reqdata/srchpid", model.getValue("/root/main/petctlist[chkflag='true']/pid"));
- model.makeValue("/root/send/reqdata/sess_posinstcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/srchinstcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/srchfromdd", getCurrentDate());
- model.makeValue("/root/send/reqdata/srchtodd", getCurrentDate());
- model.makeValue("/root/send/reqdata/etccd", "G14");
- model.makeValue("/root/send/reqdata/srchhealexamdetlflag", "C01");
- model.makeValue("/root/send/reqdata/srchmode", "1");
- model.makeValue("/root/send/reqdata/clscd", "G");
- model.makeValue("/root/send/reqdata/srchcond", "pid");
-
- if(submit("TRAHA00101")){ // 환자 정보 조회
- if(isNull(model.getValue("/root/temp/patinfo/item/pid"))){
- messageBox("환자 정보 검색에 실패하였습니다.", "E");
- return;
- }else{
-
- if(event.currentTarget=="btn_E"){ // 의뢰
- model.copyNode("/root/send/save", "/root/temp/patinfo/item");
- model.makeValue("/root/send/save/orddd", getCurrentDate());
- model.makeValue("/root/send/save/pid", model.getValue("/root/main/petctlist[chkflag='true']/pid"));
- model.makeValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/save/userid", getUserId());
- model.makeValue("/root/send/save/healexamflag", "C");
- model.makeValue("/root/send/save/healexamdetlflag", "C01");
- model.makeValue("/root/send/save/rsrvdd", getCurrentDate());
- model.makeValue("/root/send/save/hopedd", getCurrentDate());
- model.makeValue("/root/send/save/rsrvflag", "01");
- model.makeValue("/root/send/save/mode", "E");
- model.makeValue("/root/send/save/rsrvdetlflag", "C01");
- model.makeValue("/root/send/save/pkgcd", model.getValue("/root/main/petctlist[chkflag='true']/pkgcd"));
- model.makeValue("/root/send/save/tagno", "");
- model.makeValue("/root/send/save/disccd", "-");
- model.makeValue("/root/send/save/choiflag", "01");
- model.makeValue("/root/send/save/healexamplacecd", "S");
- model.makeValue("/root/send/save/pkguncocd", "V01");
- if(submit("TXAHA00012")){
- model.makeValue("/root/send/srchdata/pid", model.getValue("/root/main/petctlist[chkflag='true']/pid"));
- fSearch();
- }
- }else if(event.currentTarget=="btn_F"){ // 의뢰취소
- model.copyNode("/root/send/save", "/root/temp/patinfo/item");
- model.makeValue("/root/send/save/orddd", getCurrentDate());
- model.makeValue("/root/send/save/pid", model.getValue("/root/main/petctlist[chkflag='true']/pid"));
- model.makeValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/save/userid", getUserId());
- model.makeValue("/root/send/save/healexamflag", "C");
- model.makeValue("/root/send/save/healexamdetlflag", "C01");
- model.makeValue("/root/send/save/hopedd", getCurrentDate());
- model.makeValue("/root/send/save/rsrvflag", "01");
- model.makeValue("/root/send/save/mode", "F");
- model.makeValue("/root/send/save/rsrvdetlflag", "C01");
- model.makeValue("/root/send/save/pkgcd", model.getValue("/root/main/petctlist[chkflag='true']/pkgcd"));
-
- model.makeValue("/root/send/save/orddd", model.getValue("/root/main/petctlist[chkflag='true']/orddd"));
- model.makeValue("/root/send/save/cretno", model.getValue("/root/main/petctlist[chkflag='true']/cretno"));
- model.makeValue("/root/send/save/rsrvdd", model.getValue("/root/main/petctlist[chkflag='true']/grsrvdd"));
- model.makeValue("/root/send/save/rsrvno", model.getValue("/root/main/petctlist[chkflag='true']/grsrvno"));
-
- model.makeValue("/root/send/save/tagno", "");
- model.makeValue("/root/send/save/disccd", "-");
- model.makeValue("/root/send/save/choiflag", "01");
- model.makeValue("/root/send/save/healexamplacecd", "S");
- model.makeValue("/root/send/save/pkguncocd", "V01");
- if(submit("TXAHA00012")){
- model.makeValue("/root/send/srchdata/pid", model.getValue("/root/main/petctlist[chkflag='true']/pid"));
- fSearch();
- }
- }
- }
- }
- }
- }
- /**
- * 패키지명을 기준자료로 관리
- * @return
- */
- function fGetBaseInfo(){
-
- healGetCodeList(new Array("S910"), new Array("/root/init/pkglist"));
- }
- /**
- * PET-CT 의뢰 및 의뢰취소 데이터 저장
- * @return
- */
- function fSaveData(){
- var pid = model.getValue("/root/send/srchdata/pid");
- var pkgcd = model.getValue("/root/send/srchdata/pkgcd");
-
- var cnt = getNodesetCount("/root/main/petctlist[chkflag='true']");
- var kind = model.getValue("/root/main/petctlist[chkflag='true']/kind");
- var rcptstatcd = model.getValue("/root/main/petctlist[chkflag='true']/rcptstatcd")
-
- if(parseInt(cnt)>1){
- messageBox("복수건의 데이터가 선택되었습니다.", "E");
- return;
- }
- if(event.currentTarget=="btn_E"){
- if(kind=="F"){
- messageBox("의뢰취소 된 건을 재의뢰 하실 수는 없습니다.\n신규로 의뢰 부탁드립니다.", "E");
- return;
- }
- }else if(event.currentTarget=="btn_F"){
- if(parseInt(cnt)<1){
- messageBox("선택된 데이터가 없습니다.", "E");
- return;
- }
-
- if(kind=="F"){
- messageBox("이미 의뢰취소 된 건입니다.", "E");
- return;
- }
- if(kind=="S" || kind == "R"){
- messageBox("예약 및 수납된 의뢰건은 의뢰취소가 불가능합니다.\n건진센터로 연락부탁드리겠습니다.", "E");
- return;
- }
-
- var rtn = messageBox("선택된 내역을 의뢰취소하시겠습니까?", "S001");
- if(rtn!="6"){
- return;
- }
- }
-
- if(isNull(pkgcd)){
- messageBox("패키지명이 선택되지 않았습니다.", "E");
- return;
- }
-
-
- if(isNull(pid)){
- messageBox("환자번호가 입력되지 않았습니다.", "E");
- return;
- }else{
- model.makeValue("/root/send/reqdata/srchpid", pid);
- model.makeValue("/root/send/reqdata/sess_posinstcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/srchinstcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/srchfromdd", getCurrentDate());
- model.makeValue("/root/send/reqdata/srchtodd", getCurrentDate());
- model.makeValue("/root/send/reqdata/etccd", "G14");
- model.makeValue("/root/send/reqdata/srchhealexamdetlflag", "C01");
- model.makeValue("/root/send/reqdata/srchmode", "1");
- model.makeValue("/root/send/reqdata/clscd", "G");
- model.makeValue("/root/send/reqdata/srchcond", "pid");
-
- if(submit("TRAHA00101")){ // 환자 정보 조회
- if(isNull(model.getValue("/root/temp/patinfo/item/pid"))){
- messageBox("환자 정보 검색에 실패하였습니다.", "E");
- return;
- }else{
- if(event.currentTarget=="btn_E"){ // 의뢰
- model.copyNode("/root/send/save", "/root/temp/patinfo/item");
- model.makeValue("/root/send/save/orddd", getCurrentDate());
- model.makeValue("/root/send/save/pid", pid);
- model.makeValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/save/userid", getUserId());
- model.makeValue("/root/send/save/healexamflag", "C");
- model.makeValue("/root/send/save/healexamdetlflag", "C01");
- model.makeValue("/root/send/save/rsrvdd", getCurrentDate());
- model.makeValue("/root/send/save/hopedd", getCurrentDate());
- model.makeValue("/root/send/save/rsrvflag", "01");
- model.makeValue("/root/send/save/mode", "E");
- model.makeValue("/root/send/save/rsrvdetlflag", "C01");
- model.makeValue("/root/send/save/pkgcd", pkgcd);
- model.makeValue("/root/send/save/tagno", "");
- model.makeValue("/root/send/save/disccd", "-");
- model.makeValue("/root/send/save/choiflag", "01");
- model.makeValue("/root/send/save/healexamplacecd", "S");
- model.makeValue("/root/send/save/pkguncocd", "V01");
- if(submit("TXAHA00012")){
- fSearch();
- }
- }else if(event.currentTarget=="btn_F"){ // 의뢰취소
- model.copyNode("/root/send/save", "/root/temp/patinfo/item");
- model.makeValue("/root/send/save/orddd", getCurrentDate());
- model.makeValue("/root/send/save/pid", model.getValue("/root/main/petctlist[chkflag='true']/pid"));
- model.makeValue("/root/send/save/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/save/userid", getUserId());
- model.makeValue("/root/send/save/healexamflag", "C");
- model.makeValue("/root/send/save/healexamdetlflag", "C01");
- model.makeValue("/root/send/save/hopedd", getCurrentDate());
- model.makeValue("/root/send/save/rsrvflag", "01");
- model.makeValue("/root/send/save/mode", "F");
- model.makeValue("/root/send/save/rsrvdetlflag", "C01");
- model.makeValue("/root/send/save/pkgcd", model.getValue("/root/main/petctlist[chkflag='true']/pkgcd"));
-
- model.makeValue("/root/send/save/orddd", model.getValue("/root/main/petctlist[chkflag='true']/orddd"));
- model.makeValue("/root/send/save/cretno", model.getValue("/root/main/petctlist[chkflag='true']/cretno"));
- model.makeValue("/root/send/save/rsrvdd", model.getValue("/root/main/petctlist[chkflag='true']/grsrvdd"));
- model.makeValue("/root/send/save/rsrvno", model.getValue("/root/main/petctlist[chkflag='true']/grsrvno"));
-
- model.makeValue("/root/send/save/tagno", "");
- model.makeValue("/root/send/save/disccd", "-");
- model.makeValue("/root/send/save/choiflag", "01");
- model.makeValue("/root/send/save/healexamplacecd", "S");
- model.makeValue("/root/send/save/pkguncocd", "V01");
- if(submit("TXAHA00012")){
- model.makeValue("/root/send/srchdata/pid", model.getValue("/root/main/petctlist[chkflag='true']/pid"));
- fSearch();
- }
- }
- }
- }
- }
- }
- /**
- * PET-CT환자 검색
- * @return
- */
- function fSearch(){
- var pid = model.getValue("/root/send/srchdata/pid");
- var pkgcd = model.getValue("/root/send/srchdata/pkgcd");
- if(isNull(pid)){
- messageBox("환자 번호가 입력되지 않았습니다.", "E");
- return;
- }
-
- submit("TRAHA00199");
- }
|