为COOKIE赋值,此三处赋值,以防在PageBase中取不到值,而用COOKIE重新为Session赋值
userInfo.Imprest = Imprest;
Request.Cookies["UserInfo"].Values.Remove("Imprest");
Request.Cookies["UserInfo"].Values.Add("CusImprest", CusImprest.ToString());
Response.AppendCookie(Request.Cookies["UserInfo"]);
(Session["UserInfo"] as UserInfo).CusImprest = CusImprest - PayMoney;