Public class cfywdataset implements
Idatasetfactory {
Public static log = logfactory. getlog (cfywdataset. Class );
Private string datasetname = "ds_cfxx"; // dataset name
Private jdbctemplate Jt = (jdbctemplate) framework. getengine (). getcontainer (). getcomponent ("jdbctemplate ");
Private soarbaseservice = (soarbaseservice) framework. getengine (). getcontainer (). getcomponent ("soarbaseservice ");
Private Final Static string sfls = "0"; // historical
Public dataset createdataset (context, datasetconfig, Boolean B ){
Map map = context. getallparammap ();
// Passing Parameters
String fwidstr = (string) map. Get ("fwid ");
String qzidstr = (string) map. Get ("qinistr"); // qzid: fwid: ywslid,
String fwid = "";
Map <long, long> qzidmap = new hashmap <long, long> ();
If (stringutils. isnotempty (qzidstr )){
For (string Param: qzidstr. Split (",")){
If (stringutils. isnotempty (PARAM )){
Qzidmap. Put (long. valueof (Param. Split (":") [0]), long. valueof (Param. Split (":") [1]);
}
}
}
// Set the dataset name
Dataset reportdataset = new dataset (datasetname );
// Obtain the map set of report data
Reportdataset. addcol ("cfjg"); // closes the Organization
Reportdataset. addcol ("cfdjr"); // closes the registrant
Reportdataset. addcol ("cfwh"); // mark
Reportdataset. addcol ("cfqx"); // The sealing period.
Reportdataset. addcol ("cfsj"); // The sealing time.
Reportdataset. addcol ("fwid"); // house code
Reportdataset. addcol ("fwzl"); // The house is located
Reportdataset. addcol ("zxwh"); // The execution document number.
Reportdataset. addcol ("isnull"); // whether it is null, DS. Count () Changes
Reportdataset. addcol ("cfzt"); // check the status
........................................ ...................................