예제 #1
0
파일: Summary.cs 프로젝트: sanjaybxl/inform
 /// <summary>
 /// Bind this Summary to a Case.
 /// </summary>
 public void BindToCase(Case.Case targetCase)
 {
     // Bind to Case
     Case   = targetCase;
     CaseId = targetCase.Id;
     targetCase.BindSummary(this);
 }
예제 #2
0
파일: Summary.cs 프로젝트: sanjaybxl/inform
        protected Summary(Guid identityId, Guid agencyId, Guid id, ModuleType moduleType, string number, Case.Case parentCase)
            : base(identityId, agencyId, id, moduleType, DataEntryAggregateType.Summary)
        {
            if (string.IsNullOrWhiteSpace(number))
            {
                throw new Exception("A Summary cannot exist without a Number.");
            }

            Number = number;
            if (parentCase != null)
            {
                BindToCase(parentCase);
            }
        }