Compare commits
No commits in common. "20904bda17d7ef4e5e978f7ddfb39635a967384c" and "a878d838d1f34db2c63cc48c44b1d88ebff376eb" have entirely different histories.
20904bda17
...
a878d838d1
|
@ -1195,6 +1195,5 @@ FCL/WebApi/obj/Release/WebApi.pdb
|
||||||
/FCL/FineUIPro.Web/File/Excel/20240515031710
|
/FCL/FineUIPro.Web/File/Excel/20240515031710
|
||||||
/FCL/FineUIPro.Web/File/Excel/20240515031759
|
/FCL/FineUIPro.Web/File/Excel/20240515031759
|
||||||
/FCL/WebApi/obj/Debug
|
/FCL/WebApi/obj/Debug
|
||||||
/备份/FCLPackFile_2024.06.06
|
|
||||||
/FCL/packages
|
/FCL/packages
|
||||||
/FCL/FineUIPro.Web/Web.config
|
/FCL/FineUIPro.Web/Web.config
|
||||||
|
|
|
@ -1,55 +0,0 @@
|
||||||
|
|
||||||
ALTER TABLE dbo.EMC_Punishment ADD IsUserEvaluated BIT NULL
|
|
||||||
GO
|
|
||||||
ALTER TABLE dbo.EMC_Punishment ADD IsDepEvaluated BIT NULL
|
|
||||||
GO
|
|
||||||
|
|
||||||
ALTER TABLE dbo.SyncDataUserLogs ADD Josn NVARCHAR(MAX)
|
|
||||||
GO
|
|
||||||
|
|
||||||
ALTER VIEW [dbo].[FC_SESReportView]
|
|
||||||
AS
|
|
||||||
SELECT
|
|
||||||
a.SES_No,
|
|
||||||
a.FO AS FO_NO,
|
|
||||||
a.Short_Descrption,
|
|
||||||
CONVERT(VARCHAR(50),a.Start_Date,23) AS Start_Date,
|
|
||||||
CONVERT(VARCHAR(50),a.End_Date,23) AS End_Date,
|
|
||||||
CONVERT(VARCHAR(50),a.TECO_Date,23) AS TECO_Date,
|
|
||||||
CONVERT(VARCHAR(50),a.SES_CONF_Format,23) AS SES_CONF_Format,
|
|
||||||
CONVERT(VARCHAR(50),a.Claim_sheets_receive,23) AS Claim_sheets_receive,
|
|
||||||
(CASE WHEN a.Claim_sheets_receive IS NULL THEN a.TECO_Date ELSE a.Claim_sheets_receive END) AS Claim_TECO_Date,
|
|
||||||
YEAR(CASE WHEN a.Claim_sheets_receive IS NULL THEN a.TECO_Date ELSE a.Claim_sheets_receive END) AS dateYear,
|
|
||||||
MONTH(CASE WHEN a.Claim_sheets_receive IS NULL THEN a.TECO_Date ELSE a.Claim_sheets_receive END) AS dateMonth,
|
|
||||||
a.Requisitioner,
|
|
||||||
u1.Account AS MainCoordinatorUser,
|
|
||||||
u2.Account AS UserRepresentativeUser,
|
|
||||||
u3.Account AS ContractAdminUser,
|
|
||||||
b.DisciplineId,
|
|
||||||
dis.Discipline AS Discipline_Eng,
|
|
||||||
dis.DisciplineCN AS Discipline_CN,
|
|
||||||
(CASE WHEN dis.Discipline IS NULL THEN dis.DisciplineCN
|
|
||||||
WHEN dis.DisciplineCN IS NULL THEN dis.Discipline
|
|
||||||
ELSE dis.Discipline+dis.DisciplineCN END) AS Discipline,
|
|
||||||
(SELECT TOP 1 p.ViolationDegree FROM dbo.EMC_Punishment p
|
|
||||||
WHERE p.FO_NO=a.FO AND p.ViolationRelatedSes=a.SES_No AND p.Flag='1'
|
|
||||||
AND (p.IsUserEvaluated IS NULL OR IsDepEvaluated IS NULL )) AS ViolationDegree,
|
|
||||||
(SELECT TOP 1 p.ViolationDegree FROM dbo.EMC_Punishment p
|
|
||||||
WHERE p.FO_NO=a.FO AND p.ViolationRelatedSes=a.SES_No AND p.Flag='1') AS ShowViolationDegree
|
|
||||||
FROM FC_SESReport AS a
|
|
||||||
LEFT JOIN FC_SESRelatedData AS b ON a.FO=b.FO_NO
|
|
||||||
LEFT JOIN Base_Discipline AS dis ON dis.DisciplineId = b.DisciplineId
|
|
||||||
LEFT JOIN Sys_User AS u1 ON u1.UserId=b.Main_Coordinator
|
|
||||||
LEFT JOIN Sys_User AS u2 ON u2.UserId=b.User_Representative
|
|
||||||
LEFT JOIN Sys_User AS u3 ON u3.UserId=b.Contract_Admin
|
|
||||||
WHERE YEAR(CASE WHEN a.Claim_sheets_receive IS NULL THEN a.TECO_Date ELSE a.Claim_sheets_receive END)=(CASE MONTH(GETDATE()) WHEN 1 THEN YEAR(GETDATE())-1 ELSE YEAR(GETDATE()) END)
|
|
||||||
AND MONTH(CASE WHEN a.Claim_sheets_receive IS NULL THEN a.TECO_Date ELSE a.Claim_sheets_receive END)=(CASE MONTH(GETDATE()) WHEN 1 THEN 12 ELSE MONTH(GETDATE())-1 END)
|
|
||||||
--and a.SES_No not in (select SES_No from Score_JournalEvaluation)
|
|
||||||
AND (a.Claim_sheets_receive IS NOT NULL OR a.TECO_Date IS NOT NULL)
|
|
||||||
|
|
||||||
|
|
||||||
GO
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -59,27 +59,6 @@ namespace BLL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 单点登陆ClientId参数
|
|
||||||
public static string ClientId
|
|
||||||
{
|
|
||||||
get;
|
|
||||||
set;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 单点登陆ClientSecret参数
|
|
||||||
public static string ClientSecret
|
|
||||||
{
|
|
||||||
get;
|
|
||||||
set;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 单点登陆Redirect_url参数
|
|
||||||
public static string Redirect_url
|
|
||||||
{
|
|
||||||
get;
|
|
||||||
set;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 데貫<EB8DB0>零
|
/// 데貫<EB8DB0>零
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -171,10 +171,10 @@
|
||||||
<f:RenderField ColumnID="Requisitioner" DataField="Requisitioner" Width="200px" SortField="Requisitioner"
|
<f:RenderField ColumnID="Requisitioner" DataField="Requisitioner" Width="200px" SortField="Requisitioner"
|
||||||
FieldType="String" HeaderText="Requisitioner" HeaderTextAlign="Center">
|
FieldType="String" HeaderText="Requisitioner" HeaderTextAlign="Center">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:TemplateField ColumnID="ShowViolationDegree" Width="110px" HeaderText="违章程度"
|
<f:TemplateField ColumnID="ViolationDegree" Width="110px" HeaderText="违章程度"
|
||||||
HeaderTextAlign="Center" TextAlign="Center" SortField="ShowViolationDegree">
|
HeaderTextAlign="Center" TextAlign="Center" SortField="ViolationDegree">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="Label3" runat="server" Text='<%# ConvertViolationDegree(Eval("ShowViolationDegree")) %>'></asp:Label>
|
<asp:Label ID="Label3" runat="server" Text='<%# ConvertViolationDegree(Eval("ViolationDegree")) %>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</f:TemplateField>
|
</f:TemplateField>
|
||||||
</Columns>
|
</Columns>
|
||||||
|
@ -213,7 +213,7 @@
|
||||||
var target = $(event.target);
|
var target = $(event.target);
|
||||||
var cellEl = target.closest('.f-grid-cell');
|
var cellEl = target.closest('.f-grid-cell');
|
||||||
var rowId = grid1.getRowId(cellEl);
|
var rowId = grid1.getRowId(cellEl);
|
||||||
//console.log(rowId);
|
console.log(rowId);
|
||||||
var columnId = grid1.getColumnId(cellEl);
|
var columnId = grid1.getColumnId(cellEl);
|
||||||
var columnName = grid1.getColumn(columnId).columnId;
|
var columnName = grid1.getColumn(columnId).columnId;
|
||||||
|
|
||||||
|
@ -226,7 +226,7 @@
|
||||||
|
|
||||||
// 用户EHSS
|
// 用户EHSS
|
||||||
if (columnName == "Score3" && value > parseFloat(maxScore1)) {
|
if (columnName == "Score3" && value > parseFloat(maxScore1)) {
|
||||||
F.alert(hidMsg + "最大只能评" + maxScore1 + "星");
|
F.alert("最大只能评" + maxScore1 + "星");
|
||||||
var html = F.rateHtml(0, {
|
var html = F.rateHtml(0, {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
allowHalf: true,
|
allowHalf: true,
|
||||||
|
@ -237,7 +237,7 @@
|
||||||
|
|
||||||
// 部门安全监管
|
// 部门安全监管
|
||||||
else if (columnName == "Score1" && value > parseFloat(maxScore2)) {
|
else if (columnName == "Score1" && value > parseFloat(maxScore2)) {
|
||||||
F.alert(hidMsg + "最大只能评" + maxScore2 + "星");
|
F.alert("最大只能评" + maxScore2 + "星");
|
||||||
var html = F.rateHtml(0, {
|
var html = F.rateHtml(0, {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
allowHalf: true,
|
allowHalf: true,
|
||||||
|
|
|
@ -823,22 +823,6 @@ namespace FineUIPro.Web.Evaluation
|
||||||
scoreJournalList.Add(scoreJournal);
|
scoreJournalList.Add(scoreJournal);
|
||||||
}
|
}
|
||||||
Funs.DB.Score_JournalEvaluation.InsertAllOnSubmit(scoreJournalList);
|
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//部门
|
//部门
|
||||||
|
@ -954,21 +938,6 @@ namespace FineUIPro.Web.Evaluation
|
||||||
}
|
}
|
||||||
Funs.DB.Score_JournalEvaluation.InsertAllOnSubmit(scoreJournalList);
|
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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1005,7 +974,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
{
|
{
|
||||||
sesList = Funs.DB.FC_SESReportView.Where(p => p.FO_NO == FoNo && p.Requisitioner == CurrUser.Account).ToList();
|
sesList = Funs.DB.FC_SESReportView.Where(p => p.FO_NO == FoNo && p.Requisitioner == CurrUser.Account).ToList();
|
||||||
}
|
}
|
||||||
Grid2.DataSource = sesList.OrderByDescending(x=>x.ShowViolationDegree);
|
Grid2.DataSource = sesList;
|
||||||
Grid2.DataBind();
|
Grid2.DataBind();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -1459,7 +1428,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
{
|
{
|
||||||
var row = e.DataItem as Model.FC_SESReportView;
|
var row = e.DataItem as Model.FC_SESReportView;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(row.ShowViolationDegree))
|
if (!string.IsNullOrEmpty(row.ViolationDegree))
|
||||||
{
|
{
|
||||||
e.RowCssClass = "color2";
|
e.RowCssClass = "color2";
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,18 +14,11 @@
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.f-grid-row.color2,
|
|
||||||
.f-grid-row.color2 .f-icon,
|
|
||||||
.f-grid-row.color2 a {
|
|
||||||
background-color: red;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.f-rate .f-rate-star.f-rate-star-half .f-rate-star-first .f-rate-star-icon, .f-rate .f-rate-star.f-rate-star-full
|
.f-rate .f-rate-star.f-rate-star-half .f-rate-star-first .f-rate-star-icon, .f-rate .f-rate-star.f-rate-star-full
|
||||||
.f-rate-star-first .f-rate-star-icon, .f-rate .f-rate-star.f-rate-star-full .f-rate-star-second .f-rate-star-icon {
|
.f-rate-star-first .f-rate-star-icon, .f-rate .f-rate-star.f-rate-star-full .f-rate-star-second .f-rate-star-icon {
|
||||||
color: #cc0033;
|
color: #cc0033;
|
||||||
}
|
}
|
||||||
|
|
||||||
.f-grid-cell.ycl .f-grid-cell-inner {
|
.f-grid-cell.ycl .f-grid-cell-inner {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -74,9 +67,6 @@
|
||||||
<f:HiddenField runat="server" ID="hidisDepScore4"></f:HiddenField>
|
<f:HiddenField runat="server" ID="hidisDepScore4"></f:HiddenField>
|
||||||
<f:HiddenField runat="server" ID="hidisDepScore5"></f:HiddenField>
|
<f:HiddenField runat="server" ID="hidisDepScore5"></f:HiddenField>
|
||||||
<f:HiddenField runat="server" ID="hidisDepScore6"></f:HiddenField>
|
<f:HiddenField runat="server" ID="hidisDepScore6"></f:HiddenField>
|
||||||
<f:HiddenField runat="server" Text="" ID="hidMaxScore1"></f:HiddenField>
|
|
||||||
<f:HiddenField runat="server" Text="" ID="hidMaxScore2"></f:HiddenField>
|
|
||||||
<f:HiddenField runat="server" Text="" ID="hidMsg"></f:HiddenField>
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</f:TemplateField>
|
</f:TemplateField>
|
||||||
<f:TemplateField HeaderText="承包商<br/>Contractor" HeaderTextAlign="Center" Width="200px">
|
<f:TemplateField HeaderText="承包商<br/>Contractor" HeaderTextAlign="Center" Width="200px">
|
||||||
|
@ -148,7 +138,7 @@
|
||||||
<Items>
|
<Items>
|
||||||
<f:Grid ID="Grid2" ShowBorder="true" ShowHeader="false" EnableCollapse="true" runat="server"
|
<f:Grid ID="Grid2" ShowBorder="true" ShowHeader="false" EnableCollapse="true" runat="server"
|
||||||
BoxFlex="1" DataKeyNames="SES_No" AllowCellEditing="true" ClicksToEdit="2" DataIDField="SES_No"
|
BoxFlex="1" DataKeyNames="SES_No" AllowCellEditing="true" ClicksToEdit="2" DataIDField="SES_No"
|
||||||
PageSize="15" EnableRowSelectEvent="true" Height="200px" OnRowDataBound="Grid2_RowDataBound">
|
PageSize="15" EnableRowSelectEvent="true" Height="200px">
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:RenderField ColumnID="SES_No" DataField="SES_No" SortField="SES_No"
|
<f:RenderField ColumnID="SES_No" DataField="SES_No" SortField="SES_No"
|
||||||
FieldType="String" HeaderText="SES No." HeaderTextAlign="Center">
|
FieldType="String" HeaderText="SES No." HeaderTextAlign="Center">
|
||||||
|
@ -171,12 +161,6 @@
|
||||||
<f:RenderField ColumnID="Requisitioner" DataField="Requisitioner" Width="200px" SortField="Requisitioner"
|
<f:RenderField ColumnID="Requisitioner" DataField="Requisitioner" Width="200px" SortField="Requisitioner"
|
||||||
FieldType="String" HeaderText="Requisitioner" HeaderTextAlign="Center">
|
FieldType="String" HeaderText="Requisitioner" HeaderTextAlign="Center">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:TemplateField ColumnID="ShowViolationDegree" Width="110px" HeaderText="违章程度"
|
|
||||||
HeaderTextAlign="Center" TextAlign="Center" SortField="ShowViolationDegree">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:Label ID="Label3" runat="server" Text='<%# ConvertViolationDegree(Eval("ShowViolationDegree")) %>'></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</f:TemplateField>
|
|
||||||
</Columns>
|
</Columns>
|
||||||
</f:Grid>
|
</f:Grid>
|
||||||
</Items>
|
</Items>
|
||||||
|
@ -199,12 +183,10 @@
|
||||||
function renderRateUser(value, row) {
|
function renderRateUser(value, row) {
|
||||||
var evaltype = row.rowValue["IsEvaluateType"];
|
var evaltype = row.rowValue["IsEvaluateType"];
|
||||||
return F.rateHtml(value, {
|
return F.rateHtml(value, {
|
||||||
allowClear: true,
|
|
||||||
readonly: evaltype == 1 ? true : false,
|
readonly: evaltype == 1 ? true : false,
|
||||||
allowHalf: true,
|
allowHalf: true,
|
||||||
textVisible: false
|
textVisible: false
|
||||||
});
|
});
|
||||||
return html;
|
|
||||||
}
|
}
|
||||||
F.ready(function () {
|
F.ready(function () {
|
||||||
var grid1 = F(grid1ClientID);
|
var grid1 = F(grid1ClientID);
|
||||||
|
@ -212,46 +194,13 @@
|
||||||
F.rateEvents(grid1.el, function (event, value) {
|
F.rateEvents(grid1.el, function (event, value) {
|
||||||
var target = $(event.target);
|
var target = $(event.target);
|
||||||
var cellEl = target.closest('.f-grid-cell');
|
var cellEl = target.closest('.f-grid-cell');
|
||||||
|
|
||||||
var rowId = grid1.getRowId(cellEl);
|
var rowId = grid1.getRowId(cellEl);
|
||||||
//console.log(rowId);
|
|
||||||
var columnId = grid1.getColumnId(cellEl);
|
var columnId = grid1.getColumnId(cellEl);
|
||||||
var columnName = grid1.getColumn(columnId).columnId;
|
|
||||||
|
|
||||||
//获取控件值1()
|
//更新单元格的值
|
||||||
var maxScore1 = $("#Panel1_panelTopRegion_Grid1_ftpl_" + rowId + "_0_hidMaxScore1-inputEl").val();
|
grid1.updateCellValue(rowId, columnId, value);
|
||||||
//获取控件值2()
|
|
||||||
var maxScore2 = $("#Panel1_panelTopRegion_Grid1_ftpl_" + rowId + "_0_hidMaxScore2-inputEl").val()
|
|
||||||
|
|
||||||
var hidMsg = $("#Panel1_panelTopRegion_Grid1_ftpl_" + rowId + "_0_hidMsg-inputEl").val()
|
|
||||||
|
|
||||||
// 用户EHSS
|
|
||||||
if (columnName == "Score3" && value > parseFloat(maxScore1)) {
|
|
||||||
F.alert(hidMsg + "最大只能评" + maxScore1 + "星");
|
|
||||||
var html = F.rateHtml(0, {
|
|
||||||
allowClear: true,
|
|
||||||
allowHalf: true,
|
|
||||||
textVisible: false
|
|
||||||
});
|
|
||||||
grid1.getCellEl(rowId, columnId).html(html)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 部门安全监管
|
|
||||||
else if (columnName == "Score1" && value > parseFloat(maxScore2)) {
|
|
||||||
F.alert(hidMsg + "最大只能评" + maxScore2 + "星");
|
|
||||||
var html = F.rateHtml(0, {
|
|
||||||
allowClear: true,
|
|
||||||
allowHalf: true,
|
|
||||||
textVisible: false
|
|
||||||
});
|
|
||||||
grid1.getCellEl(rowId, columnId).html(html)
|
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
|
||||||
//更新单元格的值
|
|
||||||
grid1.updateCellValue(rowId, columnId, value);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,19 +1,15 @@
|
||||||
using BLL;
|
using BLL;
|
||||||
using BLL.Common;
|
using BLL.Common;
|
||||||
using FineUIPro.Web.common.SysManage;
|
|
||||||
using Model;
|
using Model;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using NPOI.SS.Formula.Functions;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Data.SqlClient;
|
using System.Data.SqlClient;
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using System.Web.UI;
|
using System.Web.UI;
|
||||||
using System.Web.UI.WebControls;
|
using System.Web.UI.WebControls;
|
||||||
using static NPOI.POIFS.Crypt.CryptoFunctions;
|
|
||||||
|
|
||||||
namespace FineUIPro.Web.Evaluation
|
namespace FineUIPro.Web.Evaluation
|
||||||
{
|
{
|
||||||
|
@ -251,15 +247,10 @@ namespace FineUIPro.Web.Evaluation
|
||||||
HiddenField hidisDepScore4 = Grid1.Rows[i].FindControl("hidisDepScore4") as HiddenField;
|
HiddenField hidisDepScore4 = Grid1.Rows[i].FindControl("hidisDepScore4") as HiddenField;
|
||||||
HiddenField hidisDepScore5 = Grid1.Rows[i].FindControl("hidisDepScore5") as HiddenField;
|
HiddenField hidisDepScore5 = Grid1.Rows[i].FindControl("hidisDepScore5") as HiddenField;
|
||||||
HiddenField hidisDepScore6 = Grid1.Rows[i].FindControl("hidisDepScore6") as HiddenField;
|
HiddenField hidisDepScore6 = Grid1.Rows[i].FindControl("hidisDepScore6") as HiddenField;
|
||||||
|
|
||||||
HiddenField hidMaxScore1 = Grid1.Rows[i].FindControl("hidMaxScore1") as HiddenField;
|
|
||||||
HiddenField hidMaxScore2 = Grid1.Rows[i].FindControl("hidMaxScore2") as HiddenField;
|
|
||||||
HiddenField hidMsg = Grid1.Rows[i].FindControl("hidMsg") as HiddenField;
|
|
||||||
|
|
||||||
var foNo = Grid1.Rows[i].DataKeys[0].ToString();
|
var foNo = Grid1.Rows[i].DataKeys[0].ToString();
|
||||||
var isEvaluateType = Grid1.Rows[i].DataKeys[1].ToString();
|
var isEvaluateType = Grid1.Rows[i].DataKeys[1].ToString();
|
||||||
var evaluateType = Grid1.Rows[i].DataKeys[2].ToString();
|
var evaluateType = Grid1.Rows[i].DataKeys[2].ToString();
|
||||||
var userType = Grid1.Rows[i].DataKeys[3].ToString();
|
|
||||||
|
|
||||||
if (contractorList != null && contractorList.Count(p => p.FO_NO == foNo) > 0)
|
if (contractorList != null && contractorList.Count(p => p.FO_NO == foNo) > 0)
|
||||||
{
|
{
|
||||||
|
@ -269,63 +260,6 @@ namespace FineUIPro.Web.Evaluation
|
||||||
lblContractor.Text = contractModel.Contractor;
|
lblContractor.Text = contractModel.Contractor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 违章扣分
|
|
||||||
if (userType == "1")
|
|
||||||
{
|
|
||||||
var sesList = Funs.DB.FC_SESReportView.Where(p => p.FO_NO == foNo && p.Requisitioner == CurrUser.Account).OrderByDescending(t => t.ViolationDegree).FirstOrDefault();
|
|
||||||
switch (sesList?.ViolationDegree)
|
|
||||||
{
|
|
||||||
case "1":
|
|
||||||
hidMaxScore1.Text = "4.5";
|
|
||||||
hidMsg.Text = $"当前合同号:{foNo}下,SES:{sesList?.SES_No}存在一般违章,";
|
|
||||||
break;
|
|
||||||
case "2":
|
|
||||||
hidMaxScore1.Text = "4";
|
|
||||||
hidMsg.Text = $"当前合同号:{foNo}下,SES:{sesList?.SES_No}存在严重违章,";
|
|
||||||
break;
|
|
||||||
case "3":
|
|
||||||
hidMaxScore1.Text = "3.5";
|
|
||||||
hidMsg.Text = $"当前合同号:{foNo}下,SES:{sesList?.SES_No}存在零容忍违章,";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
hidMaxScore1.Text = "5";
|
|
||||||
hidMsg.Text = "";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var sesList = Funs.DB.FC_SESReportView.AsQueryable();
|
|
||||||
var setList = Funs.DB.Sys_User.Where(p => new string[] { Const.Role_CTSSId, Const.Role_CTSCId, Const.Role_CTMTId }.Contains(p.RoleId) && p.UserId == CurrUser.UserId).ToList();
|
|
||||||
if (setList.Count > 0)
|
|
||||||
sesList = sesList.Where(p => p.FO_NO == foNo && p.Requisitioner != "" && p.Requisitioner != null && p.Requisitioner != string.Empty).OrderByDescending(t => t.ViolationDegree);
|
|
||||||
|
|
||||||
else
|
|
||||||
sesList = sesList.Where(p => p.FO_NO == foNo && (p.MainCoordinatorUser == CurrUser.Account || p.ContractAdminUser == CurrUser.Account || p.UserRepresentativeUser == CurrUser.Account)).OrderByDescending(t => t.ViolationDegree);
|
|
||||||
|
|
||||||
var max = sesList.FirstOrDefault();
|
|
||||||
switch (max?.ViolationDegree)
|
|
||||||
{
|
|
||||||
case "1":
|
|
||||||
hidMaxScore2.Text = "4.5";
|
|
||||||
hidMsg.Text = $"当前合同号:{foNo}下,SES:{max?.SES_No}存在一般违章,";
|
|
||||||
break;
|
|
||||||
case "2":
|
|
||||||
hidMaxScore2.Text = "4";
|
|
||||||
hidMsg.Text = $"当前合同号:{foNo}下,SES:{max?.SES_No}存在严重违章,";
|
|
||||||
break;
|
|
||||||
case "3":
|
|
||||||
hidMaxScore2.Text = "3.5";
|
|
||||||
hidMsg.Text = $"当前合同号:{foNo}下,SES:{max?.SES_No}存在零容忍违章,";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
hidMaxScore2.Text = "5";
|
|
||||||
hidMsg.Text = "";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isEvaluateType == "1")
|
if (isEvaluateType == "1")
|
||||||
{
|
{
|
||||||
Grid1.Rows[i].RowCssClass = "color1";
|
Grid1.Rows[i].RowCssClass = "color1";
|
||||||
|
@ -824,21 +758,6 @@ namespace FineUIPro.Web.Evaluation
|
||||||
}
|
}
|
||||||
Funs.DB.Score_JournalEvaluation.InsertAllOnSubmit(scoreJournalList);
|
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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//部门
|
//部门
|
||||||
if (item.EvaluateType == "Dep")
|
if (item.EvaluateType == "Dep")
|
||||||
|
@ -953,21 +872,6 @@ namespace FineUIPro.Web.Evaluation
|
||||||
}
|
}
|
||||||
Funs.DB.Score_JournalEvaluation.InsertAllOnSubmit(scoreJournalList);
|
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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1004,7 +908,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
{
|
{
|
||||||
sesList = Funs.DB.FC_SESReportView.Where(p => p.FO_NO == FoNo && p.Requisitioner == CurrUser.Account).ToList();
|
sesList = Funs.DB.FC_SESReportView.Where(p => p.FO_NO == FoNo && p.Requisitioner == CurrUser.Account).ToList();
|
||||||
}
|
}
|
||||||
Grid2.DataSource = sesList.OrderByDescending(x => x.ShowViolationDegree);
|
Grid2.DataSource = sesList;
|
||||||
Grid2.DataBind();
|
Grid2.DataBind();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -1453,38 +1357,5 @@ namespace FineUIPro.Web.Evaluation
|
||||||
BindGrid();
|
BindGrid();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
protected void Grid2_RowDataBound(object sender, GridRowEventArgs e)
|
|
||||||
{
|
|
||||||
var row = e.DataItem as Model.FC_SESReportView;
|
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(row.ShowViolationDegree))
|
|
||||||
{
|
|
||||||
e.RowCssClass = "color2";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
protected string ConvertViolationDegree(object violationDegree)
|
|
||||||
{
|
|
||||||
string degree = string.Empty;
|
|
||||||
if (violationDegree != null)
|
|
||||||
{
|
|
||||||
if (violationDegree.ToString() == "1")
|
|
||||||
{
|
|
||||||
degree = "一般违章";
|
|
||||||
}
|
|
||||||
if (violationDegree.ToString() == "2")
|
|
||||||
{
|
|
||||||
degree = "严重违章";
|
|
||||||
}
|
|
||||||
if (violationDegree.ToString() == "3")
|
|
||||||
{
|
|
||||||
degree = "零容忍违章";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return degree;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,13 +7,11 @@
|
||||||
// </自动生成>
|
// </自动生成>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace FineUIPro.Web.Evaluation
|
namespace FineUIPro.Web.Evaluation {
|
||||||
{
|
|
||||||
|
|
||||||
|
public partial class SafetyEvaluation {
|
||||||
public partial class SafetyEvaluation
|
|
||||||
{
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// form1 控件。
|
/// form1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -22,7 +20,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// PageManager1 控件。
|
/// PageManager1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -31,7 +29,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.PageManager PageManager1;
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Panel1 控件。
|
/// Panel1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -40,7 +38,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Panel Panel1;
|
protected global::FineUIPro.Panel Panel1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// panelTopRegion 控件。
|
/// panelTopRegion 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -49,7 +47,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Panel panelTopRegion;
|
protected global::FineUIPro.Panel panelTopRegion;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Grid1 控件。
|
/// Grid1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -58,7 +56,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Grid Grid1;
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Toolbar1 控件。
|
/// Toolbar1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -67,7 +65,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Toolbar Toolbar1;
|
protected global::FineUIPro.Toolbar Toolbar1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// rdbUserType 控件。
|
/// rdbUserType 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -76,7 +74,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.RadioButtonList rdbUserType;
|
protected global::FineUIPro.RadioButtonList rdbUserType;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// drpUser 控件。
|
/// drpUser 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -85,7 +83,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.DropDownList drpUser;
|
protected global::FineUIPro.DropDownList drpUser;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// drpContractNo 控件。
|
/// drpContractNo 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -94,7 +92,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.DropDownList drpContractNo;
|
protected global::FineUIPro.DropDownList drpContractNo;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnUndo 控件。
|
/// btnUndo 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -103,7 +101,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Button btnUndo;
|
protected global::FineUIPro.Button btnUndo;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnAutoEvaluation 控件。
|
/// btnAutoEvaluation 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -112,7 +110,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Button btnAutoEvaluation;
|
protected global::FineUIPro.Button btnAutoEvaluation;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ToolbarFill1 控件。
|
/// ToolbarFill1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -121,7 +119,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// hdFo 控件。
|
/// hdFo 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -130,7 +128,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.HiddenField hdFo;
|
protected global::FineUIPro.HiddenField hdFo;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// BatchEvaluation 控件。
|
/// BatchEvaluation 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -139,7 +137,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Button BatchEvaluation;
|
protected global::FineUIPro.Button BatchEvaluation;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// LinkFoNo 控件。
|
/// LinkFoNo 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -148,7 +146,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.LinkButton LinkFoNo;
|
protected global::System.Web.UI.WebControls.LinkButton LinkFoNo;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// hidisDepScore1 控件。
|
/// hidisDepScore1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -157,7 +155,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.HiddenField hidisDepScore1;
|
protected global::FineUIPro.HiddenField hidisDepScore1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// hidisDepScore2 控件。
|
/// hidisDepScore2 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -166,7 +164,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.HiddenField hidisDepScore2;
|
protected global::FineUIPro.HiddenField hidisDepScore2;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// hidisDepScore3 控件。
|
/// hidisDepScore3 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -175,7 +173,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.HiddenField hidisDepScore3;
|
protected global::FineUIPro.HiddenField hidisDepScore3;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// hidisDepScore4 控件。
|
/// hidisDepScore4 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -184,7 +182,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.HiddenField hidisDepScore4;
|
protected global::FineUIPro.HiddenField hidisDepScore4;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// hidisDepScore5 控件。
|
/// hidisDepScore5 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -193,7 +191,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.HiddenField hidisDepScore5;
|
protected global::FineUIPro.HiddenField hidisDepScore5;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// hidisDepScore6 控件。
|
/// hidisDepScore6 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -202,34 +200,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.HiddenField hidisDepScore6;
|
protected global::FineUIPro.HiddenField hidisDepScore6;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// hidMaxScore1 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.HiddenField hidMaxScore1;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// hidMaxScore2 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.HiddenField hidMaxScore2;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// hidMsg 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.HiddenField hidMsg;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// lblContractor 控件。
|
/// lblContractor 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -238,7 +209,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.Label lblContractor;
|
protected global::System.Web.UI.WebControls.Label lblContractor;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// wjsc 控件。
|
/// wjsc 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -247,7 +218,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.GroupField wjsc;
|
protected global::FineUIPro.GroupField wjsc;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// panelBottomRegion 控件。
|
/// panelBottomRegion 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -256,7 +227,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Panel panelBottomRegion;
|
protected global::FineUIPro.Panel panelBottomRegion;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Grid2 控件。
|
/// Grid2 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -265,16 +236,7 @@ namespace FineUIPro.Web.Evaluation
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Grid Grid2;
|
protected global::FineUIPro.Grid Grid2;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Label3 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::System.Web.UI.WebControls.Label Label3;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Window1 控件。
|
/// Window1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -69,14 +69,14 @@
|
||||||
<Reference Include="Microsoft.IdentityModel.Abstractions, Version=7.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.IdentityModel.Abstractions, Version=7.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Microsoft.IdentityModel.Abstractions.7.6.0\lib\net461\Microsoft.IdentityModel.Abstractions.dll</HintPath>
|
<HintPath>..\packages\Microsoft.IdentityModel.Abstractions.7.6.0\lib\net461\Microsoft.IdentityModel.Abstractions.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Microsoft.IdentityModel.JsonWebTokens, Version=6.22.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.IdentityModel.JsonWebTokens, Version=7.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Microsoft.IdentityModel.JsonWebTokens.6.22.1\lib\net461\Microsoft.IdentityModel.JsonWebTokens.dll</HintPath>
|
<HintPath>..\packages\Microsoft.IdentityModel.JsonWebTokens.7.6.0\lib\net461\Microsoft.IdentityModel.JsonWebTokens.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Microsoft.IdentityModel.Logging, Version=7.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.IdentityModel.Logging, Version=7.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Microsoft.IdentityModel.Logging.7.6.0\lib\net461\Microsoft.IdentityModel.Logging.dll</HintPath>
|
<HintPath>..\packages\Microsoft.IdentityModel.Logging.7.6.0\lib\net461\Microsoft.IdentityModel.Logging.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Microsoft.IdentityModel.Tokens, Version=6.22.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.IdentityModel.Tokens, Version=7.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Microsoft.IdentityModel.Tokens.6.22.1\lib\net461\Microsoft.IdentityModel.Tokens.dll</HintPath>
|
<HintPath>..\packages\Microsoft.IdentityModel.Tokens.7.6.0\lib\net461\Microsoft.IdentityModel.Tokens.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Microsoft.JScript" />
|
<Reference Include="Microsoft.JScript" />
|
||||||
<Reference Include="Microsoft.ReportViewer.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.ReportViewer.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||||
|
@ -125,8 +125,8 @@
|
||||||
<Reference Include="System.Data.Linq" />
|
<Reference Include="System.Data.Linq" />
|
||||||
<Reference Include="System.DirectoryServices" />
|
<Reference Include="System.DirectoryServices" />
|
||||||
<Reference Include="System.DirectoryServices.Protocols" />
|
<Reference Include="System.DirectoryServices.Protocols" />
|
||||||
<Reference Include="System.IdentityModel.Tokens.Jwt, Version=6.22.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="System.IdentityModel.Tokens.Jwt, Version=7.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\System.IdentityModel.Tokens.Jwt.6.22.1\lib\net461\System.IdentityModel.Tokens.Jwt.dll</HintPath>
|
<HintPath>..\packages\System.IdentityModel.Tokens.Jwt.7.6.0\lib\net461\System.IdentityModel.Tokens.Jwt.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.IO.Compression.FileSystem" />
|
<Reference Include="System.IO.Compression.FileSystem" />
|
||||||
<Reference Include="System.Management" />
|
<Reference Include="System.Management" />
|
||||||
|
@ -138,16 +138,16 @@
|
||||||
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.6.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Runtime.Serialization" />
|
<Reference Include="System.Runtime.Serialization" />
|
||||||
<Reference Include="System.ServiceModel" />
|
<Reference Include="System.ServiceModel" />
|
||||||
<Reference Include="System.Text.Encodings.Web, Version=4.0.5.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
<Reference Include="System.Text.Encodings.Web, Version=4.0.5.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\System.Text.Encodings.Web.4.7.2\lib\net461\System.Text.Encodings.Web.dll</HintPath>
|
<HintPath>..\packages\System.Text.Encodings.Web.4.7.2\lib\net461\System.Text.Encodings.Web.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Text.Json, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
<Reference Include="System.Text.Json, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\System.Text.Json.4.6.0\lib\net461\System.Text.Json.dll</HintPath>
|
<HintPath>..\packages\System.Text.Json.4.7.2\lib\net461\System.Text.Json.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
|
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ProjectView>ProjectFiles</ProjectView>
|
<ProjectView>ProjectFiles</ProjectView>
|
||||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||||
<UseIISExpress>true</UseIISExpress>
|
<UseIISExpress>true</UseIISExpress>
|
||||||
<Use64BitIISExpress>
|
<Use64BitIISExpress>
|
||||||
</Use64BitIISExpress>
|
</Use64BitIISExpress>
|
||||||
|
|
|
@ -32,10 +32,6 @@
|
||||||
Funs.RootPath = Server.MapPath("~/");
|
Funs.RootPath = Server.MapPath("~/");
|
||||||
// 日志文件所在目录
|
// 日志文件所在目录
|
||||||
ErrLogInfo.DefaultErrLogFullPath = Server.MapPath("~/ErrLog.txt");
|
ErrLogInfo.DefaultErrLogFullPath = Server.MapPath("~/ErrLog.txt");
|
||||||
Funs.ClientId = ConfigurationManager.AppSettings["clientId"];
|
|
||||||
Funs.ClientSecret = ConfigurationManager.AppSettings["clientSecret"];
|
|
||||||
Funs.Redirect_url = ConfigurationManager.AppSettings["redirect_url"];
|
|
||||||
|
|
||||||
Funs.SystemName = ConfigurationManager.AppSettings["SystemName"];
|
Funs.SystemName = ConfigurationManager.AppSettings["SystemName"];
|
||||||
Funs.ConnString = ConfigurationManager.ConnectionStrings["FCLDBConnectionString"].ConnectionString;
|
Funs.ConnString = ConfigurationManager.ConnectionStrings["FCLDBConnectionString"].ConnectionString;
|
||||||
}
|
}
|
||||||
|
@ -121,11 +117,10 @@
|
||||||
|
|
||||||
// 承包商资质提前3个过期提示
|
// 承包商资质提前3个过期提示
|
||||||
var queListOne = from x in Funs.DB.EMC_Contractor_Qualification
|
var queListOne = from x in Funs.DB.EMC_Contractor_Qualification
|
||||||
join y in Funs.DB.FC_SESRelatedData on x.FoId equals y.ID
|
where x.LimitEndDate != null
|
||||||
where x.LimitEndDate != null && y.FC_Status == "Valid"
|
&& x.LimitEndDate.Value.AddMonths(-3).Date <= DateTime.Now.Date
|
||||||
&& x.LimitEndDate.Value.AddMonths(-3).Date <= DateTime.Now.Date
|
&& x.LimitEndDate.Value.AddMonths(-3).AddDays(15).Date >= DateTime.Now.Date
|
||||||
&& x.LimitEndDate.Value.AddMonths(-3).AddDays(15).Date >= DateTime.Now.Date
|
select x;
|
||||||
select x;
|
|
||||||
if (queListOne.Count() > 0)
|
if (queListOne.Count() > 0)
|
||||||
{
|
{
|
||||||
System.Timers.Timer aTimer = new System.Timers.Timer();
|
System.Timers.Timer aTimer = new System.Timers.Timer();
|
||||||
|
@ -139,11 +134,10 @@
|
||||||
|
|
||||||
// 承包商资质提前1个过期提示
|
// 承包商资质提前1个过期提示
|
||||||
var queListTwo = from x in Funs.DB.EMC_Contractor_Qualification
|
var queListTwo = from x in Funs.DB.EMC_Contractor_Qualification
|
||||||
join y in Funs.DB.FC_SESRelatedData on x.FoId equals y.ID
|
where x.LimitEndDate != null
|
||||||
where x.LimitEndDate != null && y.FC_Status == "Valid"
|
|
||||||
&& x.LimitEndDate.Value.AddMonths(-1).Date <= DateTime.Now.Date
|
&& x.LimitEndDate.Value.AddMonths(-1).Date <= DateTime.Now.Date
|
||||||
&& x.LimitEndDate.Value.AddMonths(-1).AddDays(15).Date >= DateTime.Now.Date
|
&& x.LimitEndDate.Value.AddMonths(-1).AddDays(15).Date >= DateTime.Now.Date
|
||||||
select x;
|
select x;
|
||||||
if (queListTwo.Count() > 0)
|
if (queListTwo.Count() > 0)
|
||||||
{
|
{
|
||||||
System.Timers.Timer aTimer = new System.Timers.Timer();
|
System.Timers.Timer aTimer = new System.Timers.Timer();
|
||||||
|
@ -182,9 +176,8 @@
|
||||||
{
|
{
|
||||||
// 承包商资质提前3个过期提示
|
// 承包商资质提前3个过期提示
|
||||||
var queList = from x in Funs.DB.EMC_Contractor_Qualification
|
var queList = from x in Funs.DB.EMC_Contractor_Qualification
|
||||||
join y in Funs.DB.FC_SESRelatedData on x.FoId equals y.ID
|
where x.LimitEndDate != null
|
||||||
where x.LimitEndDate != null && y.FC_Status == "Valid"
|
&& x.LimitEndDate.Value.AddMonths(-3).Date <= DateTime.Now.Date
|
||||||
&& x.LimitEndDate.Value.AddMonths(-3).Date <= DateTime.Now.Date
|
|
||||||
&& x.LimitEndDate.Value.AddMonths(-3).AddDays(15).Date >= DateTime.Now.Date
|
&& x.LimitEndDate.Value.AddMonths(-3).AddDays(15).Date >= DateTime.Now.Date
|
||||||
select x;
|
select x;
|
||||||
if (queList.Count() > 0)
|
if (queList.Count() > 0)
|
||||||
|
@ -440,9 +433,8 @@
|
||||||
{
|
{
|
||||||
// 承包商资质提前1个过期提示
|
// 承包商资质提前1个过期提示
|
||||||
var queList = from x in Funs.DB.EMC_Contractor_Qualification
|
var queList = from x in Funs.DB.EMC_Contractor_Qualification
|
||||||
join y in Funs.DB.FC_SESRelatedData on x.FoId equals y.ID
|
where x.LimitEndDate != null
|
||||||
where x.LimitEndDate != null && y.FC_Status == "Valid"
|
&& x.LimitEndDate.Value.AddMonths(-1).Date <= DateTime.Now.Date
|
||||||
&& x.LimitEndDate.Value.AddMonths(-1).Date <= DateTime.Now.Date
|
|
||||||
&& x.LimitEndDate.Value.AddMonths(-1).AddDays(15).Date >= DateTime.Now.Date
|
&& x.LimitEndDate.Value.AddMonths(-1).AddDays(15).Date >= DateTime.Now.Date
|
||||||
select x;
|
select x;
|
||||||
if (queList.Count() > 0)
|
if (queList.Count() > 0)
|
||||||
|
|
|
@ -224,10 +224,10 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
$("#faskloginUrl").click(function () {
|
$("#faskloginUrl").click(function () {
|
||||||
let clientId = '<%= BLL.Funs.ClientId %>';
|
let clientId = "9379ad91-eef9-4956-a1ee-8b04bb3d42c8";
|
||||||
let url = "https://login.microsoftonline.com/ecaa386b-c8df-4ce0-ad01-740cbdb5ba55/oauth2/v2.0/authorize";
|
let url = "https://login.microsoftonline.com/ecaa386b-c8df-4ce0-ad01-740cbdb5ba55/oauth2/v2.0/authorize";
|
||||||
let response_type = "code";
|
let response_type = "code";
|
||||||
let redirect_url = encodeURIComponent('<%= BLL.Funs.Redirect_url %>');
|
let redirect_url = encodeURIComponent("https://fcl-test.basf-ypc.net.cn/ssocallback.aspx");
|
||||||
let scope = "openid profile";
|
let scope = "openid profile";
|
||||||
let response_mode = "query";
|
let response_mode = "query";
|
||||||
let state = "state123";
|
let state = "state123";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!--
|
<!--
|
||||||
有关如何配置 ASP.NET 应用程序的详细消息,请访问
|
有关如何配置 ASP.NET 应用程序的详细消息,请访问
|
||||||
|
|
||||||
|
@ -16,9 +16,6 @@
|
||||||
<!--连接字符串-->
|
<!--连接字符串-->
|
||||||
<!--<add key="ConnectionString" value="Server=.;Database=FCLDB;Integrated Security=False; User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>-->
|
<!--<add key="ConnectionString" value="Server=.;Database=FCLDB;Integrated Security=False; User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>-->
|
||||||
<!--系统名称-->
|
<!--系统名称-->
|
||||||
<add key="clientId" value="db8ff79d-c3b5-4f08-b56d-0e1913a13bbb"/>
|
|
||||||
<add key="clientSecret" value="N5E8Q~gvFJ665-GZGD7AHfo6sZNzVTQcdBgN4diX"/>
|
|
||||||
<add key="redirect_url" value="https://fcl.basf-ypc.net.cn/ssocallback.aspx"/>
|
|
||||||
<add key="SystemName" value="FC"/>
|
<add key="SystemName" value="FC"/>
|
||||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||||
<add key="aspnet:MaxHttpCollectionKeys" value="50000"/>
|
<add key="aspnet:MaxHttpCollectionKeys" value="50000"/>
|
||||||
|
@ -87,7 +84,7 @@
|
||||||
<error redirect="https://localhost/FCL/OperationError.aspx" statusCode="404"/>
|
<error redirect="https://localhost/FCL/OperationError.aspx" statusCode="404"/>
|
||||||
</customErrors>
|
</customErrors>
|
||||||
<!--Unencrypted __VIEWSTATE parameter,viewstate 保存没有加密,解决方法-->
|
<!--Unencrypted __VIEWSTATE parameter,viewstate 保存没有加密,解决方法-->
|
||||||
<machineKey validation="3DES" compatibilityMode="Framework20SP1"/>
|
<machineKey validation="3DES"/>
|
||||||
<!--Body Parameters Accepted in Query:https才能访问-->
|
<!--Body Parameters Accepted in Query:https才能访问-->
|
||||||
<!--<httpCookies httpOnlyCookies="true" requireSSL="true"/>-->
|
<!--<httpCookies httpOnlyCookies="true" requireSSL="true"/>-->
|
||||||
</system.web>
|
</system.web>
|
||||||
|
@ -140,34 +137,6 @@
|
||||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
|
||||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0"/>
|
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0"/>
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1"/>
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0"/>
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2"/>
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Microsoft.IdentityModel.Logging" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-7.6.0.0" newVersion="7.6.0.0"/>
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="System.Text.Encodings.Web" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-4.0.5.1" newVersion="4.0.5.1"/>
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
|
|
||||||
</dependentAssembly>
|
|
||||||
</assemblyBinding>
|
</assemblyBinding>
|
||||||
</runtime>
|
</runtime>
|
||||||
</configuration>
|
</configuration>
|
|
@ -2,9 +2,9 @@
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Microsoft.Bcl.AsyncInterfaces" version="1.1.0" targetFramework="net461" />
|
<package id="Microsoft.Bcl.AsyncInterfaces" version="1.1.0" targetFramework="net461" />
|
||||||
<package id="Microsoft.IdentityModel.Abstractions" version="7.6.0" targetFramework="net461" />
|
<package id="Microsoft.IdentityModel.Abstractions" version="7.6.0" targetFramework="net461" />
|
||||||
<package id="Microsoft.IdentityModel.JsonWebTokens" version="6.22.1" targetFramework="net461" />
|
<package id="Microsoft.IdentityModel.JsonWebTokens" version="7.6.0" targetFramework="net461" />
|
||||||
<package id="Microsoft.IdentityModel.Logging" version="7.6.0" targetFramework="net461" />
|
<package id="Microsoft.IdentityModel.Logging" version="7.6.0" targetFramework="net461" />
|
||||||
<package id="Microsoft.IdentityModel.Tokens" version="6.22.1" targetFramework="net461" />
|
<package id="Microsoft.IdentityModel.Tokens" version="7.6.0" targetFramework="net461" />
|
||||||
<package id="Microsoft.ReportingServices.ReportViewerControl.WebForms" version="150.1484.0" targetFramework="net461" />
|
<package id="Microsoft.ReportingServices.ReportViewerControl.WebForms" version="150.1484.0" targetFramework="net461" />
|
||||||
<package id="Microsoft.SqlServer.Types" version="14.0.1016.290" targetFramework="net40" />
|
<package id="Microsoft.SqlServer.Types" version="14.0.1016.290" targetFramework="net40" />
|
||||||
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net461" />
|
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net461" />
|
||||||
|
@ -12,12 +12,12 @@
|
||||||
<package id="Portable.BouncyCastle" version="1.8.9" targetFramework="net461" />
|
<package id="Portable.BouncyCastle" version="1.8.9" targetFramework="net461" />
|
||||||
<package id="SharpZipLib" version="1.3.2" targetFramework="net461" />
|
<package id="SharpZipLib" version="1.3.2" targetFramework="net461" />
|
||||||
<package id="System.Buffers" version="4.5.1" targetFramework="net461" />
|
<package id="System.Buffers" version="4.5.1" targetFramework="net461" />
|
||||||
<package id="System.IdentityModel.Tokens.Jwt" version="6.22.1" targetFramework="net461" />
|
<package id="System.IdentityModel.Tokens.Jwt" version="7.6.0" targetFramework="net461" />
|
||||||
<package id="System.Memory" version="4.5.5" targetFramework="net461" />
|
<package id="System.Memory" version="4.5.5" targetFramework="net461" />
|
||||||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net461" />
|
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net461" />
|
||||||
<package id="System.Runtime.CompilerServices.Unsafe" version="4.6.0" targetFramework="net461" />
|
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net461" />
|
||||||
<package id="System.Text.Encodings.Web" version="4.7.2" targetFramework="net461" />
|
<package id="System.Text.Encodings.Web" version="4.7.2" targetFramework="net461" />
|
||||||
<package id="System.Text.Json" version="4.6.0" targetFramework="net461" />
|
<package id="System.Text.Json" version="4.7.2" targetFramework="net461" />
|
||||||
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net461" />
|
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net461" />
|
||||||
<package id="System.ValueTuple" version="4.5.0" targetFramework="net461" />
|
<package id="System.ValueTuple" version="4.5.0" targetFramework="net461" />
|
||||||
</packages>
|
</packages>
|
|
@ -1,12 +1,19 @@
|
||||||
using BLL;
|
using BLL;
|
||||||
using BLL.Common;
|
using BLL.Common;
|
||||||
|
using Microsoft.IdentityModel.Logging;
|
||||||
using Microsoft.IdentityModel.Tokens;
|
using Microsoft.IdentityModel.Tokens;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
|
using Org.BouncyCastle.Utilities.Encoders;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IdentityModel.Tokens.Jwt;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Web;
|
||||||
using System.Web.Security;
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
namespace FineUIPro.Web
|
namespace FineUIPro.Web
|
||||||
{
|
{
|
||||||
|
@ -17,7 +24,7 @@ namespace FineUIPro.Web
|
||||||
{
|
{
|
||||||
|
|
||||||
this.code = Request.Params["code"];
|
this.code = Request.Params["code"];
|
||||||
//BLL.ErrLogInfo.WriteLog($"获取code={this.code}");
|
BLL.ErrLogInfo.WriteLog($"获取code={this.code}");
|
||||||
if (string.IsNullOrEmpty(this.code))
|
if (string.IsNullOrEmpty(this.code))
|
||||||
{
|
{
|
||||||
Response.Redirect("~/login.aspx");
|
Response.Redirect("~/login.aspx");
|
||||||
|
@ -36,22 +43,23 @@ namespace FineUIPro.Web
|
||||||
|
|
||||||
private AccessTokenModel GetAccessToken(string _code)
|
private AccessTokenModel GetAccessToken(string _code)
|
||||||
{
|
{
|
||||||
string clientId = Funs.ClientId;
|
string clientId = "9379ad91-eef9-4956-a1ee-8b04bb3d42c8";
|
||||||
string clientSecret = Funs.ClientSecret;
|
string clientSecret = "iLu8Q~4DRYAn~sMjvO1j.tgRERFWhILvLYRPNc9S";
|
||||||
string redirect_url = Funs.Redirect_url;
|
|
||||||
string grant_type = "authorization_code";
|
string grant_type = "authorization_code";
|
||||||
|
string redirect_url = "https://fcl-test.basf-ypc.net.cn/ssocallback.aspx";
|
||||||
string scope = "profile openid";
|
string scope = "profile openid";
|
||||||
string baseUrl = $"https://login.microsoftonline.com/ecaa386b-c8df-4ce0-ad01-740cbdb5ba55/oauth2/v2.0/token";
|
string baseUrl = $"https://login.microsoftonline.com/ecaa386b-c8df-4ce0-ad01-740cbdb5ba55/oauth2/v2.0/token";
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string postData = $"code={code}&client_id={clientId}&client_secret={clientSecret}&grant_type={grant_type}&redirect_uri={redirect_url}&scope={scope}";
|
string postData = $"code={code}&client_id={clientId}&client_secret={clientSecret}&grant_type={grant_type}&redirect_uri={redirect_url}&scope={scope}";
|
||||||
//BLL.ErrLogInfo.WriteLog($"请求参数postData={postData}");
|
BLL.ErrLogInfo.WriteLog($"请求参数postData={postData}");
|
||||||
string result = BLL.Common.HttpHelper.HttpPost(baseUrl, postData);
|
string result = BLL.Common.HttpHelper.HttpPost(baseUrl, postData);
|
||||||
//BLL.ErrLogInfo.WriteLog($"请求API Result={result}");
|
BLL.ErrLogInfo.WriteLog($"请求API Result={result}");
|
||||||
var Data = JsonConvert.DeserializeObject<AccessTokenModel>(result);
|
var Data = JsonConvert.DeserializeObject<AccessTokenModel>(result);
|
||||||
|
|
||||||
return Data;
|
return Data;
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -70,7 +78,7 @@ namespace FineUIPro.Web
|
||||||
string[] toke_split= token.id_token.Split('.');
|
string[] toke_split= token.id_token.Split('.');
|
||||||
var header = Encoding.UTF8.GetString(Base64UrlEncoder.DecodeBytes(toke_split[0]));
|
var header = Encoding.UTF8.GetString(Base64UrlEncoder.DecodeBytes(toke_split[0]));
|
||||||
var clamis= Encoding.UTF8.GetString(Base64UrlEncoder.DecodeBytes(toke_split[1]));
|
var clamis= Encoding.UTF8.GetString(Base64UrlEncoder.DecodeBytes(toke_split[1]));
|
||||||
//BLL.ErrLogInfo.WriteLog("clamis=" + clamis);
|
BLL.ErrLogInfo.WriteLog("clamis=" + clamis);
|
||||||
JObject jo = JObject.Parse(clamis);
|
JObject jo = JObject.Parse(clamis);
|
||||||
if (jo["cn"] != null)
|
if (jo["cn"] != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9763,9 +9763,7 @@ namespace Model
|
||||||
|
|
||||||
private System.Nullable<System.DateTime> _CreateDate;
|
private System.Nullable<System.DateTime> _CreateDate;
|
||||||
|
|
||||||
private System.Nullable<bool> _IsUserEvaluated;
|
private System.Nullable<bool> _IsEvaluated;
|
||||||
|
|
||||||
private System.Nullable<bool> _IsDepEvaluated;
|
|
||||||
|
|
||||||
private EntityRef<Base_Depart> _Base_Depart;
|
private EntityRef<Base_Depart> _Base_Depart;
|
||||||
|
|
||||||
|
@ -9815,10 +9813,8 @@ namespace Model
|
||||||
partial void OnRelatedSesMailIsSendChanged();
|
partial void OnRelatedSesMailIsSendChanged();
|
||||||
partial void OnCreateDateChanging(System.Nullable<System.DateTime> value);
|
partial void OnCreateDateChanging(System.Nullable<System.DateTime> value);
|
||||||
partial void OnCreateDateChanged();
|
partial void OnCreateDateChanged();
|
||||||
partial void OnIsUserEvaluatedChanging(System.Nullable<bool> value);
|
partial void OnIsEvaluatedChanging(System.Nullable<bool> value);
|
||||||
partial void OnIsUserEvaluatedChanged();
|
partial void OnIsEvaluatedChanged();
|
||||||
partial void OnIsDepEvaluatedChanging(System.Nullable<bool> value);
|
|
||||||
partial void OnIsDepEvaluatedChanged();
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public EMC_Punishment()
|
public EMC_Punishment()
|
||||||
|
@ -10236,42 +10232,22 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUserEvaluated", DbType="Bit")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsEvaluated", DbType="Bit")]
|
||||||
public System.Nullable<bool> IsUserEvaluated
|
public System.Nullable<bool> IsEvaluated
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return this._IsUserEvaluated;
|
return this._IsEvaluated;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if ((this._IsUserEvaluated != value))
|
if ((this._IsEvaluated != value))
|
||||||
{
|
{
|
||||||
this.OnIsUserEvaluatedChanging(value);
|
this.OnIsEvaluatedChanging(value);
|
||||||
this.SendPropertyChanging();
|
this.SendPropertyChanging();
|
||||||
this._IsUserEvaluated = value;
|
this._IsEvaluated = value;
|
||||||
this.SendPropertyChanged("IsUserEvaluated");
|
this.SendPropertyChanged("IsEvaluated");
|
||||||
this.OnIsUserEvaluatedChanged();
|
this.OnIsEvaluatedChanged();
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsDepEvaluated", DbType="Bit")]
|
|
||||||
public System.Nullable<bool> IsDepEvaluated
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._IsDepEvaluated;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._IsDepEvaluated != value))
|
|
||||||
{
|
|
||||||
this.OnIsDepEvaluatedChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._IsDepEvaluated = value;
|
|
||||||
this.SendPropertyChanged("IsDepEvaluated");
|
|
||||||
this.OnIsDepEvaluatedChanged();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18734,8 +18710,6 @@ namespace Model
|
||||||
|
|
||||||
private string _ViolationDegree;
|
private string _ViolationDegree;
|
||||||
|
|
||||||
private string _ShowViolationDegree;
|
|
||||||
|
|
||||||
public FC_SESReportView()
|
public FC_SESReportView()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -19059,22 +19033,6 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShowViolationDegree", DbType="NChar(1)")]
|
|
||||||
public string ShowViolationDegree
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._ShowViolationDegree;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._ShowViolationDegree != value))
|
|
||||||
{
|
|
||||||
this._ShowViolationDegree = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.FC_SignedContracts")]
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.FC_SignedContracts")]
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<IISExpressWindowsAuthentication />
|
<IISExpressWindowsAuthentication />
|
||||||
<IISExpressUseClassicPipelineMode />
|
<IISExpressUseClassicPipelineMode />
|
||||||
<UseGlobalApplicationHostFile />
|
<UseGlobalApplicationHostFile />
|
||||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ProjectExtensions>
|
<ProjectExtensions>
|
||||||
<VisualStudio>
|
<VisualStudio>
|
||||||
|
|
Loading…
Reference in New Issue