/// <summary> /// Update a ConveyanceMethod. /// </summary> public void Update(Model.ConveyanceMethod conveyanceMethod) { // // todo: add other logic here. // accessor.Update(conveyanceMethod); }
/// <summary> /// Insert a ConveyanceMethod. /// </summary> public void Insert(Model.ConveyanceMethod conveyanceMethod) { // // todo:add other logic here // accessor.Insert(conveyanceMethod); }
public bool ExistsExcept(Model.ConveyanceMethod e) { Hashtable paras = new Hashtable(); paras.Add("newId", e.Id); paras.Add("oldId", Get(e.ConveyanceMethodId) == null?null:Get(e.ConveyanceMethodId).Id); return(sqlmapper.QueryForObject <bool>("ConveyanceMethod.existsexcept", paras)); }
public bool IsExists(Model.ConveyanceMethod convery) { Hashtable ht = new Hashtable(); ht.Add("id", convery.ConveyanceMethodId); ht.Add("name", convery.ConveyanceMethodName); return(sqlmapper.QueryForObject <bool>("ConveyanceMethod.IsExistConveyanceMethod", ht)); }
protected override void grid_KeyDelete() { Model.ConveyanceMethod con = this.bindingSource1.Current as Model.ConveyanceMethod; if (con == null) { return; } this._detail.Remove(con); this.conveyanceManager.Delete(con.ConveyanceMethodId); }
protected override void Delete() { if ((bindingSource1.DataSource as IList <Model.ConveyanceMethod>).Count == 0) { return; } if (MessageBox.Show(Properties.Resources.ConfirmToDelete, this.Text, MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK) { return; } Model.ConveyanceMethod convert = this.bindingSource1.Current as Model.ConveyanceMethod; this.conveyanceManager.Delete(convert.ConveyanceMethodId); }
public void Update(Model.ConveyanceMethod e) { this.Update <Model.ConveyanceMethod>(e); }
public void Insert(Model.ConveyanceMethod e) { this.Insert <Model.ConveyanceMethod>(e); }
public bool ExistsExcept(Model.ConveyanceMethod e) { return(accessor.ExistsExcept(e)); }