海康设备
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
<f:Panel ID="Panel5" Title="面板1" BoxFlex="1" runat="server" ShowBorder="false" ShowHeader="false"
|
||||
Layout="VBox">
|
||||
<Items>
|
||||
<f:Image ID="imgPhoto1" CssClass="userphoto" ImageUrl="~/res/images/blank_150.png"
|
||||
<f:Image ID="imgPhoto1" CssClass="userphoto" ImageUrl="~/res/images/blank_150.png" ImageWidth="150px" ImageHeight="200px"
|
||||
runat="server" BoxFlex="1">
|
||||
</f:Image>
|
||||
<f:FileUpload ID="filePhoto1" runat="server" ButtonText="上传头像到百度" ButtonOnly="true"
|
||||
|
||||
@@ -411,7 +411,12 @@
|
||||
filePhoto1.Reset();
|
||||
|
||||
var welder = Funs.DB.HJGL_BS_Welder.FirstOrDefault(x=>x.WED_ID== WED_ID);
|
||||
welder.PhotoUrl = imgPhoto1.ImageUrl.Replace("/", "\\");
|
||||
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 = null;
|
||||
}
|
||||
Funs.DB.SubmitChanges();
|
||||
Alert.ShowInParent(PersonFace(welder), MessageBoxIcon.Warning);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user