Ejemplo n.º 1
0
 /// <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)
                              ));
 }
Ejemplo n.º 2
0
        private ParameterOR SetValue()
        {
            ParameterOR m_Base = new ParameterOR();

            m_Base.ParamCode  = Request.QueryString["id"];
            m_Base.ParamValue = txtParamValue.Text;
            return(m_Base);
        }
Ejemplo n.º 3
0
        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);
            }
        }