2022-03-15 17:36:38 +08:00
|
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckContentEdit1.aspx.cs" Inherits="FineUIPro.Web.OfficeCheck.Check.CheckContentEdit1" %>
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head runat="server">
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<title><asp:Literal runat="server" Text="<%$ Resources:Lan,OC_CheckInfo_Label1_Text%>"/></title>
|
2022-03-15 17:36:38 +08:00
|
|
|
|
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<script src="../res/js/jquery-3.3.1.min.js" type="text/javascript"></script>
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
.f-grid-row .f-grid-cell-inner {
|
|
|
|
|
white-space: normal;
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<form id="form1" runat="server">
|
|
|
|
|
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
|
|
|
|
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" MarginBottom="5px"
|
|
|
|
|
BodyPadding="1px" runat="server" RedStarPosition="BeforeText" LabelAlign="Left" EnableTableStyle="true">
|
|
|
|
|
<Toolbars>
|
|
|
|
|
<f:Toolbar ID="Toolbar5" runat="server" ToolbarAlign="Right">
|
|
|
|
|
<Items>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:Label runat="server" ID="lbTitle" Text="<%$ Resources:Lan,OC_CheckInfo_Label1_Text%>"></f:Label>
|
2022-03-15 17:36:38 +08:00
|
|
|
|
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<%--<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="<%$ Resources:Lan,OC_ProjectEvaluation_btnOut_ToolTip%>" Text="<%$ Resources:Lan,OC_ProjectEvaluation_btnOut_ToolTip%>" Icon="FolderUp"
|
2022-03-15 17:36:38 +08:00
|
|
|
|
EnableAjax="false" DisableControlBeforePostBack="false">
|
|
|
|
|
</f:Button>--%>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:Button ID="btnSave" Icon="<%$ Resources:Lan,NoticeEdit_btnSave_Icon%>" runat="server" Text="<%$ Resources:Lan,OC_ProjectEvaluationEdit_btnSave_ToolTip%>" OnClick="btnSave_Click" ValidateForms="SimpleForm1" Hidden="true">
|
2022-03-15 17:36:38 +08:00
|
|
|
|
</f:Button>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:Toolbar>
|
|
|
|
|
</Toolbars>
|
|
|
|
|
<Rows>
|
|
|
|
|
<f:FormRow>
|
|
|
|
|
<Items>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:DropDownList ID="drpSubjectProject" runat="server" Height="22px" Label="<%$ Resources:Lan,OC_ProjectEvaluationEdit_txtProjectName_Label%>"
|
2022-03-15 17:36:38 +08:00
|
|
|
|
EnableEdit="true" Required="true" ShowRedStar="true" LabelWidth="90px">
|
|
|
|
|
</f:DropDownList>
|
|
|
|
|
<f:Label ID="lbTemp" runat="server"></f:Label>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:FormRow>
|
|
|
|
|
<f:FormRow>
|
|
|
|
|
<Items>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="<%$ Resources:Lan,OC_CheckContentEdit1_Grid1_Column_CheckStandard_HeaderText%>" EnableCollapse="false" runat="server"
|
2022-03-15 17:36:38 +08:00
|
|
|
|
BoxFlex="1" DataKeyNames="ID" AllowCellEditing="true" EnableColumnLines="true"
|
|
|
|
|
ClicksToEdit="1" DataIDField="ID" AllowSorting="true" SortField="SortIndex" SortDirection="ASC"
|
|
|
|
|
OnSort="Grid1_Sort" EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
|
|
|
|
|
<Columns>
|
|
|
|
|
<f:RenderField HeaderText="主键" ColumnID="ID" DataField="ID" Hidden="true">
|
|
|
|
|
</f:RenderField>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:RenderField HeaderText="<%$ Resources:Lan,OC_ProjectEvaluationEdit_Label1_Text%>" ColumnID="SortIndex" DataField="SortIndex"
|
2022-03-15 17:36:38 +08:00
|
|
|
|
HeaderTextAlign="Center" TextAlign="Center" Width="60px">
|
|
|
|
|
</f:RenderField>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:RenderField HeaderText="<%$ Resources:Lan,OC_CheckContentEdit1_Grid1_Column_CheckItem_HeaderText%>" ColumnID="CheckItem" DataField="CheckItem"
|
2022-03-15 17:36:38 +08:00
|
|
|
|
HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
|
|
|
|
</f:RenderField>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:RenderField HeaderText="<%$ Resources:Lan,OC_CheckContentEdit1_Grid1_Column_CheckStandard_HeaderText%>" ColumnID="CheckStandard" DataField="CheckStandard"
|
2022-03-15 17:36:38 +08:00
|
|
|
|
HeaderTextAlign="Center" TextAlign="Left" Width="250px" ExpandUnusedSpace="true">
|
|
|
|
|
</f:RenderField>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:RenderField HeaderText="<%$ Resources:Lan,OC_CheckContentEdit1_Grid1_Column_CheckMethod_HeaderText%>" ColumnID="CheckMethod" DataField="CheckMethod"
|
2022-03-15 17:36:38 +08:00
|
|
|
|
HeaderTextAlign="Center" TextAlign="Left" Width="130px" >
|
|
|
|
|
</f:RenderField>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:RenderField HeaderText="<%$ Resources:Lan,OC_CheckInfo_lblCheckResult_Label%>" ColumnID="CheckResult" DataField="CheckResult"
|
2022-03-15 17:36:38 +08:00
|
|
|
|
HeaderTextAlign="Center" TextAlign="Left" Width="160px">
|
|
|
|
|
<Editor>
|
|
|
|
|
<f:TextArea ID="txtCheckResult" runat="server">
|
|
|
|
|
</f:TextArea>
|
|
|
|
|
</Editor>
|
|
|
|
|
</f:RenderField>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:RenderField HeaderText="<%$ Resources:Lan,OC_CheckContentEdit1_Grid1_Column_BaseScore_HeaderText%>" ColumnID="BaseScore" DataField="BaseScore"
|
2022-03-15 17:36:38 +08:00
|
|
|
|
HeaderTextAlign="Center" TextAlign="Left" Width="70px" FieldType="Double">
|
|
|
|
|
<Editor>
|
|
|
|
|
<f:NumberBox ID="txtBaseScore" runat="server" NoDecimal="false" NoNegative="true" DecimalPrecision="2">
|
|
|
|
|
</f:NumberBox>
|
|
|
|
|
</Editor>
|
|
|
|
|
</f:RenderField>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:RenderField HeaderText="<%$ Resources:Lan,OC_CheckContentEdit1_Grid1_Column_DeletScore_HeaderText%>" ColumnID="DeletScore" DataField="DeletScore"
|
2022-03-15 17:36:38 +08:00
|
|
|
|
HeaderTextAlign="Center" TextAlign="Left" Width="70px" FieldType="Double">
|
|
|
|
|
<Editor>
|
|
|
|
|
<f:NumberBox ID="txtDeletScore" runat="server" NoDecimal="false" NoNegative="true" DecimalPrecision="2">
|
|
|
|
|
</f:NumberBox>
|
|
|
|
|
</Editor>
|
|
|
|
|
</f:RenderField>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:RenderField HeaderText="<%$ Resources:Lan,OC_ProjectEvaluationEdit_Label5_Text%>" ColumnID="GetScore" DataField="GetScore"
|
2022-03-15 17:36:38 +08:00
|
|
|
|
HeaderTextAlign="Center" TextAlign="Left" Width="70px" FieldType="Double">
|
|
|
|
|
</f:RenderField>
|
|
|
|
|
</Columns>
|
|
|
|
|
<Listeners>
|
|
|
|
|
<%-- <f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />--%>
|
|
|
|
|
<f:Listener Event="afteredit" Handler="onGridAfterEdit" />
|
|
|
|
|
<f:Listener Event="dataload" Handler="onGridDataLoad" />
|
|
|
|
|
</Listeners>
|
|
|
|
|
</f:Grid>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:FormRow>
|
|
|
|
|
<f:FormRow>
|
|
|
|
|
<Items>
|
|
|
|
|
<f:Label ID="lbTotal100Score" runat="server"></f:Label>
|
|
|
|
|
<f:HiddenField ID="hdTotalDeletScore6_7" runat="server"></f:HiddenField>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:FormRow>
|
|
|
|
|
<f:FormRow ColumnWidths="66% 34%">
|
|
|
|
|
<Items>
|
|
|
|
|
<f:Label ID="lbTotalLastScore" runat="server"></f:Label>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:Label ID="lbEvaluationResult" runat="server" Label="<%$ Resources:Lan,OC_CheckContentEdit1_lbEvaluationResult_Label%>" LabelWidth="90px" ToolTip="合格(80分以上);基本合格(71-79分);不合格(70分以下。"></f:Label>
|
2022-03-15 17:36:38 +08:00
|
|
|
|
</Items>
|
|
|
|
|
</f:FormRow>
|
|
|
|
|
<f:FormRow>
|
|
|
|
|
<Items>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:TextBox ID="txtCheckMan" runat="server" Label="<%$ Resources:Lan,OC_RectifyEdit_txtCheckPerson_Label%>" LabelWidth="90px">
|
2022-03-15 17:36:38 +08:00
|
|
|
|
</f:TextBox>
|
|
|
|
|
<f:Label ID="Label1" runat="server"></f:Label>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="<%$ Resources:Lan,OC_CheckContentEdit1_txtSubjectUnitDate_Label%>" ID="txtCheckDate" LabelWidth="90px">
|
2022-03-15 17:36:38 +08:00
|
|
|
|
</f:DatePicker>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:FormRow>
|
|
|
|
|
<f:FormRow>
|
|
|
|
|
<Items>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:TextBox ID="txtCheckLeader" runat="server" Label="<%$ Resources:Lan,OC_CheckNoticeEdit_txtCheckTeamLeaderName_Label%>" LabelWidth="90px">
|
2022-03-15 17:36:38 +08:00
|
|
|
|
</f:TextBox>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:TextBox ID="txtSubjectUnitMan" runat="server" Label="<%$ Resources:Lan,OC_CheckNotice_txtSubjectUnitMan_Label%>" LabelWidth="130px">
|
2022-03-15 17:36:38 +08:00
|
|
|
|
</f:TextBox>
|
2025-02-24 00:29:01 +08:00
|
|
|
|
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="<%$ Resources:Lan,OC_CheckContentEdit1_txtSubjectUnitDate_Label%>" ID="txtSubjectUnitDate" LabelWidth="90px">
|
2022-03-15 17:36:38 +08:00
|
|
|
|
</f:DatePicker>
|
|
|
|
|
</Items>
|
|
|
|
|
</f:FormRow>
|
|
|
|
|
</Rows>
|
|
|
|
|
</f:Form>
|
|
|
|
|
</form>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function reloadGrid() {
|
|
|
|
|
__doPostBack(null, 'reloadGrid');
|
|
|
|
|
}
|
|
|
|
|
//合并列
|
|
|
|
|
function onGridDataLoad(event) {
|
|
|
|
|
this.mergeColumns(['SortIndex', 'CheckItem', 'CheckMethod', 'CheckResult','BaseScore','DeletScore','GetScore'], {
|
|
|
|
|
dependsFirst: true
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function onGridAfterEdit(event, value, params) {
|
|
|
|
|
var me = this, columnId = params.columnId, rowId = params.rowId;
|
|
|
|
|
if (columnId === 'DeletScore' || columnId === 'BaseScore') {
|
|
|
|
|
var baseS = me.getCellValue(rowId, 'BaseScore');
|
|
|
|
|
var deleteS = me.getCellValue(rowId, 'DeletScore');
|
|
|
|
|
me.updateCellValue(rowId, 'GetScore', (baseS - deleteS).toFixed(2));
|
|
|
|
|
}
|
|
|
|
|
//updateSummary();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//function updateSummary() {
|
|
|
|
|
// var me = F(grid1ClientID), baseScoreTotal = 0, deletScoreTotal = 0, getScoreTotal = 0;
|
|
|
|
|
// me.getRowEls().each(function (index, tr) {
|
|
|
|
|
// baseScoreTotal += me.getCellValue(tr, 'BaseScore');
|
|
|
|
|
// deletScoreTotal += me.getCellValue(tr, 'DeletScore');
|
|
|
|
|
// getScoreTotal += me.getCellValue(tr, 'GetScore');
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// // 第三个参数 true,强制更新,不显示左上角的更改标识
|
|
|
|
|
// me.updateSummaryCellValue('CheckItem', '合计分', true);
|
|
|
|
|
// me.updateSummaryCellValue('BaseScore', baseScoreTotal, true);
|
|
|
|
|
// me.updateSummaryCellValue('DeletScore', deletScoreTotal, true);
|
|
|
|
|
// me.updateSummaryCellValue('GetScore', getScoreTotal, true);
|
|
|
|
|
|
|
|
|
|
// var pValue=((getScoreTotal / baseScoreTotal) * 100).toFixed(2);
|
|
|
|
|
// var lab100 = "本表百分制得分 = (实查项实得分之和/实查项应得满分之和*100) " + pValue + " 分";
|
|
|
|
|
// F(lbTotal100ScoreClientID).setValue(lab100);
|
|
|
|
|
|
|
|
|
|
// var lastScore = pValue - F(hdTotalDeletScore6_7ClientID).value;
|
|
|
|
|
// var lablast = "综合评定得分 = 本表得分 - 负面清单罚分 = " + lastScore + " 分";
|
|
|
|
|
// F(lbTotalLastScoreClientID).setValue(lablast);
|
|
|
|
|
|
|
|
|
|
// var str= "";
|
|
|
|
|
// if (lastScore >= 80) {
|
2025-02-24 00:29:01 +08:00
|
|
|
|
// str = "<%$ Resources:Lan,OC_RectifyEdit_Grid1_Column_IsRectify_HeaderText%>";
|
2022-03-15 17:36:38 +08:00
|
|
|
|
// }
|
|
|
|
|
// else if (lastScore >= 71 && lastScore <= 79) {
|
|
|
|
|
// str = "基本合格";
|
|
|
|
|
// }
|
|
|
|
|
// else if (lastScore <= 70) {
|
|
|
|
|
// str = "不合格";
|
|
|
|
|
// }
|
|
|
|
|
// F(lbEvaluationResultClientID).setValue(str);
|
|
|
|
|
//}
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|