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)); }
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)); }
public bool UpdateByID(M_UserAPP model) { if (string.IsNullOrEmpty(model.SourcePlat)) { throw new Exception("未指定平台"); } return(DBCenter.UpdateByID(model, model.ID)); }
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)); }
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)); }
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)); }
/// <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); } }
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)); }
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)); }
public bool AddTips(M_GuestBook model) { if (model.GID < 1) { DBCenter.Insert(model); } else { DBCenter.UpdateByID(model, model.GID); } return(true); }
/// <summary> /// 根据ID更新 /// </summary> public bool UpdateByID(M_BossInfo model) { return(DBCenter.UpdateByID(model, model.nodeid)); }
public bool UpdateByID(M_MisAttendance model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool UpdateByID(M_CRMS_Client model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool UpdateByID(M_Plat_CompDoc model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool GetUpdate(M_UserBaseField model) { return(DBCenter.UpdateByID(model, model.FieldID));; }
public bool UpdateByID(M_Favorite model) { return(DBCenter.UpdateByID(model, model.FavoriteID)); }
public bool UpdateByID(M_CollectionInfo model) { return(DBCenter.UpdateByID(model, model.C_IID)); }
public bool UpdateByID(M_Pro_Flow model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool UpdateByID(M_Content_Video model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool UpdateByID(M_MisProLevel model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool UpdateByID(M_EDU_School model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool UpdateByID(M_MailInfo model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool UpdateByID(M_Shop_PrintMessage model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool UpdateByID(M_Order_Invoice model) { return(DBCenter.UpdateByID(model, model.ID)); }
public void UpdateByID(M_GuestBook model) { DBCenter.UpdateByID(model, model.GID); }
public bool UpdateByID(M_OA_DocView model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool UpdateByID(M_Message_SMS model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool UpdateByID(M_User_Bank model) { return(DBCenter.UpdateByID(model, model.ID)); }
public bool Update(M_Payment model) { Check(model); return(DBCenter.UpdateByID(model, model.PaymentID)); }
public bool GetUpdate(M_Sensitivity model) { return(DBCenter.UpdateByID(model, model.id)); }