/// <summary> /// 从房产的webservice中获取数据到临时表中去 /// </summary> /// <returns>批次号</returns> public string GetDataFromFCWebservice(IDictionary <string, string> dicParam) { try { DataExchange dataExchange = new DataExchange(); return(dataExchange.DataExtort(dicParam)); } catch (Exception ex) { throw new Exception(ex.Message); } }
private void button1_Click(object sender, EventArgs e) { IDictionary <string, string> ps = new Dictionary <string, string>(); ps.Add("ExecuteCode", "0000"); //ps.Add("HTBH", "2016020630037"); //ps.Add("HTBH", "201601180002"); //ps.Add("XMMC", "汇合"); ps.Add("ZID", "5890166B-022A-42A8-AB90-709EE13FA8B7"); //ps.Add("JZWMC", "4"); #if DEBUG Geo.Plug.DataExchange.XZFCPlug.IDataExchange dataExchange = new DataExchange(); #else Geo.Plug.DataExchange.IDataExchange dataExchange = new DataExchange(); #endif dataExchange.DataExtort(ps); }
public ActionResult DataExchange(string Params) { try { Dictionary <string, string> dicParams = this.GetDataExchangeParams(Params); IDataExchange dataExchange = new DataExchange(); string message = dataExchange.DataExtort(dicParams); //return this.Content(message); return(Json(new BDCFilterResult { IsSuccess = true, Message = message })); } catch (Exception ex) { //return this.Content(ex.Message); return(Json(new BDCFilterResult { IsSuccess = false, Message = ex.Message })); } }