20230324新增集团查看数据跳转页面、现场人员卡号补漏按钮功能
This commit is contained in:
@@ -23,6 +23,14 @@
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="250px" ColumnID="TrainTypeName" DataField="TrainTypeName" FieldType="String"
|
||||
HeaderText="名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:TemplateField Width="120px" HeaderText="类别" HeaderTextAlign="Center" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# ConvertTrainType(Eval("TrainType")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="10px" ColumnID="TrainType" DataField="TrainType" FieldType="String"
|
||||
HeaderText="类别" HeaderTextAlign="Center" TextAlign="Left" Hidden="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" ColumnID="IsAboutSendCard" DataField="IsAboutSendCard" FieldType="Boolean"
|
||||
RendererFunction="renderIsOrNo" HeaderText="关联发卡" HeaderTextAlign="Center" TextAlign="Center">
|
||||
@@ -59,6 +67,12 @@
|
||||
<f:TextBox ID="txtTrainTypeName" Label="名称" ShowRedStar="true" Required="true" runat="server"
|
||||
LabelAlign="right" AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelWidth="100px">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpTrainType" runat="server" Label="类别" LabelAlign="Right" Required="true"
|
||||
ShowRedStar="true" LabelWidth="100px">
|
||||
<f:ListItem Value="1" Text="三级安全教育培训" />
|
||||
<f:ListItem Value="2" Text="专项培训" />
|
||||
<f:ListItem Value="3" Text="特种作业培训" />
|
||||
</f:DropDownList>
|
||||
<f:CheckBox ID="ckbIsAboutSendCard" runat="server" Label="关联发卡" LabelAlign="right" LabelWidth="100px">
|
||||
</f:CheckBox>
|
||||
<f:CheckBox ID="ckbIsRepeat" runat="server" Label="多次培训" LabelAlign="right" LabelWidth="100px">
|
||||
@@ -128,6 +142,7 @@
|
||||
var hfFormIDClientID = '<%= hfFormID.ClientID %>';
|
||||
var txtCodeClientID = '<%= txtTrainTypeCode.ClientID %>';
|
||||
var txtNameClientID = '<%= txtTrainTypeName.ClientID %>';
|
||||
var drpTrainTypeClientID = '<%= drpTrainType.ClientID %>';
|
||||
var ckbIsAboutSendCardClientID = '<%= ckbIsAboutSendCard.ClientID %>';
|
||||
var ckbIsRepeatClientID = '<%= ckbIsRepeat.ClientID %>';
|
||||
var txtRemarkClientID = '<%=txtRemark.ClientID %>';
|
||||
@@ -145,6 +160,7 @@
|
||||
F(hfFormIDClientID).setValue(rowId);
|
||||
F(txtCodeClientID).setValue(rowValue['TrainTypeCode']);
|
||||
F(txtNameClientID).setValue(rowValue['TrainTypeName']);
|
||||
F(drpTrainTypeClientID).setValue(rowValue['TrainType']);
|
||||
F(ckbIsAboutSendCardClientID).setValue(rowValue['IsAboutSendCard']);
|
||||
F(ckbIsRepeatClientID).setValue(rowValue['IsRepeat']);
|
||||
F(txtRemarkClientID).setValue(rowValue['Remark']);
|
||||
|
||||
@@ -176,6 +176,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
this.ckbIsRepeat.Checked = false;
|
||||
}
|
||||
this.txtRemark.Text = trainType.Remark;
|
||||
this.drpTrainType.Text = trainType.TrainType;
|
||||
hfFormID.Text = Id;
|
||||
this.btnDelete.Enabled = true;
|
||||
}
|
||||
@@ -210,6 +211,10 @@ namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
newTrainType.IsRepeat = false;
|
||||
}
|
||||
if (this.drpTrainType.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newTrainType.TrainType = this.drpTrainType.SelectedValue;
|
||||
}
|
||||
newTrainType.Remark = txtRemark.Text.Trim();
|
||||
if (string.IsNullOrEmpty(strRowID))
|
||||
{
|
||||
@@ -332,5 +337,34 @@ namespace FineUIPro.Web.BaseInfo
|
||||
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("TrainTypeEdit.aspx?TrainTypeId={0}", Grid1.SelectedRowID, "设置 - ")));
|
||||
}
|
||||
|
||||
#region 格式化字符串
|
||||
/// <summary>
|
||||
/// 格式化字符串
|
||||
/// </summary>
|
||||
/// <param name="WorkStage"></param>
|
||||
/// <returns></returns>
|
||||
protected string ConvertTrainType(object TrainType)
|
||||
{
|
||||
string name = string.Empty;
|
||||
if (TrainType != null)
|
||||
{
|
||||
string trainType = TrainType.ToString().Trim();
|
||||
if (trainType == "1")
|
||||
{
|
||||
name = "三级安全教育培训";
|
||||
}
|
||||
else if (trainType == "2")
|
||||
{
|
||||
name = "专项培训";
|
||||
}
|
||||
if (trainType == "3")
|
||||
{
|
||||
name = "特种作业培训";
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+48
-28
@@ -7,11 +7,13 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo {
|
||||
|
||||
|
||||
public partial class TrainType {
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
|
||||
|
||||
public partial class TrainType
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,16 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +67,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +76,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +85,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +94,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.SimpleForm SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hfFormID 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +103,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hfFormID;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTrainTypeCode 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +112,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTrainTypeCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTrainTypeName 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +121,16 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTrainTypeName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpTrainType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpTrainType;
|
||||
|
||||
/// <summary>
|
||||
/// ckbIsAboutSendCard 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +139,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox ckbIsAboutSendCard;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ckbIsRepeat 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +148,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox ckbIsRepeat;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
@@ -137,7 +157,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRemark;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
@@ -146,7 +166,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
@@ -155,7 +175,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete 控件。
|
||||
/// </summary>
|
||||
@@ -164,7 +184,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDelete;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
@@ -173,7 +193,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
@@ -182,7 +202,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
@@ -191,7 +211,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
@@ -200,7 +220,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
@@ -209,7 +229,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
@@ -218,7 +238,7 @@ namespace FineUIPro.Web.BaseInfo {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuSet 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -47,6 +47,10 @@
|
||||
RendererFunction="renderIsHsse" HeaderText="安管人员" HeaderTextAlign="Center"
|
||||
TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" ColumnID="IsCQMS" DataField="IsCQMS" FieldType="Boolean"
|
||||
RendererFunction="renderIsHsse" HeaderText="质量管理" HeaderTextAlign="Center"
|
||||
TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:TemplateField Width="120px" HeaderText="对口专业" HeaderTextAlign="Center" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# ConvertCNCodes(Eval("CNCodes")) %>'></asp:Label>
|
||||
@@ -92,7 +96,9 @@
|
||||
ShowRedStar="true" LabelWidth="80px">
|
||||
</f:DropDownList>
|
||||
<f:CheckBox ID="ckbIsHsse" runat="server" Label="安管" LabelAlign="Right" LabelWidth="80px">
|
||||
</f:CheckBox>
|
||||
</f:CheckBox>
|
||||
<f:CheckBox ID="ckbIsCQMS" runat="server" Label="质量管理" LabelAlign="Right" LabelWidth="80px">
|
||||
</f:CheckBox>
|
||||
<f:DropDownBox runat="server" Label="对口专业" ID="txtCNCodes" EmptyText="--请选择--" EnableMultiSelect="true" MatchFieldWidth="true" LabelWidth="80px">
|
||||
<PopPanel>
|
||||
<f:Grid ID="gvCNCodes" DataIDField="CNProfessionalId" ForceFit="true"
|
||||
@@ -173,6 +179,7 @@
|
||||
var txtNameClientID = '<%= txtWorkPostName.ClientID %>';
|
||||
var drpPostTypeClientID = '<%= drpPostType.ClientID %>';
|
||||
var ckbIsHsseClientID = '<%= ckbIsHsse.ClientID %>';
|
||||
var ckbIsCQMSClientID = '<%= ckbIsCQMS.ClientID %>';
|
||||
var txtCNCodesClientID = '<%= txtCNCodes.ClientID %>';
|
||||
var txtRemarkClientID = '<%=txtRemark.ClientID %>';
|
||||
|
||||
@@ -190,6 +197,7 @@
|
||||
F(txtNameClientID).setValue(rowValue['WorkPostName']);
|
||||
F(drpPostTypeClientID).setValue(rowValue['PostType']);
|
||||
F(ckbIsHsseClientID).setValue(rowValue['IsHsse']);
|
||||
F(ckbIsCQMSClientID).setValue(rowValue['IsCQMS']);
|
||||
F(txtCNCodesClientID).setValue(rowValue['CNCodes']);
|
||||
F(txtRemarkClientID).setValue(rowValue['Remark']);
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT wp.WorkPostId,wp.WorkPostName, wp.WorkPostCode, wp.Remark,wp.PostType,wp.IsHsse,wp.CNCodes,
|
||||
string strSql = @"SELECT wp.WorkPostId,wp.WorkPostName, wp.WorkPostCode, wp.Remark,wp.PostType,wp.IsHsse,wp.IsCQMS,wp.CNCodes,
|
||||
case wp.IsHsse when 1 then '是' else '否' end as IsHsseStr,const.ConstText as PostTypeName
|
||||
FROM dbo.Base_WorkPost AS wp
|
||||
LEFT JOIN Sys_Const AS const ON const.ConstValue = wp.PostType and const.GroupId = '" + ConstValue.Group_PostType + "' " +
|
||||
@@ -166,6 +166,10 @@ namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
this.ckbIsHsse.Checked = true;
|
||||
}
|
||||
if (workPost.IsCQMS == true)
|
||||
{
|
||||
this.ckbIsCQMS.Checked = true;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(workPost.CNCodes))
|
||||
{
|
||||
txtCNCodes.Values = workPost.CNCodes.Split(',');
|
||||
@@ -205,6 +209,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
WorkPostName = this.txtWorkPostName.Text.Trim(),
|
||||
PostType = this.drpPostType.SelectedValue,
|
||||
IsHsse = Convert.ToBoolean(this.ckbIsHsse.Checked),
|
||||
IsCQMS = Convert.ToBoolean(this.ckbIsCQMS.Checked),
|
||||
CNCodes = string.Join(",", txtCNCodes.Values),
|
||||
Remark = txtRemark.Text.Trim()
|
||||
};
|
||||
|
||||
@@ -185,6 +185,15 @@ namespace FineUIPro.Web.BaseInfo
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox ckbIsHsse;
|
||||
|
||||
/// <summary>
|
||||
/// ckbIsCQMS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox ckbIsCQMS;
|
||||
|
||||
/// <summary>
|
||||
/// txtCNCodes 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user