/// <summary> /// 绑定数据 /// </summary> public void Bind() { if (KeyID != 0) { Hi.Model.BD_Rebate OrderModel = OrderBll.GetModel(KeyID); if (OrderModel != null) { this.lblOtype.InnerText = OrderModel.RebateType == 1 ? "整单返利" : "分摊返利"; this.lblReceiptNo.InnerText = OrderModel.ReceiptNo; this.lblRemark.InnerText = OrderModel.Remark; this.lblCreateDate.InnerText = OrderModel.UserdAmount.ToString("N"); this.lblAddType.InnerText = OrderModel.RebateState == 1 || OrderModel.EndDate < DateTime.Now ? "有效" : "失效"; this.lblTotalPrice.InnerText = OrderModel.RebateAmount.ToString("N"); this.lblPayedPrice.InnerText = OrderModel.EnableAmount.ToString("N"); this.lblArriveDate.InnerText = OrderModel.StartDate.ToString("yyyy-MM-dd") + "至" + OrderModel.EndDate.ToString("yyyy-MM-dd"); BindOrderDetail(OrderModel.DisID); } else { this.rpDtl.DataSource = ""; this.rpDtl.DataBind(); } } else { Response.Redirect("../NoOperable.aspx"); return; } }