123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[
- function fInitialize() {
- group3.grp_sea.ipt_fromdd.value = utlf_getCurrentDate().substring(0, 4).concat("0101");
- group3.grp_sea.ipt_todd.value = utlf_getCurrentDate();
- if (fchkUser() == "Q") {
- group3.grp_sea.cap_prizyn.visible = true;
- group3.grp_sea.cmb_prizyn.visible = true;
- group3.btn_prizyn.visible = true;
- group3.grp_sea.btn_plan.visible = true;
- group3.grp_sea.btn_third.visible = true;
- group3.grp_sea.btn_fifth.visible = true;
- group3.group1.visible = true;
- group3.grp_sea.btn_search.position = "absolute 840 7 900 29" ;
- group3.grp_sea.line2.position = "absolute 827 5 830 31";
- } else {
- group3.grp_sea.cap_prizyn.visible = false;
- group3.grp_sea.cmb_prizyn.visible = false;
- group3.btn_prizyn.visible = false;
- group3.grp_sea.btn_plan.visible = false;
- group3.grp_sea.btn_third.visible = false;
- group3.grp_sea.btn_fifth.visible = false;
- group3.group1.visible = false;
- group3.grp_sea.btn_search.position = "absolute 1120 7 1180 29";
- group3.grp_sea.line2.position = "absolute 1112 5 1115 31";
- }
-
- lf_getHardCDList("N", 5665, 0 , ds_temp_prizinfo); //fGetHardCDList("N", 5665, 0, "/root/temp/prizinfo");
-
- dsf_setDefaultVal(ds_temp_prizinfo, "all");
-
- fGetList();
- }
- function fGetList() {
- var auth = fchkUser();
- ds_main_cond.setColumn(0, "auth", auth);
-
- var oParam = {};
- oParam.id = "TRMQK00310";
- oParam.service = "qiapp.QiActivityMngt";
- oParam.method = "reqGetQIandIndicatorsActivityList";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_list_row=list";
- oParam.async = false;
- tranf_submit(oParam);
-
- for (var i = 0; i < ds_list_row.rowcount; i++) {
- for (var a = 0; a < 2; a++) {
- var endFlag = ds_list_row.getColumn(i, "prcsstat" + a);
- if (endFlag.substr(0, 2) != "마감") {
- ds_list_row.setColumn(i, "prcsstat" + (eval(a) + 1), "");
- }
- }
- }
- }
- function fPrizynSave() {
- if (sysf_messageBox("포상유무를 ", "Q002") == "7") {
- return false;
- }
- ds_list_row.filter("prizyn != 'N'");
- //var csv = getNodeListCSV(checkNodeList);
- ds_send_prizinfo_saveinfo.copyData(ds_list_row, true);
- ds_list_row.filter("");
-
- var oParam = {};
- oParam.id = "TXMQK00310";
- oParam.service = "qiapp.QiActivityMngt";
- oParam.method = "reqSetPrizyn";
- oParam.inds = "req=ds_send_prizinfo_saveinfo";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function fGridOnclick() {
- var cur_row = ds_list_row.rowposition;
- var acptno = ds_list_row.getColumn(cur_row, "acptno");
- if (!utlf_isNull(acptno)) {
- var col = grd_list.currentcol;
- frmf_setParameter("ano", acptno);
- if (col == "7") {
- frmf_modal("SMMQK00100", "SMMQK00100", "", null, "1", "", "", null, null, null, null, null, "M");
- fGetList();
- } else if (col == "8" || col == "9" || col == "10" || col == "11" || col == "12" || col == "13" || col == "14") {
- var endFlag = utlf_transNullToEmpty(ds_list_row.getColumn(cur_row, "prcsstat" + (eval(col) - 8)));
- if (endFlag.substr(0, 2) == "마감") {
- frmf_setParameter("prcsstagecd", eval((eval(col) - 7) * 10));
- if (!utlf_isNull(ds_list_row.getColumn(cur_row, "prcsstat" + (eval(col) - 7)))) {
- //modal("SMMQK00210", "1", "", "", "", "", "", "left:100; top:100; width:1230; height:784;");
- frmf_modal("SMMQK00210", "SMMQK00210", "", null, "1", "", "", null, null, null, null, null, "M");
- fGetList();
- }
- }
- }
- } else {
- return;
- }
- }
- //계획서, 보고서 양식 저장
- function fFormSave(prcsstagecd) {
- var maxsize = gMaxSize;//upload1.attribute("filesize");
- //files = window.fileDialog("open");
-
- var fd = new FileDialog;
- var objVFile = fd.open("FileOpen", FileDialog.LOAD); //// 단일 파일 선택
-
- ds_send_file.clearData();
- ds_send_file.addRow();
-
- ds_send_report.clearData();
- ds_send_report.addRow();
- ds_send_report.setColumn(0, "flag", "Q");
- var files = dsf_writeFileToDs(objVFile, ds_send_file, 0, "filedata");
- filesize = files.filesize;
-
- //파일사이즈 체크
- //파일 크기가 너무 큰경우 메세지를 띄운다.
- if (filesize > maxsize){
- sysf_messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- }
- if (!utlf_isNull(files)) {
- ds_send_file.setColumn(0, "file", files.filename);
- ds_send_file.setColumn(0, "filenm", files.filename);
- ds_send_file.setColumn(0, "filesize", files.filesize);
- ds_send_file.setColumn(0, "filetype", files.filetype);
-
- ds_send_report.setColumn(0, "file", files);
- ds_send_report.setColumn(0, "prcsstagecd", prcsstagecd);
-
- var oParam = {};
- oParam.id = "TXMQK00301";
- oParam.service = "qiapp.QiActivityMngt";
- oParam.method = "reqExeUploadForm";
- oParam.inds = "attach=ds_send_file report=ds_send_report";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMQK00301";
- tranf_submit(oParam);
- }
- }
- function cf_TXMQK00301(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- sysf_messageBox("저장 ", "I002");
- }]]></Script>
|