Пример #1
0
 public override void Initialize()
 {
     base.Initialize();
     this._ReceivedDate         = "";
     this._SendDate             = "";
     this._ActivityDescription  = "";
     this._ActivityOrderDesc    = "";
     this._ReminderDate         = "";
     this._PercentOfDevelop     = 0;
     this._CurrentWorker        = new Worker();
     this._PriorityType         = ActivityPriorityType.OutOfValue;
     this._PreviousActivity     = new Activity();
     this._PrevRejectedActivity = new Activity();
     this._CoWorkGroup          = new WorkGroup();
     this._ActionType           = ActivityActionType.OutOfValue;
     this._IsViewed             = SbnBoolean.OutOfValue;
     this._CoFolder             = new Folder();
     this._IsHidden             = SbnBoolean.OutOfValue;
     this._CoDocument           = new Document();
     this._ComplementInfo       = new ActivityComplementInfo();
     this._ArchiveStatus        = ActivityArchiveStatus.OutOfValue;
     this._CoDocumentType       = new DocumentType();
     this._CoTask          = new Task();
     this._HasReminderFlag = SbnBoolean.OutOfValue;
     this._Attachments     = new WMCAttachments();
     this._CoPlace         = new WFPlace();
     this._CoWC            = new WorkContext();
 }
Пример #2
0
        public override SbnObject Clone(string sNodeName)
        {
            WFPlace retObject = new WFPlace(this);

            retObject.XposInDiagram = this._XposInDiagram;
            retObject.YPosInDiagram = this._YPosInDiagram;
            if (!object.ReferenceEquals(this.CoWC, null))
            {
                retObject.CoWC = (WorkContext)this.CoWC.Clone(sNodeName);
            }
            if (!object.ReferenceEquals(this.CoWorkflow, null))
            {
                retObject.CoWorkflow = (Workflow)this.CoWorkflow.Clone(sNodeName);
            }
            retObject.PlaceType = this.PlaceType;
            if (!object.ReferenceEquals(this.CoRoleResources, null))
            {
                retObject.CoRoleResources = (WFRoles)this.CoRoleResources.Clone(sNodeName);
            }
            return(retObject);
        }