//TODO: Refactor and remove
 public virtual void SaveRatingTableModel(LookupTableModel model)
 {
     throw new NotImplementedException();
 }
Example #2
0
        public LookupTableModel ToLookupTableModel(LookupTable table)
        {
            var model = new LookupTableModel
            {
                Id = table.Id,
                ChangeId = table.Id,
                Name = table.Name,
                Description = table.Name,
                IsoName = table.Name,
                Active = table.Properties.Active == "1"
            };

            model.Properties.EffectiveDate = Convert.ToDateTime(table.Properties.EffectiveDate);
            model.Properties.Schema = Convert.ToString(table.Properties.Schema);
            model.Properties.TableType = Convert.ToString(table.Properties.TableType);
            model.Properties.Context = Convert.ToString(table.Properties.Context);

            return model;
        }
 public void SaveRatingTableModel(LookupTableModel model)
 {
 }
Example #4
0
        public LookupTableModel ToLookupTableModel(DataRow row)
        {
            //TODO: validate values prior to assignment
            var model = new LookupTableModel
            {
                Id = row["TableId"].ToString(),
                ChangeId = row["ChangeId"].ToString(),
                Name = row["TableName"].ToString(),
                Description = row["TableName"].ToString(),
                IsoName = row["TableName"].ToString(),
                Active = Convert.ToBoolean(row["Active"])
            };

            model.Properties.EffectiveDate = Convert.ToDateTime(row["EffectiveDate"]);
            model.Properties.Schema = row["Schema"].ToString();
            model.Properties.TableType = row["TableType"].ToString();

            return model;
        }