StudentAttachmentList.cshtml 1.4 KB

123456789101112131415161718192021222324252627282930
  1. @model EMIS.ViewModel.DQPSystem.SOCDetailStudentKeyView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Common.JSON;
  4. @using Bowin.Web.Controls.Mvc;
  5. @{
  6. ViewBag.Title = "Edit";
  7. }
  8. @section scripts{
  9. <script type="text/javascript" src="~/Scripts/Business/DQPSystem/StudentAttachmentList.js"></script>
  10. }
  11. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  12. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  13. {
  14. <div class="p_title">
  15. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  16. </div>
  17. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@((ViewBag.IsStudentCanUpload.IsSuccess == false) ? new MvcHtmlString("") : Html.ContextMenuBar("Upload"))</div>
  18. </div>
  19. if (ViewBag.IsStudentCanUpload.IsSuccess == false)
  20. {
  21. <div class="p_title">
  22. <p style="color: red;">@ViewBag.IsStudentCanUpload.Message</p>
  23. </div>
  24. }
  25. <div class="search_list">
  26. @Html.Uploader(new uploaderOption { IsEnabled = ViewBag.IsStudentCanUpload.IsSuccess, Name = "SOCDetailAttachment", MainTableID = (Model.SOCDetailGroupID ?? Model.SOCDetailID), Title = "成果上传", UploadUrl = "~/SOCDetailScore/UploaderSave", MaxFileSize = 10 })
  27. </div>
  28. }
  29. </div>