Beispiel #1
0
 protected void EditBtn_Click(object sender, EventArgs e)
 {
     expMod.HisTime  = DateTime.Parse(HisTime.Text);
     expMod.Operator = badmin.GetAdminLogin().AdminId;
     expMod.score    = Convert.ToDouble(Score.Text);
     //修改日志
     if (expMod.score >= 0)
     {
         if (expMod.ScoreType == 2)
         {
             expMod.detail = "管理员添加问答积分:" + expMod.score;
         }
         else
         {
             expMod.detail = "管理员添加系统积分:" + expMod.score;
         }
     }
     else
     {
         if (expMod.ScoreType == 2)
         {
             expMod.detail = "管理员扣减问答积分:" + (Convert.ToInt32(-expMod.score));
         }
         else
         {
             expMod.detail = "管理员扣减系统积分:" + (Convert.ToInt32(-expMod.score));
         }
     }
     B_History.UpdateByID(expMod);
     Response.Redirect(Request.RawUrl);
 }
        protected void EditBtn_Click(object sender, EventArgs e)
        {
            M_UserExpHis expMod = hisBll.SelReturnModel((M_UserExpHis.SType)ExpType, EditID);

            expMod.Operator  = badmin.GetAdminLogin().AdminId;
            expMod.score     = Convert.ToDouble(Score.Text);
            expMod.detail    = Detail.Text;
            expMod.ExpHisID  = EditID;
            expMod.ScoreType = ExpType;
            expMod.UserID    = UserID;
            hisBll.UpdateByID(expMod);
            Response.Redirect("UserExp.aspx?UserID=" + UserID + "&type=" + ExpType);
        }