小弟应老弟的要求这样设计项目的SESSION,原来的每一个Session变量现在都是这个XML的一个属性
大家觉得这样可不可以
//*-------------- 组合XML到SESSION中 --------------*/
string xmlSession="<root><FWSYSTEM LOGDATE=\""+strLogDate+"\" LOGYEAR=\""+strLogYear+"\"";
xmlSession +=" LOGZTID=\""+strLogZTId +"\" LOGZTCANUSE=\""+strLogZTCanuse+"\"";
xmlSession +=" LOGMONTHCANUSE=\""+strLogMonthCanuse +"\" LOGTIME=\""+strLogTime+"\" />";
xmlSession +="<FWUSER LOGUSERID=\""+strLogUId+"\" FEMP=\""+strEmpId+"\"";
xmlSession +=" FEMPNAME=\""+strEmpNm +"\" USERJOB=\""+strJobId+"\"";
xmlSession +=" USERJOBNAME=\""+strJobNm +"\" LOGSESSIONID=\""+strSessionID+"\" LOGDEPTID=\""+strEmpDepId+"\"";
xmlSession +=" LOGDEPTNAME=\""+strJobDepNm +"\" USERACTOR=\""+strJobActId+"\"";
xmlSession +=" USERACTORNAME=\""+strJobActNm +"\" LOGJOB_DEPT=\""+strJobDepId+"\"";
xmlSession +=" LOGJOB_DEPTNAME=\""+strJobDepNm +"\" LOGJOB_UPDEPT=\""+strUpDeptId+"\"";
xmlSession +=" LOGJOB_UPDEPTNAME=\""+strUpDeptNm+"\" />";
xmlSession +="<FWUSERORG ORGOR_MAIN=\""+strOrgOpM+"\" ORGHR_MAN=\""+strOrgHrM+"\"";
xmlSession +=" ORGMA_MAN=\""+strOrgMaM +"\" ORGFI_MAN=\""+strOrgFiM+"\"";
xmlSession +=" ORGST_MAN=\""+strOrgStM +"\" ORGMA_DUTY=\""+strOrgMaD+"\" />";
xmlSession +="<FWWEBSERVER WEBIP=\""+strWebIp+"\"";
xmlSession +=" WEBNAME=\""+strWebNm +"\" WEBFAPP=\""+strWebApp+"\"";
xmlSession +=" WEBASKTIME=\""+strWebAT +"\" />";
xmlSession +="<FWDBSERVER DBTYPE=\""+strDbType+"\" DBIP=\""+strDbIp+"\"";
xmlSession +=" DBNAME=\""+strDbNm +"\" USER=\""+strDbUId+"\"";
xmlSession +=" PWD=\""+strDbPwd +"\" DBFAPP=\""+strDbApp+"\"";
xmlSession +=" DbASKTIME=\""+strDbAT +"\" />";
xmlSession +="<FWFASKTIME FID=\""+strATFID+"\" FSTIME=\""+strATFST+"\"";
xmlSession +=" FETIME=\""+strATFET +"\" FFREQUENCY=\""+strATFQC+"\"";
xmlSession +=" FWEEK=\""+strATFWK +"\" FMONTH=\""+strATFMO+"\"";
xmlSession +=" FPOINT=\""+strATFSP +"\" FINTERVAL=\""+strATFIV+"\"";
xmlSession +=" FTYPE=\""+strATFTP+"\"";
xmlSession +="</root>";
Session["JOBRES"] = xmlSession;