Example #1
0
        protected OrdhdrStatus Fetch(string where, int batchsize, string fldList)
        {
            this.FetchWhere(where, batchsize, fldList);
            var          row          = this.dataSet.ttblordhdr_status.AsEnumerable().SingleOrDefault();
            OrdhdrStatus ordhdrStatus = null;

            if (row != null)
            {
                ordhdrStatus = this.BuildFromRow(row);
            }
            return(ordhdrStatus);
        }
Example #2
0
        public void Delete(OrdhdrStatus record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblordhdr_status.Newttblordhdr_statusRow();
                OrdhdrStatus.BuildMinimalRow(ref row, record);
                this.dataSet.ttblordhdr_status.Addttblordhdr_statusRow((pdsordhdr_statusDataSet.ttblordhdr_statusRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
Example #3
0
        public OrdhdrStatus Update(OrdhdrStatus record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row != null)
            {
                this.UpdateToRow(ref row, record);
                this.ExtraUpdateToRow(ref row, record);
                this.SaveChanges();
                return(this.dataSet.ttblordhdr_status.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblordhdr_status.Rows[0]) : null);
            }
            ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421);
            return(null);
        }
Example #4
0
 public void Delete(OrdhdrStatus record)
 {
     this.adapter.Delete(record);
 }
Example #5
0
 public OrdhdrStatus Update(OrdhdrStatus record)
 {
     return(this.adapter.Update(record));
 }
Example #6
0
 public OrdhdrStatus Insert(OrdhdrStatus record)
 {
     return(this.adapter.Insert(record));
 }
Example #7
0
 public void Delete(OrdhdrStatus record)
 {
     this.repository.Delete(record);
 }
Example #8
0
 public OrdhdrStatus Update(OrdhdrStatus record)
 {
     return(this.repository.Update(record));
 }
Example #9
0
 public OrdhdrStatus Insert(OrdhdrStatus record)
 {
     return(this.repository.Insert(record));
 }
Example #10
0
 public void UpdateToRow(ref DataRow row, OrdhdrStatus record)
 {
     OrdhdrStatus.UpdateRowFromOrdhdrStatus(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }