2026821
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using GThinking.N_MISPROAS.Caching;
|
||||
using System.Data;
|
||||
using GThinking.N_MISPRO.Data;
|
||||
|
||||
namespace GThinking.N_XLXSBJ
|
||||
{
|
||||
internal class TZYZCache : DbDataCacheBase
|
||||
{
|
||||
public DataTable dtXLXSTZYZ;
|
||||
public DataView dvXLXSTZYZBy_YZID;
|
||||
public DataView dvYZBy_MXBHAndTJYS;
|
||||
|
||||
public TZYZCache()
|
||||
: base("DBERP", "N_XLXSBJ_XLXSTZYZ", "XLXSTZYZ")
|
||||
{
|
||||
}
|
||||
|
||||
protected override void FillData(string subKey)
|
||||
{
|
||||
TDatabase db = TContextDatabases.GetDatabase("DBERP");
|
||||
TSQL SQL = new TSQL(db);
|
||||
SQL.Clear();
|
||||
SQL.Add(@"select XLXSTZYZ_MXBH,XLXSTZYZ_YZID,XLXSTZYZ_YZMC,XLXSTZYZ_MRZ,XLXSTZYZ_XSXH,XLXSTZYZ_JJFS,
|
||||
XLXSTZYZ_MINC,XLXSTZYZ_TJYS,XLXSTZYZ_JGBID,XLXSTZYZ_TJYZID,XLXSTZYZ_BCYTJ,XLXSTZYZ_WPIDLIST,XLXSTZYZ_HCBZ ,
|
||||
XLXSTZYZ_TJLX,XLXSTZYZ_TYZZYZID,XLXSTZYZ_YZZZD,XLXSTZYZ_ABJCPJYYZZ,XLXSTZYZ_ZDWPIDLIST,XLXSTZYZ_MRTJFW,XLXSTZYZ_YZZBT,XLXSTZYZ_TJMDID,
|
||||
XLXSTZYZ_FGQCP,XLXSTZYZ_BJCLID");
|
||||
SQL.Add(" from XLXSTZYZ ");
|
||||
SQL.Add(" where 1=1 ");
|
||||
SQL.ClassId = "N_XLXSBJ.TZYZCache";
|
||||
SQL.SqlId = "FillData_1";
|
||||
DataSet ds = db.OpenDataSet(SQL);
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
dtXLXSTZYZ = ds.Tables[0];
|
||||
dvXLXSTZYZBy_YZID = new DataView(dtXLXSTZYZ, "", "XLXSTZYZ_YZID", DataViewRowState.CurrentRows);
|
||||
dvYZBy_MXBHAndTJYS = new DataView(dtXLXSTZYZ, "", "XLXSTZYZ_MXBH,XLXSTZYZ_TJYS", DataViewRowState.CurrentRows);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user