示例#1
0
        private void MyBind()
        {
            M_Shop_RegionPrice regionMod = regionBll.SelModelByGuid(Guid);

            if (regionMod == null)
            {
                function.WriteErrMsg("无匹配的区域价格");
            }
            //ja regionDT = JsonConvert.DeserializeObject<DataTable>(dt.Rows[0]["Info"].ToString());
            List <M_RegionPrice_Price> list  = JsonConvert.DeserializeObject <List <M_RegionPrice_Price> >(regionMod.Info);
            M_RegionPrice_Price        model = list.FirstOrDefault(p => p.region.Equals(Region));

            Region_L.Text        = model.region;
            PriceDT              = model.price;
            Group_RPT.DataSource = gpBll.Sel();
            Group_RPT.DataBind();
        }
 private void MyBind()
 {
     Group_RPT.DataSource = groupBll.Sel();
     Group_RPT.DataBind();
 }