Merge branch 'master' of http://47.104.102.122:3000/panhf/CNCEC_SUBQHSE_WUHUAN
This commit is contained in:
commit
b3badb81c3
|
@ -3424,7 +3424,17 @@ namespace BLL
|
||||||
/// 问题统计模板文件原始虚拟路径
|
/// 问题统计模板文件原始虚拟路径
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string JointCheckStatisticsTemlUrl = "File\\Excel\\CQMS\\问题统计模板.xls";
|
public const string JointCheckStatisticsTemlUrl = "File\\Excel\\CQMS\\问题统计模板.xls";
|
||||||
#endregion
|
|
||||||
|
/// <summary>
|
||||||
|
/// 质量管理工作总结报告模板文件原始虚拟路径
|
||||||
|
/// </summary>
|
||||||
|
public const string QualityWorkSummaryReportTemplateUrl = "File\\Word\\CQMS\\质量管理工作总结报告.doc";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 季度工程项目质量信息表模板文件原始虚拟路径
|
||||||
|
/// </summary>
|
||||||
|
public const string QuarterlyProjectQualityTemplateUrl = "File\\Word\\CQMS\\季度工程项目质量信息表.doc";
|
||||||
|
#endregion
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 绩效考核模板文件路径
|
#region 绩效考核模板文件路径
|
||||||
|
|
|
@ -111,6 +111,9 @@
|
||||||
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server"
|
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server"
|
||||||
Text="删除">
|
Text="删除">
|
||||||
</f:MenuButton>
|
</f:MenuButton>
|
||||||
|
<f:MenuButton ID="btnPrinter" EnablePostBack="true" runat="server"
|
||||||
|
Text="导出" Icon="Printer" OnClick="btnPrinter_Click" EnableAjax="false" DisableControlBeforePostBack="false">
|
||||||
|
</f:MenuButton>
|
||||||
</f:Menu>
|
</f:Menu>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
using BLL;
|
using Aspose.Words;
|
||||||
|
using BLL;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Data.SqlClient;
|
using System.Data.SqlClient;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using System.Web.UI;
|
using System.Web.UI;
|
||||||
|
@ -273,5 +275,149 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 导出
|
||||||
|
/// <summary>
|
||||||
|
/// 导出
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnPrinter_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
string Id = Grid1.SelectedRowID;
|
||||||
|
|
||||||
|
string rootPath = Server.MapPath("~/");
|
||||||
|
string initTemplatePath = string.Empty;
|
||||||
|
string uploadfilepath = string.Empty;
|
||||||
|
string newUrl = string.Empty;
|
||||||
|
string filePath = string.Empty;
|
||||||
|
|
||||||
|
string projectId = this.CurrUser.LoginProjectId;
|
||||||
|
|
||||||
|
var pModel = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == projectId);
|
||||||
|
|
||||||
|
|
||||||
|
initTemplatePath = Const.QualityWorkSummaryReportTemplateUrl;
|
||||||
|
uploadfilepath = rootPath + initTemplatePath;
|
||||||
|
|
||||||
|
var report = BLL.ProjectQualityWorkSummaryReportService.GetQualityWorkSummaryReportById(Id);
|
||||||
|
|
||||||
|
newUrl = uploadfilepath.Replace("质量管理工作总结报告", "质量管理工作总结报告(" + pModel.ShortName + report.YearId + "年度)");
|
||||||
|
|
||||||
|
if (File.Exists(newUrl))
|
||||||
|
{
|
||||||
|
File.Delete(newUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
File.Copy(uploadfilepath, newUrl);
|
||||||
|
Document doc = new Aspose.Words.Document(uploadfilepath);
|
||||||
|
|
||||||
|
|
||||||
|
Bookmark yearId = doc.Range.Bookmarks["YearId"];
|
||||||
|
if (yearId != null)
|
||||||
|
{
|
||||||
|
yearId.Text = report.YearId + "年";
|
||||||
|
}
|
||||||
|
Bookmark reportDate = doc.Range.Bookmarks["ReportDate"];
|
||||||
|
if (reportDate != null)
|
||||||
|
{
|
||||||
|
reportDate.Text = report.ReportDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReportDate) : "";
|
||||||
|
}
|
||||||
|
Bookmark responsiblePerson = doc.Range.Bookmarks["ResponsiblePerson"];
|
||||||
|
if (responsiblePerson != null)
|
||||||
|
{
|
||||||
|
responsiblePerson.Text = report.ResponsiblePerson;
|
||||||
|
}
|
||||||
|
Bookmark responsiblePersonTel = doc.Range.Bookmarks["ResponsiblePersonTel"];
|
||||||
|
if (responsiblePersonTel != null)
|
||||||
|
{
|
||||||
|
responsiblePersonTel.Text = report.ResponsiblePersonTel;
|
||||||
|
}
|
||||||
|
Bookmark contactPerson = doc.Range.Bookmarks["ContactPerson"];
|
||||||
|
if (contactPerson != null)
|
||||||
|
{
|
||||||
|
contactPerson.Text = report.ContactPerson;
|
||||||
|
}
|
||||||
|
Bookmark contactPersonTel = doc.Range.Bookmarks["ContactPersonTel"];
|
||||||
|
if (contactPersonTel != null)
|
||||||
|
{
|
||||||
|
contactPersonTel.Text = report.ContactPersonTel;
|
||||||
|
}
|
||||||
|
Bookmark performance = doc.Range.Bookmarks["Performance"];
|
||||||
|
if (performance != null)
|
||||||
|
{
|
||||||
|
performance.Text = report.Performance;
|
||||||
|
}
|
||||||
|
Bookmark accidentSituation = doc.Range.Bookmarks["AccidentSituation"];
|
||||||
|
if (accidentSituation != null)
|
||||||
|
{
|
||||||
|
accidentSituation.Text = report.AccidentSituation;
|
||||||
|
}
|
||||||
|
Bookmark awards = doc.Range.Bookmarks["Awards"];
|
||||||
|
if (awards != null)
|
||||||
|
{
|
||||||
|
awards.Text = report.Awards;
|
||||||
|
}
|
||||||
|
Bookmark workDevelopment = doc.Range.Bookmarks["WorkDevelopment"];
|
||||||
|
if (workDevelopment != null)
|
||||||
|
{
|
||||||
|
workDevelopment.Text = report.WorkDevelopment;
|
||||||
|
}
|
||||||
|
Bookmark personnelTraining = doc.Range.Bookmarks["PersonnelTraining"];
|
||||||
|
if (personnelTraining != null)
|
||||||
|
{
|
||||||
|
personnelTraining.Text = report.PersonnelTraining;
|
||||||
|
}
|
||||||
|
Bookmark checkSituation = doc.Range.Bookmarks["CheckSituation"];
|
||||||
|
if (checkSituation != null)
|
||||||
|
{
|
||||||
|
checkSituation.Text = report.CheckSituation;
|
||||||
|
}
|
||||||
|
Bookmark managementActivity = doc.Range.Bookmarks["ManagementActivity"];
|
||||||
|
if (managementActivity != null)
|
||||||
|
{
|
||||||
|
managementActivity.Text = report.ManagementActivity;
|
||||||
|
}
|
||||||
|
Bookmark workExperience = doc.Range.Bookmarks["WorkExperience"];
|
||||||
|
if (workExperience != null)
|
||||||
|
{
|
||||||
|
workExperience.Text = report.WorkExperience;
|
||||||
|
}
|
||||||
|
Bookmark countermeasures = doc.Range.Bookmarks["Countermeasures"];
|
||||||
|
if (countermeasures != null)
|
||||||
|
{
|
||||||
|
countermeasures.Text = report.Countermeasures;
|
||||||
|
}
|
||||||
|
Bookmark nextYearWorkPlan = doc.Range.Bookmarks["NextYearWorkPlan"];
|
||||||
|
if (nextYearWorkPlan != null)
|
||||||
|
{
|
||||||
|
nextYearWorkPlan.Text = report.NextYearWorkPlan;
|
||||||
|
}
|
||||||
|
Bookmark jobSuggestion = doc.Range.Bookmarks["JobSuggestion"];
|
||||||
|
if (jobSuggestion != null)
|
||||||
|
{
|
||||||
|
jobSuggestion.Text = report.JobSuggestion;
|
||||||
|
}
|
||||||
|
|
||||||
|
doc.Save(newUrl);
|
||||||
|
|
||||||
|
string fileName = Path.GetFileName(newUrl);
|
||||||
|
FileInfo info = new FileInfo(newUrl);
|
||||||
|
long fileSize = info.Length;
|
||||||
|
Response.Clear();
|
||||||
|
Response.ContentType = "application/x-zip-compressed";
|
||||||
|
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
|
||||||
|
Response.AddHeader("Content-Length", fileSize.ToString());
|
||||||
|
Response.TransmitFile(newUrl, 0, fileSize);
|
||||||
|
Response.Flush();
|
||||||
|
Response.Close();
|
||||||
|
File.Delete(newUrl);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -146,5 +146,14 @@ namespace FineUIPro.Web.CQMS.ManageReport {
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnPrinter 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnPrinter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,6 +86,9 @@
|
||||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||||
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server" Text="删除">
|
Hidden="true" Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server" Text="删除">
|
||||||
</f:MenuButton>
|
</f:MenuButton>
|
||||||
|
<f:MenuButton ID="btnPrinter" EnablePostBack="true" runat="server"
|
||||||
|
Text="导出" Icon="Printer" OnClick="btnPrinter_Click" EnableAjax="false" DisableControlBeforePostBack="false">
|
||||||
|
</f:MenuButton>
|
||||||
</f:Menu>
|
</f:Menu>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
using BLL;
|
using Aspose.Words;
|
||||||
|
using BLL;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Data.SqlClient;
|
using System.Data.SqlClient;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace FineUIPro.Web.CQMS.ManageReport
|
namespace FineUIPro.Web.CQMS.ManageReport
|
||||||
|
@ -241,5 +243,230 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 导出
|
||||||
|
/// <summary>
|
||||||
|
/// 导出
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnPrinter_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
string Id = Grid1.SelectedRowID;
|
||||||
|
|
||||||
|
string rootPath = Server.MapPath("~/");
|
||||||
|
string initTemplatePath = string.Empty;
|
||||||
|
string uploadfilepath = string.Empty;
|
||||||
|
string newUrl = string.Empty;
|
||||||
|
string filePath = string.Empty;
|
||||||
|
|
||||||
|
string projectId = this.CurrUser.LoginProjectId;
|
||||||
|
|
||||||
|
var pModel = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == projectId);
|
||||||
|
|
||||||
|
|
||||||
|
initTemplatePath = Const.QuarterlyProjectQualityTemplateUrl;
|
||||||
|
uploadfilepath = rootPath + initTemplatePath;
|
||||||
|
|
||||||
|
var report = BLL.ProjectQuarterlyProjectQualityService.GetQuarterlyProjectQualityById(Id);
|
||||||
|
|
||||||
|
newUrl = uploadfilepath.Replace("季度工程项目质量信息表", "季度工程项目质量信息表(" + pModel.ShortName + report.Year + "年第" + report.Quarter + "季度)");
|
||||||
|
|
||||||
|
if (File.Exists(newUrl))
|
||||||
|
{
|
||||||
|
File.Delete(newUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
File.Copy(uploadfilepath, newUrl);
|
||||||
|
Document doc = new Aspose.Words.Document(uploadfilepath);
|
||||||
|
|
||||||
|
|
||||||
|
Bookmark yearId = doc.Range.Bookmarks["YearId"];
|
||||||
|
if (yearId != null)
|
||||||
|
{
|
||||||
|
yearId.Text = report.Year + "年";
|
||||||
|
}
|
||||||
|
Bookmark quarter = doc.Range.Bookmarks["Quarter"];
|
||||||
|
if (quarter != null)
|
||||||
|
{
|
||||||
|
quarter.Text = "第" + report.Quarter + "季度";
|
||||||
|
}
|
||||||
|
Bookmark compileDate = doc.Range.Bookmarks["CompileDate"];
|
||||||
|
if (compileDate != null)
|
||||||
|
{
|
||||||
|
compileDate.Text = report.CompileDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.CompileDate) : "";
|
||||||
|
}
|
||||||
|
Bookmark responsiblePerson = doc.Range.Bookmarks["ResponsiblePerson"];
|
||||||
|
if (responsiblePerson != null)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(report.ResponsiblePerson))
|
||||||
|
{
|
||||||
|
responsiblePerson.Text = BLL.UserService.GetUserNameByUserId(report.ResponsiblePerson);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Bookmark compileMan = doc.Range.Bookmarks["CompileMan"];
|
||||||
|
if (compileMan != null)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(report.CompileMan))
|
||||||
|
{
|
||||||
|
compileMan.Text = BLL.UserService.GetUserNameByUserId(report.CompileMan);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Bookmark tel = doc.Range.Bookmarks["Tel"];
|
||||||
|
if (tel != null)
|
||||||
|
{
|
||||||
|
tel.Text = report.Tel;
|
||||||
|
}
|
||||||
|
Bookmark qualityManagePersonNum = doc.Range.Bookmarks["QualityManagePersonNum"];
|
||||||
|
if (qualityManagePersonNum != null)
|
||||||
|
{
|
||||||
|
qualityManagePersonNum.Text = report.QualityManagePersonNum.HasValue ? report.QualityManagePersonNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark advancedTitlePersonNum = doc.Range.Bookmarks["AdvancedTitlePersonNum"];
|
||||||
|
if (advancedTitlePersonNum != null)
|
||||||
|
{
|
||||||
|
advancedTitlePersonNum.Text = report.AdvancedTitlePersonNum.HasValue ? report.AdvancedTitlePersonNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark intermediateTitlePersonNum = doc.Range.Bookmarks["IntermediateTitlePersonNum"];
|
||||||
|
if (intermediateTitlePersonNum != null)
|
||||||
|
{
|
||||||
|
intermediateTitlePersonNum.Text = report.IntermediateTitlePersonNum.HasValue ? report.IntermediateTitlePersonNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark beImplementedProjectNum = doc.Range.Bookmarks["BeImplementedProjectNum"];
|
||||||
|
if (beImplementedProjectNum != null)
|
||||||
|
{
|
||||||
|
beImplementedProjectNum.Text = report.BeImplementedProjectNum.HasValue ? report.BeImplementedProjectNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark startImplementedProjectNum = doc.Range.Bookmarks["StartImplementedProjectNum"];
|
||||||
|
if (startImplementedProjectNum != null)
|
||||||
|
{
|
||||||
|
startImplementedProjectNum.Text = report.StartImplementedProjectNum.HasValue ? report.StartImplementedProjectNum.ToString():"";
|
||||||
|
}
|
||||||
|
Bookmark accumulativeStartImplemented = doc.Range.Bookmarks["AccumulativeStartImplemented"];
|
||||||
|
if (accumulativeStartImplemented != null)
|
||||||
|
{
|
||||||
|
accumulativeStartImplemented.Text = report.AccumulativeStartImplemented.HasValue? report.AccumulativeStartImplemented.ToString():"";
|
||||||
|
}
|
||||||
|
Bookmark completeProjectNum = doc.Range.Bookmarks["CompleteProjectNum"];
|
||||||
|
if (completeProjectNum != null)
|
||||||
|
{
|
||||||
|
completeProjectNum.Text = report.CompleteProjectNum.HasValue ? report.CompleteProjectNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark yearCompleteProjectNum = doc.Range.Bookmarks["YearCompleteProjectNum"];
|
||||||
|
if (yearCompleteProjectNum != null)
|
||||||
|
{
|
||||||
|
yearCompleteProjectNum.Text = report.YearCompleteProjectNum.HasValue? report.YearCompleteProjectNum.ToString():"";
|
||||||
|
}
|
||||||
|
Bookmark quarterTotal = doc.Range.Bookmarks["QuarterTotal"];
|
||||||
|
if (quarterTotal != null)
|
||||||
|
{
|
||||||
|
quarterTotal.Text = report.QuarterTotal.HasValue? report.QuarterTotal.ToString():"";
|
||||||
|
}
|
||||||
|
Bookmark quarterFirstPassNum = doc.Range.Bookmarks["QuarterFirstPassNum"];
|
||||||
|
if (quarterFirstPassNum != null)
|
||||||
|
{
|
||||||
|
quarterFirstPassNum.Text = report.QuarterFirstPassNum.HasValue? report.QuarterFirstPassNum.ToString():"";
|
||||||
|
}
|
||||||
|
Bookmark quarterFirstPassRate = doc.Range.Bookmarks["QuarterFirstPassRate"];
|
||||||
|
if (quarterFirstPassRate != null)
|
||||||
|
{
|
||||||
|
quarterFirstPassRate.Text = report.QuarterFirstPassRate.HasValue? report.QuarterFirstPassRate.ToString():"";
|
||||||
|
}
|
||||||
|
Bookmark yearTotal = doc.Range.Bookmarks["YearTotal"];
|
||||||
|
if (yearTotal != null)
|
||||||
|
{
|
||||||
|
yearTotal.Text = report.YearTotal.HasValue ? report.YearTotal.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark yearFirstPassNum = doc.Range.Bookmarks["YearFirstPassNum"];
|
||||||
|
if (yearFirstPassNum != null)
|
||||||
|
{
|
||||||
|
yearFirstPassNum.Text = report.YearFirstPassNum.HasValue ? report.YearFirstPassNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark yearFirstPassRate = doc.Range.Bookmarks["YearFirstPassRate"];
|
||||||
|
if (yearFirstPassRate != null)
|
||||||
|
{
|
||||||
|
yearFirstPassRate.Text = report.YearFirstPassRate.HasValue ? report.YearFirstPassRate.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark quaterCheckSuperviseNum = doc.Range.Bookmarks["QuaterCheckSuperviseNum"];
|
||||||
|
if (quaterCheckSuperviseNum != null)
|
||||||
|
{
|
||||||
|
quaterCheckSuperviseNum.Text = report.QuaterCheckSuperviseNum.HasValue ? report.QuaterCheckSuperviseNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark quaterCorrectiveNoticeNum = doc.Range.Bookmarks["QuaterCorrectiveNoticeNum"];
|
||||||
|
if (quaterCorrectiveNoticeNum != null)
|
||||||
|
{
|
||||||
|
quaterCorrectiveNoticeNum.Text = report.QuaterCorrectiveNoticeNum.HasValue ? report.QuaterCorrectiveNoticeNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark quaterQualityProblemNum = doc.Range.Bookmarks["QuaterQualityProblemNum"];
|
||||||
|
if (quaterQualityProblemNum != null)
|
||||||
|
{
|
||||||
|
quaterQualityProblemNum.Text = report.QuaterQualityProblemNum.HasValue ? report.QuaterQualityProblemNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark quaterClosedQualityProblemNum = doc.Range.Bookmarks["QuaterClosedQualityProblemNum"];
|
||||||
|
if (quaterClosedQualityProblemNum != null)
|
||||||
|
{
|
||||||
|
quaterClosedQualityProblemNum.Text = report.QuaterClosedQualityProblemNum.HasValue ? report.QuaterClosedQualityProblemNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark yearCheckSuperviseNum = doc.Range.Bookmarks["YearCheckSuperviseNum"];
|
||||||
|
if (yearCheckSuperviseNum != null)
|
||||||
|
{
|
||||||
|
yearCheckSuperviseNum.Text = report.YearCheckSuperviseNum.HasValue ? report.YearCheckSuperviseNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark yearCorrectiveNoticeNum = doc.Range.Bookmarks["YearCorrectiveNoticeNum"];
|
||||||
|
if (yearCorrectiveNoticeNum != null)
|
||||||
|
{
|
||||||
|
yearCorrectiveNoticeNum.Text = report.YearCorrectiveNoticeNum.HasValue ? report.YearCorrectiveNoticeNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark yearQualityProblemNum = doc.Range.Bookmarks["YearQualityProblemNum"];
|
||||||
|
if (yearQualityProblemNum != null)
|
||||||
|
{
|
||||||
|
yearQualityProblemNum.Text = report.YearQualityProblemNum.HasValue ? report.YearQualityProblemNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark yearClosedQualityProblemNum = doc.Range.Bookmarks["YearClosedQualityProblemNum"];
|
||||||
|
if (yearClosedQualityProblemNum != null)
|
||||||
|
{
|
||||||
|
yearClosedQualityProblemNum.Text = report.YearClosedQualityProblemNum.HasValue ? report.YearClosedQualityProblemNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark quaterQualityAccidentNum = doc.Range.Bookmarks["QuaterQualityAccidentNum"];
|
||||||
|
if (quaterQualityAccidentNum != null)
|
||||||
|
{
|
||||||
|
quaterQualityAccidentNum.Text = report.QuaterQualityAccidentNum.HasValue ? report.QuaterQualityAccidentNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark quaterDirectEconomicLoss = doc.Range.Bookmarks["QuaterDirectEconomicLoss"];
|
||||||
|
if (quaterDirectEconomicLoss != null)
|
||||||
|
{
|
||||||
|
quaterDirectEconomicLoss.Text = report.QuaterDirectEconomicLoss.HasValue ? report.QuaterDirectEconomicLoss.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark yearQualityAccidentNum = doc.Range.Bookmarks["YearQualityAccidentNum"];
|
||||||
|
if (yearQualityAccidentNum != null)
|
||||||
|
{
|
||||||
|
yearQualityAccidentNum.Text = report.YearQualityAccidentNum.HasValue ? report.YearQualityAccidentNum.ToString() : "";
|
||||||
|
}
|
||||||
|
Bookmark yearDirectEconomicLoss = doc.Range.Bookmarks["YearDirectEconomicLoss"];
|
||||||
|
if (yearDirectEconomicLoss != null)
|
||||||
|
{
|
||||||
|
yearDirectEconomicLoss.Text = report.YearDirectEconomicLoss.HasValue ? report.YearDirectEconomicLoss.ToString() : "";
|
||||||
|
}
|
||||||
|
|
||||||
|
doc.Save(newUrl);
|
||||||
|
|
||||||
|
string fileName = Path.GetFileName(newUrl);
|
||||||
|
FileInfo info = new FileInfo(newUrl);
|
||||||
|
long fileSize = info.Length;
|
||||||
|
Response.Clear();
|
||||||
|
Response.ContentType = "application/x-zip-compressed";
|
||||||
|
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
|
||||||
|
Response.AddHeader("Content-Length", fileSize.ToString());
|
||||||
|
Response.TransmitFile(newUrl, 0, fileSize);
|
||||||
|
Response.Flush();
|
||||||
|
Response.Close();
|
||||||
|
File.Delete(newUrl);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -155,5 +155,14 @@ namespace FineUIPro.Web.CQMS.ManageReport {
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnPrinter 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnPrinter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,62 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
季度工程
|
||||||
|
项目质量信息表
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|年度: |
|
||||||
|
|季度: |
|
||||||
|
|填报时间: |
|
||||||
|
|填报单位责任人: |
|
||||||
|
|填报人: |
|
||||||
|
|联系电话: |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
质量管理组织状态
|
||||||
|
|专职质量管理人员数( |其中具有高级职称人数 |其中具有中级职称人数 |
|
||||||
|
|人) |(人) |(人) |
|
||||||
|
| | | |
|
||||||
|
|
||||||
|
实施工程项目情况
|
||||||
|
|本季度正在实|本季度开始实|本年累计开始|本季度完成(竣|本年累计完成 |
|
||||||
|
|施项目数量(|施项目数量(|实施项目数量|工)项目数量(|(竣工)项目 |
|
||||||
|
|个) |个) |(个) |个) |数量(个) |
|
||||||
|
| | | | | |
|
||||||
|
|
||||||
|
单位工程质量情况
|
||||||
|
|本季度完成 |本年累计完成 |
|
||||||
|
|总数 |一次合格数|一次合格率|总数 |一次合格数|一次合格率|
|
||||||
|
| | |(%) | | |(%) |
|
||||||
|
| | | | | | |
|
||||||
|
|
||||||
|
企业级质量监督检查情况
|
||||||
|
|本季度 |开展质量监督检查次数( | |
|
||||||
|
| |次) | |
|
||||||
|
| |发出质量整改通知单份数 | |
|
||||||
|
| |(份) | |
|
||||||
|
| |涉及质量问题项数(项) | |
|
||||||
|
| |已关闭质量问题项数(项 | |
|
||||||
|
| |) | |
|
||||||
|
|本年累计完成 |开展质量监督检查次数( | |
|
||||||
|
| |次) | |
|
||||||
|
| |发出质量整改通知单份数 | |
|
||||||
|
| |(份) | |
|
||||||
|
| |涉及质量问题项数(项) | |
|
||||||
|
| |已关闭质量问题项数(项 | |
|
||||||
|
| |) | |
|
||||||
|
|
||||||
|
较大及以上质量事故情况
|
||||||
|
|本季度 |本年累计 |
|
||||||
|
|发生起数(起) |直接经济损失(万|发生起数(起) |直接经济损失(万|
|
||||||
|
| |元) | |元) |
|
||||||
|
| | | | |
|
|
@ -0,0 +1,45 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
质量管理
|
||||||
|
工作总结报告
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|年度: |
|
||||||
|
|报告时间: |
|
||||||
|
|责任人: |
|
||||||
|
|负责人电话: |
|
||||||
|
|联系人: |
|
||||||
|
|联系人电话: |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
管理绩效
|
||||||
|
质量管理绩效(单位工程质量状况等)
|
||||||
|
|
||||||
|
质量事故情况
|
||||||
|
|
||||||
|
获奖情况
|
||||||
|
|
||||||
|
主要工作及亮点
|
||||||
|
质量提升行动、质量首件及质量管理重点工作开展情况
|
||||||
|
|
||||||
|
人员培训情况
|
||||||
|
|
||||||
|
组织开展质量监督检查情况
|
||||||
|
|
||||||
|
质量月等其他管理活动情况
|
||||||
|
|
||||||
|
主要工作经验及亮点
|
||||||
|
|
||||||
|
主要问题及应对措施
|
||||||
|
|
||||||
|
下一年度工作计划打算
|
||||||
|
|
||||||
|
对集团公司的工作意见
|
Loading…
Reference in New Issue