修改专项检查
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" runat="server" DataIDField="CheckSpecialDetailId"
|
||||
DataKeyNames="CheckSpecialDetailId" ShowGridHeader="true" SortField="SortIndex" SortDirection="ASC"
|
||||
MinHeight="350px" AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true" OnPreDataBound="Grid1_PreDataBound"
|
||||
EnableTextSelection="True" OnSort="Grid1_Sort">
|
||||
EnableTextSelection="True" OnSort="Grid1_Sort" AllowColumnLocking="true">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
@@ -84,7 +84,7 @@
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Unqualified" DataField="Unqualified"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="问题描述" ExpandUnusedSpace="true">
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="问题描述" >
|
||||
<Editor>
|
||||
<f:TextBox ID="txtUnqualified" runat="server" ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
@@ -98,6 +98,25 @@
|
||||
</f:DropDownList>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="400px" ColumnID="CheckItemSetContent" DataField="CheckItemSetContent"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="检查内容" RendererFunction="renderCheckItemDetail">
|
||||
<Editor>
|
||||
<f:DropDownList ID="drpCheckItemDetail" runat="server"
|
||||
OnSelectedIndexChanged="drpCheckItemDetail_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="150px" ColumnID="Rectification_Date" DataField="Rectification_Date"
|
||||
FieldType="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" HeaderText="整改期限" >
|
||||
<Editor>
|
||||
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" ID="txtRectification_Date" EnableEdit="false">
|
||||
</f:DatePicker>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
|
||||
|
||||
<f:RenderField Width="80px" ColumnID="CompleteStatusName" DataField="CompleteStatusName" SortField="CompleteStatusName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="处理结果">
|
||||
<Editor>
|
||||
@@ -125,10 +144,10 @@
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField ColumnID="Delete" Width="50px" EnablePostBack="false" Icon="Delete"
|
||||
HeaderTextAlign="Center" HeaderText="删除" />
|
||||
HeaderTextAlign="Center" HeaderText="删除" EnableLock="true" Locked="true"/>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<%-- <f:Listener Event="beforeedit" Handler="onGridBeforeEdit" />--%>
|
||||
<f:Listener Event="beforeedit" Handler="onGridBeforeEdit" />
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
<f:Listener Event="afteredit" Handler="onGridAfterEdit" />
|
||||
</Listeners>
|
||||
@@ -204,6 +223,25 @@
|
||||
}
|
||||
}
|
||||
|
||||
var drpCheckItemDetailId = '<%= drpCheckItemDetail.ClientID %>';
|
||||
|
||||
function renderCheckItemDetail(value) {
|
||||
return F(drpCheckItemDetailId).getTextByValue(value);
|
||||
}
|
||||
|
||||
//点击检查项给检查项赋值
|
||||
function onGridBeforeEdit(event, value, params) {
|
||||
var grid = F(grid1ClientID);
|
||||
|
||||
if (params.columnId === 'CheckItemSetContent') {
|
||||
var ddlShi = F(drpCheckItemDetailId);
|
||||
var shitext = grid.getCellValue(params.rowId, 'CheckItemSetContent');
|
||||
ddlShi.setEmptyText(shitext);
|
||||
/* ddlShi.loadData(shitext);*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -119,6 +119,9 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
{ "UnitName", "" },
|
||||
{ "Unqualified", "" },
|
||||
{ "CheckItemName", "" },
|
||||
//增加检查项内容和日期
|
||||
{ "CheckItemSetContent", "" },
|
||||
{ "Rectification_Date", "" },
|
||||
{ "CompleteStatusName", "" },
|
||||
{ "HandleStepStr", "" },
|
||||
{ "HiddenHazardTypeName", "" },
|
||||
@@ -309,7 +312,9 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
CheckSpecialId = this.CheckSpecialId,
|
||||
CheckContent = values.Value<string>("CheckItemName"),
|
||||
Unqualified = values.Value<string>("Unqualified"),
|
||||
// WorkArea = values.Value<string>("WorkArea"),
|
||||
CheckItemSetContent = values.Value<string>("CheckItemSetContent"),
|
||||
Rectification_Date= values.Value<DateTime>("Rectification_Date"),
|
||||
// WorkArea = values.Value<string>("WorkArea"),
|
||||
};
|
||||
var getUnit = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitName == values.Value<string>("UnitName"));
|
||||
if (getUnit != null)
|
||||
@@ -372,7 +377,14 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
if (getCheckItem != null)
|
||||
{
|
||||
newDetail.CheckItem = getCheckItem.CheckItemSetId;
|
||||
//插入检查项内容id
|
||||
var getCheckItemSet = Funs.DB.Technique_CheckItemDetail.FirstOrDefault(x => x.CheckItemSetId == getCheckItem.CheckItemSetId && x.CheckContent == newDetail.CheckItemSetContent);
|
||||
if (getCheckItemSet != null)
|
||||
{
|
||||
newDetail.CheckItemSetId = getCheckItemSet.CheckItemDetailId;
|
||||
}
|
||||
}
|
||||
|
||||
newDetail.SortIndex = rowIndex;
|
||||
Check_CheckSpecialDetailService.AddCheckSpecialDetail(newDetail);
|
||||
detailLists.Add(newDetail);
|
||||
@@ -472,6 +484,9 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
{
|
||||
this.drpSupCheckItemSet.Items.Clear();
|
||||
this.drpCheckItem.Items.Clear();
|
||||
|
||||
//检查项内容清空
|
||||
this.drpCheckItemDetail.Items.Clear();
|
||||
if (this.rbType.SelectedValue == "1")
|
||||
{
|
||||
this.drpSupCheckItemSet.SelectedIndex = 0;
|
||||
@@ -484,14 +499,36 @@ namespace FineUIPro.Web.HSSE.Check
|
||||
Technique_CheckItemSetService.InitCheckItemSetDropDownList(this.drpSupCheckItemSet, "2", "0", false);
|
||||
this.drpSupCheckItemSet.SelectedIndex = 0;
|
||||
Technique_CheckItemSetService.InitCheckItemSetNameDropDownList(this.drpCheckItem, "2", this.drpSupCheckItemSet.SelectedValue, false);
|
||||
//加载检查项内容下拉
|
||||
var getCheckItem = Funs.DB.Technique_CheckItemSet.FirstOrDefault(x => x.SupCheckItem == this.drpSupCheckItemSet.SelectedValue && x.CheckItemName == this.drpCheckItem.SelectedValue);
|
||||
var checkItemSetId = getCheckItem.CheckItemSetId;
|
||||
Technique_CheckItemDetailService.InitCheckItemDetailDropDownList(this.drpCheckItemDetail, checkItemSetId, false);
|
||||
}
|
||||
|
||||
this.drpCheckItem.SelectedValue = null;
|
||||
this.drpCheckItemDetail.SelectedValue = null;
|
||||
}
|
||||
|
||||
protected void drpCheckItem_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.drpCheckItemDetail.Items.Clear();
|
||||
this.drpCheckItem.SelectedValueArray = Funs.RemoveDropDownListNull(this.drpCheckItem.SelectedValueArray);
|
||||
|
||||
if (!string.IsNullOrEmpty(this.drpCheckItem.SelectedValue))
|
||||
{
|
||||
//加载检查项内容下拉
|
||||
var getCheckItem = Funs.DB.Technique_CheckItemSet.
|
||||
FirstOrDefault(x => x.SupCheckItem == this.drpSupCheckItemSet.SelectedValue && x.CheckItemName == this.drpCheckItem.SelectedValue);
|
||||
var checkItemSetId = getCheckItem.CheckItemSetId;
|
||||
Technique_CheckItemDetailService.InitCheckItemDetailDropDownList(this.drpCheckItemDetail, checkItemSetId, false);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected void drpCheckItemDetail_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.drpCheckItemDetail.SelectedValueArray = Funs.RemoveDropDownListNull(this.drpCheckItemDetail.SelectedValueArray);
|
||||
}
|
||||
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
|
||||
+50
-30
@@ -7,11 +7,13 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Check {
|
||||
|
||||
|
||||
public partial class CheckSpecialEdit {
|
||||
|
||||
namespace FineUIPro.Web.HSSE.Check
|
||||
{
|
||||
|
||||
|
||||
public partial class CheckSpecialEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckSpecialCode 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCheckSpecialCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// rbType 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rbType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpSupCheckItemSet 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpSupCheckItemSet;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckDate 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtCheckDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpPartInPersons 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPartInPersons;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPartInPersonNames 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPartInPersonNames;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpCheckArea 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCheckArea;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpWorkUnit 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +130,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWorkUnit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtUnqualified 控件。
|
||||
/// </summary>
|
||||
@@ -137,7 +139,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnqualified;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpCheckItem 控件。
|
||||
/// </summary>
|
||||
@@ -146,7 +148,25 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCheckItem;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpCheckItemDetail 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCheckItemDetail;
|
||||
|
||||
/// <summary>
|
||||
/// txtRectification_Date 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtRectification_Date;
|
||||
|
||||
/// <summary>
|
||||
/// drpCompleteStatus 控件。
|
||||
/// </summary>
|
||||
@@ -155,7 +175,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCompleteStatus;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpHandleStep 控件。
|
||||
/// </summary>
|
||||
@@ -164,7 +184,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpHandleStep;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpHiddenHazardType 控件。
|
||||
/// </summary>
|
||||
@@ -173,7 +193,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpHiddenHazardType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
@@ -182,7 +202,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbTemp 控件。
|
||||
/// </summary>
|
||||
@@ -191,7 +211,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbTemp;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnAttachUrl 控件。
|
||||
/// </summary>
|
||||
@@ -200,7 +220,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttachUrl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
@@ -209,7 +229,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
@@ -218,7 +238,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSubmit 控件。
|
||||
/// </summary>
|
||||
@@ -227,7 +247,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSubmit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
@@ -236,7 +256,7 @@ namespace FineUIPro.Web.HSSE.Check {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -57,11 +57,18 @@
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="受检单位">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="Unqualified" DataField="Unqualified" SortField="Unqualified"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="问题描述" ExpandUnusedSpace="true">
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="问题描述" >
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="160px" ColumnID="CheckItemName" DataField="CheckItemName" SortField="CheckItemName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="问题类型">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="250px" ColumnID="CheckItemSetContent" DataField="CheckItemSetContent" SortField="CheckItemSetContent"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="检查内容">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="160px" ColumnID="Rectification_Date" DataField="Rectification_Date" SortField="Rectification_Date"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="整改期限">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="80px" ColumnID="CompleteStatusName" DataField="CompleteStatusName" SortField="CompleteStatusName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="处理结果">
|
||||
</f:RenderField>
|
||||
|
||||
Reference in New Issue
Block a user