예제 #1
0
 protected override void Init()
 {
     if (MetadataObject.KPI != null)
     {
         this.KPI = KPI.CreateFromMetadata(this, MetadataObject.KPI);
     }
 }
예제 #2
0
파일: KPI.cs 프로젝트: yduit/TabularEditor
        public static KPI CreateNew()
        {
            var tomKpi = new TOM.KPI();
            var obj    = new KPI(tomKpi);

            obj.Init();
            return(obj);
        }
예제 #3
0
        public KPI AddKPI()
        {
            var kpi = new TOM.KPI()
            {
            };

            KPI = KPI.CreateFromMetadata(this, kpi);
            return(KPI);
        }
예제 #4
0
        public KPI AddKPI()
        {
            if (KPI == null)
            {
                KPI = KPI.CreateNew();
            }

            return(KPI);
        }
예제 #5
0
파일: KPI.cs 프로젝트: yduit/TabularEditor
        public static KPI CreateFromMetadata(Measure parent, TOM.KPI metadataObject)
        {
            var obj = new KPI(metadataObject);

            parent.MetadataObject.KPI = metadataObject;

            obj.Init();

            return(obj);
        }
예제 #6
0
 public KPI AddKPI()
 {
     Handler.BeginUpdate("Add KPI");
     if (KPI == null)
     {
         KPI = KPI.CreateNew();
     }
     Handler.EndUpdate();
     return(KPI);
 }
예제 #7
0
        protected override void Init()
        {
            if (MetadataObject.KPI != null)
            {
                this.KPI = KPI.CreateFromMetadata(this, MetadataObject.KPI);
            }

            if (!string.IsNullOrEmpty(ErrorMessage))
            {
                Table.AddError(this);
            }
        }
예제 #8
0
 internal KPIMeasure(KPI kpi, KPIMeasureType type)
 {
     Kpi  = kpi;
     Type = type;
 }
예제 #9
0
 internal override void RemoveReferences()
 {
     KPIBackup = KPI;
     base.RemoveReferences();
 }
예제 #10
0
        public KPI AddKPI()
        {
            KPI = KPI.CreateNew();

            return(KPI);
        }