/// <summary> /// Gets the data object /// </summary> /// <returns></returns> public PerformanceStandardRuleBO GetDataObject() { PerformanceStandardRuleBO bo = new PerformanceStandardRuleBO(); bo.Screen = new ScreenBO() { TOCID = Location }; bo.PerformanceStandardRule = new PerformanceStandardRuleDO() { OperatorComments = this.Comment, PerformanceStandardRuleID = this.PerformanceStandardRuleId, Section = this.Section, TOCID = Location, SubSection = Rule }; return bo; }
public PerformanceStandardCreateVM(PerformanceStandardRuleBO data, PerformanceStandardNewRuleBO RulePage, string Section) { _rulePage = RulePage; this.Section = Section; if (data != null) { this.Rule = data.PerformanceStandardRule.SubSection; this.Comment = data.PerformanceStandardRule.OperatorComments; this.Location = data.PerformanceStandardRule.TOCID; this.PerformanceStandardRuleId = data.PerformanceStandardRule.PerformanceStandardRuleID; } }