示例#1
0
        public void DelBOByID()
        {
            BOManager manager = new BOManager();
            BOModel   bo      = new BOModel();
            string    BOID    = Request["BOID"];

            bo.Boid = BOID;
            int i = manager.Delete(bo);
        }
示例#2
0
        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);
        }
示例#3
0
 public int Update(BOModel model)
 {
     return(PrivateObjectCreate <BOModel> .CreateIBO("BOBusiness").Update(model));
 }