Пример #1
0
    private void MyBind()
    {
        int       psize = 18, pcount = 0;
        DataTable dt = new DataTable();

        if (ZType.Equals("myimg"))
        {
            //---读取用户上传的资源
            myimg_div.Visible = true;
            res_div.Visible   = false;
            var    mu   = buser.GetLogin();
            string path = function.VToP("/UploadFiles/User/" + mu.UserName + mu.UserID);
            if (FileSystemObject.IsExist(path, FsoMethod.Folder))
            {
                dt = FileSystemObject.SearchImg(path);
            }
            Myimg_RPT.DataSource = PageCommon.GetPageDT(psize, CPage, dt, out pcount);
            Myimg_RPT.DataBind();
            ImgPage_Lit.Text = PageCommon.CreatePageHtml(pcount, CPage);
            emptyimg.Visible = dt.Rows.Count < 1;
        }
        else
        {
            dt             = resBll.Search("", "bk_h5", ZType, "", "", Style);
            RPT.DataSource = PageCommon.GetPageDT(psize, CPage, dt, out pcount);
            RPT.DataBind();
            Page_Lit.Text     = PageCommon.CreatePageHtml(pcount, CPage);
            empty_div.Visible = dt.Rows.Count < 1;
            //-------------------
            string[] styleArr = new string[0];
            switch (ZType)
            {
            case "shape":
                styleArr = ("全部," + resMod.ShapeStyle).Split(',');
                break;

            case "text":
                styleArr = ("全部," + resMod.TextStyle).Split(',');
                break;

            case "icon":
                styleArr = ("全部," + resMod.IconStyle).Split(',');
                break;
            }
            foreach (string name in styleArr)
            {
                string css = name.Equals(Style) ? "active" : "";
                style_ul.InnerHtml += "<li class=\"style_li " + css + "\" onclick=\"getto('" + HttpUtility.UrlEncode(name) + "');\">" + name + "</li>";
            }
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     B_ARoleAuth.CheckEx(ZLEnum.Auth.other, "PayManage");
     if (!IsPostBack)
     {
         MyBind();
         string returnUrl = "<a href='PaymentList.aspx'>充值信息管理</a>";
         if (ZType.Equals("pay"))
         {
             returnUrl = "<a href='../Shop/PayList.aspx'>支付明细</a>";
         }
         Call.SetBreadCrumb(Master, "<li><a href='" + customPath2 + "Config/SiteInfo.aspx'>系统设置</a></li><li>" + returnUrl + "</li><li class='active'>充值单详情</li>");
     }
 }
        private void MyBind()
        {
            M_Payment   payMod   = payBll.SelReturnModel(Mid);
            M_OrderList orderMod = orderBll.SelModelByOrderNo(payMod.PaymentNum);
            M_UserInfo  mu       = buser.GetSelect(orderMod.Userid);

            PayNo_L.Text     = payMod.PayNo;
            OrderNo_L.Text   = "<a href='../Shop/OrderListinfo.aspx?id=" + orderMod.id + "'>" + orderMod.OrderNo + "</href>";
            AddTime_L.Text   = orderMod.AddTime.ToString();
            MoneyPay_L.Text  = payMod.MoneyPay.ToString("f2");
            PayStatus_L.Text = OrderHelper.GetPayStatus(orderMod.Paymentstatus);
            CStatus_L.Text   = payMod.CStatus ? "<span style='color:green;'>已处理</span>" : "<span style='color:red;'>未处理</span>";
            Remark_L.Text    = payMod.Remark;
            if (payMod.Status == 3)//已支付
            {
                MoneyTrue_L.Text = payMod.MoneyTrue.ToString("f2");
                PayedTime_L.Text = payMod.SuccessTime.ToString();
                if (payMod.PayPlatID > 0)
                {
                    M_PayPlat platMod = platBll.SelReturnModel(payMod.PayPlatID);
                    PayPlat_L.Text = platMod.PayPlatName;
                }
            }
            else
            {
                ForceSucc_B.Visible = true;
            }
            UserName_L.Text = "<a href='javascript:;' onclick='showuser(" + mu.UserID + ");' title='查看用户'>" + mu.UserName + "</a>";
            //UserName_L.Text += "<span> (现有余额:<span style='color:red;'>" + mu.Purse.ToString("f2") + "</span>)</span>";
            if (ZType.Equals("pay"))
            {
                Return_L.Text = "<a href='../Shop/PayList.aspx' class='btn btn-primary'>返回列表</a>";
            }
            else
            {
                Return_L.Text = "<a href='PaymentList.aspx' class='btn btn-primary'>返回列表</a>";
            }
        }