123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[
- function fSetCurDate(strPath, column, row)
- {
- strPath.setColumn(row, column, utlf_getCurrentDate());
- }
- /**
- * @desc : 현재날짜 구하기
- */
- function fSetDate(strPath, column, strValue){
- strPath.setColumn(0, column, strValue);
- }
-
- //
- // /**
- // * @desc : 현재날짜 구하기
- // *
- // * @param
- // * strPath : ??? instance
- // * strValue : ??? ??
- // * @return :
- // * @---------------------------------------------------
- // */
- // function fSetDate(strPath, strValue){
- // model.setValue(strPath, strValue);
- // model.refresh();
- // }
- //
- //
- //
- // /**
- // * 로드갯수 구하기
- // * @param : 모델명(model1), 경로(path)
- // */
- // function getNodesetCnt(srchModel, path) {
- // var insXml = srchModel.instances(0);
- // var nodeList = insXml.selectNodes(path);
- // return nodeList.length;
- // }
- //
- // var awmResultRef = "/root/hidden/awm/resultref";
- // function makeAwmResultRef(){ model.makeNode(awmResultRef); }
- //
- // function removeAwmResultRef(){ model.removeNode(awmResultRef); }
- //
- // /**
- // * 수련/담당사회사업가 목록 조회
- // * @param : 수련/담당구분(socl_flag : chrg, trng), 경로(path)
- // */
- function awmfGetSoclWorkList(socl_flag, rslt_ref_list){
-
- dsf_createDs("ds_temp_send", [{col:"soclflag", type:"string", size:256}]);
-
- var sRetDsNm = "";
-
- for( var i=0 ; i<socl_flag.length ; i++ ){
- ds_temp_send.addRow();
- ds_temp_send.setColumn(i, "soclflag", socl_flag[i]);
-
- if( i < (socl_flag.length-1) ){
- sRetDsNm += rslt_ref_list[i] + "_" + socl_flag[i] + "=" + socl_flag[i] + " ";
- }else{
- sRetDsNm += rslt_ref_list[i] + "_" + socl_flag[i] + "=" + socl_flag[i];
- }
- }
-
- var oParam = {};
- oParam.id = "TRAWM00202";
- oParam.service = "soclworkapp.SoclWorkCnstMngt";
- oParam.method = "reqGetSoclWork";
- oParam.inds = "req=ds_temp_send";
- oParam.outds = sRetDsNm;
- oParam.async = false;
- //oParam.callback = "cf_TRAWM00202";
- tranf_submit(oParam);
- }
- //
- // /**
- // * 그리드 Cell Focus 이동
- // */
- function fGrdSetFocus(grd_name, lrow, lcol)
- {
- var dsBind = grd_name.binddataset;
- dsBind.rowposition = lrow;
- grd_name.setCellPos(lcol);
- grd_name.setFocus();
-
- //grd_name.editCell();
- }
- //
- //
- //
- // /**
- // * 기초코드 가져오기
- // * @param : (socl_flag : chrg, trng), 경로(path)
- // */
- function awmfGetCodeList(socl_flag, rslt_ref_list){
-
- dsf_createDs("ds_temp_send", [{col:"clssupcd", type:"string", size:256}]);
-
- var sRetDsNm = "";
-
- for( var i=0 ; i<socl_flag.length ; i++ ){
- ds_temp_send.addRow();
- ds_temp_send.setColumn(i, "clssupcd", socl_flag[i]);
-
- if( i < (socl_flag.length-1) ){
- sRetDsNm += rslt_ref_list[i] + "_" + socl_flag[i] + "=" + socl_flag[i] + " ";
- }else{
- sRetDsNm += rslt_ref_list[i] + "_" + socl_flag[i] + "=" + socl_flag[i];
- }
- }
-
- var oParam = {};
- oParam.id = "TRAWM003602";
- oParam.service = "soclworkapp.SoclWorkCnstMngt";
- oParam.method = "reqGetCodeInfo";
- oParam.inds = "req=ds_temp_send";
- oParam.outds = sRetDsNm;
- oParam.async = false;
- //oParam.callback = "cf_TRAWM003602";
- tranf_submit(oParam);
- }]]></Script>
|