123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436 |
- /* --------------------------------------------------------
-
- 예산 관리 (SMAYA02100.xfm - JScript )
-
- - Version :
- 1) : Ver.1.00.01
- : Create By 임여원
- : 2015.05.02
- -------------------------------------------------------- */
-
-
-
- /**
- * @group :
- * @ver : 2007.12.14
- * @by : Lim YeoWon
- * @-----------------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 예산 관리의 초기화 함수
- * @-----------------------------------------------------------
- */
- function finit() {
-
- var CurrentDate=getCurrentDate(); //01 사업년도 올해 날짜로 CurrentDate에 저장
- var CurrentMM=CurrentDate.substr(4,2); //02 현재 날짜 받아서 CurrentMM에 셋팅
- var CurrentYY=CurrentDate.substr(0,4); //03 현재 날짜의 월 CurrentMM에 저장
- //04 현재 날짜의 년을 CurrentYY에 저장
- if(CurrentMM>=03 && CurrentMM<=12) //05 현재 월이 3월에서 12월까지일 때
- { //06 현재 년도를 사업년도에 저장
- model.setValue("/root/main/search/entryy",CurrentYY); //07 현재 월이 1월에서 2월이면
- //08 전년도를 사업년도에 저장
- }
- else if(CurrentMM>=1 && CurrentMM<=2)
- {
- model.setValue("/root/main/search/entryy",CurrentYY-1);
-
- }
-
- zbcfGetCodeList(new Array("A0456"), new Array("/root/init/comcd")); //09 예산 계획 구분 공통코드 셋팅
-
- model.refresh();
- }
-
- /* --------------------------------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 예산관리 조회 함수 */
- /* --------------------------------------------------------------------------*/
- function fBugtListRef() {
-
- var entryy = ipt_entryy.currentText; // 01 사업년도에 입력받은 값을 변수 entryy에 저장 model.getValue("/root/main/search/entryy");
- fBugtNotReadOnly(); // 02 활성화시키는 함수 호출
- var idxRows=grd_bugtlist.rows;
- var xPath="/root/main/grdlist/itemlist";
-
- if(entryy=='')
- {
- messageBox("사업연도를","C001");
- return;
- }
-
- model.removeNodeset("/root/main/grdlist/itemlist");
-
- model.setValue("/root/main/search/entryy",entryy); // 03 변수에 담긴 값을 search안의 entryy에 저장
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata","/root/main/search");
-
- submit("TRAYA02101");
-
- grd_bugtlist.cellStyle("background-color", 9, 1, 9, 14) = "#e1ffff"; // 04 합계에 색깔 넣어줌
- /*
- grd_bugtlist.subtotal("sum", -1, 1, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "선교비", true);
- grd_bugtlist.subtotal("sum", -1, 2, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
- grd_bugtlist.subtotal("sum", -1, 3, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
- grd_bugtlist.subtotal("sum", -1, 4, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
- grd_bugtlist.subtotal("sum", -1, 5, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
- grd_bugtlist.subtotal("sum", -1, 6, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
- grd_bugtlist.subtotal("sum", -1, 7, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
- grd_bugtlist.subtotal("sum", -1,8, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
-
-
- //grd_bugtlist.subtotalPosition="below";
-
- var idxRows = (grd_bugtlist.rows - grd_bugtlist.fixedRows) + 1 ;
- // 04 그리드의 글자 입력 부분을 뺀 갯수+1 을 idxRows에 저장
-
- for(var i=1 ; i< idxRows; i++)
- model.getValue(xPath+"["+i+"]/sumbugtamt")=="0" ? model.setValue(xPath+"["+i+"]/sumbugtamt","") : ""
- model.getValue(xPath+"["+i+"]/marbugtamt" )=='0'?model.setValue(xPath+"["+i+"]/marbugtamt",""):""
- model.getValue(xPath+"["+i+"]/aprbugtamt")=='0'?model.setValue(xPath+"["+i+"]/aprbugtamt",""): ""
- model.getValue(xPath+"["+i+"]/maybugtamt")=='0'?model.setValue(xPath+"["+i+"]/maybugtamt",""): ""
- model.getValue(xPath+"["+i+"]/junbugtamt")=='0'?model.setValue(xPath+"["+i+"]/junbugtamt",""): ""
- model.getValue(xPath+"["+i+"]/julbugtamt")=='0'?model.setValue(xPath+"["+i+"]/julbugtamt",""): ""
- model.getValue(xPath+"["+i+"]/augbugtamt")=='0'?model.setValue(xPath+"["+i+"]/augbugtamt",""): ""
- model.getValue(xPath+"["+i+"]/sepbugtamt")=='0'?model.setValue(xPath+"["+i+"]/sepbugtamt",""): ""
- model.getValue(xPath+"["+i+"]/octbugtamt")=='0'?model.setValue(xPath+"["+i+"]/octbugtamt",""): ""
- model.getValue(xPath+"["+i+"]/novbugtamt")=='0'?model.setValue(xPath+"["+i+"]/novbugtamt",""): ""
- model.getValue(xPath+"["+i+"]/decbugtamt")=='0'?model.setValue(xPath+"["+i+"]/decbugtamt",""): ""
- model.getValue(xPath+"["+i+"]/janbugtamt")=='0'?model.setValue(xPath+"["+i+"]/janbugtamt",""): ""
- model.getValue(xPath+"["+i+"]/febbugtamt")=='0'?model.setValue(xPath+"["+i+"]/febbugtamt",""): ""
- // 05 조회해서 받아온 합계값이 0 이면 null을 넣는다.
-
- */
-
- if(rdo_bugtplan.value=='1') // 06 조회한 값이 년단위이면
- fBugtReadOnly(); // 07 3월 제외한 나머지 비활성화 시키는 함수 호출
-
- else if(rdo_bugtplan.value=='') // 08 조회시 데이터가 없을 경우 월 별로 입력할 수 있게 셋팅
- model.setValue("/root/main/grdlist/save/bugtplanflag","2"); // 09 밸류 2 값(월별) 저장
- //alert(model.getValue("/root/main/grdlist/save/bugtplanflag"));
-
- model.refresh();
- }
- /* --------------------------------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 입력된 모든달의 금액 초기화 시키는 함수 */
- /* --------------------------------------------------------------------------*/
- function fBugtMonthInfo() {
-
- var xPath="/root/main/grdlist/itemlist";
- var idxRows=grd_bugtlist.rows;
-
- for(var i=0 ; i<idxRows ; i++) // 그리드의 갯수만큼 초기화
- {
- model.resetInstanceNode(xPath+"["+i+"]/marbugtamt" );
- model.resetInstanceNode(xPath+"["+i+"]/aprbugtamt" );
- model.resetInstanceNode(xPath+"["+i+"]/maybugtamt" );
- model.resetInstanceNode(xPath+"["+i+"]/junbugtamt" );
- model.resetInstanceNode(xPath+"["+i+"]/julbugtamt" );
- model.resetInstanceNode(xPath+"["+i+"]/augbugtamt" );
- model.resetInstanceNode(xPath+"["+i+"]/sepbugtamt" );
- model.resetInstanceNode(xPath+"["+i+"]/octbugtamt" );
- model.resetInstanceNode(xPath+"["+i+"]/novbugtamt" );
- model.resetInstanceNode(xPath+"["+i+"]/decbugtamt");
- model.resetInstanceNode(xPath+"["+i+"]/janbugtamt" );
- model.resetInstanceNode(xPath+"["+i+"]/febbugtamt" );
- model.resetInstanceNode(xPath+"["+i+"]/sumbugtamt");
-
- }
- }
- /* --------------------------------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 클릭한 행과 열의 정보를 받아 합계 내는 함수 */
- /* --------------------------------------------------------------------------*/
- function fDataSum(pRow, pCow){ // 01 각열의 3월부터 12월까지의 변수 선언
-
- var tAmt03 = 0;
- var tAmt04 = 0;
- var tAmt05 = 0;
- var tAmt06 = 0;
- var tAmt07 = 0;
- var tAmt08 = 0;
- var tAmt09 = 0;
- var tAmt10 = 0;
- var tAmt11 = 0;
- var tAmt12 = 0;
- var tAmt01 = 0;
- var tAmt02 = 0;
-
- var idxRows = (grd_bugtlist.rows - grd_bugtlist.fixedRows); // 02 전체 행에서 글자수 있는 행을 빼줌
- var xPath = "/root/main/grdlist/itemlist"; // 03 입력할 행수만큼 for문 돌리면서
- // 04 1행,2행,3행 각각 월별 금액을 입력해 pAmt03 변수에 저장
- for(var i=1 ; i < idxRows ; i++)
- {
- pAmt03 = parseInt((model.getValue(xPath+"["+i+"]/marbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/marbugtamt"));
- pAmt04 = parseInt((model.getValue(xPath+"["+i+"]/aprbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/aprbugtamt"));
- pAmt05 = parseInt((model.getValue(xPath+"["+i+"]/maybugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/maybugtamt"));
- pAmt06 = parseInt((model.getValue(xPath+"["+i+"]/junbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/junbugtamt"));
- pAmt07 = parseInt((model.getValue(xPath+"["+i+"]/julbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/julbugtamt"));
- pAmt08 = parseInt((model.getValue(xPath+"["+i+"]/augbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/augbugtamt"));
- pAmt09 = parseInt((model.getValue(xPath+"["+i+"]/sepbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/sepbugtamt"));
- pAmt10 = parseInt((model.getValue(xPath+"["+i+"]/octbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/octbugtamt"));
- pAmt11 = parseInt((model.getValue(xPath+"["+i+"]/novbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/novbugtamt"));
- pAmt12 = parseInt((model.getValue(xPath+"["+i+"]/decbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/decbugtamt"));
- pAmt01 = parseInt((model.getValue(xPath+"["+i+"]/janbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/janbugtamt"));
- pAmt02 = parseInt((model.getValue(xPath+"["+i+"]/febbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/febbugtamt"));
- pAmt13 = pAmt03 + pAmt04+ pAmt05+ pAmt06+ pAmt07+ pAmt08+ pAmt09+ pAmt10+ pAmt11+ pAmt12+ pAmt01+ pAmt02; // 05 그리드 수만큼 월별 합계를 구함
- model.setValue(xPath+"["+ i +"]/sumbugtamt",(pAmt13==0)?"":pAmt13 ); // 06 합계가 0이면 null을, 아님 더한 값을 sumbugtamt에 저장
-
- tAmt03 += pAmt03; // 07 3월에만 입력된 값을 그리드 갯수만큼 누적 덧셈
- tAmt04 += pAmt04; // 08 4월에만 입력된 값을 그리드 갯수만큼 누적 덧셈
- tAmt05 += pAmt05; // 09 5월에만 입력된 값을 그리드 갯수만큼 누적 덧셈
- tAmt06 += pAmt06;
- tAmt07 += pAmt07;
- tAmt08 += pAmt08;
- tAmt09 += pAmt09;
- tAmt10 += pAmt10;
- tAmt11 += pAmt11;
- tAmt12 += pAmt12;
- tAmt01 += pAmt01;
- tAmt02 += pAmt02;
- }
-
-
- model.setValue(xPath+"["+ idxRows +"]/marbugtamt", (tAmt03==0)?"":tAmt03); // 10 마지막 열에 월별 합계 저장
- model.setValue(xPath+"["+ idxRows +"]/aprbugtamt", (tAmt04==0)?"":tAmt04);
- model.setValue(xPath+"["+ idxRows +"]/maybugtamt", (tAmt05==0)?"":tAmt05);
- model.setValue(xPath+"["+ idxRows +"]/junbugtamt", (tAmt06==0)?"":tAmt06);
- model.setValue(xPath+"["+ idxRows +"]/julbugtamt", (tAmt07==0)?"":tAmt07);
- model.setValue(xPath+"["+ idxRows +"]/augbugtamt", (tAmt08==0)?"":tAmt08);
- model.setValue(xPath+"["+ idxRows +"]/sepbugtamt", (tAmt09==0)?"":tAmt09);
- model.setValue(xPath+"["+ idxRows +"]/octbugtamt", (tAmt10==0)?"":tAmt10);
- model.setValue(xPath+"["+ idxRows +"]/novbugtamt", (tAmt11==0)?"":tAmt11);
- model.setValue(xPath+"["+ idxRows +"]/decbugtamt", (tAmt12==0)?"":tAmt12);
- model.setValue(xPath+"["+ idxRows +"]/janbugtamt", (tAmt01==0)?"":tAmt01);
- model.setValue(xPath+"["+ idxRows +"]/febbugtamt", (tAmt02==0)?"":tAmt02);
-
- pAmt13 = tAmt03 + tAmt04+ tAmt05+ tAmt06+ tAmt07+ tAmt08+ tAmt09+ tAmt10+ tAmt11+ tAmt12+ tAmt01+ tAmt02; // 11 월별 합계를 누적해서 변수에 저장
- model.setValue(xPath+"["+ idxRows +"]/sumbugtamt",(pAmt13==0)?"":pAmt13 ); // 12 합계가 0이면 null을, 아님 더한 값을 sumbugtamt에 저장 */
- }
- /* --------------------------------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 3월을 제외한 모든 달은 비활성화 시키는 함수 */
- /* --------------------------------------------------------------------------*/
- function fBugtReadOnly() {
- var idxRows=grd_bugtlist.rows;
- var sPath = "/root/main/grdlist/itemlist";
-
- for(var i=0 ; i<idxRows ; i++)
- {
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("aprbugtamt"))=true;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("maybugtamt"))=true;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("junbugtamt"))=true;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("julbugtamt"))=true;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("augbugtamt"))=true;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("sepbugtamt"))=true;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("octbugtamt"))=true;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("novbugtamt"))=true;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("decbugtamt"))=true;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("janbugtamt"))=true;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("febbugtamt"))=true;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("sumbugtamt"))=true;
- }
- }
- /* --------------------------------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 3월 제외한 모든 달을 활성화 시키는 함수 */
- /* --------------------------------------------------------------------------*/
- function fBugtNotReadOnly() {
-
- var idxRows=grd_bugtlist.rows;
-
- for(var i=0 ; i<idxRows ; i++)
- {
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("aprbugtamt"))=false;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("maybugtamt"))=false;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("junbugtamt"))=false;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("julbugtamt"))=false;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("augbugtamt"))=false;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("sepbugtamt"))=false;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("octbugtamt"))=false;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("novbugtamt"))=false;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("decbugtamt"))=false;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("janbugtamt"))=false;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("febbugtamt"))=false;
- grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("sumbugtamt"))=false;
- }
- }
- /* --------------------------------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 예산계획 구분 값을 받는 함수 */
- /* --------------------------------------------------------------------------*/
-
- function fBugtPlanFlag() {
- var idxRows=grd_bugtlist.rows; //01 그리드의 전체 갯수 idxRows에 저장
- fBugtMonthInfo(); //02 입력되어 있는 모든 달의 예산 금액 초기화 하는 함수 호출
-
- if(rdo_bugtplan.value =='1') //03 년단위 예산계획 선택시
- {
-
- fBugtReadOnly(); //04 3월 제외한 모든 달 비활성화 함수 호출
- }
-
- else //05 월단위 예산 계획 선택시
- {
- fBugtNotReadOnly(); //06 3월 제외한 모든 달 활성화 시키는 함수 호출
-
- }
-
- model.refresh();
-
- }
- /* --------------------------------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 예산계획 저장 함수 */
- /* --------------------------------------------------------------------------*/
- function ffBugtListSave() {
-
- var idxRows = (grd_bugtlist.rows - grd_bugtlist.fixedRows) + 1 ; //01 그리드의 글자 입력 부분을 뺀 갯수+1 을 idxRows에 저장
- var entryy = model.getValue("/root/main/search/entryy"); //02 사업년도 입력한 값을 받아 변수 entryy에 저장
- var sPath = "/root/main/grdlist/itemlist";
-
- if (rdo_bugtplan.value=="")
- {
- alert("예산계획구분을 선택하십시요!!!");
-
- return;
- }
-
- var bugtplanflag= rdo_bugtplan.value;
- //03 그리드 데이터 저장할 파리채 생성
-
- var bugtdata = "acntflagcdnm" + "▦" //01 계정과목명칭
- + "itemexpendflagcdnm" + "▦" //02 비목명칭
- + "acntflagcd" + "▦" //03 계정과목
- + "itemexpendflagcd" + "▦" //04 비목
- + "marbugtamt" + "▦" //05 3월
- + "aprbugtamt" + "▦" //06 4월
- + "maybugtamt" + "▦" //07 5월
- + "junbugtamt" + "▦" //08 6월
- + "julbugtamt" + "▦" //09 7월
- + "augbugtamt" + "▦" //10 8월
- + "sepbugtamt" + "▦" //11 9월
- + "octbugtamt" + "▦" //12 10월
- + "novbugtamt" + "▦" //13 11월
- + "decbugtamt" + "▦" //14 12월
- + "janbugtamt" + "▦" //15 1월
- + "febbugtamt" + "▦" //16 2월
- + "sumbugtamt" + "▦" //17 합계
- + "bugtplanflag" + "▦" //18 예산계획구분
- + "instcd" + "▦" //19 기관코드
- + "entryy" + "▦" //20 사업저장년도
- + "statflag" + "▩"; //21 상태
- //+ "status" + "▩"; //22 상태값
-
-
- for(var i=1 ; i < idxRows; i++) //00 그리드 갯수만큼의 예산 저장
- {
- // if (model.getValue(sPath +"["+i+"]/recflag") == "9" ) continue; var status= grd_bugtlist.rowStatus(i+1); //01 상태가 변하지 않았으면 0을, 상태가 변했으면 2를 저장
-
- bugtdata += model.getValue(sPath +"["+i+"]/acntflagcdnm") + "▦" //02 계정과목명칭
- + model.getValue(sPath +"["+i+"]/itemexpendflagcdnm") + "▦" //03 비목명칭
- + model.getValue(sPath +"["+i+"]/acntflagcd") + "▦" //04 계정과목
- + model.getValue(sPath +"["+i+"]/itemexpendflagcd") + "▦" //05 비목
- + model.getValue(sPath +"["+i+"]/marbugtamt") + "▦" //06 3월
- + model.getValue(sPath +"["+i+"]/aprbugtamt") + "▦" //07 4월
- + model.getValue(sPath +"["+i+"]/maybugtamt") + "▦" //08 5월
- + model.getValue(sPath +"["+i+"]/junbugtamt") + "▦" //09 6월
- + model.getValue(sPath +"["+i+"]/julbugtamt") + "▦" //10 7월
- + model.getValue(sPath +"["+i+"]/augbugtamt") + "▦" //11 8월
- + model.getValue(sPath +"["+i+"]/sepbugtamt") + "▦" //12 9월
- + model.getValue(sPath +"["+i+"]/octbugtamt") + "▦" //13 10월
- + model.getValue(sPath +"["+i+"]/novbugtamt") + "▦" //14 11월
- + model.getValue(sPath +"["+i+"]/decbugtamt") + "▦" //15 12월
- + model.getValue(sPath +"["+i+"]/janbugtamt") + "▦" //16 1월
- + model.getValue(sPath +"["+i+"]/febbugtamt") + "▦" //17 2월
- + model.getValue(sPath +"["+i+"]/sumbugtamt") + "▦" //18 합계
- + bugtplanflag + "▦" //19 예산계획구분
- + model.getValue(sPath +"["+i+"]/instcd") + "▦" //20 기관코드
- + entryy + "▦" //21 사업저장년도
- + model.getValue(sPath +"["+i+"]/statflag") + "▩"; //22 상태
- // + status +"▩"; //23 상태값
- }
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/main/cond/bugtdata",bugtdata);
- model.copyNode("/root/send/savedata","/root/main/cond");
-
- if (submit("TXAYA02101")==true)
- {
- messageBox("저장이","I002");
- }
-
- fBugtListRef();
-
- }
- /* --------------------------------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 셀에 값 입력하고 엔터 입력시 옆으로 이동하는 함수 */
- /* --------------------------------------------------------------------------*/
-
- function fMoveCell() {
-
- cRow = grd_bugtlist.row; //클릭한 행
- cCol = grd_bugtlist.col; //클릭한 열
-
- var bugtplanflag=model.getValue("/root/main/grdlist/save/bugtplanflag");
- if(bugtplanflag=='1')
- {
-
- grd_bugtlist.row =cRow+1;
-
- }
-
- else
- {
- // 클릭한행이 전체 열의 갯수를 넘지 않을때
- if(cCol!=13)
- {
- grd_bugtlist.row = cRow; // 클릭한 행은 그대로
- grd_bugtlist.col = cCol+1;; // 클릭한열의 다음열을 클릭
- }
- else
- {
- grd_bugtlist.row= cRow+1; //클릭한 행의 다음행의 클릭
- grd_bugtlist.col= 2; // 열은 데이터가 있는 2열부터
- }
- }
- }
- /* --------------------------------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 초기화 함수 */
- /* --------------------------------------------------------------------------*/
- function ffBugtListReset() {
-
- model.removeNodeset("/root/main/grdlist/itemlist");
- //model.removeNodeset("/root/main/search/entryy");
- model.refresh();
- }
-
|