예제 #1
0
        public bool GetUpdate(M_Exam_Sys_Questions model)
        {
            B_KeyWord keybll = new B_KeyWord();

            keybll.AddKeyWord(model.Tagkey, 2);
            return(DBCenter.UpdateByID(model, model.p_id));
        }
예제 #2
0
        public bool UpdateByID(M_Exam_Sys_Papers model)
        {
            B_KeyWord keybll = new B_KeyWord();

            keybll.AddKeyWord(model.TagKey, 3);
            return(DBCenter.UpdateByID(model, model.id));
        }
예제 #3
0
파일: B_UserAPP.cs 프로젝트: baixue001/IPS
 public bool UpdateByID(M_UserAPP model)
 {
     if (string.IsNullOrEmpty(model.SourcePlat))
     {
         throw new Exception("未指定平台");
     }
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #4
0
 public bool UpdateByID(M_SPage_Page model)
 {
     if (IsExist(model.PageName, model.ID))
     {
         model.PageName += "_" + function.GetRandomString(4, 2);
     }
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #5
0
 public bool UpdateByID(M_WX_ReplyMsg model)
 {
     if (model.IsDefault == 1)
     {
         DBCenter.UpdateSQL(TbName, "IsDefault=0", "Appid=" + model.AppId + " AND ID!=" + model.ID);
     }
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #6
0
파일: B_Node.cs 프로젝트: baixue001/IPS
 public bool UpdateByID(M_Node model)
 {
     if (model.NodeID < 1)
     {
         throw new Exception("更新节点失败,NodeID不能为空");
     }
     model.Depth = (GetDepth(model.ParentID) + 1);
     return(DBCenter.UpdateByID(model, model.NodeID));
 }
예제 #7
0
 /// <summary>
 /// 更新分级选项
 /// </summary>
 /// <param name="GradeOption">分级选项实例</param>
 /// <returns>成功状态</returns>
 public bool UpdateDic(M_Grade model)
 {
     if (model.GradeID > 0)
     {
         return(DBCenter.UpdateByID(model, model.GradeID));
     }
     else
     {
         return(DBCenter.Insert(model) > 0);
     }
 }
예제 #8
0
        public bool UpdateByID(M_Third_PlatInfo model)
        {
            //写入时更新缓存
            M_Third_PlatInfo cacheMod = list.FirstOrDefault(p => p != null && p.ID == model.ID);

            if (cacheMod != null)
            {
                list.Remove(cacheMod); list.Add(model);
            }
            return(DBCenter.UpdateByID(model, model.ID));
        }
예제 #9
0
        public bool UpdateByID(M_CRMS_Client model, DataTable table)
        {
            int ItemID = model.ItemID;

            if (table != null && table.Rows.Count > 0)
            {
                List <SqlParameter> splist = new List <SqlParameter>();
                splist.AddRange(BLLCommon.GetParameters(table));
                DBCenter.UpdateSQL(model.ModelTable, BLLCommon.GetFieldAndPara(table), "ID=" + ItemID, splist);
            }
            return(DBCenter.UpdateByID(model, model.ID));
        }
예제 #10
0
 public bool AddTips(M_GuestBook model)
 {
     if (model.GID < 1)
     {
         DBCenter.Insert(model);
     }
     else
     {
         DBCenter.UpdateByID(model, model.GID);
     }
     return(true);
 }
예제 #11
0
 /// <summary>
 /// 根据ID更新
 /// </summary>
 public bool UpdateByID(M_BossInfo model)
 {
     return(DBCenter.UpdateByID(model, model.nodeid));
 }
예제 #12
0
 public bool UpdateByID(M_MisAttendance model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #13
0
 public bool UpdateByID(M_CRMS_Client model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #14
0
 public bool UpdateByID(M_Plat_CompDoc model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #15
0
 public bool GetUpdate(M_UserBaseField model)
 {
     return(DBCenter.UpdateByID(model, model.FieldID));;
 }
예제 #16
0
파일: B_Favorite.cs 프로젝트: baixue001/IPS
 public bool UpdateByID(M_Favorite model)
 {
     return(DBCenter.UpdateByID(model, model.FavoriteID));
 }
예제 #17
0
 public bool UpdateByID(M_CollectionInfo model)
 {
     return(DBCenter.UpdateByID(model, model.C_IID));
 }
예제 #18
0
 public bool UpdateByID(M_Pro_Flow model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #19
0
 public bool UpdateByID(M_Content_Video model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #20
0
 public bool UpdateByID(M_MisProLevel model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #21
0
 public bool UpdateByID(M_EDU_School model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #22
0
파일: B_MailInfo.cs 프로젝트: baixue001/IPS
 public bool UpdateByID(M_MailInfo model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #23
0
 public bool UpdateByID(M_Shop_PrintMessage model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #24
0
 public bool UpdateByID(M_Order_Invoice model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #25
0
 public void UpdateByID(M_GuestBook model)
 {
     DBCenter.UpdateByID(model, model.GID);
 }
예제 #26
0
 public bool UpdateByID(M_OA_DocView model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #27
0
 public bool UpdateByID(M_Message_SMS model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #28
0
 public bool UpdateByID(M_User_Bank model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
예제 #29
0
 public bool Update(M_Payment model)
 {
     Check(model);
     return(DBCenter.UpdateByID(model, model.PaymentID));
 }
예제 #30
0
 public bool GetUpdate(M_Sensitivity model)
 {
     return(DBCenter.UpdateByID(model, model.id));
 }