SMMQK00320.xjs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[function fInitialize(){
  3. group3.grp_sea.ipt_fromdd.value = utlf_getCurrentDate().substring(0,4).concat("0101");
  4. group3.grp_sea.ipt_todd.value = utlf_getCurrentDate();
  5. if(fchkUser() == "Q"){
  6. group3.grp_sea.btn_first.visible = true;
  7. group3.grp_sea.btn_second.visible = true;
  8. group3.grp_sea.btn_third.visible = true;
  9. group3.grp_sea.btn_fourth.visible = true;
  10. group3.grp_sea.btn_fifth.visible = true;
  11. group3.group1.visible = true;
  12. group3.grp_sea.btn_search.position = "absolute 720 14 776 36";
  13. group3.grp_sea.line2.position = "absolute 709 10 715 41";
  14. }
  15. else{
  16. group3.grp_sea.btn_first.visible = false;
  17. group3.grp_sea.btn_second.visible = false;
  18. group3.grp_sea.btn_third.visible = false;
  19. group3.grp_sea.btn_fourth.visible = false;
  20. group3.grp_sea.btn_fifth.visible = false;
  21. group3.group1.visible = false;
  22. group3.grp_sea.btn_search.position = "absolute 1110 14 1166 36";
  23. group3.grp_sea.line2.position = "absolute 1094 10 1100 41";
  24. }
  25. fGetList();
  26. }
  27. function fGetList(){
  28. var auth = fchkUser();
  29. ds_send_cond.setColumn(0, "auth", auth);
  30. var oParam = {};
  31. oParam.id = "TRMQK00320";
  32. oParam.service = "qiapp.QiActivityMngt";
  33. oParam.method = "reqGetQIandIndicatorsActivityList";
  34. oParam.inds = "req=ds_send_cond";
  35. oParam.outds = "ds_main_list_row=list";
  36. oParam.async = false;
  37. tranf_submit(oParam);
  38. for(var i = 0; i < ds_main_list_row.rowcount ; i++){
  39. for(var a =0; a < 4 ; a++){
  40. var endFlag = ds_main_list_row.getColumn(i, "prcsstat"+a);
  41. if(endFlag.substr(0,2) != "마감"){
  42. ds_main_list_row.setColumn(i, "prcsstat"+(a+1), "");
  43. }
  44. else{
  45. }
  46. }
  47. }
  48. }
  49. function fPrizynSave(){
  50. /*
  51. if(sysf_messageBox("포상유무를 ", "Q002") == "7"){
  52. return false;
  53. }
  54. ds_main_list_row.filter("prizyn=='Y'");
  55. ds_send_prizyn_acptno.copyData(ds_main_list_row,true);
  56. ds_main_list_row.filter("");
  57. //ds_send_prizyn_acptno.setColumn(0, "acptno", csv);
  58. var oParam = {};
  59. oParam.id = "TXMQK00300";
  60. oParam.service = "qiapp.QiActivityMngt";
  61. oParam.method = "reqSetPrizyn";
  62. oParam.inds = "req=ds_send_prizyn_acptno";
  63. oParam.outds = "";
  64. oParam.async = false;
  65. tranf_submit(oParam);
  66. */
  67. }
  68. //계획서, 보고서 양식 저장
  69. function fFormSave(prcsstagecd){
  70. var maxsize = gMaxSize;//upload1.attribute("filesize");
  71. //files = window.fileDialog("open");
  72. var fd = new FileDialog;
  73. var objVFile = fd.open("FileOpen", FileDialog.LOAD); //// 단일 파일 선택
  74. ds_send_file.clearData();
  75. ds_send_file.addRow();
  76. ds_send_report.clearData();
  77. ds_send_report.addRow();
  78. var files = dsf_writeFileToDs(objVFile, ds_send_file, 0, "filedata");
  79. filesize = file.filesize;
  80. //파일사이즈 체크
  81. //파일 크기가 너무 큰경우 메세지를 띄운다.
  82. if (filesize > maxsize){
  83. sysf_messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  84. }
  85. if (!utlf_isNull(files)) {
  86. ds_send_file.setColumn(0, "file", file.filename);
  87. ds_send_file.setColumn(0, "filenm", file.filename);
  88. ds_send_file.setColumn(0, "filesize", file.filesize);
  89. ds_send_file.setColumn(0, "filetype", file.filetype);
  90. ds_send_report.setColumn(0, "file", files);
  91. ds_send_report.setColumn(0, "prcsstagecd", prcsstagecd);
  92. var oParam = {};
  93. oParam.id = "TXMQK00301";
  94. oParam.service = "qiapp.QiActivityMngt";
  95. oParam.method = "reqExeUploadForm";
  96. oParam.inds = "attach=ds_send_file report=ds_send_report";
  97. oParam.outds = "";
  98. oParam.async = false;
  99. oParam.callback = "cf_TXMQK00301";
  100. tranf_submit(oParam);
  101. }
  102. }
  103. function cf_TXMQK00301(sSvcId, nErrorCode, sErrorMsg) {
  104. if(nErrorCode < 0) return;
  105. sysf_messageBox("저장 ", "I002");
  106. }]]></Script>