SMAYA02100.js 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. /* --------------------------------------------------------
  2. 예산 관리 (SMAYA02100.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. : Create By 임여원
  6. : 2015.05.02
  7. -------------------------------------------------------- */
  8. /**
  9. * @group :
  10. * @ver : 2007.12.14
  11. * @by : Lim YeoWon
  12. * @-----------------------------------------------------------
  13. * @type : function
  14. * @access : public
  15. * @desc : 예산 관리의 초기화 함수
  16. * @-----------------------------------------------------------
  17. */
  18. function finit() {
  19. var CurrentDate=getCurrentDate(); //01 사업년도 올해 날짜로 CurrentDate에 저장
  20. var CurrentMM=CurrentDate.substr(4,2); //02 현재 날짜 받아서 CurrentMM에 셋팅
  21. var CurrentYY=CurrentDate.substr(0,4); //03 현재 날짜의 월 CurrentMM에 저장
  22. //04 현재 날짜의 년을 CurrentYY에 저장
  23. if(CurrentMM>=03 && CurrentMM<=12) //05 현재 월이 3월에서 12월까지일 때
  24. { //06 현재 년도를 사업년도에 저장
  25. model.setValue("/root/main/search/entryy",CurrentYY); //07 현재 월이 1월에서 2월이면
  26. //08 전년도를 사업년도에 저장
  27. }
  28. else if(CurrentMM>=1 && CurrentMM<=2)
  29. {
  30. model.setValue("/root/main/search/entryy",CurrentYY-1);
  31. }
  32. zbcfGetCodeList(new Array("A0456"), new Array("/root/init/comcd")); //09 예산 계획 구분 공통코드 셋팅
  33. model.refresh();
  34. }
  35. /* --------------------------------------------------------------------------*/
  36. /* type : function */
  37. /* access : public */
  38. /* desc : 예산관리 조회 함수 */
  39. /* --------------------------------------------------------------------------*/
  40. function fBugtListRef() {
  41. var entryy = ipt_entryy.currentText; // 01 사업년도에 입력받은 값을 변수 entryy에 저장 model.getValue("/root/main/search/entryy");
  42. fBugtNotReadOnly(); // 02 활성화시키는 함수 호출
  43. var idxRows=grd_bugtlist.rows;
  44. var xPath="/root/main/grdlist/itemlist";
  45. if(entryy=='')
  46. {
  47. messageBox("사업연도를","C001");
  48. return;
  49. }
  50. model.removeNodeset("/root/main/grdlist/itemlist");
  51. model.setValue("/root/main/search/entryy",entryy); // 03 변수에 담긴 값을 search안의 entryy에 저장
  52. model.removeNodeset("/root/send/reqdata");
  53. model.makeNode("/root/send/reqdata");
  54. model.copyNode("/root/send/reqdata","/root/main/search");
  55. submit("TRAYA02101");
  56. grd_bugtlist.cellStyle("background-color", 9, 1, 9, 14) = "#e1ffff"; // 04 합계에 색깔 넣어줌
  57. /*
  58. grd_bugtlist.subtotal("sum", -1, 1, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "선교비", true);
  59. grd_bugtlist.subtotal("sum", -1, 2, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
  60. grd_bugtlist.subtotal("sum", -1, 3, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
  61. grd_bugtlist.subtotal("sum", -1, 4, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
  62. grd_bugtlist.subtotal("sum", -1, 5, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
  63. grd_bugtlist.subtotal("sum", -1, 6, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
  64. grd_bugtlist.subtotal("sum", -1, 7, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
  65. grd_bugtlist.subtotal("sum", -1,8, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#e1ffff;", 0, "합계", true);
  66. //grd_bugtlist.subtotalPosition="below";
  67. var idxRows = (grd_bugtlist.rows - grd_bugtlist.fixedRows) + 1 ;
  68. // 04 그리드의 글자 입력 부분을 뺀 갯수+1 을 idxRows에 저장
  69. for(var i=1 ; i< idxRows; i++)
  70. model.getValue(xPath+"["+i+"]/sumbugtamt")=="0" ? model.setValue(xPath+"["+i+"]/sumbugtamt","") : ""
  71. model.getValue(xPath+"["+i+"]/marbugtamt" )=='0'?model.setValue(xPath+"["+i+"]/marbugtamt",""):""
  72. model.getValue(xPath+"["+i+"]/aprbugtamt")=='0'?model.setValue(xPath+"["+i+"]/aprbugtamt",""): ""
  73. model.getValue(xPath+"["+i+"]/maybugtamt")=='0'?model.setValue(xPath+"["+i+"]/maybugtamt",""): ""
  74. model.getValue(xPath+"["+i+"]/junbugtamt")=='0'?model.setValue(xPath+"["+i+"]/junbugtamt",""): ""
  75. model.getValue(xPath+"["+i+"]/julbugtamt")=='0'?model.setValue(xPath+"["+i+"]/julbugtamt",""): ""
  76. model.getValue(xPath+"["+i+"]/augbugtamt")=='0'?model.setValue(xPath+"["+i+"]/augbugtamt",""): ""
  77. model.getValue(xPath+"["+i+"]/sepbugtamt")=='0'?model.setValue(xPath+"["+i+"]/sepbugtamt",""): ""
  78. model.getValue(xPath+"["+i+"]/octbugtamt")=='0'?model.setValue(xPath+"["+i+"]/octbugtamt",""): ""
  79. model.getValue(xPath+"["+i+"]/novbugtamt")=='0'?model.setValue(xPath+"["+i+"]/novbugtamt",""): ""
  80. model.getValue(xPath+"["+i+"]/decbugtamt")=='0'?model.setValue(xPath+"["+i+"]/decbugtamt",""): ""
  81. model.getValue(xPath+"["+i+"]/janbugtamt")=='0'?model.setValue(xPath+"["+i+"]/janbugtamt",""): ""
  82. model.getValue(xPath+"["+i+"]/febbugtamt")=='0'?model.setValue(xPath+"["+i+"]/febbugtamt",""): ""
  83. // 05 조회해서 받아온 합계값이 0 이면 null을 넣는다.
  84. */
  85. if(rdo_bugtplan.value=='1') // 06 조회한 값이 년단위이면
  86. fBugtReadOnly(); // 07 3월 제외한 나머지 비활성화 시키는 함수 호출
  87. else if(rdo_bugtplan.value=='') // 08 조회시 데이터가 없을 경우 월 별로 입력할 수 있게 셋팅
  88. model.setValue("/root/main/grdlist/save/bugtplanflag","2"); // 09 밸류 2 값(월별) 저장
  89. //alert(model.getValue("/root/main/grdlist/save/bugtplanflag"));
  90. model.refresh();
  91. }
  92. /* --------------------------------------------------------------------------*/
  93. /* type : function */
  94. /* access : public */
  95. /* desc : 입력된 모든달의 금액 초기화 시키는 함수 */
  96. /* --------------------------------------------------------------------------*/
  97. function fBugtMonthInfo() {
  98. var xPath="/root/main/grdlist/itemlist";
  99. var idxRows=grd_bugtlist.rows;
  100. for(var i=0 ; i<idxRows ; i++) // 그리드의 갯수만큼 초기화
  101. {
  102. model.resetInstanceNode(xPath+"["+i+"]/marbugtamt" );
  103. model.resetInstanceNode(xPath+"["+i+"]/aprbugtamt" );
  104. model.resetInstanceNode(xPath+"["+i+"]/maybugtamt" );
  105. model.resetInstanceNode(xPath+"["+i+"]/junbugtamt" );
  106. model.resetInstanceNode(xPath+"["+i+"]/julbugtamt" );
  107. model.resetInstanceNode(xPath+"["+i+"]/augbugtamt" );
  108. model.resetInstanceNode(xPath+"["+i+"]/sepbugtamt" );
  109. model.resetInstanceNode(xPath+"["+i+"]/octbugtamt" );
  110. model.resetInstanceNode(xPath+"["+i+"]/novbugtamt" );
  111. model.resetInstanceNode(xPath+"["+i+"]/decbugtamt");
  112. model.resetInstanceNode(xPath+"["+i+"]/janbugtamt" );
  113. model.resetInstanceNode(xPath+"["+i+"]/febbugtamt" );
  114. model.resetInstanceNode(xPath+"["+i+"]/sumbugtamt");
  115. }
  116. }
  117. /* --------------------------------------------------------------------------*/
  118. /* type : function */
  119. /* access : public */
  120. /* desc : 클릭한 행과 열의 정보를 받아 합계 내는 함수 */
  121. /* --------------------------------------------------------------------------*/
  122. function fDataSum(pRow, pCow){ // 01 각열의 3월부터 12월까지의 변수 선언
  123. var tAmt03 = 0;
  124. var tAmt04 = 0;
  125. var tAmt05 = 0;
  126. var tAmt06 = 0;
  127. var tAmt07 = 0;
  128. var tAmt08 = 0;
  129. var tAmt09 = 0;
  130. var tAmt10 = 0;
  131. var tAmt11 = 0;
  132. var tAmt12 = 0;
  133. var tAmt01 = 0;
  134. var tAmt02 = 0;
  135. var idxRows = (grd_bugtlist.rows - grd_bugtlist.fixedRows); // 02 전체 행에서 글자수 있는 행을 빼줌
  136. var xPath = "/root/main/grdlist/itemlist"; // 03 입력할 행수만큼 for문 돌리면서
  137. // 04 1행,2행,3행 각각 월별 금액을 입력해 pAmt03 변수에 저장
  138. for(var i=1 ; i < idxRows ; i++)
  139. {
  140. pAmt03 = parseInt((model.getValue(xPath+"["+i+"]/marbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/marbugtamt"));
  141. pAmt04 = parseInt((model.getValue(xPath+"["+i+"]/aprbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/aprbugtamt"));
  142. pAmt05 = parseInt((model.getValue(xPath+"["+i+"]/maybugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/maybugtamt"));
  143. pAmt06 = parseInt((model.getValue(xPath+"["+i+"]/junbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/junbugtamt"));
  144. pAmt07 = parseInt((model.getValue(xPath+"["+i+"]/julbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/julbugtamt"));
  145. pAmt08 = parseInt((model.getValue(xPath+"["+i+"]/augbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/augbugtamt"));
  146. pAmt09 = parseInt((model.getValue(xPath+"["+i+"]/sepbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/sepbugtamt"));
  147. pAmt10 = parseInt((model.getValue(xPath+"["+i+"]/octbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/octbugtamt"));
  148. pAmt11 = parseInt((model.getValue(xPath+"["+i+"]/novbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/novbugtamt"));
  149. pAmt12 = parseInt((model.getValue(xPath+"["+i+"]/decbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/decbugtamt"));
  150. pAmt01 = parseInt((model.getValue(xPath+"["+i+"]/janbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/janbugtamt"));
  151. pAmt02 = parseInt((model.getValue(xPath+"["+i+"]/febbugtamt")=="")?"0":model.getValue(xPath+"["+ i +"]/febbugtamt"));
  152. pAmt13 = pAmt03 + pAmt04+ pAmt05+ pAmt06+ pAmt07+ pAmt08+ pAmt09+ pAmt10+ pAmt11+ pAmt12+ pAmt01+ pAmt02; // 05 그리드 수만큼 월별 합계를 구함
  153. model.setValue(xPath+"["+ i +"]/sumbugtamt",(pAmt13==0)?"":pAmt13 ); // 06 합계가 0이면 null을, 아님 더한 값을 sumbugtamt에 저장
  154. tAmt03 += pAmt03; // 07 3월에만 입력된 값을 그리드 갯수만큼 누적 덧셈
  155. tAmt04 += pAmt04; // 08 4월에만 입력된 값을 그리드 갯수만큼 누적 덧셈
  156. tAmt05 += pAmt05; // 09 5월에만 입력된 값을 그리드 갯수만큼 누적 덧셈
  157. tAmt06 += pAmt06;
  158. tAmt07 += pAmt07;
  159. tAmt08 += pAmt08;
  160. tAmt09 += pAmt09;
  161. tAmt10 += pAmt10;
  162. tAmt11 += pAmt11;
  163. tAmt12 += pAmt12;
  164. tAmt01 += pAmt01;
  165. tAmt02 += pAmt02;
  166. }
  167. model.setValue(xPath+"["+ idxRows +"]/marbugtamt", (tAmt03==0)?"":tAmt03); // 10 마지막 열에 월별 합계 저장
  168. model.setValue(xPath+"["+ idxRows +"]/aprbugtamt", (tAmt04==0)?"":tAmt04);
  169. model.setValue(xPath+"["+ idxRows +"]/maybugtamt", (tAmt05==0)?"":tAmt05);
  170. model.setValue(xPath+"["+ idxRows +"]/junbugtamt", (tAmt06==0)?"":tAmt06);
  171. model.setValue(xPath+"["+ idxRows +"]/julbugtamt", (tAmt07==0)?"":tAmt07);
  172. model.setValue(xPath+"["+ idxRows +"]/augbugtamt", (tAmt08==0)?"":tAmt08);
  173. model.setValue(xPath+"["+ idxRows +"]/sepbugtamt", (tAmt09==0)?"":tAmt09);
  174. model.setValue(xPath+"["+ idxRows +"]/octbugtamt", (tAmt10==0)?"":tAmt10);
  175. model.setValue(xPath+"["+ idxRows +"]/novbugtamt", (tAmt11==0)?"":tAmt11);
  176. model.setValue(xPath+"["+ idxRows +"]/decbugtamt", (tAmt12==0)?"":tAmt12);
  177. model.setValue(xPath+"["+ idxRows +"]/janbugtamt", (tAmt01==0)?"":tAmt01);
  178. model.setValue(xPath+"["+ idxRows +"]/febbugtamt", (tAmt02==0)?"":tAmt02);
  179. pAmt13 = tAmt03 + tAmt04+ tAmt05+ tAmt06+ tAmt07+ tAmt08+ tAmt09+ tAmt10+ tAmt11+ tAmt12+ tAmt01+ tAmt02; // 11 월별 합계를 누적해서 변수에 저장
  180. model.setValue(xPath+"["+ idxRows +"]/sumbugtamt",(pAmt13==0)?"":pAmt13 ); // 12 합계가 0이면 null을, 아님 더한 값을 sumbugtamt에 저장 */
  181. }
  182. /* --------------------------------------------------------------------------*/
  183. /* type : function */
  184. /* access : public */
  185. /* desc : 3월을 제외한 모든 달은 비활성화 시키는 함수 */
  186. /* --------------------------------------------------------------------------*/
  187. function fBugtReadOnly() {
  188. var idxRows=grd_bugtlist.rows;
  189. var sPath = "/root/main/grdlist/itemlist";
  190. for(var i=0 ; i<idxRows ; i++)
  191. {
  192. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("aprbugtamt"))=true;
  193. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("maybugtamt"))=true;
  194. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("junbugtamt"))=true;
  195. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("julbugtamt"))=true;
  196. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("augbugtamt"))=true;
  197. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("sepbugtamt"))=true;
  198. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("octbugtamt"))=true;
  199. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("novbugtamt"))=true;
  200. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("decbugtamt"))=true;
  201. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("janbugtamt"))=true;
  202. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("febbugtamt"))=true;
  203. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("sumbugtamt"))=true;
  204. }
  205. }
  206. /* --------------------------------------------------------------------------*/
  207. /* type : function */
  208. /* access : public */
  209. /* desc : 3월 제외한 모든 달을 활성화 시키는 함수 */
  210. /* --------------------------------------------------------------------------*/
  211. function fBugtNotReadOnly() {
  212. var idxRows=grd_bugtlist.rows;
  213. for(var i=0 ; i<idxRows ; i++)
  214. {
  215. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("aprbugtamt"))=false;
  216. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("maybugtamt"))=false;
  217. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("junbugtamt"))=false;
  218. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("julbugtamt"))=false;
  219. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("augbugtamt"))=false;
  220. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("sepbugtamt"))=false;
  221. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("octbugtamt"))=false;
  222. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("novbugtamt"))=false;
  223. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("decbugtamt"))=false;
  224. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("janbugtamt"))=false;
  225. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("febbugtamt"))=false;
  226. grd_bugtlist.isReadOnly(i,grd_bugtlist.colRef("sumbugtamt"))=false;
  227. }
  228. }
  229. /* --------------------------------------------------------------------------*/
  230. /* type : function */
  231. /* access : public */
  232. /* desc : 예산계획 구분 값을 받는 함수 */
  233. /* --------------------------------------------------------------------------*/
  234. function fBugtPlanFlag() {
  235. var idxRows=grd_bugtlist.rows; //01 그리드의 전체 갯수 idxRows에 저장
  236. fBugtMonthInfo(); //02 입력되어 있는 모든 달의 예산 금액 초기화 하는 함수 호출
  237. if(rdo_bugtplan.value =='1') //03 년단위 예산계획 선택시
  238. {
  239. fBugtReadOnly(); //04 3월 제외한 모든 달 비활성화 함수 호출
  240. }
  241. else //05 월단위 예산 계획 선택시
  242. {
  243. fBugtNotReadOnly(); //06 3월 제외한 모든 달 활성화 시키는 함수 호출
  244. }
  245. model.refresh();
  246. }
  247. /* --------------------------------------------------------------------------*/
  248. /* type : function */
  249. /* access : public */
  250. /* desc : 예산계획 저장 함수 */
  251. /* --------------------------------------------------------------------------*/
  252. function ffBugtListSave() {
  253. var idxRows = (grd_bugtlist.rows - grd_bugtlist.fixedRows) + 1 ; //01 그리드의 글자 입력 부분을 뺀 갯수+1 을 idxRows에 저장
  254. var entryy = model.getValue("/root/main/search/entryy"); //02 사업년도 입력한 값을 받아 변수 entryy에 저장
  255. var sPath = "/root/main/grdlist/itemlist";
  256. if (rdo_bugtplan.value=="")
  257. {
  258. alert("예산계획구분을 선택하십시요!!!");
  259. return;
  260. }
  261. var bugtplanflag= rdo_bugtplan.value;
  262. //03 그리드 데이터 저장할 파리채 생성
  263. var bugtdata = "acntflagcdnm" + "▦" //01 계정과목명칭
  264. + "itemexpendflagcdnm" + "▦" //02 비목명칭
  265. + "acntflagcd" + "▦" //03 계정과목
  266. + "itemexpendflagcd" + "▦" //04 비목
  267. + "marbugtamt" + "▦" //05 3월
  268. + "aprbugtamt" + "▦" //06 4월
  269. + "maybugtamt" + "▦" //07 5월
  270. + "junbugtamt" + "▦" //08 6월
  271. + "julbugtamt" + "▦" //09 7월
  272. + "augbugtamt" + "▦" //10 8월
  273. + "sepbugtamt" + "▦" //11 9월
  274. + "octbugtamt" + "▦" //12 10월
  275. + "novbugtamt" + "▦" //13 11월
  276. + "decbugtamt" + "▦" //14 12월
  277. + "janbugtamt" + "▦" //15 1월
  278. + "febbugtamt" + "▦" //16 2월
  279. + "sumbugtamt" + "▦" //17 합계
  280. + "bugtplanflag" + "▦" //18 예산계획구분
  281. + "instcd" + "▦" //19 기관코드
  282. + "entryy" + "▦" //20 사업저장년도
  283. + "statflag" + "▩"; //21 상태
  284. //+ "status" + "▩"; //22 상태값
  285. for(var i=1 ; i < idxRows; i++) //00 그리드 갯수만큼의 예산 저장
  286. {
  287. // if (model.getValue(sPath +"["+i+"]/recflag") == "9" ) continue; var status= grd_bugtlist.rowStatus(i+1); //01 상태가 변하지 않았으면 0을, 상태가 변했으면 2를 저장
  288. bugtdata += model.getValue(sPath +"["+i+"]/acntflagcdnm") + "▦" //02 계정과목명칭
  289. + model.getValue(sPath +"["+i+"]/itemexpendflagcdnm") + "▦" //03 비목명칭
  290. + model.getValue(sPath +"["+i+"]/acntflagcd") + "▦" //04 계정과목
  291. + model.getValue(sPath +"["+i+"]/itemexpendflagcd") + "▦" //05 비목
  292. + model.getValue(sPath +"["+i+"]/marbugtamt") + "▦" //06 3월
  293. + model.getValue(sPath +"["+i+"]/aprbugtamt") + "▦" //07 4월
  294. + model.getValue(sPath +"["+i+"]/maybugtamt") + "▦" //08 5월
  295. + model.getValue(sPath +"["+i+"]/junbugtamt") + "▦" //09 6월
  296. + model.getValue(sPath +"["+i+"]/julbugtamt") + "▦" //10 7월
  297. + model.getValue(sPath +"["+i+"]/augbugtamt") + "▦" //11 8월
  298. + model.getValue(sPath +"["+i+"]/sepbugtamt") + "▦" //12 9월
  299. + model.getValue(sPath +"["+i+"]/octbugtamt") + "▦" //13 10월
  300. + model.getValue(sPath +"["+i+"]/novbugtamt") + "▦" //14 11월
  301. + model.getValue(sPath +"["+i+"]/decbugtamt") + "▦" //15 12월
  302. + model.getValue(sPath +"["+i+"]/janbugtamt") + "▦" //16 1월
  303. + model.getValue(sPath +"["+i+"]/febbugtamt") + "▦" //17 2월
  304. + model.getValue(sPath +"["+i+"]/sumbugtamt") + "▦" //18 합계
  305. + bugtplanflag + "▦" //19 예산계획구분
  306. + model.getValue(sPath +"["+i+"]/instcd") + "▦" //20 기관코드
  307. + entryy + "▦" //21 사업저장년도
  308. + model.getValue(sPath +"["+i+"]/statflag") + "▩"; //22 상태
  309. // + status +"▩"; //23 상태값
  310. }
  311. model.removeNodeset("/root/send/savedata");
  312. model.makeNode("/root/send/savedata");
  313. model.makeValue("/root/main/cond/bugtdata",bugtdata);
  314. model.copyNode("/root/send/savedata","/root/main/cond");
  315. if (submit("TXAYA02101")==true)
  316. {
  317. messageBox("저장이","I002");
  318. }
  319. fBugtListRef();
  320. }
  321. /* --------------------------------------------------------------------------*/
  322. /* type : function */
  323. /* access : public */
  324. /* desc : 셀에 값 입력하고 엔터 입력시 옆으로 이동하는 함수 */
  325. /* --------------------------------------------------------------------------*/
  326. function fMoveCell() {
  327. cRow = grd_bugtlist.row; //클릭한 행
  328. cCol = grd_bugtlist.col; //클릭한 열
  329. var bugtplanflag=model.getValue("/root/main/grdlist/save/bugtplanflag");
  330. if(bugtplanflag=='1')
  331. {
  332. grd_bugtlist.row =cRow+1;
  333. }
  334. else
  335. {
  336. // 클릭한행이 전체 열의 갯수를 넘지 않을때
  337. if(cCol!=13)
  338. {
  339. grd_bugtlist.row = cRow; // 클릭한 행은 그대로
  340. grd_bugtlist.col = cCol+1;; // 클릭한열의 다음열을 클릭
  341. }
  342. else
  343. {
  344. grd_bugtlist.row= cRow+1; //클릭한 행의 다음행의 클릭
  345. grd_bugtlist.col= 2; // 열은 데이터가 있는 2열부터
  346. }
  347. }
  348. }
  349. /* --------------------------------------------------------------------------*/
  350. /* type : function */
  351. /* access : public */
  352. /* desc : 초기화 함수 */
  353. /* --------------------------------------------------------------------------*/
  354. function ffBugtListReset() {
  355. model.removeNodeset("/root/main/grdlist/itemlist");
  356. //model.removeNodeset("/root/main/search/entryy");
  357. model.refresh();
  358. }