public ActionResult RePushFail_WB() { object ro = null; //DataTable dt = GetAllFailWB(); DataTable dt = GetAllSLBHByProName("抵押注销"); foreach (DataRow row in dt.Rows) { string slbh = row["SLBH"].ToString(); try { WriteBackWfm wfm = WriteBackWfm.GetInstance(); Polling p = new Polling(); string area = ConfigurationManager.AppSettings["Area"].ToString(); var rt = p.PushASLBH(slbh, wfm, area); ro = new { PushRet = rt.IsSuccess, SLBH = slbh, Message = rt.Message }; } catch (Exception ex) { string str = ex.Message; continue; } } return(Json(ro)); }
public ActionResult RePush(string slbh) { try { WriteBackWfm wfm = WriteBackWfm.GetInstance(); Polling p = new Polling(); string area = ConfigurationManager.AppSettings["Area"].ToString(); var rt = p.PushASLBH(slbh, wfm, area); object ro = new { PushRet = rt.IsSuccess, SLBH = slbh, Message = rt.Message }; return(Json(ro)); } catch (Exception ex) { #if DEBUG throw new Exception(ex.Message); #else throw new Exception(ex.Message); #endif } }