Example #1
0
 public SettingDataFormat()
 {
     InitializeComponent();
     _sdf = _sdfManager.GetFirst();
     if (_sdf == null)
     {
         _sdf = new Model.SetDataFormat();
         _sdf.SetDataFormatId = Guid.NewGuid().ToString();
     }
 }
        public void Insert(Model.SetDataFormat setDataFormat)
        {
            try
            {
                BL.V.BeginTransaction();

                this.Delete(setDataFormat.SetDataFormatId);

                setDataFormat.InsertTime = DateTime.Now;
                accessor.Insert(setDataFormat);

                BL.V.CommitTransaction();
            }
            catch
            {
                BL.V.RollbackTransaction();
                throw;
            }
        }
Example #3
0
 public Model.SetDataFormat GetPrev(Model.SetDataFormat e)
 {
     return(sqlmapper.QueryForObject <Model.SetDataFormat>("SetDataFormat.get_prev", e));
 }
Example #4
0
 public Model.SetDataFormat GetNext(Model.SetDataFormat e)
 {
     return(sqlmapper.QueryForObject <Model.SetDataFormat>("SetDataFormat.get_next", e));
 }
Example #5
0
 public bool HasRowsAfter(Model.SetDataFormat e)
 {
     return(sqlmapper.QueryForObject <bool>("SetDataFormat.has_rows_after", e));
 }
Example #6
0
 public bool HasRowsBefore(Model.SetDataFormat e)
 {
     return(sqlmapper.QueryForObject <bool>("SetDataFormat.has_rows_before", e));
 }
Example #7
0
 public void Update(Model.SetDataFormat e)
 {
     this.Update <Model.SetDataFormat>(e);
 }
Example #8
0
 public void Insert(Model.SetDataFormat e)
 {
     this.Insert <Model.SetDataFormat>(e);
 }
Example #9
0
 public Model.SetDataFormat GetNext(Model.SetDataFormat e)
 {
     return(accessor.GetNext(e));
 }
Example #10
0
 public Model.SetDataFormat GetPrev(Model.SetDataFormat e)
 {
     return(accessor.GetPrev(e));
 }
Example #11
0
 public bool HasRowsAfter(Model.SetDataFormat e)
 {
     return(accessor.HasRowsAfter(e));
 }
Example #12
0
 public bool HasRowsBefore(Model.SetDataFormat e)
 {
     return(accessor.HasRowsBefore(e));
 }
Example #13
0
 public void Update(Model.SetDataFormat setDataFormat)
 {
     accessor.Update(setDataFormat);
 }