Esempio n. 1
0
        public long NextDimKey()
        {
            long lenValue = 1000 * 1000 * 10;
            long sequVal  = SysSequence.NextVal(Session, DimensionSequence, 1);
            long newValue = (lenValue * TableId) + sequVal;

            return(newValue);
        }
Esempio n. 2
0
        public override void AfterConstruction()
        {
            this.fCreatedBy = SecurityUser.CurrentUser.UserId;
            this.fCreatedAt = DateTime.Now;

            this.fModifiedBy = SecurityUser.CurrentUser.UserId;
            this.fModifiedAt = DateTime.Now;
            OnChanged("CreatedBy");
            OnChanged("CreatedAt");
            OnChanged("ModifiedBy");
            OnChanged("ModifiedAt");

            this.LineId = SysSequence.NextVal(Session, MyEnums.SysSequence.LINE_ID_SEQU, (10 * 1000 * 1000));

            base.AfterConstruction();
        }
 public override void AfterConstruction()
 {
     CombinationId = SysSequence.NextVal(Session, MyEnums.SysSequence.COMB_ID_SEQU, (1000 * 1000));
     base.AfterConstruction();
 }