修改作业许可
This commit is contained in:
@@ -46,7 +46,7 @@ namespace FineUIPro.Web.HSSE.License
|
||||
{
|
||||
this.lbLicenseCode.Text = getElectricity.LicenseCode;
|
||||
this.txtApplyUnit.Text = UnitService.GetUnitNameByUnitId(getElectricity.ApplyUnitId);
|
||||
this.txtApplyManName.Text = UserService.GetUserNameByUserId(getElectricity.ApplyManId);
|
||||
//this.txtApplyManName.Text = UserService.GetUserNameByUserId(getElectricity.ApplyManId);
|
||||
this.txtWorkPalce.Text = getElectricity.WorkPalce;
|
||||
this.txtReason.Text = getElectricity.Reason;
|
||||
if (getElectricity.ValidityStartTime.HasValue)
|
||||
@@ -57,7 +57,7 @@ namespace FineUIPro.Web.HSSE.License
|
||||
this.txtWorkDate.Text += getElectricity.ValidityEndTime.Value.ToString("f");
|
||||
}
|
||||
}
|
||||
this.txtWorkMeasures.Text = getElectricity.WorkMeasures;
|
||||
//this.txtWorkMeasures.Text = getElectricity.WorkMeasures;
|
||||
if (!string.IsNullOrEmpty(getElectricity.CancelManId))
|
||||
{
|
||||
this.txtCance.Text = UserService.GetUserNameByUserId(getElectricity.CancelManId) + ";取消时间:"
|
||||
@@ -76,6 +76,10 @@ namespace FineUIPro.Web.HSSE.License
|
||||
+ string.Format("{0:yyyy-MM-dd HH:mm}", getElectricity.CloseTime) + "。";
|
||||
}
|
||||
}
|
||||
txtWorkAreaName.Text = UnitWorkService.GetUnitWorkName(getElectricity.WorkAreaId);
|
||||
txtWorkLeaderName.Text = getElectricity.WorkLeaderName;
|
||||
txtFireWatchManName.Text = getElectricity.FireWatchManName;
|
||||
|
||||
}
|
||||
}
|
||||
// 绑定表格
|
||||
@@ -112,96 +116,96 @@ namespace FineUIPro.Web.HSSE.License
|
||||
this.txtTime1.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF1.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF2 = getFlows.FirstOrDefault(x => x.SortIndex == 2);
|
||||
if (getF2 != null)
|
||||
{
|
||||
this.txtForm2.Title = getF2.AuditFlowName + ":";
|
||||
if (getF2.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF2.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion2.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion2.Text = getF2.Opinion;
|
||||
}
|
||||
this.txtName2.Text = UserService.GetUserNameByUserId(getF2.OperaterId);
|
||||
this.txtTime2.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF2.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF3 = getFlows.FirstOrDefault(x => x.SortIndex == 3);
|
||||
if (getF3 != null)
|
||||
{
|
||||
this.txtForm3.Title = getF3.AuditFlowName + ":";
|
||||
if (getF3.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF3.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion3.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion3.Text = getF3.Opinion;
|
||||
}
|
||||
this.txtName3.Text = UserService.GetUserNameByUserId(getF3.OperaterId);
|
||||
this.txtTime3.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF3.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
|
||||
if (getF4 != null)
|
||||
{
|
||||
this.txtForm4.Title = getF4.AuditFlowName + ":";
|
||||
if (getF4.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF4.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion4.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion4.Text = getF4.Opinion;
|
||||
}
|
||||
this.txtName4.Text = UserService.GetUserNameByUserId(getF4.OperaterId);
|
||||
this.txtTime4.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF4.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF5 = getFlows.FirstOrDefault(x => x.SortIndex == 5);
|
||||
if (getF5 != null)
|
||||
{
|
||||
this.txtForm5.Title = getF5.AuditFlowName + ":";
|
||||
if (getF5.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF5.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion5.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion5.Text = getF5.Opinion;
|
||||
}
|
||||
this.txtName5.Text = UserService.GetUserNameByUserId(getF5.OperaterId);
|
||||
this.txtTime5.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF5.OperaterTime);
|
||||
}
|
||||
}
|
||||
var getF6 = getFlows.FirstOrDefault(x => x.SortIndex == 6);
|
||||
if (getF6 != null)
|
||||
{
|
||||
this.txtForm6.Title = getF6.AuditFlowName + ":";
|
||||
if (getF6.OperaterTime.HasValue)
|
||||
{
|
||||
if (getF6.IsAgree == true)
|
||||
{
|
||||
this.txtOpinion6.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtOpinion6.Text = getF6.Opinion;
|
||||
}
|
||||
this.txtName6.Text = UserService.GetUserNameByUserId(getF6.OperaterId);
|
||||
this.txtTime6.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF6.OperaterTime);
|
||||
}
|
||||
}
|
||||
//var getF2 = getFlows.FirstOrDefault(x => x.SortIndex == 2);
|
||||
//if (getF2 != null)
|
||||
//{
|
||||
// this.txtForm2.Title = getF2.AuditFlowName + ":";
|
||||
// if (getF2.OperaterTime.HasValue)
|
||||
// {
|
||||
// if (getF2.IsAgree == true)
|
||||
// {
|
||||
// this.txtOpinion2.Text = "同意。";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// this.txtOpinion2.Text = getF2.Opinion;
|
||||
// }
|
||||
// this.txtName2.Text = UserService.GetUserNameByUserId(getF2.OperaterId);
|
||||
// this.txtTime2.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF2.OperaterTime);
|
||||
// }
|
||||
//}
|
||||
//var getF3 = getFlows.FirstOrDefault(x => x.SortIndex == 3);
|
||||
//if (getF3 != null)
|
||||
//{
|
||||
// this.txtForm3.Title = getF3.AuditFlowName + ":";
|
||||
// if (getF3.OperaterTime.HasValue)
|
||||
// {
|
||||
// if (getF3.IsAgree == true)
|
||||
// {
|
||||
// this.txtOpinion3.Text = "同意。";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// this.txtOpinion3.Text = getF3.Opinion;
|
||||
// }
|
||||
// this.txtName3.Text = UserService.GetUserNameByUserId(getF3.OperaterId);
|
||||
// this.txtTime3.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF3.OperaterTime);
|
||||
// }
|
||||
//}
|
||||
//var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
|
||||
//if (getF4 != null)
|
||||
//{
|
||||
// this.txtForm4.Title = getF4.AuditFlowName + ":";
|
||||
// if (getF4.OperaterTime.HasValue)
|
||||
// {
|
||||
// if (getF4.IsAgree == true)
|
||||
// {
|
||||
// this.txtOpinion4.Text = "同意。";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// this.txtOpinion4.Text = getF4.Opinion;
|
||||
// }
|
||||
// this.txtName4.Text = UserService.GetUserNameByUserId(getF4.OperaterId);
|
||||
// this.txtTime4.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF4.OperaterTime);
|
||||
// }
|
||||
//}
|
||||
//var getF5 = getFlows.FirstOrDefault(x => x.SortIndex == 5);
|
||||
//if (getF5 != null)
|
||||
//{
|
||||
// this.txtForm5.Title = getF5.AuditFlowName + ":";
|
||||
// if (getF5.OperaterTime.HasValue)
|
||||
// {
|
||||
// if (getF5.IsAgree == true)
|
||||
// {
|
||||
// this.txtOpinion5.Text = "同意。";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// this.txtOpinion5.Text = getF5.Opinion;
|
||||
// }
|
||||
// this.txtName5.Text = UserService.GetUserNameByUserId(getF5.OperaterId);
|
||||
// this.txtTime5.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF5.OperaterTime);
|
||||
// }
|
||||
//}
|
||||
//var getF6 = getFlows.FirstOrDefault(x => x.SortIndex == 6);
|
||||
//if (getF6 != null)
|
||||
//{
|
||||
// this.txtForm6.Title = getF6.AuditFlowName + ":";
|
||||
// if (getF6.OperaterTime.HasValue)
|
||||
// {
|
||||
// if (getF6.IsAgree == true)
|
||||
// {
|
||||
// this.txtOpinion6.Text = "同意。";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// this.txtOpinion6.Text = getF6.Opinion;
|
||||
// }
|
||||
// this.txtName6.Text = UserService.GetUserNameByUserId(getF6.OperaterId);
|
||||
// this.txtTime6.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF6.OperaterTime);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user