Пример #1
0
        public override string ToString()
        {
            var content = "Id=" + Id + Environment.NewLine +
                          "Activity Id=" + Activity.Id + Environment.NewLine +
                          "Activity Name=" + Activity.Name + Environment.NewLine +
                          "From Role Id=" + FromRole.Id + Environment.NewLine +
                          "From Role Name=" + FromRole.Name + Environment.NewLine +
                          "Max Query Duration Id=" + MaxQueryDuration.Id + Environment.NewLine +
                          "Max Query Duration Name=" + MaxQueryDuration.Name + Environment.NewLine +
                          "Scope Id=" + Scope.Id + Environment.NewLine +
                          "Scope Name=" + Scope.Name + Environment.NewLine +
                          "Max Query Rows=" + MaxQueryRows + Environment.NewLine +
                          "Created On=" + CreatedOn.ToString("yyyy/MM/dd H:mm:ss") + Environment.NewLine +
                          "Created By=" + CreatedBy.Id + Environment.NewLine +
                          "Created By Account=" + CreatedBy.Account + Environment.NewLine +
                          "Last Edit On=" + LastEditOn.ToString("yyyy/MM/dd H:mm:ss");

            return(content);
        }
Пример #2
0
        public override string ToString()
        {
            var content = "Id =" + Id + Environment.NewLine +
                          "Parent Id =" + ParentId + Environment.NewLine +
                          "Check Balance Required =" + CheckBalanceRequired + Environment.NewLine +
                          "To Role Id =" + ToRole.Id + Environment.NewLine +
                          "To Role Name =" + ToRole.Name + Environment.NewLine +
                          "Min Value=" + MinValue.ToString("N0") + Environment.NewLine +
                          "Max Value =" + MaxValue.ToString("N0") + Environment.NewLine +
                          "Tax Per =" + TaxPercent.ToString("N2") + Environment.NewLine +
                          "Bonus Per =" + BonusPercent.ToString("N2") + Environment.NewLine +
                          "Bonus Tax Per =" + BonusTaxPercent.ToString("N2") + Environment.NewLine +
                          "Fixed Factor =" + FixedFactor.ToString("N6") + Environment.NewLine +
                          "Created On=" + CreatedOn.ToString("yyyy/MM/dd H:mm:ss") + Environment.NewLine +
                          "Created By=" + CreatedBy.Id + Environment.NewLine +
                          "Created By Account=" + CreatedBy.Account + Environment.NewLine +
                          "Last Edit On=" + LastEditOn.ToString("yyyy/MM/dd H:mm:ss");

            return(content);
        }