public AppDO(AopApp a) : this() { if (a != null) { this.AopApplicationId = a.AopApplicationId; this.CreateUnitId = a.CreateUnitId; this.DocId = a.DocId; this.AopEmployerId = a.AopEmployerId; this.Email = a.Email; this.Version = a.Version; //I this.STAopApplicationTypeId = a.STAopApplicationTypeId; this.STObjectId = a.STObjectId; this.STSubject = a.STSubject; this.STCriteriaId = a.STCriteriaId; this.STValue = a.STValue; this.STRemark = a.STRemark; this.STIsMilitary = a.STIsMilitary; this.STNoteTypeId = a.STNoteTypeId; this.STDocId = a.STDocId; this.STChecklistId = a.STChecklistId; this.STChecklistStatusId = a.STChecklistStatusId; this.STNoteId = a.STNoteId; //II this.NDAopApplicationTypeId = a.NDAopApplicationTypeId; this.NDObjectId = a.NDObjectId; this.NDSubject = a.NDSubject; this.NDCriteriaId = a.NDCriteriaId; this.NDValue = a.NDValue; this.NDIsMilitary = a.NDIsMilitary; this.NDROPIdNum = a.NDROPIdNum; this.NDROPUnqNum = a.NDROPUnqNum; this.NDROPDate = a.NDROPDate; this.NDProcedureStatusId = a.NDProcedureStatusId; this.NDRefusalReason = a.NDRefusalReason; this.NDAppeal = a.NDAppeal; this.NDRemark = a.NDRemark; this.NDDocId = a.NDDocId; this.NDChecklistId = a.NDChecklistId; this.NDChecklistStatusId = a.NDChecklistStatusId; this.NDReportId = a.NDReportId; if (a.CreateUnit != null) { this.CreateUnitName = a.CreateUnit.Name; } if (a.AopEmployer != null) { this.AopEmployerName = string.Format("{0} {1} ({2})", a.AopEmployer.Name, a.AopEmployer.Uic, a.AopEmployer.LotNum); } } }
public AppListItemDO(AopApp a) : this() { if (a != null) { this.AopApplicationId = a.AopApplicationId; this.CreateUnitId = a.CreateUnitId; this.AopEmployerId = a.AopEmployerId; this.Email = a.Email; this.STDocId = a.STDocId; this.NDDocId = a.NDDocId; this.Version = a.Version; if (a.CreateUnit != null) { this.CreateUnitName = a.CreateUnit.Name; } if (a.AopEmployer != null) { this.AopEmployerName = string.Format("{0} ({1})", a.AopEmployer.Name, a.AopEmployer.LotNum); } } }