This commit is contained in:
zonse 2025-05-09 16:33:55 +08:00
commit ace065a512
20 changed files with 325 additions and 206 deletions

View File

@ -27,7 +27,7 @@ REM --------------
@echo.
@call "%VS150%"
SqlMetal /views /server:47.104.102.122,14333:SGGLDB_HBAZ /code:%Model_ROOT%\Model.cs /namespace:Model
SqlMetal /views /server:. /database:SGGLDB_HBAZ /code:%Model_ROOT%\Model.cs /namespace:Model
@ECHO 完成
pause

View File

@ -0,0 +1,57 @@
ALTER VIEW [dbo].[View_QuantityManagement_WorkTeamStatistics]
AS
/********工程量整体及分类汇总表********/
select distinct C.ProjectId+','+(case when a.DrawingNo is not null then a.WorkSection else b.WorkSection end)+','+ProjectContent as Id, C.ProjectId,case when a.DrawingNo is not null then a.WorkSection else b.WorkSection end as WorkSection,ba.State,
ProjectContent,Unit,
case when a.DrawingNo is not null then ca.ProfessionalName else cb.ProfessionalName end as Major
from QuantityManagement_DayInput C
left join QuantityManagement_Base ba on ba.BaseId=C.BaseId
left join QuantityManagement_Drawing a on a.DrawingId=ba.DrawingId
left join Base_CNProfessional ca on ca.CNProfessionalId=a.Major
left join QuantityManagement_Change b on b.ChangeId=ba.DrawingId
left join Base_CNProfessional cb on cb.CNProfessionalId=b.Major
union
select C.ProjectId+','+(case when a.DrawingNo is not null then a.WorkSection else b.WorkSection end)+','+ProjectContent as Id,C.ProjectId,case when a.DrawingNo is not null then a.WorkSection else b.WorkSection end as WorkSection,C.State,
ProjectContent,Unit,
case when a.DrawingNo is not null then ca.ProfessionalName else cb.ProfessionalName end as Major
from QuantityManagement_Base C
left join QuantityManagement_Drawing a on a.DrawingId=C.DrawingId
left join Base_CNProfessional ca on ca.CNProfessionalId=a.Major
left join QuantityManagement_Change b on b.ChangeId=C.DrawingId
left join Base_CNProfessional cb on cb.CNProfessionalId=b.Major
GO
ALTER VIEW [dbo].[View_QuantityManagement_ProjectContentStatistics]
AS
/********工程量整体及分类汇总表********/
select distinct C.ProjectId+','+ProjectContent as Id, C.ProjectId,ba.State,
ProjectContent,Unit,case when a.DrawingNo is not null then ca.ProfessionalName else cb.ProfessionalName end as Major
from QuantityManagement_DayInput C
left join QuantityManagement_Base ba on ba.BaseId=C.BaseId
left join QuantityManagement_Drawing a on a.DrawingId=ba.DrawingId
left join Base_CNProfessional ca on ca.CNProfessionalId=a.Major
left join QuantityManagement_Change b on b.ChangeId=ba.DrawingId
left join Base_CNProfessional cb on cb.CNProfessionalId=b.Major
union
select C.ProjectId+','+ProjectContent as Id,C.ProjectId,C.State,
ProjectContent,Unit,case when a.DrawingNo is not null then ca.ProfessionalName else cb.ProfessionalName end as Major
from QuantityManagement_Base C
left join QuantityManagement_Drawing a on a.DrawingId=C.DrawingId
left join Base_CNProfessional ca on ca.CNProfessionalId=a.Major
left join QuantityManagement_Change b on b.ChangeId=C.DrawingId
left join Base_CNProfessional cb on cb.CNProfessionalId=b.Major
GO

View File

@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BLL</RootNamespace>
<AssemblyName>BLL</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>
</SccProjectName>

View File

@ -48,7 +48,7 @@ namespace BLL
{
using (var db = new Model.SGGLDB(Funs.ConnString))
{
object x = db.Check_CheckControl.Select(x => new {
object a = db.Check_CheckControl.Select(x => new {
CheckControlCode = x.CheckControlCode,
ProjectId = x.ProjectId,
ProjectName = db.Base_Project.FirstOrDefault(p => p.ProjectId == x.ProjectId).ProjectName,
@ -77,7 +77,7 @@ namespace BLL
QuestionTypeName = db.Base_QualityQuestionType.FirstOrDefault(e => e.QualityQuestionTypeId == x.QuestionType).QualityQuestionType,
}).FirstOrDefault(e => e.CheckControlCode == CheckControlCode);
return x;
return a;
}
}

View File

@ -13,13 +13,13 @@ namespace Resources {
/// <summary>
/// 一个强类型资源类,用于查找本地化字符串等。
/// 强类型资源类,用于查找本地化字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// 若要添加或除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 Visual Studio 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Web.Application.StronglyTypedResourceProxyBuilder", "17.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Web.Application.StronglyTypedResourceProxyBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Lan {
@ -33,7 +33,7 @@ namespace Resources {
}
/// <summary>
/// 返回此类使用的缓存 ResourceManager 实例。
/// 返回此类使用的缓存 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
@ -47,8 +47,8 @@ namespace Resources {
}
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性,对
/// 使用此强类型资源类的所有资源查找执行重写
/// 覆盖当前线程的 CurrentUICulture 属性
/// 使用此强类型资源类的资源查找。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
@ -61,7 +61,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 大数据中心 的本地化字符串。
/// 查找类似 大数据中心 的本地化字符串。
/// </summary>
internal static string BigDataCenter {
get {
@ -70,7 +70,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 证书预警 的本地化字符串。
/// 查找类似 证书预警 的本地化字符串。
/// </summary>
internal static string CertificateWarning {
get {
@ -79,7 +79,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 中国 的本地化字符串。
/// 查找类似 中国 的本地化字符串。
/// </summary>
internal static string China {
get {
@ -88,7 +88,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 中文 的本地化字符串。
/// 查找类似 中文 的本地化字符串。
/// </summary>
internal static string Chinese {
get {
@ -97,7 +97,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 土建基础交安 的本地化字符串。
/// 查找类似 土建基础交安 的本地化字符串。
/// </summary>
internal static string CivilInfrastructure {
get {
@ -106,7 +106,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 已完成 的本地化字符串。
/// 查找类似 已完成 的本地化字符串。
/// </summary>
internal static string completed {
get {
@ -115,7 +115,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 参建人数 的本地化字符串。
/// 查找类似 参建人数 的本地化字符串。
/// </summary>
internal static string ConPersonCount {
get {
@ -124,7 +124,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 施工单位 的本地化字符串。
/// 查找类似 施工单位 的本地化字符串。
/// </summary>
internal static string ConstructionUnit {
get {
@ -133,7 +133,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 合同到期时间 的本地化字符串。
/// 查找类似 合同到期时间 的本地化字符串。
/// </summary>
internal static string ContractExpirationTime {
get {
@ -142,7 +142,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 当前现场人数 的本地化字符串。
/// 查找类似 当前现场人数 的本地化字符串。
/// </summary>
internal static string CurrentPersonnel {
get {
@ -151,7 +151,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 隐患总数 的本地化字符串。
/// 查找类似 隐患总数 的本地化字符串。
/// </summary>
internal static string DangersCount {
get {
@ -160,7 +160,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 员工管理 的本地化字符串。
/// 查找类似 员工管理 的本地化字符串。
/// </summary>
internal static string EmployeeManage {
get {
@ -169,7 +169,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 英文 的本地化字符串。
/// 查找类似 英文 的本地化字符串。
/// </summary>
internal static string English {
get {
@ -178,7 +178,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 现场动态 的本地化字符串。
/// 查找类似 现场动态 的本地化字符串。
/// </summary>
internal static string FieldDynamics {
get {
@ -187,7 +187,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 首台设备到货 的本地化字符串。
/// 查找类似 首台设备到货 的本地化字符串。
/// </summary>
internal static string FirstEquipmentArrived {
get {
@ -196,7 +196,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 焊接一次合格率 的本地化字符串。
/// 查找类似 焊接一次合格率 的本地化字符串。
/// </summary>
internal static string FistPassRateWelding {
get {
@ -205,7 +205,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 全屏 的本地化字符串。
/// 查找类似 全屏 的本地化字符串。
/// </summary>
internal static string FullScreen {
get {
@ -214,7 +214,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 总承包商施工计划 的本地化字符串。
/// 查找类似 总承包商施工计划 的本地化字符串。
/// </summary>
internal static string GeneralConPlan {
get {
@ -223,7 +223,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 一般风险 的本地化字符串。
/// 查找类似 一般风险 的本地化字符串。
/// </summary>
internal static string GeneralRisk {
get {
@ -232,7 +232,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 较大风险 的本地化字符串。
/// 查找类似 较大风险 的本地化字符串。
/// </summary>
internal static string GreaterRisk {
get {
@ -241,7 +241,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 总部检查 的本地化字符串。
/// 查找类似 总部检查 的本地化字符串。
/// </summary>
internal static string HeadquartersInspection {
get {
@ -250,7 +250,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 首页 的本地化字符串。
/// 查找类似 首页 的本地化字符串。
/// </summary>
internal static string HomePage {
get {
@ -259,7 +259,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 安全管理 的本地化字符串。
/// 查找类似 安全管理 的本地化字符串。
/// </summary>
internal static string HSEManage {
get {
@ -268,7 +268,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 湿度 的本地化字符串。
/// 查找类似 湿度 的本地化字符串。
/// </summary>
internal static string humidness {
get {
@ -277,7 +277,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 综合管理 的本地化字符串。
/// 查找类似 综合管理 的本地化字符串。
/// </summary>
internal static string IntegratedManage {
get {
@ -286,7 +286,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 在施危大工程数 的本地化字符串。
/// 查找类似 在施危大工程数 的本地化字符串。
/// </summary>
internal static string LargeRisk {
get {
@ -295,7 +295,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 级 的本地化字符串。
/// 查找类似 级 的本地化字符串。
/// </summary>
internal static string Level {
get {
@ -304,7 +304,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 现场视频 的本地化字符串。
/// 查找类似 现场视频 的本地化字符串。
/// </summary>
internal static string LiveVideo {
get {
@ -313,7 +313,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 现场相册 的本地化字符串。
/// 查找类似 现场相册 的本地化字符串。
/// </summary>
internal static string Live_photo_album {
get {
@ -322,7 +322,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 低风险 的本地化字符串。
/// 查找类似 低风险 的本地化字符串。
/// </summary>
internal static string LowRisk {
get {
@ -331,7 +331,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 重大风险 的本地化字符串。
/// 查找类似 重大风险 的本地化字符串。
/// </summary>
internal static string MajorRisk {
get {
@ -340,7 +340,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 管理人员总数 的本地化字符串。
/// 查找类似 管理人员总数 的本地化字符串。
/// </summary>
internal static string managersCount {
get {
@ -349,7 +349,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 最大化 的本地化字符串。
/// 查找类似 最大化 的本地化字符串。
/// </summary>
internal static string maximize {
get {
@ -358,7 +358,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 机械竣工 的本地化字符串。
/// 查找类似 机械竣工 的本地化字符串。
/// </summary>
internal static string MechanicalCompletion {
get {
@ -367,7 +367,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 机械预警 的本地化字符串。
/// 查找类似 机械预警 的本地化字符串。
/// </summary>
internal static string MechanicalWarning {
get {
@ -376,7 +376,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 消息 的本地化字符串。
/// 查找类似 消息 的本地化字符串。
/// </summary>
internal static string message {
get {
@ -385,7 +385,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 更多 的本地化字符串。
/// 查找类似 更多 的本地化字符串。
/// </summary>
internal static string more {
get {
@ -394,7 +394,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 您没有此模块操作权限,请联系管理员授权! 的本地化字符串。
/// 查找类似 您没有此模块操作权限,请联系管理员授权! 的本地化字符串。
/// </summary>
internal static string NoAuthorize {
get {
@ -403,7 +403,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 噪音 的本地化字符串。
/// 查找类似 噪音 的本地化字符串。
/// </summary>
internal static string noise {
get {
@ -412,7 +412,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 您没有权限进入项目管理模块! 的本地化字符串。
/// 查找类似 您没有权限进入项目管理模块! 的本地化字符串。
/// </summary>
internal static string NoPermission {
get {
@ -421,7 +421,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 通知管理 的本地化字符串。
/// 查找类似 通知管理 的本地化字符串。
/// </summary>
internal static string NoticeManage {
get {
@ -430,7 +430,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 现场考勤 的本地化字符串。
/// 查找类似 现场考勤 的本地化字符串。
/// </summary>
internal static string OnSiteAttendance {
get {
@ -439,7 +439,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 在新标签页中打开 的本地化字符串。
/// 查找类似 在新标签页中打开 的本地化字符串。
/// </summary>
internal static string OpensNewTab {
get {
@ -448,7 +448,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 合格率 的本地化字符串。
/// 查找类似 合格率 的本地化字符串。
/// </summary>
internal static string PassRate {
get {
@ -457,7 +457,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 桩基施工 的本地化字符串。
/// 查找类似 桩基施工 的本地化字符串。
/// </summary>
internal static string Pilefoundationconstruction {
get {
@ -466,7 +466,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 管道安装开始 的本地化字符串。
/// 查找类似 管道安装开始 的本地化字符串。
/// </summary>
internal static string PipeInstallationStarts {
get {
@ -475,7 +475,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 变电所受电 的本地化字符串。
/// 查找类似 变电所受电 的本地化字符串。
/// </summary>
internal static string PowerReceived {
get {
@ -484,7 +484,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 问题总数 的本地化字符串。
/// 查找类似 问题总数 的本地化字符串。
/// </summary>
internal static string ProblemTotal {
get {
@ -493,7 +493,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 项目地址 的本地化字符串。
/// 查找类似 项目地址 的本地化字符串。
/// </summary>
internal static string ProjectAddress {
get {
@ -502,7 +502,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 项目清单 的本地化字符串。
/// 查找类似 项目清单 的本地化字符串。
/// </summary>
internal static string ProjectList {
get {
@ -511,7 +511,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 项目名称 的本地化字符串。
/// 查找类似 项目名称 的本地化字符串。
/// </summary>
internal static string ProjectName {
get {
@ -520,7 +520,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 项目进度计划 的本地化字符串。
/// 查找类似 项目进度计划 的本地化字符串。
/// </summary>
internal static string ProjectSchedule {
get {
@ -529,7 +529,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 项目统计 的本地化字符串。
/// 查找类似 项目统计 的本地化字符串。
/// </summary>
internal static string ProjectStatistics {
get {
@ -538,7 +538,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 在建项目 的本地化字符串。
/// 查找类似 在建项目 的本地化字符串。
/// </summary>
internal static string ProjectUnderConstruction {
get {
@ -547,7 +547,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 质量管理 的本地化字符串。
/// 查找类似 质量管理 的本地化字符串。
/// </summary>
internal static string QualityManage {
get {
@ -556,7 +556,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 质量统计 的本地化字符串。
/// 查找类似 质量统计 的本地化字符串。
/// </summary>
internal static string QualityStatistics {
get {
@ -565,7 +565,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 质量预警 的本地化字符串。
/// 查找类似 质量预警 的本地化字符串。
/// </summary>
internal static string QualityWarning {
get {
@ -574,7 +574,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 质量问题统计 的本地化字符串。
/// 查找类似 质量问题统计 的本地化字符串。
/// </summary>
internal static string Quality_problem_statistics {
get {
@ -583,7 +583,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 资质预警 的本地化字符串。
/// 查找类似 资质预警 的本地化字符串。
/// </summary>
internal static string Quawarning {
get {
@ -592,7 +592,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 退出 的本地化字符串。
/// 查找类似 退出 的本地化字符串。
/// </summary>
internal static string quit {
get {
@ -601,7 +601,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 实时视频 的本地化字符串。
/// 查找类似 实时视频 的本地化字符串。
/// </summary>
internal static string RealTimeVideo {
get {
@ -610,7 +610,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 整改率 的本地化字符串。
/// 查找类似 整改率 的本地化字符串。
/// </summary>
internal static string RectificationRate {
get {
@ -619,7 +619,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 刷新 的本地化字符串。
/// 查找类似 刷新 的本地化字符串。
/// </summary>
internal static string Refresh {
get {
@ -628,7 +628,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 刷新本页 的本地化字符串。
/// 查找类似 刷新本页 的本地化字符串。
/// </summary>
internal static string RefreshPage {
get {
@ -637,7 +637,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 距竣工剩余 的本地化字符串。
/// 查找类似 距竣工剩余 的本地化字符串。
/// </summary>
internal static string RemainingTimeCompletion {
get {
@ -646,7 +646,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 风险管控 的本地化字符串。
/// 查找类似 风险管控 的本地化字符串。
/// </summary>
internal static string RiskControl {
get {
@ -655,7 +655,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 安全人工时 的本地化字符串。
/// 查找类似 安全人工时 的本地化字符串。
/// </summary>
internal static string SafeLaborHours {
get {
@ -664,7 +664,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 安全问题统计 的本地化字符串。
/// 查找类似 安全问题统计 的本地化字符串。
/// </summary>
internal static string SafeProStat {
get {
@ -673,7 +673,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 累计安全人工时 的本地化字符串。
/// 查找类似 累计安全人工时 的本地化字符串。
/// </summary>
internal static string SafetyLaborHours {
get {
@ -682,7 +682,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 安全统计 的本地化字符串。
/// 查找类似 安全统计 的本地化字符串。
/// </summary>
internal static string SafetyStatistics {
get {
@ -691,7 +691,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 工程管理 的本地化字符串。
/// 查找类似 工程管理 的本地化字符串。
/// </summary>
internal static string ScheduleManage {
get {
@ -700,7 +700,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 选择语言 的本地化字符串。
/// 查找类似 选择语言 的本地化字符串。
/// </summary>
internal static string SelectLanguage {
get {
@ -709,7 +709,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 劳务数据 的本地化字符串。
/// 查找类似 劳务数据 的本地化字符串。
/// </summary>
internal static string ServiceData {
get {
@ -718,7 +718,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 设置 的本地化字符串。
/// 查找类似 设置 的本地化字符串。
/// </summary>
internal static string Settings {
get {
@ -727,7 +727,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 注销 的本地化字符串。
/// 查找类似 注销 的本地化字符串。
/// </summary>
internal static string SignOUT {
get {
@ -736,7 +736,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 开工时间 的本地化字符串。
/// 查找类似 开工时间 的本地化字符串。
/// </summary>
internal static string Start_time {
get {
@ -745,7 +745,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 分包管理 的本地化字符串。
/// 查找类似 分包管理 的本地化字符串。
/// </summary>
internal static string SubManagement {
get {
@ -754,7 +754,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 监理单位 的本地化字符串。
/// 查找类似 监理单位 的本地化字符串。
/// </summary>
internal static string SupervisionUnit {
get {
@ -763,7 +763,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 切换首页 的本地化字符串。
/// 查找类似 切换首页 的本地化字符串。
/// </summary>
internal static string SwitchHomePage {
get {
@ -772,7 +772,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 系统菜单 的本地化字符串。
/// 查找类似 系统菜单 的本地化字符串。
/// </summary>
internal static string SystemMenu {
get {
@ -781,7 +781,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 智慧施工管理信息系统 的本地化字符串。
/// 查找类似 智慧施工管理信息系统 的本地化字符串。
/// </summary>
internal static string SystemName {
get {
@ -790,7 +790,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 温度 的本地化字符串。
/// 查找类似 温度 的本地化字符串。
/// </summary>
internal static string temperature {
get {
@ -799,7 +799,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 竣工时间 的本地化字符串。
/// 查找类似 竣工时间 的本地化字符串。
/// </summary>
internal static string TimeCompletion {
get {
@ -808,7 +808,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 待办事项 的本地化字符串。
/// 查找类似 待办事项 的本地化字符串。
/// </summary>
internal static string TodoList {
get {
@ -817,7 +817,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 合同总工期 的本地化字符串。
/// 查找类似 合同总工期 的本地化字符串。
/// </summary>
internal static string TotalContractDuration {
get {
@ -826,7 +826,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 未完成 的本地化字符串。
/// 查找类似 未完成 的本地化字符串。
/// </summary>
internal static string uncompleted {
get {
@ -835,7 +835,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 用户 的本地化字符串。
/// 查找类似 用户 的本地化字符串。
/// </summary>
internal static string user {
get {
@ -844,7 +844,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 视频监控 的本地化字符串。
/// 查找类似 视频监控 的本地化字符串。
/// </summary>
internal static string VideoSurveillance {
get {
@ -853,7 +853,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 焊接管理 的本地化字符串。
/// 查找类似 焊接管理 的本地化字符串。
/// </summary>
internal static string WeldingManage {
get {
@ -862,7 +862,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 风速 的本地化字符串。
/// 查找类似 风速 的本地化字符串。
/// </summary>
internal static string WindSpeed {
get {
@ -871,7 +871,7 @@ namespace Resources {
}
/// <summary>
/// 查找类似 作业人员总数 的本地化字符串。
/// 查找类似 作业人员总数 的本地化字符串。
/// </summary>
internal static string WorkPersonnel {
get {

View File

@ -22,7 +22,7 @@
<Toolbars>
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProject" runat="server" Label="项目" Width="300px" LabelWidth="60px" EmptyText="请选择项目"
<f:DropDownList ID="drpProject" runat="server" Label="项目" Width="300px" LabelWidth="60px" EmptyText="请选择项目" AutoPostBack="true" OnSelectedIndexChanged="drpProject_SelectedIndexChanged"
EnableEdit="true">
</f:DropDownList>
<f:DropDownList ID="drpWorkSection" runat="server" LabelWidth="120px" Required="true" Label="工段" LabelAlign="Right" EnableEdit="true">

View File

@ -110,6 +110,7 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
{
if (!IsPostBack)
{
ProjectService.InitAllProjectDropDownList(this.drpProject, false);
string projectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["ProjectId"]))
{
@ -146,7 +147,6 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
{
this.drpWorkTeam.SelectedValue = Request.Params["WorkTeam"];
}
ProjectService.InitAllProjectDropDownList(this.drpProject, false);
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.drpProject.SelectedValue = this.CurrUser.LoginProjectId;
@ -372,9 +372,9 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
/// <param name="e"></param>
protected void btnSearch_Click(object sender, EventArgs e)
{
string url = "~/CQMS/QuantityManagement/DayInputStatistics.aspx?Date=" + this.txtMonths.Text.Trim() + "&WorkSection=" + this.drpWorkSection.SelectedValue
string url = "~/CQMS/QuantityManagement/DayInputStatistics.aspx?Date=" + this.txtMonths.Text.Trim() + "&WorkSection=" + this.drpWorkSection.SelectedValue
+ "&DrawingId=" + this.drpDrawingNo.SelectedValue + "&Major=" + this.drpMajor.SelectedValue + "&Part=" + this.drpPart.SelectedValue
+ "&ProjectContent=" + this.drpProjectContent.SelectedValue+ "&WorkTeam=" + this.drpWorkTeam.SelectedValue + "&ProjectId=" + this.drpProject.SelectedValue;
+ "&ProjectContent=" + this.drpProjectContent.SelectedValue + "&WorkTeam=" + this.drpWorkTeam.SelectedValue + "&ProjectId=" + this.drpProject.SelectedValue;
PageContext.Redirect(url, "_self");
}
#endregion
@ -703,5 +703,27 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
this.drpProjectContent.SelectedValue = BLL.Const._Null;
}
}
protected void drpProject_SelectedIndexChanged(object sender, EventArgs e)
{
string projectId = this.drpProject.SelectedValue;
if (!string.IsNullOrEmpty(Request.Params["ProjectId"]))
{
this.drpProject.SelectedValue = Request.Params["ProjectId"];
projectId = Request.Params["ProjectId"];
}
BLL.DrawingService.InitWorkSectionDropDownList(drpWorkSection, projectId, true);
BLL.DrawingService.InitDrawingChangeDropDownList(drpDrawingNo, projectId, true);
BLL.CNProfessionalService.InitCNProfessionalDownList(drpMajor, true);
BLL.BaseService.InitAllPartDropDownList(this.drpPart, projectId, true);
BLL.BaseService.InitAllProjectContentDropDownList(this.drpProjectContent, projectId, true);
BLL.TeamGroupService.InitTeamGroupProjectDropDownList(drpWorkTeam, projectId, true);
drpWorkSection.SelectedValue = BLL.Const._Null;
drpDrawingNo.SelectedValue = BLL.Const._Null;
drpMajor.SelectedValue = BLL.Const._Null;
drpPart.SelectedValue = BLL.Const._Null;
drpProjectContent.SelectedValue = BLL.Const._Null;
drpWorkTeam.SelectedValue = BLL.Const._Null;
}
}
}

View File

@ -15,17 +15,20 @@
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工程量基础表" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true" EnableColumnLines="true" ForceFit="true"
ClicksToEdit="2" DataIDField="Id" AllowSorting="true" SortField="ProjectContent"
ClicksToEdit="2" DataIDField="Id" AllowSorting="true" SortField="Major,ProjectContent"
SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="false" IsDatabasePaging="true" PageSize="10000"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="true">
<Toolbars>
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProject" runat="server" Label="项目" Width="300px" LabelWidth="60px" EmptyText="请选择项目"
<f:DropDownList ID="drpProject" runat="server" Label="项目" Width="300px" LabelWidth="60px" EmptyText="请选择项目" AutoPostBack="true" OnSelectedIndexChanged="drpProject_SelectedIndexChanged"
EnableEdit="true">
</f:DropDownList>
<f:TextBox runat="server" ID="txtWorkTeam" Label="作业队" LabelWidth="80px" LabelAlign="Right"></f:TextBox>
<f:DropDownList ID="drpMajor" runat="server" LabelWidth="140px" Required="true" Label="专业" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
<f:DropDownList ID="drpProjectContent" runat="server" LabelWidth="120px" Required="true" Label="项目内容" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
<f:DatePicker runat="server" DateFormatString="yyyy-MM" DisplayType="Month" Label="选择月份" ID="txtMonths" LabelAlign="right" LabelWidth="110px">
</f:DatePicker>
<f:Button ID="btnSearch" Icon="SystemSearch" EnablePostBack="true" runat="server" OnClick="btnSearch_Click" ToolTip="查询">
@ -44,6 +47,9 @@
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField ColumnID="Major" DataField="Major" FieldType="String" HeaderText="专业" TextAlign="Center"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="ProjectContent" DataField="ProjectContent" FieldType="String" HeaderText="项目内容" TextAlign="Center"
HeaderTextAlign="Center" Width="120px">
</f:RenderField>
@ -53,9 +59,6 @@
<f:RenderField ColumnID="Amount" DataField="Amount" FieldType="Float" HeaderText="总数" TextAlign="Center"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="WorkTeam" DataField="WorkTeam" FieldType="String" HeaderText="作业队" TextAlign="Center"
HeaderTextAlign="Center" Width="150px">
</f:RenderField>
<f:RenderField ColumnID="TotalComplete" DataField="TotalComplete" FieldType="Float" HeaderText="累计完成" TextAlign="Center"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
@ -65,6 +68,9 @@
<f:RenderField ColumnID="MonthComplete" DataField="MonthComplete" FieldType="Float" HeaderText="本月完成" TextAlign="Center"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="CompleteRate" DataField="CompleteRate" FieldType="Float" HeaderText="完成百分比" TextAlign="Center"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="dataload" Handler="onGridDataLoad" />
@ -75,7 +81,7 @@
</form>
<script type="text/javascript">
function onGridDataLoad(event) {
this.mergeColumns(['ProjectContent','Amount','Remain'], {
this.mergeColumns(['Major','Amount','Remain'], {
depends: true
});
}

View File

@ -24,12 +24,16 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
{
this.txtMonths.Text = string.Format("{0:yyyy-MM}", DateTime.Now);
ProjectService.InitAllProjectDropDownList(this.drpProject, false);
string projectId = string.Empty;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.drpProject.SelectedValue = this.CurrUser.LoginProjectId;
this.drpProject.Enabled = false;
this.drpProject.Hidden = true;
projectId = this.drpProject.SelectedValue;
}
BLL.CNProfessionalService.InitCNProfessionalDownList(drpMajor, true);
BLL.BaseService.InitAllProjectContentDropDownList(this.drpProjectContent, projectId, true);
GetButtonPower();
BindGrid();
}
@ -44,10 +48,15 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
where C.ProjectId = @ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
if (!string.IsNullOrEmpty(this.txtWorkTeam.Text.Trim()))
if (this.drpMajor.SelectedValue != BLL.Const._Null)
{
strSql += " AND WorkTeam like @WorkTeam";
listStr.Add(new SqlParameter("@WorkTeam", "%" + this.txtWorkTeam.Text.Trim() + "%"));
strSql += " AND Major = @Major";
listStr.Add(new SqlParameter("@Major", this.drpMajor.SelectedItem.Text));
}
if (this.drpProjectContent.SelectedValue != BLL.Const._Null)
{
strSql += " AND ProjectContent = @ProjectContent";
listStr.Add(new SqlParameter("@ProjectContent", this.drpProjectContent.SelectedItem.Text));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
@ -98,19 +107,22 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
{
string[] strs = this.Grid1.Rows[i].RowID.Split(',');
string projectContent = strs[1];
string workTeam = strs[2];
decimal totalAmount = 0, completedAmount = 0, totalCompletedAmount = 0, monthComplete = 0;
totalAmount = bases.Where(x => x.ProjectContent == projectContent).ToList().Sum(x => x.Amount ?? 0);
foreach (var d in days)
{
monthComplete = dayInputs.Where(x => x.ProjectContent == projectContent && x.WorkTeam == workTeam).ToList().Sum(x => x.DayAmount ?? 0);
monthComplete = dayInputs.Where(x => x.ProjectContent == projectContent).ToList().Sum(x => x.DayAmount ?? 0);
}
completedAmount = totalDayInputs.Where(x => x.ProjectContent == projectContent && x.WorkTeam == workTeam).ToList().Sum(x => x.DayAmount ?? 0);
completedAmount = totalDayInputs.Where(x => x.ProjectContent == projectContent).ToList().Sum(x => x.DayAmount ?? 0);
totalCompletedAmount = totalDayInputs.Where(x => x.ProjectContent == projectContent).ToList().Sum(x => x.DayAmount ?? 0);
this.Grid1.Rows[i].Values[3] = totalAmount.ToString("0.##");
this.Grid1.Rows[i].Values[4] = totalAmount.ToString("0.##");
this.Grid1.Rows[i].Values[5] = completedAmount.ToString("0.##");
this.Grid1.Rows[i].Values[6] = (totalAmount - totalCompletedAmount).ToString("0.##");
this.Grid1.Rows[i].Values[7] = monthComplete.ToString("0.##");
if (totalAmount > 0)
{
this.Grid1.Rows[i].Values[8] = decimal.Round(completedAmount / totalAmount, 4) * 100;
}
}
}
#endregion
@ -317,6 +329,9 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
cell = row.CreateCell(7);
cell.CellStyle = cellStyle;
cell.SetCellValue(Grid1.Rows[i].Values[7].ToString());
cell = row.CreateCell(8);
cell.CellStyle = cellStyle;
cell.SetCellValue(Grid1.Rows[i].Values[8].ToString());
}
// 第三步:写入文件流
using (FileStream stream = new FileStream(newUrl, FileMode.Create, FileAccess.Write))
@ -346,5 +361,19 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
}
}
#endregion
protected void drpProject_SelectedIndexChanged(object sender, EventArgs e)
{
string projectId = this.drpProject.SelectedValue;
if (!string.IsNullOrEmpty(Request.Params["ProjectId"]))
{
this.drpProject.SelectedValue = Request.Params["ProjectId"];
projectId = Request.Params["ProjectId"];
}
BLL.CNProfessionalService.InitCNProfessionalDownList(drpMajor, true);
BLL.BaseService.InitAllProjectContentDropDownList(this.drpProjectContent, projectId, true);
drpMajor.SelectedValue = BLL.Const._Null;
drpProjectContent.SelectedValue = BLL.Const._Null;
}
}
}

View File

@ -67,13 +67,22 @@ namespace FineUIPro.Web.CQMS.QuantityManagement {
protected global::FineUIPro.DropDownList drpProject;
/// <summary>
/// txtWorkTeam 控件。
/// drpMajor 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkTeam;
protected global::FineUIPro.DropDownList drpMajor;
/// <summary>
/// drpProjectContent 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpProjectContent;
/// <summary>
/// txtMonths 控件。

View File

@ -22,11 +22,15 @@
<Toolbars>
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProject" runat="server" Label="项目" Width="300px" LabelWidth="60px" EmptyText="请选择项目"
<f:DropDownList ID="drpProject" runat="server" Label="项目" Width="300px" LabelWidth="60px" EmptyText="请选择项目" AutoPostBack="true" OnSelectedIndexChanged="drpProject_SelectedIndexChanged"
EnableEdit="true">
</f:DropDownList>
<f:TextBox runat="server" ID="txtWorkSection" Label="工段" LabelWidth="60px" LabelAlign="Right"></f:TextBox>
<f:TextBox runat="server" ID="txtWorkTeam" Label="作业队" LabelWidth="80px" LabelAlign="Right"></f:TextBox>
<f:DropDownList ID="drpWorkSection" runat="server" LabelWidth="120px" Required="true" Label="工段" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
<f:DropDownList ID="drpMajor" runat="server" LabelWidth="140px" Required="true" Label="专业" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
<f:DropDownList ID="drpProjectContent" runat="server" LabelWidth="120px" Required="true" Label="项目内容" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
<f:DatePicker runat="server" DateFormatString="yyyy-MM" DisplayType="Month" Label="选择月份" ID="txtMonths" LabelAlign="right" LabelWidth="110px">
</f:DatePicker>
<f:Button ID="btnSearch" Icon="SystemSearch" EnablePostBack="true" runat="server" OnClick="btnSearch_Click" ToolTip="查询">
@ -69,6 +73,9 @@
<f:RenderField ColumnID="MonthComplete" DataField="MonthComplete" FieldType="Float" HeaderText="本月完成" TextAlign="Center"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="CompleteRate" DataField="CompleteRate" FieldType="Float" HeaderText="完成百分比" TextAlign="Center"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="dataload" Handler="onGridDataLoad" />

View File

@ -24,12 +24,18 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
{
this.txtMonths.Text = string.Format("{0:yyyy-MM}", DateTime.Now);
ProjectService.InitAllProjectDropDownList(this.drpProject, false);
string projectId = string.Empty;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.drpProject.SelectedValue = this.CurrUser.LoginProjectId;
this.drpProject.Enabled = false;
this.drpProject.Hidden = true;
projectId = this.drpProject.SelectedValue;
}
BLL.DrawingService.InitWorkSectionDropDownList(drpWorkSection, projectId, true);
BLL.CNProfessionalService.InitCNProfessionalDownList(drpMajor, true);
BLL.BaseService.InitAllProjectContentDropDownList(this.drpProjectContent, projectId, true);
GetButtonPower();
BindGrid();
}
@ -44,15 +50,20 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
where C.ProjectId = @ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
if (!string.IsNullOrEmpty(this.txtWorkSection.Text.Trim()))
if (this.drpWorkSection.SelectedValue != BLL.Const._Null)
{
strSql += " AND WorkSection like @WorkSection";
listStr.Add(new SqlParameter("@WorkSection", "%" + this.txtWorkSection.Text.Trim() + "%"));
strSql += " AND WorkSection = @WorkSection";
listStr.Add(new SqlParameter("@WorkSection", this.drpWorkSection.SelectedItem.Text));
}
if (!string.IsNullOrEmpty(this.txtWorkTeam.Text.Trim()))
if (this.drpMajor.SelectedValue != BLL.Const._Null)
{
strSql += " AND WorkTeam like @WorkTeam";
listStr.Add(new SqlParameter("@WorkTeam", "%" + this.txtWorkTeam.Text.Trim() + "%"));
strSql += " AND Major = @Major";
listStr.Add(new SqlParameter("@Major", this.drpMajor.SelectedItem.Text));
}
if (this.drpProjectContent.SelectedValue != BLL.Const._Null)
{
strSql += " AND ProjectContent = @ProjectContent";
listStr.Add(new SqlParameter("@ProjectContent", this.drpProjectContent.SelectedItem.Text));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
@ -84,9 +95,9 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
endDate1 = endDate;
}
var totalDayInputs = from x in Funs.DB.View_QuantityManagement_DayInput2
where x.ProjectId == this.drpProject.SelectedValue && x.Date <= endDate
orderby x.Date
select x;
where x.ProjectId == this.drpProject.SelectedValue && x.Date <= endDate
orderby x.Date
select x;
var dayInputs = from x in Funs.DB.View_QuantityManagement_DayInput2
where x.ProjectId == this.drpProject.SelectedValue && x.Date >= startDate && x.Date <= endDate
orderby x.Date
@ -104,19 +115,22 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
string[] strs = this.Grid1.Rows[i].RowID.Split(',');
string workSection = strs[1];
string projectContent = strs[2];
string workTeam = strs[3];
decimal totalAmount = 0, completedAmount = 0, totalCompletedAmount = 0, monthComplete = 0;
totalAmount = bases.Where(x => x.WorkSection == workSection && x.ProjectContent == projectContent).ToList().Sum(x => x.Amount ?? 0);
foreach (var d in days)
{
monthComplete = dayInputs.Where(x => x.WorkSection == workSection && x.ProjectContent == projectContent && x.WorkTeam == workTeam).ToList().Sum(x => x.DayAmount ?? 0);
monthComplete = dayInputs.Where(x => x.WorkSection == workSection && x.ProjectContent == projectContent).ToList().Sum(x => x.DayAmount ?? 0);
}
completedAmount= totalDayInputs.Where(x => x.WorkSection == workSection && x.ProjectContent == projectContent && x.WorkTeam == workTeam).ToList().Sum(x => x.DayAmount ?? 0);
completedAmount = totalDayInputs.Where(x => x.WorkSection == workSection && x.ProjectContent == projectContent).ToList().Sum(x => x.DayAmount ?? 0);
totalCompletedAmount = totalDayInputs.Where(x => x.WorkSection == workSection && x.ProjectContent == projectContent).ToList().Sum(x => x.DayAmount ?? 0);
this.Grid1.Rows[i].Values[5] = totalAmount.ToString("0.##");
this.Grid1.Rows[i].Values[6] = completedAmount.ToString("0.##");
this.Grid1.Rows[i].Values[7] = (totalAmount - totalCompletedAmount).ToString("0.##");
this.Grid1.Rows[i].Values[8] = monthComplete.ToString("0.##");
if (totalAmount > 0)
{
this.Grid1.Rows[i].Values[9] = decimal.Round(completedAmount / totalAmount, 4) * 100;
}
}
}
#endregion
@ -326,6 +340,9 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
cell = row.CreateCell(8);
cell.CellStyle = cellStyle;
cell.SetCellValue(Grid1.Rows[i].Values[8].ToString());
cell = row.CreateCell(9);
cell.CellStyle = cellStyle;
cell.SetCellValue(Grid1.Rows[i].Values[9].ToString());
}
// 第三步:写入文件流
using (FileStream stream = new FileStream(newUrl, FileMode.Create, FileAccess.Write))
@ -355,5 +372,21 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
}
}
#endregion
protected void drpProject_SelectedIndexChanged(object sender, EventArgs e)
{
string projectId = this.drpProject.SelectedValue;
if (!string.IsNullOrEmpty(Request.Params["ProjectId"]))
{
this.drpProject.SelectedValue = Request.Params["ProjectId"];
projectId = Request.Params["ProjectId"];
}
BLL.DrawingService.InitWorkSectionDropDownList(drpWorkSection, projectId, true);
BLL.CNProfessionalService.InitCNProfessionalDownList(drpMajor, true);
BLL.BaseService.InitAllProjectContentDropDownList(this.drpProjectContent, projectId, true);
drpWorkSection.SelectedValue = BLL.Const._Null;
drpMajor.SelectedValue = BLL.Const._Null;
drpProjectContent.SelectedValue = BLL.Const._Null;
}
}
}

View File

@ -67,22 +67,31 @@ namespace FineUIPro.Web.CQMS.QuantityManagement {
protected global::FineUIPro.DropDownList drpProject;
/// <summary>
/// txtWorkSection 控件。
/// drpWorkSection 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkSection;
protected global::FineUIPro.DropDownList drpWorkSection;
/// <summary>
/// txtWorkTeam 控件。
/// drpMajor 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkTeam;
protected global::FineUIPro.DropDownList drpMajor;
/// <summary>
/// drpProjectContent 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpProjectContent;
/// <summary>
/// txtMonths 控件。

View File

@ -12,7 +12,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FineUIPro.Web</RootNamespace>
<AssemblyName>FineUIPro.Web</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<UseIISExpress>true</UseIISExpress>
<SccProjectName>
</SccProjectName>
@ -19738,6 +19738,7 @@
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">

View File

@ -485188,15 +485188,13 @@ namespace Model
private string _Unit;
private string _WorkTeam;
private string _WorkTeamId;
private string _Major;
public View_QuantityManagement_ProjectContentStatistics()
{
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(202)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(151)")]
public string Id
{
get
@ -485276,34 +485274,18 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkTeam", DbType="NVarChar(50)")]
public string WorkTeam
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Major", DbType="NVarChar(30)")]
public string Major
{
get
{
return this._WorkTeam;
return this._Major;
}
set
{
if ((this._WorkTeam != value))
if ((this._Major != value))
{
this._WorkTeam = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkTeamId", DbType="NVarChar(100)")]
public string WorkTeamId
{
get
{
return this._WorkTeamId;
}
set
{
if ((this._WorkTeamId != value))
{
this._WorkTeamId = value;
this._Major = value;
}
}
}
@ -485325,17 +485307,13 @@ namespace Model
private string _Unit;
private string _WorkTeam;
private string _WorkTeamId;
private string _Major;
public View_QuantityManagement_WorkTeamStatistics()
{
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(303)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(252)")]
public string Id
{
get
@ -485431,38 +485409,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkTeam", DbType="NVarChar(50)")]
public string WorkTeam
{
get
{
return this._WorkTeam;
}
set
{
if ((this._WorkTeam != value))
{
this._WorkTeam = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkTeamId", DbType="NVarChar(100)")]
public string WorkTeamId
{
get
{
return this._WorkTeamId;
}
set
{
if ((this._WorkTeamId != value))
{
this._WorkTeamId = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Major", DbType="NVarChar(30)")]
public string Major
{

View File

@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Model</RootNamespace>
<AssemblyName>Model</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>
</SccProjectName>

View File

@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SgManager.AI</RootNamespace>
<AssemblyName>SgManager.AI</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>

View File

@ -14,7 +14,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WebAPI</RootNamespace>
<AssemblyName>WebAPI</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<MvcBuildViews>false</MvcBuildViews>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />