public void Add(LevelExpandEnum levelExpand, LevelExpandDataTable dataSet) { if (!this.DataSetHashTable.Contains(levelExpand)) { this.DataSetHashTable.Add(levelExpand, dataSet); } }
protected LevelExpandItem(SerializationInfo info, StreamingContext context) { this._depth = (int)info.GetValue("Depth", this._depth.GetType()); this._expandType = (LevelExpandEnum)info.GetValue("ExpandType", Type.GetType("System.Int32")); this._columnName = (string)info.GetValue("ColumnName", this._columnName.GetType()); }
private void Create(LevelExpandEnum levelExpand) { string strSQL = string.Empty; DataSet ds = null; if (levelExpand == LevelExpandEnum.AreaClass) { strSQL = "Select cDCCode as cCode, cDCName as 地区 from DistrictClass"; } else if (levelExpand == LevelExpandEnum.CustClass) { strSQL = "select cCCCode as cCode , cCCName as 客户分类 from CustomerClass"; } else if (levelExpand == LevelExpandEnum.DepLevel) { strSQL = "Select cDepCode as cCode, cDepName as cname from Department"; } else if (levelExpand == LevelExpandEnum.DispLevel) { strSQL = "Select cRdCode as cCode,cRdName as cname from Rd_Style"; } else if (levelExpand == LevelExpandEnum.GoodClass) { strSQL = "Select cInvCCode as cCode,cInvCname as cname from inventoryClass"; } else if (levelExpand == LevelExpandEnum.GradeLevel) { strSQL = "Select cCode as cCode, cCode_name as cname from Code"; } else if (levelExpand == LevelExpandEnum.PosLevel) { strSQL = "Select cPosCode as cCode, cPosName as cname from Position"; } else if (levelExpand == LevelExpandEnum.ProvClass) { strSQL = "Select cVCCode as cCode, cVCName as cname from vendorClass"; } else if (levelExpand == LevelExpandEnum.SettleLevel) { strSQL = "Select cSSCode as cCode, cSSName as cname from SettleStyle"; } else if (levelExpand == LevelExpandEnum.fa_SourceClass)//资金构成分类 { strSQL = "select sCCode as cCode,sCName as cname from fa_SourceClass"; } else { _expandProgram = new ExpandProgram(U8LoginInfor); strSQL = _expandProgram.RetriveDifinitionSQL(Convert.ToInt32(levelExpand)); } ds = SqlHelper.ExecuteDataSet(this.U8LoginInfor.UfDataCnnString, strSQL); LevelExpandDataTable leds = new LevelExpandDataTable(ds.Tables[0]); dataSetObjects.Add(levelExpand, leds); }
public LevelExpandDataTable this[LevelExpandEnum levelExpand] { get { if (!this.DataSetHashTable.Contains(levelExpand)) { return(null); } return(this.DataSetHashTable[levelExpand] as LevelExpandDataTable); } }
public LevelExpandDataTable this[LevelExpandEnum levelExpand] { get { if (!this.dataSetObjects.Contains(levelExpand)) { this.Create(levelExpand); } return(this.dataSetObjects[levelExpand]); } }
public string GetLevelItemCaption(LevelExpandEnum levelExpandType) { // string localeId = this.U8LoginInfor.LocaleID; string caption = string.Empty; if (levelExpandType == LevelExpandEnum.AreaClass) { caption = "U8.SO.ReportServer.clssetdataprovider.00086"; } else if (levelExpandType == LevelExpandEnum.CustClass) { caption = "U8.GL.ZWSQL.CODEACC.00766"; } else if (levelExpandType == LevelExpandEnum.DepLevel) { caption = "U8.BPM.DSS.U8GDP.SaleOrderLabDept001"; } else if (levelExpandType == LevelExpandEnum.DispLevel) { caption = "U8.CW.GL.ZZTool.frmPzYr.MenuPop.menuSFLB.Caption"; } else if (levelExpandType == LevelExpandEnum.GoodClass) { caption = "U8.AA.ARCHIVE.FIELD.cinvcls"; } else if (levelExpandType == LevelExpandEnum.GradeLevel) { caption = "U8.AA.ARCHIVE.code"; } else if (levelExpandType == LevelExpandEnum.PosLevel) { caption = "U8.AA.ARCHIVE.FIELD.ref_cposcode"; } else if (levelExpandType == LevelExpandEnum.ProvClass) { caption = "U8.AA.ARCHIVE.FIELD.cvencls"; } else if (levelExpandType == LevelExpandEnum.SettleLevel) { caption = "U8.AA.EAI.XML.Operation.Dir.0014"; } else if (levelExpandType == LevelExpandEnum.fa_SourceClass)//资金构成分类 { caption = "U8.UAP.Services.ReportExhibition.ReportExpandWindow.资金构成分类"; } else { _expandProgram = new ExpandProgram(u8LoginInfor); caption = _expandProgram.RetriveItemCaption(Convert.ToInt32(levelExpandType)); } return(caption); }
public bool Contains(LevelExpandEnum levelExpand) { return(DataSetHashTable.ContainsKey(levelExpand)); }
public LevelExpandItem(LevelExpandEnum expandType) { this._expandType = expandType; }
public string ExpandCaption(LevelExpandEnum type) { return(_levelexpandsrv.GetLevelItemCaption(type)); }