Selaa lähdekoodia

学生报名增加签名

塔里木分支
北京泉江 10 kuukautta sitten
vanhempi
commit
b73e26aae3
3 muutettua tiedostoa jossa 8 lisäystä ja 2 poistoa
  1. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnrollOfficial/Form.cshtml
  2. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnrollOfficial/Form.js
  3. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuEnrollOfficialApi.cs

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnrollOfficial/Form.cshtml Näytä tiedosto

@@ -123,6 +123,10 @@
<div class="lr-form-item-title">附件上传</div>
<div id="Photo"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StuEnrollOfficial">
<div class="lr-form-item-title">签名</div>
<img id="SignImg" width="150" />
</div>
</div>

@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuEnrollOfficial/Form.js")

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnrollOfficial/Form.js Näytä tiedosto

@@ -46,11 +46,12 @@ var bootstrap = function ($, learun) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuEnrollOfficial/GetFormData?keyValue=' + keyValue, function (data) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id ).jfGridSet('refreshdata', data[id]);
$('#' + id).jfGridSet('refreshdata', data[id]);
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
$('#SignImg').attr("src", data[id].SignImg)
}
});
}


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuEnrollOfficialApi.cs Näytä tiedosto

@@ -29,8 +29,9 @@ namespace Learun.Application.WebApi.Modules
public Response SaveForm(dynamic _)
{
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>();
parameter.strEntity = parameter.strEntity.Replace("data:image/png;base64,", "");
StuEnrollOfficialEntity entity = parameter.strEntity.ToObject<StuEnrollOfficialEntity>();
entity.SignImg = "data:image/png;base64," + entity.SignImg;
stuEnrollOfficialIBLL.SaveEntity(parameter.keyValue, entity);
return Success("保存成功!");
}


Ladataan…
Peruuta
Tallenna