123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[
- /**
- * @desc : 누적리스트 조회
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fReqValue(condPath){
-
- // fSetCtrlDisabled2(true)
- var mode = ds_main_condition.getColumn(0, "reqgrupflag");
- if(mode == "code")
- {
- ds_main_condition.setColumn(0, "grupcd", ds_main_condition.getColumn(0, "grupnm"));
- }
- ds_main_condition.setColumn(0, "grupflag", "G");
- ds_send_reqdata.copyData(ds_main_condition);
- var oParam = {};
- oParam.id = "TRMRF00901";
- oParam.service = "formmngtapp.GridMngt";
- oParam.method = "reqGetGrupList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_gruplist=gruplist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function fSelectGrid(destGrdID, srcGrdID)
- {
- var destModel = null;
- var destGrd = null;
- var srcGrd = null;
-
- // destModel = opener.model;
- destGrd = opener.components[destGrdID];
- srcGrd = this.components[srcGrdID];
- if(utlf_isNull(srcGrd)){
- return;
- }
-
- var srcDataset:Dataset;
- srcDataset = eval(srcGrd.binddataset);
- var iRow = ds_main_gruplist.rowposition;
- if(iRow < 0)
- return;
- //var pageInfo = new PAGEINFO();
- var grupcd = ds_main_gruplist.getColumn(iRow, "grupcd");
- var grupnm = ds_main_gruplist.getColumn(iRow, "grupnm");
- opener.frmf_setParameter("grupnm", grupnm);
- opener.frmf_setParameter("grupcd", grupcd);
-
- if(utlf_isNull(destGrd))
- {
- this.close();
- return;
- }
-
- //해당 케이스 있을경우 주석 처리 되어 있는 부분 수정해야됨...
- // var destDataset:Dataset;
- // destDataset = eval(destGrd.binddataset);
- //
- // var destCurRow = destDataset.rowposition;
- // if(destCurRow < 0)
- // return;
- //
- // var gridtype = ds_main_gruplist.getColumn(iRow, "grupflag");
- // dsf_makeValue(opener.destDataset, "valgrupcd", "string", grupcd, destCurRow);
- // dsf_makeValue(opener.destDataset, "valgrupnm", "string", grupnm, destCurRow);
- //
- // var attrVal = opener.destDataset.getColumn(destCurRow, "degnitemattrval");
- // attrVal = setStyleValue(attrVal, "gridtype", gridtype);
- // dsf_makeValue(opener.destDataset, "itemattrval", "string", attrVal, destCurRow);
- //
- // var formdegnseq = destModel.getValue(pageInfo.formmastRef + "/formdegnseq");
- // var supdegnitemno = destModel.getValue(destGrd.attribute("nodeset") + "[" + destCurRow + "]/degnitemno");
- // var supdegnitemcd = destModel.getValue(destGrd.attribute("nodeset") + "[" + destCurRow + "]/degnitemcd");
- // var degnitemno = destModel.getXPathValue("max(" + destGrd.attribute("nodeset") + "/degnitemno)");
- // if(degnitemno == "NaN")
- // degnitemno = 1;
- //
- // var degnrowno = destModel.getXPathValue("max(" + destGrd.attribute("nodeset") + "/degnrowno)");
- // if(degnrowno == "NaN")
- // degnrowno = 1;
- //
- // var degnitemlevlno = parseInt(destModel.getValue(destGrd.attribute("nodeset") + "[" + destCurRow + "]/degnitemlevlno")) + 1;
- // //alert(degnitemlevlno);
- // var nextRow = -1;
- // var nextItemNo = destModel.getValue(destGrd.attribute("nodeset") + "[degnitemlevlno <= " + (degnitemlevlno - 1) + " and position() > " + destCurRow + "]/degnitemno");
- // if(nextItemNo == '')
- // nextRow = destGrd.rows;
- // else
- // nextRow = destGrd.findRow(nextItemNo, destCurRow + 1, destGrd.colRef("degnitemno"));
- //
- // for(var i = nextRow - 1; i >= destCurRow + 1; i--)
- // {
- // destGrd.deleteRow(i);
- // }
- // destGrd.rebuild();
- //
- // for(var i = 0; i < srcGrd.Rows - srcGrd.FixedRows; i++)
- // {
- // destGrd.insertRow(destCurRow + i, "after", false);
- // var srcPath = srcGrd.attribute("nodeset") + "[" + (i + 1) + "]";
- // var destPath = destGrd.attribute("nodeset") + "[" + (destCurRow + i + 1) + "]";
- // var degnitemlevlcd = destModel.getValue(destGrd.attribute("nodeset") + "[" + destCurRow + "]/degnitemlevlcd") + "." + model.getValue(srcPath + "/itemcd").substr(0,7);
- // degnitemno = parseInt(degnitemno) + i + 1;
- // degnrowno = parseInt(degnrowno) + i + 1;
- //
- // //destModel.makeValue(destPath + "/formbasecd" , formbasecd );
- // //destModel.makeValue(destPath + "/degnhistno" , "" );
- // destModel.makeValue(destPath + "/formdegnseq" , formdegnseq );
- // destModel.makeValue(destPath + "/degnitemno" , degnitemno );
- // destModel.makeValue(destPath + "/degnitemkind" , "GSU" );
- // destModel.makeValue(destPath + "/degnitemcd" , model.getValue(srcPath + "/itemcd") );
- // destModel.makeValue(destPath + "/termcd" , "" );
- // destModel.makeValue(destPath + "/degnitemnm" , model.getValue(srcPath + "/itemnm") );
- // destModel.makeValue(destPath + "/supdegnitemno" , supdegnitemno );
- // destModel.makeValue(destPath + "/supdegnitemcd" , supdegnitemcd );
- // destModel.makeValue(destPath + "/degnitemlevlno" , degnitemlevlno );
- // destModel.makeValue(destPath + "/degnitemlevlcd" , degnitemlevlcd );
- // destModel.makeValue(destPath + "/valgrupcd" , "" );
- // destModel.makeValue(destPath + "/valgrupnm" , "" );
- // destModel.makeValue(destPath + "/unitcd" , "" );
- // destModel.makeValue(destPath + "/unitnm" , "" );
- // destModel.makeValue(destPath + "/degnitemdefltval", "" );
- // destModel.makeValue(destPath + "/degncntrviewflag", "A" );
- // destModel.makeValue(destPath + "/userdegnyn" , "N" );
- // destModel.makeValue(destPath + "/degnxval" , "0" );
- // destModel.makeValue(destPath + "/degnyval" , "0" );
- // destModel.makeValue(destPath + "/degnrowno" , destCurRow + i + 1 );
- // destModel.makeValue(destPath + "/essndegnyn" , "N" );
- // destModel.makeValue(destPath + "/essnrecyn" , "N" );
- // destModel.makeValue(destPath + "/degnattrval" , "" );
- //
- // attrVal = destModel.getValue(destPath + "/itemattrval");
- // attrVal = setStyleValue(attrVal, "axflag", model.getValue(srcPath + "/axflag"));
- //
- // var inptkind = model.getValue(srcPath + "/inptkind");
- // switch(inptkind)
- // {
- // case "1": // OUTPUT
- // attrVal += "axtype:OUTPUT;";
- // break;
- // case "2": // INPUT
- // attrVal += "axtype:INPUT;";
- // break;
- // case "3": // INPUT+BUTTON
- // attrVal += "axtype:INPUT+BUTTON;";
- // break;
- // case "4": // INPUT+DATE
- // attrVal += "axtype:INPUT+DATE;";
- // break;
- // case "5": // COMBO
- // attrVal += "axtype:COMBO;";
- // break;
- // case "6": // CHECKBOX
- // attrVal += "axtype:CHECKBOX;";
- // break;
- // case "7": // RADIO
- // attrVal += "axtype:RADIO;";
- // break;
- // }
- //
- // destModel.makeValue(destPath + "/itemattrval", attrVal);
- //
- // //destModel.makeValue(destPath + "/degnitemlevlno", degnitemlevlno);
- // //destModel.makeValue(destPath + "/degnitemrowno", degnitemrowno);
- // //destModel.makeValue(destPath + "/subitemseq", model.getValue(srcPath + "/subitemseq"));
- // }
- // destGrd.rebuild();
- //
- // for(var j = destCurRow + srcGrd.Rows - srcGrd.FixedRows; j < destGrd.Rows - destGrd.FixedRows; j++)
- // {
- // var destPath = destGrd.attribute("nodeset") + "[" + (j + 1) + "]";
- // destModel.setValue(destPath + "/degnrowno" , j + 1 );
- // }
- //
- //
- // setTree(destGrd, destGrd.colref("degnitemlevlno"), destGrd.colref("degnitemcd"), true);
- // model.close();
- }
- /**
- * @desc : 누적서브리스트 조회
- * @
- * @param : grdObj 그리드 ID, condPath 조회조건 xpath
- * @return :
- * @---------------------------------------------------
- */
- function fReqValueSub(grdObj, condPath:Dataset){
- var datasetObj:Dataset;
- datasetObj = eval(grdObj.binddataset);
- var curRow = datasetObj.rowposition;
- ds_main_condition.setColumn(0, "grupcd", ds_main_gruplist.getColumn(curRow, "grupcd"));
- ds_main_condition.setColumn(0, "grupflag", ds_main_gruplist.getColumn(curRow, "grupflag"));
-
- ds_send_reqdata.copyData(condPath);
- var oParam = {};
- oParam.id = "TRMRF00902";
- oParam.service = "formmngtapp.GridMngt";
- oParam.method = "reqGetGridSubList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_gridsublist=gridsublist";
- oParam.async = false;
- tranf_submit(oParam);
- }]]></Script>
|