コード例 #1
0
        protected void ApplyInsertChange(InsertChange change, Changeset changeset, Int32 changeId, Int32 changesetId, IDataManager manager)
        {
            var changeInfo = new TargetingTypeGroupBasketSecurityBaseValueChangeInfo
                             (
                changeId,
                changeset.TargetingTypeGroupId,
                changeset.BasketId,
                change.SecurityId,
                null,
                change.BaseValueAfter,
                changesetId,
                change.Comment
                             );

            manager.InsertTargetingTypeGroupBasketSecurityBaseValueChange(changeInfo);

            var info = new TargetingTypeGroupBasketSecurityBaseValueInfo(
                changeset.TargetingTypeGroupId,
                changeset.BasketId,
                change.SecurityId,
                change.BaseValueAfter,
                changeId
                );

            manager.InsertTargetingTypeGroupBasketSecurityBaseValue(info);
        }
コード例 #2
0
        protected void ApplyDeleteChange(DeleteChange change, Changeset changeset, Int32 changeId, Int32 changesetId, IDataManager manager)
        {
            var changeInfo = new TargetingTypeGroupBasketSecurityBaseValueChangeInfo
                             (
                changeId,
                changeset.TargetingTypeGroupId,
                changeset.BasketId,
                change.SecurityId,
                change.BaseValueBefore,
                null,
                changesetId,
                change.Comment
                             );

            manager.InsertTargetingTypeGroupBasketSecurityBaseValueChange(changeInfo);
            manager.DeleteTargetingTypeGroupBasketSecurityBaseValue(changeset.TargetingTypeGroupId, changeset.BasketId, change.SecurityId);
        }