Exemple #1
0
 public void CopyFrom(ShiftAttrValues attributes)
 {
     foreach (ShiftAttrValue val in attributes.Children)
     {
         var attr = this.CreateNew();
         attr.ShiftFieldId = val.ShiftFieldId;
         attr.Value        = new XElement(val.Value);
     }
 }
Exemple #2
0
        public Shift(ShiftTransaction parent)
            : base(parent)
        {
            if (parent != null)
            {
                this.ShiftTransactionId = parent.Id.Value;
            }

            this.Attributes = new ShiftAttrValues(this);

            this.ShiftStatus = 40;
        }