Beispiel #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));
        }
        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));
        }
Beispiel #3
0
 public bool UpdateByID(M_UserAPP model)
 {
     if (string.IsNullOrEmpty(model.SourcePlat))
     {
         throw new Exception("未指定平台");
     }
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #6
0
 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));
 }
Beispiel #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);
     }
 }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #10
0
 public bool AddTips(M_GuestBook model)
 {
     if (model.GID < 1)
     {
         DBCenter.Insert(model);
     }
     else
     {
         DBCenter.UpdateByID(model, model.GID);
     }
     return(true);
 }
Beispiel #11
0
 /// <summary>
 /// 根据ID更新
 /// </summary>
 public bool UpdateByID(M_BossInfo model)
 {
     return(DBCenter.UpdateByID(model, model.nodeid));
 }
Beispiel #12
0
 public bool UpdateByID(M_MisAttendance model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #13
0
 public bool UpdateByID(M_CRMS_Client model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #14
0
 public bool UpdateByID(M_Plat_CompDoc model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #15
0
 public bool GetUpdate(M_UserBaseField model)
 {
     return(DBCenter.UpdateByID(model, model.FieldID));;
 }
Beispiel #16
0
 public bool UpdateByID(M_Favorite model)
 {
     return(DBCenter.UpdateByID(model, model.FavoriteID));
 }
Beispiel #17
0
 public bool UpdateByID(M_CollectionInfo model)
 {
     return(DBCenter.UpdateByID(model, model.C_IID));
 }
Beispiel #18
0
 public bool UpdateByID(M_Pro_Flow model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #19
0
 public bool UpdateByID(M_Content_Video model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #20
0
 public bool UpdateByID(M_MisProLevel model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #21
0
 public bool UpdateByID(M_EDU_School model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #22
0
 public bool UpdateByID(M_MailInfo model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #23
0
 public bool UpdateByID(M_Shop_PrintMessage model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #24
0
 public bool UpdateByID(M_Order_Invoice model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #25
0
 public void UpdateByID(M_GuestBook model)
 {
     DBCenter.UpdateByID(model, model.GID);
 }
Beispiel #26
0
 public bool UpdateByID(M_OA_DocView model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #27
0
 public bool UpdateByID(M_Message_SMS model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #28
0
 public bool UpdateByID(M_User_Bank model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Beispiel #29
0
 public bool Update(M_Payment model)
 {
     Check(model);
     return(DBCenter.UpdateByID(model, model.PaymentID));
 }
Beispiel #30
0
 public bool GetUpdate(M_Sensitivity model)
 {
     return(DBCenter.UpdateByID(model, model.id));
 }