예제 #1
0
 public void Add(LevelExpandEnum levelExpand, LevelExpandDataTable dataSet)
 {
     if (!this.DataSetHashTable.Contains(levelExpand))
     {
         this.DataSetHashTable.Add(levelExpand, dataSet);
     }
 }
예제 #2
0
 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());
       
 }
예제 #3
0
        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);
        }
예제 #4
0
 public LevelExpandDataTable this[LevelExpandEnum levelExpand]
 {
     get
     {
         if (!this.DataSetHashTable.Contains(levelExpand))
         {
             return(null);
         }
         return(this.DataSetHashTable[levelExpand] as LevelExpandDataTable);
     }
 }
예제 #5
0
 public LevelExpandDataTable this[LevelExpandEnum levelExpand]
 {
     get
     {
         if (!this.dataSetObjects.Contains(levelExpand))
         {
             this.Create(levelExpand);
         }
         return(this.dataSetObjects[levelExpand]);
     }
 }
예제 #6
0
        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);
        }
예제 #7
0
 public bool Contains(LevelExpandEnum levelExpand)
 {
     return(DataSetHashTable.ContainsKey(levelExpand));
 }
예제 #8
0
 public LevelExpandItem(LevelExpandEnum expandType)
 {
     this._expandType = expandType;
 }
예제 #9
0
 public string ExpandCaption(LevelExpandEnum type)
 {
     return(_levelexpandsrv.GetLevelItemCaption(type));
 }