public ActionResult GetHouseInfo(SealedQueryForm form, ISealedService sealedService)
 {
     try
     {
         DataTable data = sealedService.GetSealedInfoFromWS(form);
         string    ret  = JsonConvert.SerializeObject(data);
         return(Content(ret, "application/json"));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#2
0
        /// <summary>
        /// 从webservice中获取查封的信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetSealedInfoFromWS(SealedQueryForm form)
        {
            DataSet   ds = new DataSet();
            DataTable dt = new DataTable();

            dt.Columns.Add("HID");
            dt.Columns.Add("QLRXM");
            dt.Columns.Add("ZJHM");
            dt.Columns.Add("FWZL");
            DataRow row1 = dt.NewRow();

            row1["HID"]   = Guid.NewGuid();
            row1["QLRXM"] = "葛文超";
            row1["ZJHM"]  = "32068217457845214";
            row1["FWZL"]  = "睢宁";
            dt.Rows.Add(row1);
            ds.Tables.Add(dt);
            return(ds.Tables[0]);
        }