SGGL_JT/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyMonthExamineEdit.aspx

210 lines
12 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SafetyMonthExamineEdit.aspx.cs" Inherits="FineUIPro.Web.Customization.CNCCG.HSSE.Check.SafetyMonthExamineEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>添加月度考核</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.labcenter {
text-align: center;
}
.f-grid-row .f-grid-cell-inner {
white-space: normal;
word-break: break-all;
}
.f-grid-row.red {
background-color: #FF7575;
background-image: none;
}
.fontred {
color: #FF7575;
background-image: none;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:ContentPanel ID="ContentPanel2" Title="基础信息" ShowBorder="true"
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
runat="server">
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:DropDownList ID="drpAjy" runat="server" ShowRedStar="true" Label="群安员姓名" Required="true" LabelAlign="Right" EnableEdit="true"
>
</f:DropDownList>
<f:DatePicker runat="server" Required="true" DateFormatString="yyyy-MM" Label="选择考核年月" EmptyText="请选择考核年月"
ID="dpExamineDate" DisplayType="Month" ShowTodayButton="false" LabelWidth="120px">
</f:DatePicker>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</f:ContentPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:ContentPanel ID="ContentPanel1" Title="考核内容信息(单击考核得分列即可编辑数据)" ShowBorder="true"
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
runat="server">
<f:Grid ID="GridKhnr" IsFluid="true" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" runat="server"
DataKeyNames="ScoreFz,ScoreDf" EnableColumnLines="true" ClicksToEdit="1" AllowCellEditing="true"
EnableSummary="true" SummaryPosition="Flow"
>
<Columns>
<f:RenderField Width="100px" DataField="ScoreIndex" HeaderTextAlign="Center" HeaderText="序号" TextAlign="Center" SummaryText="合计"/>
<f:RenderField Width="400px" DataField="ScoreNr" HeaderTextAlign="Center" HeaderText="考核内容" TextAlign="Left" ExpandUnusedSpace="true"
SummaryText="评定结果:优秀、良好、合格、不合格 优秀90以上<br/>良好80-90 合格70-80 不合格70以下"/>
<f:RenderField Width="100px" DataField="ScoreFz" ColumnID="ScoreFz" HeaderTextAlign="Center" HeaderText="考核分值" TextAlign="Center"
SummaryText="100"/>
<f:RenderField Width="150px" DataField="ScoreFf" ColumnID="ScoreFf" HeaderTextAlign="Center" HeaderText="考核方法"
SummaryText="/"/>
<f:RenderField ColumnID="ScoreDf" DataField="ScoreDf" FieldType="Int" ExpandUnusedSpace="true" Width="150px" HeaderText="考核得分">
<Editor>
<f:NumberBox ID="tbxScore" Required="true" runat="server" Text="0" >
</f:NumberBox>
</Editor>
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="afteredit" Handler="onGridAfterEdit" />
</Listeners>
</f:Grid>
</f:ContentPanel>
</Items>
</f:FormRow>
<f:FormRow ID="plApprove4">
<Items>
<f:ContentPanel ID="ContentPanel5" Title="群安员月考核审批流程设置" runat="server" ShowHeader="true" EnableCollapse="true"
BodyPadding="0px">
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:RadioButtonList runat="server" ID="rblIsAgree" Label="是否同意" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="rblIsAgree_SelectedIndexChanged">
<f:RadioItem Text="同意" Value="true" />
<f:RadioItem Text="不同意" Value="false" />
</f:RadioButtonList>
<f:Label runat="server" CssStyle="display:none"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpHandleType" OnSelectedIndexChanged="drpHandleType_SelectedIndexChanged"
AutoPostBack="true" runat="server" Label="办理步骤" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
<f:DropDownList ID="drpHandleMan" runat="server" Label="办理人员" Required="true" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</f:ContentPanel>
</Items>
</f:FormRow>
<f:FormRow ID="plApprove1">
<Items>
<f:TextArea ID="txtOpinions" runat="server" Label="我的意见" MaxLength="3000">
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow ID="plApprove2">
<Items>
<f:ContentPanel Title="群安员月考核审批列表" ShowBorder="true"
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
runat="server">
<f:Grid ID="gvApprove" IsFluid="true" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" runat="server" EnableCollapse="false"
DataKeyNames="CheckControlApproveId" EnableColumnLines="true" ForceFit="true">
<Columns>
<f:RowNumberField Width="20px" />
<f:TemplateField ColumnID="State" Width="250px" HeaderText="办理类型" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="lbtype" runat="server" Text='<%# ConvertState(Eval("ApproveType")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:BoundField Width="180px" DataField="ApproveMan" HeaderTextAlign="Center" HeaderText="办理人员" TextAlign="Center" />
<f:BoundField Width="200px" DataField="ApproveDate" HeaderTextAlign="Center" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd}" HeaderText="办理时间" />
<f:BoundField Width="180px" DataField="ApproveIdea" HeaderTextAlign="Center" TextAlign="Center" HeaderText="办理意见" />
</Columns>
</f:Grid>
</f:ContentPanel>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:TextBox ID="hdCheckControlCode" runat="server" Hidden="true"></f:TextBox>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnSave" OnClick="btnSave_Click" Icon="SystemSave" runat="server" ToolTip="保存" Text="保存">
</f:Button>
<f:Button ID="btnSubmit" OnClick="btnSubmit_Click" Icon="SystemSaveNew" runat="server" ToolTip="提交" Text="提交" ValidateForms="SimpleForm1">
</f:Button>
<f:TextBox ID="hdId" runat="server" Hidden="true">
</f:TextBox>
<f:TextBox ID="hdAttachUrl" runat="server" Hidden="true">
</f:TextBox>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
<asp:HiddenField ID="hdScore" runat="server" Value='0,0,0,0,0,0,0,0,0,0,' />
<asp:HiddenField ID="hdScoreSum" runat="server" Value='0' />
<script>
var grid1ClientID = '<%= GridKhnr.ClientID %>';
function updateSummary() {
var me = F(grid1ClientID), chineseTotal = 0, ScoreDfTotal = 0, allTotal = 0;
var sumScore = "";
me.getRowEls().each(function (index, tr) {
ScoreDfTotal += me.getCellValue(tr, 'ScoreDf');
//将数据保存,都好分割存储
if (String(me.getCellValue(tr, 'ScoreDf')) == "") {
sumScore += "0,";
} else {
sumScore += String(me.getCellValue(tr, 'ScoreDf')) + ",";
}
});
document.getElementById("hdScore").value = sumScore;
console.log(ScoreDfTotal);
document.getElementById("hdScoreSum").value = ScoreDfTotal;
// 第三个参数 true强制更新不显示左上角的更改标识
me.updateSummaryCellValue('ScoreDf', ScoreDfTotal, true);
}
function onGridAfterEdit(event, value, params) {
updateSummary();
}
</script>
</form>
</body>
</html>