The sample code below shows how to retrieve the DataSet of Outstanding Sales Order.
This sample does not filter the result.
publicSystem.Data.DataSetOutstandingSalesOrderData(BCE.Data.DBSettingdbSetting){//Create the object of SalesOrdersOutstandingReportCommandBCE.AutoCount.Invoicing.Sales.SalesOrder.SalesOrderOutstandingReportCommandrptCmd=BCE.AutoCount.Invoicing.Sales.SalesOrder.SalesOrderOutstandingReportCommand.Create(dbSetting);//Prepare the DataSet of Master table and Detail tableSystem.Data.DataTabledtMaster=newSystem.Data.DataTable("Master");System.Data.DataTabledtDetail=newSystem.Data.DataTable("Detail");System.Data.DataSetdsOutstandingSO=newSystem.Data.DataSet();dsOutstandingSO.Tables.Add(dtMaster);dsOutstandingSO.Tables.Add(dtDetail);//Add the criterias that require to retrieve the data//Such as add filter to resultBCE.AutoCount.Invoicing.Sales.SalesOrder.SalesOrderOutStandingReportingCriteriacrit=newBCE.AutoCount.Invoicing.Sales.SalesOrder.SalesOrderOutStandingReportingCriteria();//Define addition fields of DocNo, DocDate, DebtorCode, DebtorName.//Programmer may add more fieldname to the DataTable of Master Table. rptCmd.BasicSearch(crit,"DocNo,DocDate,DebtorCode,DebtorName",dsOutstandingDO,"");//Create a new DataRelation to Master and Detail tables in dsOutstandingSOdsOutstandingSO.Relations.Add("MasterDetailRelation",dtMaster.Columns["DocKey"],dtDetail.Columns["DocKey"],false);returndsOutstandingSO;}