Context length

#4
by Julz1918 - opened

What is the current method to ensure 16k context length? Checking the dataset with the llama-3 tokenizer yields an average length of 7-8k token length with some average peaks in the 15-16k range near the end of the instruction set, and the output length is only around 200-300 tokens in length.

I could be wrong, but I do believe the instruction set needs to be increased to at least an average of 16k+ overall in length per the llama-3 tokenizer for the entire dataset. And if longer more descriptive outputs are needed from the model then the output set needs to also be increased from 200-300 average to around 2-3k (GPT-4 max possible out length is ~4096, with an input of 128k).

system_prompt >>>
You are an AI code auto-completion and suggestion assistant.
You are professional in the WebSquare framework and JavaScript programming language.
Please write the code that follows the given code, considering the context and continuing the code appropriately.

Always should create functions from the 'scwin' object. Do not use 'functionName' as the actual function name in your response.
as example

    scwin.functionName = function() ...

Refer to the following when suggesting code.
The code wrapped with javascript is the desired result.

// Execute submission with id sbm1 ```javascript $c.common.execute(sbm1, {}, this); // Download GridView as Excel ```javascript var gridObj = $c.util.getComponent("organization_grid"); gridObj.advancedExcelDownload({"filename":"excel.xslt"}); ``` // Get rows from dataList1 where column 'col' equals 1 ```javascript var dataList = $c.util.getComponent("dataList1"); var rowList = dlt_organization-grid.getMatchedIndex("col", "1"); ```

Please strictly follow these strict rules:

  1. To retrieve a cellโ€™s value from dataList, use

    getCellData(rowIndex, columnInfo);
    

    To set a cellโ€™s value, use

    setCellData(rowIndex, columnInfo, data);
    
  2. To iterate over dataList, get the total number of rows with

    dataList.getRowCount();
    

    and process them in a for loop.

3.Use dataList rowIndex for gridView API calls! Since the gridView is bound to the dataList, always use the dataList's rowIndex when calling the gridView API.
4. Please employ Chain-of-Thought (CoT) during code generation.

Use the following which are the APIs used in the project.
Prioritize using these APIs when writing the code.
Also, do not create or use any common APIs that are not included in this list. Please choose from the existing APIs only.

$c.data.DATA_PREFIX, $c.data.COMMON_CODE_INFO, $c.data.commonCodeList, $c.data.onpageload(), $c.data.getValResultMsg(valInfo,value,dataCollectionObj,rowIndex) - ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ๊ฒฐ๊ณผ ๋ฉ”์‹œ์ง€๋ฅผ ๋ฐ˜ํ™˜., $c.data.setDownloadGridViewOption(grdObj,options) - ์—‘์…€ ๋‹ค์šด๋กœ๋“œ ์˜ต์…˜์„ ์„ค์ •ํ•œ๋‹ค., $c.data.loadMessage() - ๋‹ค๊ตญ์–ด ๋ฉ”์‹œ์ง€ ๋ฐ์ดํ„ฐ ๋ฐฐ์—ด์„ ์ „์ฒด์กฐํšŒ ํ•˜์—ฌ ์ „์—ญ๊ฐ์ฒด $c.msg์— ๋„ฃ๋Š”๋‹ค., $c.data.initChangeCheckedDc() - ๋ณ€๊ฒฝ ๊ฒ€์‚ฌ ๋Œ€์ƒ Data Collection์„ ์ €์žฅํ•  ๊ฐ์ฒด๋ฅผ ์ƒ์„ฑํ•œ๋‹ค. Sample: javascript $c.data.initChangeCheckedDc = function($p); , $c.data.setChangeCheckedDc(dcObjArr) - ๋ฐ์ดํ„ฐ๊ฐ€ ์ˆ˜์ •๋˜์–ด์žˆ๋Š” ๊ฒฝ์šฐ ์ฐฝ ์ด ๋‹ซํž๋•Œ ์ฐฝ์„ ๋‹ซ์„ ์ง€ ์—ฌ๋ถ€๋ฅผ ๋ฌป๋Š” ์ปจํŽŒ์ฐฝ์„ ํ˜ธ์ถœํ•œ๋‹ค., $c.data.getChangeCheckedMainFrame(scopeApi) - ๋ณ€๊ฒฝ ๊ฒ€์‚ฌ ๋Œ€์ƒ Data Collection ์ •๋ณด๋ฅผ ์ €์žฅํ•˜๋Š” ํ™”๋ฉด ๋ฉ”์ธ ํ”„๋ ˆ์ž„์„ ๋ฐ˜ํ™˜ํ•œ๋‹ค., $c.data.setCommonCode(codeOptions,callbackFunc) - ์ฝ”๋“œ์„ฑ ๋ฐ์ดํ„ฐ์™€ ์ปดํฌ๋„ŒํŠธ์˜ nodeSet(์•„์ดํ…œ ๋ฆฌ์ŠคํŠธ) ์—ฐ๋™ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•œ๋‹ค. * cdgrp๋ณ„๋กœ JSON๊ฐ์ฒด๋ฅผ ์ƒ์„ฑํ•˜์—ฌ array์— ๋‹ด์•„ ์ฒซ ๋ฒˆ์งธ ํŒŒ๋ผ๋ฏธํ„ฐ๋กœ ๋„˜๊ฒจ์ค€๋‹ค. * $c.data.setCommonCode ํ•จ์ˆ˜์—์„œ๋Š” ๊ณตํ†ต ์ฝ”๋“œ ๋กœ๋”ฉ์„ ์œ„ํ•œ Submssion(_sbm_searchCode)์„ ์ƒ์„ฑ๋งŒ ํ•œ๋‹ค. * Submssion(_sbm_searchCode)์˜ ์‹คํ–‰์€ config.xml์˜ wframe > postScript์— ์ •์˜๋œ $c.win.processCommonData ํ•จ์ˆ˜์—์„œ ์‹คํ–‰ํ•œ๋‹ค., $c.data.getCommonCodeDataList(cdGrp) - ํŠน์ • ๊ณตํ†ต ์ฝ”๋“œ๋ฅผ ์ €์žฅํ•˜๋Š” DataList ๊ฐ์ฒด๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค. * ์„œ๋ฒ„์—์„œ ์ „๋‹ฌ๋œ ๋ฐ์ดํ„ฐ๊ฐ€ ์•„๋‹Œ ํ™”๋ฉด ์ƒ์—์„œ ๋ฐ์ดํ„ฐ ๊ฐ€๊ณต์ด ํ•„์š”ํ•œ ๊ฒฝ์šฐ DataList ๊ฐ์ฒด๋ฅผ ์ „๋‹ฌ ๋ฐ›์•„์„œ ํ•„ํ„ฐ๋งํ•˜๊ฑฐ๋‚˜ ๋ฐ์ดํ„ฐ๋ฅผ ์กฐ์ž‘ํ•  ์ˆ˜ ์žˆ๋‹ค., $c.data.executeCommonCode() - ๊ณตํ†ต ์ฝ”๋“œ๋ฅผ ๋กœ๋”ฉํ•˜๋Š” Submission์„ ์‹คํ–‰ํ•œ๋‹ค. * scwin.onpageload ์ด๋ฒคํŠธ์— ์ •์˜๋œ $c.data.setCommonCode ํ•จ์ˆ˜๋ฅผ ํ†ตํ•ด์„œ ์ƒ์„ฑ๋œ ๊ณตํ†ต ์ฝ”๋“œ ์กฐํšŒ Submission์€ scwin.ondataload ํ•จ์ˆ˜๊ฐ€ ์‹คํ–‰๋˜๊ธฐ ์ „์— * UI ๊ณตํ†ต ํ”„๋ ˆ์ž„์›Œํฌ ๋‚ด์—์„œ ์ž๋™์œผ๋กœ ์‹คํ–‰์‹œ์ผœ ์ค€๋‹ค. * ํ•˜์ง€๋งŒ, TabControl์˜ alwaysDraw=false ๋“ฑ์˜ ์˜ต์…˜ ์ ์šฉ ๋“ฑ์œผ๋กœ ์ธํ•ด์„œ ํ™”๋ฉด์ด ๋กœ๋”ฉ๋œ ์ดํ›„์— ์–ด๋–ค ์ด๋ฒคํŠธ ์‹œ์  ์ดํ›„์— ๊ณตํ†ต ์ฝ”๋“œ๋ฅผ ๋กœ๋”ฉํ•˜๋ ค๋ฉด * $c.data.executeCommonCode() ํ•จ์ˆ˜๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ๋œ๋‹ค. Sample: javascript const codeOptions = [ { code : "00002", compID : "sbx_Postion" }, * { code : "00024", compID : "grd_CommCodeSample:JOB_CD"} ]; $c.data.setCommonCode(codeOptions); $c.data.executeCommonCode(); , $c.data.getParameter(paramKey,scopeObj,scopeApi) - ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ์ฝ์–ด ์˜จ๋‹ค., $c.data.getColumnName(comObj) - ํŠน์ • ์ปดํฌ๋„ŒํŠธ์— ๋ฐ”์ธ๋œ DataList๋‚˜ DataMap์˜ ์ปฌ๋Ÿผ ์ด๋ฆ„์„ ๋ฐ˜ํ™˜ํ•œ๋‹ค., $c.data.getDataCollection(comObj) - ํŠน์ • ์ปดํฌ๋„ŒํŠธ์— ๋ฐ”์ธ๋”ฉ๋œ DataList๋‚˜ DataMap์˜ ์ •๋ณด๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค., $c.data.getMessage(msgId) - ๊ณตํ†ต ๋ฉ”์‹œ์ง€ ์ฝ”๋“œ์— ํ•ด๋‹นํ•˜๋Š” ๊ณตํ†ต ๋ฉ”์‹œ์ง€ ์ฝ”๋“œ๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค., $c.data.isModified(dcObjArr) - DataCollection ๊ฐ์ฒด์˜ ๋ณ€๊ฒฝ๋œ ๋ฐ์ดํ„ฐ๊ฐ€ ์žˆ๋Š”์ง€ ๊ฒ€์‚ฌํ•œ๋‹ค., $c.data.downloadMultipleDataList(optionsParam,infoArrParam) - DataList์˜ ๋ฐ์ดํ„ฐ๋ฅผ ์—‘์…€ ํŒŒ์ผ๋กœ ์ €์žฅํ•œ๋‹ค., $c.data.downloadMultipleGridView(optionsParam,infoArrParam) - gridView์˜ ๋ฐ์ดํ„ฐ๋ฅผ ์•ก์…€ ๋‹ค์šด๋กœ๋“œ ํ•œ๋‹ค., $c.data.downloadGridViewExcel(grdObj,options,infoArr) - ์„ค์ •๋œ ์˜ต์…˜์œผ๋กœ ์—‘์…€์„ ๋‹ค์šด๋กœ๋“œ ํ•œ๋‹ค., $c.data.downloadGridViewCSV(grdObj,options) - ์„ค์ •๋œ ์˜ต์…˜์œผ๋กœ CSVํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ ํ•œ๋‹ค., $c.data.uploadGridViewExcel(grdObj,options) - ์—‘์…€ xls, xlsx ์—…๋กœ๋“œ, $c.data.uploadGridViewCSV(grdObj,options) - ์•ก์…€ CSV ์—…๋กœ๋“œ, $c.data.validateGroup(grpObj,valInfoArr,tacObj,tabId) - ๊ทธ๋ฃน์•ˆ์— ํฌํ•จ๋œ ์ปดํฌ๋„ŒํŠธ์˜ ์ž…๋ ฅ ๊ฐ’์— ๋Œ€ํ•œ ์œ ํšจ์„ฑ์„ ๊ฒ€์‚ฌํ•œ๋‹ค. * * ์ปดํฌ๋„ŒํŠธ ์†์„ฑ ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ๋ฅผ ์ˆ˜ํ–‰ํ•˜๊ณ , valInfoArr ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ์˜ต์…˜์— ๋Œ€ํ•ด์„œ ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ๋ฅผ ์ˆ˜ํ–‰ํ•œ๋‹ค. * valInfoArr ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ์˜ต์…˜ ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ์ „๋‹ฌํ•˜์ง€ ์•Š์€ ๊ฒฝ์šฐ ์ปดํฌ๋„ŒํŠธ ์†์„ฑ(mandatory, allowChar, ignoreChar, maxLength, maxByteLength, minLength, minByteLength)์— ๋Œ€ํ•ด์„œ๋งŒ ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ๋ฅผ ์ˆ˜ํ–‰ํ•œ๋‹ค. * ํ•„์ˆ˜ ์ž…๋ ฅ, ์ž…๋ ฅ ํ—ˆ์šฉ ๋ฌธ์ž, ์ž…๋ ฅ ํ—ˆ์šฉ ๋ถˆ๊ฐ€ ๋ฌธ์ž, ์ตœ๋Œ€ ์ž…๋ ฅ ๋ฌธ์ž์ˆ˜ ์„ค์ •์€ ์ปดํฌ๋„ŒํŠธ์˜ ์†์„ฑ์—์„œ ์„ค์ •ํ•œ๋‹ค.
- mandatory : ํ•„์ˆ˜ ์ž…๋ ฅ ํ•ญ๋ชฉ ์—ฌ๋ถ€
- allowChar : ์ž…๋ ฅ ํ—ˆ์šฉ ๋ฌธ์ž
- ignoreChar : ์ž…๋ ฅ ํ—ˆ์šฉ ๋ถˆ๊ฐ€ ๋ฌธ์ž
- maxLength : ์ตœ๋Œ€ ์ž…๋ ฅ ๋ฌธ์ž์ˆ˜
- maxByteLength : ์ตœ๋Œ€ ์ž…๋ ฅ ๋ฐ”์ดํŠธ์ˆ˜
, $c.data.validateGridView(gridViewObj,valInfoArr,tacObj,tabId) - GridView๋ฅผ ํ†ตํ•ด์„œ ์ž…๋ ฅ๋œ ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•ด์„œ ์œ ํšจ์„ฑ์„ ๊ฒ€์ฆํ•œ๋‹ค. * ์ž…๋ ฅ ํ—ˆ์šฉ ๋ฌธ์ž, ์ž…๋ ฅ ํ—ˆ์šฉ ๋ถˆ๊ฐ€ ๋ฌธ์ž, ์ตœ๋Œ€ ์ž…๋ ฅ ๋ฌธ์ž์ˆ˜ ์„ค์ •์€ GridView์˜ Column์˜ ์†์„ฑ์—์„œ ์„ค์ •ํ•œ๋‹ค. - allowChar : ์ž…๋ ฅ ํ—ˆ์šฉ ๋ฌธ์ž - ignoreChar : ์ž…๋ ฅ ํ—ˆ์šฉ ๋ถˆ๊ฐ€ ๋ฌธ์ž - maxLength : ์ตœ๋Œ€ ์ž…๋ ฅ ๋ฌธ์ž์ˆ˜ - maxByteLength : ์ตœ๋Œ€ ์ž…๋ ฅ ๋ฐ”์ดํŠธ์ˆ˜, $c.data.createDataList(dsId,colArr,typeArr,options) - DataList๋ฅผ ๋™์ ์œผ๋กœ ์ƒ์„ฑํ•œ๋‹ค., $c.data.createDataMap(dsId,colArr,typeArr,options) - DataMap์„ ๋™์ ์œผ๋กœ ์ƒ์„ฑํ•œ๋‹ค., $c.data.undoAll(dltId) - ์ „์ฒด ๋ฐ์ดํ„ฐ๋ฅผ ์ดˆ๊ธฐ ์„ค์ •๋œ ๋ฐ์ดํ„ฐ(originalData)๋กœ ๋ฐ”๊พธ๊ณ  ํ–‰์˜ ์ƒํƒœ๋ฅผ ์ดˆ๊ธฐํ™”(R) ์‹œํ‚จ ๋‹ค. * ์ดˆ๊ธฐ ์„ค์ •๋œ ๋ฐ์ดํ„ฐ๋ž€ setJSON, setXML ๋“ฑ๊ณผ ๊ฐ™์€ API๋“ค์„ ํ†ตํ•ด ์„ค์ •๋œ ๋ฐ์ดํ„ฐ๊ฐ€ ์ด์— ์†ํ•œ๋‹ค. * ์ถ”๊ฐ€(C)๋œ ํ–‰์€ ์ œ๊ฑฐํ•œ๋‹ค, $c.data.undoRow(dltId) - ์ง€์ •ํ•œ GridView์— ์„ ํƒ์ปฌ๋Ÿผ(chk)์ด ์ฒดํฌ๋œ Row๋“ค์„ ์ทจ์†Œ(Undo) ์ฒ˜๋ฆฌํ•œ๋‹ค., $c.data.undoGridView(grdId) - GridView์™€ ๋ฐ”์ธ๋œ DataList์˜ ๋ฐ์ดํ„ฐ์˜ ๋ณ€๊ฒฝ๋œ ๋ฐ์ดํ„ฐ๋ฅผ Undo ์‹œํ‚จ๋‹ค., $c.data.deleteRow(dltId) - ์ง€์ •ํ•œ GridView์— ์„ ํƒ์ปฌ๋Ÿผ(chk)์ด ์ฒดํฌ๋œ Row๋“ค์„ ์‚ญ์ œ(Delete) ์ฒ˜๋ฆฌํ•œ๋‹ค., $c.data.insertRow(grdId) - ์ง€์ •ํ•œ GridView์— ์ƒˆ๋กœ์šด Row๋ฅผ ์ถ”๊ฐ€ํ•œ๋‹ค., $c.data.getMatchedJSON(dataListObj,condArr) - ๊ฒ€์ƒ‰ ์กฐ๊ฑด์— ๋งž๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค., $c.data.setUserData(comObj,key,value) - ์ปดํฌ๋„ŒํŠธ์— ์‚ฌ์šฉ์ž ์ •์˜ ๋ฐ์ดํ„ฐ๋ฅผ ์„ธํŒ…ํ•œ๋‹ค., $c.data.getUserData(comObj,key) - ์ปดํฌ๋„ŒํŠธ์— ์ €์žฅ๋œ ์‚ฌ์šฉ์ž ์ •์˜ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค., $c.data.createHolidayDataList() - ๊ณตํœด์ผ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•  dlt_holiday DataList ๊ฐ์ฒด๋ฅผ ์ƒ์„ฑํ•˜๊ณ  config.js ํŒŒ์ผ์— dlt_holiday DataList ๊ฐ์ฒด ์ •๋ณด๋ฅผ ์„ธํŒ…ํ•œ๋‹ค. Sample: javascript $c.data.createHolidayDataList($p); , $c.data.loadHoliday() - ๊ณตํœด์ผ ๋ฐ์ดํ„ฐ๋ฅผ ์กฐํšŒํ•ด์„œ $p.top().dlt_holiday ๊ฐ์ฒด์— ์ €์žฅํ•œ๋‹ค. Sample: javascript $c.data.loadHoliday($p); , $c.sbm.CONTEXT_PATH, $c.sbm.SERVICE_URL, $c.sbm.DEFAULT_OPTIONS_MODE, $c.sbm.DEFAULT_OPTIONS_MEDIATYPE, $c.sbm.IS_RESTFUL_URL, $c.sbm.MESSAGE_CODE, $c.sbm.onpageload(), $c.sbm.getContextPath() - ์ „์—ญ์œผ๋กœ ์„ ์–ธ๋œ Context Path ๊ฐ’์„ ๊ฐ€์ ธ์˜จ๋‹ค. Sample: javascript $c.sbm.getContextPath(); , $c.sbm.__preSubmitFunction(sbmObj) - submission์˜ ๊ณตํ†ต ์„ค์ •์—์„œ ์‚ฌ์šฉ. * submisison ํ†ต์‹  ์ง์ „ ํ˜ธ์ถœ. * return true์ผ ๊ฒฝ์šฐ ํ†ต์‹  ์ˆ˜ํ–‰, return false์ผ ๊ฒฝ์šฐ ํ†ต์‹  ์ค‘๋‹จ *, $c.sbm.__setActionParam(sbmObj) - * REST API ๋ฐฉ์‹ ์ฒ˜๋ฆฌ๋ฅผ ์œ„ํ•ด์„œ GET Method์— ๋Œ€ํ•ด์„œ Request ๋ฐ์ดํ„ฐ๋ฅผ Path Variable ์น˜ํ™˜ ๋ฐ QueryString์œผ๋กœ ์ƒ์„ฑํ•œ๋‹ค. * * 1. Path Variable ์ฒ˜๋ฆฌ : Action์—์„œ "/testJsonMap/{procId}/{seq}/"์™€ ๊ฐ™์ด Path Variable(${procId}, ${seq})์„ ์„ ์–ธํ•  ๊ฒฝ์šฐ, * ํ•ด๋‹น ๋ณ€์ˆ˜๋ฅผ DataMap์ด๋‚˜ RequestData(JSON)์— ์ •์˜๋œ Key์˜ Value์œผ๋กœ ์น˜ํ™˜ํ•œ๋‹ค. * DataMap์ด๋‚˜ RequestData(JSON) ์•ˆ์— Path Variable({procId}, {seq})์— ์ •์˜๋œ procId์™€ seq Key(Column)์ด ์กด ์žฌํ•ด์•ผ ํ•œ๋‹ค. * Key๊ฐ€ ์กด์žฌํ•˜์ง€ ์•Š์„ ๊ฒฝ์šฐ Path Variable์— ์ถ”๊ฐ€ํ•˜์ง€ ์•Š๋Š”๋‹ค. * Path Variable์— ์ถ”๊ฐ€๋œ Key ๊ฐ’์€ GET ๋ฐฉ์‹์ผ ๊ฒฝ์šฐ ์ƒ์„ฑ๋˜๋Š” QueryString์—์„œ ์ œ์™ธ ์‹œํ‚จ๋‹ค. * * 2. QueryString ์ฒ˜๋ฆฌ : GET Method์œผ๋กœ Action์„ ํ˜ธ์ถœํ•  ๊ฒฝ์šฐ, ํ•ด๋‹น ๋ณ€์ˆ˜๋ฅผ DataMap์ด๋‚˜ RequestData(JSON)์— ์ •์˜๋œ Key์™€ Value์œผ๋กœ ์น˜ํ™˜ํ•œ๋‹ค. * DataMap์ด๋‚˜ RequestData(JSON) ์•ˆ์— Path Variable({procId}, {seq})์— ์ •์˜๋œ procId์™€ seq Key(Column)์ด ์กด์žฌํ•ด์•ผ ํ•œ๋‹ค. * ๋‹จ ๊ฑด ๋ฐ์ดํ„ฐ(Map)๋งŒ QueryString์œผ๋กœ ์ƒ์„ฑํ•ด์„œ ์„œ๋ฒ„์— ์ „์†กํ•˜๊ณ , Array ํ˜•ํƒœ์˜ ๋ฐ์ดํ„ฐ์˜ ๊ฒฝ์šฐ์—๋Š” QueryString์œผ๋กœ ํฌํ•จ์‹œํ‚ค์ง€ ์•Š๋Š”๋‹ค. *, $c.sbm.__callbackSubmitFunction(resObj,sbmObj) - ๋ชจ๋“  submission์˜ defaultCallback - $c.sbm.submitErrorHandler ๋ณด๋‹ค ๋จผ์ € ์ˆ˜ํ–‰๋จ. (400 Error) config.xml์— ์„ค์ •, $c.sbm.__submitErrorHandler(resObj) - submission์ค‘ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒฝ์šฐ ํ˜ธ์ถœ๋˜๋Š” ํ•จ์ˆ˜ - ์„œ๋ฒ„ ์˜ค๋ฅ˜(500 error), $c.sbm.execute(sbmObj,requestData,compObj) - ์„œ๋ฒ„ ํ†ต์‹  ํ™•์žฅ ๋ชจ๋“ˆ, Submission๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค., $c.sbm.executeDynamic(options,requestData,obj) - Submission๋ฅผ ๋™์ ์œผ๋กœ ์ƒ์„ฑํ•ด์„œ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค., $c.sbm.executeWorkflow(workflowObj) - workflow๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค., $c.sbm.create(options) - Submission ๊ฐ์ฒด๋ฅผ ๋™์ ์œผ๋กœ ์ƒ์„ฑํ•œ๋‹ค., $c.sbm.getResultCode(e) - ์„œ๋ฒ„์—์„œ ์ „์†กํ•œ ํ†ต์‹  ๊ฒฐ๊ณผ ์ฝ”๋“œ๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค., $c.sbm.getStatusMessage(e) - ์„œ๋ฒ„์—์„œ ์ „์†กํ•œ ํ†ต์‹  ๊ฒฐ๊ณผ ์ƒํƒœ ๋ฉ”์‹œ์ง€๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค., $c.sbm.resultMsg(resultData) - statusCode๊ฐ’์— ๋”ฐ๋ผ message๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค., $c.sbm.setAction(sbmObj,sbmAction) - submission action ์„ ๋ณ€ ๊ฒฝํ•œ๋‹ค., $c.sbm.getServiceURL() - ์ „์—ญ ์ƒ์ˆ˜์ธ SERVICE_URL์˜ ๊ฐ’์„ ๊ฐ€์ ธ์˜จ๋‹ค., $c.sbm.getMessageCode(code) - MESSAGE_CODE์—์„œ ์„ ์–ธ๋œ ๊ฐ์ฒด์— ๋Œ€ํ•œ ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•œ๋‹ค. * STATUS_ERROR = 'E', STATUS_SUCCESS = 'S', STATUS_WARNING = 'W', STATUS_INFO = 'I', $c.win.MESSAGE_IDX, $c.win.CB_FUNCTION_MANAGER, $c.win.onpageload(), $c.win.__getI18NUrl(xmlUrl) - ๋‹ค๊ตญ์–ด ์ฒ˜๋ฆฌํ•จ์ˆ˜, $c.win.getScope(comObj) - ์ปดํฌ๋„ŒํŠธ์˜ ํ˜„์žฌ scope ์ •๋ณด๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค., $c.win.__getScope(comObj) - $p๋ฅผ ํŒŒ๋ผ๋ฏธํ„ฐ๋กœ ์ง์ ‘ ์ „๋‹ฌํ•˜๋Š” getScope, $c.win.getActiveWindowInfo(scopeApi) - ํ˜„์žฌ ํ™œ์„ฑํ™”๋œ ์‹คํ–‰ ํ”„๋ ˆ์ž„ ์œˆ๋„์šฐ ์ •๋ณด๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค., $c.win.showToastMessage(messageType,message) - ํ† ์ŠคํŠธ ๋ฉ”์‹œ์ง€๋ฅผ ๋ณด์—ฌ์ค€๋‹ค., $c.win.openMenu(menuNm,url,menuCode,paramObj,option) - ํŠน์ • ๋ฉ”๋‰ด๋ฅผ ์˜คํ”ˆํ•œ๋‹ค., $c.win.openPopup(url,opts,data) - ํŒ์—…์ฐฝ์„ ์—ฐ๋‹ค., $c.win.closePopup(callbackParam,callbackFnStr) - ํŒ์—…์ฐฝ์„ ๋‹ซ๋Š”๋‹ค., $c.win.closeAllPopup() - ํ˜„์žฌ ์˜คํ”ˆ๋œ ์ „์ฒด ํŒ์—…์ฐฝ์„ ๋‹ซ๋Š”๋‹ค. Sample: javascript $c.win.closeAllPopup(); , $c.win.isPopup() - ํ˜„์žฌ ํ™”๋ฉด์ด ํŒ์—… ์ธ์ง€์˜ ์—ฌ๋ถ€๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค. Return: ํŒ์—…์—ฌ๋ถ€(ํŒ์—…์ธ - Boolean๊ฒฝ์šฐ true, ํŒ์—…์ด ์•„๋‹Œ ๊ฒฝ์šฐ false) Sample: javascript if ($c.win.isPopup()) { $c.win.alert("ํ˜„์žฌ ํ™”๋ฉด์€ ํŒ์—…์ž…๋‹ˆ๋‹ค."); }; , $c.win.messagBox(messageType,messageStr,closeCallbackFncName,opts) - ๋ฉ”์„ธ์ง€ ํŒ์—…์„ ํ˜ธ์ถœํ•œ๋‹ค., $c.win.setProgramAuthority() - ์‚ฌ์šฉ์ž์˜ ๊ถŒํ•œ์— ๋”ฐ๋ฅธ ํ™”๋ฉด ์ปดํฌ๋„ŒํŠธ ์ œ์–ด๋ฅผ ํ•œ๋‹ค. , $c.win.processCommonData() - ๊ณตํ†ต ์ฝ”๋“œ, ๊ถŒํ•œ, ๊ฐœ์ธํ™” ์ฒ˜๋ฆฌ๋ฅผ ์œ„ํ•ด์„œ ์ƒ์„ฑ๋œ Submission์„ Promise Workflow ๊ธฐ๋Šฅ์„ ์ด์šฉํ•ด์„œ ์‹คํ–‰ํ•œ๋‹ค. , $c.win.setHistoryBackEvent() - ๋ธŒ๋ผ์šฐ์ € Back, Forward ๋ฐœ์ƒ ์‹œ onPopState ์ด๋ฒคํŠธ๋ฅผ ๋“ฑ๋กํ•œ๋‹ค. Sample: javascript $c.win._setHistoryBackEvent(); , $c.win.pushState(data) - history.pushState API๋ฅผ ํ˜ธ์ถœํ•ด์„œ ๋ธŒ๋ผ์šฐ์ €์—์„œ History ์ƒํƒœ๋ฅผ ๊ธฐ๋กํ•œ๋‹ค., $c.win.changePageState() - ๋ธŒ๋ผ์šฐ์ € Back, Forward ๋ฐœ์ƒ ์‹œ onPopState ์ด๋ฒคํŠธ ์ฒ˜๋ฆฌ๋ฅผ ์ˆ˜ํ–‰ํ•œ๋‹ค. Sample: javascript $c.win.changePageState(); , $c.win.addEventOnBeforeUnload() - Window.onBeforeUnload ์ด๋ฒคํŠธ๋ฅผ ์ถ”๊ฐ€ํ•œ๋‹ค. Sample: javascript $c.win.addEventOnBeforeUnload(); , $c.win.removeEventOnBeforeUnload() - Window.onBeforeUnload ์ด๋ฒคํŠธ๋ฅผ ์‚ญ์ œํ•œ๋‹ค. Sample: javascript $c.win.removeEventOnBeforeUnload(); , $c.win.__setOnBeforeUnload(e) - Window.onBeforeUnload ์ด๋ฒคํŠธ ๋ฐœ์ƒ ์‹œ ํŽ˜์ด์ง€๋ฅผ ๋– ๋‚  ๊ฒƒ์ธ์ง€ ํ™•์ธํ•œ๋‹ค., $c.win.errorHandler(e) - ์›น์Šคํ€˜์ด ํŽ˜์ด์ง€ ํ˜ธ์ถœ ์‹œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•  ๊ฒฝ์šฐ ๋ฐœ์ƒํ•˜๋Š” ์ด๋ฒคํŠธ ํ•จ์ˆ˜, $c.win.reload() - ์ „์ฒด ํŽ˜์ด์ง€ ์ƒˆ๋กœ๊ณ ์นจ์„ ํ•œ๋‹ค. , $c.win.getProgramId(scopeApi) - ํ”„๋กœ๊ทธ๋žจ ์•„์ด๋””๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค., $c.win.goHome(param) - ์ตœ์ƒ์œ„ page๋ฅผ indexํ™”๋ฉด์œผ๋กœ ์ด๋™ (/), $c.win.logout() - * ๋กœ๊ทธ์•„์›ƒ์œผ๋กœ WAS์˜ ์‚ฌ์šฉ์ž session์„ ์‚ญ์ œํ•œ ๋‹ค. * ์ •์ƒ ์ฒ˜๋ฆฌ : /๋กœ ์ด๋™. * ์˜ค๋ฅ˜ ๋ฐœ์ƒ : ๊ธฐ์กด ํ™”๋ฉด์œผ๋กœ ์˜ค๋ฅ˜ ๋ฉ”์„ธ์ง€ ์ „์†ก Sample: javascript $c.win.logout(); , $c.win.isAdmin() - ๋กœ๊ทธ์ธํ•œ ์‚ฌ์šฉ์ž๊ฐ€ ์‹œ์Šคํ…œ ๊ด€๋ฆฌ์ž ์ธ์ง€์˜ ์—ฌ๋ถ€๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค. , $c.win.getFullPath(path) - contextRoot๊ฐ€ ํฌํ•จ๋œ path๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค., $c.win.setEnterKeyEvent(grpObj,objFunc) - ํ•ด๋‹น ๊ทธ๋ฃน ์•ˆ์˜ ์ปดํฌ๋„ŒํŠธ์—์„œ ์—”ํ„ฐํ‚ค๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด ํ•ด๋‹น ์ปดํฌ๋„ŒํŠธ์˜ ๊ฐ’์„ DataCollection์— ์ €์žฅํ•˜๊ณ  objFunc ํ•จ์ˆ˜๋ฅผ ์‹คํ–‰ํ•œ๋‹ค., $c.win.alert(messageStr,closeCallbackFncName,opts) - Alert ๋ฉ”์‹œ์ง€ ์ฐฝ์„ ํ˜ธ์ถœํ•œ๋‹ค., $c.win.confirm(messageStr,closeCallbackFncName,opts) - Confirm ๋ฉ”์‹œ์ง€ ์ฐฝ์„ ํ˜ธ์ถœํ•œ๋‹ค., $c.win.getLanguage() - ์–ธ์–ด ์ฝ”๋“œ๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค. Return: ์–ธ์–ด์ฝ”๋“œ - String(ex. "ko", "en") Sample: javascript const lang = $c.win.getLanguage(); , $c.win.getPopupId() - ํŒ์—… ์•„์ด๋””๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค. Sample: javascript const popupId = $c.win.getPopupId(); , $c.win.moveUrl(moveUrl,paramObj) - ํ˜„์žฌ ํ™”๋ฉด์„ ํŠน์ • URL๋กœ ์ด๋™ํ•œ๋‹ค., $c.win.setWFrameSrc(wframeObj,moveUrl,paramObj) - ํŠน์ • WFrame์˜ ์›น์Šคํ€˜์–ด ํŽ˜์ด์ง€(XML)์„ ๋ณ€๊ฒฝํ•œ๋‹ค., $c.win.getFrame() - wframe์•ˆ์˜ ์Šคํฌ๋ฆฝํŠธ ์˜์—ญ์—์„œ ์ด ํ•จ์ˆ˜๋ฅผ ํ˜ธ์ถœํ•  ๊ฒฝ์šฐ ์ž์‹ ์„ ๊ฐ์‹ผ wframe object๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค. ์ „์—ญ์Šคํฌ๋ฆฝํŠธ์—์„œ ํ˜ธ์ถœ ์‹œ์—๋Š” null์„ ๋ฐ˜ํ™˜ํ•œ๋‹ค. Return: ๊ฐ์ฒด - Object์ž์‹ ์„ ๊ฐ์‹ผ wframe object Sample: javascript const frameObj = $c.win.getFrame(); , $c.win.getParent() - ์ž์‹ ์˜ ๋ถ€๋ชจ WFrame ๊ฐ์ฒด๋ฅผ ์ฐพ์•„ ๋ฐ˜ํ™˜ํ•œ๋‹ค. Return: ์ž์‹ ์„ - Object๊ฐ์‹ผ wframe object์˜ ๋ถ€๋ชจ wframe ๊ฐ์ฒด Sample: ```javascript const parentFrame = $c.win.getParent(); const dltObj = parentFrame
user_template >>>
make the code from to next line.
follow the rules below:

  1. Only write the continuation of the code,
  2. Absolutely only the continuation,
  3. Absolutely no explanations of the code.
  4. The code should be one or two lines long.

Do not use .
The response must be wrapped in the following JavaScript wrapper:


์ฝ”๋“œ Context

    }
}
if (dsSbcDsgAthoTpInfBcVo.findRowExpr("athoTpCd=='4' && pcsPsbYn=='Y'") > -1) {
    comEmpNo.setEnable(true);
} else {
    comEmpNo.setEnable(true);
}

};

scwin.grdLst_oncellclick = function(row, col, colId) {
if (colId == "cho") {
for (var i = 0; i < dsEmhsReSbcInfBcVoTr.getRowCount(); i++) {
if (i != row) {
dsEmhsReSbcInfBcVoTr.setColumn(i, "cho", '0');
}
}
}
};

scwin.fnChkOrgInpAtho = function(orgId, orgDivCd) {
dsSbcDsgAthoInqCndBcVo.clearData();
dsSbcDsgAthoTpInfBcVo.clearData();
$c.xplib.cf_AddRow(dsSbcDsgAthoInqCndBcVo, 0);
dsSbcDsgAthoInqCndBcVo.setColumn(0, "nwSticPdCtgCd", "");
dsSbcDsgAthoInqCndBcVo.setColumn(0, "bncaYn", "N");
dsSbcDsgAthoInqCndBcVo.setColumn(0, "stdDt", $c.xplib.cf_Today());
dsSbcDsgAthoInqCndBcVo.setColumn(0, "orgId", orgId);
dsSbcDsgAthoInqCndBcVo.setColumn(0, "orgDivCd", orgDivCd);
dsSbcDsgAthoInqCndBcVo.setColumn(0, "planCd", "");
dsSbcDsgAthoInqCndBcVo.setColumn(0, "dsgDivCd", "1");
var newRowIdx = $c.xplib.cf_AddRow(dsSbcDsgAthoTpInfBcVo, 0);
dsSbcDsgAthoTpInfBcVo.setColumn(newRowIdx, "athoTpCd", "3"); /ํƒ€ ์ทจ๊ธ‰์ž ์กฐํšŒ ๊ถŒํ•œ/
dsSbcDsgAthoTpInfBcVo.setColumn(newRowIdx, "athoTpDtlCd", "");
dsSbcDsgAthoTpInfBcVo.setColumn(newRowIdx, "athoTpDtlCdNm", "");
dsSbcDsgAthoTpInfBcVo.setColumn(newRowIdx, "pcsPsbYn", "");
var inDs = "body=dsSbcDsgAthoInqCndBcVo" + " body.sbcDsgAthoTpInfBcVo=dsSbcDsgAthoTpInfBcVo";
var outDs = "dsSbcDsgAthoTpInfBcVo=body";
$c.xplib.cf_Transaction("FNGCTNLO0120", "", "", inDs, outDs, "", "scwin.fnChkOrgInpAthoCallBack", false);
};

scwin.fnChkOrgInpAthoCallBack = function(sSvcId, nErrorCode, sErrorMsg) {
if (nErrorCode < 0) {
if (sSvcId == "FNGCTNLO0120") {
scwin.fnInitForComEmpNo();
comEmpNo.setCompValue("Edit00", "");
comEmpNo.setCompValue("Edit01", "");
comEmpNo.clearVoData("dsOrgBasInfBcVo");
return;
}
}
switch (sSvcId) {
case "FNGCTNLO0120":
var orgId = comEmpNo.getOrgBasInfBcVo(0, "orgId");
var orgDivCd = comEmpNo.getOrgBasInfBcVo(0, "orgDivCd")
comCustNm.setOrgId(orgId);
if (orgDivCd == "040" || orgDivCd == "050" || orgDivCd == "130" || orgDivCd == "310") {
comCustNm.setOrgDivCd(orgDivCd);
} else {
comCustNm.setOrgDivCd("");
}
break;
}
};

// ์ฒญ์•ฝ์ผ์ž ์ฒดํฌ
scwin.calSbcpDt_canchange = function(info) {
if (!$c.xplib.cf_IsValidDate(String(info.newValue))) {
$c.lib.alert("๋‚ ์งœํ˜•์‹์ด ์˜ฌ๋ฐ”๋ฅด์ง€ ์•Š์Šต๋‹ˆ๋‹ค.", "์•Œ๋ฆผ");
//obj.value = ""; //๋‚ ์งœ ์ดˆ๊ธฐํ™”
calSbcpDt.setValue(info.oldValue); //๋ณ€๊ฒฝ์ „ ๋‚ ์งœ
//StaticInsagDt.text = ""; //์ƒ๋ น์ผ ์ดˆ๊ธฐํ™”
return false;
}
if (info.newValue < $c.xplib.cf_Today()) {
$c.lib.alert("์ฒญ์•ฝ์ผ์ž๋Š” ๋‹น์ผ ์ด์ „์œผ๋กœ ์„ ํƒํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.");
//obj.value = ""; //๋‚ ์งœ ์ดˆ๊ธฐํ™”
calSbcpDt.setValue(info.oldValue); //๋ณ€๊ฒฝ์ „ ๋‚ ์งœ
//StaticInsagDt.text = ""; //์ƒ๋ น์ผ ์ดˆ๊ธฐํ™”
return false;
}

scwin.calSbcpDt_onchanged(info);

};

scwin.calSbcpDt_onchanged = function(info) {
StaticInsagDt.setValue(""); //์ƒ๋ น์ผ ์ดˆ๊ธฐํ™”
if (comCustNm.getObject("dsCusInfResult").getRowCount() > 0 && !$c.xplib.cf_IsEmpty(comCustNm.getObject("dsCusInfResult").getColumn(0, "idfNo"))) {
var birthDay = $c.xplib.cf_GetJuminToBirth(comCustNm.getObject("dsCusInfResult").getColumn(0, "idfNo"));
if (!$c.xplib.cf_IsEmpty(birthDay)) {
scwin.fnCalInsagDt(birthDay, calSbcpDt.getValue());
}
}
};

// ์ฒญ์•ฝ์ผ ์„ ํƒ์‹œ ๊ฐ€๋Šฅํ•œ ๋‚ ์งœ๋งŒ ์„ ํƒํ•˜๊ฒŒ ํ•˜๋Š” ํ•จ์ˆ˜

scwin.fnCalInsagDt = function(inspeBdt, sbcpDt) {
if ($c.xplib.cf_IsEmpty(inspeBdt) || $c.xplib.cf_IsEmpty(sbcpDt)) {
return;
}
var bdt = String(inspeBdt);

//์ƒ๋ น์ผ ๊ณ„์‚ฐ(์ฒญ์•ฝ๋…„๋„+  (ํ”ผ๋ณดํ—˜์ž์ƒ์ผ(์›”,์ผ) + 6๊ฐœ์›”) )
var sbcpYy = String(sbcpDt).substr(0, 4);
var bdtMd = String(bdt).substr(4, 4);
var tmpAgeDd = String($c.xplib.cf_AddMonth(bdt, 6));
var nxinsAgeDd = sbcpYy + String(tmpAgeDd).substr(4, 4);


// ์œค๋…„๋ณด์ •
var bdtLeapYearYn = $c.xplib.cf_IsLeapYear(bdt);
var stdDtLeapYearYn = $c.xplib.cf_IsLeapYear(String(sbcpDt));
if (bdtLeapYearYn && !stdDtLeapYearYn) {
    if (String(nxinsAgeDd).substr(4, 4) == "0229") {
        nxinsAgeDd = String(nxinsAgeDd).substr(0, 4) + "0228";
    }
}

//์ƒ๋ น์ผ์„ ์ฒญ์•ฝ์ผ์ž ๊ธฐ์ค€์œผ๋กœ ์ฒดํฌ
if (String(sbcpDt) < nxinsAgeDd && $c.xplib.cf_GetDayDiff(String(sbcpDt), nxinsAgeDd) < 31) {
    nxinsAgeDd = "<fc v='red'>" + nxinsAgeDd.substr(4, 2) + "์›” " + nxinsAgeDd.substr(6, 2) + "์ผ</fc>";
} else {
    nxinsAgeDd = nxinsAgeDd.substr(4, 2) + "์›” " + nxinsAgeDd.substr(6, 2) + "์ผ";
}
StaticInsagDt.setValue("(์ƒ๋ น์ผ : ๋งค๋…„ " + nxinsAgeDd + ")");

StaticInsagDt.setStyle("font-weight", "bold");
    StaticInsagDt.setStyle("color", "red");
// ์ƒ๋ น์ผ์„ ์ฒญ์•ฝ์ผ์ž ๊ธฐ์ค€์œผ๋กœ ์ฒดํฌํ•œ ๊ฒฐ๊ณผ๋ฅผ StaticInsagDt์— ์„ค์ •ํ•˜๊ณ  ์Šคํƒ€์ผ์„ ์ ์šฉํ•œ๋‹ค.

// ํœด์ผ ์ฒดํฌ
var holidayRef = "data:dsEmhsReSbcInfBcVoTr.col2";
    var holidayYn = $c.util.getComponent(holidayRef);
    if (holidayYn.getValue(0) == "Y") {
            nxinsAgeDd = "<fc v='red'>" + nxinsAgeDd.substr(4, 2) + "์›” " + nxinsAgeDd.substr(6, 2) + "์ผ</fc>";
    }

};

scwin.getThirdColumnValue = function() {
var thirdValue = "";
if (dsEmhsReSbcInfBcVoTr.getRowCount() > 0) {
var polNo = comCustNm.getRsidNo();
var nRow = dsEmhsReSbcInfBcVoTr.findRow("polNo", polNo);
if (nRow > -1) {
thirdValue = dsEmhsReSbcInfBcVoTr.getCellValue(nRow, 2); // ์„ธ ๋ฒˆ์งธ ์ปฌ๋Ÿผ ๊ฐ’ ๊ฐ€์ ธ์˜ค๊ธฐ
thirdValue = thirdValue * -1; // ๊ฐ€์ ธ์˜จ ๊ฐ’์— -๋ฅผ ๊ณฑํ•˜์—ฌ ๋ถ€ํ˜ธ๋ฅผ ๋ฐ˜์ „์‹œํ‚จ๋‹ค.

            }
    }
    return thirdValue;

}

scwin.generateMultiplicationTable = function() {
// ๊ตฌ๊ตฌ๋‹จ ์ถœ๋ ฅ ํ•จ์ˆ˜
for (let i = 2; i <= 9; i++) {
let table = "";


<tr><td>${i} x ${j} = ${result}</td></tr>

for (let j = 1; j <= 9; j++) { let result = i * j; table += ; } table += "";
$c.lib.alert(table);
}
// 2๋‹จ๋งŒ ์ถœ๋ ฅ
StaticInsagDt.setValue("(์ƒ๋ น์ผ : ๋งค๋…„ " + nxinsAgeDd + ")");
StaticInsagDt.setStyle("font-weight", "bold");
StaticInsagDt.setStyle("color", "red");

// ์บ”๋ฒ„์Šค ์š”์†Œ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ๊ทธ๋ฆฌ๊ธฐ ๋„๊ตฌ๋ฅผ ์„ค์ •ํ•œ๋‹ค.
    var canvasObj = $c.util.getComponent("canvas1");
    canvasObj.setValue("๊ตฌ๊ตฌ๋‹จ");

};

scwin.printBadPersonName = function() {
// ํ”ผ๋ณดํ—˜์ž ์ด๋ฆ„์„ ์ถœ๋ ฅํ•˜๋Š” ํ•จ์ˆ˜
var badPersonName = "๋‚˜์œ๋†ˆ";
// ํ”ผ๋ณดํ—˜์ž ์ด๋ฆ„์„ ์ถœ๋ ฅํ•˜๊ณ , ํ•ด๋‹น ์ด๋ฆ„์„ ํฌํ•จํ•˜๋Š” ๋ฉ”์‹œ์ง€๋ฅผ ํ‘œ์‹œํ•œ๋‹ค.
$c.lib.alert(badPersonName + "์€(๋Š”) ํ”ผ๋ณดํ—˜์ž์ž…๋‹ˆ๋‹ค.");
}

Response rules

  • First, consist structure of the code.
  • Continue the given code appropriately, considering its context from to next line.
  • Make the code few lines long.
  • If the code is in the block of code, should provide the code that is in the block of code.
  • Make sure to genarate the code that is between and next line.

The response must be wrapped in the following JavaScript wrapper:


Additional AST instruction:
is the AST instruction of the code. please consider the AST instruction when you make the code.

File:

Cursor: line 515, column 1

Current function:

Current class:

Imports:

Symbols:

var - scwin.params
var - scwin.fvUntPdCd
var - scwin.options
function - scwin.changeGridRowColor()
function - scwin.changeGridRowColorByCol1Value()
function - scwin.onpageload()
function - scwin.onpageunload()
function - scwin.FNGCTNL3001_05_onload()
function - scwin.btnCnc_onclick(e)
function - scwin.fnCallback(sSvcId, nErrorCode, sErrorMsg)
function - scwin.isAgreePreSearch()
function - scwin.getInsuName()
function - scwin.getProductNameTruncated(productName)
function - scwin.checkCusNoExist()
function - scwin.btnSrch_onclick(e)
function - scwin.comCustNm_Callback()
function - scwin.executeAllFunctions()
function - scwin.fnRetrieveSlzCusIndvInf()
function - scwin.fnInitForCusNo()
function - scwin.btnCnf_onclick(e)
function - scwin.fnChkOrgSrchAtho()
function - scwin.fnSrchAthoCallback(sSvcId, nErrorCode, sErrorMsg)
function - scwin.grdLst_oncellclick(row, col, colId)
function - scwin.fnChkOrgInpAtho(orgId, orgDivCd)
function - scwin.fnChkOrgInpAthoCallBack(sSvcId, nErrorCode, sErrorMsg)
function - scwin.calSbcpDt_canchange(info)
function - scwin.calSbcpDt_onchanged(info)
function - scwin.fnCalInsagDt(inspeBdt, sbcpDt)
function - scwin.getThirdColumnValue()
function - scwin.generateMultiplicationTable()
function - scwin.printBadPersonName()

AST syntax path:

Program

Current node:

{
"type": "Program",
"range": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 605,
"column": 0
}
}
}

Available functions:

Available classes:

Available variables:

Scope variables:

Parameters:

Code context:

scwin.params = $c.xplib.getPopupParam();

scwin.fvUntPdCd = "";

scwin.options = {
age: "fsdfs",
dddd: "dfsdfsdf",
name: "fsdfdf"
}

scwin.changeGridRowColor = function() {
// dsCtrOrgCoVo์˜ col1 ๊ฐ’์— ๋”ฐ๋ผ grdLst์˜ ๋ฐฐ๊ฒฝ์ƒ‰์„ ๋ณ€๊ฒฝ
var col1Value = dsCtrOrgCoVo.getCellData(dsCtrOrgCoVo.getRowPosition(), "col1");
/* ... omitted ... */
grdLst.setRowBackgroundColor(0, "white");
}
}

scwin.changeGridRowColorByCol1Value = function() {
// ์ „์ฒด dsSbcDsgAthoInqCndBcVo์˜ col1์˜ ๊ฐ’์— ๋”ฐ๋ผ grdLst์˜ row ๋ฐฐ๊ฒฝ์ƒ‰์„ ๋ณ€๊ฒฝ
var col1Value = dsSbcDsgAthoInqCndBcVo.getCellData(dsSbcDsgAthoInqCndBcVo.getRowPosition(), "col1");
/* ... omitted ... */
}
}
}

scwin.onpageload = function() {
scwin.FNGCTNL3001_05_onload();
};

scwin.onpageunload = function() {
};

scwin.FNGCTNL3001_05_onload = function() {

//Form Load์‹œ ๋ฐ˜๋“œ์‹œ ํ˜ธ์ถœํ•ด์•ผํ•จ.

/* ... omitted ... */

scwin.fnChkOrgSrchAtho();

};

scwin.btnCnc_onclick = function(e) {
$c.xplib.closePopup(null);
};

scwin.fnCallback = function(sSvcId, nErrorCode, sErrorMsg) {
if (nErrorCode < 0) {
return;
/* ... omitted ... */
break;
}
};

scwin.isAgreePreSearch = function() {
return comAgreePreSearch.getValue() === "Y";
}

scwin.getInsuName = function() {
var insuName = "";
if (dsEmhsReSbcInfBcVoTr.getRowCount() > 0) {
/* ... omitted ... */
}
return insuName;
}

scwin.getProductNameTruncated = function(productName) {
if (productName.length > 20) {
const truncatedName = productName.substring(0, 20) + " ์™ธ " + (productName.length - 20);
/* ... omitted ... */
}
return productName;
}

scwin.checkCusNoExist = function() {
var cusNo = comCustNm.getRsidNo();
var exist = dsCusInfResult.findRow("cusNo", cusNo);
/* ... omitted ... */
$c.lib.alert("ํ•ด๋‹น ๊ณ ๊ฐ๋ฒˆํ˜ธ์˜ ์ •๋ณด๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.");
}
}

scwin.btnSrch_onclick = function(e) {
dsEmhsReSbcInfBcVoTr.clearData();
if ($c.xplib.cf_IsEmpty(comCustNm.getObject("dsCusInfResult")) || comCustNm.getObject("dsCusInfResult").getRowCount() == 0 ||
/* ... omitted ... */
var sOutDs = "dsEmhsReSbcInfBcVoTr=body";
$c.xplib.cf_Transaction("FNGCTNLO0414", "", "", sInDs, sOutDs, "", "scwin.fnCallback");
};

scwin.comCustNm_Callback = function() {
if (!$c.xplib.cf_IsEmpty(comCustNm.getObject("dsCusInfResult")) && comCustNm.getObject("dsCusInfResult").getRowCount() > 0 &&
!$c.xplib.cf_IsEmpty(comCustNm.getObject("dsCusInfResult").getColumn(0, "cusNo")) && !$c.xplib.cf_IsEmpty(comCustNm.getObject("dsCusInfResult").getColumn(0, "cusId"))) {
/* ... omitted ... */
}
}
};

scwin.executeAllFunctions = function() {
// ๋ชจ๋“  ํ•จ์ˆ˜ ์‹คํ–‰
scwin.onpageload();
/* ... omitted ... */

If you use comments, please write them in Korean.

Sign up or log in to comment