예제 #1
0
 public static void SetStartDate(this MapNode node, DateTime value)
 {
     MapTree.AttributeSpec aSpec = node.Tree.GetAttributeSpec(START_DATE_ATTRIBUTE);
     if (aSpec == null)
     {
         aSpec = new MapTree.AttributeSpec(node.Tree, START_DATE_ATTRIBUTE, false, MapTree.AttributeDataType.DateTime, MapTree.AttributeListOption.NoList, null, MapTree.AttributeType.System);
     }
     node.AddUpdateAttribute(new MapNode.Attribute(aSpec, DateHelper.ToString(value)));
 }
예제 #2
0
 public static void SetCompletionDate(MapNode node, DateTime value)
 {
     MapTree.AttributeSpec aspec = GetOrCreateAttributeSpec(node.Tree);
     node.AddUpdateAttribute(new MapNode.Attribute(aspec, DateHelper.ToString(value)));
 }
예제 #3
0
 public static void SetTaskStatus(MapNode node, TaskStatus value)
 {
     MapTree.AttributeSpec aspec = GetOrCreateAttributeSpec(node.Tree);
     node.AddUpdateAttribute(new MapNode.Attribute(aspec, value.ToString()));
 }