(#19)增加接口文档说明页面,添加处方信息请求参数说明

This commit is contained in:
falcon 2019-04-08 14:55:07 +08:00
parent edb8eaa72e
commit 0271c8a701
4 changed files with 152 additions and 1 deletions

View File

@ -203,6 +203,7 @@
<Compile Include="Controllers\HisInfoController.cs" /> <Compile Include="Controllers\HisInfoController.cs" />
<Compile Include="Controllers\HisUpdataController.cs" /> <Compile Include="Controllers\HisUpdataController.cs" />
<Compile Include="Controllers\HospitalInfoController.cs" /> <Compile Include="Controllers\HospitalInfoController.cs" />
<Compile Include="Controllers\InterFaceDocController.cs" />
<Compile Include="Controllers\WsdInterfaceController.cs" /> <Compile Include="Controllers\WsdInterfaceController.cs" />
<Compile Include="Dal\Configuration.cs" /> <Compile Include="Dal\Configuration.cs" />
<Compile Include="Dal\DbContextFactory.cs" /> <Compile Include="Dal\DbContextFactory.cs" />
@ -267,6 +268,7 @@
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" /> <Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
<Content Include="Scripts\modernizr-2.8.3.js" /> <Content Include="Scripts\modernizr-2.8.3.js" />
<Content Include="Views\HospitalInfo\Index.cshtml" /> <Content Include="Views\HospitalInfo\Index.cshtml" />
<Content Include="Views\InterFaceDoc\Index.cshtml" />
<None Include="Web.config" /> <None Include="Web.config" />
<None Include="Web.Debug.config"> <None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon> <DependentUpon>Web.config</DependentUpon>

View File

@ -0,0 +1,12 @@
using System.Web.Mvc;
namespace Cmdjy.Controllers
{
public class InterFaceDocController : Controller
{
public ActionResult Index()
{
return PartialView();
}
}
}

View File

@ -1,7 +1,8 @@
<h1>代煎药平台</h1> <h1>代煎药平台</h1>
<hr /> <hr />
<ol class="toolBar"> <ol class="toolBar">
<li>版本1.0</li> <li>版本2.0</li>
<li>@Ajax.ActionLink("接口说明","Index","InterFaceDoc",new AjaxOptions { UpdateTargetId = "main" })</li>
<li>@Ajax.ActionLink("厂商列表","Index","Company",new AjaxOptions { UpdateTargetId = "main" })</li> <li>@Ajax.ActionLink("厂商列表","Index","Company",new AjaxOptions { UpdateTargetId = "main" })</li>
<li>@Ajax.ActionLink("医疗机构处方列表","Index","HisInfo",new AjaxOptions { UpdateTargetId = "main" })</li> <li>@Ajax.ActionLink("医疗机构处方列表","Index","HisInfo",new AjaxOptions { UpdateTargetId = "main" })</li>
<li>@Ajax.ActionLink("医疗机构列表","Index","HospitalInfo",new AjaxOptions { UpdateTargetId = "main" })</li> <li>@Ajax.ActionLink("医疗机构列表","Index","HospitalInfo",new AjaxOptions { UpdateTargetId = "main" })</li>

View File

@ -0,0 +1,136 @@

<style type="text/css">
#ifd_l {
display: block;
width: 300px;
float: left;
border-right: 1px solid #000;
}
#ifd_l ul {
list-style: none;
padding: 5px;
}
#ifd_l ul li {
padding: 3px 0px;
}
#ifd_r {
float: left;
padding: 3px;
}
</style>
<script type="text/javascript">
$(function () {
$("#ifd_r div").hide();
});
$(function () {
$("#ifd_l input[type=button]").click(function () {
$("#ifd_r div").hide();
var sid = $(this).attr("viewId");
$("#ifd_r #" + sid).show();
});
});
</script>
<fieldset>
<legend>接口说明文档</legend>
<div id="ifd_l">
<ul>
<li>API列表</li>
<li><input type="button" viewId="cfxx" value="处方信息" /></li>
<li><input type="button" viewId="yyjglb" value="医院机构列表" /></li>
</ul>
</div>
<div id="ifd_r">
<div id="cfxx">
<table>
<caption>处方信息接口请求参数</caption>
<thead>
<tr>
<th>字段</th>
<th>可为空</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>CompanyCode</td>
<td>否</td>
<td>接口方代码。</td>
</tr>
<tr>
<td>CompanyName</td>
<td>是</td>
<td>接口方名称</td>
</tr>
<tr>
<td>StartNo</td>
<td>否</td>
<td>开始的编号</td>
</tr>
<tr>
<td>MaxCount</td>
<td>否</td>
<td>最大获取数量</td>
</tr>
<tr>
<td>StartDate</td>
<td>是</td>
<td>处方开始时间</td>
</tr>
</tbody>
</table>
<table>
<caption>处方信息响应参数</caption>
<thead>
<tr>
<th>字段</th>
<th>可为空</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3">暂缺</td>
</tr>
</tbody>
</table>
</div>
<div id="yyjglb">
<table>
<caption>医院机构列表请求参数</caption>
<thead>
<tr>
<th>字段</th>
<th>可为空</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3">无参数</td>
</tr>
</tbody>
</table>
<table>
<caption>处方信息响应参数</caption>
<thead>
<tr>
<th>字段</th>
<th>可为空</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3">暂缺</td>
</tr>
</tbody>
</table>
</div>
</div>
</fieldset>