Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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();
                }
            }
        }
Esempio n. 3
0
 public bool Update(Mod_TB_OVERDUE_CONFIGURE mod)
 {
     return(dal.Update(mod));
 }