SMMQK00310.xjs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[
  3. function fInitialize() {
  4. group3.grp_sea.ipt_fromdd.value = utlf_getCurrentDate().substring(0, 4).concat("0101");
  5. group3.grp_sea.ipt_todd.value = utlf_getCurrentDate();
  6. if (fchkUser() == "Q") {
  7. group3.grp_sea.cap_prizyn.visible = true;
  8. group3.grp_sea.cmb_prizyn.visible = true;
  9. group3.btn_prizyn.visible = true;
  10. group3.grp_sea.btn_plan.visible = true;
  11. group3.grp_sea.btn_third.visible = true;
  12. group3.grp_sea.btn_fifth.visible = true;
  13. group3.group1.visible = true;
  14. group3.grp_sea.btn_search.position = "absolute 840 7 900 29" ;
  15. group3.grp_sea.line2.position = "absolute 827 5 830 31";
  16. } else {
  17. group3.grp_sea.cap_prizyn.visible = false;
  18. group3.grp_sea.cmb_prizyn.visible = false;
  19. group3.btn_prizyn.visible = false;
  20. group3.grp_sea.btn_plan.visible = false;
  21. group3.grp_sea.btn_third.visible = false;
  22. group3.grp_sea.btn_fifth.visible = false;
  23. group3.group1.visible = false;
  24. group3.grp_sea.btn_search.position = "absolute 1120 7 1180 29";
  25. group3.grp_sea.line2.position = "absolute 1112 5 1115 31";
  26. }
  27. lf_getHardCDList("N", 5665, 0 , ds_temp_prizinfo); //fGetHardCDList("N", 5665, 0, "/root/temp/prizinfo");
  28. dsf_setDefaultVal(ds_temp_prizinfo, "all");
  29. fGetList();
  30. }
  31. function fGetList() {
  32. var auth = fchkUser();
  33. ds_main_cond.setColumn(0, "auth", auth);
  34. var oParam = {};
  35. oParam.id = "TRMQK00310";
  36. oParam.service = "qiapp.QiActivityMngt";
  37. oParam.method = "reqGetQIandIndicatorsActivityList";
  38. oParam.inds = "req=ds_main_cond";
  39. oParam.outds = "ds_list_row=list";
  40. oParam.async = false;
  41. tranf_submit(oParam);
  42. for (var i = 0; i < ds_list_row.rowcount; i++) {
  43. for (var a = 0; a < 2; a++) {
  44. var endFlag = ds_list_row.getColumn(i, "prcsstat" + a);
  45. if (endFlag.substr(0, 2) != "마감") {
  46. ds_list_row.setColumn(i, "prcsstat" + (eval(a) + 1), "");
  47. }
  48. }
  49. }
  50. }
  51. function fPrizynSave() {
  52. if (sysf_messageBox("포상유무를 ", "Q002") == "7") {
  53. return false;
  54. }
  55. ds_list_row.filter("prizyn != 'N'");
  56. //var csv = getNodeListCSV(checkNodeList);
  57. ds_send_prizinfo_saveinfo.copyData(ds_list_row, true);
  58. ds_list_row.filter("");
  59. var oParam = {};
  60. oParam.id = "TXMQK00310";
  61. oParam.service = "qiapp.QiActivityMngt";
  62. oParam.method = "reqSetPrizyn";
  63. oParam.inds = "req=ds_send_prizinfo_saveinfo";
  64. oParam.outds = "";
  65. oParam.async = false;
  66. tranf_submit(oParam);
  67. }
  68. function fGridOnclick() {
  69. var cur_row = ds_list_row.rowposition;
  70. var acptno = ds_list_row.getColumn(cur_row, "acptno");
  71. if (!utlf_isNull(acptno)) {
  72. var col = grd_list.currentcol;
  73. frmf_setParameter("ano", acptno);
  74. if (col == "7") {
  75. frmf_modal("SMMQK00100", "SMMQK00100", "", null, "1", "", "", null, null, null, null, null, "M");
  76. fGetList();
  77. } else if (col == "8" || col == "9" || col == "10" || col == "11" || col == "12" || col == "13" || col == "14") {
  78. var endFlag = utlf_transNullToEmpty(ds_list_row.getColumn(cur_row, "prcsstat" + (eval(col) - 8)));
  79. if (endFlag.substr(0, 2) == "마감") {
  80. frmf_setParameter("prcsstagecd", eval((eval(col) - 7) * 10));
  81. if (!utlf_isNull(ds_list_row.getColumn(cur_row, "prcsstat" + (eval(col) - 7)))) {
  82. //modal("SMMQK00210", "1", "", "", "", "", "", "left:100; top:100; width:1230; height:784;");
  83. frmf_modal("SMMQK00210", "SMMQK00210", "", null, "1", "", "", null, null, null, null, null, "M");
  84. fGetList();
  85. }
  86. }
  87. }
  88. } else {
  89. return;
  90. }
  91. }
  92. //계획서, 보고서 양식 저장
  93. function fFormSave(prcsstagecd) {
  94. var maxsize = gMaxSize;//upload1.attribute("filesize");
  95. //files = window.fileDialog("open");
  96. var fd = new FileDialog;
  97. var objVFile = fd.open("FileOpen", FileDialog.LOAD); //// 단일 파일 선택
  98. ds_send_file.clearData();
  99. ds_send_file.addRow();
  100. ds_send_report.clearData();
  101. ds_send_report.addRow();
  102. ds_send_report.setColumn(0, "flag", "Q");
  103. var files = dsf_writeFileToDs(objVFile, ds_send_file, 0, "filedata");
  104. filesize = files.filesize;
  105. //파일사이즈 체크
  106. //파일 크기가 너무 큰경우 메세지를 띄운다.
  107. if (filesize > maxsize){
  108. sysf_messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  109. }
  110. if (!utlf_isNull(files)) {
  111. ds_send_file.setColumn(0, "file", files.filename);
  112. ds_send_file.setColumn(0, "filenm", files.filename);
  113. ds_send_file.setColumn(0, "filesize", files.filesize);
  114. ds_send_file.setColumn(0, "filetype", files.filetype);
  115. ds_send_report.setColumn(0, "file", files);
  116. ds_send_report.setColumn(0, "prcsstagecd", prcsstagecd);
  117. var oParam = {};
  118. oParam.id = "TXMQK00301";
  119. oParam.service = "qiapp.QiActivityMngt";
  120. oParam.method = "reqExeUploadForm";
  121. oParam.inds = "attach=ds_send_file report=ds_send_report";
  122. oParam.outds = "";
  123. oParam.async = false;
  124. oParam.callback = "cf_TXMQK00301";
  125. tranf_submit(oParam);
  126. }
  127. }
  128. function cf_TXMQK00301(sSvcId, nErrorCode, sErrorMsg) {
  129. if(nErrorCode < 0) return;
  130. sysf_messageBox("저장 ", "I002");
  131. }]]></Script>