SMMNR016.xjs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[/*
  3. 약어 조회(SMMNR01600.xfm - JScript )
  4. - Version :
  5. 1) : Ver.1.00.01
  6. */
  7. var xAbbrListPath = ds_main_abbr_abbrlist; // 약어조회 abbrlist Type
  8. var xCondPath = ds_main_cond;
  9. /**
  10. * @group :
  11. * @ver : 2007.03.21
  12. * @by : 신혁춘
  13. * @---------------------------------------------------
  14. * @type : function
  15. * @access : public
  16. * @desc : 화면 초기화
  17. * @param :
  18. * @return :
  19. * @---------------------------------------------------
  20. */
  21. function fInit() {
  22. dsf_makeValue(ds_hidden_uid_children, "string", "wid", "SPMNR02700");
  23. xCondPath.setColumn(0, "codeflog", "%");
  24. fSearch("abbrlisttype");
  25. this.setTimer(0, 100);
  26. }
  27. /**
  28. * @group :
  29. * @ver : 2007.03.21
  30. * @by : 신혁춘
  31. * @---------------------------------------------------
  32. * @type : function
  33. * @access : public
  34. * @desc : 간호약어 조회 (
  35. * @param : pFlag ( abbrlisttype : 약어조회 abbr Type 조회)
  36. * @return :
  37. * @---------------------------------------------------
  38. */
  39. function fSearch(pFlag) {
  40. if (pFlag == "abbrlisttype" || pFlag == "%") { //앞에 pFlag는 화면처음오픈시 오는 값이고 뒤에 pFlag값은 전체선택후 검색시 오는 값을 체크
  41. xAbbrListPath.clearData();
  42. ds_send.clearData();
  43. dsf_makeValue(ds_send, "flag", "string", "smnttype");
  44. group5.grp_sea.ipt_termnm.value = "";
  45. var oParam = {};
  46. oParam.id = "TRMNR01601";
  47. oParam.service = "carerecapp.ICNPMngt";
  48. oParam.method = "reqGetAbbrTypeList";
  49. oParam.inds = "";
  50. oParam.outds = "ds_main_abbr_abbrlist=abbrlist";
  51. oParam.async = false;
  52. oParam.callback = "cf_TRMNR01601";
  53. tranf_submit(oParam);
  54. } else if (pFlag == "1" || pFlag == "2") { //앞에 pFlag는 한글선택후 검색시 오는 값이고 뒤에 pFlag값은 영문선택후 검색시 오는 값을 체크
  55. ds_send.clearData();
  56. dsf_makeValue(ds_send, "termnm", "string", xCondPath.getColumn(0, "termnm"));
  57. dsf_makeValue(ds_send, "codeflog", "string", xCondPath.getColumn(0, "codeflog"));
  58. termnm = xCondPath.getColumn(0, "termnm");
  59. codeflog = xCondPath.getColumn(0, "codeflog");
  60. var oParam = {};
  61. oParam.id = "TRMNR01604";
  62. oParam.service = "carerecapp.ICNPMngt";
  63. oParam.method = "reqGetCodeTypeList";
  64. oParam.inds = "reqCond=ds_send";
  65. oParam.outds = "ds_main_abbr_abbrlist=abbrlist";
  66. oParam.async = false;
  67. oParam.callback = "cf_TRMNR01604";
  68. tranf_submit(oParam);
  69. }
  70. }
  71. function cf_TRMNR01601(sSvcId, nErrorCode, sErrorMsg) {
  72. if (nErrorCode < 0) return;
  73. var RowCnt = ds_main_abbr_abbrlist.rowposition;
  74. if (RowCnt >= 0) {
  75. ds_main_abbr_abbrlist.rowposition = 0;
  76. }
  77. }
  78. function cf_TRMNR01604(sSvcId, nErrorCode, sErrorMsg) {
  79. if (nErrorCode < 0) return;
  80. var RowCnt = ds_main_abbr_abbrlist.rowposition;
  81. if (RowCnt >= 0) {
  82. ds_main_abbr_abbrlist.rowposition = 0;
  83. }
  84. }
  85. /**
  86. * @group :
  87. * @ver : 2007.03.22
  88. * @by : 신혁춘
  89. * @---------------------------------------------------
  90. * @type : function
  91. * @access : public
  92. * @desc : 그리드 클릭시..
  93. * @param :
  94. * @return :
  95. * @---------------------------------------------------
  96. */
  97. function fClicedGrid() {
  98. var idx = 0;
  99. var iRow = -1;
  100. var localcd = "";
  101. if (idx == 0) {
  102. iRow = ds_main_abbr_abbrlist.rowposition;
  103. if (iRow < 0) return;
  104. ds_send.clearData();
  105. dsf_makeValue(ds_send, "supcd", "string", xAbbrListPath.getColumn(iRow, "supcd"));
  106. dsf_makeValue(ds_send, "todd", "string", xAbbrListPath.getColumn(iRow, "todd"));
  107. dsf_makeValue(ds_send, "reprlocalcd", "string", xAbbrListPath.getColumn(iRow, "reprlocalcd"));
  108. supcd = xAbbrListPath.getColumn(iRow, "supcd");
  109. todd = xAbbrListPath.getColumn(iRow, "todd");
  110. reprlocalcd = xAbbrListPath.getColumn(iRow, "reprlocalcd");
  111. }
  112. if (supcd == "********") {
  113. var oParam = {};
  114. oParam.id = "TRMNR01603";
  115. oParam.service = "carerecapp.ICNPMngt";
  116. oParam.method = "reqGetIABBRnullMngt";
  117. oParam.inds = "reqCond=ds_send";
  118. oParam.outds = "ds_main_abbrdetl_abbrdetllist=abbrdetllist";
  119. oParam.async = false;
  120. //oParam.callback = "cf_TRMNR01603";
  121. tranf_submit(oParam);
  122. } else {
  123. var oParam = {};
  124. oParam.id = "TRMNR01602";
  125. oParam.service = "carerecapp.ICNPMngt";
  126. oParam.method = "reqGetIABBRMngt";
  127. oParam.inds = "reqCond=ds_send";
  128. oParam.outds = "ds_main_abbrdetl_abbrdetllist=abbrdetllist";
  129. oParam.async = false;
  130. //oParam.callback = "cf_TRMNR01602";
  131. tranf_submit(oParam);
  132. }
  133. }
  134. function cf_TRMNR01603(sSvcId, nErrorCode, sErrorMsg) {
  135. if (nErrorCode < 0) return;
  136. //ds_main_abbr_abbrlist.setColumn(0, "/root/main/abbr/abbrlist", supcd);
  137. //ds_main_abbr_abbrlist.setColumn(0, "/root/main/abbr/abbrlist", todd);
  138. //ds_main_abbr_abbrlist.setColumn(0, "/root/main/abbr/abbrlist", reprlocalcd);
  139. opt_cnptid1.value = "";
  140. }
  141. function cf_TRMNR01602(sSvcId, nErrorCode, sErrorMsg) {
  142. if(nErrorCode < 0) return;
  143. }]]></Script>