Exemplo n.º 1
0
    private void GetHouseInfo()      //经过优化后的ajax
    {
        string HouseId = ReStr("HouseId");

        BLL.HouseBLL bll = new BLL.HouseBLL();
        DataSet      ds  = bll.GetHouseByHouseId(HouseId);

        ReDict.Add("HouseJson", JsonHelper.ToJson(ds));
        ReTrue();
    }
Exemplo n.º 2
0
    private void GetHouse()
    {
        string HouseId = ReStr("HouseId");

        BLL.HouseBLL bll          = new BLL.HouseBLL();
        DataSet      ds           = bll.GetHouseByHouseId(HouseId);
        DataTable    dt           = ds.Tables[0];
        string       HouseJson    = JsonHelper.ToJsonNo1(dt);
        DataTable    dtImg        = ds.Tables[1];
        string       ImgJsonArray = JsonHelper.ToJson(dtImg);

        ReDict.Add("HouseJson", HouseJson);
        ReDict.Add("ImgJsonArray", ImgJsonArray);
        ReTrue();
    }