public static void InitDB(Session _session)
 {
     using (UnitOfWork uOW = new UnitOfWork())
     {
         TableBase.TableBaseRowsBuilder(uOW);
         DimensionBase.TableBaseRowsBuilder(uOW);
         Country.BuildTableRows(uOW);
         Currency.BuildTableRows(uOW);
         Workflow.BuildTableRows(uOW);
         WorkflowStep.BuildTableRows(uOW);
         GLParms.BuildTableRows(uOW);
         SecurityAccessType.BuildTableRows(uOW);
     }
 }
Exemple #2
0
        public static void BuildTableRows(Session _uOW)
        {
            var GLP = _uOW.GetObjectByKey <GLParms>(-100);

            if (GLP == null)
            {
                GLP = new GLParms(_uOW)
                {
                    SingleLineKey = -100
                };
                GLP.Save();
                _uOW.CommitTransaction();
            }
        }
Exemple #3
0
        public virtual string GetDefaultDisplayNumber()
        {
            var sequ = GLParms.GLParameters(Session).TempAccountSequ;

            return(sequ.NextValue(CoreLib.FormRecord.EffectiveDate));
        }