海康设备

This commit is contained in:
2025-09-01 21:12:51 +08:00
parent e2da671c2f
commit 37262936c9
4 changed files with 43 additions and 4 deletions
@@ -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);