SMMNR016.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*
  2. 약어 조회(SMMNR01600.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. */
  6. var xAbbrListPath = "/root/main/abbr/abbrlist"; // 약어조회 abbrlist Type
  7. var xCondPath = "/root/main/cond";
  8. /**
  9. * @group :
  10. * @ver : 2007.03.21
  11. * @by : 신혁춘
  12. * @---------------------------------------------------
  13. * @type : function
  14. * @access : public
  15. * @desc : 화면 초기화
  16. * @param :
  17. * @return :
  18. * @---------------------------------------------------
  19. */
  20. function fInit(){
  21. model.makeValue("/root/hidden/uid/children/wid","SPMNR02700");
  22. model.setValue(xCondPath+"/codeflog","%");
  23. fSearch("abbrlisttype");
  24. }
  25. /**
  26. * @group :
  27. * @ver : 2007.03.21
  28. * @by : 신혁춘
  29. * @---------------------------------------------------
  30. * @type : function
  31. * @access : public
  32. * @desc : 간호약어 조회 (
  33. * @param : pFlag ( abbrlisttype : 약어조회 abbr Type 조회)
  34. * @return :
  35. * @---------------------------------------------------
  36. */
  37. function fSearch(pFlag){
  38. if(pFlag == "abbrlisttype" || pFlag=="%"){ //앞에 pFlag는 화면처음오픈시 오는 값이고 뒤에 pFlag값은 전체선택후 검색시 오는 값을 체크
  39. model.removenodeset(xAbbrListPath);
  40. model.removenode("/root/send");
  41. model.makeValue("/root/send/flag","smnttype");
  42. ipt_termnm.value="";
  43. ipt_termnm.refresh();
  44. if(submit("TRMNR01601")){
  45. var RowCnt = grd_care.rows - grd_care.fixedRows;
  46. if(RowCnt > 0){
  47. grd_care.row = 1;
  48. }
  49. }
  50. }else if (pFlag=="1" || pFlag=="2"){ //앞에 pFlag는 한글선택후 검색시 오는 값이고 뒤에 pFlag값은 영문선택후 검색시 오는 값을 체크
  51. model.removenode("/root/send");
  52. model.makeValue("/root/send/termnm",model.getValue(xCondPath+"/termnm"));
  53. model.makeValue("/root/send/codeflog",model.getValue(xCondPath+"/codeflog"));
  54. termnm = model.getValue(xCondPath+"/termnm");
  55. codeflog = model.getValue(xCondPath+"/codeflog");
  56. if(submit("TRMNR01604")){
  57. var RowCnt = grd_care.rows - grd_care.fixedRows;
  58. if(RowCnt > 0){
  59. grd_care.row = 1;
  60. }
  61. }
  62. }
  63. }
  64. /**
  65. * @group :
  66. * @ver : 2007.03.22
  67. * @by : 신혁춘
  68. * @---------------------------------------------------
  69. * @type : function
  70. * @access : public
  71. * @desc : 그리드 클릭시..
  72. * @param :
  73. * @return :
  74. * @---------------------------------------------------
  75. */
  76. function fClicedGrid(){
  77. var idx = 0;
  78. var iRow = -1;
  79. var localcd = "";
  80. if(idx == 0){
  81. iRow = grd_care.row;
  82. if(iRow < 1) return;
  83. model.removenode("/root/send");
  84. model.makeValue("/root/send/supcd",model.getValue(xAbbrListPath+"["+iRow+"]/supcd"));
  85. model.makeValue("/root/send/todd",model.getValue(xAbbrListPath+"["+iRow+"]/todd"));
  86. model.makeValue("/root/send/reprlocalcd",model.getValue(xAbbrListPath+"["+iRow+"]/reprlocalcd"));
  87. supcd = model.getValue(xAbbrListPath+"["+iRow+"]/supcd");
  88. todd = model.getValue(xAbbrListPath+"["+iRow+"]/todd");
  89. reprlocalcd = model.getValue(xAbbrListPath+"["+iRow+"]/reprlocalcd");
  90. }
  91. if (supcd=="********"){
  92. if(submit("TRMNR01603")){
  93. model.setValue("/root/main/abbr/abbrlist",supcd);
  94. model.setValue("/root/main/abbr/abbrlist",todd);
  95. model.setValue("/root/main/abbr/abbrlist",reprlocalcd);
  96. opt_cnptid1.value="";
  97. opt_cnptid1.refresh();
  98. }
  99. }else{
  100. if(submit("TRMNR01602")){
  101. model.setValue("/root/main/abbr/abbrlist",supcd);
  102. model.setValue("/root/main/abbr/abbrlist",todd);
  103. model.setValue("/root/main/abbr/abbrlist",reprlocalcd);
  104. var re = "/root/main/abbrdetl/abbrdetllist";
  105. }
  106. }
  107. }