This commit is contained in:
parent
0829c2c559
commit
1fe9772110
|
@ -17,7 +17,7 @@
|
|||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnSave" OnClick="btnSave_Click" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1">
|
||||
<f:Button ID="btnSave" OnClick="btnSave_Click" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1" OnClientClick="if(!isValid()){return false;}">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
|
@ -62,72 +62,71 @@
|
|||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:CheckBoxList ID="rdbOperation" AutoPostBack="true" OnSelectedIndexChanged="rdbOperation_SelectedIndexChanged"
|
||||
Label="选项" ColumnNumber="3" runat="server" ShowRedStar="true" Required="true" DisplayType="Switch" SwitchTextVisible="true">
|
||||
<f:CheckItem Text="脱盐水" Value="1" />
|
||||
<f:CheckItem Text="循环水" Value="2" />
|
||||
<f:CheckItem Text="蒸汽" Value="3" />
|
||||
<f:CheckItem Text="空压站" Value="4" />
|
||||
<f:CheckItem Text="合成氨" Value="5" />
|
||||
<f:CheckItem Text="尿素" Value="6" />
|
||||
<f:CheckBoxList ID="rdbOperation" AutoPostBack="true" OnSelectedIndexChanged="rdbOperation_SelectedIndexChanged" DataTextField="Text" DataValueField="Value"
|
||||
Label="系统选项" ColumnNumber="3" runat="server" ShowRedStar="true" Required="true" DisplayType="Switch" SwitchTextVisible="true">
|
||||
</f:CheckBoxList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server" ID="tys">
|
||||
<Items>
|
||||
<f:TextArea ID="txtDesalinatedSituation" runat="server" Label="脱盐水运行情况" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
<f:TextArea ID="txtDesalinatedRemarks" runat="server" Label="脱盐水备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server" ID="xhs">
|
||||
<Items>
|
||||
|
||||
<f:TextArea ID="txtLoopSituation" runat="server" Label="循环水运行情况" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
<f:TextArea ID="txtLoopRemarks" runat="server" Label="循环水备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server" ID="zq">
|
||||
<Items>
|
||||
<f:TextArea ID="txtSteamSituation" runat="server" Label="蒸汽运行情况" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
<f:TextArea ID="txtSteamRemarks" runat="server" Label="蒸汽备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server" ID="kyz">
|
||||
<Items>
|
||||
<f:TextArea ID="txtAirCompressionSituation" runat="server" Label="空压站运行情况" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
<f:TextArea ID="txtAirCompressionRemarks" runat="server" Label="空压站备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server" ID="hca">
|
||||
<Items>
|
||||
<f:TextArea ID="txtCompoundAmmoniaSituation" runat="server" Label="合成氨运行情况" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
<f:TextArea ID="txtCompoundAmmoniaRemarks" runat="server" Label="合成氨备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server" ID="ns">
|
||||
<Items>
|
||||
<f:TextArea ID="txtUreaSituation" runat="server" Label="尿素运行情况" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
<f:TextArea ID="txtUreaRemarks" runat="server" Label="尿素备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtHandoverCare" runat="server" Label="交班注意" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
<f:ContentPanel ID="ContentPanel4" Title="系统项" ShowBorder="true" BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
|
||||
runat="server">
|
||||
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Grid ID="gvSystemOption" ShowBorder="true" ShowHeader="false" runat="server" Height="400px"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="RunningId" ForceFit="true"
|
||||
DataKeyNames="RunningId,InstallationId,ProcessesId,SystemId,SystemName" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
EnableColumnLines="true">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="150px" ColumnID="SystemName" DataField="SystemName" HeaderText="系统名称"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="300px" ColumnID="Situation" DataField="Situation" FieldType="String"
|
||||
HeaderText="运行情况" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextArea runat="server" ID="txtSituation"></f:TextArea>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="300px" ColumnID="Remarks" DataField="Remarks" FieldType="String"
|
||||
HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextArea runat="server" ID="txtRemarks"></f:TextArea>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel5" Title="交班注意" ShowBorder="true" BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
|
||||
runat="server">
|
||||
<f:Form ID="Form6" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtHandoverCare" runat="server" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
</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"
|
||||
|
@ -137,14 +136,36 @@
|
|||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtOperationReason" runat="server" Label="操作问题原因" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtOperationHandle" runat="server" Label="操作问题处理" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
<f:Grid ID="gvOperation" ShowBorder="true" ShowHeader="false" runat="server" Height="400px"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="OperationId" ForceFit="true"
|
||||
DataKeyNames="OperationId,RunningId,InstallationId,ProcessesId,SystemId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
EnableColumnLines="true" OnRowCommand="gvOperation_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnOperationAdd" Text="新增" Icon="Add" runat="server" OnClick="btnOperationAdd_Click"></f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="300px" ColumnID="OperationReason" DataField="OperationReason" FieldType="String"
|
||||
HeaderText="操作问题原因" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextArea runat="server" ID="txtOperationReason"></f:TextArea>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="300px" ColumnID="OperationHandle" DataField="OperationHandle" FieldType="String"
|
||||
HeaderText="操作问题处理" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextArea runat="server" ID="txtOperationHandle"></f:TextArea>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField Width="100px" ConfirmText="是否确认删除当前选中数据?" ConfirmTarget="Top"
|
||||
CommandName="Delete" Icon="Delete" />
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
|
@ -161,14 +182,36 @@
|
|||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtMaintenanceReason" runat="server" Label="维护问题原因" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtMaintenanceHandle" runat="server" Label="维护问题处理" LabelAlign="Right" LabelWidth="150px" MaxLength="500" Required="true" ShowRedStar="true">
|
||||
</f:TextArea>
|
||||
<f:Grid ID="gvMaintenance" ShowBorder="true" ShowHeader="false" runat="server" Height="400px"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="MaintenanceId" ForceFit="true"
|
||||
DataKeyNames="MaintenanceId,RunningId,InstallationId,ProcessesId,SystemId" EnableMultiSelect="false" ShowGridHeader="true"
|
||||
EnableColumnLines="true" OnRowCommand="gvMaintenance_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnMaintenanceAdd" Text="新增" Icon="Add" runat="server" OnClick="btnMaintenanceAdd_Click"></f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="300px" ColumnID="MaintenanceReason" DataField="MaintenanceReason" FieldType="String"
|
||||
HeaderText="维护问题原因" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextArea runat="server" ID="txtMaintenanceReason"></f:TextArea>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="300px" ColumnID="MaintenanceHandle" DataField="MaintenanceHandle" FieldType="String"
|
||||
HeaderText="维护问题处理" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextArea runat="server" ID="txtMaintenanceHandle"></f:TextArea>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField Width="100px" ConfirmText="是否确认删除当前选中数据?" ConfirmTarget="Top"
|
||||
CommandName="Delete" Icon="Delete" />
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
|
@ -184,5 +227,115 @@
|
|||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
return false;
|
||||
}
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
|
||||
//验证检查结果
|
||||
function isValid() {
|
||||
var gvOption = F('<%= gvSystemOption.ClientID %>');
|
||||
var valid = true, modifiedData = gvOption.getMergedData();
|
||||
|
||||
$.each(modifiedData, function (index, rowData) {
|
||||
if (rowData.status === 'deleted') {
|
||||
return true;
|
||||
}
|
||||
var situation = rowData.values['Situation'];
|
||||
if (typeof (situation) != 'undefined' && $.trim(situation) == '') {
|
||||
F.alert({
|
||||
message: '请输入运行情况!',
|
||||
ok: function () {
|
||||
gvOption.startEdit(rowData.id, 'Situation');
|
||||
}
|
||||
});
|
||||
valid = false;
|
||||
return false;
|
||||
}
|
||||
var remarks = rowData.values['Remarks'];
|
||||
if (typeof (remarks) != 'undefined' && $.trim(remarks) == '') {
|
||||
F.alert({
|
||||
message: '请输入备注!',
|
||||
ok: function () {
|
||||
gvOption.startEdit(rowData.id, 'Remarks');
|
||||
}
|
||||
});
|
||||
valid = false;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
//操作问题
|
||||
var gvOperation = F('<%= gvOperation.ClientID %>');
|
||||
var valid = true, modifiedData = gvOperation.getMergedData();
|
||||
$.each(modifiedData, function (index, rowData) {
|
||||
if (rowData.status === 'deleted') {
|
||||
return true;
|
||||
}
|
||||
var operationReason = rowData.values['OperationReason'];
|
||||
if (typeof (operationReason) != 'undefined' && $.trim(operationReason) == '') {
|
||||
F.alert({
|
||||
message: '请输入操作问题原因!',
|
||||
ok: function () {
|
||||
gvOperation.startEdit(rowData.id, 'OperationReason');
|
||||
}
|
||||
});
|
||||
valid = false;
|
||||
return false;
|
||||
}
|
||||
var operationHandle = rowData.values['OperationHandle'];
|
||||
if (typeof (operationHandle) != 'undefined' && $.trim(operationHandle) == '') {
|
||||
F.alert({
|
||||
message: '请输入操作问题处理!',
|
||||
ok: function () {
|
||||
gvOperation.startEdit(rowData.id, 'OperationHandle');
|
||||
}
|
||||
});
|
||||
valid = false;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
//维护问题
|
||||
var gvMaintenance = F('<%= gvMaintenance.ClientID %>');
|
||||
var valid = true, modifiedData = gvMaintenance.getMergedData();
|
||||
$.each(modifiedData, function (index, rowData) {
|
||||
if (rowData.status === 'deleted') {
|
||||
return true;
|
||||
}
|
||||
var maintenanceReason = rowData.values['MaintenanceReason'];
|
||||
if (typeof (maintenanceReason) != 'undefined' && $.trim(maintenanceReason) == '') {
|
||||
F.alert({
|
||||
message: '请输入维护问题原因!',
|
||||
ok: function () {
|
||||
gvMaintenance.startEdit(rowData.id, 'MaintenanceReason');
|
||||
}
|
||||
});
|
||||
valid = false;
|
||||
return false;
|
||||
}
|
||||
var maintenanceHandle = rowData.values['MaintenanceHandle'];
|
||||
if (typeof (maintenanceHandle) != 'undefined' && $.trim(maintenanceHandle) == '') {
|
||||
F.alert({
|
||||
message: '请输入维护问题处理!',
|
||||
ok: function () {
|
||||
gvMaintenance.startEdit(rowData.id, 'MaintenanceHandle');
|
||||
}
|
||||
});
|
||||
valid = false;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return valid;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,9 +1,15 @@
|
|||
using BLL;
|
||||
using FineUIPro.Web.DataShow;
|
||||
using FineUIPro.Web.ProjectData;
|
||||
using Model;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices.ComTypes;
|
||||
using System.Web;
|
||||
using System.Web.Services.Description;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
|
@ -15,17 +21,12 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
/// 日志
|
||||
/// </summary>
|
||||
public string RunningId { get { return (string)ViewState["RunningId"]; } set { ViewState["RunningId"] = value; } }
|
||||
/// <summary>
|
||||
/// 系统主键
|
||||
/// </summary>
|
||||
public string SystemId { get { return (string)ViewState["SystemId"]; } set { ViewState["SystemId"] = value; } }
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.RunningId = Request["RunningId"];
|
||||
this.SystemId = Request["SystemId"];
|
||||
PageBase();
|
||||
}
|
||||
}
|
||||
|
@ -35,6 +36,21 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
/// </summary>
|
||||
public void PageBase()
|
||||
{
|
||||
//获取系统
|
||||
var syslist = Funs.DB.PreRun_SysDevice.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.PreRunLevel == 3).ToList();
|
||||
if (syslist.Count > 0)
|
||||
{
|
||||
int i = 0;
|
||||
ListItem[] list = new ListItem[syslist.Count];
|
||||
foreach (var item in syslist)
|
||||
{
|
||||
list[i] = new ListItem(item.PreRunName, item.PreRunId);
|
||||
i++;
|
||||
}
|
||||
this.rdbOperation.DataSource = list;
|
||||
this.rdbOperation.DataBind();
|
||||
}
|
||||
|
||||
//获取人员
|
||||
var userList = from user in Funs.DB.Sys_User
|
||||
join projectrole in Funs.DB.Project_ProjectUser on user.UserId equals projectrole.UserId
|
||||
|
@ -63,93 +79,21 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
var model = Funs.DB.Running_LogManagement.FirstOrDefault(x => x.RunningId == this.RunningId);
|
||||
if (model != null)
|
||||
{
|
||||
options.Add(model.SystemId);
|
||||
txtJobNo.Text = model.JobNo;
|
||||
ddlShiftUser.SelectedValue = model.ShiftUser;
|
||||
ddlSuccessionUser.SelectedValue = model.SuccessionUser;
|
||||
txtStartData.Text = model.StartData.Value.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
txtEndData.Text = model.EndData.Value.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
if (model.IsDesalinated == 1)
|
||||
{
|
||||
options.Add("1");
|
||||
tys.Hidden = false;
|
||||
txtDesalinatedSituation.Text = model.DesalinatedSituation;
|
||||
txtDesalinatedRemarks.Text = model.DesalinatedRemarks;
|
||||
}
|
||||
else
|
||||
{
|
||||
tys.Hidden = true;
|
||||
}
|
||||
if (model.IsLoop == 1)
|
||||
{
|
||||
options.Add("2");
|
||||
xhs.Hidden = false;
|
||||
txtLoopSituation.Text = model.LoopSituation;
|
||||
txtLoopRemarks.Text = model.LoopRemarks;
|
||||
}
|
||||
else
|
||||
{
|
||||
xhs.Hidden = true;
|
||||
}
|
||||
if (model.IsSteam == 1)
|
||||
{
|
||||
options.Add("3");
|
||||
zq.Hidden = false;
|
||||
txtSteamSituation.Text = model.SteamSituation;
|
||||
txtSteamRemarks.Text = model.SteamRemarks;
|
||||
}
|
||||
else
|
||||
{
|
||||
zq.Hidden = true;
|
||||
}
|
||||
if (model.IsAirCompression == 1)
|
||||
{
|
||||
options.Add("4");
|
||||
kyz.Hidden = false;
|
||||
txtAirCompressionSituation.Text = model.AirCompressionSituation;
|
||||
txtAirCompressionRemarks.Text = model.AirCompressionRemarks;
|
||||
}
|
||||
else
|
||||
{
|
||||
kyz.Hidden = true;
|
||||
}
|
||||
if (model.IsCompoundAmmonia == 1)
|
||||
{
|
||||
options.Add("5");
|
||||
hca.Hidden = false;
|
||||
txtCompoundAmmoniaSituation.Text = model.CompoundAmmoniaSituation;
|
||||
txtCompoundAmmoniaRemarks.Text = model.CompoundAmmoniaRemarks;
|
||||
}
|
||||
else
|
||||
{
|
||||
hca.Hidden = true;
|
||||
}
|
||||
if (model.IsUrea == 1)
|
||||
{
|
||||
options.Add("6");
|
||||
ns.Hidden = false;
|
||||
txtUreaSituation.Text = model.UreaSituation;
|
||||
txtUreaRemarks.Text = model.UreaRemarks;
|
||||
}
|
||||
else
|
||||
{
|
||||
ns.Hidden = true;
|
||||
}
|
||||
rdbOperation.SelectedValueArray = options.ToArray();
|
||||
txtHandoverCare.Text = model.HandoverCare;
|
||||
txtOperationReason.Text = model.OperationReason;
|
||||
txtOperationHandle.Text = model.OperationHandle;
|
||||
txtMaintenanceReason.Text = model.MaintenanceReason;
|
||||
txtMaintenanceHandle.Text = model.MaintenanceHandle;
|
||||
DataBrid();
|
||||
gvOperationBrid();
|
||||
gvMaintenanceBrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
txtJobNo.Text = SQLHelper.RunProcNewId("SpGetNewCode5", "dbo.Running_LogManagement", "JobNo", "13022-PS81-");
|
||||
tys.Hidden = true;
|
||||
xhs.Hidden = true;
|
||||
zq.Hidden = true;
|
||||
kyz.Hidden = true;
|
||||
hca.Hidden = true;
|
||||
ns.Hidden = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -158,13 +102,29 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
/// </summary>
|
||||
protected void rdbOperation_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
var rdbArr = rdbOperation.SelectedValueArray;
|
||||
tys.Hidden = rdbArr.Contains("1") ? false : true;
|
||||
xhs.Hidden = rdbArr.Contains("2") ? false : true;
|
||||
zq.Hidden = rdbArr.Contains("3") ? false : true;
|
||||
kyz.Hidden = rdbArr.Contains("4") ? false : true;
|
||||
hca.Hidden = rdbArr.Contains("5") ? false : true;
|
||||
ns.Hidden = rdbArr.Contains("6") ? false : true;
|
||||
var syslist = Funs.DB.PreRun_SysDevice.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.PreRunLevel == 3).ToList();
|
||||
var rdbIdArr = rdbOperation.SelectedItemArray;
|
||||
var list = gvSystemOptionLs();
|
||||
foreach (var item in rdbIdArr)
|
||||
{
|
||||
if (list.Count(x => x.SystemId == item.Value) > 0) continue;
|
||||
var itemsys = syslist.FirstOrDefault(x => x.PreRunId == item.Value);
|
||||
list.Add(new Running_LogManagementDto
|
||||
{
|
||||
RunningId = Guid.NewGuid().ToString(),
|
||||
ProjectId = this.CurrUser.LoginProjectId,
|
||||
InstallationId = itemsys.InstallationId,
|
||||
ProcessesId = itemsys.ProcessesId,
|
||||
SystemId = itemsys.SystemId,
|
||||
SystemName = itemsys.PreRunName,
|
||||
Situation = "",
|
||||
Remarks = "",
|
||||
AddUser = CurrUser.UserId,
|
||||
AddTime = DateTime.Now,
|
||||
});
|
||||
}
|
||||
list.RemoveAll(r => !rdbOperation.SelectedValueArray.Contains(r.SystemId));
|
||||
DataBrid(list);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -182,77 +142,370 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
ShowNotify("请选择继任职工!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var sysmodel = Funs.DB.PreRun_SysDevice.FirstOrDefault(x => x.PreRunId == this.SystemId);
|
||||
if (sysmodel == null)
|
||||
var list = gvSystemOptionLs();
|
||||
if (list.Count == 0)
|
||||
{
|
||||
Alert.ShowInTop("系统参数错误!", MessageBoxIcon.Warning);
|
||||
ShowNotify("请选择系统!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var optionlist = gvOperationLs();
|
||||
if (optionlist.Count == 0)
|
||||
{
|
||||
ShowNotify("请添加操作问题!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var maintenancelist = gvMaintenanceLs();
|
||||
if (maintenancelist.Count == 0)
|
||||
{
|
||||
ShowNotify("请添加维护问题!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
var edata = DateTime.Parse(txtEndData.Text);
|
||||
if (!string.IsNullOrWhiteSpace(this.RunningId))
|
||||
var addlist = new List<Running_LogManagement>();
|
||||
var addoptionlist = new List<Running_Operation>();
|
||||
var addmaintenancelist = new List<Running_Maintenance>();
|
||||
var ids = list.ConvertAll(x => x.RunningId);
|
||||
var existlist = Funs.DB.Running_LogManagement.Where(x => ids.Contains(x.RunningId)).ToList();
|
||||
foreach (var item in list)
|
||||
{
|
||||
if (Funs.DB.Running_LogManagement.Count(x => x.ShiftType == ddlShiftType.SelectedValue && x.SystemId == this.SystemId && x.EndData.Value.Year == edata.Year && x.EndData.Value.Month == edata.Month && x.EndData.Value.Day == edata.Day && x.RunningId != this.RunningId) > 0)
|
||||
bool add = false;
|
||||
var model = existlist.FirstOrDefault(x => x.RunningId == this.RunningId);
|
||||
if (model == null)
|
||||
{
|
||||
Alert.ShowInTop($"{DateTime.Now.ToString("yyyy-MM-dd")}已添加{ddlShiftType.SelectedText}日志,无法继续添加!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
add = true;
|
||||
model = new Running_LogManagement();
|
||||
model.RunningId = Guid.NewGuid().ToString();
|
||||
model.ProjectId = this.CurrUser.LoginProjectId;
|
||||
model.AddUser = this.CurrUser.UserId;
|
||||
model.AddTime = DateTime.Now;
|
||||
}
|
||||
model.InstallationId = item.InstallationId;
|
||||
model.ProcessesId = item.ProcessesId;
|
||||
model.SystemId = item.SystemId;
|
||||
model.JobNo = txtJobNo.Text;
|
||||
model.HandoverCare = txtHandoverCare.Text;
|
||||
model.ShiftType = ddlShiftType.SelectedValue;
|
||||
model.ShiftUser = ddlShiftUser.SelectedValue;
|
||||
model.SuccessionUser = ddlSuccessionUser.SelectedValue;
|
||||
model.StartData = DateTime.Parse(txtStartData.Text);
|
||||
model.EndData = DateTime.Parse(txtEndData.Text);
|
||||
model.Situation = item.Situation;
|
||||
model.Remarks = item.Remarks;
|
||||
|
||||
foreach (var itemoption in optionlist)
|
||||
{
|
||||
addoptionlist.Add(new Running_Operation()
|
||||
{
|
||||
OperationId = Guid.NewGuid().ToString(),
|
||||
RunningId = model.RunningId,
|
||||
InstallationId = item.InstallationId,
|
||||
ProcessesId = item.ProcessesId,
|
||||
SystemId = item.SystemId,
|
||||
OperationReason = itemoption.OperationReason,
|
||||
OperationHandle = itemoption.OperationHandle,
|
||||
ProjectId = this.CurrUser.LoginProjectId,
|
||||
AddUser = this.CurrUser.UserId,
|
||||
AddTime = DateTime.Now,
|
||||
});
|
||||
}
|
||||
foreach (var itemmain in maintenancelist)
|
||||
{
|
||||
addmaintenancelist.Add(new Running_Maintenance()
|
||||
{
|
||||
MaintenanceId = Guid.NewGuid().ToString(),
|
||||
RunningId = model.RunningId,
|
||||
InstallationId = item.InstallationId,
|
||||
ProcessesId = item.ProcessesId,
|
||||
SystemId = item.SystemId,
|
||||
MaintenanceReason = itemmain.MaintenanceReason,
|
||||
MaintenanceHandle = itemmain.MaintenanceHandle,
|
||||
ProjectId = this.CurrUser.LoginProjectId,
|
||||
AddUser = this.CurrUser.UserId,
|
||||
AddTime = DateTime.Now,
|
||||
});
|
||||
}
|
||||
if (add)
|
||||
{
|
||||
Funs.DB.SubmitChanges();
|
||||
addlist.Add(model);
|
||||
}
|
||||
else
|
||||
{
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
else
|
||||
if (addlist.Count > 0) Funs.DB.Running_LogManagement.InsertAllOnSubmit(addlist);
|
||||
var runIds = list.ConvertAll(x => x.RunningId);
|
||||
var deleteOperas = Funs.DB.Running_Operation.Where(x => runIds.Contains(x.RunningId)).ToList();
|
||||
if (deleteOperas.Count > 0)
|
||||
{
|
||||
if (Funs.DB.Running_LogManagement.Count(x => x.ShiftType == ddlShiftType.SelectedValue && x.SystemId == this.SystemId && x.EndData.Value.Year == edata.Year && x.EndData.Value.Month == edata.Month && x.EndData.Value.Day == edata.Day) > 0)
|
||||
{
|
||||
Alert.ShowInTop($"{DateTime.Now.ToString("yyyy-MM-dd")}已添加{ddlShiftType.SelectedText}日志,无法继续添加!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Funs.DB.Running_Operation.DeleteAllOnSubmit(deleteOperas);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
bool add = false;
|
||||
var model = Funs.DB.Running_LogManagement.FirstOrDefault(x => x.RunningId == this.RunningId);
|
||||
if (model == null)
|
||||
var deleteMaints = Funs.DB.Running_Maintenance.Where(x => runIds.Contains(x.RunningId)).ToList();
|
||||
if (deleteMaints.Count > 0)
|
||||
{
|
||||
add = true;
|
||||
model = new Model.Running_LogManagement();
|
||||
model.RunningId = Guid.NewGuid().ToString();
|
||||
model.ProjectId = this.CurrUser.LoginProjectId;
|
||||
model.InstallationId = sysmodel.InstallationId;
|
||||
model.ProcessesId = sysmodel.ProcessesId;
|
||||
model.SystemId = this.SystemId;
|
||||
model.AddUser = this.CurrUser.UserId;
|
||||
model.AddTime = DateTime.Now;
|
||||
Funs.DB.Running_Maintenance.DeleteAllOnSubmit(deleteMaints);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
model.JobNo = txtJobNo.Text;
|
||||
model.ShiftType = ddlShiftType.SelectedValue;
|
||||
model.ShiftUser = ddlShiftUser.SelectedValue;
|
||||
model.SuccessionUser = ddlSuccessionUser.SelectedValue;
|
||||
model.StartData = DateTime.Parse(txtStartData.Text);
|
||||
model.EndData = DateTime.Parse(txtEndData.Text);
|
||||
model.IsDesalinated = rdbOperation.SelectedValueArray.Contains("1") ? 1 : 0;
|
||||
model.DesalinatedSituation = txtDesalinatedSituation.Text;
|
||||
model.DesalinatedRemarks = txtDesalinatedRemarks.Text;
|
||||
model.IsLoop = rdbOperation.SelectedValueArray.Contains("2") ? 1 : 0;
|
||||
model.LoopSituation = txtLoopSituation.Text;
|
||||
model.LoopRemarks = txtLoopRemarks.Text;
|
||||
model.IsSteam = rdbOperation.SelectedValueArray.Contains("3") ? 1 : 0;
|
||||
model.SteamSituation = txtSteamSituation.Text;
|
||||
model.SteamRemarks = txtSteamRemarks.Text;
|
||||
model.IsAirCompression = rdbOperation.SelectedValueArray.Contains("4") ? 1 : 0;
|
||||
model.AirCompressionSituation = txtAirCompressionSituation.Text;
|
||||
model.AirCompressionRemarks = txtAirCompressionRemarks.Text;
|
||||
model.IsCompoundAmmonia = rdbOperation.SelectedValueArray.Contains("5") ? 1 : 0;
|
||||
model.CompoundAmmoniaSituation = txtCompoundAmmoniaSituation.Text;
|
||||
model.CompoundAmmoniaRemarks = txtCompoundAmmoniaRemarks.Text;
|
||||
model.IsUrea = rdbOperation.SelectedValueArray.Contains("6") ? 1 : 0;
|
||||
model.UreaSituation = txtUreaSituation.Text;
|
||||
model.UreaRemarks = txtUreaRemarks.Text;
|
||||
model.HandoverCare = txtHandoverCare.Text;
|
||||
model.OperationReason = txtOperationReason.Text;
|
||||
model.OperationHandle = txtOperationHandle.Text;
|
||||
model.MaintenanceReason = txtMaintenanceReason.Text;
|
||||
model.MaintenanceHandle = txtMaintenanceHandle.Text;
|
||||
if (add) Funs.DB.Running_LogManagement.InsertOnSubmit(model);
|
||||
Funs.DB.Running_Operation.InsertAllOnSubmit(addoptionlist);
|
||||
Funs.DB.Running_Maintenance.InsertAllOnSubmit(addmaintenancelist);
|
||||
Funs.DB.SubmitChanges();
|
||||
|
||||
ShowNotify("操作成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 日志管理绑定
|
||||
/// </summary>
|
||||
public void DataBrid(List<Running_LogManagementDto> list = null)
|
||||
{
|
||||
if (list == null) list = new List<Running_LogManagementDto>();
|
||||
var query = from a in Funs.DB.Running_LogManagement
|
||||
join b in Funs.DB.PreRun_SysDevice on a.SystemId equals b.PreRunId
|
||||
where a.RunningId == this.RunningId
|
||||
select new Running_LogManagementDto
|
||||
{
|
||||
RunningId = a.RunningId,
|
||||
ProjectId = a.ProjectId,
|
||||
InstallationId = a.InstallationId,
|
||||
ProcessesId = a.ProcessesId,
|
||||
SystemId = a.SystemId,
|
||||
SystemName = b.PreRunName,
|
||||
JobNo = a.JobNo,
|
||||
ShiftType = a.ShiftType,
|
||||
ShiftUser = a.ShiftUser,
|
||||
SuccessionUser = a.SuccessionUser,
|
||||
StartData = a.StartData,
|
||||
EndData = a.EndData,
|
||||
Situation = a.Situation,
|
||||
Remarks = a.Remarks,
|
||||
HandoverCare = a.HandoverCare,
|
||||
AddUser = a.AddUser,
|
||||
AddTime = a.AddTime
|
||||
};
|
||||
|
||||
var data = query.ToList();
|
||||
if (data.Count > 0) list.AddRange(data);
|
||||
gvSystemOption.DataSource = list;
|
||||
gvSystemOption.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取绑定集合
|
||||
/// </summary>
|
||||
private List<Running_LogManagementDto> gvSystemOptionLs()
|
||||
{
|
||||
List<Running_LogManagementDto> massQuestionLs = new List<Running_LogManagementDto>();
|
||||
JArray mergedData = gvSystemOption.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
massQuestionLs.Add(new Running_LogManagementDto
|
||||
{
|
||||
RunningId = this.gvSystemOption.Rows[i].DataKeys[0].ToString(),
|
||||
ProjectId = this.CurrUser.LoginProjectId,
|
||||
InstallationId = this.gvSystemOption.Rows[i].DataKeys[1].ToString(),
|
||||
ProcessesId = this.gvSystemOption.Rows[i].DataKeys[2].ToString(),
|
||||
SystemId = this.gvSystemOption.Rows[i].DataKeys[3].ToString(),
|
||||
SystemName = this.gvSystemOption.Rows[i].DataKeys[4].ToString(),
|
||||
Situation = values.Value<string>("Situation"),
|
||||
Remarks = values.Value<string>("Remarks"),
|
||||
AddUser = CurrUser.UserId,
|
||||
AddTime = DateTime.Now,
|
||||
});
|
||||
}
|
||||
return massQuestionLs;
|
||||
}
|
||||
|
||||
public class Running_LogManagementDto : Running_LogManagement
|
||||
{
|
||||
public string SystemName { get; set; }
|
||||
}
|
||||
|
||||
#region 操作问题
|
||||
|
||||
/// <summary>
|
||||
/// 操作问题绑定
|
||||
/// </summary>
|
||||
public void gvOperationBrid()
|
||||
{
|
||||
var list = Funs.DB.Running_Operation.Where(x => x.RunningId == this.RunningId).ToList();
|
||||
gvOperation.DataSource = list;
|
||||
gvOperation.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 操作问题集合
|
||||
/// </summary>
|
||||
private List<Running_Operation> gvOperationLs()
|
||||
{
|
||||
List<Running_Operation> massQuestionLs = new List<Running_Operation>();
|
||||
JArray mergedData = gvOperation.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
massQuestionLs.Add(new Running_Operation
|
||||
{
|
||||
OperationId = IsStrVal(this.gvOperation.Rows[i].DataKeys[0]),
|
||||
RunningId = IsStrVal(this.gvOperation.Rows[i].DataKeys[1]),
|
||||
ProjectId = this.CurrUser.LoginProjectId,
|
||||
InstallationId = IsStrVal(this.gvOperation.Rows[i].DataKeys[2]),
|
||||
ProcessesId = IsStrVal(this.gvOperation.Rows[i].DataKeys[3]),
|
||||
SystemId = IsStrVal(this.gvOperation.Rows[i].DataKeys[4]),
|
||||
OperationReason = values.Value<string>("OperationReason"),
|
||||
OperationHandle = values.Value<string>("OperationHandle"),
|
||||
AddUser = CurrUser.UserId,
|
||||
AddTime = DateTime.Now,
|
||||
Sort = i
|
||||
});
|
||||
}
|
||||
return massQuestionLs;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 维护问题删除
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void gvOperation_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
if (e.CommandName == "Delete")
|
||||
{
|
||||
string rowID = e.RowID;
|
||||
var model = Funs.DB.Running_Operation.FirstOrDefault(p => p.OperationId == rowID);
|
||||
if (model != null)
|
||||
{
|
||||
Funs.DB.Running_Operation.DeleteOnSubmit(model);
|
||||
Funs.DB.SubmitChanges();
|
||||
gvOperationBrid();
|
||||
ShowNotify("删除成功!");
|
||||
}
|
||||
else
|
||||
{
|
||||
var list = gvOperationLs();
|
||||
list.RemoveAll(x => x.OperationId == rowID);
|
||||
gvOperation.DataSource = list;
|
||||
gvOperation.DataBind();
|
||||
ShowNotify("删除成功!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增
|
||||
/// </summary>
|
||||
protected void btnOperationAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
var list = gvOperationLs();
|
||||
Running_Operation model = new Running_Operation
|
||||
{
|
||||
OperationId = Guid.NewGuid().ToString()
|
||||
};
|
||||
list.Add(model);
|
||||
this.gvOperation.DataSource = list;
|
||||
this.gvOperation.DataBind();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 维护问题
|
||||
|
||||
/// <summary>
|
||||
/// 维护问题绑定
|
||||
/// </summary>
|
||||
public void gvMaintenanceBrid()
|
||||
{
|
||||
var list = Funs.DB.Running_Maintenance.Where(x => x.RunningId == this.RunningId).ToList();
|
||||
gvMaintenance.DataSource = list;
|
||||
gvMaintenance.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 维护问题集合
|
||||
/// </summary>
|
||||
private List<Running_Maintenance> gvMaintenanceLs()
|
||||
{
|
||||
List<Running_Maintenance> massQuestionLs = new List<Running_Maintenance>();
|
||||
JArray mergedData = gvMaintenance.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
massQuestionLs.Add(new Running_Maintenance
|
||||
{
|
||||
MaintenanceId = IsStrVal(this.gvMaintenance.Rows[i].DataKeys[0]),
|
||||
RunningId = IsStrVal(this.gvMaintenance.Rows[i].DataKeys[1]),
|
||||
ProjectId = this.CurrUser.LoginProjectId,
|
||||
InstallationId = IsStrVal(this.gvMaintenance.Rows[i].DataKeys[2]),
|
||||
ProcessesId = IsStrVal(this.gvMaintenance.Rows[i].DataKeys[3]),
|
||||
SystemId = IsStrVal(this.gvMaintenance.Rows[i].DataKeys[4]),
|
||||
MaintenanceReason = values.Value<string>("MaintenanceReason"),
|
||||
MaintenanceHandle = values.Value<string>("MaintenanceHandle"),
|
||||
AddUser = CurrUser.UserId,
|
||||
AddTime = DateTime.Now,
|
||||
Sort = i
|
||||
});
|
||||
}
|
||||
return massQuestionLs;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 维护问题删除
|
||||
/// </summary>
|
||||
protected void gvMaintenance_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
if (e.CommandName == "Delete")
|
||||
{
|
||||
string rowID = e.RowID;
|
||||
var model = Funs.DB.Running_Maintenance.FirstOrDefault(p => p.MaintenanceId == rowID);
|
||||
if (model != null)
|
||||
{
|
||||
Funs.DB.Running_Maintenance.DeleteOnSubmit(model);
|
||||
Funs.DB.SubmitChanges();
|
||||
gvMaintenanceBrid();
|
||||
ShowNotify("删除成功!");
|
||||
}
|
||||
else
|
||||
{
|
||||
var list = gvMaintenanceLs();
|
||||
list.RemoveAll(x => x.MaintenanceId == rowID);
|
||||
gvMaintenance.DataSource = list;
|
||||
gvMaintenance.DataBind();
|
||||
ShowNotify("删除成功!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增
|
||||
/// </summary>
|
||||
protected void btnMaintenanceAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
var list = gvMaintenanceLs();
|
||||
Running_Maintenance model = new Running_Maintenance
|
||||
{
|
||||
MaintenanceId = Guid.NewGuid().ToString()
|
||||
};
|
||||
list.Add(model);
|
||||
this.gvMaintenance.DataSource = list;
|
||||
this.gvMaintenance.DataBind();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public string IsStrVal(object value)
|
||||
{
|
||||
var result = string.Empty;
|
||||
if (value != null) result = value.ToString();
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -150,166 +150,67 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
protected global::FineUIPro.CheckBoxList rdbOperation;
|
||||
|
||||
/// <summary>
|
||||
/// tys 控件。
|
||||
/// ContentPanel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow tys;
|
||||
protected global::FineUIPro.ContentPanel ContentPanel4;
|
||||
|
||||
/// <summary>
|
||||
/// txtDesalinatedSituation 控件。
|
||||
/// Form5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtDesalinatedSituation;
|
||||
protected global::FineUIPro.Form Form5;
|
||||
|
||||
/// <summary>
|
||||
/// txtDesalinatedRemarks 控件。
|
||||
/// gvSystemOption 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtDesalinatedRemarks;
|
||||
protected global::FineUIPro.Grid gvSystemOption;
|
||||
|
||||
/// <summary>
|
||||
/// xhs 控件。
|
||||
/// txtSituation 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow xhs;
|
||||
protected global::FineUIPro.TextArea txtSituation;
|
||||
|
||||
/// <summary>
|
||||
/// txtLoopSituation 控件。
|
||||
/// txtRemarks 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtLoopSituation;
|
||||
protected global::FineUIPro.TextArea txtRemarks;
|
||||
|
||||
/// <summary>
|
||||
/// txtLoopRemarks 控件。
|
||||
/// ContentPanel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtLoopRemarks;
|
||||
protected global::FineUIPro.ContentPanel ContentPanel5;
|
||||
|
||||
/// <summary>
|
||||
/// zq 控件。
|
||||
/// Form6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow zq;
|
||||
|
||||
/// <summary>
|
||||
/// txtSteamSituation 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtSteamSituation;
|
||||
|
||||
/// <summary>
|
||||
/// txtSteamRemarks 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtSteamRemarks;
|
||||
|
||||
/// <summary>
|
||||
/// kyz 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow kyz;
|
||||
|
||||
/// <summary>
|
||||
/// txtAirCompressionSituation 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAirCompressionSituation;
|
||||
|
||||
/// <summary>
|
||||
/// txtAirCompressionRemarks 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAirCompressionRemarks;
|
||||
|
||||
/// <summary>
|
||||
/// hca 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow hca;
|
||||
|
||||
/// <summary>
|
||||
/// txtCompoundAmmoniaSituation 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtCompoundAmmoniaSituation;
|
||||
|
||||
/// <summary>
|
||||
/// txtCompoundAmmoniaRemarks 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtCompoundAmmoniaRemarks;
|
||||
|
||||
/// <summary>
|
||||
/// ns 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow ns;
|
||||
|
||||
/// <summary>
|
||||
/// txtUreaSituation 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtUreaSituation;
|
||||
|
||||
/// <summary>
|
||||
/// txtUreaRemarks 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtUreaRemarks;
|
||||
protected global::FineUIPro.Form Form6;
|
||||
|
||||
/// <summary>
|
||||
/// txtHandoverCare 控件。
|
||||
|
@ -338,6 +239,33 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form3;
|
||||
|
||||
/// <summary>
|
||||
/// gvOperation 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvOperation;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// btnOperationAdd 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOperationAdd;
|
||||
|
||||
/// <summary>
|
||||
/// txtOperationReason 控件。
|
||||
/// </summary>
|
||||
|
@ -374,6 +302,33 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form4;
|
||||
|
||||
/// <summary>
|
||||
/// gvMaintenance 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvMaintenance;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
/// <summary>
|
||||
/// btnMaintenanceAdd 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnMaintenanceAdd;
|
||||
|
||||
/// <summary>
|
||||
/// txtMaintenanceReason 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -84,6 +84,12 @@
|
|||
<Columns>
|
||||
<f:RowNumberField />
|
||||
<f:RenderField ColumnID="ProjectName" DataField="ProjectName" HeaderText="项目名称" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="InstallationName" DataField="InstallationName" HeaderText="装置名称" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="ProcessesName" DataField="ProcessesName" HeaderText="工序名称" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="SystemName" DataField="SystemName" HeaderText="系统名称" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="JobNo" DataField="JobNo" HeaderText="工作编号" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
|
|
|
@ -19,17 +19,13 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
{
|
||||
public partial class RunningLogManagementList : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 系统主键
|
||||
/// </summary>
|
||||
public string SystemId { get { return (string)ViewState["SystemId"]; } set { ViewState["SystemId"] = value; } }
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
//绑定数据
|
||||
InitTreeMenu();
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,10 +95,6 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
/// </summary>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
if (this.tvControlItem.SelectedNodeID.Split('|').Length > 2)
|
||||
{
|
||||
this.SystemId = this.tvControlItem.SelectedNodeID.Split('|').Last();
|
||||
}
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
|
@ -115,14 +107,17 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
/// </summary>
|
||||
public void BindGrid()
|
||||
{
|
||||
string strSql = @"select a.RunningId,a.ProjectId,project.ProjectName as ProjectName,a.InstallationId,a.ProcessesId,a.SystemId,a.JobNo,a.ShiftType,(case a.ShiftType when 1 then '白班' else '夜班' end) as ShiftTypeName,a.ShiftUser,shiftuser.UserName as ShiftUserName,a.SuccessionUser,successuser.UserName as SuccessionUserName,a.StartData,a.EndData,a.IsDesalinated,a.DesalinatedSituation,a.DesalinatedRemarks,a.IsLoop,a.LoopSituation,a.LoopRemarks,a.IsSteam,a.SteamSituation,a.SteamRemarks,a.IsAirCompression,a.AirCompressionSituation,a.AirCompressionRemarks,a.IsCompoundAmmonia,a.CompoundAmmoniaSituation,a.CompoundAmmoniaRemarks,a.IsUrea,a.UreaSituation,a.UreaRemarks,a.HandoverCare,a.OperationReason,a.OperationHandle,a.MaintenanceReason,a.MaintenanceHandle,a.AddUser,a.AddTime,a.Sort from Running_LogManagement as a inner join Sys_User as shiftuser on shiftuser.UserId=a.ShiftUser inner join Sys_User as successuser on successuser.UserId=a.SuccessionUser inner join Base_Project as project on project.ProjectId=a.ProjectId ";
|
||||
string strSql = @"select a.RunningId,a.ProjectId,project.ProjectName as ProjectName,a.InstallationId,a.ProcessesId,a.SystemId,inst.PreRunName as InstallationName,proce.PreRunName as ProcessesName,syst.PreRunName as SystemName,a.JobNo,a.ShiftType,(case a.ShiftType when 1 then '白班' else '夜班' end) as ShiftTypeName,a.ShiftUser,shiftuser.UserName as ShiftUserName,a.SuccessionUser,successuser.UserName as SuccessionUserName,a.StartData,a.EndData,a.AddUser,a.AddTime,a.Sort from Running_LogManagement as a inner join Sys_User as shiftuser on shiftuser.UserId=a.ShiftUser inner join Sys_User as successuser on successuser.UserId=a.SuccessionUser inner join Base_Project as project on project.ProjectId=a.ProjectId inner join PreRun_SysDevice as inst on inst.PreRunId=a.InstallationId inner join PreRun_SysDevice as proce on proce.PreRunId=a.ProcessesId inner join PreRun_SysDevice as syst on syst.PreRunId=a.SystemId where a.ProjectId=@ProjectId ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@projectid", this.CurrUser.LoginProjectId));
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
if (this.tvControlItem.SelectedNodeID.Split('|').Length > 0)
|
||||
{
|
||||
var installationId = this.tvControlItem.SelectedNodeID.Split('|').First();
|
||||
strSql += " and a.InstallationId=@InstallationId";
|
||||
listStr.Add(new SqlParameter("@InstallationId", installationId));
|
||||
if (installationId != "0")
|
||||
{
|
||||
strSql += " and a.InstallationId=@InstallationId";
|
||||
listStr.Add(new SqlParameter("@InstallationId", installationId));
|
||||
}
|
||||
}
|
||||
if (this.tvControlItem.SelectedNodeID.Split('|').Length > 1)
|
||||
{
|
||||
|
@ -209,12 +204,7 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
/// </summary>
|
||||
protected void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(this.SystemId))
|
||||
{
|
||||
Alert.ShowInTop("请选择系统!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RunningLogManagementEdit.aspx?RunningId=&SystemId=" + this.SystemId, "新增 - ")));
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RunningLogManagementEdit.aspx?RunningId=", "新增 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -227,7 +217,7 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RunningLogManagementEdit.aspx?RunningId={0}&SystemId={1}", Grid1.SelectedRowID, this.SystemId, "编辑 - ")));
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RunningLogManagementEdit.aspx?RunningId={0}", Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -292,29 +282,8 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
SuccessionUserName = d.UserName,
|
||||
a.StartData,
|
||||
a.EndData,
|
||||
a.IsDesalinated,
|
||||
a.DesalinatedSituation,
|
||||
a.DesalinatedRemarks,
|
||||
a.IsLoop,
|
||||
a.LoopSituation,
|
||||
a.LoopRemarks,
|
||||
a.IsSteam,
|
||||
a.SteamSituation,
|
||||
a.SteamRemarks,
|
||||
a.IsAirCompression,
|
||||
a.AirCompressionSituation,
|
||||
a.AirCompressionRemarks,
|
||||
a.IsCompoundAmmonia,
|
||||
a.CompoundAmmoniaSituation,
|
||||
a.CompoundAmmoniaRemarks,
|
||||
a.IsUrea,
|
||||
a.UreaSituation,
|
||||
a.UreaRemarks,
|
||||
a.HandoverCare,
|
||||
a.OperationReason,
|
||||
a.OperationHandle,
|
||||
a.MaintenanceReason,
|
||||
a.MaintenanceHandle,
|
||||
a.Situation,
|
||||
a.Remarks,
|
||||
a.AddUser,
|
||||
a.AddTime,
|
||||
a.Sort
|
||||
|
@ -404,181 +373,181 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
#region 数据
|
||||
|
||||
var dataIndex = 5;
|
||||
if (model.IsDesalinated == 1)
|
||||
{
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("DW Station 脱盐水");
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.DesalinatedSituation);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.DesalinatedRemarks);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
dataIndex += 2;
|
||||
}
|
||||
if (model.IsLoop == 1)
|
||||
{
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("ACW/UCW/ECW Station 循环水");
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.LoopSituation);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.LoopRemarks);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
dataIndex += 2;
|
||||
}
|
||||
if (model.IsSteam == 1)
|
||||
{
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Steam System蒸汽");
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.SteamSituation);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.SteamRemarks);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
dataIndex += 2;
|
||||
}
|
||||
if (model.IsAirCompression == 1)
|
||||
{
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Air Station 空压站");
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.AirCompressionSituation);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.AirCompressionRemarks);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
dataIndex += 2;
|
||||
}
|
||||
if (model.IsCompoundAmmonia == 1)
|
||||
{
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Ammonia Plant 合成氨");
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.CompoundAmmoniaSituation);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.CompoundAmmoniaRemarks);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
dataIndex += 2;
|
||||
}
|
||||
if (model.IsUrea == 1)
|
||||
{
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Urea Plant 尿素");
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.UreaSituation);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.UreaRemarks);
|
||||
ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
dataIndex += 2;
|
||||
}
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Attention of next shift交班注意");
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 30);
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.HandoverCare);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
dataIndex += 2;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("operation issue操作问题");
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 30);
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue($"reason原因:{model.OperationReason}");
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 3, dataIndex + 3, 0, 5, 30);
|
||||
region = new CellRangeAddress(dataIndex + 3, dataIndex + 3, 0, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 3).GetCell(0).SetCellValue($"solution处理:{model.OperationHandle}");
|
||||
ws.GetRow(dataIndex + 3).GetCell(0).CellStyle = leftStyle;
|
||||
dataIndex += 3;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("maintenance issue维护问题");
|
||||
ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 30);
|
||||
region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue($"reason原因:{model.MaintenanceReason}");
|
||||
ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 3, dataIndex + 3, 0, 5, 30);
|
||||
region = new CellRangeAddress(dataIndex + 3, dataIndex + 3, 0, 5);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(dataIndex + 3).GetCell(0).SetCellValue($"solution处理:{model.MaintenanceHandle}");
|
||||
ws.GetRow(dataIndex + 3).GetCell(0).CellStyle = leftStyle;
|
||||
dataIndex += 3;
|
||||
//if (model.IsDesalinated == 1)
|
||||
//{
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("DW Station 脱盐水");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.DesalinatedSituation);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.DesalinatedRemarks);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
// dataIndex += 2;
|
||||
//}
|
||||
//if (model.IsLoop == 1)
|
||||
//{
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("ACW/UCW/ECW Station 循环水");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.LoopSituation);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.LoopRemarks);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
// dataIndex += 2;
|
||||
//}
|
||||
//if (model.IsSteam == 1)
|
||||
//{
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Steam System蒸汽");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.SteamSituation);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.SteamRemarks);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
// dataIndex += 2;
|
||||
//}
|
||||
//if (model.IsAirCompression == 1)
|
||||
//{
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Air Station 空压站");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.AirCompressionSituation);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.AirCompressionRemarks);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
// dataIndex += 2;
|
||||
//}
|
||||
//if (model.IsCompoundAmmonia == 1)
|
||||
//{
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Ammonia Plant 合成氨");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.CompoundAmmoniaSituation);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.CompoundAmmoniaRemarks);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
// dataIndex += 2;
|
||||
//}
|
||||
//if (model.IsUrea == 1)
|
||||
//{
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Urea Plant 尿素");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
// region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue("");
|
||||
// ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle;
|
||||
// ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90);
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.UreaSituation);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
// region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5);
|
||||
// ws.AddMergedRegion(region);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.UreaRemarks);
|
||||
// ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle;
|
||||
// dataIndex += 2;
|
||||
//}
|
||||
//ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
//region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
//ws.AddMergedRegion(region);
|
||||
//ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Attention of next shift交班注意");
|
||||
//ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
//ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 30);
|
||||
//region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 5);
|
||||
//ws.AddMergedRegion(region);
|
||||
//ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.HandoverCare);
|
||||
//ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
//dataIndex += 2;
|
||||
//ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
//region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
//ws.AddMergedRegion(region);
|
||||
//ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("operation issue操作问题");
|
||||
//ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
//ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 30);
|
||||
//region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 5);
|
||||
//ws.AddMergedRegion(region);
|
||||
//ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue($"reason原因:{model.OperationReason}");
|
||||
//ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
//ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 3, dataIndex + 3, 0, 5, 30);
|
||||
//region = new CellRangeAddress(dataIndex + 3, dataIndex + 3, 0, 5);
|
||||
//ws.AddMergedRegion(region);
|
||||
//ws.GetRow(dataIndex + 3).GetCell(0).SetCellValue($"solution处理:{model.OperationHandle}");
|
||||
//ws.GetRow(dataIndex + 3).GetCell(0).CellStyle = leftStyle;
|
||||
//dataIndex += 3;
|
||||
//ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
//region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5);
|
||||
//ws.AddMergedRegion(region);
|
||||
//ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("maintenance issue维护问题");
|
||||
//ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold;
|
||||
//ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 30);
|
||||
//region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 5);
|
||||
//ws.AddMergedRegion(region);
|
||||
//ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue($"reason原因:{model.MaintenanceReason}");
|
||||
//ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle;
|
||||
//ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 3, dataIndex + 3, 0, 5, 30);
|
||||
//region = new CellRangeAddress(dataIndex + 3, dataIndex + 3, 0, 5);
|
||||
//ws.AddMergedRegion(region);
|
||||
//ws.GetRow(dataIndex + 3).GetCell(0).SetCellValue($"solution处理:{model.MaintenanceHandle}");
|
||||
//ws.GetRow(dataIndex + 3).GetCell(0).CellStyle = leftStyle;
|
||||
//dataIndex += 3;
|
||||
#endregion
|
||||
|
||||
ws.PrintSetup.Landscape = false;
|
||||
|
@ -616,7 +585,6 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun
|
|||
|
||||
#endregion
|
||||
|
||||
|
||||
#region 私有方法
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue