123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- function fInitialize(){
-
- ipt_fromdd.value = getCurrentDate().substring(0,4).concat("0101");
- ipt_todd.value = getCurrentDate();
-
- if(fchkUser() == "Q"){
- cap_prizyn.visible = true;
- cmb_prizyn.visible = true;
- btn_prizyn.visible = true;
-
- btn_plan.visible = true;
- btn_third.visible = true;
- btn_fifth.visible = true;
- group1.visible = true;
- btn_search.attribute("left") = "840px";
- line2.attribute("style") = "x1:827px; y1:5px; x2:827px; y2:31px";
- }else{
- cap_prizyn.visible = false;
- cmb_prizyn.visible = false;
- btn_prizyn.visible = false;
-
- btn_plan.visible = false;
- btn_third.visible = false;
- btn_fifth.visible = false;
- group1.visible = false;
- btn_search.attribute("left") = "1125px";
- line2.attribute("style") = "x1:1112px; y1:5px; x2:1112px; y2:31px";
- }
-
- fGetHardCDList("N", 5665, 0 , "/root/temp/prizinfo");
- model.refresh();
-
- fGetList();
- }
-
-
- function fGetList(){
- var auth = fchkUser();
- model.setValue("/root/send/cond/auth", auth);
- submit("TRMQK00310");
- for(var i = 1; i < grd_list.rows ; i++){
- for(var a =0; a < 2 ; a++){
- var endFlag = model.getValue("/root/main/list/row[" + i + "]/prcsstat"+a);
- if(endFlag.substr(0,2) != "마감"){
- model.setValue("/root/main/list/row[" + i + "]/prcsstat"+(a+1), "");
- }
- else{
- // //등록자, 간사, 팀장이 아닌 QI팀은 전송이전단계가 보이지않음
- // if(auth == "Q"){
- // var text = model.getValue("/root/main/list/row[" + i + "]/prcsstat"+(a+1));
- // var loginID = getUserId();
- // var rgstID = model.getValue("/root/main/list/row[" + i + "]/rgstrid");
- // var chfID = model.getValue("/root/main/list/row[" + i + "]/chfid");
- // var staffid = model.getValue("/root/main/list/row[" + i + "]/staffid");
- // if(text == "저장" || text == "-"){
- // if(!(loginID == rgstID || loginID == chfID || loginID == staffid)){
- // model.setValue("/root/main/list/row[" + i + "]/prcsstat"+(a+1), "");
- // }
- // }
- // }
- }
- }
- }
- model.refresh();
- }
- function fPrizynSave(){
- if(messageBox("포상유무를 ", "Q002") == "7"){
- return false;
- }
-
- var checkNodeList = instance1.selectNodes("/root/main/list/row[prizyn != 'N']");
- var csv = getNodeListCSV(checkNodeList);
-
- model.setValue("/root/send/prizinfo/saveinfo", csv);
-
- submit("TXMQK00310");
- model.refresh();
- }
- function fGridOnclick(){
- var cur_row = grd_list.row;
- var acptno = model.getValue("/root/main/list/row[" + cur_row + "]/acptno");
-
- if (acptno != "") {
- var col = grd_list.col;
- setParameter("ano", acptno);
-
- if(col == "7"){
- modal("SMMQK00100", "1", "", "");
- //grd_list.select(cur_row) = false;
- fGetList();
- }
- else if(col == "8" || col == "9" || col == "10" || col == "11"|| col == "12"|| col == "13"|| col == "14"){
- var endFlag = model.getValue("/root/main/list/row[" + cur_row + "]/prcsstat" + (col - 8));
- if(endFlag.substr(0,2) == "마감"){
- setParameter("prcsstagecd", eval((col-7)*10));
- if(model.getValue("/root/main/list/row[" + cur_row + "]/prcsstat" + (col - 7)) != ""){
- modal("SMMQK00210", "1", "", "", "", "", "", "left:100; top:100; width:1230; height:784;");
- fGetList();
- }
- }
- }
- }
- else{
- return;
- }
- }
- //계획서, 보고서 양식 저장
- function fFormSave(prcsstagecd){
- var maxsize = upload1.attribute("filesize");
- files = window.fileDialog("open");
- //파일사이즈 체크
- if (!checkFileSize(upload1)){
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- }
-
- if(files != ""){
- model.setValue("/root/send/filecond/attach/file", files);
- model.setValue("/root/send/filecond/prcsstagecd", prcsstagecd);
- if (submit("TXMQK00301")) {
- messageBox("저장 ", "I002");
- }
- model.refresh();
- }
- }
|