AddComment.cshtml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. 
  2. @{
  3. ViewBag.Title = "AddComment";
  4. Layout = "~/Views/Shared/_MainLayoutPage.cshtml";
  5. }
  6. <script src="~/Content/Scripts/Common.js"></script>
  7. <div class="easyui-layout" data-options="fit:true">
  8. <table class="layui-table">
  9. <colgroup>
  10. <col width="80">
  11. <col>
  12. </colgroup>
  13. <tr>
  14. <td><label class="layui-form-label">评价内容</label></td>
  15. <td><input class="easyui-textbox" id="name" name="name" required="required" data-options="prompt:'评价内容',width:400,height:100"></td>
  16. </tr>
  17. </table>
  18. <div data-options="region:'south',border:false" style="height:50px;text-align:right; padding:5px">
  19. <button type="button" class="layui-btn layui-btn-normal" id="save">确定</button>
  20. <button type="button" class="layui-btn layui-btn-primary" id="cancel">取消</button>
  21. </div>
  22. <input type="hidden" id="ID" name="ID" value="" />
  23. </div>
  24. <script type="text/javascript">
  25. var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
  26. var ThisUrl = decodeURI(window.location.href);
  27. var id = PublicFun.getQueryValue(ThisUrl, "id");
  28. $(function () {
  29. $('#save').click(function () {
  30. var name = $("#name").val();
  31. var params = { 病历原型ID: id, 评论内容: name};
  32. if (params.名称 == "") {
  33. top.ZLPMS.Msg("名称不能为空");
  34. return
  35. }
  36. $.post("/MedicalRecordManager/AddProcessRecords", params, function (data) {
  37. if (data.code == 200) {
  38. top.ZLPMS.Msg(data.msg);
  39. ZLPMS.CloseTopWindow(true, index);
  40. }
  41. else {
  42. top.ZLPMS.Msg("添加失败,请联系管理员");
  43. }
  44. })
  45. });
  46. $('#cancel').click(function () {
  47. top.ZLPMS.CloseWindow(index);
  48. });
  49. })
  50. </script>