• 고객센터
  • 교육
  • 매뉴얼
  • 데모
  • 제품소개
조회 수 : 2697
2012.06.19 (11:01:20)
게시판을 이용해 주셔서 감사합니다.
다음양식에 맞게 입력해주세요.

* 고객시스템명 : CJ 시스템즈
* GAUCE 버전 : 4.0
* WAS 종류(WebLogic 등등) : ASP.NET
* DB 종류 :
* 문의 유형(질문/요청/참조) :
* 내용 :

하기와 같이 상품코드, 상품명에 대한 소계 / 합계 를 트리로 표현하고자 하는데,
상품코드가 숫자라 합계가 되어 나옵니다.

ds_Master.SubsumExpr = "2:TOPLEVEL,1:MATNR"; 상품코드로 변경하면
상품명이 안 나오네요..

상품코드, 상품명 - 소계 합계가 나오려고 하면 어떻게 수정해야 하는지 조언바랍니다.

var str_grid_master = "";
str_grid_master += "<COLUMNINFO>";                
str_grid_master += "<COLUMN id='MATNR' refcolid='MATNR'>";
str_grid_master += "<TREE type='1' indentwidth='3' thumbsize='10' hasline='false' />";
str_grid_master += "<HEADER left='0' top='0' right='80' bottom='24' text='상품코드' "+MGRID_HEAD_STR+"/>";
str_grid_master += "<VIEW left='0' top='0' right='80' bottom='22' align='LeftCenter' text='' />";
str_grid_master += "<GROUP level='1' bgcolor='#EBD9C0' text='@MATNR' />";
str_grid_master += "<GROUP level='2' bgcolor='#FCB49E'  text='[총계]' />";
str_grid_master += "</COLUMN>";
                                
str_grid_master += "<COLUMN id='ARKTX' refcolid='ARKTX'>";
str_grid_master += "<HEADER left='80' top='0' right='250' bottom='24' text='상품명' "+MGRID_HEAD_STR+"/>";
str_grid_master += "<VIEW left='80' top='0' right='250' bottom='22' align='LeftCenter' text='' />";
str_grid_master += "<GROUP level='1' bgcolor='#EBD9C0'  align='LeftCenter' />";
str_grid_master += "<GROUP level='2' bgcolor='#FCB49E'  align='LeftCenter' />";        
str_grid_master += "</COLUMN>";

str_grid_master += "<COLUMN id='VRKME' refcolid='VRKME'>";
str_grid_master += "<HEADER left='250' top='0' right='295' bottom='24' text='단위' "+MGRID_HEAD_STR+"/>";
str_grid_master += "<VIEW left='250' top='0' right='295' bottom='22' align='CenterCenter'  />";
str_grid_master += "<GROUP level='1' bgcolor='#EBD9C0'/>";
str_grid_master += "<GROUP level='2' bgcolor='#FCB49E'/>";
str_grid_master += "</COLUMN>";
                                
str_grid_master += "<COLUMN id='FKDAT' refcolid='FKDAT'>";
str_grid_master += "<HEADER left='295' top='0' right='360' bottom='24' text='입고일' "+MGRID_HEAD_STR+"/>";
str_grid_master += "<VIEW left='295' top='0' right='360' bottom='22' align='CenterCenter'  displayformat='XXXX-XX-XX'/>";
str_grid_master += "<GROUP level='1' bgcolor='#EBD9C0'/>";
str_grid_master += "<GROUP level='2' bgcolor='#FCB49E'/>";
str_grid_master += "</COLUMN>";

str_grid_master += "<COLUMN id='NAME1' refcolid='NAME1'>";
str_grid_master += "<HEADER left='360' top='0' right='480' bottom='24' text='판매처명' "+MGRID_HEAD_STR+"/>";
str_grid_master += "<VIEW left='360' top='0' right='480' bottom='22' align='LeftCenter' />";
str_grid_master += "<GROUP level='1' bgcolor='#EBD9C0'/>";
str_grid_master += "<GROUP level='2' bgcolor='#FCB49E'/>";
str_grid_master += "</COLUMN>";
                                
str_grid_master += "<COLUMN id='NAME2' refcolid='NAME2'>";
str_grid_master += "<HEADER left='480' top='0' right='600' bottom='24' text='인도처명' "+MGRID_HEAD_STR+"/>";
str_grid_master += "<VIEW left='480' top='0' right='600' bottom='22' align='LeftCenter' />";
str_grid_master += "<GROUP level='1' bgcolor='#EBD9C0'/>";
str_grid_master += "<GROUP level='2' bgcolor='#FCB49E'/>";
str_grid_master += "</COLUMN>";
                                
str_grid_master += "<COLUMN id='FKIMG' refcolid='FKIMG'>";
str_grid_master += "<HEADER left='600' top='0' right='650' bottom='24' text='주문량' "+MGRID_HEAD_STR+"/>";
str_grid_master += "<VIEW left='600' top='0' right='650' bottom='22' align='RightCenter'  displayformat='#,###.0' />";
str_grid_master += "<GROUP level='1' bgcolor='#EBD9C0' displayformat='#,###.0' align='RightCenter' />";
str_grid_master += "<GROUP level='2' bgcolor='#FCB49E' displayformat='#,###.0' align='RightCenter' />";
str_grid_master += "</COLUMN>";

                
str_grid_master += "<COLUMN id='TOTAL' refcolid='TOTAL'>";
str_grid_master += "<HEADER left='830' top='0' right='925' bottom='24' text='총합계' "+MGRID_HEAD_STR+"/>";
str_grid_master += "<VIEW left='830' top='0' right='925' bottom='22' align='RightCenter'  displayformat='#,##0'  />";
str_grid_master += "<GROUP level='1' bgcolor='#EBD9C0' displayformat='#,##0' align='RightCenter'/>";
str_grid_master += "<GROUP level='2' bgcolor='#FCB49E' displayformat='#,##0' align='RightCenter'/>";
str_grid_master += "</COLUMN>";


str_grid_master += "</COLUMNINFO>";                        
grid_Master.ColumnInfo = str_grid_master;
grid_Master.AutoResizing = "True";        
ds_Master.SortExpr = "+ARKTX+FKDAT";
ds_Master.SubsumExpr = "2:TOPLEVEL,1:'ARKTX'";
grid_Master.DataID = "ds_Master";
 
Tag List
XE Login