public bool Update(Mod_TB_OVERDUE_CONFIGURE mod) { #region //更新 StringBuilder strSql = new StringBuilder(); strSql.AppendFormat("UPDATE TB_OVERDUE_CONFIGURE SET "); strSql.AppendFormat("N_YJ_DAYS={0}", mod.N_YJ_DAYS); strSql.AppendFormat(" WHERE C_ID='{0}'", mod.C_ID); #endregion return(DbHelperOra.ExecuteSql(strSql.ToString()) > 0 ? true : false); }
protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "edit") { string id = e.CommandArgument.ToString(); HtmlInputText txtN_YJ_DAYS = (HtmlInputText)e.Item.FindControl("txtN_YJ_DAYS"); Mod_TB_OVERDUE_CONFIGURE mod = new Mod_TB_OVERDUE_CONFIGURE(); mod.C_ID = id; mod.N_YJ_DAYS = Convert.ToDecimal(txtN_YJ_DAYS.Value == "" ? "0" : txtN_YJ_DAYS.Value); if (tb_overdue_configure.Update(mod)) { WebMsg.MessageBox("保存成功"); GetList(); } } }
public bool Update(Mod_TB_OVERDUE_CONFIGURE mod) { return(dal.Update(mod)); }