From c218f7fadbef75a948e94ac3fd3635a31294cbdd Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 07 六月 2021 17:34:49 +0800
Subject: [PATCH] 提交
---
zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml | 45 +++++++++++++++++++++++++++++----------------
zhengcaioa/zhengcaioa/Controllers/Expert/ExpertsApplyController.cs | 12 ++++++------
2 files changed, 35 insertions(+), 22 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Controllers/Expert/ExpertsApplyController.cs b/zhengcaioa/zhengcaioa/Controllers/Expert/ExpertsApplyController.cs
index dc5b793..2473722 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Expert/ExpertsApplyController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/Expert/ExpertsApplyController.cs
@@ -35,8 +35,8 @@
public ActionResult ExpertsApply(string id = null)
{
- var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
- ViewData["curentuser"] = curentuser;
+ //var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+ //ViewData["curentuser"] = curentuser;
List<ActionEntity> actionlist = new List<ActionEntity>();
ActionEntity actionEntity = new ActionEntity();
actionEntity.OpenType = 0;
@@ -99,8 +99,8 @@
public string ExpertsApplySave(ExpertDTO data)
{
- var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
- ViewData["curentuser"] = curentuser;
+ //var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+ //ViewData["curentuser"] = curentuser;
data.ReviewItem = data.ReviewItemSelect;
data.InfoSource = "00";
data.ExpertType = "0";
@@ -109,10 +109,10 @@
data.ShenheStatus = "D";
if (String.IsNullOrEmpty(data.Id))
{
- data.Creater = curentuser.Id;
+ data.Creater = "1";
data.Createtime = DateTime.Now;
}
- data.Modifier = curentuser.Id;
+ data.Modifier = "1";
data.Modifytime = DateTime.Now;
ResultEntity resultEntity = _expertService.save(data);
diff --git a/zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml b/zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml
index a6a501e..1fef082 100644
--- a/zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml
@@ -241,7 +241,7 @@
</div>*@
- <label class="text-right col-sm-1 col-md-1 control-label">韬唤璇佸彿</label>
+ <label class="text-right col-sm-1 col-md-1 control-label">韬唤璇佸彿<i class="red">*</i></label>
<div class="col-sm-2 col-md-2" grouptype="Vdata">
<input class="form-control" label="韬唤璇佸彿" name="IdCard" id="IdCard" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.IdCard" autocomplete="off">
</div>
@@ -824,7 +824,10 @@
return;
}
-
+ if ($("#Sex").val() == '') {
+ toastr.warning("鎬у埆涓嶈兘涓虹┖");
+ return;
+ };
//var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" }
$.ajax({
type: "POST",
@@ -838,34 +841,44 @@
if (data.Result) {
// parent._afterSave(true);
- parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 });
+
//window.location = "/Project/add?id=" + data.ReturnID;
+ layer.msg('鎴愬姛淇濆瓨', { icon: 5 }, function () {
+ try {
+ _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+ }
+ catch (err) {
+ try {
+ parent._CloseTab1("/ExpertsApply/ExpertsApply");
+ }
+ catch (err) {
+ var browserName = navigator.appName;
+ if (browserName == "Netscape") {
+ window.location.href = "about:blank";聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽//鍏抽敭鏄繖鍙ヨ瘽
+ window.close();
+ } else if (browserName == "Microsoft Internet Explorer") {
+ window.opener = null;
+ window.close();
+ }
- try {
- _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
- }
- catch (err) {
- try {
- parent._CloseTab1("/ExpertsApply/ExpertsApply");
- }
- catch (err) {
+ }
+ }
+ });
- window.close();
- }
- }
+
}
else {
// toastr.error("澶辫触");
- parent.layer.msg(data.Message, { icon: 5 });
+ layer.msg(data.Message, { icon: 5 });
}
},
error: function () {
- parent.layer.msg('澶辫触', { icon: 5 });
+ layer.msg('澶辫触', { icon: 5 });
}
});
}
--
Gitblit v1.9.1