コード例 #1
0
ファイル: HandleNumDetail.cs プロジェクト: AllanHao/WebSystem
        public virtual void Clone(HandleNumDetail cloneObj)
        {
            base.Clone(cloneObj);

            if(this.Contract != null){
            cloneObj.Contract = new IWEHAVE.ERP.CenterBE.Contract();
            cloneObj.Contract.ID = this.Contract.ID;
            }else{
            cloneObj.Contract = null;
            }

            if(this.Application != null){
            cloneObj.Application = new IWEHAVE.ERP.CenterBE.ApplicationEnum();
            cloneObj.Application.EnumValue = this.Application.EnumValue;
            cloneObj.Application.Code = this.Application.Code;
            cloneObj.Application.Name = this.Application.Name;
            }else{
            cloneObj.Application = null;
            }

            if(this.Visa != null){
            cloneObj.Visa = new IWEHAVE.ERP.CenterBE.VisaEnum();
            cloneObj.Visa.EnumValue = this.Visa.EnumValue;
            cloneObj.Visa.Code = this.Visa.Code;
            cloneObj.Visa.Name = this.Visa.Name;
            }else{
            cloneObj.Visa = null;
            }

            if(this.Author != null){
            cloneObj.Author = new IWEHAVE.ERP.CenterBE.Author();
            cloneObj.Author.ID = this.Author.ID;
            }else{
            cloneObj.Author = null;
            }

            if(this.FirstFour != null){
            cloneObj.FirstFour = new IWEHAVE.ERP.CenterBE.FirstFourEnum();
            cloneObj.FirstFour.EnumValue = this.FirstFour.EnumValue;
            cloneObj.FirstFour.Code = this.FirstFour.Code;
            cloneObj.FirstFour.Name = this.FirstFour.Name;
            }else{
            cloneObj.FirstFour = null;
            }

            if(this.Doctor != null){
            cloneObj.Doctor = new IWEHAVE.ERP.CenterBE.DoctorEnum();
            cloneObj.Doctor.EnumValue = this.Doctor.EnumValue;
            cloneObj.Doctor.Code = this.Doctor.Code;
            cloneObj.Doctor.Name = this.Doctor.Name;
            }else{
            cloneObj.Doctor = null;
            }

            if(this.Cooperation != null){
            cloneObj.Cooperation = new IWEHAVE.ERP.CenterBE.CooperationEnum();
            cloneObj.Cooperation.EnumValue = this.Cooperation.EnumValue;
            cloneObj.Cooperation.Code = this.Cooperation.Code;
            cloneObj.Cooperation.Name = this.Cooperation.Name;
            }else{
            cloneObj.Cooperation = null;
            }

            cloneObj.Note = this.Note;
        }
コード例 #2
0
ファイル: HandleNumDetail.cs プロジェクト: AllanHao/WebSystem
 private static HandleNumDetail Create(bool inList)
 {
     HandleNumDetail entity = new HandleNumDetail();
     entity.ID = NHExt.Runtime.Util.EntityGuidHelper.New();
     entity.EntityState = NHExt.Runtime.Enums.EntityState.Add;
     if(inList){
     if(Session.Current != null){
     Session.Current.InList(entity);
     }
     }
     return entity;
 }
コード例 #3
0
ファイル: HandleNumDetail.cs プロジェクト: AllanHao/WebSystem
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     HandleNumDetail cloneObj = new HandleNumDetail();
     this.Clone(cloneObj);
     return cloneObj;
 }