@model WsdInterfaceModels.WsdRequest

<style type="text/css">
</style>

<fieldset>
  <legend>要查询的数据</legend>
  @using(Ajax.BeginForm("GetData",new AjaxOptions {
    OnSuccess = "wsdSucc",OnBegin = "wsdBeg",
  })) {
    <label>第三方机构代码：@Html.EditorFor(m => m.CompanyCode) </label>
    <label>第三方机构名称：@Html.EditorFor(m => m.CompanyName)</label>
    <label>开始流水号：@Html.EditorFor(m => m.StartNo)</label>
    <br />
    <label>返回不加密数据：<input type="checkbox" name="noDes" checked="checked" /></label>
    <label>最大下载数量：@Html.EditorFor(m => m.MaxCount)</label>
    <label>地址：@Url.Action("GetData")</label>
    <input type="submit" value="查询" />
  }
</fieldset>
<pre id="wsdMsg"></pre>

<script type="text/javascript">
  $("#wsdMsg").hide();
  function wsdSucc(data) {
    if (!data.match("^\{(.+:.+,*){1,}\}$")) {
      $("#wsdMsg").show().text(data);
    } else {
      $("#wsdMsg").show().text(JSON.stringify(JSON.parse(data), null, 2));
    }
  }
  function wsdBeg() {
    $("#wsdMsg").text("");
  }
</script>