20240412 质量月报

This commit is contained in:
2024-04-12 23:13:34 +08:00
parent 549b2550c4
commit 95511d1a9c
85 changed files with 1528 additions and 926 deletions
@@ -119,19 +119,19 @@
</f:RenderField>
</Columns>
</f:GroupField>
<f:TemplateField ColumnID="Status" Width="120px" HeaderText="状态" HeaderTextAlign="Center" TextAlign="Center">
<%--<f:TemplateField ColumnID="Status" Width="120px" HeaderText="状态" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="txtStatus" runat="server" Text='<%# ConvertState(Eval("Status")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:WindowField TextAlign="Center" Width="80px" WindowID="WindowAtt"
Text="审批列表" ToolTip="审批列表" DataIFrameUrlFields="DataReceivingDocId" DataIFrameUrlFormatString="./DataReceivingDocApprove.aspx?Id={0}" />
<f:TemplateField ColumnID="AttachFile" Width="150px" HeaderText="附件" HeaderTextAlign="Center" TextAlign="Left">
</f:TemplateField>--%>
<%--<f:WindowField TextAlign="Center" Width="80px" WindowID="WindowAtt"
Text="审批列表" ToolTip="审批列表" DataIFrameUrlFields="DataReceivingDocId" DataIFrameUrlFormatString="./DataReceivingDocApprove.aspx?Id={0}" />--%>
<%--<f:TemplateField ColumnID="AttachFile" Width="150px" HeaderText="附件" HeaderTextAlign="Center" TextAlign="Left">
<ItemTemplate>
<asp:LinkButton ID="lbtnFileUrl" runat="server" CssClass="ItemLink"
Text='<%# BLL.AttachFileService.GetBtnFileUrl(Eval("DataReceivingDocId")) %>' ToolTip="附件查看"></asp:LinkButton>
</ItemTemplate>
</f:TemplateField>
</f:TemplateField>--%>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
@@ -152,16 +152,16 @@
</f:Panel>
<f:Window ID="Window1" Title="资料收发文登记记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
Width="1024px" Height="650px">
Width="1024px" Height="550px">
</f:Window>
<f:Window ID="Window2" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
<%--<f:Window ID="Window2" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Top" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
Width="700px" Height="560px">
</f:Window>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true"
</f:Window>--%>
<%--<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true"
EnableMaximize="true" Target="Parent" EnableResize="false" runat="server"
IsModal="true" Width="700px" Height="500px">
</f:Window>
</f:Window>--%>
<f:Menu ID="Menu1" runat="server">
<Items>
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Text="修改" Icon="Pencil" OnClick="btnMenuModify_Click" Hidden="true">
@@ -49,7 +49,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
doc.IssueToUnit,
doc.IssueCopies,
doc.IssueUnitReceiver,
(CASE WHEN doc.IsOnFile='True' THEN '是' ELSE '' END) AS IsOnFile,
(CASE doc.IsOnFile WHEN 'True' THEN '是' WHEN 'False' THEN '否' ELSE '' END) AS IsOnFile,
doc.CompileMan,
doc.CompileDate,
doc.Status,
@@ -129,24 +129,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label2;
/// <summary>
/// txtStatus 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label txtStatus;
/// <summary>
/// lbtnFileUrl 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtnFileUrl;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@@ -174,24 +156,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Window2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
/// <summary>
/// WindowAtt 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowAtt;
/// <summary>
/// Menu1 控件。
/// </summary>
@@ -23,13 +23,13 @@
<f:TextBox ID="txtFileCode" runat="server" Label="文件号" MaxLength="100" Required="true" ShowRedStar="true" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
<f:TextBox ID="txtFileName" runat="server" Label="文件名称" MaxLength="150" Required="true" ShowRedStar="true" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="日期" ID="txtReceiveDate"
LabelAlign="Right" LabelWidth="130px">
LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true">
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtFileType" Label="文件类别" runat="server" LabelAlign="Right" LabelWidth="130px">
<f:TextBox ID="txtFileType" Label="文件类别" runat="server" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true">
</f:TextBox>
<f:DropDownList ID="drpCNProfessionalId" runat="server" Label="专业" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true"></f:DropDownList>
<%--<f:DropDownList ID="drpSendUnit" runat="server" Label="发件单位" EnableCheckBoxSelect="true" EnableMultiSelect="true" AutoSelectFirstItem="false" LabelAlign="Right" LabelWidth="130px"></f:DropDownList>--%>
@@ -38,9 +38,9 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtCopies" Label="份数" runat="server" NoDecimal="true" LabelAlign="Right" LabelWidth="130px" NoNegative="true">
<f:NumberBox ID="txtCopies" Label="份数" runat="server" NoDecimal="true" LabelAlign="Right" LabelWidth="130px" NoNegative="true" Required="true" ShowRedStar="true">
</f:NumberBox>
<f:TextBox ID="txtSendMan" Label="发件人" runat="server" LabelAlign="Right" LabelWidth="130px">
<f:TextBox ID="txtSendMan" Label="发件人" runat="server" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true">
</f:TextBox>
<f:TextBox ID="txtDocumentHandler" Label="文件处理人" runat="server" LabelAlign="Right" LabelWidth="130px">
</f:TextBox>
@@ -103,8 +103,8 @@
<f:NumberBox ID="txtIssueCopies" Label="下发份数" runat="server" NoDecimal="true" LabelAlign="Right" LabelWidth="130px" NoNegative="true">
</f:NumberBox>
<f:TextBox ID="txtIssueUnitReceiver" runat="server" Label="下发单位接收人" LabelAlign="Right" LabelWidth="130px"></f:TextBox>
<f:RadioButtonList runat="server" ID="rblIsOnFile" Label="是否存档" ShowRedStar="true" LabelAlign="Right" LabelWidth="130px">
<f:RadioItem Text="是" Value="true" Selected="true" />
<f:RadioButtonList runat="server" ID="rblIsOnFile" Label="是否存档" LabelAlign="Right" LabelWidth="130px">
<f:RadioItem Text="是" Value="true" />
<f:RadioItem Text="否" Value="false" />
</f:RadioButtonList>
</Items>
@@ -115,7 +115,7 @@
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<%--<f:FormRow>
<Items>
<f:Panel ID="Panel2" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<Items>
@@ -127,45 +127,45 @@
</Items>
</f:Panel>
</Items>
</f:FormRow>
<f:FormRow MarginTop="10px">
</f:FormRow>--%>
<%--<f:FormRow MarginTop="10px">
<Items>
<f:DropDownList runat="server" Width="300px" Label="专业工程师确认" LabelWidth="130px" ID="drpAudit" ShowRedStar="true" Required="true" EmptyText="--请选择--">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow ID="agree">
</f:FormRow>--%>
<%--<f:FormRow ID="agree">
<Items>
<f:RadioButtonList runat="server" ID="rblIsAgree" Label="是否同意" ShowRedStar="true">
<f:RadioItem Text="同意" Value="true" Selected="true" />
<f:RadioItem Text="不同意" Value="false" Selected="true" />
</f:RadioButtonList>
</Items>
</f:FormRow>
<f:FormRow ID="options">
</f:FormRow>--%>
<%--<f:FormRow ID="options">
<Items>
<f:TextArea ID="txtidea" ShowRedStar="true" runat="server" Label="办理意见" MaxLength="3000">
</f:TextArea>
</Items>
</f:FormRow>
</f:FormRow>--%>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:HiddenField ID="hdAttachUrl" runat="server">
</f:HiddenField>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ToolTip="保存" ValidateForms="SimpleForm1" OnClick="btnSave_Click" Hidden="true">
</f:Button>
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" Text="提交" ToolTip="提交" OnClick="btnSubmit_Click" ValidateForms="SimpleForm1">
<%--<f:HiddenField ID="hdAttachUrl" runat="server">
</f:HiddenField>--%>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ToolTip="保存" ValidateForms="SimpleForm1" OnClick="btnSave_Click">
</f:Button>
<%--<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" Text="提交" ToolTip="提交" OnClick="btnSubmit_Click" ValidateForms="SimpleForm1">
</f:Button>--%>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
<%--<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
</f:Window>--%>
</form>
</body>
</html>
@@ -28,22 +28,22 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// <summary>
/// 加载专业工程师
/// </summary>
public void LoadAuditSelect()
{
var db = Funs.DB;
var userList = from x in db.Sys_User
join y in db.Project_ProjectUnit
on x.UnitId equals y.UnitId
join p in db.Project_ProjectUser
on x.UserId equals p.UserId
where y.UnitId == Const.UnitId_CWCEC && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId
where p.RoleId.Contains(Const.ZBCNEngineer)
select new { UserId = x.UserId, UserName = x.UserName };
drpAudit.DataValueField = "UserId";
drpAudit.DataTextField = "UserName";
this.drpAudit.DataSource = userList.ToList();
this.drpAudit.DataBind();
}
//public void LoadAuditSelect()
//{
// var db = Funs.DB;
// var userList = from x in db.Sys_User
// join y in db.Project_ProjectUnit
// on x.UnitId equals y.UnitId
// join p in db.Project_ProjectUser
// on x.UserId equals p.UserId
// where y.UnitId == Const.UnitId_CWCEC && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId
// where p.RoleId.Contains(Const.ZBCNEngineer)
// select new { UserId = x.UserId, UserName = x.UserName };
// drpAudit.DataValueField = "UserId";
// drpAudit.DataTextField = "UserName";
// this.drpAudit.DataSource = userList.ToList();
// this.drpAudit.DataBind();
//}
#endregion
#region
@@ -72,8 +72,8 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.txtIssueCopies.Readonly = true;
this.txtIssueUnitReceiver.Readonly = true;
this.rblIsOnFile.Readonly = true;
this.drpAudit.Readonly = true;
this.btnAttach.Enabled = false;
//this.drpAudit.Readonly = true;
//this.btnAttach.Enabled = false;
}
#endregion
@@ -88,21 +88,21 @@ namespace FineUIPro.Web.CQMS.Comprehensive
if (!IsPostBack)
{
GetButtonPower();
BLL.UnitService.InitUnitDownList(this.drpSendUnitId, this.CurrUser.LoginProjectId, false);//发件单位
BLL.UnitService.InitUnitDownList(this.drpReceiveUnit, this.CurrUser.LoginProjectId, false);//接收单位
BLL.UnitService.InitUnitDownList(this.drpIssueToUnit, this.CurrUser.LoginProjectId, false);//下发至单位
BLL.UnitService.GetUnit(this.drpSendUnitId, this.CurrUser.LoginProjectId, false);//发件单位
BLL.UnitService.GetUnit(this.drpReceiveUnit, this.CurrUser.LoginProjectId, false);//接收单位
BLL.UnitService.GetUnit(this.drpIssueToUnit, this.CurrUser.LoginProjectId, false);//下发至单位
BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true);//专业
LoadAuditSelect();
this.agree.Hidden = true;
this.options.Hidden = true;
//LoadAuditSelect();
//this.agree.Hidden = true;
//this.options.Hidden = true;
this.btnSave.Hidden = true;
this.btnSubmit.Hidden = true;
//this.btnSave.Hidden = true;
//this.btnSubmit.Hidden = true;
this.DataReceivingDocId = Request.Params["DataReceivingDocId"];
Model.Comprehensive_DataReceivingDoc dataReceivingDoc = BLL.DataReceivingDocService.GetDataReceivingDocById(this.DataReceivingDocId);
if (dataReceivingDoc != null)
{
this.hdAttachUrl.Text = this.DataReceivingDocId;
//this.hdAttachUrl.Text = this.DataReceivingDocId;
this.txtFileCode.Text = dataReceivingDoc.FileCode;
this.txtFileName.Text = dataReceivingDoc.FileName;
this.txtReceiveDate.Text = dataReceivingDoc.ReceiveDate.HasValue ? string.Format("{0:yyyy-MM-dd}", dataReceivingDoc.ReceiveDate) : "";
@@ -141,48 +141,52 @@ namespace FineUIPro.Web.CQMS.Comprehensive
}
this.txtIssueCopies.Text = dataReceivingDoc.IssueCopies.HasValue ? dataReceivingDoc.IssueCopies.ToString() : "";
this.txtIssueUnitReceiver.Text = dataReceivingDoc.IssueUnitReceiver;
if (dataReceivingDoc.IsOnFile == true)
if (dataReceivingDoc.IsOnFile.HasValue)
{
this.rblIsOnFile.SelectedValue = "true";
}
else
{
this.rblIsOnFile.SelectedValue = "false";
}
var currApprove = DataReceivingDocApproveService.GetCurrentApprove(dataReceivingDoc.DataReceivingDocId);
if (currApprove != null)
{ //重新编制 编制人 可以 显示 提交 保存按钮
this.drpAudit.SelectedValue = currApprove.ApproveMan;
if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile && dataReceivingDoc.CompileMan == CurrUser.UserId)
if (dataReceivingDoc.IsOnFile == true)
{
this.btnSubmit.Hidden = false;
this.btnSave.Hidden = false;
}//审核状态 审核人 可以显示 提交 保存按钮
else if (currApprove.ApproveType == BLL.Const.Comprehensive_Audit && currApprove.ApproveMan == CurrUser.UserId)
{
//审核状态不可编辑
Readonly();
this.agree.Hidden = false;
this.options.Hidden = false;
this.btnSubmit.Hidden = false;
this.btnSave.Hidden = false;
this.rblIsOnFile.SelectedValue = "true";
}
}//没有当前审核人,已完成状态 或者 待提交状态
else
{
if (dataReceivingDoc.Status == BLL.Const.Comprehensive_Compile && dataReceivingDoc.CompileMan == CurrUser.UserId)
else
{
this.btnSubmit.Hidden = false;
this.btnSave.Hidden = false;
this.rblIsOnFile.SelectedValue = "false";
}
}
//var currApprove = DataReceivingDocApproveService.GetCurrentApprove(dataReceivingDoc.DataReceivingDocId);
//if (currApprove != null)
//{ //重新编制 编制人 可以 显示 提交 保存按钮
// this.drpAudit.SelectedValue = currApprove.ApproveMan;
// if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile && dataReceivingDoc.CompileMan == CurrUser.UserId)
// {
// this.btnSubmit.Hidden = false;
// this.btnSave.Hidden = false;
// }//审核状态 审核人 可以显示 提交 保存按钮
// else if (currApprove.ApproveType == BLL.Const.Comprehensive_Audit && currApprove.ApproveMan == CurrUser.UserId)
// {
// //审核状态不可编辑
// Readonly();
// this.agree.Hidden = false;
// this.options.Hidden = false;
// this.btnSubmit.Hidden = false;
// this.btnSave.Hidden = false;
// }
//}//没有当前审核人,已完成状态 或者 待提交状态
//else
//{
// if (dataReceivingDoc.Status == BLL.Const.Comprehensive_Compile && dataReceivingDoc.CompileMan == CurrUser.UserId)
// {
// this.btnSubmit.Hidden = false;
// this.btnSave.Hidden = false;
// }
//}
}
else
{
this.btnSave.Hidden = false;
this.btnSubmit.Hidden = false;
// this.btnSave.Hidden = false;
// this.btnSubmit.Hidden = false;
this.txtReceiveDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
}
}
}
@@ -257,23 +261,26 @@ namespace FineUIPro.Web.CQMS.Comprehensive
dataReceivingDoc.IssueToUnit = issueToUnits;
dataReceivingDoc.IssueCopies = Funs.GetNewInt(this.txtIssueCopies.Text.Trim());
dataReceivingDoc.IssueUnitReceiver = this.txtIssueUnitReceiver.Text.Trim();
dataReceivingDoc.IsOnFile = Convert.ToBoolean(this.rblIsOnFile.SelectedValue);
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
if (!string.IsNullOrEmpty(this.rblIsOnFile.SelectedValue))
{
dataReceivingDoc.AuditMan = drpAudit.SelectedValue;
} //审核人
dataReceivingDoc.IsOnFile = Convert.ToBoolean(this.rblIsOnFile.SelectedValue);
}
//if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
//{
// dataReceivingDoc.AuditMan = drpAudit.SelectedValue;
//} //审核人
if (string.IsNullOrEmpty(this.DataReceivingDocId))
{
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
{
dataReceivingDoc.DataReceivingDocId = this.hdAttachUrl.Text;
}
else
{
//if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
//{
// dataReceivingDoc.DataReceivingDocId = this.hdAttachUrl.Text;
//}
//else
//{
dataReceivingDoc.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
this.hdAttachUrl.Text = dataReceivingDoc.DataReceivingDocId;
}
//this.hdAttachUrl.Text = dataReceivingDoc.DataReceivingDocId;
//}
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceivingDoc.DataReceivingDocId);
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
//{
@@ -282,22 +289,22 @@ namespace FineUIPro.Web.CQMS.Comprehensive
//}
dataReceivingDoc.CompileMan = this.CurrUser.UserId;
dataReceivingDoc.CompileDate = DateTime.Now;
dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile;
//dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile;
dataReceivingDoc.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
BLL.DataReceivingDocService.AddDataReceivingDoc(dataReceivingDoc);
}
else
{
dataReceivingDoc.DataReceivingDocId = this.DataReceivingDocId;
var model = Funs.DB.Comprehensive_DataReceivingDoc.Where(u => u.DataReceivingDocId == this.DataReceivingDocId).FirstOrDefault();
if (model != null)
{
dataReceivingDoc.Status = model.Status;
}
else
{
dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile;
}
//var model = Funs.DB.Comprehensive_DataReceivingDoc.Where(u => u.DataReceivingDocId == this.DataReceivingDocId).FirstOrDefault();
//if (model != null)
//{
// dataReceivingDoc.Status = model.Status;
//}
//else
//{
// dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile;
//}
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingDocId);
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
//{
@@ -315,182 +322,182 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (drpCNProfessionalId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
return;
}
Model.Comprehensive_DataReceivingDoc dataReceivingDoc = new Model.Comprehensive_DataReceivingDoc();
dataReceivingDoc.ProjectId = this.CurrUser.LoginProjectId;
dataReceivingDoc.FileCode = this.txtFileCode.Text.Trim();
dataReceivingDoc.FileName = this.txtFileName.Text.Trim();
dataReceivingDoc.ReceiveDate = Funs.GetNewDateTime(this.txtReceiveDate.Text.Trim());
dataReceivingDoc.FileType = this.txtFileType.Text.Trim();
dataReceivingDoc.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
//string unitIds = string.Empty;
//var unitList = this.drpSendUnit.SelectedValueArray;
//foreach (var item in unitList)
//{
// unitIds += item + ",";
//}
//if (!string.IsNullOrEmpty(unitIds))
//{
// unitIds = unitIds.Substring(0, unitIds.LastIndexOf(","));
//}
dataReceivingDoc.SendUnit = drpSendUnitId.SelectedValue;
dataReceivingDoc.SendMan = this.txtSendMan.Text.Trim();
dataReceivingDoc.Copies = Funs.GetNewInt(this.txtCopies.Text.Trim());
dataReceivingDoc.DocumentHandler = this.txtDocumentHandler.Text.Trim();
dataReceivingDoc.SendDate = Funs.GetNewDateTime(this.txtSendDate.Text);
string receivingUnits = string.Empty;
var receivingUnitList = this.drpReceiveUnit.SelectedValueArray;
foreach (var item in receivingUnitList)
{
receivingUnits += item + ",";
}
if (!string.IsNullOrEmpty(receivingUnits))
{
receivingUnits = receivingUnits.Substring(0, receivingUnits.LastIndexOf(","));
}
dataReceivingDoc.ReceiveUnit = receivingUnits;
dataReceivingDoc.ReceiveMan = this.txtReceiveMan.Text.Trim();
dataReceivingDoc.IsReply = Convert.ToBoolean(this.rblIsReply.SelectedValue);
dataReceivingDoc.ReturnWuhuangDate = Funs.GetNewDateTime(this.txtReturnWuhuangDate.Text.Trim());
dataReceivingDoc.RetrunWuhuangCopies = Funs.GetNewInt(this.txtRetrunWuhuangCopies.Text.Trim());
string issueToUnits = string.Empty;
var issueToUnitLists = this.drpIssueToUnit.SelectedValueArray;
foreach (var item in issueToUnitLists)
{
issueToUnits += item + ",";
}
if (!string.IsNullOrEmpty(issueToUnits))
{
issueToUnits = issueToUnits.Substring(0, issueToUnits.LastIndexOf(","));
}
dataReceivingDoc.IssueToUnit = issueToUnits;
dataReceivingDoc.IssueCopies = Funs.GetNewInt(this.txtIssueCopies.Text.Trim());
dataReceivingDoc.IssueUnitReceiver = this.txtIssueUnitReceiver.Text.Trim();
dataReceivingDoc.IsOnFile = Convert.ToBoolean(this.rblIsOnFile.SelectedValue);
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
{
dataReceivingDoc.AuditMan = drpAudit.SelectedValue;
} //审核人
//protected void btnSubmit_Click(object sender, EventArgs e)
//{
// if (drpCNProfessionalId.SelectedValue == BLL.Const._Null)
// {
// Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
// return;
// }
// Model.Comprehensive_DataReceivingDoc dataReceivingDoc = new Model.Comprehensive_DataReceivingDoc();
// dataReceivingDoc.ProjectId = this.CurrUser.LoginProjectId;
// dataReceivingDoc.FileCode = this.txtFileCode.Text.Trim();
// dataReceivingDoc.FileName = this.txtFileName.Text.Trim();
// dataReceivingDoc.ReceiveDate = Funs.GetNewDateTime(this.txtReceiveDate.Text.Trim());
// dataReceivingDoc.FileType = this.txtFileType.Text.Trim();
// dataReceivingDoc.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
// //string unitIds = string.Empty;
// //var unitList = this.drpSendUnit.SelectedValueArray;
// //foreach (var item in unitList)
// //{
// // unitIds += item + ",";
// //}
// //if (!string.IsNullOrEmpty(unitIds))
// //{
// // unitIds = unitIds.Substring(0, unitIds.LastIndexOf(","));
// //}
// dataReceivingDoc.SendUnit = drpSendUnitId.SelectedValue;
// dataReceivingDoc.SendMan = this.txtSendMan.Text.Trim();
// dataReceivingDoc.Copies = Funs.GetNewInt(this.txtCopies.Text.Trim());
// dataReceivingDoc.DocumentHandler = this.txtDocumentHandler.Text.Trim();
// dataReceivingDoc.SendDate = Funs.GetNewDateTime(this.txtSendDate.Text);
// string receivingUnits = string.Empty;
// var receivingUnitList = this.drpReceiveUnit.SelectedValueArray;
// foreach (var item in receivingUnitList)
// {
// receivingUnits += item + ",";
// }
// if (!string.IsNullOrEmpty(receivingUnits))
// {
// receivingUnits = receivingUnits.Substring(0, receivingUnits.LastIndexOf(","));
// }
// dataReceivingDoc.ReceiveUnit = receivingUnits;
// dataReceivingDoc.ReceiveMan = this.txtReceiveMan.Text.Trim();
// dataReceivingDoc.IsReply = Convert.ToBoolean(this.rblIsReply.SelectedValue);
// dataReceivingDoc.ReturnWuhuangDate = Funs.GetNewDateTime(this.txtReturnWuhuangDate.Text.Trim());
// dataReceivingDoc.RetrunWuhuangCopies = Funs.GetNewInt(this.txtRetrunWuhuangCopies.Text.Trim());
// string issueToUnits = string.Empty;
// var issueToUnitLists = this.drpIssueToUnit.SelectedValueArray;
// foreach (var item in issueToUnitLists)
// {
// issueToUnits += item + ",";
// }
// if (!string.IsNullOrEmpty(issueToUnits))
// {
// issueToUnits = issueToUnits.Substring(0, issueToUnits.LastIndexOf(","));
// }
// dataReceivingDoc.IssueToUnit = issueToUnits;
// dataReceivingDoc.IssueCopies = Funs.GetNewInt(this.txtIssueCopies.Text.Trim());
// dataReceivingDoc.IssueUnitReceiver = this.txtIssueUnitReceiver.Text.Trim();
// dataReceivingDoc.IsOnFile = Convert.ToBoolean(this.rblIsOnFile.SelectedValue);
// if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
// {
// dataReceivingDoc.AuditMan = drpAudit.SelectedValue;
// } //审核人
if (string.IsNullOrEmpty(this.DataReceivingDocId))
{
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
{
dataReceivingDoc.DataReceivingDocId = this.hdAttachUrl.Text;
}
else
{
dataReceivingDoc.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
this.hdAttachUrl.Text = dataReceivingDoc.DataReceivingDocId;
}
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceivingDoc.DataReceivingDocId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return;
}
dataReceivingDoc.CompileMan = this.CurrUser.UserId;
dataReceivingDoc.CompileDate = DateTime.Now;
dataReceivingDoc.Status = BLL.Const.Comprehensive_Audit;
BLL.DataReceivingDocService.AddDataReceivingDoc(dataReceivingDoc);
}
else
{
dataReceivingDoc.DataReceivingDocId = this.DataReceivingDocId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingDocId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return;
}
var model = Funs.DB.Comprehensive_DataReceivingDoc.Where(u => u.DataReceivingDocId == this.DataReceivingDocId).FirstOrDefault();
// if (string.IsNullOrEmpty(this.DataReceivingDocId))
// {
// if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
// {
// dataReceivingDoc.DataReceivingDocId = this.hdAttachUrl.Text;
// }
// else
// {
// dataReceivingDoc.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
// this.hdAttachUrl.Text = dataReceivingDoc.DataReceivingDocId;
// }
// var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceivingDoc.DataReceivingDocId);
// if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
// {
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
// return;
// }
// dataReceivingDoc.CompileMan = this.CurrUser.UserId;
// dataReceivingDoc.CompileDate = DateTime.Now;
// dataReceivingDoc.Status = BLL.Const.Comprehensive_Audit;
// BLL.DataReceivingDocService.AddDataReceivingDoc(dataReceivingDoc);
// }
// else
// {
// dataReceivingDoc.DataReceivingDocId = this.DataReceivingDocId;
// var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingDocId);
// if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
// {
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
// return;
// }
// var model = Funs.DB.Comprehensive_DataReceivingDoc.Where(u => u.DataReceivingDocId == this.DataReceivingDocId).FirstOrDefault();
if (model.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核
{
dataReceivingDoc.Status = BLL.Const.Comprehensive_Audit;
}
else if (model.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核
{
dataReceivingDoc.Status = BLL.Const.Comprehensive_Audit;
}
else //审核状态 提交 变 完成 或者 重新编制
{
if (Convert.ToBoolean(rblIsAgree.SelectedValue))
{
dataReceivingDoc.Status = BLL.Const.Comprehensive_Complete;
}
else
{
dataReceivingDoc.Status = BLL.Const.Comprehensive_ReCompile;
}
}
BLL.DataReceivingDocService.UpdateDataReceivingDoc(dataReceivingDoc);
}
#region
var currApprove = DataReceivingDocApproveService.GetCurrentApprove(dataReceivingDoc.DataReceivingDocId);
if (currApprove == null) //为获取到为 当前编制状态 直接提交
{
var approve = new Model.Comprehensive_DataReceivingDocApprove();
approve.DataReceivingDocId = dataReceivingDoc.DataReceivingDocId;
approve.ApproveMan = this.CurrUser.UserId;
approve.ApproveType = Const.Comprehensive_Compile;
approve.ApproveDate = DateTime.Now;
DataReceivingDocApproveService.EditApprove(approve); //新增编制记录
// if (model.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核
// {
// dataReceivingDoc.Status = BLL.Const.Comprehensive_Audit;
// }
// else if (model.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核
// {
// dataReceivingDoc.Status = BLL.Const.Comprehensive_Audit;
// }
// else //审核状态 提交 变 完成 或者 重新编制
// {
// if (Convert.ToBoolean(rblIsAgree.SelectedValue))
// {
// dataReceivingDoc.Status = BLL.Const.Comprehensive_Complete;
// }
// else
// {
// dataReceivingDoc.Status = BLL.Const.Comprehensive_ReCompile;
// }
// }
// BLL.DataReceivingDocService.UpdateDataReceivingDoc(dataReceivingDoc);
// }
// #region 审核记录
// var currApprove = DataReceivingDocApproveService.GetCurrentApprove(dataReceivingDoc.DataReceivingDocId);
// if (currApprove == null) //为获取到为 当前编制状态 直接提交
// {
// var approve = new Model.Comprehensive_DataReceivingDocApprove();
// approve.DataReceivingDocId = dataReceivingDoc.DataReceivingDocId;
// approve.ApproveMan = this.CurrUser.UserId;
// approve.ApproveType = Const.Comprehensive_Compile;
// approve.ApproveDate = DateTime.Now;
// DataReceivingDocApproveService.EditApprove(approve); //新增编制记录
Model.Comprehensive_DataReceivingDocApprove newApprove = new Model.Comprehensive_DataReceivingDocApprove();
newApprove.DataReceivingDocId = dataReceivingDoc.DataReceivingDocId;
newApprove.ApproveMan = this.drpAudit.SelectedValue;
newApprove.ApproveType = Const.InspectionManagement_Audit;
DataReceivingDocApproveService.EditApprove(newApprove); //新增专业工程师审核记录
}
else if (currApprove.ApproveMan == CurrUser.UserId)
{
if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile)
{
currApprove.ApproveDate = DateTime.Now;
DataReceivingDocApproveService.EditApprove(currApprove); //新增专业工程师审核记录
Model.Comprehensive_DataReceivingDocApprove newApprove = new Model.Comprehensive_DataReceivingDocApprove();
newApprove.DataReceivingDocId = dataReceivingDoc.DataReceivingDocId;
newApprove.ApproveMan = this.drpAudit.SelectedValue;
newApprove.ApproveType = Const.InspectionManagement_Audit;
DataReceivingDocApproveService.EditApprove(newApprove); //新增专业工程师审核记录
}
else
{
currApprove.ApproveDate = DateTime.Now; //更新审核时间
currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue);
currApprove.ApproveIdea = this.txtidea.Text;
DataReceivingDocApproveService.EditApprove(currApprove);
// Model.Comprehensive_DataReceivingDocApprove newApprove = new Model.Comprehensive_DataReceivingDocApprove();
// newApprove.DataReceivingDocId = dataReceivingDoc.DataReceivingDocId;
// newApprove.ApproveMan = this.drpAudit.SelectedValue;
// newApprove.ApproveType = Const.InspectionManagement_Audit;
// DataReceivingDocApproveService.EditApprove(newApprove); //新增专业工程师审核记录
// }
// else if (currApprove.ApproveMan == CurrUser.UserId)
// {
// if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile)
// {
// currApprove.ApproveDate = DateTime.Now;
// DataReceivingDocApproveService.EditApprove(currApprove); //新增专业工程师审核记录
// Model.Comprehensive_DataReceivingDocApprove newApprove = new Model.Comprehensive_DataReceivingDocApprove();
// newApprove.DataReceivingDocId = dataReceivingDoc.DataReceivingDocId;
// newApprove.ApproveMan = this.drpAudit.SelectedValue;
// newApprove.ApproveType = Const.InspectionManagement_Audit;
// DataReceivingDocApproveService.EditApprove(newApprove); //新增专业工程师审核记录
// }
// else
// {
// currApprove.ApproveDate = DateTime.Now; //更新审核时间
// currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue);
// currApprove.ApproveIdea = this.txtidea.Text;
// DataReceivingDocApproveService.EditApprove(currApprove);
if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成
{
Model.Comprehensive_DataReceivingDocApprove reApprove = new Model.Comprehensive_DataReceivingDocApprove();
reApprove.DataReceivingDocId = currApprove.DataReceivingDocId;
reApprove.ApproveDate = DateTime.Now.AddSeconds(10);
reApprove.ApproveMan = CurrUser.UserId;
reApprove.ApproveType = Const.Comprehensive_Complete;
reApprove.ApproveIdea = txtidea.Text;
DataReceivingDocApproveService.EditApprove(reApprove);
}
else
{
Model.Comprehensive_DataReceivingDocApprove reApprove = new Model.Comprehensive_DataReceivingDocApprove();
reApprove.DataReceivingDocId = currApprove.DataReceivingDocId;
reApprove.ApproveMan = dataReceivingDoc.CompileMan;
reApprove.ApproveType = Const.Comprehensive_ReCompile;
DataReceivingDocApproveService.EditApprove(reApprove);
}
}
}
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
#endregion
}
// if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成
// {
// Model.Comprehensive_DataReceivingDocApprove reApprove = new Model.Comprehensive_DataReceivingDocApprove();
// reApprove.DataReceivingDocId = currApprove.DataReceivingDocId;
// reApprove.ApproveDate = DateTime.Now.AddSeconds(10);
// reApprove.ApproveMan = CurrUser.UserId;
// reApprove.ApproveType = Const.Comprehensive_Complete;
// reApprove.ApproveIdea = txtidea.Text;
// DataReceivingDocApproveService.EditApprove(reApprove);
// }
// else
// {
// Model.Comprehensive_DataReceivingDocApprove reApprove = new Model.Comprehensive_DataReceivingDocApprove();
// reApprove.DataReceivingDocId = currApprove.DataReceivingDocId;
// reApprove.ApproveMan = dataReceivingDoc.CompileMan;
// reApprove.ApproveType = Const.Comprehensive_ReCompile;
// DataReceivingDocApproveService.EditApprove(reApprove);
// }
// }
// }
// PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
// #endregion
//}
#endregion
#region
@@ -499,23 +506,23 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttach_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(this.hdAttachUrl.Text)) //新增记录
{
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
}
var dataReceivingDoc = BLL.DataReceivingDocService.GetDataReceivingDocById(this.DataReceivingDocId);
//protected void btnAttach_Click(object sender, EventArgs e)
//{
// if (string.IsNullOrEmpty(this.hdAttachUrl.Text)) //新增记录
// {
// this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
// }
// var dataReceivingDoc = BLL.DataReceivingDocService.GetDataReceivingDocById(this.DataReceivingDocId);
if (dataReceivingDoc == null || ((dataReceivingDoc.CompileMan == CurrUser.UserId && dataReceivingDoc.Status == BLL.Const.Comprehensive_Compile) || (dataReceivingDoc.CompileMan == CurrUser.UserId && dataReceivingDoc.Status == BLL.Const.Comprehensive_ReCompile)))
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/DataReceivingDoc&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DataReceivingDocMenuId)));
}
else
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/DataReceivingDoc&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DataReceivingDocMenuId)));
}
}
// if (dataReceivingDoc == null || ((dataReceivingDoc.CompileMan == CurrUser.UserId && dataReceivingDoc.Status == BLL.Const.Comprehensive_Compile) || (dataReceivingDoc.CompileMan == CurrUser.UserId && dataReceivingDoc.Status == BLL.Const.Comprehensive_ReCompile)))
// {
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/DataReceivingDoc&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DataReceivingDocMenuId)));
// }
// else
// {
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/DataReceivingDoc&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DataReceivingDocMenuId)));
// }
//}
#endregion
#region
@@ -264,78 +264,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// </remarks>
protected global::FineUIPro.RadioButtonList rblIsOnFile;
/// <summary>
/// Panel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// btnAttach 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttach;
/// <summary>
/// drpAudit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpAudit;
/// <summary>
/// agree 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow agree;
/// <summary>
/// rblIsAgree 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.RadioButtonList rblIsAgree;
/// <summary>
/// options 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow options;
/// <summary>
/// txtidea 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtidea;
/// <summary>
/// Toolbar1 控件。
/// </summary>
@@ -345,15 +273,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// hdAttachUrl 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdAttachUrl;
/// <summary>
/// btnSave 控件。
/// </summary>
@@ -362,23 +281,5 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnSubmit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSubmit;
/// <summary>
/// WindowAtt 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowAtt;
}
}
@@ -1196,12 +1196,42 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
else
{
isYm = true;
numberIndex = 1;
whileIndex = 13;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
//跳过页眉的表头
while (isYm)
{
if (table.Range.Text.Substring(0, 2) != "序号")
{
whileIndex += 1;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
}
else
{
isYm = false;
}
}
//创建行
Row row = new Row(doc);
row.Cells.Add(CreateCell(numberIndex.ToString(), doc, table.FirstRow.Cells[0].CellFormat.Width));
row.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[1].CellFormat.Width));
row.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[2].CellFormat.Width));
row.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[3].CellFormat.Width));
row.Cells.Add(CreateCell("", doc, table.FirstRow.Cells[4].CellFormat.Width));
table.Rows.Insert(numberIndex, row);
}
#endregion
#region 10.
#region 10-1
var TJInspection = reportItem.Where(x => x.ReType == "10-4").ToList();
var TJInspection = reportItem.Where(x => x.ReType == "10-1").ToList();
if (TJInspection.Count > 0)
{
isYm = true;
@@ -1290,6 +1320,42 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
else
{
isYm = true;
numberIndex = 1;
whileIndex = 14;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
//跳过页眉的表头
while (isYm)
{
if (table.Range.Text.Substring(0, 2) != "序号")
{
whileIndex += 1;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
}
else
{
isYm = false;
}
}
//创建合计
Row rowhj = new Row(doc);
double numcount0 = table.Rows[0].Cells[0].CellFormat.Width;
double numcount1 = table.Rows[0].Cells[1].CellFormat.Width;
double numcount2 = table.Rows[1].Cells[2].CellFormat.Width;
double numcount3 = table.Rows[1].Cells[3].CellFormat.Width;
double numcount4 = table.Rows[1].Cells[4].CellFormat.Width;
double numcount5 = table.Rows[1].Cells[5].CellFormat.Width;
double numcount6 = table.Rows[1].Cells[6].CellFormat.Width;
double numcount7 = table.Rows[1].Cells[7].CellFormat.Width;
double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7;
rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount));
table.Rows.Insert(numberIndex + 1, rowhj);
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
#endregion
#region 10-2
@@ -1382,6 +1448,42 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
else
{
isYm = true;
numberIndex = 1;
whileIndex = 15;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
//跳过页眉的表头
while (isYm)
{
if (table.Range.Text.Substring(0, 2) != "序号")
{
whileIndex += 1;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
}
else
{
isYm = false;
}
}
//创建合计
Row rowhj = new Row(doc);
double numcount0 = table.Rows[0].Cells[0].CellFormat.Width;
double numcount1 = table.Rows[0].Cells[1].CellFormat.Width;
double numcount2 = table.Rows[1].Cells[2].CellFormat.Width;
double numcount3 = table.Rows[1].Cells[3].CellFormat.Width;
double numcount4 = table.Rows[1].Cells[4].CellFormat.Width;
double numcount5 = table.Rows[1].Cells[5].CellFormat.Width;
double numcount6 = table.Rows[1].Cells[6].CellFormat.Width;
double numcount7 = table.Rows[1].Cells[7].CellFormat.Width;
double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7;
rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount));
table.Rows.Insert(numberIndex + 1, rowhj);
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
#endregion
#region 10-3
@@ -1474,6 +1576,42 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
else
{
isYm = true;
numberIndex = 1;
whileIndex = 16;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
//跳过页眉的表头
while (isYm)
{
if (table.Range.Text.Substring(0, 2) != "序号")
{
whileIndex += 1;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
}
else
{
isYm = false;
}
}
//创建合计
Row rowhj = new Row(doc);
double numcount0 = table.Rows[0].Cells[0].CellFormat.Width;
double numcount1 = table.Rows[0].Cells[1].CellFormat.Width;
double numcount2 = table.Rows[1].Cells[2].CellFormat.Width;
double numcount3 = table.Rows[1].Cells[3].CellFormat.Width;
double numcount4 = table.Rows[1].Cells[4].CellFormat.Width;
double numcount5 = table.Rows[1].Cells[5].CellFormat.Width;
double numcount6 = table.Rows[1].Cells[6].CellFormat.Width;
double numcount7 = table.Rows[1].Cells[7].CellFormat.Width;
double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7;
rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount));
table.Rows.Insert(numberIndex + 1, rowhj);
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
#endregion
#region 10-4
@@ -1566,6 +1704,42 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
else
{
isYm = true;
numberIndex = 1;
whileIndex = 17;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
//跳过页眉的表头
while (isYm)
{
if (table.Range.Text.Substring(0, 2) != "序号")
{
whileIndex += 1;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
}
else
{
isYm = false;
}
}
//创建合计
Row rowhj = new Row(doc);
double numcount0 = table.Rows[0].Cells[0].CellFormat.Width;
double numcount1 = table.Rows[0].Cells[1].CellFormat.Width;
double numcount2 = table.Rows[1].Cells[2].CellFormat.Width;
double numcount3 = table.Rows[1].Cells[3].CellFormat.Width;
double numcount4 = table.Rows[1].Cells[4].CellFormat.Width;
double numcount5 = table.Rows[1].Cells[5].CellFormat.Width;
double numcount6 = table.Rows[1].Cells[6].CellFormat.Width;
double numcount7 = table.Rows[1].Cells[7].CellFormat.Width;
double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7;
rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount));
table.Rows.Insert(numberIndex + 1, rowhj);
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
#endregion
#region 10-5.
@@ -1658,6 +1832,42 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
else
{
isYm = true;
numberIndex = 1;
whileIndex = 18;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
//跳过页眉的表头
while (isYm)
{
if (table.Range.Text.Substring(0, 2) != "序号")
{
whileIndex += 1;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
}
else
{
isYm = false;
}
}
//创建合计
Row rowhj = new Row(doc);
double numcount0 = table.Rows[0].Cells[0].CellFormat.Width;
double numcount1 = table.Rows[0].Cells[1].CellFormat.Width;
double numcount2 = table.Rows[1].Cells[2].CellFormat.Width;
double numcount3 = table.Rows[1].Cells[3].CellFormat.Width;
double numcount4 = table.Rows[1].Cells[4].CellFormat.Width;
double numcount5 = table.Rows[1].Cells[5].CellFormat.Width;
double numcount6 = table.Rows[1].Cells[6].CellFormat.Width;
double numcount7 = table.Rows[1].Cells[7].CellFormat.Width;
double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7;
rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount));
table.Rows.Insert(numberIndex + 1, rowhj);
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
#endregion
#region 10-6.
@@ -1750,6 +1960,42 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
else
{
isYm = true;
numberIndex = 1;
whileIndex = 19;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
//跳过页眉的表头
while (isYm)
{
if (table.Range.Text.Substring(0, 2) != "序号")
{
whileIndex += 1;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
}
else
{
isYm = false;
}
}
//创建合计
Row rowhj = new Row(doc);
double numcount0 = table.Rows[0].Cells[0].CellFormat.Width;
double numcount1 = table.Rows[0].Cells[1].CellFormat.Width;
double numcount2 = table.Rows[1].Cells[2].CellFormat.Width;
double numcount3 = table.Rows[1].Cells[3].CellFormat.Width;
double numcount4 = table.Rows[1].Cells[4].CellFormat.Width;
double numcount5 = table.Rows[1].Cells[5].CellFormat.Width;
double numcount6 = table.Rows[1].Cells[6].CellFormat.Width;
double numcount7 = table.Rows[1].Cells[7].CellFormat.Width;
double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7;
rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount));
table.Rows.Insert(numberIndex + 1, rowhj);
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
#endregion
#region 10-7.
@@ -1842,6 +2088,42 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
else
{
isYm = true;
numberIndex = 1;
whileIndex = 20;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
//跳过页眉的表头
while (isYm)
{
if (table.Range.Text.Substring(0, 2) != "序号")
{
whileIndex += 1;
table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, whileIndex, true);
}
else
{
isYm = false;
}
}
//创建合计
Row rowhj = new Row(doc);
double numcount0 = table.Rows[0].Cells[0].CellFormat.Width;
double numcount1 = table.Rows[0].Cells[1].CellFormat.Width;
double numcount2 = table.Rows[1].Cells[2].CellFormat.Width;
double numcount3 = table.Rows[1].Cells[3].CellFormat.Width;
double numcount4 = table.Rows[1].Cells[4].CellFormat.Width;
double numcount5 = table.Rows[1].Cells[5].CellFormat.Width;
double numcount6 = table.Rows[1].Cells[6].CellFormat.Width;
double numcount7 = table.Rows[1].Cells[7].CellFormat.Width;
double numcount = numcount0 + numcount1 + numcount2 + numcount3 + numcount4 + numcount5 + numcount6 + numcount7;
rowhj.Cells.Add(CreateCell("暂无数据", doc, numcount));
table.Rows.Insert(numberIndex + 1, rowhj);
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
#endregion
#region 10.
@@ -1897,6 +2179,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
#endregion
#endregion
#region 11.
@@ -2066,7 +2349,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
}
#endregion
#region 14.NCR管理情况
@@ -2101,7 +2383,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
row.Cells.Add(CreateCell(item.ContentName, doc, table.FirstRow.Cells[1].CellFormat.Width));
row.Cells.Add(CreateCell(item.MonthsCount.ToString(), doc, table.FirstRow.Cells[2].CellFormat.Width));
row.Cells.Add(CreateCell(item.ProjectCount.ToString(), doc, table.FirstRow.Cells[3].CellFormat.Width));
row.Cells.Add(CreateCell(item.TotalNoBackCount.HasValue ? item.TotalNoBackCount.ToString() : "0", doc, table.FirstRow.Cells[4].CellFormat.Width));
row.Cells.Add(CreateCell(item.TotalNoBackCount.ToString(), doc, table.FirstRow.Cells[4].CellFormat.Width));
row.Cells.Add(CreateCell(item.RectificationRate.ToString(), doc, table.FirstRow.Cells[5].CellFormat.Width));
table.Rows.Insert(numberIndex, row);
num1 += item.MonthsCount;
@@ -2434,6 +2716,182 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
}
#endregion
#region 23.
var imageUrl1 = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ImageUrl;
if (!string.IsNullOrWhiteSpace(imageUrl1))
{
string rootPathUrl = rootPath.Replace("\\", "/");
string url = rootPathUrl + imageUrl1;
//DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToBookmark("ImageUrl1");
if (!string.IsNullOrEmpty(url))
{
System.Drawing.Size JpgSize;
float Wpx;
float Hpx;
UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl1, out JpgSize, out Wpx, out Hpx);
//double w = 1;
//w = JpgSize.Width / 50.0;
if (File.Exists(url))
{
//builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w);
builder.InsertImage(url, 200, 150);
}
}
}
var imageUrl2 = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ImageUrl;
if (!string.IsNullOrWhiteSpace(imageUrl2))
{
string rootPathUrl = rootPath.Replace("\\", "/");
string url = rootPathUrl + imageUrl2;
//DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToBookmark("ImageUrl2");
if (!string.IsNullOrEmpty(url))
{
System.Drawing.Size JpgSize;
float Wpx;
float Hpx;
UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl2, out JpgSize, out Wpx, out Hpx);
//double w = 1;
//w = JpgSize.Width / 50.0;
if (File.Exists(url))
{
//builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w);
builder.InsertImage(url, 200, 150);
}
}
}
var imageUrl3 = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ImageUrl;
if (!string.IsNullOrWhiteSpace(imageUrl3))
{
string rootPathUrl = rootPath.Replace("\\", "/");
string url = rootPathUrl + imageUrl3;
//DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToBookmark("ImageUrl3");
if (!string.IsNullOrEmpty(url))
{
System.Drawing.Size JpgSize;
float Wpx;
float Hpx;
UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl3, out JpgSize, out Wpx, out Hpx);
//double w = 1;
//w = JpgSize.Width / 50.0;
if (File.Exists(url))
{
//builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w);
builder.InsertImage(url, 200, 150);
}
}
}
var imageUrl4 = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ImageUrl;
if (!string.IsNullOrWhiteSpace(imageUrl4))
{
string rootPathUrl = rootPath.Replace("\\", "/");
string url = rootPathUrl + imageUrl4;
//DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToBookmark("ImageUrl4");
if (!string.IsNullOrEmpty(url))
{
System.Drawing.Size JpgSize;
float Wpx;
float Hpx;
UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl4, out JpgSize, out Wpx, out Hpx);
//double w = 1;
//w = JpgSize.Width / 50.0;
if (File.Exists(url))
{
//builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w);
builder.InsertImage(url, 200, 150);
}
}
}
var imageUrl5 = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ImageUrl;
if (!string.IsNullOrWhiteSpace(imageUrl5))
{
string rootPathUrl = rootPath.Replace("\\", "/");
string url = rootPathUrl + imageUrl5;
//DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToBookmark("ImageUrl5");
if (!string.IsNullOrEmpty(url))
{
System.Drawing.Size JpgSize;
float Wpx;
float Hpx;
UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl5, out JpgSize, out Wpx, out Hpx);
//double w = 1;
//w = JpgSize.Width / 50.0;
if (File.Exists(url))
{
//builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w);
builder.InsertImage(url, 200, 150);
}
}
}
var imageUrl6 = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ImageUrl;
if (!string.IsNullOrWhiteSpace(imageUrl6))
{
string rootPathUrl = rootPath.Replace("\\", "/");
string url = rootPathUrl + imageUrl6;
//DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToBookmark("ImageUrl6");
if (!string.IsNullOrEmpty(url))
{
System.Drawing.Size JpgSize;
float Wpx;
float Hpx;
UploadAttachmentService.getJpgSize(rootPathUrl + imageUrl6, out JpgSize, out Wpx, out Hpx);
//double w = 1;
//w = JpgSize.Width / 50.0;
if (File.Exists(url))
{
//builder.InsertImage(url, JpgSize.Width / w, JpgSize.Height / w);
builder.InsertImage(url, 200, 150);
}
}
}
bkmark = doc.Range.Bookmarks["ImageContent1"];
if (bkmark != null)
{
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ContentText;
}
bkmark = doc.Range.Bookmarks["ImageContent2"];
if (bkmark != null)
{
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ContentText;
}
bkmark = doc.Range.Bookmarks["ImageContent3"];
if (bkmark != null)
{
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ContentText;
}
bkmark = doc.Range.Bookmarks["ImageContent4"];
if (bkmark != null)
{
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ContentText;
}
bkmark = doc.Range.Bookmarks["ImageContent5"];
if (bkmark != null)
{
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ContentText;
}
bkmark = doc.Range.Bookmarks["ImageContent6"];
if (bkmark != null)
{
bkmark.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ContentText;
}
#endregion
doc.Save(newUrl);
string fileName = Path.GetFileName(newUrl);
FileInfo info = new FileInfo(newUrl);
@@ -869,7 +869,7 @@
</f:Form>
</Items>
</f:Panel>
<%--9.计量器具报验管理情况--%>
<%--9.计量器具报验管理情况--%>
<f:Panel ID="Pnl9" IsFluid="true" Title="9.计量器具报验管理情况" runat="server" EnableCollapse="false"
ShowHeader="true">
<Items>
@@ -878,7 +878,7 @@
<f:FormRow>
<Items>
<f:Grid ID="gvMeasuringInspection" ShowBorder="true" ShowHeader="false" runat="server" DataIDField="Id"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
@@ -896,7 +896,7 @@
<f:RenderField Width="300px" ColumnID="Remarks" DataField="Remarks"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="备注" ExpandUnusedSpace="true">
<Editor>
<f:TextBox ID="TextBox14" runat="server">
<f:TextBox ID="TextBox9" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
@@ -918,35 +918,48 @@
<Items>
<%--10-1.土建--%>
<f:Grid ID="gvTj" ShowBorder="true" ShowHeader="true" runat="server" DataIDField="Id" Title="土建:"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="240px" ColumnID="WorkName" DataField="WorkName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="单位工程" ExpandUnusedSpace="true">
</f:RenderField>
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="100px" ColumnID="CheckNum" DataField="CheckNum" HeaderText="本月" />
<f:BoundField Width="100px" ColumnID="TotalCheckNum" DataField="TotalCheckNum" HeaderText="累计" />
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:RenderField Width="150px" ColumnID="CheckNum" DataField="CheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalCheckNum" DataField="TotalCheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="合格(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OKNum" DataField="OKNum" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum" HeaderText="累计" />
<Columns>
<f:RenderField Width="150px" ColumnID="OKNum" DataField="OKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="一次合格率" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate" HeaderText="累计" />
<f:RenderField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
</Columns>
@@ -959,35 +972,48 @@
<Items>
<%--10-2.设备--%>
<f:Grid ID="GvSb" ShowBorder="true" ShowHeader="true" runat="server" DataIDField="Id" Title="设备:"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="240px" ColumnID="WorkName" DataField="WorkName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="单位工程" ExpandUnusedSpace="true">
</f:RenderField>
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="100px" ColumnID="CheckNum" DataField="CheckNum" HeaderText="本月" />
<f:BoundField Width="100px" ColumnID="TotalCheckNum" DataField="TotalCheckNum" HeaderText="累计" />
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:RenderField Width="150px" ColumnID="CheckNum" DataField="CheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalCheckNum" DataField="TotalCheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="合格(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OKNum" DataField="OKNum" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum" HeaderText="累计" />
<Columns>
<f:RenderField Width="150px" ColumnID="OKNum" DataField="OKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="一次合格率" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate" HeaderText="累计" />
<f:RenderField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
</Columns>
@@ -1000,35 +1026,48 @@
<Items>
<%--10-3.管道--%>
<f:Grid ID="GvGD" ShowBorder="true" ShowHeader="true" runat="server" DataIDField="Id" Title="管道:"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="240px" ColumnID="WorkName" DataField="WorkName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="单位工程" ExpandUnusedSpace="true">
</f:RenderField>
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="100px" ColumnID="CheckNum" DataField="CheckNum" HeaderText="本月" />
<f:BoundField Width="100px" ColumnID="TotalCheckNum" DataField="TotalCheckNum" HeaderText="累计" />
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:RenderField Width="150px" ColumnID="CheckNum" DataField="CheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalCheckNum" DataField="TotalCheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="合格(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OKNum" DataField="OKNum" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum" HeaderText="累计" />
<Columns>
<f:RenderField Width="150px" ColumnID="OKNum" DataField="OKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="一次合格率" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate" HeaderText="累计" />
<f:RenderField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
</Columns>
@@ -1041,35 +1080,48 @@
<Items>
<%--10-4.电气--%>
<f:Grid ID="GvDq" ShowBorder="true" ShowHeader="true" runat="server" DataIDField="Id" Title="电气:"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="240px" ColumnID="WorkName" DataField="WorkName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="单位工程" ExpandUnusedSpace="true">
</f:RenderField>
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="100px" ColumnID="CheckNum" DataField="CheckNum" HeaderText="本月" />
<f:BoundField Width="100px" ColumnID="TotalCheckNum" DataField="TotalCheckNum" HeaderText="累计" />
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:RenderField Width="150px" ColumnID="CheckNum" DataField="CheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalCheckNum" DataField="TotalCheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="合格(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OKNum" DataField="OKNum" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum" HeaderText="累计" />
<Columns>
<f:RenderField Width="150px" ColumnID="OKNum" DataField="OKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="一次合格率" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate" HeaderText="累计" />
<f:RenderField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
</Columns>
@@ -1082,35 +1134,48 @@
<Items>
<%--10-5.仪表--%>
<f:Grid ID="GvYb" ShowBorder="true" ShowHeader="true" runat="server" DataIDField="Id" Title="仪表:"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="240px" ColumnID="WorkName" DataField="WorkName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="单位工程" ExpandUnusedSpace="true">
</f:RenderField>
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="100px" ColumnID="CheckNum" DataField="CheckNum" HeaderText="本月" />
<f:BoundField Width="100px" ColumnID="TotalCheckNum" DataField="TotalCheckNum" HeaderText="累计" />
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:RenderField Width="150px" ColumnID="CheckNum" DataField="CheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalCheckNum" DataField="TotalCheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="合格(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OKNum" DataField="OKNum" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum" HeaderText="累计" />
<Columns>
<f:RenderField Width="150px" ColumnID="OKNum" DataField="OKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="一次合格率" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate" HeaderText="累计" />
<f:RenderField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
</Columns>
@@ -1123,35 +1188,48 @@
<Items>
<%--10-6.防腐--%>
<f:Grid ID="GvFf" ShowBorder="true" ShowHeader="true" runat="server" DataIDField="Id" Title="防腐:"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="240px" ColumnID="WorkName" DataField="WorkName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="单位工程" ExpandUnusedSpace="true">
</f:RenderField>
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="100px" ColumnID="CheckNum" DataField="CheckNum" HeaderText="本月" />
<f:BoundField Width="100px" ColumnID="TotalCheckNum" DataField="TotalCheckNum" HeaderText="累计" />
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:RenderField Width="150px" ColumnID="CheckNum" DataField="CheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalCheckNum" DataField="TotalCheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="合格(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OKNum" DataField="OKNum" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum" HeaderText="累计" />
<Columns>
<f:RenderField Width="150px" ColumnID="OKNum" DataField="OKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="一次合格率" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate" HeaderText="累计" />
<f:RenderField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
</Columns>
@@ -1164,35 +1242,48 @@
<Items>
<%--10-7.消防--%>
<f:Grid ID="GvXf" ShowBorder="true" ShowHeader="true" runat="server" DataIDField="Id" Title="消防:"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="240px" ColumnID="WorkName" DataField="WorkName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="单位工程" ExpandUnusedSpace="true">
</f:RenderField>
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="100px" ColumnID="CheckNum" DataField="CheckNum" HeaderText="本月" />
<f:BoundField Width="100px" ColumnID="TotalCheckNum" DataField="TotalCheckNum" HeaderText="累计" />
<f:GroupField HeaderText="检查(点)" TextAlign="Center">
<Columns>
<f:RenderField Width="150px" ColumnID="CheckNum" DataField="CheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalCheckNum" DataField="TotalCheckNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="合格(点)" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OKNum" DataField="OKNum" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum" HeaderText="累计" />
<Columns>
<f:RenderField Width="150px" ColumnID="OKNum" DataField="OKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOKNum" DataField="TotalOKNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField HeaderText="一次合格率" TextAlign="Center">
<Columns>
<f:BoundField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate" HeaderText="本月" />
<f:BoundField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate" HeaderText="累计" />
<f:RenderField Width="150px" ColumnID="OneOKRate" DataField="OneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="TotalOneOKRate" DataField="TotalOneOKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计">
</f:RenderField>
</Columns>
</f:GroupField>
</Columns>
@@ -1205,7 +1296,7 @@
<Items>
<%--10.合计--%>
<f:Grid ID="gvInspectionDataInspection" ShowBorder="true" ShowHeader="false" runat="server" DataIDField="Id"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
@@ -1223,7 +1314,7 @@
<f:RenderField Width="200px" ColumnID="Remarks" DataField="Remarks"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="备注">
<Editor>
<f:TextBox ID="TextBox15" runat="server">
<f:TextBox ID="TextBox14" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
@@ -1244,7 +1335,7 @@
<f:FormRow>
<Items>
<f:Grid ID="gvPressureInspection" ShowBorder="true" ShowHeader="false" runat="server" DataIDField="Id"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
@@ -1265,7 +1356,7 @@
<f:RenderField Width="200px" ColumnID="Remarks" DataField="Remarks"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="备注">
<Editor>
<f:TextBox ID="TextBox16" runat="server">
<f:TextBox ID="TextBox15" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
@@ -1286,7 +1377,7 @@
<f:FormRow>
<Items>
<f:Grid ID="gvPipingInspection" ShowBorder="true" ShowHeader="false" runat="server" DataIDField="Id"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
@@ -1298,7 +1389,7 @@
<f:RenderField Width="160px" ColumnID="TotalNoBackCount" DataField="TotalNoBackCount"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="总数">
<Editor>
<f:TextBox ID="TextBox17" runat="server">
<f:TextBox ID="TextBox16" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
@@ -1312,7 +1403,7 @@
<f:RenderField Width="200px" ColumnID="Remarks" DataField="Remarks"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="备注">
<Editor>
<f:TextBox ID="TextBox18" runat="server">
<f:TextBox ID="TextBox17" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
@@ -1333,7 +1424,7 @@
<f:FormRow>
<Items>
<f:Grid ID="gvSpecialInspection" ShowBorder="true" ShowHeader="false" runat="server" DataIDField="Id"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
@@ -1343,11 +1434,7 @@
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="施工分包商">
</f:RenderField>
<f:RenderField Width="160px" ColumnID="TotalNoBackCount" DataField="TotalNoBackCount"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="总数">
<Editor>
<f:TextBox ID="TextBox19" runat="server">
</f:TextBox>
</Editor>
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="总数">
</f:RenderField>
<f:RenderField Width="250px" ColumnID="MonthsCount" DataField="MonthsCount"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月完成监检数量">
@@ -1359,7 +1446,7 @@
<f:RenderField Width="200px" ColumnID="Remarks" DataField="Remarks"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="备注">
<Editor>
<f:TextBox ID="TextBox20" runat="server">
<f:TextBox ID="TextBox18" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
@@ -1380,7 +1467,7 @@
<f:FormRow>
<Items>
<f:Grid ID="gvNcrManagementInspection" ShowBorder="true" ShowHeader="false" runat="server" DataIDField="Id"
DataKeyNames="Id" ShowGridHeader="true"
DataKeyNames="Id" ShowGridHeader="true" EmptyText="暂无数据!"
AllowCellEditing="true" ClicksToEdit="1" AllowSorting="true" EnableColumnLines="true"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Bottom">
<Columns>
@@ -1388,7 +1475,7 @@
TextAlign="Center" />
<f:RenderField Width="200px" ColumnID="WorkName" DataField="WorkName" ExpandUnusedSpace="true"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="接收单位">
</f:RenderField>
</f:RenderField>
<f:RenderField Width="150px" ColumnID="CurrentPeriodOkNum" DataField="CurrentPeriodOkNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="本月已完成">
</f:RenderField>
@@ -1401,13 +1488,6 @@
<f:RenderField Width="150px" ColumnID="OKRate" DataField="OKRate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="累计完成比例">
</f:RenderField>
<%-- <f:RenderField Width="200px" ColumnID="Remarks" DataField="Remarks"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="备注">
<Editor>
<f:TextBox ID="TextBox10" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>--%>
</Columns>
</f:Grid>
</Items>
@@ -1840,10 +1920,10 @@
<f:FormRow ColumnWidths="10% 30% 20% 30% 10%">
<Items>
<f:Label ID="Label4" runat ="server"></f:Label>
<f:TextBox runat="server" ID="txtPhotoContent1" Width="300px">
<f:TextBox runat="server" ID="txtPhotoContent1">
</f:TextBox>
<f:Label ID="Label5" runat ="server"></f:Label>
<f:TextBox runat="server" ID="txtPhotoContent2" Width="300px">
<f:TextBox runat="server" ID="txtPhotoContent2" >
</f:TextBox>
<f:Label ID="Label6" runat ="server"></f:Label>
</Items>
@@ -1875,10 +1955,10 @@
<f:FormRow ColumnWidths="10% 30% 20% 30% 10%">
<Items>
<f:Label ID="Label13" runat ="server"></f:Label>
<f:TextBox runat="server" ID="txtPhotoContent3" Width="300px">
<f:TextBox runat="server" ID="txtPhotoContent3" >
</f:TextBox>
<f:Label ID="Label14" runat ="server"></f:Label>
<f:TextBox runat="server" ID="txtPhotoContent4" Width="300px">
<f:TextBox runat="server" ID="txtPhotoContent4" >
</f:TextBox>
<f:Label ID="Label15" runat ="server"></f:Label>
</Items>
@@ -1910,10 +1990,10 @@
<f:FormRow ColumnWidths="10% 30% 20% 30% 10%">
<Items>
<f:Label ID="Label19" runat ="server"></f:Label>
<f:TextBox runat="server" ID="txtPhotoContent5" Width="300px">
<f:TextBox runat="server" ID="txtPhotoContent5">
</f:TextBox>
<f:Label ID="Label20" runat ="server"></f:Label>
<f:TextBox runat="server" ID="txtPhotoContent6" Width="300px">
<f:TextBox runat="server" ID="txtPhotoContent6">
</f:TextBox>
<f:Label ID="Label21" runat ="server"></f:Label>
</Items>
@@ -188,17 +188,37 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
txtAre22.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText;
txtAre8.Text = txtReportList.FirstOrDefault(x => x.ContentType == "8").ContentText;
imgPhoto.ImageUrl = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ImageUrl;
string url = "~/res/images/R-C.png";
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ImageUrl!= url)
{
imgPhoto.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ImageUrl;
}
txtPhotoContent1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ContentText;
imgPhoto2.ImageUrl = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ImageUrl;
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ImageUrl != url)
{
imgPhoto2.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ImageUrl;
}
txtPhotoContent2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ContentText;
imgPhoto3.ImageUrl = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ImageUrl;
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ImageUrl!= url)
{
imgPhoto3.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ImageUrl;
}
txtPhotoContent3.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ContentText;
imgPhoto4.ImageUrl = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ImageUrl;
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ImageUrl!= url)
{
imgPhoto4.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ImageUrl;
}
txtPhotoContent4.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ContentText;
imgPhoto5.ImageUrl = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ImageUrl;
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ImageUrl!= url)
{
imgPhoto5.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ImageUrl;
}
txtPhotoContent5.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ContentText;
imgPhoto6.ImageUrl = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ImageUrl;
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ImageUrl!= url)
{
imgPhoto6.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ImageUrl;
}
txtPhotoContent6.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ContentText;
#endregion
@@ -276,7 +296,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//加载13.特种设备监检情况
loadSpecialInspection(objType);
////加载14.NCR管理情况
loadNcrManagementInspection();
loadNcrManagementInspection(objType);
//加载15.质量巡检情况
loadQualityInspection(objType);
@@ -1527,9 +1547,11 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
Quantity2Sum += AllList.Count();
i++;
}
gvInspectionDataInspection.DataSource = list;
gvInspectionDataInspection.DataBind();
//合计
JObject summary = new JObject();
summary.Add("ContentName", "合计");
@@ -1555,8 +1577,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
int OKNum = 0;
int TotalOKNum = 0;
string OneOKRate = string.Empty;
string TotalOneOKRate = string.Empty;
string OneOKRate = String.Empty;
string TotalOneOKRate = String.Empty;
if (project != null)
@@ -1583,37 +1605,39 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
Model.CheckStatisc checkStatisc = new Model.CheckStatisc();
checkStatisc.Id = Guid.NewGuid().ToString();
checkStatisc.WorkName = ins.UnitWorkName;
checkStatisc.CheckNum = managementList.Count(x => x.UnitWorkId == item);
checkStatisc.TotalCheckNum = totalManagementList.Count(x => x.UnitWorkId == item);
checkStatisc.OKNum = managementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
checkStatisc.TotalOKNum = totalManagementList.Count(x => x.UnitWorkId == item && x.IsOnceQualified == true);
if (checkStatisc.CheckNum != 0)//被除数不能为零
{
checkStatisc.OneOKRate = Math.Round((double)checkStatisc.OKNum / (double)checkStatisc.CheckNum * 100, 2) + "%";//保留两位小数、后四舍五入
}
else
{
checkStatisc.OneOKRate = "0%";
}
if (checkStatisc.TotalCheckNum != 0)//被除数不能为零
{
checkStatisc.TotalOneOKRate = Math.Round((double)checkStatisc.TotalOKNum / (double)checkStatisc.TotalCheckNum * 100, 2) + "%";//保留两位小数、后四舍五入
}
else
{
checkStatisc.TotalOneOKRate = "0%";
}
StatisticsList.Add(checkStatisc);
}
}
foreach (var item in StatisticsList)
{
if (item.CheckNum != 0)//被除数不能为零
{
item.OneOKRate = Math.Round((double)item.OKNum / (double)item.CheckNum * 100, 2) + "%";//保留两位小数、后四舍五入
}
else
{
item.OneOKRate = "0%";
}
if (item.TotalCheckNum != 0)//被除数不能为零
{
item.TotalOneOKRate = Math.Round((double)item.TotalOKNum / (double)item.TotalCheckNum * 100, 2) + "%";//保留两位小数、后四舍五入
}
else
{
item.TotalOneOKRate = "0%";
}
CheckNum += item.CheckNum;
TotalCheckNum += item.TotalCheckNum;
CheckNum += checkStatisc.CheckNum;
TotalCheckNum += checkStatisc.TotalCheckNum;
OKNum += item.OKNum;
TotalOKNum += item.TotalOKNum;
OKNum += checkStatisc.OKNum;
TotalOKNum += checkStatisc.TotalOKNum;
}
}
if (CheckNum != 0)//被除数不能为零
@@ -1649,8 +1673,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
summary.Add("OKNum", OKNum.ToString());//当前合格点数
summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
gvTj.SummaryData = summary;
}
@@ -1670,8 +1694,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
summary.Add("OKNum", OKNum.ToString());//当前合格点数
summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
GvSb.SummaryData = summary;
}
//检验批统计:管道
@@ -1689,8 +1713,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
summary.Add("OKNum", OKNum.ToString());//当前合格点数
summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
GvGD.SummaryData = summary;
}
//检验批统计:电气
@@ -1708,8 +1732,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
summary.Add("OKNum", OKNum.ToString());//当前合格点数
summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
GvDq.SummaryData = summary;
}
//检验批统计:仪表
@@ -1727,11 +1751,11 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
summary.Add("OKNum", OKNum.ToString());//当前合格点数
summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
GvYb.SummaryData = summary;
}
//检验批统计:
//检验批统计:
if (cNProfessionalCode == "FF")
{
this.GvFf.DataSource = StatisticsList;
@@ -1746,8 +1770,8 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
summary.Add("OKNum", OKNum.ToString());//当前合格点数
summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
GvFf.SummaryData = summary;
}
//检验批统计:消防
@@ -1765,11 +1789,11 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
summary.Add("OKNum", OKNum.ToString());//当前合格点数
summary.Add("TotalOKNum", TotalOKNum.ToString());//累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
summary.Add("OneOKRate", OneOKRate.ToString());//本合格点数
summary.Add("TotalOneOKRate", TotalOneOKRate.ToString());//本累计合格点数
GvXf.SummaryData = summary;
}
}
#endregion
@@ -1827,7 +1851,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "11");
if (NewModel != null)
{
model.RectificationRate = NewModel.RectificationRate;
model.Remarks = NewModel.Remarks;
}
}
@@ -1905,7 +1928,6 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "11");
if (NewModel != null)
{
model.RectificationRate = NewModel.RectificationRate;
model.Remarks = NewModel.Remarks;
}
}
@@ -1973,7 +1995,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
Model.Report_CQMS_MonthReportItem model = new Model.Report_CQMS_MonthReportItem();
model.Id = Guid.NewGuid().ToString();
model.ContentName = item.UnitName;
model.TotalNoBackCount = Convert.ToInt32(monethCount.Sum(o => o.SunNumber));
model.TotalNoBackCount = Convert.ToInt32(AllList.Sum(o => o.SunNumber));
model.MonthsCount = Convert.ToInt32(monethCount.Sum(o => o.MonitoringReportNumber));
model.ProjectCount = Convert.ToInt32(AllList.Sum(o => o.MonitoringReportNumber));
model.ReportId = ReportId;
@@ -1983,12 +2005,11 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
var NewModel = db.Report_CQMS_MonthReportItem.FirstOrDefault(x => x.ReportId == ReportId && x.ContentName == item.UnitName && x.ReType == "13");
if (NewModel != null)
{
model.RectificationRate = NewModel.RectificationRate;
model.Remarks = NewModel.Remarks;
}
}
list.Add(model);
Quantity0Sum += Convert.ToInt32(monethCount.Sum(o => o.SunNumber));
Quantity0Sum += Convert.ToInt32(AllList.Sum(o => o.SunNumber));
Quantity1Sum += Convert.ToInt32(monethCount.Sum(o => o.MonitoringReportNumber));
Quantity2Sum += Convert.ToInt32(AllList.Sum(o => o.MonitoringReportNumber));
i++;
@@ -1999,9 +2020,9 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
//合计
JObject summary = new JObject();
summary.Add("ContentName", "合计");
summary.Add("TotalNoBackCount", Quantity0Sum.ToString());
summary.Add("MonthsCount", Quantity1Sum.ToString());
summary.Add("ProjectCount", Quantity2Sum.ToString());
summary.Add("TotalNoBackCount", Quantity0Sum.ToString());//总数
summary.Add("MonthsCount", Quantity1Sum.ToString());//本月完成监检数量
summary.Add("ProjectCount", Quantity2Sum.ToString());//累计完成监检数量
gvSpecialInspection.SummaryData = summary;
}
@@ -2011,7 +2032,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
/// <summary>
/// NCR管理情况
/// </summary>
void loadNcrManagementInspection()
void loadNcrManagementInspection(string objType)
{
DateTime startDate = Convert.ToDateTime(this.txtStartDate.Text.Trim());
DateTime endDate = Convert.ToDateTime(this.txtEndDate.Text.Trim());
@@ -2059,9 +2080,13 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
Model.NCRReportStatisc NCRStatisc = new Model.NCRReportStatisc();
NCRStatisc.Id = Guid.NewGuid().ToString();
NCRStatisc.WorkName = item.UnitName;
NCRStatisc.CurrentPeriodOkNum = unitNCRStatic.Count(x => x.Status == "3");
NCRStatisc.OKNum = AllList.Count(x => x.Status == "3");
//NCRStatisc.CurrentPeriodOkNum = unitNCRStatic.Count(x => x.Status == "3");
//NCRStatisc.OKNum = AllList.Count(x => x.Status == "3");
NCRStatisc.CurrentPeriodOkNum = unitNCRStatic.Count();
NCRStatisc.OKNum = AllList.Count();
NCRStatisc.CheckNum = AllList.Count();
if (NCRStatisc.CheckNum != 0)//被除数不能为零
{
NCRStatisc.OKRate = Math.Round((double)NCRStatisc.OKNum / (double)NCRStatisc.CheckNum * 100, 2) + "%";//保留两位小数、后四舍五入
@@ -2070,6 +2095,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
{
NCRStatisc.OKRate = "0%";
}
StatisticsList.Add(NCRStatisc);
CurrentPeriodOkNumSum += NCRStatisc.CurrentPeriodOkNum;
@@ -3116,6 +3142,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
#region 9.
void saveMeasuringInspection()
{
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
JArray teamGroupData = gvMeasuringInspection.GetMergedData();
foreach (JObject teamGroupRow in teamGroupData)
@@ -3147,6 +3174,246 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
#endregion
#region 10.
void saveTjInspection() //检验批统计:土建
{
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
JArray teamGroupData = gvTj.GetMergedData();
foreach (JObject teamGroupRow in teamGroupData)
{
JObject values = teamGroupRow.Value<JObject>("values");
int rowIndex = teamGroupRow.Value<int>("index");
Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem
{
ReportId = ReportId,
ReType = "10-1",
ContentName = values.Value<string>("WorkName"),
MonthsCount = values.Value<int>("CheckNum"), //当前检查点数
MonthsBackCount = values.Value<int>("TotalCheckNum"),//累计点数
ProjectCount = values.Value<int>("OKNum"),//当前合格点数
TotalNoBackCount = values.Value<int>("TotalOKNum"),//累计合格点数
RectificationRate = values.Value<string>("OneOKRate"),//本月合格点数
Remarks = values.Value<string>("TotalOneOKRate"),//本月累计合格点数
};
if (gvTj.Rows[rowIndex].DataKeys.Length > 0)
{
newDetail.Id = gvTj.Rows[rowIndex].DataKeys[0].ToString();
}
detailLists.Add(newDetail);
}
if (detailLists.Count > 0)
{
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
Funs.DB.SubmitChanges();
}
}
void saveSbInspection() //检验批统计:设备
{
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
JArray teamGroupData = GvSb.GetMergedData();
foreach (JObject teamGroupRow in teamGroupData)
{
JObject values = teamGroupRow.Value<JObject>("values");
int rowIndex = teamGroupRow.Value<int>("index");
Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem
{
ReportId = ReportId,
ReType = "10-2",
ContentName = values.Value<string>("WorkName"),
MonthsCount = values.Value<int>("CheckNum"), //当前检查点数
MonthsBackCount = values.Value<int>("TotalCheckNum"),//累计点数
ProjectCount = values.Value<int>("OKNum"),//当前合格点数
TotalNoBackCount = values.Value<int>("TotalOKNum"),//累计合格点数
RectificationRate = values.Value<string>("OneOKRate"),//本月合格点数
Remarks = values.Value<string>("TotalOneOKRate"),//本月累计合格点数
};
if (GvSb.Rows[rowIndex].DataKeys.Length > 0)
{
newDetail.Id = GvSb.Rows[rowIndex].DataKeys[0].ToString();
}
detailLists.Add(newDetail);
}
if (detailLists.Count > 0)
{
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
Funs.DB.SubmitChanges();
}
}
void saveGDInspection() //检验批统计:管道
{
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
JArray teamGroupData = GvGD.GetMergedData();
foreach (JObject teamGroupRow in teamGroupData)
{
JObject values = teamGroupRow.Value<JObject>("values");
int rowIndex = teamGroupRow.Value<int>("index");
Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem
{
ReportId = ReportId,
ReType = "10-3",
ContentName = values.Value<string>("WorkName"),
MonthsCount = values.Value<int>("CheckNum"), //当前检查点数
MonthsBackCount = values.Value<int>("TotalCheckNum"),//累计点数
ProjectCount = values.Value<int>("OKNum"),//当前合格点数
TotalNoBackCount = values.Value<int>("TotalOKNum"),//累计合格点数
RectificationRate = values.Value<string>("OneOKRate"),//本月合格点数
Remarks = values.Value<string>("TotalOneOKRate"),//本月累计合格点数
};
if (GvGD.Rows[rowIndex].DataKeys.Length > 0)
{
newDetail.Id = GvGD.Rows[rowIndex].DataKeys[0].ToString();
}
detailLists.Add(newDetail);
}
if (detailLists.Count > 0)
{
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
Funs.DB.SubmitChanges();
}
}
void saveDQInspection() //检验批统计:电气
{
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
JArray teamGroupData = GvDq.GetMergedData();
foreach (JObject teamGroupRow in teamGroupData)
{
JObject values = teamGroupRow.Value<JObject>("values");
int rowIndex = teamGroupRow.Value<int>("index");
Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem
{
ReportId = ReportId,
ReType = "10-4",
ContentName = values.Value<string>("WorkName"),
MonthsCount = values.Value<int>("CheckNum"), //当前检查点数
MonthsBackCount = values.Value<int>("TotalCheckNum"),//累计点数
ProjectCount = values.Value<int>("OKNum"),//当前合格点数
TotalNoBackCount = values.Value<int>("TotalOKNum"),//累计合格点数
RectificationRate = values.Value<string>("OneOKRate"),//本月合格点数
Remarks = values.Value<string>("TotalOneOKRate"),//本月累计合格点数
};
if (GvDq.Rows[rowIndex].DataKeys.Length > 0)
{
newDetail.Id = GvDq.Rows[rowIndex].DataKeys[0].ToString();
}
detailLists.Add(newDetail);
}
if (detailLists.Count > 0)
{
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
Funs.DB.SubmitChanges();
}
}
void saveYBInspection() //检验批统计:仪表
{
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
JArray teamGroupData = GvYb.GetMergedData();
foreach (JObject teamGroupRow in teamGroupData)
{
JObject values = teamGroupRow.Value<JObject>("values");
int rowIndex = teamGroupRow.Value<int>("index");
Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem
{
ReportId = ReportId,
ReType = "10-5",
ContentName = values.Value<string>("WorkName"),
MonthsCount = values.Value<int>("CheckNum"), //当前检查点数
MonthsBackCount = values.Value<int>("TotalCheckNum"),//累计点数
ProjectCount = values.Value<int>("OKNum"),//当前合格点数
TotalNoBackCount = values.Value<int>("TotalOKNum"),//累计合格点数
RectificationRate = values.Value<string>("OneOKRate"),//本月合格点数
Remarks = values.Value<string>("TotalOneOKRate"),//本月累计合格点数
};
if (GvYb.Rows[rowIndex].DataKeys.Length > 0)
{
newDetail.Id = GvYb.Rows[rowIndex].DataKeys[0].ToString();
}
detailLists.Add(newDetail);
}
if (detailLists.Count > 0)
{
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
Funs.DB.SubmitChanges();
}
}
void saveFFInspection() //检验批统计:防腐
{
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
JArray teamGroupData = GvFf.GetMergedData();
foreach (JObject teamGroupRow in teamGroupData)
{
JObject values = teamGroupRow.Value<JObject>("values");
int rowIndex = teamGroupRow.Value<int>("index");
Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem
{
ReportId = ReportId,
ReType = "10-6",
ContentName = values.Value<string>("WorkName"),
MonthsCount = values.Value<int>("CheckNum"), //当前检查点数
MonthsBackCount = values.Value<int>("TotalCheckNum"),//累计点数
ProjectCount = values.Value<int>("OKNum"),//当前合格点数
TotalNoBackCount = values.Value<int>("TotalOKNum"),//累计合格点数
RectificationRate = values.Value<string>("OneOKRate"),//本月合格点数
Remarks = values.Value<string>("TotalOneOKRate"),//本月累计合格点数
};
if (GvFf.Rows[rowIndex].DataKeys.Length > 0)
{
newDetail.Id = GvFf.Rows[rowIndex].DataKeys[0].ToString();
}
detailLists.Add(newDetail);
}
if (detailLists.Count > 0)
{
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
Funs.DB.SubmitChanges();
}
}
void saveXFInspection() //检验批统计:消防
{
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
JArray teamGroupData = GvXf.GetMergedData();
foreach (JObject teamGroupRow in teamGroupData)
{
JObject values = teamGroupRow.Value<JObject>("values");
int rowIndex = teamGroupRow.Value<int>("index");
Model.Report_CQMS_MonthReportItem newDetail = new Model.Report_CQMS_MonthReportItem
{
ReportId = ReportId,
ReType = "10-7",
ContentName = values.Value<string>("WorkName"),
MonthsCount = values.Value<int>("CheckNum"), //当前检查点数
MonthsBackCount = values.Value<int>("TotalCheckNum"),//累计点数
ProjectCount = values.Value<int>("OKNum"),//当前合格点数
TotalNoBackCount = values.Value<int>("TotalOKNum"),//累计合格点数
RectificationRate = values.Value<string>("OneOKRate"),//本月合格点数
Remarks = values.Value<string>("TotalOneOKRate"),//本月累计合格点数
};
if (GvXf.Rows[rowIndex].DataKeys.Length > 0)
{
newDetail.Id = GvXf.Rows[rowIndex].DataKeys[0].ToString();
}
detailLists.Add(newDetail);
}
if (detailLists.Count > 0)
{
Funs.DB.Report_CQMS_MonthReportItem.InsertAllOnSubmit(detailLists);
Funs.DB.SubmitChanges();
}
}
void saveInspectionDataInspection()
{
List<Model.Report_CQMS_MonthReportItem> detailLists = new List<Model.Report_CQMS_MonthReportItem>();
@@ -3163,7 +3430,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
MonthsCount = values.Value<int>("MonthsCount"),
ProjectCount = values.Value<int>("ProjectCount"),
//RectificationRate = values.Value<string>("RectificationRate"),
Remarks = values.Value<string>("Remarks")
Remarks = values.Value<string>("Remarks"),
};
if (gvInspectionDataInspection.Rows[rowIndex].DataKeys.Length > 0)
{
@@ -3198,7 +3465,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
MonthsCount = values.Value<int>("MonthsCount"),
ProjectCount = values.Value<int>("ProjectCount"),
//RectificationRate = values.Value<string>("RectificationRate"),
Remarks = values.Value<string>("Remarks")
Remarks = values.Value<string>("Remarks"),
};
if (gvPressureInspection.Rows[rowIndex].DataKeys.Length > 0)
{
@@ -3233,7 +3500,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
MonthsCount = values.Value<int>("MonthsCount"),
ProjectCount = values.Value<int>("ProjectCount"),
//RectificationRate = values.Value<string>("RectificationRate"),
Remarks = values.Value<string>("Remarks")
Remarks = values.Value<string>("Remarks"),
};
if (gvPipingInspection.Rows[rowIndex].DataKeys.Length > 0)
{
@@ -3268,7 +3535,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
MonthsCount = values.Value<int>("MonthsCount"),
ProjectCount = values.Value<int>("ProjectCount"),
//RectificationRate = values.Value<string>("RectificationRate"),
Remarks = values.Value<string>("Remarks")
Remarks = values.Value<string>("Remarks"),
};
if (gvSpecialInspection.Rows[rowIndex].DataKeys.Length > 0)
{
@@ -3534,7 +3801,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
imgage1.ReportId = ReportId;
imgage1.ContentType = "23-1";
imgage1.ContentText = txtPhotoContent1.Text;
imgage1.ImageUrl = imgPhoto.ImageUrl;
imgage1.ImageUrl = imgPhoto.ImageUrl.Substring(imgPhoto.ImageUrl.IndexOf("/")+1);
ImageLists.Add(imgage1);
var imgage2 = new Model.Report_TextBoxContent();
@@ -3542,7 +3809,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
imgage2.ReportId = ReportId;
imgage2.ContentType = "23-2";
imgage2.ContentText = txtPhotoContent2.Text;
imgage2.ImageUrl = imgPhoto2.ImageUrl;
imgage2.ImageUrl = imgPhoto2.ImageUrl.Substring(imgPhoto2.ImageUrl.IndexOf("/") + 1);
ImageLists.Add(imgage2);
var imgage3 = new Model.Report_TextBoxContent();
@@ -3550,7 +3817,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
imgage3.ReportId = ReportId;
imgage3.ContentType = "23-3";
imgage3.ContentText = txtPhotoContent3.Text;
imgage3.ImageUrl = imgPhoto3.ImageUrl;
imgage3.ImageUrl = imgPhoto3.ImageUrl.Substring(imgPhoto3.ImageUrl.IndexOf("/") + 1);
ImageLists.Add(imgage3);
var imgage4 = new Model.Report_TextBoxContent();
@@ -3558,7 +3825,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
imgage4.ReportId = ReportId;
imgage4.ContentType = "23-4";
imgage4.ContentText = txtPhotoContent4.Text;
imgage4.ImageUrl = imgPhoto4.ImageUrl;
imgage4.ImageUrl = imgPhoto4.ImageUrl.Substring(imgPhoto4.ImageUrl.IndexOf("/") + 1);
ImageLists.Add(imgage4);
var imgage5 = new Model.Report_TextBoxContent();
@@ -3566,7 +3833,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
imgage5.ReportId = ReportId;
imgage5.ContentType = "23-5";
imgage5.ContentText = txtPhotoContent2.Text;
imgage5.ImageUrl = imgPhoto5.ImageUrl;
imgage5.ImageUrl = imgPhoto5.ImageUrl.Substring(imgPhoto5.ImageUrl.IndexOf("/") + 1);
ImageLists.Add(imgage5);
var imgage6 = new Model.Report_TextBoxContent();
@@ -3574,7 +3841,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
imgage6.ReportId = ReportId;
imgage6.ContentType = "23-6";
imgage6.ContentText = txtPhotoContent6.Text;
imgage6.ImageUrl = imgPhoto6.ImageUrl;
imgage6.ImageUrl = imgPhoto6.ImageUrl.Substring(imgPhoto6.ImageUrl.IndexOf("/") + 1);
ImageLists.Add(imgage6);
Funs.DB.Report_TextBoxContent.InsertAllOnSubmit(ImageLists);
File diff suppressed because it is too large Load Diff
-64
View File
@@ -1,64 +0,0 @@
错误信息开始=====>
错误类型:XmlException
错误信息:名称不能以“<”字符(十六进制值 0x3C)开头。 第 9 行,位置 2。
错误堆栈:
在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
在 System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
在 System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
在 System.Xml.XmlTextReaderImpl.ParseElement()
在 System.Xml.XmlTextReaderImpl.ParseElementContent()
在 System.Xml.XmlTextReaderImpl.Read()
在 System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
在 System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
在 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
在 System.Xml.XmlDocument.Load(XmlReader reader)
在 System.Web.UI.WebControls.XmlDataSource.PopulateXmlDocument(XmlDocument document, CacheDependency& dataCacheDependency, CacheDependency& transformCacheDependency)
在 System.Web.UI.WebControls.XmlDataSource.GetXmlDocument()
在 FineUIPro.Web.indexProject.InitTreeMenu() 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 102
在 FineUIPro.Web.indexProject.MenuSwitchMethod(String type) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 728
在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 315
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:04/10/2024 14:42:44
出错文件:http://localhost:8579/indexProject.aspx?projectId=a7f692aa-4bd5-4fb3-87f8-ba1ab8f94cc2
IP地址:::1
操作人员:JT
出错时间:04/10/2024 14:42:44
错误信息开始=====>
错误类型:XmlException
错误信息:名称不能以“<”字符(十六进制值 0x3C)开头。 第 9 行,位置 2。
错误堆栈:
在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
在 System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
在 System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
在 System.Xml.XmlTextReaderImpl.ParseElement()
在 System.Xml.XmlTextReaderImpl.ParseElementContent()
在 System.Xml.XmlTextReaderImpl.Read()
在 System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
在 System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
在 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
在 System.Xml.XmlDocument.Load(XmlReader reader)
在 System.Web.UI.WebControls.XmlDataSource.PopulateXmlDocument(XmlDocument document, CacheDependency& dataCacheDependency, CacheDependency& transformCacheDependency)
在 System.Web.UI.WebControls.XmlDataSource.GetXmlDocument()
在 FineUIPro.Web.indexProject.InitTreeMenu() 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 102
在 FineUIPro.Web.indexProject.MenuSwitchMethod(String type) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 728
在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 315
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:04/10/2024 14:42:50
出错文件:http://localhost:8579/indexProject.aspx?projectId=
IP地址:::1
操作人员:JT
出错时间:04/10/2024 14:42:50
Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

+1 -1
View File
@@ -77,7 +77,7 @@
<add verb="GET" path="res.axd" type="FineUIPro.ResourceHandler, FineUIPro" validate="false"/>
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<compilation debug="false" targetFramework="4.6.1"/>
<compilation debug="true" targetFramework="4.6.1"/>
<httpRuntime requestValidationMode="2.0" maxRequestLength="2147483647" executionTimeout="36000"/>
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name="PUBLISHERCOOKIE" protection="All" timeout="1440" path="/"/>

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />
<IISExpressSSLPort />