123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- /*function list
- fSetMedDr(flag) : 부서코드 선택 시 주치의 및 세부분과 셋팅
- */
- /**
- * @desc : 부서코드 선택 시 주치의 셋팅
- * @param:
- flag - M : 주치의 SETTING , S: 세부분과SETTING , '' : 전체
- */
- function fSetMedDr(flag , orddeptcd ) {
- //model.removeNodeset("/root/init/userlist");
- //model.removeNodeset("/root/init/subdeptinfo");
- model.resetInstanceNode("/root/send");
-
- if( isNull(orddeptcd) || orddeptcd == "-" ) {
- if ( isNull(flag) || flag == "M" ){
- model.removeNodeset("/root/init/userlist");
- model.makeValue("/root/init/userlist/usercombo/userid", "-");
- model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
- model.makeValue("/root/main/condition/medispclid" , "-");
- }
-
- if ( isNull(flag) || flag == "S" ){
- model.removeNodeset("/root/init/subdeptinfo");
- model.makeValue("/root/main/condition/subdeptcd" , "-");
- }
- } else {
- if ( isNull(flag) || flag == "M" ){
- //전문의
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , orddeptcd, "0330", "", "M");
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- cmb_medispclid.value = "-";
- }
-
- if ( isNull(flag) || flag == "S" ){
- //세부과 setting
- mmbfGetSubDeptComboList("/root/send/reqdata", "/root/init/subdeptinfo", orddeptcd);
- model.makeNode("/root/init/subdeptinfo/subdeptlist");
- addComboInstance("/root/init/subdeptinfo" , "subdeptcd^subdeptnm", "-^전체", "subdeptlist"); //부서콤보 Item '전체'추가
- cmb_subdept.value = "-";
- }
- }
-
- model.refresh();
- }
|