예제 #1
0
        public void UpdateDetail(Project.ProjectDetail detail)
        {
            var change = Project.CombineWith(GetChange(), detail);

            if (change.ValidationResults.IsValid)
            {
                Apply(change);
                Raise(ProjectDetailUpdatedEvent.For(change));
            }

            ValidationResults = change.ValidationResults;
        }
예제 #2
0
        static public string Create_OtherDetailsXML(Project.ProjectDetail ProjectDetails)
        {
            string result = "<OtherDetails>";

            result += "<PO>" + ProjectDetails.POName + "</PO>";
            result += "<Auditor>" + ProjectDetails.Auditor + "</Auditor>";
            result += "<EPC>" + ProjectDetails.EPCName + "</EPC>";
            result += "<DivTaxe>" + ProjectDetails.DivPaidBeforeTaxes.ToString() + "</DivTaxe>";
            result += "<PortionCashCMC>" + ProjectDetails.PortionCash4CMC.ToString() + "</PortionCashCMC>";
            result += "<AuditorFee>" + ProjectDetails.AuditorFee.ToString() + "</AuditorFee>";
            result += "<EquityCap>" + ProjectDetails.EquityCap.ToString() + "</EquityCap>";
            result += "<EquityPortion>" + ProjectDetails.EquityPortion.ToString() + "</EquityPortion>";
            result += "</OtherDetails>";

            return(result);
        }