게시판을 이용해 주셔서 감사합니다.
다음양식에 맞게 입력해주세요.
* 고객시스템명 : 가우스닷넷 5.0
* 문의할 Component명 및 버전 : DataSet, 1.2.1.83
* DataSet 버전 : 1.2.1.83
* Tr 버전 : 1.2.1.44
* 문의 유형(질문/요청/참조) : SubsumExpr을 통한 부분합이 작동을 안하는 경우가 있네요.
* 내용 :
안녕하세요
(주)익스트림포스 원종근 차장입니다. 010-8768-7233
개발방법에 따라서 SubsumExpr이 작동하지 않는 경우가 있어서 왜그런지 문의드립니다.
Case A : 잘작동되는 경우
:cs파일
string SQL = "..쿼리생략.."
GauceParameter param = new GauceParameter();
param.add("compCode", compCode);
param.add("startDate", startDate);
param.add("endDate", endDate);
GauceDataSet oDataSet = oGBasePage.GauceService.newDataSet("output1");
oDataSet.addChangingDataColumn2("SALE_QTY_PURE", GauceVariable.ColumnDataType.INT);
oDataSet.addChangingDataColumn2("SALE_AMT", GauceVariable.ColumnDataType.INT);
oGBasePage.commonSelect_byDataSet2(oConn, oDataSet, SQL, param);
:aspx파일
<!-- HBDataset Control Declaration -->
<HB:HBDataSet SyncLoad="True" ID="HBDataSet1" runat="server" Style="z-index: 100; left: 42px; position: absolute; top: 673px" OnLoadError="OnLoadError" OnLoadCompleted="OnLoadCompleted" OnDataError="OnDataError" >
<SubsumExpr Expression="5:MENU_CLASS_NAME01,4:MENU_CLASS_NAME02,3:MENU_CLASS_NAME03,2:MENU_CLASS_NAME04" UseTotal=false />
<RequestParams>
<HB:CParam ParamName="" ParamValue=""></HB:CParam>
</RequestParams>
</HB:HBDataSet>
※ 위와같은 코딩은 별문제 없이 부분합이 처리됩니다.
Case B : 문제있는 경우
:cs파일
IGauceResponse GauceResponse = GauceService.getResponse(1, false, GauceService.getConfigFirstRowSize());
GauceDataSet GDS = GauceService.newDataSet("grid_select");
GDS.addDataColumn("TYPE_CODE", GauceDefine.TB_STRING, 4, GauceDefine.TB_NORMAL);
GDS.addDataColumn("TYPE_NAME01", GauceDefine.TB_STRING, 20, GauceDefine.TB_NORMAL);
string SQL = "..쿼리생략.."
OracleConnection oracleConnection = null;
OracleDataReader oracleDataReader = ....생략
while (oracleDataReader.Read())
{
string fileName = "";
for (int i = 0; i < oracleDataReader.FieldCount; i++)
{
fileName = oracleDataReader.GetName(i);
GDS.addDataRowValue(fileName, oracleDataReader[fileName]);
}
GDS.addDataRow();
}
GDS.end();
oracleDataReader.Close();
oracleConnection.Close();
:aspx파일
<!-- HBDataset Control Declaration -->
<HB:HBDataSet SyncLoad="True" ID="HBDataSet1" runat="server" Style="z-index: 100; left: 42px; position: absolute; top: 673px" OnLoadError="OnLoadError" OnLoadCompleted="OnLoadCompleted" OnDataError="OnDataError" >
<SubsumExpr Expression="5:TYPE_CODE01,4:TYPE_CODE02,3:TYPE_CODE03,2:TYPE_CODE04" UseTotal=false />
<RequestParams>
<HB:CParam ParamName="" ParamValue=""></HB:CParam>
</RequestParams>
</HB:HBDataSet>
※ 위의 경우에는 <SubsumExpr의 값과 상관없이 부분합(Subsum)을 보여주지 않습니다.
Case B의 경우처럼 GDS.addDataRow();형태로 GauceDataSet의 값을 넣으면 부분합이 되지 않는건지 문의드립니다.
방법이 있다면 방법을 샘플로 보여주시면 감사하겠습니다.
- 익스트림포스 드림 -