123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fInitialize_SMMMB08400(){
- fGetMhrcdList();
- }
- /**
- * @desc : 진료공통코드 리스트 조회
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fGetMhrcdList(){
- model.removeNodeset("/root/main/info/mhrcd/mhrcdlist"); // 진료공통코드 리스트
- model.resetInstanceNode("/root/main/hardcdinfo/mhrcdinfo");
- model.resetInstanceNode("/root/main/dhrcd/dhrcdlist");
- model.resetInstanceNode("/root/main/ahrcd/ahrcdlist");
-
- model.setValue("/root/main/cond/userid", getUserInfo("userid"));
- model.setValue("/root/main/cond/deptcd", getUserInfo("dutplcecd"));
- submit("TRMMB08401");
-
- model.refresh(); // 트리가 접힌 상태에서 재조회 하면 그리드에 접힌 수만큼 조회 되지 않는 오류 수정.
- setTree(grd_mhrcdlist, grd_mhrcdlist.colRef("levl"), grd_mhrcdlist.colRef("displaynm"), false);
-
- //input박스 비활성화
- ipt_hardcdno.disabled = true;
- ipt_hardcdnm.disabled = true;
- ipt_suphardcdno.disabled = true;
- txt_rmk.disabled = true;
-
- // 저장버튼 비활성화
- btn_SaveMhrcd.disabled = true;
- btn_SaveAhrcd.disabled = true;
- btn_SaveDhrcd.disabled = true;
- grd_dhrcdlist.clearStatus();
- grd_ahrcdlist.clearStatus();
- model.refresh();
- }
- /**
- * @desc : 진료공통코드 리스트 클릭시 기본정보 설정
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSetHrcdInfo(){
- var nRow = grd_mhrcdlist.row;
- var sHardCdNo = model.getValue("/root/main/mhrcd/mhrcdlist["+nRow+"]/hardcdno");
-
- if(!isNull(sHardCdNo)) {
- model.makeValue("/root/send/reqdata/userid", getUserInfo("userid"));
- model.makeValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
- model.makeValue("/root/send/reqdata/hardcdno", sHardCdNo);
- if (submit("TRMMB08402")){
- model.resetInstanceNode("/root/main/hardcdinfo/mhrcdinfo");
- model.resetInstanceNode("/root/main/dhrcd/dhrcdlist");
- model.resetInstanceNode("/root/main/ahrcd/ahrcdlist");
-
- copyNodesetType("/root/main/hardcdinfo/mhrcdinfo", "/root/main/recv/mhrcdinfo", "replace", model, model);
- copyNodesetType("/root/main/dhrcd/dhrcdlist", "/root/main/recv/dhrcdlist", "replace", model, model);
- copyNodesetType("/root/main/ahrcd/ahrcdlist", "/root/main/recv/ahrcdlist", "replace", model, model);
-
- //input박스 비활성화
- ipt_hardcdno.disabled = true;
- ipt_hardcdnm.disabled = true;
- ipt_suphardcdno.disabled = true;
- txt_rmk.disabled = true;
-
- grd_dhrcdlist.clearStatus();
- grd_ahrcdlist.clearStatus();
-
- var sAuthType = model.getValue("/root/main/hardcdinfo/mhrcdinfo/authtype");
- if(sAuthType == "A" || getUserInfo("userid") == "EMR") {
- btn_SaveMhrcd.disabled = false;
- btn_SaveAhrcd.disabled = false;
- btn_SaveDhrcd.disabled = false;
- } else if(sAuthType == "E"){
- btn_SaveMhrcd.disabled = true;
- btn_SaveAhrcd.disabled = true;
- btn_SaveDhrcd.disabled = false;
- } else {
- btn_SaveMhrcd.disabled = true;
- btn_SaveAhrcd.disabled = true;
- btn_SaveDhrcd.disabled = true;
- }
-
- model.removeNodeset("/root/main/recv");
- model.refresh();
- }
- }
- }
- /**
- * @desc : 진료공통코드 상세 리스트 저장
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSaveMHrcdInfo(){
- if( messageBox("기본정보를","Q002") == 6 ){
- copyNodesetType("/root/send/savedata/mhrcdinfo", "/root/main/hardcdinfo/mhrcdinfo", "replace", model, model);
-
- if ( submit("TXMMB08401") ) {
- fGetMhrcdList();
- }
- }
- }
- /**
- * @desc : 진료공통코드 상세 리스트 저장
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSaveDHrcdList(){
- if( messageBox("상세코드 정보를","Q002") == 6 ){
- model.setValue("/root/send/savedata/dhrcdlist", grd_dhrcdlist.getUpdateData());
-
- if ( submit("TXMMB08402") ) {
- fSetHrcdInfo();
- }
- }
- }
- /**
- * @desc : 진료공통코드 권한 리스트 저장
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSaveAHrcdList(){
- if( messageBox("권한정보를","Q002") == 6 ){
- model.setValue("/root/send/savedata/ahrcdlist", grd_ahrcdlist.getUpdateData());
-
- if ( submit("TXMMB08403") ) {
- fSetHrcdInfo();
- }
- }
- }
|