/// <summary> /// 根据 ParamCode 更新系统参数表记录 /// </summary> /// <returns>返回系统参数受影响的行数</returns> public virtual int Update(ParameterOR parameter) { return(db.ExecuteNoQuery("UPDATE T_BASE_PARAMETER SET PARAM_VALUE = @PARAM_VALUE WHERE PARAM_CODE = @PARAM_CODE", db.GetDataParameter("@PARAM_CODE", parameter.ParamCode), db.GetDataParameter("@PARAM_VALUE", parameter.ParamValue) )); }
private ParameterOR SetValue() { ParameterOR m_Base = new ParameterOR(); m_Base.ParamCode = Request.QueryString["id"]; m_Base.ParamValue = txtParamValue.Text; return(m_Base); }
protected void lbtSave_Click(object sender, EventArgs e) { ParameterOR sg = SetValue(); try { new ParameterDAL().Update(sg); base.Close("tr"); } catch (Exception ex) { base.Alert(ex.Message); } }