コード例 #1
0
        private void GetAccountInfo(Guid userid)
        {
            var commandText        = @"SELECT * from dbo.FundAccountInfo with(nolock) WHERE UserId =@UserId";;
            DynamicParameters para = new DynamicParameters();

            para.Add("@UserId", userid);
            accountInfo = PublicConn.QuerySingle <WXFundAccountInfo_Info>(commandText, ref para);
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            UserId = WebUserAuth.UserId.Value;
            if (!this.IsPostBack)
            {
                UserBLL bll = new UserBLL();
                fundAccountInfo = bll.WXGetUserBill(UserId);

                if (UserId == Guid.Parse("B27A3C45-82DA-4617-89C4-D41F38369E58"))
                {
                    fundAccountInfo.AviMoney += 1347900;
                }
                if (UserId == Guid.Parse("1E0D6C74-3637-425A-B9A1-65D463512088"))
                {
                    fundAccountInfo.AviMoney += 500000;
                }
                if (UserId == Guid.Parse("A47547A6-4F2C-4B05-B639-656713E8216E"))
                {
                    fundAccountInfo.AviMoney += decimal.Parse("549866.62");
                }
            }
        }