20240430 修改附件上传条件

This commit is contained in:
毕文静 2024-04-30 09:29:36 +08:00
parent 3b39bf3074
commit 475d273bc5
35 changed files with 1971 additions and 1132 deletions

View File

@ -0,0 +1,5 @@
alter table Comprehensive_DesignChangeOrder alter column RemarkCode int
go
alter table Comprehensive_SiteVisaManagement alter column RemarkCode int
go

View File

@ -169,6 +169,7 @@ namespace BLL
newSiteVisaManagement.AuditMan = siteVisaMangement.AuditMan;
newSiteVisaManagement.Remark = siteVisaMangement.Remark;
newSiteVisaManagement.Status = siteVisaMangement.Status;
newSiteVisaManagement.RemarkCode = siteVisaMangement.RemarkCode;
db.SubmitChanges();
}
}

View File

@ -407,17 +407,17 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataDistribution));
}
var dataDistribution = BLL.DataDistributionService.GetDataDistributionById(this.DataDistributionId);
//var dataDistribution = BLL.DataDistributionService.GetDataDistributionById(this.DataDistributionId);
if (dataDistribution == null || ((dataDistribution.CompileMan == CurrUser.UserId && dataDistribution.Status == BLL.Const.Comprehensive_Compile) || (dataDistribution.CompileMan == CurrUser.UserId && dataDistribution.Status == BLL.Const.Comprehensive_ReCompile)))
{
//if (dataDistribution == null || ((dataDistribution.CompileMan == CurrUser.UserId && dataDistribution.Status == BLL.Const.Comprehensive_Compile) || (dataDistribution.CompileMan == CurrUser.UserId && dataDistribution.Status == BLL.Const.Comprehensive_ReCompile)))
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/DataDistribution&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DataDistributionMenuId)));
}
else
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/DataDistribution&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DataDistributionMenuId)));
//}
//else
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/DataDistribution&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DataDistributionMenuId)));
}
//}
}
#endregion

View File

@ -392,14 +392,14 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceiving));
}
Model.Comprehensive_DataReceiving dataReceiving = BLL.DataReceivingService.GetDataReceivingById(this.DataReceivingId);
if (dataReceiving == null || ((dataReceiving.CompileMan == CurrUser.UserId && dataReceiving.Status == BLL.Const.Comprehensive_Compile) || (dataReceiving.CompileMan == CurrUser.UserId && dataReceiving.Status == BLL.Const.Comprehensive_ReCompile)))
{
//if (dataReceiving == null || ((dataReceiving.CompileMan == CurrUser.UserId && dataReceiving.Status == BLL.Const.Comprehensive_Compile) || (dataReceiving.CompileMan == CurrUser.UserId && dataReceiving.Status == BLL.Const.Comprehensive_ReCompile)))
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/DataReceiving&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DataReceivingMenuId)));
}
else
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/DataReceiving&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DataReceivingMenuId)));
}
//}
//else
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/DataReceiving&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DataReceivingMenuId)));
//}
}
#endregion

View File

@ -39,6 +39,9 @@
</f:Button>
<f:Button ID="btnImport" ToolTip="导入" Icon="PackageIn" runat="server" OnClick="btnImport_Click" Hidden="true">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>

View File

@ -3,6 +3,7 @@ using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
namespace FineUIPro.Web.Comprehensive
{
@ -278,6 +279,170 @@ namespace FineUIPro.Web.Comprehensive
}
#endregion
#region
/// 导出按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnOut_Click(object sender, EventArgs e)
{
string rootPath = Server.MapPath("~/");
string initTemplatePath = Const.DesignChangeOrderDataInUrl;
string uploadfilepath = string.Empty;
string newUrl = string.Empty;
uploadfilepath = rootPath + initTemplatePath;
var lists = (from x in Funs.DB.Comprehensive_DesignChangeOrder
where x.ProjectId == this.CurrUser.LoginProjectId
select x);
if (this.sdrpCNProfessionalId.SelectedValue != BLL.Const._Null)
{
lists = lists.Where(x => x.CNProfessionalId == sdrpCNProfessionalId.SelectedValue);
}
if (!string.IsNullOrEmpty(this.stxtContents.Text.Trim()))
{
lists = lists.Where(x => x.Contents.Contains(this.stxtContents.Text.Trim()));
}
if (!string.IsNullOrEmpty(this.txtStarTime.Text.Trim()))
{
lists = lists.Where(x => x.IssuedDate >= Funs.GetNewDateTime(this.txtStarTime.Text.Trim()));
}
if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
{
lists = lists.Where(x => x.IssuedDate <= Funs.GetNewDateTime(this.txtEndTime.Text.Trim()));
}
lists = lists.OrderBy(x => x.RemarkCode);
if (lists != null)
{
string projectName = BLL.ProjectService.GetProjectNameByProjectId(this.CurrUser.LoginProjectId);
newUrl = uploadfilepath.Replace("设计变更单导入模板", "设计变更单(" + projectName + DateTime.Now.ToString("yyyyMMdd") + ")");
File.Copy(uploadfilepath, newUrl);
// 第一步:读取文件流
NPOI.SS.UserModel.IWorkbook workbook;
using (FileStream stream = new FileStream(newUrl, FileMode.Open, FileAccess.Read))
{
//workbook = new NPOI.XSSF.UserModel.XSSFWorkbook(stream);
workbook = new NPOI.HSSF.UserModel.HSSFWorkbook(stream);
}
// 创建单元格样式
NPOI.SS.UserModel.ICellStyle cellStyle = workbook.CreateCellStyle();
cellStyle.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Center;
cellStyle.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center;
var font = workbook.CreateFont();
font.FontHeightInPoints = 11;
cellStyle.SetFont(font);
NPOI.SS.UserModel.ICellStyle cellStyle0 = workbook.CreateCellStyle();
cellStyle0.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle0.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle0.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle0.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle0.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Center;
cellStyle0.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center;
var font0 = workbook.CreateFont();
font0.FontHeightInPoints = 12;
font0.IsBold = true;
cellStyle0.SetFont(font0);
// 第二步:创建新数据行
NPOI.SS.UserModel.ISheet sheet = workbook.GetSheetAt(0);
NPOI.SS.UserModel.IRow row = sheet.GetRow(0);
NPOI.SS.UserModel.ICell cell;
int i = 2;
foreach (var item in lists)
{
// 第二步:创建新数据行
row = sheet.CreateRow(i);
// 添加数据
cell = row.CreateCell(0);
cell.CellStyle = cellStyle;
string proName = string.Empty;
var cnp = BLL.CNProfessionalService.GetCNProfessional(item.CNProfessionalId);
if (cnp != null)
{
proName = cnp.ProfessionalName;
}
cell.SetCellValue(proName);//专业
cell = row.CreateCell(1);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.ChangeOrderCode);//变更单号
cell = row.CreateCell(2);
cell.CellStyle = cellStyle;
string unitWork = string.Empty;
if (!string.IsNullOrEmpty(item.UnitWorkId))
{
unitWork = ConvertUnitWork(item.UnitWorkId);
}
cell.SetCellValue(unitWork);//单位工程名称
cell = row.CreateCell(3);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.ChangeReason);//变更原因
cell = row.CreateCell(4);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.Contents);//主要内容
cell = row.CreateCell(5);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.IssuedDate.HasValue ? string.Format("{0:yyyy-MM-dd}", item.IssuedDate) : "");//下发日期
cell = row.CreateCell(6);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.ApprovalDate.HasValue ? string.Format("{0:yyyy-MM-dd}", item.ApprovalDate) : "");//业主批准日期
cell = row.CreateCell(7);
cell.CellStyle = cellStyle;
string unitName = string.Empty;
if (!string.IsNullOrEmpty(item.UnitId))
{
unitName = ConvertCarryUnit(item.UnitId);
}
cell.SetCellValue(unitName);//接收单位
cell = row.CreateCell(8);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.ImplementationFrontState);//执行情况
cell = row.CreateCell(9);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.CompleteDate.HasValue ? string.Format("{0:yyyy-MM-dd}", item.CompleteDate) : "");//施工完成日期
cell = row.CreateCell(10);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.RemarkCode.HasValue ? item.RemarkCode.ToString() : "");//标志编号
i++;
}
// 第三步:写入文件流
using (FileStream stream = new FileStream(newUrl, FileMode.Create, FileAccess.Write))
{
workbook.Write(stream);
workbook.Close();
}
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);
}
else
{
Alert.ShowInTop("当前无记录,无法导出!", MessageBoxIcon.Warning);
}
}
#endregion
#region
/// <summary>
/// 获取按钮权限

View File

@ -7,12 +7,10 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.Comprehensive
{
namespace FineUIPro.Web.Comprehensive {
public partial class DesignChangeOrder
{
public partial class DesignChangeOrder {
/// <summary>
/// form1 控件。
@ -131,6 +129,15 @@ namespace FineUIPro.Web.Comprehensive
/// </remarks>
protected global::FineUIPro.Button btnImport;
/// <summary>
/// btnOut 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// lblPageIndex 控件。
/// </summary>

View File

@ -168,9 +168,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
select x;
var cns = from x in Funs.DB.Base_CNProfessional select x;
var installations = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId select x;
for (int i = 0; i < ir; i++)
var unitWorks = from x in Funs.DB.WBS_UnitWork
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.SuperUnitWork == null
select x;
for (int i = 1; i < ir; i++)
{
string row0 = pds.Rows[i][0].ToString().Trim();
if (!string.IsNullOrEmpty(row0))
@ -181,22 +184,30 @@ namespace FineUIPro.Web.CQMS.Comprehensive
result += (i + 2).ToString() + "," + "专业名称" + "," + "[" + row0 + "]不存在!" + "|";
}
}
string row1 = pds.Rows[i][1].ToString();
if (!string.IsNullOrEmpty(row1))
else
{
var ins = installations.Where(x => x.UnitWorkName == row1.Trim()).FirstOrDefault();
if (ins == null)
{
result += (i + 2).ToString() + "," + "装置/单元名称" + "," + "[" + row1 + "]不存在!" + "|";
}
result += (i + 2).ToString() + "," + "专业名称" + "," + "此项为必填项!" + "|";
}
string row2 = pds.Rows[i][2].ToString();
if (string.IsNullOrEmpty(row2))
string row1 = pds.Rows[i][1].ToString();
if (string.IsNullOrEmpty(row1))
{
result += (i + 2).ToString() + "," + "变更单号" + "," + "此项为必填项!" + "|";
}
string row2 = pds.Rows[i][2].ToString();
if (!string.IsNullOrEmpty(row2))
{
string[] reunit = row2.Split(',');
foreach (string unitWork in reunit)
{
var u = unitWorks.Where(x => x.UnitWorkName == unitWork.Trim()).FirstOrDefault();
if (u == null)
{
result += (i + 2).ToString() + "," + "单位工程名称" + "," + "[" + unitWork.Trim() + "]不存在!" + "|";
}
}
}
string row5 = pds.Rows[i][5].ToString();
if (!string.IsNullOrEmpty(row5))
@ -233,16 +244,29 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var u = units.Where(x => x.UnitName == unit).FirstOrDefault();
if (u == null)
{
result += (i + 2).ToString() + "," + "单位名称" + "," + "[" + unit + "]不存在!" + "|";
result += (i + 2).ToString() + "," + "接收单位" + "," + "[" + unit + "]不存在!" + "|";
}
}
}
string row9 = pds.Rows[i][9].ToString().Trim();
string row8 = pds.Rows[i][8].ToString().Trim();
if (!string.IsNullOrEmpty(row8))
{
if (row8 != "实施中" && row8 != "已完成")
{
result += (i + 2).ToString() + "," + "执行情况" + "," + "[" + row8 + "]错误!" + "|";
}
}
string row9 = pds.Rows[i][9].ToString();
if (!string.IsNullOrEmpty(row9))
{
if (row9 != "未实施" && row9 != "进行中" && row9 != "已完成")
try
{
result += (i + 2).ToString() + "," + "处理状态" + "," + "[" + row9 + "]错误!" + "|";
DateTime date = Convert.ToDateTime(row9.Trim());
}
catch (Exception)
{
result += (i + 2).ToString() + "," + "施工完成日期" + "," + "[" + row9 + "]错误!" + "|";
}
}
@ -251,6 +275,17 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
result += (i + 2).ToString() + "," + "标志编号" + "," + "此项为必填项!" + "|";
}
else
{
try
{
int t = Convert.ToInt32(row10);
}
catch (Exception)
{
result += (i + 2).ToString() + "," + "标志编号" + "," + "[" + row10 + "]错误!" + "|";
}
}
}
if (!string.IsNullOrEmpty(result))
{
@ -390,13 +425,18 @@ namespace FineUIPro.Web.CQMS.Comprehensive
select x;
var cns = from x in Funs.DB.Base_CNProfessional select x;
var installations = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId select x;
var unitWorks = from x in Funs.DB.WBS_UnitWork
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.SuperUnitWork == null
select x;
var oldViewInfos = from x in Funs.DB.Comprehensive_DesignChangeOrder
where x.ProjectId == this.CurrUser.LoginProjectId
select x;
for (int i = 0; i < ir; i++)
for (int i = 1; i < ir; i++)
{
var oldViewInfo = oldViewInfos.Where(x => x.RemarkCode == pds.Rows[i][10].ToString().Trim()).FirstOrDefault();
var oldViewInfo = oldViewInfos.Where(x => x.RemarkCode ==Funs.GetNewInt(pds.Rows[i][10].ToString().Trim())).FirstOrDefault();
if (oldViewInfo == null)
{
Model.Comprehensive_DesignChangeOrder Ins = new Model.Comprehensive_DesignChangeOrder();
@ -405,13 +445,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
Ins.CNProfessionalId = Funs.DB.Base_CNProfessional.First(e => e.ProfessionalName == pds.Rows[i][0].ToString().Trim()).CNProfessionalId;
}
if (!string.IsNullOrEmpty(pds.Rows[i][1].ToString().Trim()))
Ins.ChangeOrderCode = pds.Rows[i][1].ToString().Trim();
if (!string.IsNullOrEmpty(pds.Rows[i][2].ToString().Trim()))
{
Ins.UnitWorkId = Funs.DB.WBS_UnitWork.First(e => e.UnitWorkName == pds.Rows[i][1].ToString().Trim()).UnitWorkId;
Ins.UnitWorkId = BLL.UnitWorkService.GetUnitWorkIdsByUnitWorkNames(this.CurrUser.LoginProjectId, pds.Rows[i][2].ToString().Trim());
}
Ins.ChangeOrderCode = pds.Rows[i][2].ToString().Trim();
Ins.ChangeReason = pds.Rows[i][3].ToString().Trim();
Ins.Contents = pds.Rows[i][4].ToString().Trim();
@ -429,26 +467,9 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
Ins.UnitId = UnitService.GetUnitIds(pds.Rows[i][7].ToString().Trim());
}
Ins.ImplementationFrontState = pds.Rows[i][8].ToString().Trim();
string row9 = pds.Rows[i][9].ToString().Trim();
if (!string.IsNullOrEmpty(row9))
{
if (row9 == "未实施")
{
Ins.HandleState = "1";
}
if (row9 == "进行中")
{
Ins.HandleState = "2";
}
if (row9 == "已完成")
{
Ins.HandleState = "3";
}
}
Ins.RemarkCode = pds.Rows[i][10].ToString().Trim();
Ins.CompleteDate = Funs.GetNewDateTime(pds.Rows[i][9].ToString().Trim());
Ins.RemarkCode = Funs.GetNewInt(pds.Rows[i][10].ToString().Trim());
Ins.DesignChangeOrderId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignChangeOrder));
Ins.CompileMan = this.CurrUser.UserId;
Ins.CompileDate = DateTime.Now.Date;
@ -467,7 +488,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
#endregion
#endregion
#region
/// <summary>
/// 下载模板按钮

View File

@ -21,7 +21,7 @@
<f:FormRow>
<Items>
<f:DropDownList ID="drpUnitIds" runat="server" Label="接收单位" EnableMultiSelect="true" EnableCheckBoxSelect="true" AutoSelectFirstItem="false" LabelAlign="right"></f:DropDownList>
<f:TextBox ID="txtChangeOrderCode" runat="server" Label="变更单号" MaxLength="50" LabelWidth="120px" LabelAlign="right"></f:TextBox>
<f:TextBox ID="txtChangeOrderCode" runat="server" Label="变更单号" MaxLength="50" LabelWidth="120px" LabelAlign="right" Required="true" ShowRedStar="true"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
@ -63,6 +63,7 @@
</f:Button>
</Items>
</f:Panel>
<f:NumberBox ID="txtRemarkCode" runat="server" Label ="标志编号" Required="true" ShowRedStar="true" NoDecimal="true" NoNegative="true" LabelAlign="Right" LabelWidth="120px"></f:NumberBox>
</Items>
</f:FormRow>

View File

@ -77,7 +77,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
}
//this.txtImplementationFrontState.Text = designChangeOrder.ImplementationFrontState;
this.drpImplementationFrontState.SelectedValue= designChangeOrder.ImplementationFrontState;
this.txtRemarkCode.Text = designChangeOrder.RemarkCode.HasValue ? designChangeOrder.RemarkCode.ToString() : "";
var currApprove = DesignChangeOrderApproveService.GetCurrentApprove(designChangeOrder.DesignChangeOrderId);
if (currApprove != null)
@ -139,6 +139,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
drpUnitIds.Readonly = true;
drpUnitWorks.Readonly = true;
this.drpAudit.Readonly = true;
this.txtRemarkCode.Readonly = true;
// this.btnAttach.Enabled = false;
}
@ -180,85 +181,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
return;
}
Model.Comprehensive_DesignChangeOrder designChangeOrder = new Model.Comprehensive_DesignChangeOrder();
designChangeOrder.ProjectId = this.CurrUser.LoginProjectId;
if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null)
var q = Funs.DB.Comprehensive_DesignChangeOrder.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.DesignChangeOrderId != this.DesignChangeOrderId || (this.DesignChangeOrderId == null && x.DesignChangeOrderId != null)));
if (q != null)
{
designChangeOrder.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
}
designChangeOrder.ChangeOrderCode = this.txtChangeOrderCode.Text.Trim();
designChangeOrder.ChangeReason = this.txtChangeReason.Text.Trim();
designChangeOrder.Contents = this.txtContents.Text.Trim();
designChangeOrder.IssuedDate = Funs.GetNewDateTime(this.txtIssuedDate.Text);
designChangeOrder.ApprovalDate = Funs.GetNewDateTime(this.txtApprovalDate.Text);
designChangeOrder.CompleteDate = Funs.GetNewDateTime(this.txtCompleteDate.Text);
designChangeOrder.ImplementationFrontState = this.drpImplementationFrontState.SelectedValue;
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
{
designChangeOrder.AuditMan = drpAudit.SelectedValue;
} //审核人
string unitWorks = string.Empty;
var unitWorksList = this.drpUnitWorks.SelectedValueArray;
foreach (var item in unitWorksList)
{
unitWorks += item + ",";
}
if (!string.IsNullOrEmpty(unitWorks))
{
unitWorks = unitWorks.Substring(0, unitWorks.LastIndexOf(','));
}
designChangeOrder.UnitWorkId = unitWorks;
string unitIds = string.Empty;
var unitLists = this.drpUnitIds.SelectedValueArray;
foreach (var item in unitLists)
{
unitIds += item + ",";
}
if (!string.IsNullOrEmpty(unitIds))
{
unitIds = unitIds.Substring(0, unitIds.LastIndexOf(','));
}
designChangeOrder.UnitId = unitIds;
if (string.IsNullOrEmpty(this.DesignChangeOrderId))
{
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
{
designChangeOrder.DesignChangeOrderId = this.hdAttachUrl.Text;
}
else
{
designChangeOrder.DesignChangeOrderId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignChangeOrder));
this.hdAttachUrl.Text = designChangeOrder.DesignChangeOrderId;
}
designChangeOrder.CompileMan = this.CurrUser.UserId;
designChangeOrder.CompileDate = DateTime.Now;
designChangeOrder.Status = BLL.Const.Comprehensive_Compile;
BLL.DesignChangeOrderService.AddDesignChangeOrder(designChangeOrder);
}
else
{
designChangeOrder.DesignChangeOrderId = this.DesignChangeOrderId;
var model = Funs.DB.Comprehensive_DesignChangeOrder.Where(u => u.DesignChangeOrderId == this.DesignChangeOrderId).FirstOrDefault();
if (model != null)
{
designChangeOrder.Status = model.Status;
}
BLL.DesignChangeOrderService.UpdateDesignChangeOrder(designChangeOrder);
}
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (drpCNProfessionalId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
return;
}
Model.Comprehensive_DesignChangeOrder designChangeOrder = new Model.Comprehensive_DesignChangeOrder();
@ -301,6 +227,95 @@ namespace FineUIPro.Web.CQMS.Comprehensive
unitIds = unitIds.Substring(0, unitIds.LastIndexOf(','));
}
designChangeOrder.UnitId = unitIds;
designChangeOrder.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
if (string.IsNullOrEmpty(this.DesignChangeOrderId))
{
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
{
designChangeOrder.DesignChangeOrderId = this.hdAttachUrl.Text;
}
else
{
designChangeOrder.DesignChangeOrderId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignChangeOrder));
this.hdAttachUrl.Text = designChangeOrder.DesignChangeOrderId;
}
designChangeOrder.CompileMan = this.CurrUser.UserId;
designChangeOrder.CompileDate = DateTime.Now;
designChangeOrder.Status = BLL.Const.Comprehensive_Compile;
BLL.DesignChangeOrderService.AddDesignChangeOrder(designChangeOrder);
}
else
{
designChangeOrder.DesignChangeOrderId = this.DesignChangeOrderId;
var model = Funs.DB.Comprehensive_DesignChangeOrder.Where(u => u.DesignChangeOrderId == this.DesignChangeOrderId).FirstOrDefault();
if (model != null)
{
designChangeOrder.Status = model.Status;
}
BLL.DesignChangeOrderService.UpdateDesignChangeOrder(designChangeOrder);
}
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (drpCNProfessionalId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
return;
}
var q = Funs.DB.Comprehensive_DesignChangeOrder.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.DesignChangeOrderId != this.DesignChangeOrderId || (this.DesignChangeOrderId == null && x.DesignChangeOrderId != null)));
if (q != null)
{
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
return;
}
Model.Comprehensive_DesignChangeOrder designChangeOrder = new Model.Comprehensive_DesignChangeOrder();
designChangeOrder.ProjectId = this.CurrUser.LoginProjectId;
if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null)
{
designChangeOrder.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
}
designChangeOrder.ChangeOrderCode = this.txtChangeOrderCode.Text.Trim();
designChangeOrder.ChangeReason = this.txtChangeReason.Text.Trim();
designChangeOrder.Contents = this.txtContents.Text.Trim();
designChangeOrder.IssuedDate = Funs.GetNewDateTime(this.txtIssuedDate.Text);
designChangeOrder.ApprovalDate = Funs.GetNewDateTime(this.txtApprovalDate.Text);
designChangeOrder.CompleteDate = Funs.GetNewDateTime(this.txtCompleteDate.Text);
designChangeOrder.ImplementationFrontState = this.drpImplementationFrontState.SelectedValue;
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
{
designChangeOrder.AuditMan = drpAudit.SelectedValue;
} //审核人
string unitWorks = string.Empty;
var unitWorksList = this.drpUnitWorks.SelectedValueArray;
foreach (var item in unitWorksList)
{
unitWorks += item + ",";
}
if (!string.IsNullOrEmpty(unitWorks))
{
unitWorks = unitWorks.Substring(0, unitWorks.LastIndexOf(','));
}
designChangeOrder.UnitWorkId = unitWorks;
string unitIds = string.Empty;
var unitLists = this.drpUnitIds.SelectedValueArray;
foreach (var item in unitLists)
{
unitIds += item + ",";
}
if (!string.IsNullOrEmpty(unitIds))
{
unitIds = unitIds.Substring(0, unitIds.LastIndexOf(','));
}
designChangeOrder.UnitId = unitIds;
designChangeOrder.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
if (string.IsNullOrEmpty(this.DesignChangeOrderId))
{
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
@ -442,15 +457,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignChangeOrder));
}
Model.Comprehensive_DesignChangeOrder designChangeOrder = BLL.DesignChangeOrderService.GetDesignChangeOrderById(this.DesignChangeOrderId);
if (designChangeOrder.Status == BLL.Const.Comprehensive_Complete)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/DesignChangeOrder&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DesignChangeOrderMenuId)));
}
else
{
//Model.Comprehensive_DesignChangeOrder designChangeOrder = BLL.DesignChangeOrderService.GetDesignChangeOrderById(this.DesignChangeOrderId);
//if (designChangeOrder.Status == BLL.Const.Comprehensive_Complete)
//{
//PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/DesignChangeOrder&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DesignChangeOrderMenuId)));
//}
//else
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/DesignChangeOrder&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DesignChangeOrderMenuId)));
}
//}
}
#endregion

View File

@ -7,12 +7,10 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.CQMS.Comprehensive
{
namespace FineUIPro.Web.CQMS.Comprehensive {
public partial class DesignChangeOrderEdit
{
public partial class DesignChangeOrderEdit {
/// <summary>
/// form1 控件。
@ -158,6 +156,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// </remarks>
protected global::FineUIPro.Button btnAttach;
/// <summary>
/// txtRemarkCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtRemarkCode;
/// <summary>
/// drpAudit 控件。
/// </summary>

View File

@ -439,15 +439,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignDetails));
}
Model.Comprehensive_DesignDetails designDetails = BLL.DesignDetailsService.GetDesignDetailsById(this.DesignDetailsId);
if (designDetails.Status == BLL.Const.Comprehensive_Complete)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/designDetails&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DesignDetailsMenuId)));
}
else
{
//if (designDetails.Status == BLL.Const.Comprehensive_Complete)
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/designDetails&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DesignDetailsMenuId)));
//}
//else
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/designDetails&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DesignDetailsMenuId)));
}
//}
}
#endregion
}

View File

@ -436,15 +436,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignDrawings));
}
Model.Comprehensive_DesignDrawings designDrawings = BLL.DesignDrawingsService.GetDesignDrawingsById(this.DesignDrawingsId);
if (designDrawings.Status == BLL.Const.Comprehensive_Complete)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/designDrawings&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DesignDrawingsMenuId)));
}
else
{
//Model.Comprehensive_DesignDrawings designDrawings = BLL.DesignDrawingsService.GetDesignDrawingsById(this.DesignDrawingsId);
//if (designDrawings.Status == BLL.Const.Comprehensive_Complete)
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/designDrawings&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DesignDrawingsMenuId)));
//}
//else
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/designDrawings&menuId={1}", this.hdAttachUrl.Text, BLL.Const.DesignDrawingsMenuId)));
}
//}
}
#endregion

View File

@ -506,15 +506,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.InspectionEquipmentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_InspectionEquipment));
}
var oldInspectionEquipment = Funs.DB.Comprehensive_InspectionEquipment.Where(u => u.InspectionEquipmentId == this.InspectionEquipmentId).FirstOrDefault();
if (oldInspectionEquipment.Status == BLL.Const.Comprehensive_Complete)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/InspectionEquipment&menuId={1}", this.InspectionEquipmentId, BLL.Const.InspectionEquipmentMenuId)));
}
else
{
//var oldInspectionEquipment = Funs.DB.Comprehensive_InspectionEquipment.Where(u => u.InspectionEquipmentId == this.InspectionEquipmentId).FirstOrDefault();
//if (oldInspectionEquipment.Status == BLL.Const.Comprehensive_Complete)
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/InspectionEquipment&menuId={1}", this.InspectionEquipmentId, BLL.Const.InspectionEquipmentMenuId)));
//}
//else
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/InspectionEquipment&menuId={1}", this.InspectionEquipmentId, BLL.Const.InspectionEquipmentMenuId)));
}
//}
}
#endregion

View File

@ -447,15 +447,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_InspectionMachine));
}
Model.Comprehensive_InspectionMachine inspectionMachine = BLL.InspectionMachineService.GetInspectionMachineById(this.InspectionMachineId);
if (inspectionMachine.Status == BLL.Const.Comprehensive_Complete)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/inspectionMachone&menuId={1}", this.hdAttachUrl.Text, BLL.Const.InspectionMachineMenuId)));
}
else
{
//Model.Comprehensive_InspectionMachine inspectionMachine = BLL.InspectionMachineService.GetInspectionMachineById(this.InspectionMachineId);
//if (inspectionMachine.Status == BLL.Const.Comprehensive_Complete)
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/inspectionMachone&menuId={1}", this.hdAttachUrl.Text, BLL.Const.InspectionMachineMenuId)));
//}
//else
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/inspectionMachone&menuId={1}", this.hdAttachUrl.Text, BLL.Const.InspectionMachineMenuId)));
}
//}
}
#endregion

View File

@ -684,15 +684,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_InspectionPerson));
}
Model.Comprehensive_InspectionPerson inspectionPerson = BLL.InspectionPersonService.GetInspectionPersonById(this.InspectionPersonId);
if (inspectionPerson.Status == BLL.Const.Comprehensive_Complete)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/inspectionPerson&menuId={1}", this.hdAttachUrl.Text, BLL.Const.InspectionPersonMenuId)));
}
else
{
//Model.Comprehensive_InspectionPerson inspectionPerson = BLL.InspectionPersonService.GetInspectionPersonById(this.InspectionPersonId);
//if (inspectionPerson.Status == BLL.Const.Comprehensive_Complete)
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/inspectionPerson&menuId={1}", this.hdAttachUrl.Text, BLL.Const.InspectionPersonMenuId)));
//}
//else
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/inspectionPerson&menuId={1}", this.hdAttachUrl.Text, BLL.Const.InspectionPersonMenuId)));
}
//}
}
#endregion

View File

@ -529,14 +529,14 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_NCRManagement));
}
Model.Comprehensive_NCRManagement nCRManagement = BLL.NCRManagementService.GetNCRManagementById(this.NCRManagementId);
if (nCRManagement.Status == BLL.Const.Comprehensive_Complete)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/nCRManagement&menuId={1}", this.hdAttachUrl.Text, BLL.Const.NCRManagementMenuId)));
}
else
{
//if (nCRManagement.Status == BLL.Const.Comprehensive_Complete)
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/nCRManagement&menuId={1}", this.hdAttachUrl.Text, BLL.Const.NCRManagementMenuId)));
//}
//else
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/nCRManagement&menuId={1}", this.hdAttachUrl.Text, BLL.Const.NCRManagementMenuId)));
}
//}
}
#endregion

View File

@ -421,14 +421,14 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_PressurePipe));
}
Model.Comprehensive_PressurePipe pressurePipe = BLL.PressurePipeService.GetPressurePipeById(this.PressurePipeId);
if (pressurePipe == null || ((pressurePipe.CompileMan == CurrUser.UserId && pressurePipe.Status == BLL.Const.Comprehensive_Compile) || (pressurePipe.CompileMan == CurrUser.UserId && pressurePipe.Status == BLL.Const.Comprehensive_ReCompile)))
{
//if (pressurePipe == null || ((pressurePipe.CompileMan == CurrUser.UserId && pressurePipe.Status == BLL.Const.Comprehensive_Compile) || (pressurePipe.CompileMan == CurrUser.UserId && pressurePipe.Status == BLL.Const.Comprehensive_ReCompile)))
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/pressurePipe&menuId={1}", this.hdAttachUrl.Text, BLL.Const.PressurePipeMenuId)));
}
else
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/pressurePipe&menuId={1}", this.hdAttachUrl.Text, BLL.Const.PressurePipeMenuId)));
}
//}
//else
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/pressurePipe&menuId={1}", this.hdAttachUrl.Text, BLL.Const.PressurePipeMenuId)));
//}
}
#endregion

View File

@ -402,15 +402,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_QualityAccident));
}
Model.Comprehensive_QualityAccident pressurePipe = BLL.QualityAccidentService.GetQualityAccidentById(this.QualityAccidentId);
if (pressurePipe.Status == BLL.Const.Comprehensive_Complete)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/pressurePipe&menuId={1}", this.hdAttachUrl.Text, BLL.Const.QualityAccidentMenuId)));
}
else
{
//Model.Comprehensive_QualityAccident pressurePipe = BLL.QualityAccidentService.GetQualityAccidentById(this.QualityAccidentId);
//if (pressurePipe.Status == BLL.Const.Comprehensive_Complete)
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/pressurePipe&menuId={1}", this.hdAttachUrl.Text, BLL.Const.QualityAccidentMenuId)));
//}
//else
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/pressurePipe&menuId={1}", this.hdAttachUrl.Text, BLL.Const.QualityAccidentMenuId)));
}
//}
}
#endregion

View File

@ -187,14 +187,14 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignDrawings));
}
Model.Comprehensive_DesignDrawings designDrawings = BLL.DesignDrawingsService.GetDesignDrawingsById(this.Id);
if (designDrawings.Status == BLL.Const.Comprehensive_Complete)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/designDrawings&menuId={1}", this.hdAttachUrl.Text, BLL.Const.ReviewDrawingsMenuId)));
}
else
{
//if (designDrawings.Status == BLL.Const.Comprehensive_Complete)
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/designDrawings&menuId={1}", this.hdAttachUrl.Text, BLL.Const.ReviewDrawingsMenuId)));
//}
//else
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/designDrawings&menuId={1}", this.hdAttachUrl.Text, BLL.Const.ReviewDrawingsMenuId)));
}
//}
}
#endregion

View File

@ -9,7 +9,7 @@
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1"/>
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
@ -40,6 +40,9 @@
</f:Button>
<f:Button ID="btnImport" ToolTip="导入" Icon="PackageIn" runat="server" OnClick="btnImport_Click" Hidden="true">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
@ -85,8 +88,8 @@
</ItemTemplate>
</f:TemplateField>
<f:WindowField TextAlign="Center" Width="80px" WindowID="WindowAtt"
Text="审批列表" ToolTip="审批列表" DataIFrameUrlFields="VisaId" DataIFrameUrlFormatString="./SiteVisaManagementApprove.aspx?Id={0}"/>
<f:TemplateField ColumnID="AttachFile" Width="150px" HeaderText="附件" HeaderTextAlign="Center" TextAlign="Left" >
Text="审批列表" ToolTip="审批列表" DataIFrameUrlFields="VisaId" DataIFrameUrlFormatString="./SiteVisaManagementApprove.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("VisaId")) %>' ToolTip="附件查看"></asp:LinkButton>

View File

@ -3,6 +3,7 @@ using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
namespace FineUIPro.Web.Comprehensive
{
@ -273,5 +274,170 @@ namespace FineUIPro.Web.Comprehensive
return "编制";
}
#region
/// 导出按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnOut_Click(object sender, EventArgs e)
{
string rootPath = Server.MapPath("~/");
string initTemplatePath = Const.SiteVisaManagementDataInUrl;
string uploadfilepath = string.Empty;
string newUrl = string.Empty;
uploadfilepath = rootPath + initTemplatePath;
var lists = (from x in Funs.DB.Comprehensive_SiteVisaManagement
where x.ProjectId == this.CurrUser.LoginProjectId
select x);
if (sdrpUnitId.SelectedValue != BLL.Const._Null)
{
lists = lists.Where(x => x.UnitId == sdrpUnitId.SelectedValue);
}
if (this.sdrpCNProfessionalId.SelectedValue != BLL.Const._Null)
{
lists = lists.Where(x => x.CNProfessionalId == sdrpCNProfessionalId.SelectedValue);
}
if (!string.IsNullOrEmpty(this.txtStarTime.Text.Trim()))
{
lists = lists.Where(x => x.VisaDate >= Funs.GetNewDateTime(this.txtStarTime.Text.Trim()));
}
if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
{
lists = lists.Where(x => x.VisaDate <= Funs.GetNewDateTime(this.txtEndTime.Text.Trim()));
}
lists = lists.OrderBy(x => x.RemarkCode);
if (lists != null)
{
string projectName = BLL.ProjectService.GetProjectNameByProjectId(this.CurrUser.LoginProjectId);
newUrl = uploadfilepath.Replace("现场签证管理导入模板", "现场签证管理(" + projectName + DateTime.Now.ToString("yyyyMMdd") + "");
File.Copy(uploadfilepath, newUrl);
// 第一步:读取文件流
NPOI.SS.UserModel.IWorkbook workbook;
using (FileStream stream = new FileStream(newUrl, FileMode.Open, FileAccess.Read))
{
//workbook = new NPOI.XSSF.UserModel.XSSFWorkbook(stream);
workbook = new NPOI.HSSF.UserModel.HSSFWorkbook(stream);
}
// 创建单元格样式
NPOI.SS.UserModel.ICellStyle cellStyle = workbook.CreateCellStyle();
cellStyle.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Center;
cellStyle.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center;
var font = workbook.CreateFont();
font.FontHeightInPoints = 11;
cellStyle.SetFont(font);
NPOI.SS.UserModel.ICellStyle cellStyle0 = workbook.CreateCellStyle();
cellStyle0.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle0.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle0.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle0.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
cellStyle0.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Center;
cellStyle0.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center;
var font0 = workbook.CreateFont();
font0.FontHeightInPoints = 12;
font0.IsBold = true;
cellStyle0.SetFont(font0);
// 第二步:创建新数据行
NPOI.SS.UserModel.ISheet sheet = workbook.GetSheetAt(0);
NPOI.SS.UserModel.IRow row = sheet.GetRow(0);
NPOI.SS.UserModel.ICell cell;
int i = 2;
foreach (var item in lists)
{
// 第二步:创建新数据行
row = sheet.CreateRow(i);
// 添加数据
cell = row.CreateCell(0);
cell.CellStyle = cellStyle;
string unitName = string.Empty;
if (!string.IsNullOrEmpty(item.UnitId))
{
unitName = BLL.UnitService.GetUnitNameByUnitId(item.UnitId);
}
cell.SetCellValue(unitName);//签证单位
cell = row.CreateCell(1);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.VisaCode);//施工签证单编号
cell = row.CreateCell(2);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.VisaContent);//施工签证单内容
cell = row.CreateCell(3);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.ProcessingState);//费用审核状态
cell = row.CreateCell(4);
cell.CellStyle = cellStyle;
string unitWorkName = string.Empty;
var unitWork = BLL.UnitWorkService.getUnitWorkByUnitWorkId(item.UnitWorkId);
if (unitWork != null)
{
unitWorkName = unitWork.UnitWorkName;
}
cell.SetCellValue(unitWorkName);//单位工程
cell = row.CreateCell(5);
cell.CellStyle = cellStyle;
string proName = string.Empty;
var cnp = BLL.CNProfessionalService.GetCNProfessional(item.CNProfessionalId);
if (cnp != null)
{
proName = cnp.ProfessionalName;
}
cell.SetCellValue(proName);//专业
cell = row.CreateCell(6);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.VisaDate.HasValue ? string.Format("{0:yyyy-MM-dd}", item.VisaDate) : "");//签证时间
cell = row.CreateCell(7);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.SignMan);//签证人
cell = row.CreateCell(8);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.AuditMan);//审批人
cell = row.CreateCell(9);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.Remark);//备注
cell = row.CreateCell(10);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.RemarkCode.HasValue ? item.RemarkCode.ToString() : "");//标志编号
i++;
}
// 第三步:写入文件流
using (FileStream stream = new FileStream(newUrl, FileMode.Create, FileAccess.Write))
{
workbook.Write(stream);
workbook.Close();
}
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);
}
else
{
Alert.ShowInTop("当前无记录,无法导出!", MessageBoxIcon.Warning);
}
}
#endregion
}
}

View File

@ -7,12 +7,10 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.Comprehensive
{
namespace FineUIPro.Web.Comprehensive {
public partial class SiteVisaManagement
{
public partial class SiteVisaManagement {
/// <summary>
/// form1 控件。
@ -131,6 +129,15 @@ namespace FineUIPro.Web.Comprehensive
/// </remarks>
protected global::FineUIPro.Button btnImport;
/// <summary>
/// btnOut 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// lblPageIndex 控件。
/// </summary>

View File

@ -169,7 +169,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var ins = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null orderby x.UnitWorkCode select x;
var cns = from x in Funs.DB.Base_CNProfessional select x;
for (int i = 0; i < ir; i++)
for (int i = 1; i < ir; i++)
{
string row0 = pds.Rows[i][0].ToString().Trim();
if (!string.IsNullOrEmpty(row0))
@ -244,6 +244,17 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
result += (i + 2).ToString() + "," + "标志编号" + "," + "此项为必填项!" + "|";
}
else
{
try
{
int t = Convert.ToInt32(row10);
}
catch (Exception)
{
result += (i + 2).ToString() + "," + "标志编号" + "," + "[" + row10 + "]错误!" + "|";
}
}
}
if (!string.IsNullOrEmpty(result))
{
@ -387,9 +398,9 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var oldViewInfos = from x in Funs.DB.Comprehensive_SiteVisaManagement
where x.ProjectId == this.CurrUser.LoginProjectId
select x;
for (int i = 0; i < ir; i++)
for (int i = 1; i < ir; i++)
{
var oldViewInfo = oldViewInfos.Where(x => x.RemarkCode == pds.Rows[i][10].ToString().Trim()).FirstOrDefault();
var oldViewInfo = oldViewInfos.Where(x => x.RemarkCode == Funs.GetNewInt(pds.Rows[i][10].ToString().Trim())).FirstOrDefault();
if (oldViewInfo == null)
{
Model.Comprehensive_SiteVisaManagement Ins = new Model.Comprehensive_SiteVisaManagement();
@ -416,7 +427,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
Ins.SignMan = pds.Rows[i][7].ToString().Trim();
Ins.AuditMan = pds.Rows[i][8].ToString().Trim();
Ins.Remark = pds.Rows[i][9].ToString().Trim();
Ins.RemarkCode = pds.Rows[i][10].ToString().Trim();
Ins.RemarkCode = Funs.GetNewInt(pds.Rows[i][10].ToString().Trim());
Ins.CompileMan = this.CurrUser.UserId;
Ins.Status = BLL.Const.Comprehensive_Compile;
Ins.VisaId = SQLHelper.GetNewID();

View File

@ -64,6 +64,7 @@
</f:Button>
</Items>
</f:Panel>
<f:NumberBox ID="txtRemarkCode" runat="server" Label="标志编号" LabelAlign="Right" LabelWidth="120px" Required="true" ShowRedStar="true" NoDecimal="true" NoNegative="true"></f:NumberBox>
</Items>
</f:FormRow>

View File

@ -75,6 +75,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.txtSignMan.Text = siteVisaManagement.SignMan;
this.txtAuditMan.Text = siteVisaManagement.AuditMan;
this.txtRemark.Text = siteVisaManagement.Remark;
this.txtRemarkCode.Text = siteVisaManagement.RemarkCode.HasValue ? siteVisaManagement.RemarkCode.ToString() : "";
var currApprove = SiteVisaManagementApproveService.GetCurrentApprove(siteVisaManagement.VisaId);
@ -133,6 +134,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
this.drpUnitWorkId.Readonly = true;
this.drpProcessingState.Readonly = true;
this.drpAudit.Readonly = true;
this.txtRemarkCode.Readonly = true;
//this.btnAttach.Enabled = false;
}
@ -172,6 +174,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
return;
}
var q = Funs.DB.Comprehensive_SiteVisaManagement.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.VisaId != this.VisaId || (this.VisaId == null && x.VisaId != null)));
if (q != null)
{
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
return;
}
Model.Comprehensive_SiteVisaManagement siteVisaManagement = new Model.Comprehensive_SiteVisaManagement();
siteVisaManagement.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
@ -200,6 +208,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
siteVisaManagement.SignMan = this.txtSignMan.Text.Trim();
siteVisaManagement.AuditMan = this.txtAuditMan.Text.Trim();
siteVisaManagement.Remark = this.txtRemark.Text.Trim();
siteVisaManagement.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
if (string.IsNullOrEmpty(this.VisaId))
{
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
@ -238,6 +247,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
return;
}
var q = Funs.DB.Comprehensive_SiteVisaManagement.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.VisaId != this.VisaId || (this.VisaId == null && x.VisaId != null)));
if (q != null)
{
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
return;
}
Model.Comprehensive_SiteVisaManagement siteVisaManagement = new Model.Comprehensive_SiteVisaManagement();
siteVisaManagement.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
@ -266,6 +281,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
siteVisaManagement.SignMan = this.txtSignMan.Text.Trim();
siteVisaManagement.AuditMan = this.txtAuditMan.Text.Trim();
siteVisaManagement.Remark = this.txtRemark.Text.Trim();
siteVisaManagement.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
if (string.IsNullOrEmpty(this.VisaId))
{
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
@ -405,15 +421,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_SiteVisaManagement));
}
Model.Comprehensive_SiteVisaManagement siteVisaManagement = BLL.SiteVisaManagementService.GetSiteVisaManagementById(this.VisaId);
if (siteVisaManagement.Status == BLL.Const.Comprehensive_Complete)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/siteVisaManagement&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SiteVisaManagementMenuId)));
}
else
{
//Model.Comprehensive_SiteVisaManagement siteVisaManagement = BLL.SiteVisaManagementService.GetSiteVisaManagementById(this.VisaId);
//if (siteVisaManagement.Status == BLL.Const.Comprehensive_Complete)
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/siteVisaManagement&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SiteVisaManagementMenuId)));
//}
//else
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/siteVisaManagement&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SiteVisaManagementMenuId)));
}
//}
}
#endregion

View File

@ -7,12 +7,10 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.CQMS.Comprehensive
{
namespace FineUIPro.Web.CQMS.Comprehensive {
public partial class SiteVisaManagementEdit
{
public partial class SiteVisaManagementEdit {
/// <summary>
/// form1 控件。
@ -158,6 +156,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
/// </remarks>
protected global::FineUIPro.Button btnAttach;
/// <summary>
/// txtRemarkCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtRemarkCode;
/// <summary>
/// drpAudit 控件。
/// </summary>

View File

@ -415,15 +415,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_SpecialEquipment));
}
Model.Comprehensive_SpecialEquipment specialEquipment = BLL.SpecialEquipmentServices.GetEquipmentById(this.SpecialEquipmentId);
if (specialEquipment == null || ((specialEquipment.CompileMan == CurrUser.UserId && specialEquipment.Status == BLL.Const.Comprehensive_Compile) || (specialEquipment.CompileMan == CurrUser.UserId && specialEquipment.Status == BLL.Const.Comprehensive_ReCompile)))
{
//Model.Comprehensive_SpecialEquipment specialEquipment = BLL.SpecialEquipmentServices.GetEquipmentById(this.SpecialEquipmentId);
//if (specialEquipment == null || ((specialEquipment.CompileMan == CurrUser.UserId && specialEquipment.Status == BLL.Const.Comprehensive_Compile) || (specialEquipment.CompileMan == CurrUser.UserId && specialEquipment.Status == BLL.Const.Comprehensive_ReCompile)))
//{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/specialEquipment&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SpecialEquipmentMenuId)));
}
else
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/specialEquipment&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SpecialEquipmentMenuId)));
}
//}
//else
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/specialEquipment&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SpecialEquipmentMenuId)));
//}
}
#endregion

View File

@ -0,0 +1,87 @@
错误信息开始=====>
错误类型:HttpCompileException
错误信息:e:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\CQMS\Comprehensive\DesignChangeOrder.aspx(42): error CS1061: “ASP.cqms_comprehensive_designchangeorder_aspx”不包含“btnOut_Click”的定义并且找不到可接受类型为“ASP.cqms_comprehensive_designchangeorder_aspx”的第一个参数的扩展方法“btnOut_Click”(是否缺少 using 指令或程序集引用?)
错误堆栈:
在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
出错时间:04/29/2024 22:26:31
出错文件:http://localhost:8579/CQMS/Comprehensive/DesignChangeOrder.aspx
IP地址:::1
出错时间:04/29/2024 22:26:31
错误信息开始=====>
错误类型:InvalidOperationException
错误信息:序列不包含任何元素
错误堆栈:
在 FineUIPro.Web.CQMS.Comprehensive.DesignChangeOrderDataIn.ImportXlsToData2(String fileName) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\CQMS\Comprehensive\DesignChangeOrderDataIn.aspx.cs:行号 398
在 FineUIPro.Web.CQMS.Comprehensive.DesignChangeOrderDataIn.btnImport_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\CQMS\Comprehensive\DesignChangeOrderDataIn.aspx.cs:行号 341
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:04/29/2024 22:58:57
出错文件:http://localhost:8579/CQMS/Comprehensive/DesignChangeOrderDataIn.aspx
IP地址:::1
操作人员:JT
出错时间:04/29/2024 22:58:57
错误信息开始=====>
错误类型:IOException
错误信息:文件“E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\File\Excel\DataIn\现场签证管理导入模板.xls”正由另一进程使用因此该进程无法访问此文件。
错误堆栈:
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
在 System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length)
在 FineUIPro.Web.CQMS.Comprehensive.SiteVisaManagementDataIn.PageManager1_CustomEvent(Object sender, CustomEventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\CQMS\Comprehensive\SiteVisaManagementDataIn.aspx.cs:行号 482
在 FineUIPro.PageManager.OnCustomEvent(CustomEventArgs e)
在 (PageManager , CustomEventArgs )
在 FineUIPro.PageManager.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:04/29/2024 23:40:23
出错文件:http://localhost:8579/CQMS/Comprehensive/SiteVisaManagementDataIn.aspx
IP地址:::1
操作人员:JT
出错时间:04/29/2024 23:40:23
错误信息开始=====>
错误类型:IOException
错误信息:文件“E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\File\Excel\DataIn\现场签证管理导入模板.xls”正由另一进程使用因此该进程无法访问此文件。
错误堆栈:
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
在 System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length)
在 FineUIPro.Web.CQMS.Comprehensive.SiteVisaManagementDataIn.PageManager1_CustomEvent(Object sender, CustomEventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\CQMS\Comprehensive\SiteVisaManagementDataIn.aspx.cs:行号 482
在 FineUIPro.PageManager.OnCustomEvent(CustomEventArgs e)
在 (PageManager , CustomEventArgs )
在 FineUIPro.PageManager.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:04/29/2024 23:41:10
出错文件:http://localhost:8579/CQMS/Comprehensive/SiteVisaManagementDataIn.aspx
IP地址:::1
操作人员:JT
出错时间:04/29/2024 23:41:10

View File

@ -12,7 +12,7 @@
<appSettings>
<!--连接字符串-->
<!--<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>-->
<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>
<add key="ConnectionString" value="Server=.\SQL2012;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>
<!--系统名称-->
<add key="SystemName" value="智慧施工管理信息系统V1.0"/>
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
@ -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="/"/>

File diff suppressed because it is too large Load Diff