public NGFormDetail(NGFormDetail src) { if (src != null) { this.ApprovedQuantity = src.ApprovedQuantity; this.BrokenCode = src.BrokenCode; this.DealerComment = src.DealerComment; this.L1Comment = src.L1Comment; this.L2Comment = src.L2Comment; this.L3Comment = src.L3Comment; //this.NGFormDetailId = src.NGFormDetailId; //this.NGFormHeaderId = src.NGFormHeaderId; this.PartCode = src.PartCode; this.PartStatus = src.PartStatus; this.Passed = src.Passed; this.ProblemAgainQuantity = src.ProblemAgainQuantity; this.RequestQuantity = src.RequestQuantity; this.TransactionComment = src.TransactionComment; if ((src.NGFormHeader != null) && (src.NGFormHeader.ReceiveHeaderId != null)) this.VoucherNo = src.NGFormHeader.ReceiveHeader.IssueNumber; this.Broken = src.Broken; this.PartName = src.PartName; } }
private void detach_NGFormDetails(NGFormDetail entity) { this.SendPropertyChanging("NGFormDetails"); entity.NGFormHeader = null; }