SMMQR00900.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /**
  2. * @---------------------------------------------------
  3. * @desc : 감면사례보고 조회시 기본정보 setting
  4. * @param :
  5. * @return :
  6. * @---------------------------------------------------
  7. */
  8. function fInitialize_00900(){
  9. zbcfGetCodeList(new Array("M0446"), new Array("/root/init/reductcaserept/insuflag"), true);
  10. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/reductcaserept/orddept", "O"); //진료과 항목 설정
  11. mmbfGetUserComboList("/root/send/reqdata", "/root/init/reductcaserept/anstdr", "2090000000", "0330"); //마취의 항목설정
  12. if(parent.model.getValue("/root/main/condition/acptno") == ""){ //최초입력 시
  13. fSetDr();
  14. }
  15. else{ //조회 후 초기화
  16. var orddept = parent.model.getValue("/root/tmp/reptinfo/reductinfo/civilapldeptcd" );
  17. model.setValue("/root/main/cond/civilapldeptcd" , orddept);
  18. mmbfGetUserComboList("/root/send/reqdata", "/root/init/reductcaserept/pertdr", orddept, "0330");
  19. model.setValue("/root/main/cond/insuflagcd" , parent.model.getValue("/root/tmp/reptinfo/reductinfo/insuflagcd" ) );
  20. model.setValue("/root/main/cond/opdate" , parent.model.getValue("/root/tmp/reptinfo/reductinfo/opdate" ) );
  21. model.setValue("/root/main/cond/opnm" , parent.model.getValue("/root/tmp/reptinfo/reductinfo/opnm" ) );
  22. model.setValue("/root/main/cond/pertdr" , parent.model.getValue("/root/tmp/reptinfo/reductinfo/pertdr" ) );
  23. model.setValue("/root/main/cond/anstdr" , parent.model.getValue("/root/tmp/reptinfo/reductinfo/anstdr" ) );
  24. model.setValue("/root/main/cond/reldremp" , parent.model.getValue("/root/tmp/reptinfo/reductinfo/reldremp" ) );
  25. var chkcase = parent.model.getValue("/root/tmp/reptinfo/reductinfo/chkcase" )
  26. model.setValue("/root/main/cond/chkcase" , chkcase );
  27. if(chkcase.search("07") > -1){
  28. model.setValue("/root/main/cond/caseetccnts" , parent.model.getValue("/root/tmp/reptinfo/reductinfo/caseetccnts" ) );
  29. tar_caseetccnts.visible = true;
  30. }
  31. model.setValue("/root/main/cond/detldesccnts" , parent.model.getValue("/root/tmp/reptinfo/reductinfo/detldesccnts" ) );
  32. }
  33. model.refresh();
  34. }
  35. /**
  36. * @---------------------------------------------------
  37. * @desc : 대상자정보 가져오기
  38. * @param :
  39. * @return :
  40. * @---------------------------------------------------
  41. */
  42. function fSetDr(){
  43. model.setValue("/root/main/cond/opdate" , parent.model.getValue("/root/tmp/trgtinfo/opdate"));
  44. orddept = parent.model.getValue("/root/tmp/trgtinfo/civilapldeptcd");
  45. if(orddept == ""){
  46. mmbfGetUserComboList("/root/send/reqdata", "/root/init/reductcaserept/pertdr", getUserInfo("dutplcecd"), "0330"); //
  47. }else{
  48. mmbfGetUserComboList("/root/send/reqdata", "/root/init/reductcaserept/pertdr", orddept, "0330");
  49. }
  50. model.setValue("/root/main/cond/civilapldeptcd" , orddept );
  51. model.setValue("/root/main/cond/opnm" , parent.model.getValue("/root/tmp/trgtinfo/opnm"));
  52. model.setValue("/root/main/cond/pertdr" , parent.model.getValue("/root/tmp/trgtinfo/pertdr"));
  53. model.setValue("/root/main/cond/anstdr" , parent.model.getValue("/root/tmp/trgtinfo/anstdr"));
  54. model.refresh();
  55. }
  56. /**
  57. * @---------------------------------------------------
  58. * @desc : 필수입력 콘트롤에 값이 입력되어있는지 체크
  59. * @param :
  60. * @return : true or false
  61. * @---------------------------------------------------
  62. */
  63. function fDetlCheck(){
  64. if(!isRequiredControls("cmb_insuflagcd", "chk_chkcase")){
  65. return false;
  66. }
  67. return true;
  68. }