| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using Newtonsoft.Json;
- using Prism.Mvvm;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using TeamAAS_VP.Enums;
- namespace TeamAAS_VP.Models.Product
- {
- [JsonObject(MemberSerialization.OptOut)]
- public class ProcedureOutput : BindableBase
- {
- public string Name { get; set; }
- public Type ValueType { get; set; }
- private bool _IsPointTran;
- public bool IsPointTran
- {
- get { return _IsPointTran; }
- set { SetProperty(ref _IsPointTran,value); }
- }
- [JsonIgnore]
- public bool IsAllowTran
- {
- get
- {
- if (ValueType== typeof(System.String) && (Name.Contains("Point") || Name.Contains("point")))
- {
- return true;
- }
- return false;
- }
- }
- public ProcedureOutput Copy()
- {
- return new ProcedureOutput()
- {
- Name=this.Name,
- ValueType=this.ValueType,
- IsPointTran=this.IsPointTran
- };
- }
- }
- }
|