77
This commit is contained in:
@@ -171,8 +171,8 @@
|
||||
<f:RenderField ColumnID="Requisitioner" DataField="Requisitioner" Width="200px" SortField="Requisitioner"
|
||||
FieldType="String" HeaderText="Requisitioner" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="ViolationDegree" Width="110px" HeaderText="违章程度"
|
||||
HeaderTextAlign="Center" TextAlign="Center" SortField="ViolationDegree">
|
||||
<f:TemplateField ColumnID="ShowViolationDegree" Width="110px" HeaderText="违章程度"
|
||||
HeaderTextAlign="Center" TextAlign="Center" SortField="ShowViolationDegree">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# ConvertViolationDegree(Eval("ViolationDegree")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
@@ -226,7 +226,7 @@
|
||||
|
||||
// 用户EHSS
|
||||
if (columnName == "Score3" && value > parseFloat(maxScore1)) {
|
||||
F.alert("最大只能评" + maxScore1 + "星");
|
||||
F.alert(hidMsg + "最大只能评" + maxScore1 + "星");
|
||||
var html = F.rateHtml(0, {
|
||||
allowClear: true,
|
||||
allowHalf: true,
|
||||
@@ -237,7 +237,7 @@
|
||||
|
||||
// 部门安全监管
|
||||
else if (columnName == "Score1" && value > parseFloat(maxScore2)) {
|
||||
F.alert("最大只能评" + maxScore2 + "星");
|
||||
F.alert(hidMsg + "最大只能评" + maxScore2 + "星");
|
||||
var html = F.rateHtml(0, {
|
||||
allowClear: true,
|
||||
allowHalf: true,
|
||||
|
||||
@@ -823,6 +823,22 @@ namespace FineUIPro.Web.Evaluation
|
||||
scoreJournalList.Add(scoreJournal);
|
||||
}
|
||||
Funs.DB.Score_JournalEvaluation.InsertAllOnSubmit(scoreJournalList);
|
||||
|
||||
// 回写违章捐款(用户)
|
||||
var PunishList= from x in pjSESReport where x.ViolationDegree!=null select x;
|
||||
if (PunishList.Count() > 0)
|
||||
{
|
||||
foreach (var p in PunishList)
|
||||
{
|
||||
var punish = Funs.DB.EMC_Punishment.FirstOrDefault(x => x.FO_NO == p.FO_NO && x.ViolationRelatedSes == p.SES_No);
|
||||
if (punish != null)
|
||||
{
|
||||
punish.IsUserEvaluated = true;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//部门
|
||||
@@ -938,6 +954,21 @@ namespace FineUIPro.Web.Evaluation
|
||||
}
|
||||
Funs.DB.Score_JournalEvaluation.InsertAllOnSubmit(scoreJournalList);
|
||||
}
|
||||
|
||||
// 回写违章捐款(部门)
|
||||
var PunishList = from x in pjSESReport where x.ViolationDegree != null select x;
|
||||
if (PunishList.Count() > 0)
|
||||
{
|
||||
foreach (var p in PunishList)
|
||||
{
|
||||
var punish = Funs.DB.EMC_Punishment.FirstOrDefault(x => x.FO_NO == p.FO_NO && x.ViolationRelatedSes == p.SES_No);
|
||||
if (punish != null)
|
||||
{
|
||||
punish.IsDepEvaluated = true;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1428,7 +1459,7 @@ namespace FineUIPro.Web.Evaluation
|
||||
{
|
||||
var row = e.DataItem as Model.FC_SESReportView;
|
||||
|
||||
if (!string.IsNullOrEmpty(row.ViolationDegree))
|
||||
if (!string.IsNullOrEmpty(row.ShowViolationDegree))
|
||||
{
|
||||
e.RowCssClass = "color2";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user