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)); }
/// <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); }
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; } }
public Model.IncomingKind GetPrev(Model.IncomingKind e) { return(sqlmapper.QueryForObject <Model.IncomingKind>("IncomingKind.get_prev", e)); }
public Model.IncomingKind GetNext(Model.IncomingKind e) { return(sqlmapper.QueryForObject <Model.IncomingKind>("IncomingKind.get_next", e)); }
public bool HasRowsAfter(Model.IncomingKind e) { return(sqlmapper.QueryForObject <bool>("IncomingKind.has_rows_after", e)); }
public bool HasRowsBefore(Model.IncomingKind e) { return(sqlmapper.QueryForObject <bool>("IncomingKind.has_rows_before", e)); }
public void Update(Model.IncomingKind e) { this.Update <Model.IncomingKind>(e); }
public void Insert(Model.IncomingKind e) { this.Insert <Model.IncomingKind>(e); }
public void Delete(Model.IncomingKind incomingKind) { this.Delete(incomingKind.IncomingKindId); }
public Model.IncomingKind GetNext(Model.IncomingKind e) { return(accessor.GetNext(e)); }
public Model.IncomingKind GetPrev(Model.IncomingKind e) { return(accessor.GetPrev(e)); }
public bool HasRowsAfter(Model.IncomingKind e) { return(accessor.HasRowsAfter(e)); }
public bool HasRowsBefore(Model.IncomingKind e) { return(accessor.HasRowsBefore(e)); }
public bool ExistsExcept(Model.IncomingKind e) { return(accessor.ExistsExcept(e)); }