AWMCommon.xjs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[
  3. function fSetCurDate(strPath, column, row)
  4. {
  5. strPath.setColumn(row, column, utlf_getCurrentDate());
  6. }
  7. /**
  8. * @desc : 현재날짜 구하기
  9. */
  10. function fSetDate(strPath, column, strValue){
  11. strPath.setColumn(0, column, strValue);
  12. }
  13. //
  14. // /**
  15. // * @desc : 현재날짜 구하기
  16. // *
  17. // * @param
  18. // * strPath : ??? instance
  19. // * strValue : ??? ??
  20. // * @return :
  21. // * @---------------------------------------------------
  22. // */
  23. // function fSetDate(strPath, strValue){
  24. // model.setValue(strPath, strValue);
  25. // model.refresh();
  26. // }
  27. //
  28. //
  29. //
  30. // /**
  31. // * 로드갯수 구하기
  32. // * @param : 모델명(model1), 경로(path)
  33. // */
  34. // function getNodesetCnt(srchModel, path) {
  35. // var insXml = srchModel.instances(0);
  36. // var nodeList = insXml.selectNodes(path);
  37. // return nodeList.length;
  38. // }
  39. //
  40. // var awmResultRef = "/root/hidden/awm/resultref";
  41. // function makeAwmResultRef(){ model.makeNode(awmResultRef); }
  42. //
  43. // function removeAwmResultRef(){ model.removeNode(awmResultRef); }
  44. //
  45. // /**
  46. // * 수련/담당사회사업가 목록 조회
  47. // * @param : 수련/담당구분(socl_flag : chrg, trng), 경로(path)
  48. // */
  49. function awmfGetSoclWorkList(socl_flag, rslt_ref_list){
  50. dsf_createDs("ds_temp_send", [{col:"soclflag", type:"string", size:256}]);
  51. var sRetDsNm = "";
  52. for( var i=0 ; i<socl_flag.length ; i++ ){
  53. ds_temp_send.addRow();
  54. ds_temp_send.setColumn(i, "soclflag", socl_flag[i]);
  55. if( i < (socl_flag.length-1) ){
  56. sRetDsNm += rslt_ref_list[i] + "_" + socl_flag[i] + "=" + socl_flag[i] + " ";
  57. }else{
  58. sRetDsNm += rslt_ref_list[i] + "_" + socl_flag[i] + "=" + socl_flag[i];
  59. }
  60. }
  61. var oParam = {};
  62. oParam.id = "TRAWM00202";
  63. oParam.service = "soclworkapp.SoclWorkCnstMngt";
  64. oParam.method = "reqGetSoclWork";
  65. oParam.inds = "req=ds_temp_send";
  66. oParam.outds = sRetDsNm;
  67. oParam.async = false;
  68. //oParam.callback = "cf_TRAWM00202";
  69. tranf_submit(oParam);
  70. }
  71. //
  72. // /**
  73. // * 그리드 Cell Focus 이동
  74. // */
  75. function fGrdSetFocus(grd_name, lrow, lcol)
  76. {
  77. var dsBind = grd_name.binddataset;
  78. dsBind.rowposition = lrow;
  79. grd_name.setCellPos(lcol);
  80. grd_name.setFocus();
  81. //grd_name.editCell();
  82. }
  83. //
  84. //
  85. //
  86. // /**
  87. // * 기초코드 가져오기
  88. // * @param : (socl_flag : chrg, trng), 경로(path)
  89. // */
  90. function awmfGetCodeList(socl_flag, rslt_ref_list){
  91. dsf_createDs("ds_temp_send", [{col:"clssupcd", type:"string", size:256}]);
  92. var sRetDsNm = "";
  93. for( var i=0 ; i<socl_flag.length ; i++ ){
  94. ds_temp_send.addRow();
  95. ds_temp_send.setColumn(i, "clssupcd", socl_flag[i]);
  96. if( i < (socl_flag.length-1) ){
  97. sRetDsNm += rslt_ref_list[i] + "_" + socl_flag[i] + "=" + socl_flag[i] + " ";
  98. }else{
  99. sRetDsNm += rslt_ref_list[i] + "_" + socl_flag[i] + "=" + socl_flag[i];
  100. }
  101. }
  102. var oParam = {};
  103. oParam.id = "TRAWM003602";
  104. oParam.service = "soclworkapp.SoclWorkCnstMngt";
  105. oParam.method = "reqGetCodeInfo";
  106. oParam.inds = "req=ds_temp_send";
  107. oParam.outds = sRetDsNm;
  108. oParam.async = false;
  109. //oParam.callback = "cf_TRAWM003602";
  110. tranf_submit(oParam);
  111. }]]></Script>