示例#1
0
        public bool ExistsExcept(Model.IncomingKind e)
        {
            Hashtable paras = new Hashtable();

            paras.Add("newId", e.Id);
            paras.Add("oldId", Get(e.IncomingKindId) == null?null:Get(e.IncomingKindId).Id);
            return(sqlmapper.QueryForObject <bool>("IncomingKind.existsexcept", paras));
        }
示例#2
0
 /// <summary>
 /// Insert a IncomingKind.
 /// </summary>
 public void Insert(Model.IncomingKind incomingKind)
 {
     //
     // todo:add other logic here
     //
     //if (this.Exists(incomingKind.Id))
     //{
     //    throw new Helper.InvalidValueException(Model.IncomingKind.PROPERTY_ID);
     //}
     incomingKind.InsertTime = DateTime.Now;
     incomingKind.UpdateTime = DateTime.Now;
     accessor.Insert(incomingKind);
 }
示例#3
0
        private void gridView1_CellValueChanging(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e)
        {
            Model.IncomingKind incomingKind = this.gridView1.GetRow(e.RowHandle) as Model.IncomingKind;
            if (e.Value == null)
            {
                return;
            }
            switch (e.Column.Name)
            {
            case "gridColumnId":
                incomingKind.Id = e.Value.ToString();
                break;

            case "gridColumnName":
                incomingKind.IncomingKindName = e.Value.ToString();
                break;

            case "gridColumnDesc":
                incomingKind.IncomingKindDescription = e.Value.ToString();
                break;
            }
        }
示例#4
0
 public Model.IncomingKind GetPrev(Model.IncomingKind e)
 {
     return(sqlmapper.QueryForObject <Model.IncomingKind>("IncomingKind.get_prev", e));
 }
示例#5
0
 public Model.IncomingKind GetNext(Model.IncomingKind e)
 {
     return(sqlmapper.QueryForObject <Model.IncomingKind>("IncomingKind.get_next", e));
 }
示例#6
0
 public bool HasRowsAfter(Model.IncomingKind e)
 {
     return(sqlmapper.QueryForObject <bool>("IncomingKind.has_rows_after", e));
 }
示例#7
0
 public bool HasRowsBefore(Model.IncomingKind e)
 {
     return(sqlmapper.QueryForObject <bool>("IncomingKind.has_rows_before", e));
 }
示例#8
0
 public void Update(Model.IncomingKind e)
 {
     this.Update <Model.IncomingKind>(e);
 }
示例#9
0
 public void Insert(Model.IncomingKind e)
 {
     this.Insert <Model.IncomingKind>(e);
 }
示例#10
0
 public void Delete(Model.IncomingKind incomingKind)
 {
     this.Delete(incomingKind.IncomingKindId);
 }
示例#11
0
 public Model.IncomingKind GetNext(Model.IncomingKind e)
 {
     return(accessor.GetNext(e));
 }
示例#12
0
 public Model.IncomingKind GetPrev(Model.IncomingKind e)
 {
     return(accessor.GetPrev(e));
 }
示例#13
0
 public bool HasRowsAfter(Model.IncomingKind e)
 {
     return(accessor.HasRowsAfter(e));
 }
示例#14
0
 public bool HasRowsBefore(Model.IncomingKind e)
 {
     return(accessor.HasRowsBefore(e));
 }
示例#15
0
 public bool ExistsExcept(Model.IncomingKind e)
 {
     return(accessor.ExistsExcept(e));
 }