This commit is contained in:
commit
264b9548b2
|
|
@ -97,6 +97,8 @@ namespace BLL
|
|||
newWelder.IsOAM = welder.IsOAM;
|
||||
|
||||
db.SubmitChanges();
|
||||
if (!string.IsNullOrEmpty(newWelder.PhotoUrl))
|
||||
{
|
||||
var pw = from x in db.Project_Welder
|
||||
where x.WED_ID == welder.WED_ID
|
||||
select x;
|
||||
|
|
@ -105,6 +107,7 @@ namespace BLL
|
|||
w.ExchangeTime = DateTime.Now;
|
||||
}
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -412,12 +412,14 @@
|
|||
|
||||
var welder = Funs.DB.HJGL_BS_Welder.FirstOrDefault(x => x.WED_ID == WED_ID);
|
||||
welder.PhotoUrl = imgPhoto1.ImageUrl.Replace("~", "");
|
||||
|
||||
var pw = Funs.DB.Project_Welder.Where(x => x.WED_ID == WED_ID);
|
||||
foreach (var w in pw)
|
||||
{
|
||||
w.ExchangeTime = DateTime.Now;
|
||||
}
|
||||
Funs.DB.SubmitChanges();
|
||||
|
||||
//Alert.ShowInParent(PersonFace(welder), MessageBoxIcon.Warning);
|
||||
Alert.ShowInParent("上传成功!", MessageBoxIcon.Success);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue