public IntegrationDocRelationDO(DocRelation d, GvaCaseType caseType) { this.DocId = d.DocId; if (d.Doc != null) { this.DocRegUri = d.Doc.RegUri; this.DocDocTypeName = d.Doc.DocType != null ? d.Doc.DocType.Name : string.Empty; } this.CaseTypeId = caseType.GvaCaseTypeId; this.Set = caseType.LotSet.Alias; }
public DocRelationDO(DocRelation d) : this() { if (d != null) { this.DocRelationId = d.DocRelationId; this.DocId = d.DocId; this.ParentDocId = d.ParentDocId; this.RootDocId = d.RootDocId; this.Version = d.Version; if (d.Doc != null) { this.DocRegUri = d.Doc.RegUri; this.DocSubject = d.Doc.DocSubject; this.DocRegDate = d.Doc.RegDate; this.DocDocDirectionName = d.Doc.DocDirection != null ? d.Doc.DocDirection.Name : string.Empty; this.DocStatusId = d.Doc.DocStatusId; this.DocVersion = d.Doc.Version; this.DocReceiptOrder = d.Doc.ReceiptOrder; this.DocDocTypeName = d.Doc.DocType != null ? d.Doc.DocType.Name : string.Empty; this.DocDocTypeId = d.Doc.DocType != null ? d.Doc.DocType.DocTypeId : (int?)null; this.DocDocStatusAlias = d.Doc.DocStatus != null ? d.Doc.DocStatus.Alias : string.Empty; this.DocDocStatusName = d.Doc.DocStatus != null ? d.Doc.GetDocStatusName() : string.Empty; this.DocDocCasePartTypeId = d.Doc.DocCasePartTypeId; this.DocDocCasePartTypeName = d.Doc.DocCasePartType != null ? d.Doc.DocCasePartType.Name : string.Empty; this.DocDocCasePartTypeAlias = d.Doc.DocCasePartType != null ? d.Doc.DocCasePartType.Alias : string.Empty; this.DocEntryTypeAlias = d.Doc.DocEntryType != null ? d.Doc.DocEntryType.Alias : string.Empty; if (d.Doc.DocUnits != null) { foreach (var du in d.Doc.DocUnits) { switch (du.DocUnitRole.Alias) { case "InCharge": this.DocUnitsInCharge.Add(new NomDo(du)); break; }; } } } } }
public ApplicationDocRelationDO(DocRelation d) : this() { if (d != null) { this.DocRelationId = d.DocRelationId; this.DocId = d.DocId; this.ParentDocId = d.ParentDocId; this.RootDocId = d.RootDocId; this.Version = d.Version; if (d.Doc != null) { this.DocRegUri = d.Doc.RegUri; this.DocSubject = d.Doc.DocSubject; this.DocDocDirectionName = d.Doc.DocDirection != null ? d.Doc.DocDirection.Name : string.Empty; this.DocDocTypeName = d.Doc.DocType != null ? d.Doc.DocType.Name : string.Empty; this.DocDocStatusName = d.Doc.DocStatus != null ? d.Doc.GetDocStatusName() : string.Empty; this.DocDocStatusAlias = d.Doc.DocStatus.Alias; this.DocVersion = d.Doc.Version; } } }
private DocRelation CreateReceiptDocRelation(Doc initialDoc, Doc receiptDoc, Doc rootDoc) { DocRelation docRelation = new DocRelation(); docRelation.DocId = receiptDoc.DocId; docRelation.ParentDocId = initialDoc.DocId; docRelation.RootDocId = rootDoc != null ? rootDoc.DocId : initialDoc.DocId; return docRelation; }
public CommonDefinitions() { HttpCodes = new DocHttpCode[] { }; Relations = new DocRelation[] { }; EmbeddedResources = new DocEmbeddedResource[] { }; }