修改施工日志
This commit is contained in:
@@ -41,7 +41,8 @@
|
||||
BasicDataService.InitBasicDataProjectUnitDropDownList(this.drpEduLevel, "EDU_LEVEL", true);
|
||||
PositionService.InitPositionDropDownList(this.drpPosition, true);
|
||||
PostTitleService.InitPostTitleDropDownList(this.drpPostTitle, true);
|
||||
|
||||
WorkPostService.InitWorkPostDropDownList(this.drpLogWorkPost, true);
|
||||
SpecialEquipmentService.InitAllSpecialEquipmentDropDownList(this.drpLogMachine, true);
|
||||
/// Tab1加载页面方法
|
||||
this.Tab1LoadData();
|
||||
if (this.CurrUser.PersonId == Const.hfnbdId)
|
||||
@@ -80,7 +81,14 @@
|
||||
this.drpEduLevel.SelectedValue = getData.EduLevel ?? Const._Null;
|
||||
this.drpPosition.SelectedValue = getData.PositionId ?? Const._Null;
|
||||
this.drpPostTitle.SelectedValue = getData.PostTitleId ?? Const._Null;
|
||||
|
||||
if (!string.IsNullOrEmpty(getData.LogWorkPostId))
|
||||
{
|
||||
this.drpLogWorkPost.SelectedValueArray = getData.LogWorkPostId.Split(',');
|
||||
}
|
||||
if (!string.IsNullOrEmpty(getData.LogMachineId))
|
||||
{
|
||||
this.drpLogMachine.SelectedValueArray = getData.LogMachineId.Split(',');
|
||||
}
|
||||
if (!string.IsNullOrEmpty(getData.PhotoUrl))
|
||||
{
|
||||
this.PhotoAttachUrl = getData.PhotoUrl;
|
||||
@@ -211,6 +219,32 @@
|
||||
{
|
||||
getData.PostTitleId = this.drpPostTitle.SelectedValue;
|
||||
}
|
||||
string logWorkPostId = string.Empty;
|
||||
foreach (var item in this.drpLogWorkPost.SelectedValueArray)
|
||||
{
|
||||
if (item != BLL.Const._Null)
|
||||
{
|
||||
logWorkPostId += item + ",";
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(logWorkPostId))
|
||||
{
|
||||
logWorkPostId = logWorkPostId.Substring(0, logWorkPostId.Length - 1);
|
||||
}
|
||||
getData.LogWorkPostId = logWorkPostId;
|
||||
string logMachineId = string.Empty;
|
||||
foreach (var item in this.drpLogMachine.SelectedValueArray)
|
||||
{
|
||||
if (item != BLL.Const._Null)
|
||||
{
|
||||
logMachineId += item + ",";
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(logMachineId))
|
||||
{
|
||||
logMachineId = logMachineId.Substring(0, logMachineId.Length - 1);
|
||||
}
|
||||
getData.LogMachineId = logMachineId;
|
||||
if (!string.IsNullOrEmpty(imgPhoto.ImageUrl) && imgPhoto.ImageUrl != "~/res/images/blank.png")
|
||||
{
|
||||
getData.PhotoUrl = imgPhoto.ImageUrl.Replace("~/", "");
|
||||
|
||||
Reference in New Issue
Block a user