1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
-
- @{
- ViewBag.Title = "AddComment";
- Layout = "~/Views/Shared/_MainLayoutPage.cshtml";
- }
- <script src="~/Content/Scripts/Common.js"></script>
- <div class="easyui-layout" data-options="fit:true">
- <table class="layui-table">
- <colgroup>
- <col width="80">
- <col>
- </colgroup>
- <tr>
- <td><label class="layui-form-label">评价内容</label></td>
- <td><input class="easyui-textbox" id="name" name="name" required="required" data-options="prompt:'评价内容',width:400,height:100"></td>
- </tr>
- </table>
- <div data-options="region:'south',border:false" style="height:50px;text-align:right; padding:5px">
- <button type="button" class="layui-btn layui-btn-normal" id="save">确定</button>
- <button type="button" class="layui-btn layui-btn-primary" id="cancel">取消</button>
- </div>
- <input type="hidden" id="ID" name="ID" value="" />
- </div>
- <script type="text/javascript">
- var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
- var ThisUrl = decodeURI(window.location.href);
- var id = PublicFun.getQueryValue(ThisUrl, "id");
-
- $(function () {
-
- $('#save').click(function () {
-
- var name = $("#name").val();
- var params = { 病历原型ID: id, 评论内容: name};
- if (params.名称 == "") {
- top.ZLPMS.Msg("名称不能为空");
- return
- }
- $.post("/MedicalRecordManager/AddProcessRecords", params, function (data) {
- if (data.code == 200) {
- top.ZLPMS.Msg(data.msg);
- ZLPMS.CloseTopWindow(true, index);
- }
- else {
- top.ZLPMS.Msg("添加失败,请联系管理员");
- }
- })
- });
- $('#cancel').click(function () {
- top.ZLPMS.CloseWindow(index);
- });
- })
- </script>
|