コード例 #1
0
        public void DeleteDistribution(Distribution distribution)
        {
            distribution.Validate(true);

            if (BeforeDeleteDistribution != null)
                BeforeDeleteDistribution(distribution, EventArgs.Empty);

            FI.Common.DataAccess.IDistributionsDA dacObj=DataAccessFactory.Instance.GetDistributionsDA();
            dacObj.DeleteDistribution(distribution.ID);

            distribution=null;
        }
コード例 #2
0
        public Distribution GetDistribution(decimal ID , bool Fetch)
        {
            Distribution distribution=new Distribution(ID , this.Owner);
            if(Fetch)
                distribution.Fetch();

            return distribution;
        }