public void DelBOByID() { BOManager manager = new BOManager(); BOModel bo = new BOModel(); string BOID = Request["BOID"]; bo.Boid = BOID; int i = manager.Delete(bo); }
public string UpdatBOBYID() { BOManager manager = new BOManager(); BOModel model = new BOModel(); model.Boid = Request["BOID"];; model.Name = Request["BONAME"];; model.Botid = Request["BOTID"]; if (Request["ISUSE"] == "是") { model.Isuse = "1"; } else { model.Isuse = "0"; } string Result = "OK"; List <BOModel> BoList = manager.GetBoListByName(Request["BONAME"], Request["BOTID"]); if (BoList.Count() > 0)//对象名称已经存在! { Result = "NO"; } else { if (manager.Update(model) == 1) { Result = "OK"; } else { Result = "failse"; } } return(Result); }
public int Update(BOModel model) { return(PrivateObjectCreate <BOModel> .CreateIBO("BOBusiness").Update(model)); }