提交代码
This commit is contained in:
@@ -94,6 +94,10 @@
|
||||
#endregion
|
||||
|
||||
#region 获取审核记录信息
|
||||
public string FlowOperateId1;
|
||||
public string FlowOperateId2;
|
||||
public string FlowOperateId3;
|
||||
public string FlowOperateId4;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@@ -105,6 +109,7 @@
|
||||
var getF1 = getFlows.FirstOrDefault(x => x.SortIndex == 1);
|
||||
if (getF1 != null)
|
||||
{
|
||||
FlowOperateId1 = getF1.FlowOperateId;
|
||||
this.txtForm1.Title = getF1.AuditFlowName + ":";
|
||||
if (getF1.OperaterTime.HasValue)
|
||||
{
|
||||
@@ -116,10 +121,105 @@
|
||||
{
|
||||
this.txtOpinion1.Text = getF1.Opinion;
|
||||
}
|
||||
this.txtName1.Text = UserService.GetUserNameByUserId(getF1.OperaterId);
|
||||
if (!string.IsNullOrEmpty(getF1.SignatureUrl))
|
||||
{
|
||||
this.Image1.ImageUrl = "~/" + getF1.SignatureUrl;
|
||||
}
|
||||
var signUser1 = UserService.GetUserByUserId(getF1.OperaterId);
|
||||
if (signUser1 != null)
|
||||
{
|
||||
this.txtName1.Text = signUser1.UserName;
|
||||
}
|
||||
this.txtTime1.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF1.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF2 = getFlows.FirstOrDefault(x => x.SortIndex == 2);
|
||||
if (getF2 != null)
|
||||
{
|
||||
FlowOperateId2 = getF2.FlowOperateId;
|
||||
|
||||
this.txtForm2.Title = getF2.AuditFlowName + ":";
|
||||
if (getF2.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF2.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion2.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion2.Text = getF2.Opinion;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(getF2.SignatureUrl))
|
||||
{
|
||||
this.Image2.ImageUrl = "~/" + getF2.SignatureUrl;
|
||||
}
|
||||
var signUser2 = UserService.GetUserByUserId(getF2.OperaterId);
|
||||
if (signUser2 != null)
|
||||
{
|
||||
this.txtName2.Text = signUser2.UserName;
|
||||
|
||||
}
|
||||
this.txtTime2.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF2.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF3 = getFlows.FirstOrDefault(x => x.SortIndex == 3);
|
||||
if (getF3 != null)
|
||||
{
|
||||
FlowOperateId3 = getF3.FlowOperateId;
|
||||
|
||||
this.txtForm3.Title = getF3.AuditFlowName + ":";
|
||||
if (getF3.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF3.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion3.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion3.Text = getF3.Opinion;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(getF3.SignatureUrl))
|
||||
{
|
||||
this.Image3.ImageUrl = "~/" + getF3.SignatureUrl;
|
||||
}
|
||||
|
||||
var signUser3 = UserService.GetUserByUserId(getF3.OperaterId);
|
||||
if (signUser3 != null)
|
||||
{
|
||||
this.txtName3.Text = signUser3.UserName;
|
||||
}
|
||||
this.txtTime3.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF3.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
|
||||
if (getF4 != null)
|
||||
{
|
||||
FlowOperateId4 = getF4.FlowOperateId;
|
||||
|
||||
this.txtForm4.Title = getF4.AuditFlowName + ":";
|
||||
if (getF4.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF4.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion4.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion4.Text = getF4.Opinion;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(getF4.SignatureUrl))
|
||||
{
|
||||
this.Image4.ImageUrl = "~/" + getF4.SignatureUrl;
|
||||
}
|
||||
|
||||
var signUser4 = UserService.GetUserByUserId(getF4.OperaterId);
|
||||
if (signUser4 != null)
|
||||
{
|
||||
this.txtName4.Text = signUser4.UserName;
|
||||
}
|
||||
this.txtTime4.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF4.OperaterTime);
|
||||
}
|
||||
}
|
||||
//var getF2 = getFlows.FirstOrDefault(x => x.SortIndex == 2);
|
||||
//if (getF2 != null)
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user