123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- /**
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 진료 - 사본발행( SMMRC03000_사본발행.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
-
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- /**
- * @group :
- * @ver :
- * @by : 이창록 2008-08-29
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
-
- function fInit_SMMRC03000()
- {
- //test
- //var userinfo ="0330";
- //var userid ="98015255";
- // getUserInfo("dutplcecd")="2060000000"
- model.removeNodeset("/root/main/apphist/applist");
- zbcfGetCodeList(new Array("P0001","M0332"),new Array("/root/init/common/ioflaglist","/root/init/common/issgoalcd"),true)
- if(checkOpener()){
- var copy_paramid = opener.javascript.getParameter("SMMRC03000_param_pid");
- model.setValue("/root/main/appinfo/patinfo/pid",copy_paramid);
- var userinfo = getUserInfo("dutplcecd");
- var userid = getUserId();
- userid = userid.getTrim();
- if(userinfo == "3230000000"){
- zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"),"/root/init/deptlist","depthngnm","asc");//전체 진료과
- cmb_dept.refresh();
- model.setValue("/root/main/appinfo/patinfo/appdeptcd",getUserInfo("dutplcecd"));
- zsufGetOrdDeptDoctorList("none", getUserInfo("dutplceinstcd"), cmb_dept.value, "/root/init/userinfo/userlist", "usernm", "asc")//해당 주치의
- model.setValue("/root/main/appinfo/patinfo/appmanid",userid);
- cmd_appmanid.refresh();
- }else{
- cmb_dept.disabled = false;
- cmd_appmanid.disabled = false;
- zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"),"/root/init/deptlist","depthngnm","asc");//전체 진료과
- cmb_dept.refresh();
- }
-
- }
- }else{
- var userinfo = getUserInfo("dutplcecd");
- var userid = getUserId();
- userid = userid.getTrim();
- if(userinfo == "3230000000"){
- zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"),"/root/init/deptlist","depthngnm","asc");//전체 진료과
- cmb_dept.refresh();
- model.setValue("/root/main/appinfo/patinfo/appdeptcd",getUserInfo("dutplcecd"));
- zsufGetOrdDeptDoctorList("none", getUserInfo("dutplceinstcd"), cmb_dept.value, "/root/init/userinfo/userlist", "usernm", "asc")//해당 주치의
- model.setValue("/root/main/appinfo/patinfo/appmanid",userid);
- cmd_appmanid.refresh();
- }else{
- cmb_dept.disabled = false;
- cmd_appmanid.disabled = false;
- zsdfGetInOutOrdDeptList(getUserInfo("dutplceinstcd"),"/root/init/deptlist","depthngnm","asc");//전체 진료과
- cmb_dept.refresh();
- }
-
- }
- fHistSearch();
- //model.refresh();
- }
- /**
- * @group :
- * @ver :
- * @by : 이창록 2008-08-29
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 이전사본발행 내역 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fHistSearch()
- {
- //test pid ="74"
- //model.makeValue("/root/send/cond/pid",model.getValue("/root/main/appinfo/patinfo/pid"));
- model.makeValue("/root/send/cond/pid","74");
- if(submit("TRMRC01201")){
- }
- }
- /**
- * @group :
- * @ver :
- * @by : 이창록 2008-08-29
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 사본발행 목적 팝업 호출(사본발행신청 화면과 동일)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fIssGoalPopUp(){
- var sIssUsge = "";
- var sIssUsgeCnt = 0;
- var sIssGoalEtcYN = false;
- var sIssGoalEtc = "";
- var sIssGoalEtcCd = "";
- var sIssGoalCd = "";
- var sStndRow = 0;
- setParameter("SPMMR02200_multichkyn", "Y");
- modal("SPMMR02200");
- sIssUsge = model.getValue("/root/main/issusge");
- sIssUsgeCnt = model.getValue("/root/main/issusge").split("▩").length;
- if(sIssUsge != ""){
- for(var i=1; i<sIssUsgeCnt; i++){
- if(i != sIssUsgeCnt-1){
- if(sIssGoalEtc != "") sIssGoalEtc += ",";
- if(sIssGoalEtcCd != "") sIssGoalEtcCd += ",";
- }
-
- sIssGoalEtc += getArrayData(sIssUsge, i, 1);
- sIssGoalCd = getArrayData(sIssUsge, i, 0);
- /*sStndRow = grd_apphist.findRow(sIssGoalCd, 0, 3);
- if(sStndRow > 0){
- messageBox("선택하신 사본발행목적은 이미 신청되었습니다. 다시","C002");
- return;
- }*/
- if(sIssGoalCd == "99"){
- sIssGoalEtcYN = true;
- }
- sIssGoalEtcCd += sIssGoalCd;
- }
- if(sIssGoalEtcYN == true){
- ipt_issgoaletc.disabled = false;
- }else{
- model.setValue("/root/main/appinfo/copyinfo/issgoaletcnm","");
- ipt_issgoaletc.disabled = true;
- }
- if(sIssGoalEtcCd.indexOf("06") > -1){
- messageBox("직할병원용 : 주치의가 8개 직할 병원으로 이동하여 환자도 함께 전원 가기를 희망하는 경우 선택","E008");
- }
- model.setValue("/root/main/appinfo/copyinfo/issgoaletc", sIssGoalEtc);
- model.setValue("/root/main/appinfo/copyinfo/issgoaletccd", sIssGoalEtcCd);
- }
- model.refresh();
- }
|