20211207 从集团获取安全公共资源功能添加

This commit is contained in:
2021-12-07 18:42:00 +08:00
parent 899a39776a
commit c55a180a8a
36 changed files with 1525 additions and 103 deletions
@@ -24,7 +24,7 @@
</f:Button>
<f:Button ID="btnDelete" Icon="Delete" ConfirmText="确定删除当前数据?" OnClick="btnDelete_Click"
runat="server" Hidden="true">
</f:Button>
</f:Button>
</Items>
</f:Toolbar>
<f:Tree ID="trAccidentCase" Width="200px" EnableCollapse="true" ShowHeader="true"
@@ -49,12 +49,12 @@
<f:TextBox ID="Activities" runat="server" Label="作业活动" EmptyText="输入查询作业活动" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="230px" LabelWidth="80px" LabelAlign="Right">
</f:TextBox>
<f:TextBox ID="AccidentCaseName" runat="server" Label="事故类别" EmptyText="输入查询事故类别"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="230px" LabelWidth="80px"
<f:TextBox ID="AccidentCaseName" runat="server" Label="类别" EmptyText="输入查询事故类别"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="50px"
LabelAlign="Right">
</f:TextBox>
<f:TextBox ID="AccidentName" runat="server" Label="事故名称" EmptyText="输入查询事故名称" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="230px" LabelWidth="80px" LabelAlign="Right">
<f:TextBox ID="AccidentName" runat="server" Label="名称" EmptyText="输入查询事故名称" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="50px" LabelAlign="Right">
</f:TextBox>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnNewDetail" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNewDetail_Click"
@@ -62,6 +62,8 @@
</f:Button>
<f:Button ID="btnSelectColumns" runat="server" ToolTip="导出" Icon="FolderUp" EnablePostBack="false" Hidden="true">
</f:Button>
<f:Button ID="btnGet" Text="获取" ToolTip="从集团获取事故案例库" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
@@ -502,5 +502,23 @@ namespace FineUIPro.Web.HSSE.EduTrain
}
}
#endregion
/// <summary>
/// 从集团获取
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnGet_Click(object sender, EventArgs e)
{
var returnValue = CNCECHSSEWebService.getEduTrain_AccidentCaseList();
if (returnValue.code == 1)
{
ShowNotify(returnValue.message, MessageBoxIcon.Success);
}
else
{
Alert.ShowInTop(returnValue.message, MessageBoxIcon.Success);
}
}
}
}
@@ -165,6 +165,15 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// </remarks>
protected global::FineUIPro.Button btnSelectColumns;
/// <summary>
/// btnGet 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnGet;
/// <summary>
/// lblActivities 控件。
/// </summary>
@@ -24,7 +24,7 @@
</f:Button>
<f:Button ID="btnDelete" Icon="Delete" ConfirmText="确定删除当前数据?" OnClick="btnDelete_Click"
runat="server" Hidden="true">
</f:Button>
</f:Button>
</Items>
</f:Toolbar>
<f:Tree ID="trTraining" EnableCollapse="true" ShowHeader="true" Title="培训教材库"
@@ -60,6 +60,8 @@
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
<f:Button ID="btnGet" Text="获取" ToolTip="从集团获取培训教材库" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
@@ -550,5 +550,23 @@ namespace FineUIPro.Web.HSSE.EduTrain
return sb.ToString();
}
#endregion
/// <summary>
/// 从集团获取
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnGet_Click(object sender, EventArgs e)
{
var returnValue = CNCECHSSEWebService.getTraining_TrainingList();
if (returnValue.code == 1)
{
ShowNotify(returnValue.message, MessageBoxIcon.Success);
}
else
{
Alert.ShowInTop(returnValue.message, MessageBoxIcon.Success);
}
}
}
}
@@ -174,6 +174,15 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// btnGet 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnGet;
/// <summary>
/// lbNumber 控件。
/// </summary>
@@ -60,6 +60,8 @@
</f:Button>
<f:Button ID="btnSelectColumns" runat="server" ToolTip="导出" Icon="FolderUp" EnablePostBack="false" Hidden="true">
</f:Button>
<f:Button ID="btnGet" Text="获取" ToolTip="从集团获取安全试题库" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
@@ -519,5 +519,22 @@ namespace FineUIPro.Web.HSSE.EduTrain
this.BindGrid();
}
/// <summary>
/// 从集团获取
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnGet_Click(object sender, EventArgs e)
{
var returnValue = CNCECHSSEWebService.getTraining_TrainTestDBList();
if (returnValue.code == 1)
{
ShowNotify(returnValue.message, MessageBoxIcon.Success);
}
else
{
Alert.ShowInTop(returnValue.message, MessageBoxIcon.Success);
}
}
}
}
@@ -156,6 +156,15 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// </remarks>
protected global::FineUIPro.Button btnSelectColumns;
/// <summary>
/// btnGet 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnGet;
/// <summary>
/// lblTrainTestItemCode 控件。
/// </summary>