コード例 #1
0
ファイル: WFRole.cs プロジェクト: code-mtnit/WPFSM
        public override SbnObject Clone(string sNodeName)
        {
            WFRole retObject = new WFRole(this);

            retObject.Title = this._Title;
            if (!object.ReferenceEquals(this.Restrictions, null))
            {
                retObject.Restrictions = (WFRoleRestrictions)this.Restrictions.Clone(sNodeName);
            }
            if (!object.ReferenceEquals(this.Accessrights, null))
            {
                retObject.Accessrights = (WFRoleAccessrights)this.Accessrights.Clone(sNodeName);
            }
            if (!object.ReferenceEquals(this.CoWorkflow, null))
            {
                retObject.CoWorkflow = (Workflow)this.CoWorkflow.Clone(sNodeName);
            }
            if (!object.ReferenceEquals(this.CoWorkers, null))
            {
                retObject.CoWorkers = (Workers)this.CoWorkers.Clone(sNodeName);
            }
            if (!object.ReferenceEquals(this.CoPlaces, null))
            {
                retObject.CoPlaces = (WFPlaces)this.CoPlaces.Clone(sNodeName);
            }
            return(retObject);
        }
コード例 #2
0
 public override void Initialize()
 {
     base.Initialize();
     this._CoRole        = new WFRole();
     this._CoAccessright = new Accessright();
     this._CoWC          = new WorkContext();
     this._CoUI          = new UserInterface();
     this._CoFolder      = new Folder();
 }
コード例 #3
0
 public override void Initialize()
 {
     base.Initialize();
     this._AssignedValue  = "";
     this._PrintAcc       = SbnBoolean.OutOfValue;
     this._ViewAcc        = SbnBoolean.OutOfValue;
     this._RemoveAcc      = SbnBoolean.OutOfValue;
     this._UpdateAcc      = SbnBoolean.OutOfValue;
     this._RegisterAcc    = SbnBoolean.OutOfValue;
     this._CoDocumentType = new DocumentType();
     this._CoRole         = new WFRole();
     this._CoProperty     = new DocumentProperty();
 }