0813
This commit is contained in:
+23
-27
@@ -85,13 +85,13 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="API\APIBaseInfoService.cs" />
|
||||
<Compile Include="API\APICommonService.cs" />
|
||||
<Compile Include="API\APIDoorServerService.cs" />
|
||||
<Compile Include="API\APIGetHttpService.cs" />
|
||||
<Compile Include="API\APIIDCardInfoService.cs" />
|
||||
<Compile Include="API\APIPersonService.cs" />
|
||||
<Compile Include="API\APIProjectService.cs" />
|
||||
<Compile Include="API\APIUnitService.cs" />
|
||||
<Compile Include="API\APIUpLoadFileService.cs" />
|
||||
<Compile Include="API\APIDoorServerService.cs" />
|
||||
<Compile Include="API\APIUserService.cs" />
|
||||
<Compile Include="API\HJGL\APIHotProcessHardService.cs" />
|
||||
<Compile Include="API\HJGL\APINDETrustService.cs" />
|
||||
@@ -519,6 +519,7 @@
|
||||
<Compile Include="HSSE\Technique\Technique_CheckItemSetService.cs" />
|
||||
<Compile Include="JDGL\Check\ElectricalCompletionService.cs" />
|
||||
<Compile Include="JDGL\Check\EquipmentCompletionService.cs" />
|
||||
<Compile Include="JDGL\Check\LowTankCompletionService.cs" />
|
||||
<Compile Include="JDGL\Check\MeterCompletionService.cs" />
|
||||
<Compile Include="JDGL\Check\PipelineCompletionService.cs" />
|
||||
<Compile Include="JDGL\Check\ProgressCompletionService.cs" />
|
||||
@@ -529,13 +530,21 @@
|
||||
<Compile Include="JDGL\WBSCompleteAndReal\WBSReportService.cs" />
|
||||
<Compile Include="JDGL\WBS\CnProfessionInitService.cs" />
|
||||
<Compile Include="JDGL\WBS\CnProfessionService.cs" />
|
||||
<Compile Include="JDGL\WBS\CostControlDetailHistoryService.cs" />
|
||||
<Compile Include="JDGL\WBS\CostControlDetailService.cs" />
|
||||
<Compile Include="JDGL\WBS\CostControlInitService.cs" />
|
||||
<Compile Include="JDGL\WBS\CostControlParentDetailService.cs" />
|
||||
<Compile Include="JDGL\WBS\CostControlService.cs" />
|
||||
<Compile Include="JDGL\WBS\UnitProjectInitService.cs" />
|
||||
<Compile Include="JDGL\WBS\UnitProjectService.cs" />
|
||||
<Compile Include="JDGL\WBS\WbsDetailHistoryService.cs" />
|
||||
<Compile Include="JDGL\WBS\WbsDetailService.cs" />
|
||||
<Compile Include="JDGL\WBS\WBSRectificationMeasureSetService.cs" />
|
||||
<Compile Include="JDGL\WBS\WbsSetInitService.cs" />
|
||||
<Compile Include="JDGL\WBS\WbsSetMatchCostControlInitService.cs" />
|
||||
<Compile Include="JDGL\WBS\WbsSetMatchCostControlService.cs" />
|
||||
<Compile Include="JDGL\WBS\WbsSetService.cs" />
|
||||
<Compile Include="JDGL\WBS\WorkloadStatisticsService.cs" />
|
||||
<Compile Include="Notice\NoticeService.cs" />
|
||||
<Compile Include="obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs" />
|
||||
<Compile Include="obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs" />
|
||||
@@ -554,12 +563,25 @@
|
||||
<Compile Include="OpenService\MonitorService.cs" />
|
||||
<Compile Include="DynamicTHeaderHepler.cs" />
|
||||
<Compile Include="OpenService\GetDataService.cs" />
|
||||
<Compile Include="Party\BasicInformationDetailService.cs" />
|
||||
<Compile Include="Party\BasicInformationService.cs" />
|
||||
<Compile Include="Party\CommentPartyerService.cs" />
|
||||
<Compile Include="Party\DoingThingsForMassesService.cs" />
|
||||
<Compile Include="Party\EmployeeConversationRecordService.cs" />
|
||||
<Compile Include="Party\FocusLearnService.cs" />
|
||||
<Compile Include="Party\LastWorkSummaryService.cs" />
|
||||
<Compile Include="Party\NewsPropagandaWorkService.cs" />
|
||||
<Compile Include="Party\OrganizingLifeService.cs" />
|
||||
<Compile Include="Party\PartyCommitteeService.cs" />
|
||||
<Compile Include="Party\PartyCongressService.cs" />
|
||||
<Compile Include="Party\PartyerService.cs" />
|
||||
<Compile Include="Party\PartyHistoryStudyService.cs" />
|
||||
<Compile Include="Party\PartyLectureService.cs" />
|
||||
<Compile Include="Party\PartyMeetingService.cs" />
|
||||
<Compile Include="Party\PartyMoneyUseService.cs" />
|
||||
<Compile Include="Party\PartyPioneerDemonstrationService.cs" />
|
||||
<Compile Include="Party\ThemePartyDayService.cs" />
|
||||
<Compile Include="Party\TwoOneGoodSelectionService.cs" />
|
||||
<Compile Include="Party\WorkPlanService.cs" />
|
||||
<Compile Include="Person\PersonTotalService.cs" />
|
||||
<Compile Include="Person\Person_DutyService.cs" />
|
||||
@@ -717,7 +739,6 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
<None Include="bin\Release\BLL.dll.config" />
|
||||
<None Include="obj\Debug\BLL.csproj.CopyComplete" />
|
||||
<None Include="obj\Debug\BLL.csproj.CoreCompileInputs.cache" />
|
||||
<None Include="obj\Debug\BLL.csprojAssemblyReference.cache" />
|
||||
@@ -736,31 +757,6 @@
|
||||
<None Include="Scripts\jquery-3.5.1.slim.min.map" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="bin\Debug\BLL.dll" />
|
||||
<Content Include="bin\Debug\BLL.pdb" />
|
||||
<Content Include="bin\Release\AipSdk.dll" />
|
||||
<Content Include="bin\Release\AOP.Common.dll" />
|
||||
<Content Include="bin\Release\Apache.NMS.ActiveMQ.dll" />
|
||||
<Content Include="bin\Release\Apache.NMS.ActiveMQ.pdb" />
|
||||
<Content Include="bin\Release\Apache.NMS.ActiveMQ.xml" />
|
||||
<Content Include="bin\Release\BLL.dll" />
|
||||
<Content Include="bin\Release\BLL.pdb" />
|
||||
<Content Include="bin\Release\EmitMapper.dll" />
|
||||
<Content Include="bin\Release\FineUIPro.dll" />
|
||||
<Content Include="bin\Release\FineUIPro.xml" />
|
||||
<Content Include="bin\Release\Microsoft.QualityTools.Testing.Fakes.dll" />
|
||||
<Content Include="bin\Release\Microsoft.SqlServer.DTSPipelineWrap.dll" />
|
||||
<Content Include="bin\Release\Microsoft.SqlServer.DTSRuntimeWrap.dll" />
|
||||
<Content Include="bin\Release\Microsoft.SQLServer.ManagedDTS.dll" />
|
||||
<Content Include="bin\Release\Microsoft.SqlServer.PipelineHost.dll" />
|
||||
<Content Include="bin\Release\Model.dll" />
|
||||
<Content Include="bin\Release\Model.pdb" />
|
||||
<Content Include="bin\Release\Newtonsoft.Json.dll" />
|
||||
<Content Include="bin\Release\Newtonsoft.Json.xml" />
|
||||
<Content Include="bin\Release\SgManager.AI.dll" />
|
||||
<Content Include="bin\Release\SgManager.AI.pdb" />
|
||||
<Content Include="bin\Release\ThoughtWorks.QRCode.dll" />
|
||||
<Content Include="bin\Release\zh-Hans\Microsoft.QualityTools.Testing.Fakes.resources.dll" />
|
||||
<Content Include="obj\Debug\BLL.csproj.FileListAbsolute.txt" />
|
||||
<Content Include="obj\Debug\BLL.dll" />
|
||||
<Content Include="obj\Debug\BLL.pdb" />
|
||||
|
||||
@@ -124,6 +124,7 @@ namespace BLL
|
||||
newInspectionEquipment.UnitId = inspectionEquipment.UnitId;
|
||||
newInspectionEquipment.InspectionCode = inspectionEquipment.InspectionCode;
|
||||
newInspectionEquipment.CNProfessionalId = inspectionEquipment.CNProfessionalId;
|
||||
newInspectionEquipment.EquipmentOrMatail = inspectionEquipment.EquipmentOrMatail;
|
||||
newInspectionEquipment.InspectionName = inspectionEquipment.InspectionName;
|
||||
newInspectionEquipment.Specifications = inspectionEquipment.Specifications;
|
||||
newInspectionEquipment.Supplier = inspectionEquipment.Supplier;
|
||||
@@ -158,6 +159,7 @@ namespace BLL
|
||||
newInspectionEquipment.CNProfessionalId = inspectionEquipment.CNProfessionalId;
|
||||
newInspectionEquipment.InspectionName = inspectionEquipment.InspectionName;
|
||||
newInspectionEquipment.Specifications = inspectionEquipment.Specifications;
|
||||
newInspectionEquipment.EquipmentOrMatail = inspectionEquipment.EquipmentOrMatail;
|
||||
newInspectionEquipment.Supplier = inspectionEquipment.Supplier;
|
||||
newInspectionEquipment.Counts = inspectionEquipment.Counts;
|
||||
newInspectionEquipment.SamplingCount = inspectionEquipment.SamplingCount;
|
||||
|
||||
@@ -69,6 +69,7 @@ namespace BLL
|
||||
newConstructionStandardListProject.IsSelected8 = ConstructionStandardListProject.IsSelected8;
|
||||
newConstructionStandardListProject.IsSelected9 = ConstructionStandardListProject.IsSelected9;
|
||||
newConstructionStandardListProject.IsSelected10 = ConstructionStandardListProject.IsSelected10;
|
||||
newConstructionStandardListProject.IsChecked = ConstructionStandardListProject.IsChecked;
|
||||
Funs.DB.CQMS_Law_ConstructionStandardListProject.InsertOnSubmit(newConstructionStandardListProject);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
@@ -103,6 +104,7 @@ namespace BLL
|
||||
newConstructionStandardListProject.IsSelected8 = ConstructionStandardListProject.IsSelected8;
|
||||
newConstructionStandardListProject.IsSelected9 = ConstructionStandardListProject.IsSelected9;
|
||||
newConstructionStandardListProject.IsSelected10 = ConstructionStandardListProject.IsSelected10;
|
||||
newConstructionStandardListProject.IsChecked = ConstructionStandardListProject.IsChecked;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2761,11 +2761,6 @@ namespace BLL
|
||||
/// 人工时月报模版文件原始的虚拟路径
|
||||
/// </summary>
|
||||
public const string MonthReportTemplateUrl = "File\\Excel\\DataIn\\人工时月报模板.xls";
|
||||
|
||||
/// <summary>
|
||||
/// 现场人员考勤导入模版
|
||||
/// </summary>
|
||||
public const string PersonInfoTemplateUrl = "File\\Excel\\DataIn\\现场人员考勤导入模版.xls";
|
||||
/// <summary>
|
||||
/// 百万工时安全统计月报表模板文件原始虚拟路径
|
||||
/// </summary>
|
||||
@@ -2811,6 +2806,10 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string CheckDayTemplateUrl = "File\\Excel\\DataIn\\日常巡检导入模板.xls";
|
||||
/// <summary>
|
||||
/// 现场人员考勤导入模版
|
||||
/// </summary>
|
||||
public const string PersonInfoTemplateUrl = "File\\Excel\\DataIn\\现场人员考勤导入模版.xls";
|
||||
/// <summary>
|
||||
/// 专项检查导入模板
|
||||
/// </summary>
|
||||
public const string CheckSpecialTemplateUrl = "File\\Excel\\DataIn\\专项检查导入模板.xls";
|
||||
@@ -2931,6 +2930,10 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string QuantityCompletionTemplateUrl = "File\\Excel\\DataIn\\项目进度完成情况导入模板.xls";
|
||||
/// <summary>
|
||||
/// 低温储罐完成情况导入模版文件原始的虚拟路径
|
||||
/// </summary>
|
||||
public const string LowTankCompletionTemplateUrl = "File\\Excel\\DataIn\\低温储罐完成情况导入模板.xls";
|
||||
/// <summary>
|
||||
/// 钢结构完成情况导入模版文件原始的虚拟路径
|
||||
/// </summary>
|
||||
public const string SteelStructureCompletionTemplateUrl = "File\\Excel\\DataIn\\钢结构完成情况导入模板.xls";
|
||||
@@ -4320,6 +4323,16 @@ namespace BLL
|
||||
#endregion
|
||||
|
||||
#region 智慧党建
|
||||
/// <summary>
|
||||
/// 党支部基本情况
|
||||
/// </summary>
|
||||
public const string BasicInformationMenuId = "AA2BCCC3-24C7-4766-BF67-90F852E9922B";
|
||||
|
||||
/// <summary>
|
||||
/// 党员名册
|
||||
/// </summary>
|
||||
public const string PartyerMenuId = "8F93D7AB-A746-4279-A1F2-4EC1E0B45849";
|
||||
|
||||
/// <summary>
|
||||
/// 上年度党建工作总结
|
||||
/// </summary>
|
||||
@@ -4354,6 +4367,56 @@ namespace BLL
|
||||
/// 组织生活会
|
||||
/// </summary>
|
||||
public const string OrganizingLifeMenuId = "FA19FBD7-6458-4A40-9D2E-9CBCBF5CDBDB";
|
||||
|
||||
/// <summary>
|
||||
/// 民主评议党员
|
||||
/// </summary>
|
||||
public const string CommentPartyerMenuId = "B0942E8C-BE49-4D96-948B-FDE75C4E27A5";
|
||||
|
||||
/// <summary>
|
||||
/// 集中学习
|
||||
/// </summary>
|
||||
public const string FocusLearnMenuId = "EAB1A564-00A4-4D7C-9655-7DD9741F46C9";
|
||||
|
||||
/// <summary>
|
||||
/// 主题党日活动
|
||||
/// </summary>
|
||||
public const string ThemePartyDayMenuId = "BF0340D1-6641-494B-80DC-DB3BDAA43D3E";
|
||||
|
||||
/// <summary>
|
||||
/// 党员先锋岗、示范岗
|
||||
/// </summary>
|
||||
public const string PartyPioneerDemonstrationMenuId = "A425EF77-1527-473D-85C8-C30DE914F488";
|
||||
|
||||
/// <summary>
|
||||
/// “两优一先”评选
|
||||
/// </summary>
|
||||
public const string TwoOneGoodSelectionMenuId = "ECA84DF5-F900-4FD4-A78A-20C725C1483C";
|
||||
|
||||
/// <summary>
|
||||
/// 党史学习教育
|
||||
/// </summary>
|
||||
public const string PartyHistoryStudyMenuId = "066CE5C7-FACE-435F-8691-DEFC5A0E9E9B";
|
||||
|
||||
/// <summary>
|
||||
/// 党组织工作经费使用
|
||||
/// </summary>
|
||||
public const string PartyMoneyUseMenuId = "BA1DA76E-D5D2-4270-ACBF-6E134B8F5952";
|
||||
|
||||
/// <summary>
|
||||
/// 新闻宣传工作
|
||||
/// </summary>
|
||||
public const string NewsPropagandaWorkMenuId = "A4789F38-4431-4497-872E-7121BB53DC22";
|
||||
|
||||
/// <summary>
|
||||
/// 员工谈话记录
|
||||
/// </summary>
|
||||
public const string EmployeeConversationRecordMenuId = "7BF12C19-2A26-48BE-A812-325A809EEA62";
|
||||
|
||||
/// <summary>
|
||||
/// 为群众办实事
|
||||
/// </summary>
|
||||
public const string DoingThingsForMassesMenuId = "44D157DC-064E-4C24-82E5-33795764756D";
|
||||
#endregion
|
||||
|
||||
#region 试车管理
|
||||
@@ -4640,10 +4703,15 @@ namespace BLL
|
||||
public const string ProjectInstallationMenuId = "A4308F9A-0280-49C5-BEE4-FA858FE1CE24";
|
||||
|
||||
/// <summary>
|
||||
/// 单位、分部、分项工程审核与发布
|
||||
/// 分部、工作项及费用清单设置
|
||||
/// </summary>
|
||||
public const string WBSSetAuditMenuId = "858E83E9-ADE5-452E-BD65-82D8DFF872C0";
|
||||
|
||||
/// <summary>
|
||||
/// 工作量录入
|
||||
/// </summary>
|
||||
public const string WorkloadInputMenuId = "E3905BF1-289B-4500-BD34-36F97D649AFC";
|
||||
|
||||
/// <summary>
|
||||
/// 进度测量标志(权重)设置
|
||||
/// </summary>
|
||||
@@ -4694,6 +4762,11 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string QuantityCompletionMenuId = "2AE9D982-A499-497F-8F54-ADDA5856887E";
|
||||
|
||||
/// <summary>
|
||||
/// 低温储罐完成情况
|
||||
/// </summary>
|
||||
public const string LowTankCompletionMenuId = "82E513B9-1A6F-495A-A633-EBC89CE5273A";
|
||||
|
||||
/// <summary>
|
||||
/// 钢结构完成情况
|
||||
/// </summary>
|
||||
@@ -4725,6 +4798,11 @@ namespace BLL
|
||||
public const string UndergroundPipeCompletionMenuId = "C7037A5D-D8A6-4C1C-A5B8-2083C31C0A7B";
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 设备专业Id
|
||||
/// </summary>
|
||||
public const string EQCNProfessionalId = "FBC066BE-082F-4185-AE5C-016A12132ADE";
|
||||
|
||||
#region 项目考勤
|
||||
/// <summary>
|
||||
/// 同步设置
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 低温储罐完成情况
|
||||
/// </summary>
|
||||
public class LowTankCompletionService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取低温储罐完成情况
|
||||
/// </summary>
|
||||
/// <param name="lowTankCompletionId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JDGL_LowTankCompletion GetLowTankCompletionById(string lowTankCompletionId)
|
||||
{
|
||||
return Funs.DB.JDGL_LowTankCompletion.FirstOrDefault(e => e.LowTankCompletionId == lowTankCompletionId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加低温储罐完成情况
|
||||
/// </summary>
|
||||
/// <param name="lowTankCompletion"></param>
|
||||
public static void AddLowTankCompletion(Model.JDGL_LowTankCompletion lowTankCompletion)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.JDGL_LowTankCompletion newLowTankCompletion = new Model.JDGL_LowTankCompletion
|
||||
{
|
||||
LowTankCompletionId = lowTankCompletion.LowTankCompletionId,
|
||||
ProjectId = lowTankCompletion.ProjectId,
|
||||
Code = lowTankCompletion.Code,
|
||||
Name = lowTankCompletion.Name,
|
||||
Unit = lowTankCompletion.Unit,
|
||||
TotalNum = lowTankCompletion.TotalNum,
|
||||
PlanNum = lowTankCompletion.PlanNum,
|
||||
RealNum = lowTankCompletion.RealNum,
|
||||
CompileMan = lowTankCompletion.CompileMan,
|
||||
CompileDate = lowTankCompletion.CompileDate,
|
||||
StartDate = lowTankCompletion.StartDate,
|
||||
EndDate = lowTankCompletion.EndDate
|
||||
};
|
||||
db.JDGL_LowTankCompletion.InsertOnSubmit(newLowTankCompletion);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改低温储罐完成情况
|
||||
/// </summary>
|
||||
/// <param name="lowTankCompletion"></param>
|
||||
public static void UpdateLowTankCompletion(Model.JDGL_LowTankCompletion lowTankCompletion)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.JDGL_LowTankCompletion newLowTankCompletion = db.JDGL_LowTankCompletion.FirstOrDefault(e => e.LowTankCompletionId == lowTankCompletion.LowTankCompletionId);
|
||||
if (newLowTankCompletion != null)
|
||||
{
|
||||
newLowTankCompletion.Code = lowTankCompletion.Code;
|
||||
newLowTankCompletion.Name = lowTankCompletion.Name;
|
||||
newLowTankCompletion.TotalNum = lowTankCompletion.TotalNum;
|
||||
newLowTankCompletion.PlanNum = lowTankCompletion.PlanNum;
|
||||
newLowTankCompletion.RealNum = lowTankCompletion.RealNum;
|
||||
newLowTankCompletion.CompileMan = lowTankCompletion.CompileMan;
|
||||
newLowTankCompletion.CompileDate = lowTankCompletion.CompileDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除低温储罐完成情况
|
||||
/// </summary>
|
||||
/// <param name="lowTankCompletionId"></param>
|
||||
public static void DeleteLowTankCompletionById(string lowTankCompletionId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var lowTankCompletion = (from x in db.JDGL_LowTankCompletion where x.LowTankCompletionId == lowTankCompletionId select x).FirstOrDefault();
|
||||
if (lowTankCompletion != null)
|
||||
{
|
||||
var q = from x in db.JDGL_LowTankCompletion where x.ProjectId == lowTankCompletion.ProjectId && x.Code == lowTankCompletion.Code && x.Name == lowTankCompletion.Name select x;
|
||||
if (q.Count() > 0)
|
||||
{
|
||||
db.JDGL_LowTankCompletion.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,30 @@ namespace BLL
|
||||
return Funs.DB.WBS_CnProfession.FirstOrDefault(e => e.CnProfessionId == cnProfessionId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据装置Id和专业编号获取专业Id
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">专业Id</param>
|
||||
/// <returns></returns>
|
||||
public static string GetCnProfessionIdByInstallationIdAndOldId(string installationId, string oldId)
|
||||
{
|
||||
string cnProfessionId = string.Empty;
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var ins = db.Project_Installation.FirstOrDefault(x => x.InstallationId == installationId);
|
||||
if (ins.IsEnd == true)
|
||||
{
|
||||
var cn = db.WBS_CnProfession.FirstOrDefault(x => x.InstallationId == ins.InstallationId && x.OldId.ToString() == oldId);
|
||||
cnProfessionId = cn.CnProfessionId;
|
||||
}
|
||||
else
|
||||
{
|
||||
var childIns = db.Project_Installation.FirstOrDefault(x => x.SuperInstallationId == installationId);
|
||||
cnProfessionId = GetCnProfessionIdByInstallationIdAndOldId(childIns.InstallationId, oldId);
|
||||
}
|
||||
return cnProfessionId;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 增加专业
|
||||
/// </summary>
|
||||
@@ -64,6 +88,8 @@ namespace BLL
|
||||
newCnP.WeightsMoney = cnProfession.WeightsMoney;
|
||||
newCnP.IsWeightsApprove = cnProfession.IsWeightsApprove;
|
||||
newCnP.UnitId = cnProfession.UnitId;
|
||||
newCnP.IsSelected = cnProfession.IsSelected;
|
||||
newCnP.IsApprove = cnProfession.IsApprove;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,156 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class CostControlDetailHistoryService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据Id获取一个费控项明细历史记录信息
|
||||
/// </summary>
|
||||
/// <param name="costControlDetailHistoryId">费控项明细历史记录Id</param>
|
||||
public static Model.WBS_CostControlDetailHistory GetCostControlDetailHistoryByCostControlDetailHistoryId(string costControlDetailHistoryId)
|
||||
{
|
||||
return Funs.DB.WBS_CostControlDetailHistory.FirstOrDefault(e => e.CostControlDetailHistoryId == costControlDetailHistoryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据CostControlId判断是否存在费控项明细历史记录信息
|
||||
/// </summary>
|
||||
/// <param name="costControlId">costControlId</param>
|
||||
public static bool IsExitCostControlDetailHistoryByCostControlId(string costControlId)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlDetailHistory where x.CostControlId == costControlId select x).Count() > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id获取对应费控项明细历史记录信息
|
||||
/// </summary>
|
||||
/// <param name="toWbs">对应wbsId</param>
|
||||
public static List<Model.WBS_CostControlDetailHistory> GetCostControlDetailHistorysByCostControlId(string costControlId)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlDetailHistory where x.CostControlId == costControlId orderby x.VersionNum, x.Months select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据costControlId和年及月获取对应费控项明细历史记录信息
|
||||
/// </summary>
|
||||
/// <param name="costControlId">对应wbsId</param>
|
||||
/// <param name="toFlag">对应标志</param>
|
||||
/// <param name="years">年</param>
|
||||
/// <param name="months">月</param>
|
||||
public static Model.WBS_CostControlDetailHistory GetCostControlDetailHistoryByCostControlIdAndMonths(string costControlId, DateTime months)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlDetailHistory where x.CostControlId == costControlId && x.Months == months select x).FirstOrDefault();
|
||||
}
|
||||
|
||||
public static Model.WBS_CostControlDetailHistory GetWBS_CostControlDetailHistoryByCostControlId(string costControlId)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlDetailHistory where x.CostControlId == costControlId select x).FirstOrDefault();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="costControlId"></param>
|
||||
/// <param name="toFlag"></param>
|
||||
/// <param name="months"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsExitWBS_CostControlDetailHistoryByCostControlIdOrMonth(string costControlId, DateTime months)
|
||||
{
|
||||
bool result = false;
|
||||
var q = Funs.DB.WBS_CostControlDetailHistory.FirstOrDefault(e => e.CostControlId == costControlId && e.Months == months);
|
||||
if (q != null)
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据年及月获取之前月份的对应费控项明细历史记录信息集合(含当月)
|
||||
/// </summary>
|
||||
/// <param name="years">年</param>
|
||||
/// <param name="months">月</param>
|
||||
public static List<Model.WBS_CostControlDetailHistory> GetTotalWBS_CostControlDetailHistorysByYearMonth2(string costControlId, DateTime months)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlDetailHistory where x.CostControlId == costControlId && x.Months <= months select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据CostControlId月获取当前最大版本
|
||||
/// </summary>
|
||||
/// <param name="costControlId">costControlId</param>
|
||||
public static int GetMaxVersionNumByCostControlId(string costControlId)
|
||||
{
|
||||
int i = 0;
|
||||
var q = (from x in Funs.DB.WBS_CostControlDetailHistory where x.CostControlId == costControlId orderby x.VersionNum descending select x.VersionNum ?? 0).ToList();
|
||||
if (q.Count > 0)
|
||||
{
|
||||
i = q[0];
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加费控项明细历史记录
|
||||
/// </summary>
|
||||
/// <param name="user">费控项明细历史记录</param>
|
||||
public static void AddCostControlDetailHistory(Model.WBS_CostControlDetailHistory costControlDetailHistory)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlDetailHistory newWBS_CostControlDetailHistory = new Model.WBS_CostControlDetailHistory();
|
||||
newWBS_CostControlDetailHistory.CostControlDetailHistoryId = costControlDetailHistory.CostControlDetailHistoryId;
|
||||
newWBS_CostControlDetailHistory.CostControlId = costControlDetailHistory.CostControlId;
|
||||
newWBS_CostControlDetailHistory.Months = costControlDetailHistory.Months;
|
||||
newWBS_CostControlDetailHistory.PlanNum = costControlDetailHistory.PlanNum;
|
||||
newWBS_CostControlDetailHistory.VersionNum = costControlDetailHistory.VersionNum;
|
||||
|
||||
db.WBS_CostControlDetailHistory.InsertOnSubmit(newWBS_CostControlDetailHistory);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改费控项明细历史记录
|
||||
/// </summary>
|
||||
/// <param name="user">费控项明细历史记录</param>
|
||||
public static void UpdateCostControlDetailHistory(Model.WBS_CostControlDetailHistory costControlDetailHistory)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlDetailHistory newWBS_CostControlDetailHistory = db.WBS_CostControlDetailHistory.First(e => e.CostControlDetailHistoryId == costControlDetailHistory.CostControlDetailHistoryId);
|
||||
newWBS_CostControlDetailHistory.PlanNum = costControlDetailHistory.PlanNum;
|
||||
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id删除费控项明细历史记录信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteCostControlDetailHistory(string costControlDetailHistoryId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlDetailHistory ins = db.WBS_CostControlDetailHistory.First(e => e.CostControlDetailHistoryId == costControlDetailHistoryId);
|
||||
db.WBS_CostControlDetailHistory.DeleteOnSubmit(ins);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据costControlId删除费控项明细历史记录信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteCostControlDetailHistoryByCostControlId(string costControlId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var details = from x in db.WBS_CostControlDetailHistory where x.CostControlId == costControlId select x;
|
||||
if (details.Count() > 0)
|
||||
{
|
||||
db.WBS_CostControlDetailHistory.DeleteAllOnSubmit(details);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class CostControlDetailService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据Id获取一个费控项明细信息
|
||||
/// </summary>
|
||||
/// <param name="costControlDetailId">费控项明细Id</param>
|
||||
public static Model.WBS_CostControlDetail GetCostControlDetailByCostControlDetailId(string costControlDetailId)
|
||||
{
|
||||
return Funs.DB.WBS_CostControlDetail.FirstOrDefault(e => e.CostControlDetailId == costControlDetailId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据CostControlId判断是否存在费控项明细信息
|
||||
/// </summary>
|
||||
/// <param name="costControlId">costControlId</param>
|
||||
public static bool IsExitCostControlDetailByCostControlId(string costControlId)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlDetail where x.CostControlId == costControlId select x).Count() > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据costControlId和年及月获取对应费控项明细信息
|
||||
/// </summary>
|
||||
/// <param name="costControlId">对应wbsId</param>
|
||||
/// <param name="toFlag">对应标志</param>
|
||||
/// <param name="years">年</param>
|
||||
/// <param name="months">月</param>
|
||||
public static Model.WBS_CostControlDetail GetCostControlDetailByCostControlIdAndMonths(string costControlId, DateTime months)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlDetail where x.CostControlId == costControlId && x.Months == months select x).FirstOrDefault();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据costControlId和年及月获取对应费控项明细视图信息
|
||||
/// </summary>
|
||||
/// <param name="costControlId">对应wbsId</param>
|
||||
/// <param name="toFlag">对应标志</param>
|
||||
/// <param name="years">年</param>
|
||||
/// <param name="months">月</param>
|
||||
public static Model.View_WBS_CostControlDetail GetCostControlDetailViewByCostControlIdAndMonths(string costControlId, DateTime months)
|
||||
{
|
||||
return (from x in Funs.DB.View_WBS_CostControlDetail where x.CostControlId == costControlId && x.Months == months select x).FirstOrDefault();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据costControlId和年及月获取对应费控项明细信息
|
||||
/// </summary>
|
||||
/// <param name="costControlId">对应wbsId</param>
|
||||
/// <param name="toFlag">对应标志</param>
|
||||
/// <param name="years">年</param>
|
||||
/// <param name="months">月</param>
|
||||
public static Model.View_WBS_CostControlDetail GetViewCostControlDetailByCostControlIdYearMonth(string costControlId, DateTime months)
|
||||
{
|
||||
return (from x in Funs.DB.View_WBS_CostControlDetail where x.CostControlId == costControlId && x.Months == months select x).FirstOrDefault();
|
||||
}
|
||||
|
||||
public static Model.WBS_CostControlDetail GetWBS_CostControlDetailByCostControlId(string costControlId)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlDetail where x.CostControlId == costControlId select x).FirstOrDefault();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="costControlId"></param>
|
||||
/// <param name="toFlag"></param>
|
||||
/// <param name="months"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsExitWBS_CostControlDetailByCostControlIdOrMonth(string costControlId, DateTime months)
|
||||
{
|
||||
bool result = false;
|
||||
var q = Funs.DB.WBS_CostControlDetail.FirstOrDefault(e => e.CostControlId == costControlId && e.Months == months);
|
||||
if (q != null)
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据年及月获取之前月份的对应费控项明细信息集合(含当月)
|
||||
/// </summary>
|
||||
/// <param name="years">年</param>
|
||||
/// <param name="months">月</param>
|
||||
public static List<Model.WBS_CostControlDetail> GetTotalWBS_CostControlDetailsByYearMonth2(string costControlId, DateTime months)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlDetail where x.CostControlId == costControlId && x.Months <= months select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据CostControlId月获取所有月份的对应费控项明细信息集合
|
||||
/// </summary>
|
||||
/// <param name="costControlId">costControlId</param>
|
||||
public static List<Model.WBS_CostControlDetail> GetCostControlDetailsByCostControlId(string costControlId)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlDetail where x.CostControlId == costControlId orderby x.Months select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加费控项明细
|
||||
/// </summary>
|
||||
/// <param name="user">费控项明细</param>
|
||||
public static void AddCostControlDetail(Model.WBS_CostControlDetail costControlDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlDetail newWBS_CostControlDetail = new Model.WBS_CostControlDetail();
|
||||
newWBS_CostControlDetail.CostControlDetailId = costControlDetail.CostControlDetailId;
|
||||
newWBS_CostControlDetail.CostControlId = costControlDetail.CostControlId;
|
||||
newWBS_CostControlDetail.Months = costControlDetail.Months;
|
||||
newWBS_CostControlDetail.PlanNum = costControlDetail.PlanNum;
|
||||
newWBS_CostControlDetail.ThisNum = costControlDetail.ThisNum;
|
||||
|
||||
db.WBS_CostControlDetail.InsertOnSubmit(newWBS_CostControlDetail);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改费控项明细
|
||||
/// </summary>
|
||||
/// <param name="user">费控项明细</param>
|
||||
public static void UpdateCostControlDetail(Model.WBS_CostControlDetail costControlDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlDetail newWBS_CostControlDetail = db.WBS_CostControlDetail.First(e => e.CostControlDetailId == costControlDetail.CostControlDetailId);
|
||||
newWBS_CostControlDetail.PlanNum = costControlDetail.PlanNum;
|
||||
newWBS_CostControlDetail.ThisNum = costControlDetail.ThisNum;
|
||||
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id删除费控项明细信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteCostControlDetail(string costControlDetailId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlDetail ins = db.WBS_CostControlDetail.First(e => e.CostControlDetailId == costControlDetailId);
|
||||
db.WBS_CostControlDetail.DeleteOnSubmit(ins);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据costControlId删除费控项明细信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteCostControlDetailByCostControlId(string costControlId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var details = from x in db.WBS_CostControlDetail where x.CostControlId == costControlId select x;
|
||||
if (details.Count() > 0)
|
||||
{
|
||||
db.WBS_CostControlDetail.DeleteAllOnSubmit(details);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class CostControlInitService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据费控项Id获取费控项信息
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">费控项Id</param>
|
||||
/// <returns></returns>
|
||||
public static Model.WBS_CostControlInit GetCostControlInitByCostControlInitId(string costControlInitId)
|
||||
{
|
||||
return Funs.DB.WBS_CostControlInit.FirstOrDefault(e => e.CostControlInitId.ToString() == costControlInitId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加费控项
|
||||
/// </summary>
|
||||
/// <param name="user">费控项</param>
|
||||
public static void AddCostControlInit(Model.WBS_CostControlInit costControlInit)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlInit newUP = new Model.WBS_CostControlInit();
|
||||
newUP.CostControlInitId = SQLHelper.GetNewID();
|
||||
newUP.CostControlInitCode = costControlInit.CostControlInitCode;
|
||||
newUP.CostControlInitName = costControlInit.CostControlInitName;
|
||||
newUP.Unit = costControlInit.Unit;
|
||||
|
||||
db.WBS_CostControlInit.InsertOnSubmit(newUP);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改费控项信息
|
||||
/// </summary>
|
||||
/// <param name="user">费控项信息</param>
|
||||
public static void UpdateCostControlInit(Model.WBS_CostControlInit costControlInit)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlInit newUP = db.WBS_CostControlInit.First(e => e.CostControlInitId == costControlInit.CostControlInitId);
|
||||
|
||||
newUP.CostControlInitCode = costControlInit.CostControlInitCode;
|
||||
newUP.CostControlInitName = costControlInit.CostControlInitName;
|
||||
newUP.Unit = costControlInit.Unit;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id删除费控项信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteCostControlInit(string costControlInitId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlInit CnP = db.WBS_CostControlInit.First(e => e.CostControlInitId.ToString() == costControlInitId);
|
||||
db.WBS_CostControlInit.DeleteOnSubmit(CnP);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class CostControlParentDetailService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据Id获取一个费控项父级明细信息
|
||||
/// </summary>
|
||||
/// <param name="costControlParentDetailId">费控项父级明细Id</param>
|
||||
public static Model.WBS_CostControlParentDetail GetCostControlParentDetailByCostControlParentDetailId(string costControlParentDetailId)
|
||||
{
|
||||
return Funs.DB.WBS_CostControlParentDetail.FirstOrDefault(e => e.CostControlParentDetailId == costControlParentDetailId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据ParentId判断是否存在费控项父级明细信息
|
||||
/// </summary>
|
||||
/// <param name="costControlParentId">costControlParentId</param>
|
||||
public static bool IsExitCostControlParentDetailByParentId(string parentId)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlParentDetail where x.ParentId == parentId select x).Count() > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据costControlParentId和年及月获取对应费控项父级明细信息
|
||||
/// </summary>
|
||||
/// <param name="costControlParentId">对应wbsId</param>
|
||||
/// <param name="toFlag">对应标志</param>
|
||||
/// <param name="years">年</param>
|
||||
/// <param name="months">月</param>
|
||||
public static Model.WBS_CostControlParentDetail GetCostControlParentDetailByParentIdAndMonths(string parentId, DateTime months)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlParentDetail where x.ParentId == parentId && x.Months == months select x).FirstOrDefault();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据costControlParentId和年及月获取对应费控项父级明细视图信息
|
||||
/// </summary>
|
||||
/// <param name="costControlParentId">对应wbsId</param>
|
||||
/// <param name="toFlag">对应标志</param>
|
||||
/// <param name="years">年</param>
|
||||
/// <param name="months">月</param>
|
||||
public static Model.View_WBS_CostControlParentDetail GetCostControlParentDetailViewByParentIdAndMonths(string parentId, DateTime months)
|
||||
{
|
||||
return (from x in Funs.DB.View_WBS_CostControlParentDetail where x.ParentId == parentId && x.Months == months select x).FirstOrDefault();
|
||||
}
|
||||
|
||||
public static Model.WBS_CostControlParentDetail GetCostControlParentDetailByParentId(string parentId)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlParentDetail where x.ParentId == parentId select x).FirstOrDefault();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="costControlParentId"></param>
|
||||
/// <param name="toFlag"></param>
|
||||
/// <param name="months"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsExitWBS_CostControlParentDetailByParentIdOrMonth(string parentId, DateTime months)
|
||||
{
|
||||
bool result = false;
|
||||
var q = Funs.DB.WBS_CostControlParentDetail.FirstOrDefault(e => e.ParentId == parentId && e.Months == months);
|
||||
if (q != null)
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据CostControlParentId月获取所有月份的对应费控项父级明细信息集合
|
||||
/// </summary>
|
||||
/// <param name="costControlParentId">costControlParentId</param>
|
||||
public static List<Model.WBS_CostControlParentDetail> GetTotalCostControlParentDetailsByParentId(string parentId)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControlParentDetail where x.ParentId == parentId orderby x.Months select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加费控项父级明细
|
||||
/// </summary>
|
||||
/// <param name="user">费控项父级明细</param>
|
||||
public static void AddCostControlParentDetail(Model.WBS_CostControlParentDetail costControlParentDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlParentDetail newWBS_CostControlParentDetail = new Model.WBS_CostControlParentDetail();
|
||||
newWBS_CostControlParentDetail.CostControlParentDetailId = costControlParentDetail.CostControlParentDetailId;
|
||||
newWBS_CostControlParentDetail.ParentId = costControlParentDetail.ParentId;
|
||||
newWBS_CostControlParentDetail.Months = costControlParentDetail.Months;
|
||||
newWBS_CostControlParentDetail.ThisPlanValue = costControlParentDetail.ThisPlanValue;
|
||||
newWBS_CostControlParentDetail.ThisRealCost = costControlParentDetail.ThisRealCost;
|
||||
newWBS_CostControlParentDetail.ThisPlanCost = costControlParentDetail.ThisPlanCost;
|
||||
|
||||
db.WBS_CostControlParentDetail.InsertOnSubmit(newWBS_CostControlParentDetail);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改费控项父级明细
|
||||
/// </summary>
|
||||
/// <param name="user">费控项父级明细</param>
|
||||
public static void UpdateCostControlParentDetail(Model.WBS_CostControlParentDetail costControlParentDetail)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlParentDetail newWBS_CostControlParentDetail = db.WBS_CostControlParentDetail.First(e => e.CostControlParentDetailId == costControlParentDetail.CostControlParentDetailId);
|
||||
newWBS_CostControlParentDetail.ThisPlanValue = costControlParentDetail.ThisPlanValue;
|
||||
newWBS_CostControlParentDetail.ThisRealCost = costControlParentDetail.ThisRealCost;
|
||||
newWBS_CostControlParentDetail.ThisPlanCost = costControlParentDetail.ThisPlanCost;
|
||||
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id删除费控项父级明细信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteWBS_CostControlParentDetail(string costControlParentDetailId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControlParentDetail ins = db.WBS_CostControlParentDetail.First(e => e.CostControlParentDetailId == costControlParentDetailId);
|
||||
db.WBS_CostControlParentDetail.DeleteOnSubmit(ins);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据costControlParentId删除费控项父级明细信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteWBS_CostControlParentDetailByCostControlParentId(string parentId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var details = from x in db.WBS_CostControlParentDetail where x.ParentId == parentId select x;
|
||||
if (details.Count() > 0)
|
||||
{
|
||||
db.WBS_CostControlParentDetail.DeleteAllOnSubmit(details);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class CostControlService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据费控项Id获取费控项信息
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">费控项Id</param>
|
||||
/// <returns></returns>
|
||||
public static Model.WBS_CostControl GetCostControlByCostControlId(string costControlId)
|
||||
{
|
||||
return Funs.DB.WBS_CostControl.FirstOrDefault(e => e.CostControlId.ToString() == costControlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据费控项编号集合获取费控项信息
|
||||
/// </summary>
|
||||
/// <param name="costControlCodes">费控项编号集合</param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.WBS_CostControl> GetCostControlsByCostControlCodes(List<string> costControlCodes, string wbsSetId)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControl where costControlCodes.Contains(x.CostControlCode) && x.WbsSetId == wbsSetId select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据费控项编号集合获取费控项信息
|
||||
/// </summary>
|
||||
/// <param name="costControlCodes">费控项编号集合</param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.WBS_CostControl> GetCostControlsByWbsSetId(string wbsSetId)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_CostControl where x.WbsSetId == wbsSetId select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加费控项
|
||||
/// </summary>
|
||||
/// <param name="user">费控项</param>
|
||||
public static void AddCostControl(Model.WBS_CostControl costControl)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControl newUP = new Model.WBS_CostControl();
|
||||
newUP.CostControlId = SQLHelper.GetNewID();
|
||||
newUP.ProjectId = costControl.ProjectId;
|
||||
newUP.WbsSetId = costControl.WbsSetId;
|
||||
newUP.CostControlCode = costControl.CostControlCode;
|
||||
newUP.CostControlName = costControl.CostControlName;
|
||||
newUP.Unit = costControl.Unit;
|
||||
newUP.TotalNum = costControl.TotalNum;
|
||||
newUP.RealPrice = costControl.RealPrice;
|
||||
|
||||
db.WBS_CostControl.InsertOnSubmit(newUP);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改费控项信息
|
||||
/// </summary>
|
||||
/// <param name="user">费控项信息</param>
|
||||
public static void UpdateCostControl(Model.WBS_CostControl costControl)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControl newUP = db.WBS_CostControl.First(e => e.CostControlId == costControl.CostControlId);
|
||||
|
||||
newUP.CostControlCode = costControl.CostControlCode;
|
||||
newUP.CostControlName = costControl.CostControlName;
|
||||
newUP.Unit = costControl.Unit;
|
||||
newUP.TotalNum = costControl.TotalNum;
|
||||
newUP.RealPrice = costControl.RealPrice;
|
||||
newUP.PlanPrice = costControl.PlanPrice;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id删除费控项信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteCostControl(string costControlId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_CostControl CnP = db.WBS_CostControl.First(e => e.CostControlId.ToString() == costControlId);
|
||||
db.WBS_CostControl.DeleteOnSubmit(CnP);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id删除费控项信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteCostControlByWbsSetId(string wbsSetId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var costControls = from x in db.WBS_CostControl where x.WbsSetId == wbsSetId select x;
|
||||
if (costControls.Count() > 0)
|
||||
{
|
||||
foreach (var costControl in costControls)
|
||||
{
|
||||
BLL.CostControlDetailHistoryService.DeleteCostControlDetailHistoryByCostControlId(costControl.CostControlId);
|
||||
BLL.CostControlDetailService.DeleteCostControlDetailByCostControlId(costControl.CostControlId);
|
||||
}
|
||||
db.WBS_CostControl.DeleteAllOnSubmit(costControls);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,6 +37,15 @@ namespace BLL
|
||||
return Funs.DB.Wbs_UnitProjectInit.Where(e => e.CnProfessionId == cnProfessionId).Count();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据专业Id获取单位工程集合信息
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">单位工程Id</param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Wbs_UnitProjectInit> GetUnitProjectInitsByCnProfessionId(string cnProfessionId)
|
||||
{
|
||||
return (from x in Funs.DB.Wbs_UnitProjectInit where x.CnProfessionId.ToString() == cnProfessionId orderby x.SortIndex select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据单位工程Id获取子单位工程集合信息
|
||||
@@ -62,6 +71,7 @@ namespace BLL
|
||||
newUP.CnProfessionId = unitProjectInit.CnProfessionId;
|
||||
newUP.IsIn = unitProjectInit.IsIn;
|
||||
newUP.Remark = unitProjectInit.Remark;
|
||||
newUP.SortIndex = unitProjectInit.SortIndex;
|
||||
|
||||
db.Wbs_UnitProjectInit.InsertOnSubmit(newUP);
|
||||
db.SubmitChanges();
|
||||
@@ -78,6 +88,7 @@ namespace BLL
|
||||
|
||||
newUP.UnitProjectName = unitProjectInit.UnitProjectName;
|
||||
newUP.Remark = unitProjectInit.Remark;
|
||||
newUP.SortIndex = unitProjectInit.SortIndex;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,41 @@ namespace BLL
|
||||
return (from x in Funs.DB.Wbs_UnitProject where x.SuperUnitProjectId == superUnitProjectId orderby x.UnitProjectCode select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据专业Id和分部编号获取分部Id
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">专业Id</param>
|
||||
/// <returns></returns>
|
||||
public static List<string> GetUnitProjectIdByCnProfessionIdAndUnitProjectCode(string cnProfessionId, string unitProjectCode)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var list = (from x in db.Wbs_UnitProject where x.CnProfessionId == cnProfessionId && x.UnitProjectCode == unitProjectCode select x.UnitProjectId).ToList();
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据装置、专业Id和分部编号获取分部Id
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">专业Id</param>
|
||||
/// <returns></returns>
|
||||
public static List<string> GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(string installationId, string cnCode, string unitProjectCode)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
string inId = string.Empty;
|
||||
Model.Project_Installation ins = db.Project_Installation.FirstOrDefault(x => x.InstallationId == installationId);
|
||||
if (ins.IsEnd == true)
|
||||
{
|
||||
inId = installationId;
|
||||
}
|
||||
else
|
||||
{
|
||||
inId = Project_InstallationService.GetEndInstallationId(installationId);
|
||||
}
|
||||
var cn = (from x in db.WBS_CnProfession where x.InstallationId == inId && x.OldId.ToString() == cnCode select x).FirstOrDefault();
|
||||
var list = (from x in db.Wbs_UnitProject where x.CnProfessionId == cn.CnProfessionId && x.UnitProjectCode == unitProjectCode select x.UnitProjectId).ToList();
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据装置Id获取单位工程集合信息
|
||||
/// </summary>
|
||||
|
||||
@@ -14,6 +14,16 @@ namespace BLL
|
||||
{
|
||||
public class WbsSetInitService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据分部工程编号获取工作包集合信息
|
||||
/// </summary>
|
||||
/// <param name="unitProjectCode">分部工程编号</param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.WBS_WbsSetInit> GetWbsSetInitsByUnitProjectCode(string unitProjectCode)
|
||||
{
|
||||
return (from x in Funs.DB.WBS_WbsSetInit where x.UnitProjectCode == unitProjectCode && x.SuperWbsSetCode == null orderby x.WbsSetCode select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加分部/子分部/分项/子分项
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class WbsSetMatchCostControlInitService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据费控项对应关系Id获取费控项对应关系信息
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">费控项对应关系Id</param>
|
||||
/// <returns></returns>
|
||||
public static Model.WBS_WbsSetMatchCostControlInit GetWbsSetMatchCostControlInitByWbsSetMatchCostControlInitId(string wbsSetMatchCostControlInitId)
|
||||
{
|
||||
return Funs.DB.WBS_WbsSetMatchCostControlInit.FirstOrDefault(e => e.WbsSetMatchCostControlInitId.ToString() == wbsSetMatchCostControlInitId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据费控项对应关系Id获取费控项对应关系信息
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">费控项对应关系Id</param>
|
||||
/// <returns></returns>
|
||||
public static Model.WBS_WbsSetMatchCostControlInit GetWbsSetMatchCostControlInitByWbsSetCodeAndCostControlInitCode(string wbsSetCode, string costControlInitCode)
|
||||
{
|
||||
return Funs.DB.WBS_WbsSetMatchCostControlInit.FirstOrDefault(e => e.WbsSetCode == wbsSetCode && e.CostControlInitCode == costControlInitCode);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加费控项对应关系
|
||||
/// </summary>
|
||||
/// <param name="user">费控项对应关系</param>
|
||||
public static void AddWbsSetMatchCostControlInit(Model.WBS_WbsSetMatchCostControlInit wbsSetMatchCostControlInit)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_WbsSetMatchCostControlInit newUP = new Model.WBS_WbsSetMatchCostControlInit();
|
||||
newUP.WbsSetMatchCostControlInitId = wbsSetMatchCostControlInit.WbsSetMatchCostControlInitId;
|
||||
newUP.WbsSetCode = wbsSetMatchCostControlInit.WbsSetCode;
|
||||
newUP.CostControlInitCode = wbsSetMatchCostControlInit.CostControlInitCode;
|
||||
|
||||
db.WBS_WbsSetMatchCostControlInit.InsertOnSubmit(newUP);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改费控项对应关系
|
||||
/// </summary>
|
||||
/// <param name="user">费控项对应关系</param>
|
||||
public static void UpdateWbsSetMatchCostControlInit(Model.WBS_WbsSetMatchCostControlInit wbsSetMatchCostControlInit)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_WbsSetMatchCostControlInit newUP = db.WBS_WbsSetMatchCostControlInit.First(e => e.WbsSetMatchCostControlInitId == wbsSetMatchCostControlInit.WbsSetMatchCostControlInitId);
|
||||
|
||||
newUP.WbsSetCode = wbsSetMatchCostControlInit.WbsSetCode;
|
||||
newUP.CostControlInitCode = wbsSetMatchCostControlInit.CostControlInitCode;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id删除费控项对应关系信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteWbsSetMatchCostControlInit(string wbsSetMatchCostControlInitId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_WbsSetMatchCostControlInit CnP = db.WBS_WbsSetMatchCostControlInit.First(e => e.WbsSetMatchCostControlInitId.ToString() == wbsSetMatchCostControlInitId);
|
||||
db.WBS_WbsSetMatchCostControlInit.DeleteOnSubmit(CnP);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id删除费控项对应关系信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteWbsSetMatchCostControlInitByWbsSetCodeAndCostControlInitCode(string wbsSetCode,string costControlInitCode)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_WbsSetMatchCostControlInit CnP = db.WBS_WbsSetMatchCostControlInit.First(e => e.WbsSetCode == wbsSetCode && e.CostControlInitCode== costControlInitCode);
|
||||
if (CnP != null)
|
||||
{
|
||||
db.WBS_WbsSetMatchCostControlInit.DeleteOnSubmit(CnP);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取费控项对应关系下拉选项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.WBS_WbsSetMatchCostControlInit> GetWbsSetMatchCostControlInits(string wbsSetCode)
|
||||
{
|
||||
var list = (from x in Funs.DB.WBS_WbsSetMatchCostControlInit where x.WbsSetCode == wbsSetCode orderby x.WbsSetMatchCostControlInitId select x).ToList();
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class WbsSetMatchCostControlService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据费控项对应关系Id获取费控项对应关系信息
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">费控项对应关系Id</param>
|
||||
/// <returns></returns>
|
||||
public static Model.WBS_WbsSetMatchCostControl GetWbsSetMatchCostControlByWbsSetMatchCostControlId(string wbsSetMatchCostControlId)
|
||||
{
|
||||
return Funs.DB.WBS_WbsSetMatchCostControl.FirstOrDefault(e => e.WbsSetMatchCostControlId.ToString() == wbsSetMatchCostControlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据费控项对应关系Id获取费控项对应关系信息
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">费控项对应关系Id</param>
|
||||
/// <returns></returns>
|
||||
public static Model.WBS_WbsSetMatchCostControl GetWbsSetMatchCostControlByWbsSetIdAndCostControlCode(string wbsSetId, string costControlCode)
|
||||
{
|
||||
return Funs.DB.WBS_WbsSetMatchCostControl.FirstOrDefault(e => e.WbsSetId == wbsSetId && e.CostControlCode == costControlCode);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加费控项对应关系
|
||||
/// </summary>
|
||||
/// <param name="user">费控项对应关系</param>
|
||||
public static void AddWbsSetMatchCostControl(Model.WBS_WbsSetMatchCostControl wbsSetMatchCostControl)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_WbsSetMatchCostControl newUP = new Model.WBS_WbsSetMatchCostControl();
|
||||
newUP.WbsSetMatchCostControlId = wbsSetMatchCostControl.WbsSetMatchCostControlId;
|
||||
newUP.WbsSetId = wbsSetMatchCostControl.WbsSetId;
|
||||
newUP.CostControlCode = wbsSetMatchCostControl.CostControlCode;
|
||||
|
||||
db.WBS_WbsSetMatchCostControl.InsertOnSubmit(newUP);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改费控项对应关系
|
||||
/// </summary>
|
||||
/// <param name="user">费控项对应关系</param>
|
||||
public static void UpdateWbsSetMatchCostControl(Model.WBS_WbsSetMatchCostControl wbsSetMatchCostControl)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_WbsSetMatchCostControl newUP = db.WBS_WbsSetMatchCostControl.First(e => e.WbsSetMatchCostControlId == wbsSetMatchCostControl.WbsSetMatchCostControlId);
|
||||
|
||||
newUP.WbsSetId = wbsSetMatchCostControl.WbsSetId;
|
||||
newUP.CostControlCode = wbsSetMatchCostControl.CostControlCode;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id删除费控项对应关系信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteWbsSetMatchCostControl(string wbsSetMatchCostControlId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_WbsSetMatchCostControl CnP = db.WBS_WbsSetMatchCostControl.First(e => e.WbsSetMatchCostControlId.ToString() == wbsSetMatchCostControlId);
|
||||
db.WBS_WbsSetMatchCostControl.DeleteOnSubmit(CnP);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id删除费控项对应关系信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteWbsSetMatchCostControlByWbsSetIdAndCostControlCode(string wbsSetId, string costControlCode)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.WBS_WbsSetMatchCostControl CnP = db.WBS_WbsSetMatchCostControl.First(e => e.WbsSetId == wbsSetId && e.CostControlCode == costControlCode);
|
||||
if (CnP != null)
|
||||
{
|
||||
db.WBS_WbsSetMatchCostControl.DeleteOnSubmit(CnP);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Id删除费控项对应关系信息
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteWbsSetMatchCostControlByWbsSetId(string wbsSetId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var CnP = from x in db.WBS_WbsSetMatchCostControl where x.WbsSetId == wbsSetId select x;
|
||||
if (CnP.Count()>0)
|
||||
{
|
||||
db.WBS_WbsSetMatchCostControl.DeleteAllOnSubmit(CnP);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取费控项对应关系下拉选项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.WBS_WbsSetMatchCostControl> GetWbsSetMatchCostControls(string wbsSetId)
|
||||
{
|
||||
var list = (from x in Funs.DB.WBS_WbsSetMatchCostControl where x.WbsSetId == wbsSetId orderby x.WbsSetMatchCostControlId select x).ToList();
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -147,7 +147,17 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.Wbs_WbsSet> GetWbsSetsBySuperWbsSetId(string superWbsSetId)
|
||||
{
|
||||
return (from x in Funs.DB.Wbs_WbsSet where x.SuperWbsSetId == superWbsSetId && x.NoShow == null orderby x.SortIndex, x.WbsSetCode select x).ToList();
|
||||
return (from x in Funs.DB.Wbs_WbsSet where x.SuperWbsSetId == superWbsSetId orderby x.WbsSetCode select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据上级Id获取集合
|
||||
/// </summary>
|
||||
/// <param name="superWbsSetId">上级Id</param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Wbs_WbsSet> GetApproveWbsSetsBySuperWbsSetId(string superWbsSetId)
|
||||
{
|
||||
return (from x in Funs.DB.Wbs_WbsSet where x.SuperWbsSetId == superWbsSetId && x.IsApprove == true orderby x.WbsSetCode select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -157,7 +167,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.Wbs_WbsSet> GetIsChildWbsSetsBySuperWbsSetId(string superWbsSetId)
|
||||
{
|
||||
return (from x in Funs.DB.Wbs_WbsSet where x.SuperWbsSetId == superWbsSetId && x.IsChild == null orderby x.SortIndex, x.WbsSetCode select x).ToList();
|
||||
return (from x in Funs.DB.Wbs_WbsSet where x.SuperWbsSetId == superWbsSetId && x.IsChild == null orderby x.WbsSetCode select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -287,16 +297,6 @@ namespace BLL
|
||||
return ids;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据上级Id获取审核批准的集合
|
||||
/// </summary>
|
||||
/// <param name="superWbsSetId">上级Id</param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Wbs_WbsSet> GetApproveWbsSetsBySuperWbsSetId(string superWbsSetId)
|
||||
{
|
||||
return (from x in Funs.DB.Wbs_WbsSet where x.SuperWbsSetId == superWbsSetId && x.IsApprove == true && x.NoShow == null orderby x.SortIndex, x.WbsSetCode select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据分部/子分部/分项/子分项工程Id获取分部/子分部/分项/子分项工程信息
|
||||
/// </summary>
|
||||
@@ -306,5 +306,71 @@ namespace BLL
|
||||
{
|
||||
return Funs.DB.Wbs_WbsSet.FirstOrDefault(e => e.WbsSetId == wbsSetId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据分部/子分部/分项/子分项工程Id获取分部/子分部/分项/子分项工程信息
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">分部/子分部/分项/子分项工程Id</param>
|
||||
/// <returns></returns>
|
||||
public static Model.Wbs_WbsSet GetWbsSetByWbsSetCode(string wbsSetCode, string projectId)
|
||||
{
|
||||
return Funs.DB.Wbs_WbsSet.FirstOrDefault(e => e.WbsSetCode == wbsSetCode && e.ProjectId == projectId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据装置、专业Id和分部编号获取分部Id
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">专业Id</param>
|
||||
/// <returns></returns>
|
||||
public static List<string> GetWbsSetIdByInstallationIdAndCNCodeAndUnitProjectCodeAndWbsSetCode(string installationId, string cnCode, string unitProjectCode, string wbsSetCode)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
string inId = string.Empty;
|
||||
Model.Project_Installation ins = db.Project_Installation.FirstOrDefault(x => x.InstallationId == installationId);
|
||||
if (ins.IsEnd == true)
|
||||
{
|
||||
inId = installationId;
|
||||
}
|
||||
else
|
||||
{
|
||||
inId = Project_InstallationService.GetEndInstallationId(installationId);
|
||||
}
|
||||
var cn = (from x in db.WBS_CnProfession where x.InstallationId == inId && x.OldId.ToString() == cnCode select x).FirstOrDefault();
|
||||
var list = (from x in db.Wbs_WbsSet
|
||||
join y in db.Wbs_UnitProject
|
||||
on x.UnitProjectId equals y.UnitProjectId
|
||||
where x.CnProfessionId == cn.CnProfessionId && y.UnitProjectCode == unitProjectCode && x.WbsSetCode==wbsSetCode select x.WbsSetId).ToList();
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据专业Id和分部编号获取分部Id
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">专业Id</param>
|
||||
/// <returns></returns>
|
||||
public static List<string> GetWbsSetIdByCnProfessionIdAndUnitProjectCodeAndWbsSetCode(string cnProfessionId, string unitProjectCode, string wbsSetCode)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var list = (from x in db.Wbs_WbsSet
|
||||
join y in db.Wbs_UnitProject
|
||||
on x.UnitProjectId equals y.UnitProjectId
|
||||
where x.CnProfessionId == cnProfessionId && y.UnitProjectCode == unitProjectCode && x.WbsSetCode == wbsSetCode
|
||||
select x.WbsSetId).ToList();
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据分部Id获取分部Id
|
||||
/// </summary>
|
||||
/// <param name="unitProjectId">专业Id</param>
|
||||
/// <returns></returns>
|
||||
public static List<string> GetWbsSetIdByUnitProjectIdAndWbsSetCode(string unitProjectId, string wbsSetCode)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var list = (from x in db.Wbs_WbsSet
|
||||
where x.UnitProjectId == unitProjectId && x.WbsSetCode == wbsSetCode
|
||||
select x.WbsSetId).ToList();
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,850 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public static class WorkloadStatisticsService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取模拟树表格
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static DataTable GetTreeDataTable(string projectId, DateTime months, string cnProfessionId, string unitProjectCode, string wbsSetCode)
|
||||
{
|
||||
List<Model.View_WBS_CostControlDetailStatistics> CostControlDetailStatisticsList = new List<Model.View_WBS_CostControlDetailStatistics>();
|
||||
DataTable table = new DataTable();
|
||||
table.Columns.Add(new DataColumn("Id", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("SupId", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("Name", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("ProjectId", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("Unit", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("TotalNum", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("RealPrice", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("PlanNum", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("ThisNum", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("PlanPrice", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("ThisRealCost", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("ThisPlanValue", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("ThisPlanCost", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("TotalPlanNum", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("TotalThisNum", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("TotalRealCost", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("TotalPlanValue", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("TotalPlanCost", typeof(String)));
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var costControls = from x in db.WBS_CostControl where x.ProjectId == projectId select x;
|
||||
var details = from x in db.View_WBS_CostControlDetail where x.ProjectId == projectId select x;
|
||||
var parentDetails = from x in db.View_WBS_CostControlParentDetail select x;
|
||||
var wbsSets = from x in db.Wbs_WbsSet where x.ProjectId == projectId select x;
|
||||
var wbsSetInits = from x in db.WBS_WbsSetInit select x;
|
||||
var unitProjects = from x in db.Wbs_UnitProject where x.ProjectId == projectId select x;
|
||||
var unitProjectInits = from x in db.Wbs_UnitProjectInit select x;
|
||||
var cnProfessions = from x in db.WBS_CnProfession where x.ProjectId == projectId select x;
|
||||
var cnProfessionInits = from x in db.WBS_CnProfessionInit select x;
|
||||
var installations = from x in db.Project_Installation where x.ProjectId == projectId select x;
|
||||
CostControlDetailStatisticsList = (from x in db.View_WBS_CostControlDetailStatistics where x.ProjectId == projectId select x).Distinct().ToList();
|
||||
DataRow row; DataRow parentRow;
|
||||
#region 全部统计
|
||||
if (cnProfessionId == BLL.Const._Null) //全部统计
|
||||
{
|
||||
foreach (Model.View_WBS_CostControlDetailStatistics item in CostControlDetailStatisticsList)
|
||||
{
|
||||
row = table.NewRow();
|
||||
row[0] = item.Id;
|
||||
row[1] = item.SupId;
|
||||
row[2] = item.Name;
|
||||
row[3] = item.ProjectId;
|
||||
Model.WBS_CostControl costControl = costControls.FirstOrDefault(x => x.CostControlId == item.Id);
|
||||
if (costControl != null)
|
||||
{
|
||||
Model.View_WBS_CostControlDetail detail = details.FirstOrDefault(x => x.CostControlId == item.Id && x.Months == months);
|
||||
if (detail != null)
|
||||
{
|
||||
row[4] = detail.Unit;//单位
|
||||
row[5] = decimal.Round(Convert.ToDecimal(detail.TotalNum), 2);//合同工作量
|
||||
row[6] = decimal.Round(Convert.ToDecimal(detail.RealPrice), 2);//成本单价
|
||||
row[7] = decimal.Round(Convert.ToDecimal(detail.PlanNum), 2);//本月计划完成量
|
||||
row[8] = decimal.Round(Convert.ToDecimal(detail.ThisNum), 2);//本月完成量
|
||||
row[9] = decimal.Round(Convert.ToDecimal(detail.PlanPrice), 2);//控制预算单价
|
||||
row[10] = decimal.Round(Convert.ToDecimal(detail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(detail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(detail.ThisPlanCost), 2);//本月完成预算
|
||||
row[13] = decimal.Round(Convert.ToDecimal(detail.TotalPlanNum), 2);//累计计划完成量
|
||||
row[14] = decimal.Round(Convert.ToDecimal(detail.TotalThisNum), 2);//累计完成量
|
||||
row[15] = decimal.Round(Convert.ToDecimal(detail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(detail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(detail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlDetail lastDetail = details.OrderByDescending(x => x.Months).FirstOrDefault(x => x.CostControlId == item.Id);
|
||||
if (lastDetail != null && lastDetail.Months <= months)
|
||||
{
|
||||
row[4] = lastDetail.Unit;//单位
|
||||
row[5] = decimal.Round(Convert.ToDecimal(lastDetail.TotalNum), 2);//合同工作量
|
||||
row[6] = decimal.Round(Convert.ToDecimal(lastDetail.RealPrice), 2);//成本单价
|
||||
row[7] = decimal.Round(Convert.ToDecimal(lastDetail.PlanNum), 2);//本月计划完成量
|
||||
row[8] = decimal.Round(Convert.ToDecimal(lastDetail.ThisNum), 2);//本月完成量
|
||||
row[9] = decimal.Round(Convert.ToDecimal(lastDetail.PlanPrice), 2);//控制预算单价
|
||||
row[13] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanNum), 2);//累计计划完成量
|
||||
row[14] = decimal.Round(Convert.ToDecimal(lastDetail.TotalThisNum), 2);//累计完成量
|
||||
row[15] = decimal.Round(Convert.ToDecimal(lastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == item.Id && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
row[10] = decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);//本月完成预算
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == item.Id);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
table.Rows.Add(row);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
else
|
||||
{
|
||||
decimal d10 = 0, d11 = 0, d12 = 0, d15 = 0, d16 = 0, d17 = 0;
|
||||
#region 按专业
|
||||
if (unitProjectCode == BLL.Const._Null)
|
||||
{
|
||||
CostControlDetailStatisticsList = (from x in CostControlDetailStatisticsList where (x.WBSType == "Installation" && x.Name != "总图") || (x.WBSType != "Installation" && x.OldCnProfessionId.ToString() == cnProfessionId) select x).ToList();
|
||||
var cn = cnProfessionInits.FirstOrDefault(x => x.CnProfessionId.ToString() == cnProfessionId);
|
||||
parentRow = table.NewRow();
|
||||
parentRow[0] = cn.CnProfessionId.ToString();
|
||||
parentRow[1] = "0";
|
||||
parentRow[2] = cn.CnProfessionName;
|
||||
parentRow[3] = projectId;
|
||||
foreach (Model.View_WBS_CostControlDetailStatistics item in CostControlDetailStatisticsList)
|
||||
{
|
||||
row = table.NewRow();
|
||||
row[0] = item.Id;
|
||||
row[2] = item.Name;
|
||||
row[3] = item.ProjectId;
|
||||
if (item.WBSType == "Installation")
|
||||
{
|
||||
if (item.SupId == "0")
|
||||
{
|
||||
row[1] = cn.CnProfessionId.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
}
|
||||
string cnId = BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(item.Id, cnProfessionId);
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == cnId && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
row[10] = decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);//本月完成预算
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == cnId);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "CnProfession")
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == item.Id && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
row[10] = decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);//本月完成预算
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);//累计完成预算
|
||||
d10 += decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);
|
||||
d11 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);
|
||||
d12 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);
|
||||
d15 += decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);
|
||||
d16 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);
|
||||
d17 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == item.Id);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
d15 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);
|
||||
d16 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);
|
||||
d17 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "UnitProject")
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == item.Id && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
row[10] = decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);//本月完成预算
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == item.Id);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "WbsSet")
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == item.Id && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
row[10] = decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);//本月完成预算
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == item.Id);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "CostControl")
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
Model.View_WBS_CostControlDetail detail = details.FirstOrDefault(x => x.CostControlId == item.Id && x.Months == months);
|
||||
if (detail != null)
|
||||
{
|
||||
row[4] = detail.Unit;//单位
|
||||
row[5] = decimal.Round(Convert.ToDecimal(detail.TotalNum), 2);//合同工作量
|
||||
row[6] = decimal.Round(Convert.ToDecimal(detail.RealPrice), 2);//成本单价
|
||||
row[7] = decimal.Round(Convert.ToDecimal(detail.PlanNum), 2);//本月计划完成量
|
||||
row[8] = decimal.Round(Convert.ToDecimal(detail.ThisNum), 2);//本月完成量
|
||||
row[9] = decimal.Round(Convert.ToDecimal(detail.PlanPrice), 2);//控制预算单价
|
||||
row[10] = decimal.Round(Convert.ToDecimal(detail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(detail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(detail.ThisPlanCost), 2);//本月完成预算
|
||||
row[13] = decimal.Round(Convert.ToDecimal(detail.TotalPlanNum), 2);//累计计划完成量
|
||||
row[14] = decimal.Round(Convert.ToDecimal(detail.TotalThisNum), 2);//累计完成量
|
||||
row[15] = decimal.Round(Convert.ToDecimal(detail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(detail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(detail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlDetail lastDetail = details.OrderByDescending(x => x.Months).FirstOrDefault(x => x.CostControlId == item.Id);
|
||||
if (lastDetail != null && lastDetail.Months <= months)
|
||||
{
|
||||
row[4] = lastDetail.Unit;//单位
|
||||
row[5] = decimal.Round(Convert.ToDecimal(lastDetail.TotalNum), 2);//合同工作量
|
||||
row[6] = decimal.Round(Convert.ToDecimal(lastDetail.RealPrice), 2);//成本单价
|
||||
row[7] = decimal.Round(Convert.ToDecimal(lastDetail.PlanNum), 2);//本月计划完成量
|
||||
row[8] = decimal.Round(Convert.ToDecimal(lastDetail.ThisNum), 2);//本月完成量
|
||||
row[9] = decimal.Round(Convert.ToDecimal(lastDetail.PlanPrice), 2);//控制预算单价
|
||||
row[13] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanNum), 2);//累计计划完成量
|
||||
row[14] = decimal.Round(Convert.ToDecimal(lastDetail.TotalThisNum), 2);//累计完成量
|
||||
row[15] = decimal.Round(Convert.ToDecimal(lastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
table.Rows.Add(row);
|
||||
}
|
||||
if (d10 != 0)
|
||||
{
|
||||
parentRow[10] = decimal.Round(d10, 2);//本月实际成本
|
||||
parentRow[11] = decimal.Round(d11, 2);//本月计划完成预算
|
||||
parentRow[12] = decimal.Round(d12, 2);//本月完成预算
|
||||
parentRow[15] = decimal.Round(d15, 2);//累计完成成本
|
||||
parentRow[16] = decimal.Round(d16, 2);//累计计划完成预算
|
||||
parentRow[17] = decimal.Round(d17, 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
parentRow[15] = decimal.Round(d15, 2);//累计完成成本
|
||||
parentRow[16] = decimal.Round(d16, 2);//累计计划完成预算
|
||||
parentRow[17] = decimal.Round(d17, 2);//累计完成预算
|
||||
}
|
||||
table.Rows.Add(parentRow);
|
||||
}
|
||||
#endregion
|
||||
#region 按分部工程
|
||||
else if (wbsSetCode == BLL.Const._Null)
|
||||
{
|
||||
CostControlDetailStatisticsList = (from x in CostControlDetailStatisticsList where (x.WBSType == "Installation" && x.Name != "总图") || (x.WBSType == "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId) || (x.WBSType != "Installation" && x.WBSType != "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode) select x).ToList();
|
||||
var up = unitProjectInits.FirstOrDefault(x => x.UnitProjectCode == unitProjectCode);
|
||||
parentRow = table.NewRow();
|
||||
parentRow[0] = up.UnitProjectCode;
|
||||
parentRow[1] = "0";
|
||||
parentRow[2] = up.UnitProjectName;
|
||||
parentRow[3] = projectId;
|
||||
foreach (Model.View_WBS_CostControlDetailStatistics item in CostControlDetailStatisticsList)
|
||||
{
|
||||
row = table.NewRow();
|
||||
row[0] = item.Id;
|
||||
row[2] = item.Name;
|
||||
row[3] = item.ProjectId;
|
||||
if (item.WBSType == "Installation")
|
||||
{
|
||||
decimal ind10 = 0, ind11 = 0, ind12 = 0, ind15 = 0, ind16 = 0, ind17 = 0;
|
||||
if (item.SupId == "0")
|
||||
{
|
||||
row[1] = up.UnitProjectCode;
|
||||
}
|
||||
else
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
}
|
||||
List<string> unitProjectIds = BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(item.Id, cnProfessionId, unitProjectCode);
|
||||
foreach (var upId in unitProjectIds)
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == upId && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
ind10 += decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);
|
||||
ind11 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);
|
||||
ind12 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);
|
||||
ind15 += decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);
|
||||
ind16 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);
|
||||
ind17 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == upId);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
ind15 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);
|
||||
ind16 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);
|
||||
ind17 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ind10 != 0)
|
||||
{
|
||||
row[10] = decimal.Round(ind10, 2);//本月实际成本
|
||||
row[11] = decimal.Round(ind11, 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(ind12, 2);//本月完成预算
|
||||
row[15] = decimal.Round(ind15, 2);//累计完成成本
|
||||
row[16] = decimal.Round(ind16, 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(ind17, 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ind15 > 0)
|
||||
{
|
||||
row[15] = decimal.Round(ind15, 2);//累计完成成本
|
||||
}
|
||||
if (ind16 > 0)
|
||||
{
|
||||
row[16] = decimal.Round(ind16, 2);//累计计划完成预算
|
||||
}
|
||||
if (ind17 > 0)
|
||||
{
|
||||
row[17] = decimal.Round(ind17, 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "CnProfession")
|
||||
{
|
||||
decimal cnd10 = 0, cnd11 = 0, cnd12 = 0, cnd15 = 0, cnd16 = 0, cnd17 = 0;
|
||||
row[1] = item.SupId;
|
||||
List<string> unitProjectIds = BLL.UnitProjectService.GetUnitProjectIdByCnProfessionIdAndUnitProjectCode(item.Id, unitProjectCode);
|
||||
foreach (var upId in unitProjectIds)
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == upId && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
cnd10 += decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);
|
||||
cnd11 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);
|
||||
cnd12 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);
|
||||
cnd15 += decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);
|
||||
cnd16 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);
|
||||
cnd17 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == upId);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
cnd15 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);
|
||||
cnd16 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);
|
||||
cnd17 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (cnd10 != 0)
|
||||
{
|
||||
row[10] = decimal.Round(cnd10, 2);//本月实际成本
|
||||
row[11] = decimal.Round(cnd11, 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(cnd12, 2);//本月完成预算
|
||||
row[15] = decimal.Round(cnd15, 2);//累计完成成本
|
||||
row[16] = decimal.Round(cnd16, 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(cnd17, 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
if (cnd15 > 0)
|
||||
{
|
||||
row[15] = decimal.Round(cnd15, 2);//累计完成成本
|
||||
}
|
||||
if (cnd16 > 0)
|
||||
{
|
||||
row[16] = decimal.Round(cnd16, 2);//累计计划完成预算
|
||||
}
|
||||
if (cnd17 > 0)
|
||||
{
|
||||
row[17] = decimal.Round(cnd17, 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "UnitProject")
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == item.Id && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
row[10] = decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);//本月完成预算
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);//累计完成预算
|
||||
d10 += decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);
|
||||
d11 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);
|
||||
d12 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);
|
||||
d15 += decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);
|
||||
d16 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);
|
||||
d17 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == item.Id);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
d15 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);
|
||||
d16 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);
|
||||
d17 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "WbsSet")
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == item.Id && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
row[10] = decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);//本月完成预算
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == item.Id);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "CostControl")
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
Model.View_WBS_CostControlDetail detail = details.FirstOrDefault(x => x.CostControlId == item.Id && x.Months == months);
|
||||
if (detail != null)
|
||||
{
|
||||
row[4] = detail.Unit;//单位
|
||||
row[5] = decimal.Round(Convert.ToDecimal(detail.TotalNum), 2);//合同工作量
|
||||
row[6] = decimal.Round(Convert.ToDecimal(detail.RealPrice), 2);//成本单价
|
||||
row[7] = decimal.Round(Convert.ToDecimal(detail.PlanNum), 2);//本月计划完成量
|
||||
row[8] = decimal.Round(Convert.ToDecimal(detail.ThisNum), 2);//本月完成量
|
||||
row[9] = decimal.Round(Convert.ToDecimal(detail.PlanPrice), 2);//控制预算单价
|
||||
row[10] = decimal.Round(Convert.ToDecimal(detail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(detail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(detail.ThisPlanCost), 2);//本月完成预算
|
||||
row[13] = decimal.Round(Convert.ToDecimal(detail.TotalPlanNum), 2);//累计计划完成量
|
||||
row[14] = decimal.Round(Convert.ToDecimal(detail.TotalThisNum), 2);//累计完成量
|
||||
row[15] = decimal.Round(Convert.ToDecimal(detail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(detail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(detail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlDetail lastDetail = details.OrderByDescending(x => x.Months).FirstOrDefault(x => x.CostControlId == item.Id);
|
||||
if (lastDetail != null && lastDetail.Months <= months)
|
||||
{
|
||||
row[4] = lastDetail.Unit;//单位
|
||||
row[5] = decimal.Round(Convert.ToDecimal(lastDetail.TotalNum), 2);//合同工作量
|
||||
row[6] = decimal.Round(Convert.ToDecimal(lastDetail.RealPrice), 2);//成本单价
|
||||
row[7] = decimal.Round(Convert.ToDecimal(lastDetail.PlanNum), 2);//本月计划完成量
|
||||
row[8] = decimal.Round(Convert.ToDecimal(lastDetail.ThisNum), 2);//本月完成量
|
||||
row[9] = decimal.Round(Convert.ToDecimal(lastDetail.PlanPrice), 2);//控制预算单价
|
||||
row[13] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanNum), 2);//累计计划完成量
|
||||
row[14] = decimal.Round(Convert.ToDecimal(lastDetail.TotalThisNum), 2);//累计完成量
|
||||
row[15] = decimal.Round(Convert.ToDecimal(lastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
table.Rows.Add(row);
|
||||
}
|
||||
if (d10 != 0)
|
||||
{
|
||||
parentRow[10] = decimal.Round(d10, 2);//本月实际成本
|
||||
parentRow[11] = decimal.Round(d11, 2);//本月计划完成预算
|
||||
parentRow[12] = decimal.Round(d12, 2);//本月完成预算
|
||||
parentRow[15] = decimal.Round(d15, 2);//累计完成成本
|
||||
parentRow[16] = decimal.Round(d16, 2);//累计计划完成预算
|
||||
parentRow[17] = decimal.Round(d17, 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
parentRow[15] = decimal.Round(d15, 2);//累计完成成本
|
||||
parentRow[16] = decimal.Round(d16, 2);//累计计划完成预算
|
||||
parentRow[17] = decimal.Round(d17, 2);//累计完成预算
|
||||
}
|
||||
table.Rows.Add(parentRow);
|
||||
}
|
||||
#endregion
|
||||
#region 按工作包
|
||||
else
|
||||
{
|
||||
CostControlDetailStatisticsList = (from x in CostControlDetailStatisticsList where (x.WBSType == "Installation" && x.Name != "总图") || (x.WBSType == "CnProfession" && x.OldCnProfessionId.ToString() == cnProfessionId) || (x.WBSType == "UnitProject" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode) || (x.WBSType != "Installation" && x.WBSType != "CnProfession" && x.WBSType != "UnitProject" && x.OldCnProfessionId.ToString() == cnProfessionId && x.OldUnitProjectCode == unitProjectCode && x.OldWbsSetCode == wbsSetCode) select x).ToList();
|
||||
var wb = wbsSetInits.FirstOrDefault(x => x.WbsSetCode == wbsSetCode);
|
||||
parentRow = table.NewRow();
|
||||
parentRow[0] = wb.WbsSetCode;
|
||||
parentRow[1] = "0";
|
||||
parentRow[2] = wb.WbsSetName;
|
||||
parentRow[3] = projectId;
|
||||
foreach (Model.View_WBS_CostControlDetailStatistics item in CostControlDetailStatisticsList)
|
||||
{
|
||||
row = table.NewRow();
|
||||
row[0] = item.Id;
|
||||
row[2] = item.Name;
|
||||
row[3] = item.ProjectId;
|
||||
if (item.WBSType == "Installation")
|
||||
{
|
||||
decimal ind10 = 0, ind11 = 0, ind12 = 0, ind15 = 0, ind16 = 0, ind17 = 0;
|
||||
if (item.SupId == "0")
|
||||
{
|
||||
row[1] = wb.WbsSetCode;
|
||||
}
|
||||
else
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
}
|
||||
List<string> wbsSetIds = BLL.WbsSetService.GetWbsSetIdByInstallationIdAndCNCodeAndUnitProjectCodeAndWbsSetCode(item.Id, cnProfessionId, unitProjectCode, wbsSetCode);
|
||||
foreach (var upId in wbsSetIds)
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == upId && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
ind10 += decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);
|
||||
ind11 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);
|
||||
ind12 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);
|
||||
ind15 += decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);
|
||||
ind16 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);
|
||||
ind17 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == upId);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
ind15 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);
|
||||
ind16 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);
|
||||
ind17 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ind10 != 0)
|
||||
{
|
||||
row[10] = decimal.Round(ind10, 2);//本月实际成本
|
||||
row[11] = decimal.Round(ind11, 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(ind12, 2);//本月完成预算
|
||||
row[15] = decimal.Round(ind15, 2);//累计完成成本
|
||||
row[16] = decimal.Round(ind16, 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(ind17, 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ind15 > 0)
|
||||
{
|
||||
row[15] = decimal.Round(ind15, 2);//累计完成成本
|
||||
}
|
||||
if (ind16 > 0)
|
||||
{
|
||||
row[16] = decimal.Round(ind16, 2);//累计计划完成预算
|
||||
}
|
||||
if (ind17 > 0)
|
||||
{
|
||||
row[17] = decimal.Round(ind17, 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "CnProfession")
|
||||
{
|
||||
decimal cnd10 = 0, cnd11 = 0, cnd12 = 0, cnd15 = 0, cnd16 = 0, cnd17 = 0;
|
||||
row[1] = item.SupId;
|
||||
List<string> wbsSetIds = BLL.WbsSetService.GetWbsSetIdByCnProfessionIdAndUnitProjectCodeAndWbsSetCode(item.Id, unitProjectCode, wbsSetCode);
|
||||
foreach (var upId in wbsSetIds)
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == upId && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
cnd10 += decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);
|
||||
cnd11 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);
|
||||
cnd12 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);
|
||||
cnd15 += decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);
|
||||
cnd16 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);
|
||||
cnd17 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == upId);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
cnd15 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);
|
||||
cnd16 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);
|
||||
cnd17 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (cnd10 != 0)
|
||||
{
|
||||
row[10] = decimal.Round(cnd10, 2);//本月实际成本
|
||||
row[11] = decimal.Round(cnd11, 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(cnd12, 2);//本月完成预算
|
||||
row[15] = decimal.Round(cnd15, 2);//累计完成成本
|
||||
row[16] = decimal.Round(cnd16, 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(cnd17, 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
if (cnd15 > 0)
|
||||
{
|
||||
row[15] = decimal.Round(cnd15, 2);//累计完成成本
|
||||
}
|
||||
if (cnd16 > 0)
|
||||
{
|
||||
row[16] = decimal.Round(cnd16, 2);//累计计划完成预算
|
||||
}
|
||||
if (cnd17 > 0)
|
||||
{
|
||||
row[17] = decimal.Round(cnd17, 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "UnitProject")
|
||||
{
|
||||
decimal upd10 = 0, upd11 = 0, upd12 = 0, upd15 = 0, upd16 = 0, upd17 = 0;
|
||||
row[1] = item.SupId;
|
||||
List<string> wbsSetIds = BLL.WbsSetService.GetWbsSetIdByUnitProjectIdAndWbsSetCode(item.Id, wbsSetCode);
|
||||
foreach (var upId in wbsSetIds)
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == upId && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
upd10 += decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);
|
||||
upd11 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);
|
||||
upd12 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);
|
||||
upd15 += decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);
|
||||
upd16 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);
|
||||
upd17 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == upId);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
upd15 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);
|
||||
upd16 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);
|
||||
upd17 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (upd10 != 0)
|
||||
{
|
||||
row[10] = decimal.Round(upd10, 2);//本月实际成本
|
||||
row[11] = decimal.Round(upd11, 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(upd12, 2);//本月完成预算
|
||||
row[15] = decimal.Round(upd15, 2);//累计完成成本
|
||||
row[16] = decimal.Round(upd16, 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(upd17, 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
if (upd15 > 0)
|
||||
{
|
||||
row[15] = decimal.Round(upd15, 2);//累计完成成本
|
||||
}
|
||||
if (upd16 > 0)
|
||||
{
|
||||
row[16] = decimal.Round(upd16, 2);//累计计划完成预算
|
||||
}
|
||||
if (upd17 > 0)
|
||||
{
|
||||
row[17] = decimal.Round(upd17, 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "WbsSet")
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
var wbsSet = wbsSets.FirstOrDefault(x => x.WbsSetId == item.Id);
|
||||
Model.View_WBS_CostControlParentDetail parentDetail = parentDetails.FirstOrDefault(x => x.ParentId == item.Id && x.Months == months);
|
||||
if (parentDetail != null)
|
||||
{
|
||||
row[10] = decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);//本月完成预算
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);//累计完成预算
|
||||
if (wbsSet.SuperWbsSetId == null) //工作包节点,累加数据
|
||||
{
|
||||
d10 += decimal.Round(Convert.ToDecimal(parentDetail.ThisRealCost), 2);
|
||||
d11 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanValue), 2);
|
||||
d12 += decimal.Round(Convert.ToDecimal(parentDetail.ThisPlanCost), 2);
|
||||
d15 += decimal.Round(Convert.ToDecimal(parentDetail.TotalRealCost), 2);
|
||||
d16 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanValue), 2);
|
||||
d17 += decimal.Round(Convert.ToDecimal(parentDetail.TotalPlanCost), 2);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlParentDetail parentLastDetail = parentDetails.OrderByDescending(x => x.Months).FirstOrDefault(x => x.ParentId == item.Id);
|
||||
if (parentLastDetail != null && parentLastDetail.Months <= months)
|
||||
{
|
||||
row[15] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
if (wbsSet.SuperWbsSetId == null) //工作包节点,累加数据
|
||||
{
|
||||
d15 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalRealCost), 2);
|
||||
d16 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanValue), 2);
|
||||
d17 += decimal.Round(Convert.ToDecimal(parentLastDetail.TotalPlanCost), 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.WBSType == "CostControl")
|
||||
{
|
||||
row[1] = item.SupId;
|
||||
Model.View_WBS_CostControlDetail detail = details.FirstOrDefault(x => x.CostControlId == item.Id && x.Months == months);
|
||||
if (detail != null)
|
||||
{
|
||||
row[4] = detail.Unit;//单位
|
||||
row[5] = decimal.Round(Convert.ToDecimal(detail.TotalNum), 2);//合同工作量
|
||||
row[6] = decimal.Round(Convert.ToDecimal(detail.RealPrice), 2);//成本单价
|
||||
row[7] = decimal.Round(Convert.ToDecimal(detail.PlanNum), 2);//本月计划完成量
|
||||
row[8] = decimal.Round(Convert.ToDecimal(detail.ThisNum), 2);//本月完成量
|
||||
row[9] = decimal.Round(Convert.ToDecimal(detail.PlanPrice), 2);//控制预算单价
|
||||
row[10] = decimal.Round(Convert.ToDecimal(detail.ThisRealCost), 2);//本月实际成本
|
||||
row[11] = decimal.Round(Convert.ToDecimal(detail.ThisPlanValue), 2);//本月计划完成预算
|
||||
row[12] = decimal.Round(Convert.ToDecimal(detail.ThisPlanCost), 2);//本月完成预算
|
||||
row[13] = decimal.Round(Convert.ToDecimal(detail.TotalPlanNum), 2);//累计计划完成量
|
||||
row[14] = decimal.Round(Convert.ToDecimal(detail.TotalThisNum), 2);//累计完成量
|
||||
row[15] = decimal.Round(Convert.ToDecimal(detail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(detail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(detail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.View_WBS_CostControlDetail lastDetail = details.OrderByDescending(x => x.Months).FirstOrDefault(x => x.CostControlId == item.Id);
|
||||
if (lastDetail != null && lastDetail.Months <= months)
|
||||
{
|
||||
row[4] = lastDetail.Unit;//单位
|
||||
row[5] = decimal.Round(Convert.ToDecimal(lastDetail.TotalNum), 2);//合同工作量
|
||||
row[6] = decimal.Round(Convert.ToDecimal(lastDetail.RealPrice), 2);//成本单价
|
||||
row[7] = decimal.Round(Convert.ToDecimal(lastDetail.PlanNum), 2);//本月计划完成量
|
||||
row[8] = decimal.Round(Convert.ToDecimal(lastDetail.ThisNum), 2);//本月完成量
|
||||
row[9] = decimal.Round(Convert.ToDecimal(lastDetail.PlanPrice), 2);//控制预算单价
|
||||
row[13] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanNum), 2);//累计计划完成量
|
||||
row[14] = decimal.Round(Convert.ToDecimal(lastDetail.TotalThisNum), 2);//累计完成量
|
||||
row[15] = decimal.Round(Convert.ToDecimal(lastDetail.TotalRealCost), 2);//累计完成成本
|
||||
row[16] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanValue), 2);//累计计划完成预算
|
||||
row[17] = decimal.Round(Convert.ToDecimal(lastDetail.TotalPlanCost), 2);//累计完成预算
|
||||
}
|
||||
}
|
||||
}
|
||||
table.Rows.Add(row);
|
||||
}
|
||||
if (d10 != 0)
|
||||
{
|
||||
parentRow[10] = decimal.Round(d10, 2);//本月实际成本
|
||||
parentRow[11] = decimal.Round(d11, 2);//本月计划完成预算
|
||||
parentRow[12] = decimal.Round(d12, 2);//本月完成预算
|
||||
parentRow[15] = decimal.Round(d15, 2);//累计完成成本
|
||||
parentRow[16] = decimal.Round(d16, 2);//累计计划完成预算
|
||||
parentRow[17] = decimal.Round(d17, 2);//累计完成预算
|
||||
}
|
||||
else
|
||||
{
|
||||
parentRow[15] = decimal.Round(d15, 2);//累计完成成本
|
||||
parentRow[16] = decimal.Round(d16, 2);//累计计划完成预算
|
||||
parentRow[17] = decimal.Round(d17, 2);//累计完成预算
|
||||
}
|
||||
table.Rows.Add(parentRow);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
return table;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 党支部基本情况明细
|
||||
/// </summary>
|
||||
public class BasicInformationDetailService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取党支部基本情况明细
|
||||
/// </summary>
|
||||
/// <param name="basicInformationDetailId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_BasicInformationDetail GetBasicInformationDetailById(string basicInformationDetailId)
|
||||
{
|
||||
return Funs.DB.Party_BasicInformationDetail.FirstOrDefault(e => e.BasicInformationDetailId == basicInformationDetailId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据外键获取党支部基本情况明细集合
|
||||
/// </summary>
|
||||
/// <param name="basicInformationId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Party_BasicInformationDetail> GetBasicInformationDetailsById(string basicInformationId)
|
||||
{
|
||||
return (from x in Funs.DB.Party_BasicInformationDetail where x.BasicInformationId == basicInformationId select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加党支部基本情况明细
|
||||
/// </summary>
|
||||
/// <param name="basicInformationDetail"></param>
|
||||
public static void AddBasicInformationDetail(Model.Party_BasicInformationDetail basicInformationDetail)
|
||||
{
|
||||
Model.Party_BasicInformationDetail newBasicInformationDetail = new Model.Party_BasicInformationDetail
|
||||
{
|
||||
BasicInformationDetailId = basicInformationDetail.BasicInformationDetailId,
|
||||
BasicInformationId = basicInformationDetail.BasicInformationId,
|
||||
SortIndex = basicInformationDetail.SortIndex,
|
||||
Name = basicInformationDetail.Name,
|
||||
BirthDate = basicInformationDetail.BirthDate,
|
||||
JoinPartyDate = basicInformationDetail.JoinPartyDate,
|
||||
PartyPost = basicInformationDetail.PartyPost,
|
||||
AdministrationPost = basicInformationDetail.AdministrationPost,
|
||||
PartyPostJoinDate = basicInformationDetail.PartyPostJoinDate
|
||||
};
|
||||
Funs.DB.Party_BasicInformationDetail.InsertOnSubmit(newBasicInformationDetail);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改党支部基本情况明细
|
||||
/// </summary>
|
||||
/// <param name="basicInformationDetail"></param>
|
||||
public static void UpdateBasicInformationDetail(Model.Party_BasicInformationDetail basicInformationDetail)
|
||||
{
|
||||
Model.Party_BasicInformationDetail newBasicInformationDetail = Funs.DB.Party_BasicInformationDetail.FirstOrDefault(e => e.BasicInformationDetailId == basicInformationDetail.BasicInformationDetailId);
|
||||
if (newBasicInformationDetail != null)
|
||||
{
|
||||
newBasicInformationDetail.Name = basicInformationDetail.Name;
|
||||
newBasicInformationDetail.BirthDate = basicInformationDetail.BirthDate;
|
||||
newBasicInformationDetail.JoinPartyDate = basicInformationDetail.JoinPartyDate;
|
||||
newBasicInformationDetail.PartyPost = basicInformationDetail.PartyPost;
|
||||
newBasicInformationDetail.AdministrationPost = basicInformationDetail.AdministrationPost;
|
||||
newBasicInformationDetail.PartyPostJoinDate = basicInformationDetail.PartyPostJoinDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除党支部基本情况明细
|
||||
/// </summary>
|
||||
/// <param name="basicInformationDetailId"></param>
|
||||
public static void DeleteBasicInformationDetailById(string basicInformationDetailId)
|
||||
{
|
||||
Model.Party_BasicInformationDetail basicInformationDetail = Funs.DB.Party_BasicInformationDetail.FirstOrDefault(e => e.BasicInformationDetailId == basicInformationDetailId);
|
||||
if (basicInformationDetail != null)
|
||||
{
|
||||
Funs.DB.Party_BasicInformationDetail.DeleteOnSubmit(basicInformationDetail);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除党支部基本情况明细
|
||||
/// </summary>
|
||||
/// <param name="basicInformationId"></param>
|
||||
public static void DeleteBasicInformationDetailsById(string basicInformationId)
|
||||
{
|
||||
var basicInformationDetails = from x in Funs.DB.Party_BasicInformationDetail where x.BasicInformationId == basicInformationId select x;
|
||||
if (basicInformationDetails.Count() > 0)
|
||||
{
|
||||
Funs.DB.Party_BasicInformationDetail.DeleteAllOnSubmit(basicInformationDetails);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 党支部基本情况
|
||||
/// </summary>
|
||||
public class BasicInformationService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取党支部基本情况
|
||||
/// </summary>
|
||||
/// <param name="basicInformationId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_BasicInformation GetBasicInformationById(string basicInformationId)
|
||||
{
|
||||
return Funs.DB.Party_BasicInformation.FirstOrDefault(e => e.BasicInformationId == basicInformationId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据年份获取党支部基本情况
|
||||
/// </summary>
|
||||
/// <param name="year"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_BasicInformation GetBasicInformationByYear(string year)
|
||||
{
|
||||
return Funs.DB.Party_BasicInformation.FirstOrDefault(e => e.Year == Convert.ToInt32(year));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取最近的党支部基本情况
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_BasicInformation GetOldBasicInformation()
|
||||
{
|
||||
return Funs.DB.Party_BasicInformation.OrderByDescending(x => x.Year).FirstOrDefault();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加党支部基本情况
|
||||
/// </summary>
|
||||
/// <param name="basicInformation"></param>
|
||||
public static void AddBasicInformation(Model.Party_BasicInformation basicInformation)
|
||||
{
|
||||
Model.Party_BasicInformation newBasicInformation = new Model.Party_BasicInformation
|
||||
{
|
||||
BasicInformationId = basicInformation.BasicInformationId,
|
||||
Year = basicInformation.Year,
|
||||
Name = basicInformation.Name,
|
||||
StartDate = basicInformation.StartDate,
|
||||
Component = basicInformation.Component,
|
||||
PartyerNum = basicInformation.PartyerNum,
|
||||
PersonNum = basicInformation.PersonNum,
|
||||
PartyGroupNum = basicInformation.PartyGroupNum,
|
||||
Commendation = basicInformation.Commendation,
|
||||
Punishment = basicInformation.Punishment
|
||||
};
|
||||
Funs.DB.Party_BasicInformation.InsertOnSubmit(newBasicInformation);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改党支部基本情况
|
||||
/// </summary>
|
||||
/// <param name="basicInformation"></param>
|
||||
public static void UpdateBasicInformation(Model.Party_BasicInformation basicInformation)
|
||||
{
|
||||
Model.Party_BasicInformation newBasicInformation = Funs.DB.Party_BasicInformation.FirstOrDefault(e => e.BasicInformationId == basicInformation.BasicInformationId);
|
||||
if (newBasicInformation != null)
|
||||
{
|
||||
newBasicInformation.Name = basicInformation.Name;
|
||||
newBasicInformation.StartDate = basicInformation.StartDate;
|
||||
newBasicInformation.Component = basicInformation.Component;
|
||||
newBasicInformation.PartyerNum = basicInformation.PartyerNum;
|
||||
newBasicInformation.PersonNum = basicInformation.PersonNum;
|
||||
newBasicInformation.PartyGroupNum = basicInformation.PartyGroupNum;
|
||||
newBasicInformation.Commendation = basicInformation.Commendation;
|
||||
newBasicInformation.Punishment = basicInformation.Punishment;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除党支部基本情况
|
||||
/// </summary>
|
||||
/// <param name="basicInformationId"></param>
|
||||
public static void DeleteBasicInformationById(string basicInformationId)
|
||||
{
|
||||
Model.Party_BasicInformation basicInformation = Funs.DB.Party_BasicInformation.FirstOrDefault(e => e.BasicInformationId == basicInformationId);
|
||||
if (basicInformation != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(basicInformationId);
|
||||
Funs.DB.Party_BasicInformation.DeleteOnSubmit(basicInformation);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 民主评议党员
|
||||
/// </summary>
|
||||
public class CommentPartyerService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取民主评议党员
|
||||
/// </summary>
|
||||
/// <param name="commentPartyerId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_CommentPartyer GetCommentPartyerById(string commentPartyerId)
|
||||
{
|
||||
return Funs.DB.Party_CommentPartyer.FirstOrDefault(e => e.CommentPartyerId == commentPartyerId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加民主评议党员
|
||||
/// </summary>
|
||||
/// <param name="commentPartyer"></param>
|
||||
public static void AddCommentPartyer(Model.Party_CommentPartyer commentPartyer)
|
||||
{
|
||||
Model.Party_CommentPartyer newCommentPartyer = new Model.Party_CommentPartyer
|
||||
{
|
||||
CommentPartyerId = commentPartyer.CommentPartyerId,
|
||||
Year = commentPartyer.Year,
|
||||
ProjectId = commentPartyer.ProjectId,
|
||||
Partyers = commentPartyer.Partyers,
|
||||
Host=commentPartyer.Host,
|
||||
CompileMan = commentPartyer.CompileMan,
|
||||
CompileDate = commentPartyer.CompileDate
|
||||
};
|
||||
Funs.DB.Party_CommentPartyer.InsertOnSubmit(newCommentPartyer);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改民主评议党员
|
||||
/// </summary>
|
||||
/// <param name="commentPartyer"></param>
|
||||
public static void UpdateCommentPartyer(Model.Party_CommentPartyer commentPartyer)
|
||||
{
|
||||
Model.Party_CommentPartyer newCommentPartyer = Funs.DB.Party_CommentPartyer.FirstOrDefault(e => e.CommentPartyerId == commentPartyer.CommentPartyerId);
|
||||
if (newCommentPartyer != null)
|
||||
{
|
||||
newCommentPartyer.ProjectId = commentPartyer.ProjectId;
|
||||
newCommentPartyer.Partyers = commentPartyer.Partyers;
|
||||
newCommentPartyer.Host = commentPartyer.Host;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除民主评议党员
|
||||
/// </summary>
|
||||
/// <param name="commentPartyerId"></param>
|
||||
public static void DeleteCommentPartyerById(string commentPartyerId)
|
||||
{
|
||||
Model.Party_CommentPartyer commentPartyer = Funs.DB.Party_CommentPartyer.FirstOrDefault(e => e.CommentPartyerId == commentPartyerId);
|
||||
if (commentPartyer != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(commentPartyerId);
|
||||
Funs.DB.Party_CommentPartyer.DeleteOnSubmit(commentPartyer);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 为群众办实事
|
||||
/// </summary>
|
||||
public class DoingThingsForMassesService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取为群众办实事
|
||||
/// </summary>
|
||||
/// <param name="doingThingsForMassesId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_DoingThingsForMasses GetDoingThingsForMassesById(string doingThingsForMassesId)
|
||||
{
|
||||
return Funs.DB.Party_DoingThingsForMasses.FirstOrDefault(e => e.DoingThingsForMassesId == doingThingsForMassesId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加为群众办实事
|
||||
/// </summary>
|
||||
/// <param name="doingThingsForMasses"></param>
|
||||
public static void AddDoingThingsForMasses(Model.Party_DoingThingsForMasses doingThingsForMasses)
|
||||
{
|
||||
Model.Party_DoingThingsForMasses newDoingThingsForMasses = new Model.Party_DoingThingsForMasses
|
||||
{
|
||||
DoingThingsForMassesId = doingThingsForMasses.DoingThingsForMassesId,
|
||||
Year = doingThingsForMasses.Year,
|
||||
Name = doingThingsForMasses.Name,
|
||||
DifficultyDescription = doingThingsForMasses.DifficultyDescription,
|
||||
DifficultyType = doingThingsForMasses.DifficultyType,
|
||||
HelpProgram = doingThingsForMasses.HelpProgram,
|
||||
HelpTime = doingThingsForMasses.HelpTime,
|
||||
FollowUp = doingThingsForMasses.FollowUp,
|
||||
CompileMan = doingThingsForMasses.CompileMan,
|
||||
CompileDate = doingThingsForMasses.CompileDate
|
||||
};
|
||||
Funs.DB.Party_DoingThingsForMasses.InsertOnSubmit(newDoingThingsForMasses);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改为群众办实事
|
||||
/// </summary>
|
||||
/// <param name="doingThingsForMasses"></param>
|
||||
public static void UpdateDoingThingsForMasses(Model.Party_DoingThingsForMasses doingThingsForMasses)
|
||||
{
|
||||
Model.Party_DoingThingsForMasses newDoingThingsForMasses = Funs.DB.Party_DoingThingsForMasses.FirstOrDefault(e => e.DoingThingsForMassesId == doingThingsForMasses.DoingThingsForMassesId);
|
||||
if (newDoingThingsForMasses != null)
|
||||
{
|
||||
newDoingThingsForMasses.Name = doingThingsForMasses.Name;
|
||||
newDoingThingsForMasses.DifficultyDescription = doingThingsForMasses.DifficultyDescription;
|
||||
newDoingThingsForMasses.DifficultyType = doingThingsForMasses.DifficultyType;
|
||||
newDoingThingsForMasses.HelpProgram = doingThingsForMasses.HelpProgram;
|
||||
newDoingThingsForMasses.HelpTime = doingThingsForMasses.HelpTime;
|
||||
newDoingThingsForMasses.FollowUp = doingThingsForMasses.FollowUp;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除为群众办实事
|
||||
/// </summary>
|
||||
/// <param name="doingThingsForMassesId"></param>
|
||||
public static void DeleteDoingThingsForMassesById(string doingThingsForMassesId)
|
||||
{
|
||||
Model.Party_DoingThingsForMasses doingThingsForMasses = Funs.DB.Party_DoingThingsForMasses.FirstOrDefault(e => e.DoingThingsForMassesId == doingThingsForMassesId);
|
||||
if (doingThingsForMasses != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(doingThingsForMassesId);
|
||||
Funs.DB.Party_DoingThingsForMasses.DeleteOnSubmit(doingThingsForMasses);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工谈话记录
|
||||
/// </summary>
|
||||
public class EmployeeConversationRecordService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取员工谈话记录
|
||||
/// </summary>
|
||||
/// <param name="employeeConversationRecordId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_EmployeeConversationRecord GetEmployeeConversationRecordById(string employeeConversationRecordId)
|
||||
{
|
||||
return Funs.DB.Party_EmployeeConversationRecord.FirstOrDefault(e => e.EmployeeConversationRecordId == employeeConversationRecordId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加员工谈话记录
|
||||
/// </summary>
|
||||
/// <param name="employeeConversationRecord"></param>
|
||||
public static void AddEmployeeConversationRecord(Model.Party_EmployeeConversationRecord employeeConversationRecord)
|
||||
{
|
||||
Model.Party_EmployeeConversationRecord newEmployeeConversationRecord = new Model.Party_EmployeeConversationRecord
|
||||
{
|
||||
EmployeeConversationRecordId = employeeConversationRecord.EmployeeConversationRecordId,
|
||||
Year = employeeConversationRecord.Year,
|
||||
Speaker = employeeConversationRecord.Speaker,
|
||||
Interviewee = employeeConversationRecord.Interviewee,
|
||||
ConversationDate = employeeConversationRecord.ConversationDate,
|
||||
CompileMan = employeeConversationRecord.CompileMan,
|
||||
CompileDate = employeeConversationRecord.CompileDate
|
||||
};
|
||||
Funs.DB.Party_EmployeeConversationRecord.InsertOnSubmit(newEmployeeConversationRecord);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改员工谈话记录
|
||||
/// </summary>
|
||||
/// <param name="employeeConversationRecord"></param>
|
||||
public static void UpdateEmployeeConversationRecord(Model.Party_EmployeeConversationRecord employeeConversationRecord)
|
||||
{
|
||||
Model.Party_EmployeeConversationRecord newEmployeeConversationRecord = Funs.DB.Party_EmployeeConversationRecord.FirstOrDefault(e => e.EmployeeConversationRecordId == employeeConversationRecord.EmployeeConversationRecordId);
|
||||
if (newEmployeeConversationRecord != null)
|
||||
{
|
||||
newEmployeeConversationRecord.Speaker = employeeConversationRecord.Speaker;
|
||||
newEmployeeConversationRecord.Interviewee = employeeConversationRecord.Interviewee;
|
||||
newEmployeeConversationRecord.ConversationDate = employeeConversationRecord.ConversationDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除员工谈话记录
|
||||
/// </summary>
|
||||
/// <param name="employeeConversationRecordId"></param>
|
||||
public static void DeleteEmployeeConversationRecordById(string employeeConversationRecordId)
|
||||
{
|
||||
Model.Party_EmployeeConversationRecord employeeConversationRecord = Funs.DB.Party_EmployeeConversationRecord.FirstOrDefault(e => e.EmployeeConversationRecordId == employeeConversationRecordId);
|
||||
if (employeeConversationRecord != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(employeeConversationRecordId);
|
||||
Funs.DB.Party_EmployeeConversationRecord.DeleteOnSubmit(employeeConversationRecord);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 集中学习
|
||||
/// </summary>
|
||||
public class FocusLearnService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取集中学习
|
||||
/// </summary>
|
||||
/// <param name="focusLearnId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_FocusLearn GetFocusLearnById(string focusLearnId)
|
||||
{
|
||||
return Funs.DB.Party_FocusLearn.FirstOrDefault(e => e.FocusLearnId == focusLearnId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加集中学习
|
||||
/// </summary>
|
||||
/// <param name="focusLearn"></param>
|
||||
public static void AddFocusLearn(Model.Party_FocusLearn focusLearn)
|
||||
{
|
||||
Model.Party_FocusLearn newFocusLearn = new Model.Party_FocusLearn
|
||||
{
|
||||
FocusLearnId = focusLearn.FocusLearnId,
|
||||
Year = focusLearn.Year,
|
||||
Quarter = focusLearn.Quarter,
|
||||
CompileMan = focusLearn.CompileMan,
|
||||
CompileDate = focusLearn.CompileDate
|
||||
};
|
||||
Funs.DB.Party_FocusLearn.InsertOnSubmit(newFocusLearn);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改集中学习
|
||||
/// </summary>
|
||||
/// <param name="focusLearn"></param>
|
||||
public static void UpdateFocusLearn(Model.Party_FocusLearn focusLearn)
|
||||
{
|
||||
Model.Party_FocusLearn newFocusLearn = Funs.DB.Party_FocusLearn.FirstOrDefault(e => e.FocusLearnId == focusLearn.FocusLearnId);
|
||||
if (newFocusLearn != null)
|
||||
{
|
||||
newFocusLearn.Quarter = focusLearn.Quarter;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除集中学习
|
||||
/// </summary>
|
||||
/// <param name="focusLearnId"></param>
|
||||
public static void DeleteFocusLearnById(string focusLearnId)
|
||||
{
|
||||
Model.Party_FocusLearn focusLearn = Funs.DB.Party_FocusLearn.FirstOrDefault(e => e.FocusLearnId == focusLearnId);
|
||||
if (focusLearn != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(focusLearnId);
|
||||
CommonService.DeleteAttachFileById(focusLearnId + "2");
|
||||
CommonService.DeleteAttachFileById(focusLearnId + "3");
|
||||
Funs.DB.Party_FocusLearn.DeleteOnSubmit(focusLearn);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -47,8 +47,6 @@ namespace BLL
|
||||
Model.Party_LastWorkSummary newLastWorkSummary = Funs.DB.Party_LastWorkSummary.FirstOrDefault(e => e.LastWorkSummaryId == lastWorkSummary.LastWorkSummaryId);
|
||||
if (newLastWorkSummary != null)
|
||||
{
|
||||
newLastWorkSummary.CompileMan = lastWorkSummary.CompileMan;
|
||||
newLastWorkSummary.CompileDate = lastWorkSummary.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 新闻宣传工作
|
||||
/// </summary>
|
||||
public class NewsPropagandaWorkService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取新闻宣传工作
|
||||
/// </summary>
|
||||
/// <param name="newsPropagandaWorkId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_NewsPropagandaWork GetNewsPropagandaWorkById(string newsPropagandaWorkId)
|
||||
{
|
||||
return Funs.DB.Party_NewsPropagandaWork.FirstOrDefault(e => e.NewsPropagandaWorkId == newsPropagandaWorkId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加新闻宣传工作
|
||||
/// </summary>
|
||||
/// <param name="newsPropagandaWork"></param>
|
||||
public static void AddNewsPropagandaWork(Model.Party_NewsPropagandaWork newsPropagandaWork)
|
||||
{
|
||||
Model.Party_NewsPropagandaWork newNewsPropagandaWork = new Model.Party_NewsPropagandaWork
|
||||
{
|
||||
NewsPropagandaWorkId = newsPropagandaWork.NewsPropagandaWorkId,
|
||||
Year = newsPropagandaWork.Year,
|
||||
NewsDate = newsPropagandaWork.NewsDate,
|
||||
Author = newsPropagandaWork.Author,
|
||||
CompileMan = newsPropagandaWork.CompileMan,
|
||||
CompileDate = newsPropagandaWork.CompileDate
|
||||
};
|
||||
Funs.DB.Party_NewsPropagandaWork.InsertOnSubmit(newNewsPropagandaWork);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改新闻宣传工作
|
||||
/// </summary>
|
||||
/// <param name="newsPropagandaWork"></param>
|
||||
public static void UpdateNewsPropagandaWork(Model.Party_NewsPropagandaWork newsPropagandaWork)
|
||||
{
|
||||
Model.Party_NewsPropagandaWork newNewsPropagandaWork = Funs.DB.Party_NewsPropagandaWork.FirstOrDefault(e => e.NewsPropagandaWorkId == newsPropagandaWork.NewsPropagandaWorkId);
|
||||
if (newNewsPropagandaWork != null)
|
||||
{
|
||||
newNewsPropagandaWork.NewsDate = newsPropagandaWork.NewsDate;
|
||||
newNewsPropagandaWork.Author = newsPropagandaWork.Author;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除新闻宣传工作
|
||||
/// </summary>
|
||||
/// <param name="newsPropagandaWorkId"></param>
|
||||
public static void DeleteNewsPropagandaWorkById(string newsPropagandaWorkId)
|
||||
{
|
||||
Model.Party_NewsPropagandaWork newsPropagandaWork = Funs.DB.Party_NewsPropagandaWork.FirstOrDefault(e => e.NewsPropagandaWorkId == newsPropagandaWorkId);
|
||||
if (newsPropagandaWork != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(newsPropagandaWorkId);
|
||||
Funs.DB.Party_NewsPropagandaWork.DeleteOnSubmit(newsPropagandaWork);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -55,8 +55,6 @@ namespace BLL
|
||||
newOrganizingLife.Theme = organizingLife.Theme;
|
||||
newOrganizingLife.OrganizingLifeDate = organizingLife.OrganizingLifeDate;
|
||||
newOrganizingLife.Partyers = organizingLife.Partyers;
|
||||
newOrganizingLife.CompileMan = organizingLife.CompileMan;
|
||||
newOrganizingLife.CompileDate = organizingLife.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,8 +49,6 @@ namespace BLL
|
||||
if (newPartyCommittee != null)
|
||||
{
|
||||
newPartyCommittee.Month = partyCommittee.Month;
|
||||
newPartyCommittee.CompileMan = partyCommittee.CompileMan;
|
||||
newPartyCommittee.CompileDate = partyCommittee.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,8 +49,6 @@ namespace BLL
|
||||
if (newPartyCongress != null)
|
||||
{
|
||||
newPartyCongress.Quarter = partyCongress.Quarter;
|
||||
newPartyCongress.CompileMan = partyCongress.CompileMan;
|
||||
newPartyCongress.CompileDate = partyCongress.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 党史学习教育
|
||||
/// </summary>
|
||||
public class PartyHistoryStudyService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取党史学习教育
|
||||
/// </summary>
|
||||
/// <param name="partyHistoryStudyId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_PartyHistoryStudy GetPartyHistoryStudyById(string partyHistoryStudyId)
|
||||
{
|
||||
return Funs.DB.Party_PartyHistoryStudy.FirstOrDefault(e => e.PartyHistoryStudyId == partyHistoryStudyId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加党史学习教育
|
||||
/// </summary>
|
||||
/// <param name="partyHistoryStudy"></param>
|
||||
public static void AddPartyHistoryStudy(Model.Party_PartyHistoryStudy partyHistoryStudy)
|
||||
{
|
||||
Model.Party_PartyHistoryStudy newPartyHistoryStudy = new Model.Party_PartyHistoryStudy
|
||||
{
|
||||
PartyHistoryStudyId = partyHistoryStudy.PartyHistoryStudyId,
|
||||
Year = partyHistoryStudy.Year,
|
||||
StudyDate = partyHistoryStudy.StudyDate,
|
||||
Speaker = partyHistoryStudy.Speaker,
|
||||
Theme = partyHistoryStudy.Theme,
|
||||
CompileMan = partyHistoryStudy.CompileMan,
|
||||
CompileDate = partyHistoryStudy.CompileDate
|
||||
};
|
||||
Funs.DB.Party_PartyHistoryStudy.InsertOnSubmit(newPartyHistoryStudy);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改党史学习教育
|
||||
/// </summary>
|
||||
/// <param name="partyHistoryStudy"></param>
|
||||
public static void UpdatePartyHistoryStudy(Model.Party_PartyHistoryStudy partyHistoryStudy)
|
||||
{
|
||||
Model.Party_PartyHistoryStudy newPartyHistoryStudy = Funs.DB.Party_PartyHistoryStudy.FirstOrDefault(e => e.PartyHistoryStudyId == partyHistoryStudy.PartyHistoryStudyId);
|
||||
if (newPartyHistoryStudy != null)
|
||||
{
|
||||
newPartyHistoryStudy.StudyDate = partyHistoryStudy.StudyDate;
|
||||
newPartyHistoryStudy.Speaker = partyHistoryStudy.Speaker;
|
||||
newPartyHistoryStudy.Theme = partyHistoryStudy.Theme;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除党史学习教育
|
||||
/// </summary>
|
||||
/// <param name="partyHistoryStudyId"></param>
|
||||
public static void DeletePartyHistoryStudyById(string partyHistoryStudyId)
|
||||
{
|
||||
Model.Party_PartyHistoryStudy partyHistoryStudy = Funs.DB.Party_PartyHistoryStudy.FirstOrDefault(e => e.PartyHistoryStudyId == partyHistoryStudyId);
|
||||
if (partyHistoryStudy != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(partyHistoryStudyId);
|
||||
Funs.DB.Party_PartyHistoryStudy.DeleteOnSubmit(partyHistoryStudy);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,8 +49,6 @@ namespace BLL
|
||||
if (newPartyLecture != null)
|
||||
{
|
||||
newPartyLecture.Quarter = partyLecture.Quarter;
|
||||
newPartyLecture.CompileMan = partyLecture.CompileMan;
|
||||
newPartyLecture.CompileDate = partyLecture.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,8 +49,6 @@ namespace BLL
|
||||
if (newPartyMeeting != null)
|
||||
{
|
||||
newPartyMeeting.Month = partyMeeting.Month;
|
||||
newPartyMeeting.CompileMan = partyMeeting.CompileMan;
|
||||
newPartyMeeting.CompileDate = partyMeeting.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 党组织工作经费使用
|
||||
/// </summary>
|
||||
public class PartyMoneyUseService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取党组织工作经费使用
|
||||
/// </summary>
|
||||
/// <param name="partyMoneyUseId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_PartyMoneyUse GetPartyMoneyUseById(string partyMoneyUseId)
|
||||
{
|
||||
return Funs.DB.Party_PartyMoneyUse.FirstOrDefault(e => e.PartyMoneyUseId == partyMoneyUseId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加党组织工作经费使用
|
||||
/// </summary>
|
||||
/// <param name="partyMoneyUse"></param>
|
||||
public static void AddPartyMoneyUse(Model.Party_PartyMoneyUse partyMoneyUse)
|
||||
{
|
||||
Model.Party_PartyMoneyUse newPartyMoneyUse = new Model.Party_PartyMoneyUse
|
||||
{
|
||||
PartyMoneyUseId = partyMoneyUse.PartyMoneyUseId,
|
||||
Year = partyMoneyUse.Year,
|
||||
UseDate = partyMoneyUse.UseDate,
|
||||
Purpose = partyMoneyUse.Purpose,
|
||||
Cost = partyMoneyUse.Cost,
|
||||
Partyers = partyMoneyUse.Partyers,
|
||||
CompileMan = partyMoneyUse.CompileMan,
|
||||
CompileDate = partyMoneyUse.CompileDate
|
||||
};
|
||||
Funs.DB.Party_PartyMoneyUse.InsertOnSubmit(newPartyMoneyUse);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改党组织工作经费使用
|
||||
/// </summary>
|
||||
/// <param name="partyMoneyUse"></param>
|
||||
public static void UpdatePartyMoneyUse(Model.Party_PartyMoneyUse partyMoneyUse)
|
||||
{
|
||||
Model.Party_PartyMoneyUse newPartyMoneyUse = Funs.DB.Party_PartyMoneyUse.FirstOrDefault(e => e.PartyMoneyUseId == partyMoneyUse.PartyMoneyUseId);
|
||||
if (newPartyMoneyUse != null)
|
||||
{
|
||||
newPartyMoneyUse.UseDate = partyMoneyUse.UseDate;
|
||||
newPartyMoneyUse.Purpose = partyMoneyUse.Purpose;
|
||||
newPartyMoneyUse.Cost = partyMoneyUse.Cost;
|
||||
newPartyMoneyUse.Partyers = partyMoneyUse.Partyers;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除党组织工作经费使用
|
||||
/// </summary>
|
||||
/// <param name="partyMoneyUseId"></param>
|
||||
public static void DeletePartyMoneyUseById(string partyMoneyUseId)
|
||||
{
|
||||
Model.Party_PartyMoneyUse partyMoneyUse = Funs.DB.Party_PartyMoneyUse.FirstOrDefault(e => e.PartyMoneyUseId == partyMoneyUseId);
|
||||
if (partyMoneyUse != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(partyMoneyUseId);
|
||||
Funs.DB.Party_PartyMoneyUse.DeleteOnSubmit(partyMoneyUse);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 党员先锋岗、示范岗
|
||||
/// </summary>
|
||||
public class PartyPioneerDemonstrationService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取党员先锋岗、示范岗
|
||||
/// </summary>
|
||||
/// <param name="partyPioneerDemonstrationId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_PartyPioneerDemonstration GetPartyPioneerDemonstrationById(string partyPioneerDemonstrationId)
|
||||
{
|
||||
return Funs.DB.Party_PartyPioneerDemonstration.FirstOrDefault(e => e.PartyPioneerDemonstrationId == partyPioneerDemonstrationId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加党员先锋岗、示范岗
|
||||
/// </summary>
|
||||
/// <param name="partyPioneerDemonstration"></param>
|
||||
public static void AddPartyPioneerDemonstration(Model.Party_PartyPioneerDemonstration partyPioneerDemonstration)
|
||||
{
|
||||
Model.Party_PartyPioneerDemonstration newPartyPioneerDemonstration = new Model.Party_PartyPioneerDemonstration
|
||||
{
|
||||
PartyPioneerDemonstrationId = partyPioneerDemonstration.PartyPioneerDemonstrationId,
|
||||
Year = partyPioneerDemonstration.Year,
|
||||
PartyerId = partyPioneerDemonstration.PartyerId,
|
||||
Introduce = partyPioneerDemonstration.Introduce,
|
||||
Deeds = partyPioneerDemonstration.Deeds,
|
||||
Summary = partyPioneerDemonstration.Summary,
|
||||
CompileMan = partyPioneerDemonstration.CompileMan,
|
||||
CompileDate = partyPioneerDemonstration.CompileDate
|
||||
};
|
||||
Funs.DB.Party_PartyPioneerDemonstration.InsertOnSubmit(newPartyPioneerDemonstration);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改党员先锋岗、示范岗
|
||||
/// </summary>
|
||||
/// <param name="partyPioneerDemonstration"></param>
|
||||
public static void UpdatePartyPioneerDemonstration(Model.Party_PartyPioneerDemonstration partyPioneerDemonstration)
|
||||
{
|
||||
Model.Party_PartyPioneerDemonstration newPartyPioneerDemonstration = Funs.DB.Party_PartyPioneerDemonstration.FirstOrDefault(e => e.PartyPioneerDemonstrationId == partyPioneerDemonstration.PartyPioneerDemonstrationId);
|
||||
if (newPartyPioneerDemonstration != null)
|
||||
{
|
||||
newPartyPioneerDemonstration.PartyerId = partyPioneerDemonstration.PartyerId;
|
||||
newPartyPioneerDemonstration.Introduce = partyPioneerDemonstration.Introduce;
|
||||
newPartyPioneerDemonstration.Deeds = partyPioneerDemonstration.Deeds;
|
||||
newPartyPioneerDemonstration.Summary = partyPioneerDemonstration.Summary;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除党员先锋岗、示范岗
|
||||
/// </summary>
|
||||
/// <param name="partyPioneerDemonstrationId"></param>
|
||||
public static void DeletePartyPioneerDemonstrationById(string partyPioneerDemonstrationId)
|
||||
{
|
||||
Model.Party_PartyPioneerDemonstration partyPioneerDemonstration = Funs.DB.Party_PartyPioneerDemonstration.FirstOrDefault(e => e.PartyPioneerDemonstrationId == partyPioneerDemonstrationId);
|
||||
if (partyPioneerDemonstration != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(partyPioneerDemonstrationId);
|
||||
Funs.DB.Party_PartyPioneerDemonstration.DeleteOnSubmit(partyPioneerDemonstration);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 党员名册
|
||||
/// </summary>
|
||||
public class PartyerService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取党员名册
|
||||
/// </summary>
|
||||
/// <param name="partyerId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_Partyer GetPartyerById(string partyerId)
|
||||
{
|
||||
return Funs.DB.Party_Partyer.FirstOrDefault(e => e.PartyerId == partyerId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加党员名册
|
||||
/// </summary>
|
||||
/// <param name="partyer"></param>
|
||||
public static void AddPartyer(Model.Party_Partyer partyer)
|
||||
{
|
||||
Model.Party_Partyer newPartyer = new Model.Party_Partyer
|
||||
{
|
||||
PartyerId = partyer.PartyerId,
|
||||
Name = partyer.Name,
|
||||
Sex = partyer.Sex,
|
||||
BirthDate = partyer.BirthDate,
|
||||
Education = partyer.Education,
|
||||
Nation = partyer.Nation,
|
||||
JoinPartyDate = partyer.JoinPartyDate,
|
||||
JoinPostDate = partyer.JoinPostDate,
|
||||
Post = partyer.Post,
|
||||
Phone = partyer.Phone,
|
||||
PartyRelationInDate = partyer.PartyRelationInDate,
|
||||
PartyRelationOutDate = partyer.PartyRelationOutDate
|
||||
};
|
||||
Funs.DB.Party_Partyer.InsertOnSubmit(newPartyer);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改党员名册
|
||||
/// </summary>
|
||||
/// <param name="partyer"></param>
|
||||
public static void UpdatePartyer(Model.Party_Partyer partyer)
|
||||
{
|
||||
Model.Party_Partyer newPartyer = Funs.DB.Party_Partyer.FirstOrDefault(e => e.PartyerId == partyer.PartyerId);
|
||||
if (newPartyer != null)
|
||||
{
|
||||
newPartyer.Name = partyer.Name;
|
||||
newPartyer.Sex = partyer.Sex;
|
||||
newPartyer.BirthDate = partyer.BirthDate;
|
||||
newPartyer.Education = partyer.Education;
|
||||
newPartyer.Nation = partyer.Nation;
|
||||
newPartyer.JoinPartyDate = partyer.JoinPartyDate;
|
||||
newPartyer.JoinPostDate = partyer.JoinPostDate;
|
||||
newPartyer.Post = partyer.Post;
|
||||
newPartyer.Phone = partyer.Phone;
|
||||
newPartyer.PartyRelationInDate = partyer.PartyRelationInDate;
|
||||
newPartyer.PartyRelationOutDate = partyer.PartyRelationOutDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除党员名册
|
||||
/// </summary>
|
||||
/// <param name="partyerId"></param>
|
||||
public static void DeletePartyerById(string partyerId)
|
||||
{
|
||||
Model.Party_Partyer partyer = Funs.DB.Party_Partyer.FirstOrDefault(e => e.PartyerId == partyerId);
|
||||
if (partyer != null)
|
||||
{
|
||||
Funs.DB.Party_Partyer.DeleteOnSubmit(partyer);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取党员下拉选项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Party_Partyer> GetPartyerList()
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
List<Model.Party_Partyer> list = new List<Model.Party_Partyer>();
|
||||
list = (from x in db.Party_Partyer
|
||||
orderby x.Name
|
||||
select x).ToList();
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 党员下拉框
|
||||
/// </summary>
|
||||
/// <param name="dropName">下拉框名字</param>
|
||||
/// <param name="isShowPlease">是否显示请选择</param>
|
||||
public static void InitPartyerDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "PartyerId";
|
||||
dropName.DataTextField = "Name";
|
||||
dropName.DataSource = GetPartyerList();
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取党员姓名
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string GetNameByPartyId(string partyId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
string name = null;
|
||||
Model.Party_Partyer partyer = db.Party_Partyer.FirstOrDefault(x=>x.PartyerId== partyId);
|
||||
if (partyer != null)
|
||||
{
|
||||
name = partyer.Name;
|
||||
}
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
#region 根据多党员ID得到党员名称字符串
|
||||
/// <summary>
|
||||
/// 根据多党员ID得到党员名称字符串
|
||||
/// </summary>
|
||||
/// <param name="partyIds"></param>
|
||||
/// <returns></returns>
|
||||
public static string getNamesPartyIds(object partyIds)
|
||||
{
|
||||
string name = string.Empty;
|
||||
if (partyIds != null)
|
||||
{
|
||||
string[] ids = partyIds.ToString().Split(',');
|
||||
foreach (string id in ids)
|
||||
{
|
||||
var q = GetNameByPartyId(id);
|
||||
if (q != null)
|
||||
{
|
||||
name += q + ",";
|
||||
}
|
||||
}
|
||||
if (name != string.Empty)
|
||||
{
|
||||
name = name.Substring(0, name.Length - 1); ;
|
||||
}
|
||||
}
|
||||
|
||||
return name;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 主题党日活动
|
||||
/// </summary>
|
||||
public class ThemePartyDayService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取主题党日活动
|
||||
/// </summary>
|
||||
/// <param name="themePartyDayId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_ThemePartyDay GetThemePartyDayById(string themePartyDayId)
|
||||
{
|
||||
return Funs.DB.Party_ThemePartyDay.FirstOrDefault(e => e.ThemePartyDayId == themePartyDayId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加主题党日活动
|
||||
/// </summary>
|
||||
/// <param name="themePartyDay"></param>
|
||||
public static void AddThemePartyDay(Model.Party_ThemePartyDay themePartyDay)
|
||||
{
|
||||
Model.Party_ThemePartyDay newThemePartyDay = new Model.Party_ThemePartyDay
|
||||
{
|
||||
ThemePartyDayId = themePartyDay.ThemePartyDayId,
|
||||
Year = themePartyDay.Year,
|
||||
ConveneDate = themePartyDay.ConveneDate,
|
||||
Theme = themePartyDay.Theme,
|
||||
CompileMan = themePartyDay.CompileMan,
|
||||
CompileDate = themePartyDay.CompileDate
|
||||
};
|
||||
Funs.DB.Party_ThemePartyDay.InsertOnSubmit(newThemePartyDay);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改主题党日活动
|
||||
/// </summary>
|
||||
/// <param name="themePartyDay"></param>
|
||||
public static void UpdateThemePartyDay(Model.Party_ThemePartyDay themePartyDay)
|
||||
{
|
||||
Model.Party_ThemePartyDay newThemePartyDay = Funs.DB.Party_ThemePartyDay.FirstOrDefault(e => e.ThemePartyDayId == themePartyDay.ThemePartyDayId);
|
||||
if (newThemePartyDay != null)
|
||||
{
|
||||
newThemePartyDay.ConveneDate = themePartyDay.ConveneDate;
|
||||
newThemePartyDay.Theme = themePartyDay.Theme;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除主题党日活动
|
||||
/// </summary>
|
||||
/// <param name="themePartyDayId"></param>
|
||||
public static void DeleteThemePartyDayById(string themePartyDayId)
|
||||
{
|
||||
Model.Party_ThemePartyDay themePartyDay = Funs.DB.Party_ThemePartyDay.FirstOrDefault(e => e.ThemePartyDayId == themePartyDayId);
|
||||
if (themePartyDay != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(themePartyDayId);
|
||||
Funs.DB.Party_ThemePartyDay.DeleteOnSubmit(themePartyDay);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// “两优一先”评选表
|
||||
/// </summary>
|
||||
public class TwoOneGoodSelectionService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取“两优一先”评选表
|
||||
/// </summary>
|
||||
/// <param name="twoOneGoodSelectionId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_TwoOneGoodSelection GetTwoOneGoodSelectionById(string twoOneGoodSelectionId)
|
||||
{
|
||||
return Funs.DB.Party_TwoOneGoodSelection.FirstOrDefault(e => e.TwoOneGoodSelectionId == twoOneGoodSelectionId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据类别获取字符串
|
||||
/// </summary>
|
||||
/// <param name="selectionType"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetSelectionType(string selectionType)
|
||||
{
|
||||
string type = string.Empty;
|
||||
if (selectionType == "1")
|
||||
{
|
||||
type = "优秀党员";
|
||||
}
|
||||
else if (selectionType == "2")
|
||||
{
|
||||
type = "优秀党务工作者";
|
||||
}
|
||||
else if (selectionType == "3")
|
||||
{
|
||||
type = "先进基层党支部";
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取当选人/党支部
|
||||
/// </summary>
|
||||
/// <param name="twoOneGoodSelectionId"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetName(string twoOneGoodSelectionId)
|
||||
{
|
||||
string name = string.Empty;
|
||||
Model.Party_TwoOneGoodSelection twoOneGoodSelection = Funs.DB.Party_TwoOneGoodSelection.FirstOrDefault(x=>x.TwoOneGoodSelectionId== twoOneGoodSelectionId);
|
||||
if (twoOneGoodSelection != null)
|
||||
{
|
||||
if (twoOneGoodSelection.SelectionType == "3")
|
||||
{
|
||||
name = twoOneGoodSelection.PartyBranch;
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.Party_Partyer partyer = Funs.DB.Party_Partyer.FirstOrDefault(x=>x.PartyerId==twoOneGoodSelection.PartyerId);
|
||||
if (partyer != null)
|
||||
{
|
||||
name = partyer.Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加“两优一先”评选表
|
||||
/// </summary>
|
||||
/// <param name="twoOneGoodSelection"></param>
|
||||
public static void AddTwoOneGoodSelection(Model.Party_TwoOneGoodSelection twoOneGoodSelection)
|
||||
{
|
||||
Model.Party_TwoOneGoodSelection newTwoOneGoodSelection = new Model.Party_TwoOneGoodSelection
|
||||
{
|
||||
TwoOneGoodSelectionId = twoOneGoodSelection.TwoOneGoodSelectionId,
|
||||
Year = twoOneGoodSelection.Year,
|
||||
SelectionType = twoOneGoodSelection.SelectionType,
|
||||
PartyerId = twoOneGoodSelection.PartyerId,
|
||||
PartyBranch = twoOneGoodSelection.PartyBranch,
|
||||
CompileMan = twoOneGoodSelection.CompileMan,
|
||||
CompileDate = twoOneGoodSelection.CompileDate
|
||||
};
|
||||
Funs.DB.Party_TwoOneGoodSelection.InsertOnSubmit(newTwoOneGoodSelection);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改“两优一先”评选表
|
||||
/// </summary>
|
||||
/// <param name="twoOneGoodSelection"></param>
|
||||
public static void UpdateTwoOneGoodSelection(Model.Party_TwoOneGoodSelection twoOneGoodSelection)
|
||||
{
|
||||
Model.Party_TwoOneGoodSelection newTwoOneGoodSelection = Funs.DB.Party_TwoOneGoodSelection.FirstOrDefault(e => e.TwoOneGoodSelectionId == twoOneGoodSelection.TwoOneGoodSelectionId);
|
||||
if (newTwoOneGoodSelection != null)
|
||||
{
|
||||
newTwoOneGoodSelection.SelectionType = twoOneGoodSelection.SelectionType;
|
||||
newTwoOneGoodSelection.PartyerId = twoOneGoodSelection.PartyerId;
|
||||
newTwoOneGoodSelection.PartyBranch = twoOneGoodSelection.PartyBranch;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除“两优一先”评选表
|
||||
/// </summary>
|
||||
/// <param name="twoOneGoodSelectionId"></param>
|
||||
public static void DeleteTwoOneGoodSelectionById(string twoOneGoodSelectionId)
|
||||
{
|
||||
Model.Party_TwoOneGoodSelection twoOneGoodSelection = Funs.DB.Party_TwoOneGoodSelection.FirstOrDefault(e => e.TwoOneGoodSelectionId == twoOneGoodSelectionId);
|
||||
if (twoOneGoodSelection != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(twoOneGoodSelectionId);
|
||||
Funs.DB.Party_TwoOneGoodSelection.DeleteOnSubmit(twoOneGoodSelection);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -47,8 +47,6 @@ namespace BLL
|
||||
Model.Party_WorkPlan newWorkPlan = Funs.DB.Party_WorkPlan.FirstOrDefault(e => e.WorkPlanId == workPlan.WorkPlanId);
|
||||
if (newWorkPlan != null)
|
||||
{
|
||||
newWorkPlan.CompileMan = workPlan.CompileMan;
|
||||
newWorkPlan.CompileDate = workPlan.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,16 +34,17 @@ namespace BLL
|
||||
/// <returns>true-可以,false-不可以</returns>
|
||||
public static bool IsCanAddInstallation(string installationId)
|
||||
{
|
||||
var installation = from x in Funs.DB.Project_Installation
|
||||
join y in Funs.DB.Project_Installation
|
||||
on x.InstallationId equals y.SuperInstallationId
|
||||
join z in Funs.DB.Project_Installation
|
||||
on y.InstallationId equals z.SuperInstallationId
|
||||
where z.InstallationId == installationId
|
||||
select x;
|
||||
if (installation.Count() > 0)
|
||||
var installation = Funs.DB.Project_Installation.FirstOrDefault(x => x.InstallationId == installationId);
|
||||
if (installation != null)
|
||||
{
|
||||
return false;
|
||||
if (installation.IsEnd == true)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -81,6 +82,57 @@ namespace BLL
|
||||
return (from x in Funs.DB.Project_Installation where x.SuperInstallationId == superInstallationId select x).Count() > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据id获取所有父级装置id
|
||||
/// </summary>
|
||||
/// <param name="installationId">名称</param>
|
||||
/// <returns></returns>
|
||||
public static string GetParentInstallationIds(string installationId)
|
||||
{
|
||||
string ids = string.Empty;
|
||||
var ins = Funs.DB.Project_Installation.FirstOrDefault(x => x.InstallationId == installationId);
|
||||
if (ins != null)
|
||||
{
|
||||
ids = GetIds(ins.SuperInstallationId);
|
||||
}
|
||||
return ids;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据id获取末级装置id
|
||||
/// </summary>
|
||||
/// <param name="installationId">名称</param>
|
||||
/// <returns></returns>
|
||||
public static string GetEndInstallationId(string installationId)
|
||||
{
|
||||
string id = string.Empty;
|
||||
var ins = Funs.DB.Project_Installation.FirstOrDefault(x => x.SuperInstallationId == installationId);
|
||||
if (ins.IsEnd == true)
|
||||
{
|
||||
id = ins.InstallationId;
|
||||
}
|
||||
else
|
||||
{
|
||||
id = GetEndInstallationId(ins.InstallationId);
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
private static string GetIds(string installationId)
|
||||
{
|
||||
string ids = string.Empty;
|
||||
var ins = Funs.DB.Project_Installation.FirstOrDefault(x => x.InstallationId == installationId.Split(',')[0]);
|
||||
if (ins != null)
|
||||
{
|
||||
ids = GetIds(ins.SuperInstallationId + "," + installationId);
|
||||
}
|
||||
else
|
||||
{
|
||||
ids = installationId;
|
||||
}
|
||||
return ids;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加装置
|
||||
/// </summary>
|
||||
@@ -99,6 +151,7 @@ namespace BLL
|
||||
newIns.Weights = installation.Weights;
|
||||
newIns.WeightsMoney = installation.WeightsMoney;
|
||||
newIns.Def = installation.Def;
|
||||
newIns.IsEnd = installation.IsEnd;
|
||||
|
||||
db.Project_Installation.InsertOnSubmit(newIns);
|
||||
db.SubmitChanges();
|
||||
@@ -123,6 +176,7 @@ namespace BLL
|
||||
newIns.Def = installation.Def;
|
||||
newIns.SortIndex = installation.SortIndex;
|
||||
newIns.UnitId = installation.UnitId;
|
||||
newIns.IsEnd = installation.IsEnd;
|
||||
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
@@ -36,8 +36,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
GetButtonPower();
|
||||
BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true);
|
||||
BLL.UnitWorkService.InitUnitWorkDownList(this.drpUnitWorkIds, this.CurrUser.LoginProjectId, false);
|
||||
BLL.UnitService.InitUnitDownList(this.drpUnitIds, this.CurrUser.LoginProjectId, false);
|
||||
|
||||
BLL.UnitService.GetUnit(this.drpUnitIds, this.CurrUser.LoginProjectId, false);
|
||||
this.DesignDrawingsId = Request.Params["DesignDrawingsId"];
|
||||
Model.Comprehensive_DesignDrawings designDrawings = BLL.DesignDrawingsService.GetDesignDrawingsById(this.DesignDrawingsId);
|
||||
if (designDrawings != null)
|
||||
|
||||
@@ -58,12 +58,13 @@
|
||||
<f:RenderField ColumnID="InspectionCode" DataField="InspectionCode" FieldType="String" HeaderText="报验编号" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="150px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="EquipmentNO" DataField="EquipmentNO" FieldType="String" HeaderText="设备位号" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="150px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="ProfessionalName" DataField="ProfessionalName" FieldType="String" HeaderText="专业" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="EquipmentOrMatail" DataField="EquipmentOrMatail" FieldType="String" HeaderText="设备/材料" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="100px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="InspectionName" DataField="InspectionName" FieldType="String" HeaderText="名称" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace FineUIPro.Web.Comprehensive
|
||||
/// </summary>
|
||||
public void BindGrid()
|
||||
{
|
||||
string strSql = @"select InspectionEquipmentId,ProjectId,C.UnitId, U.UnitName,InspectionCode,CN.ProfessionalName,InspectionName,Specifications,
|
||||
string strSql = @"select InspectionEquipmentId,ProjectId,C.UnitId, U.UnitName,InspectionCode,CN.ProfessionalName,EquipmentOrMatail,InspectionName,Specifications,
|
||||
Supplier,Counts,SamplingCount,(CASE WHEN SamplingResult=1 THEN '合格' WHEN SamplingResult=0 THEN '不合格' ELSE '' END) AS SamplingResult,
|
||||
InspectionDate,AttachUrl,Attribute,RemarkCode,UsedPlace,EquipmentNO from Comprehensive_InspectionEquipment C
|
||||
left join Base_Unit U on C.UnitId=U.UnitId
|
||||
|
||||
@@ -187,15 +187,32 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
result += (i + 2).ToString() + "," + "报验编号" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
|
||||
string row3 = pds.Rows[i][3].ToString();
|
||||
if (!string.IsNullOrEmpty(row3))
|
||||
string row2 = pds.Rows[i][2].ToString();
|
||||
if (!string.IsNullOrEmpty(row2))
|
||||
{
|
||||
var cn = cns.Where(x => x.ProfessionalName == row3.Trim()).FirstOrDefault();
|
||||
var cn = cns.Where(x => x.ProfessionalName == row2.Trim()).FirstOrDefault();
|
||||
if (cn == null)
|
||||
{
|
||||
result += (i + 2).ToString() + "," + "专业名称" + "," + "[" + row3 + "]不存在!" + "|";
|
||||
result += (i + 2).ToString() + "," + "专业名称" + "," + "[" + row2 + "]不存在!" + "|";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result += (i + 2).ToString() + "," + "专业名称" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
|
||||
string row3 = pds.Rows[i][3].ToString().Trim();
|
||||
if (!string.IsNullOrEmpty(row3))
|
||||
{
|
||||
if (row3 != "设备" && row3 != "材料")
|
||||
{
|
||||
result += (i + 2).ToString() + "," + "设备/材料" + "," + "[" + row2 + "]错误!" + "|";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result += (i + 2).ToString() + "," + "设备/材料" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
|
||||
string row9 = pds.Rows[i][9].ToString().Trim();
|
||||
if (!string.IsNullOrEmpty(row9))
|
||||
@@ -244,7 +261,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
errorInfos.Clear();
|
||||
if (!string.IsNullOrEmpty(result))
|
||||
{
|
||||
|
||||
|
||||
string results = result;
|
||||
List<string> errorInfoList = results.Split('|').ToList();
|
||||
foreach (var item in errorInfoList)
|
||||
@@ -393,31 +410,31 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
// ).FirstOrDefault();
|
||||
//if (oldViewInfo == null)
|
||||
//{
|
||||
Model.Comprehensive_InspectionEquipment Ins = new Model.Comprehensive_InspectionEquipment();
|
||||
Ins.ProjectId = this.CurrUser.LoginProjectId;
|
||||
Ins.UnitId = unitInfo.UnitId;
|
||||
Ins.InspectionCode = pds.Rows[i][1].ToString().Trim();
|
||||
Ins.EquipmentNO = pds.Rows[i][2].ToString().Trim();
|
||||
if (!string.IsNullOrEmpty(pds.Rows[i][3].ToString().Trim()))
|
||||
{
|
||||
Ins.CNProfessionalId = Funs.DB.Base_CNProfessional.First(e => e.ProfessionalName == pds.Rows[i][3].ToString().Trim()).CNProfessionalId;
|
||||
}
|
||||
Ins.InspectionName = pds.Rows[i][4].ToString().Trim();
|
||||
Ins.Specifications = pds.Rows[i][5].ToString().Trim();
|
||||
Ins.Supplier = pds.Rows[i][6].ToString().Trim();
|
||||
Ins.Counts = pds.Rows[i][7].ToString().Trim();
|
||||
Ins.SamplingCount = pds.Rows[i][8].ToString().Trim();
|
||||
Ins.SamplingResult = pds.Rows[i][9].ToString().Trim() == "合格" ? "1" : "2";
|
||||
Model.Comprehensive_InspectionEquipment Ins = new Model.Comprehensive_InspectionEquipment();
|
||||
Ins.ProjectId = this.CurrUser.LoginProjectId;
|
||||
Ins.UnitId = unitInfo.UnitId;
|
||||
Ins.InspectionCode = pds.Rows[i][1].ToString().Trim();
|
||||
if (!string.IsNullOrEmpty(pds.Rows[i][2].ToString().Trim()))
|
||||
{
|
||||
Ins.CNProfessionalId = Funs.DB.Base_CNProfessional.First(e => e.ProfessionalName == pds.Rows[i][2].ToString().Trim()).CNProfessionalId;
|
||||
}
|
||||
Ins.EquipmentOrMatail = pds.Rows[i][3].ToString().Trim();
|
||||
Ins.InspectionName = pds.Rows[i][4].ToString().Trim();
|
||||
Ins.Specifications = pds.Rows[i][5].ToString().Trim();
|
||||
Ins.Supplier = pds.Rows[i][6].ToString().Trim();
|
||||
Ins.Counts = pds.Rows[i][7].ToString().Trim();
|
||||
Ins.SamplingCount = pds.Rows[i][8].ToString().Trim();
|
||||
Ins.SamplingResult = pds.Rows[i][9].ToString().Trim() == "合格" ? "1" : "2";
|
||||
|
||||
if (!string.IsNullOrEmpty(pds.Rows[i][10].ToString().Trim()))
|
||||
{
|
||||
Ins.InspectionDate = Convert.ToDateTime(pds.Rows[i][10].ToString().Trim());
|
||||
}
|
||||
Ins.RemarkCode = pds.Rows[i][11].ToString().Trim();
|
||||
Ins.InspectionEquipmentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_InspectionEquipment));
|
||||
Ins.CompileMan = this.CurrUser.UserId;
|
||||
Ins.CompileDate = DateTime.Now.Date;
|
||||
BLL.InspectionEquipmentService.AddInspectionEquipment(Ins);
|
||||
if (!string.IsNullOrEmpty(pds.Rows[i][10].ToString().Trim()))
|
||||
{
|
||||
Ins.InspectionDate = Convert.ToDateTime(pds.Rows[i][10].ToString().Trim());
|
||||
}
|
||||
Ins.RemarkCode = pds.Rows[i][11].ToString().Trim();
|
||||
Ins.InspectionEquipmentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_InspectionEquipment));
|
||||
Ins.CompileMan = this.CurrUser.UserId;
|
||||
Ins.CompileDate = DateTime.Now.Date;
|
||||
BLL.InspectionEquipmentService.AddInspectionEquipment(Ins);
|
||||
|
||||
//}
|
||||
//else
|
||||
@@ -431,7 +448,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
result += (i + 2).ToString() + "," + "单位名称" + "," + "[" + row0 + "]不存在!" + "|";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -21,8 +21,12 @@
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtEquipmentNo" runat="server" Label="设备位号" MaxLength="50" LabelAlign="Right" LabelWidth="120px"></f:TextBox>
|
||||
<f:DropDownList ID="drpCNProfessionalId" runat="server" Label="专业" LabelAlign="Right" LabelWidth="120px"></f:DropDownList>
|
||||
|
||||
<f:DropDownList ID="drpCNProfessionalId" runat="server" Label="专业" LabelAlign="Right" ShowRedStar="true" LabelWidth="120px"></f:DropDownList>
|
||||
<f:DropDownList ID="drpEquipmentOrMatail" runat="server" Label="设备/材料" LabelAlign="Right" ShowRedStar="true" LabelWidth="120px">
|
||||
<f:ListItem Value="设备" Text="设备" />
|
||||
<f:ListItem Value="材料" Text="材料" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
BLL.UnitService.InitUnitDownList(this.drpUnitId, this.CurrUser.LoginProjectId, true);
|
||||
BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true);
|
||||
BLL.InspectionEquipmentService.InitAttributeDropDownList(this.drpAttribute, true);
|
||||
|
||||
Funs.FineUIPleaseSelect(this.drpEquipmentOrMatail);
|
||||
this.InspectionEquipmentId = Request.Params["InspectionEquipmentId"];
|
||||
var inspectionEquipment = BLL.InspectionEquipmentService.GetInspectionEquipmentById(this.InspectionEquipmentId);
|
||||
if (inspectionEquipment != null)
|
||||
@@ -53,6 +53,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
this.drpCNProfessionalId.SelectedValue = inspectionEquipment.CNProfessionalId;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(inspectionEquipment.EquipmentOrMatail))
|
||||
{
|
||||
this.drpEquipmentOrMatail.SelectedValue = inspectionEquipment.EquipmentOrMatail;
|
||||
}
|
||||
this.txtInspectionName.Text = inspectionEquipment.InspectionName;
|
||||
this.txtSpecifications.Text = inspectionEquipment.Specifications;
|
||||
this.txtSupplier.Text = inspectionEquipment.Supplier;
|
||||
@@ -74,7 +78,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
}
|
||||
this.txtInspectionDate.Text = inspectionEquipment.InspectionDate.HasValue ? string.Format("{0:yyyy-MM-dd}", inspectionEquipment.InspectionDate) : "";
|
||||
this.txtRemarkCode.Text = inspectionEquipment.RemarkCode;
|
||||
this.txtEquipmentNo.Text = inspectionEquipment.EquipmentNO;
|
||||
this.txtUsedPlace.Text = inspectionEquipment.UsedPlace;
|
||||
}
|
||||
else
|
||||
@@ -98,6 +101,16 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
Alert.ShowInTop("请选择报验单位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpCNProfessionalId.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpEquipmentOrMatail.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择设备/材料!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.Comprehensive_InspectionEquipment newInspectionEquipment = new Model.Comprehensive_InspectionEquipment();
|
||||
newInspectionEquipment.ProjectId = this.CurrUser.LoginProjectId;
|
||||
newInspectionEquipment.UnitId = this.drpUnitId.SelectedValue;
|
||||
@@ -109,7 +122,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
newInspectionEquipment.InspectionName = this.txtInspectionName.Text.Trim();
|
||||
newInspectionEquipment.Specifications = this.txtSpecifications.Text.Trim();
|
||||
newInspectionEquipment.Supplier = this.txtSupplier.Text.Trim();
|
||||
newInspectionEquipment.EquipmentNO = this.txtEquipmentNo.Text.Trim();
|
||||
newInspectionEquipment.EquipmentOrMatail = this.drpEquipmentOrMatail.SelectedValue;
|
||||
newInspectionEquipment.RemarkCode = this.txtRemarkCode.Text.Trim();
|
||||
newInspectionEquipment.Counts = this.txtCounts.Text.Trim();
|
||||
newInspectionEquipment.SamplingCount = this.txtSamplingCount.Text.Trim();
|
||||
|
||||
+9
-9
@@ -57,15 +57,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtInspectionCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtEquipmentNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtEquipmentNo;
|
||||
|
||||
/// <summary>
|
||||
/// drpCNProfessionalId 控件。
|
||||
/// </summary>
|
||||
@@ -75,6 +66,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCNProfessionalId;
|
||||
|
||||
/// <summary>
|
||||
/// drpEquipmentOrMatail 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpEquipmentOrMatail;
|
||||
|
||||
/// <summary>
|
||||
/// txtInspectionName 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<PageItems>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true">
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged1" AutoPostBack="true">
|
||||
<f:ListItem Text="10" Value="10" />
|
||||
<f:ListItem Text="15" Value="15" />
|
||||
<f:ListItem Text="20" Value="20" />
|
||||
|
||||
@@ -292,7 +292,7 @@ namespace FineUIPro.Web.Comprehensive
|
||||
{
|
||||
lbfAction1.Enabled = true;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
lbfAction1.Enabled = false;
|
||||
}
|
||||
@@ -329,5 +329,11 @@ namespace FineUIPro.Web.Comprehensive
|
||||
Response.End();
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void ddlPageSize_SelectedIndexChanged1(object sender, EventArgs e)
|
||||
{
|
||||
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,9 +27,9 @@
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="StandardCode" AllowCellEditing="true" EnableColumnLines="true"
|
||||
ClicksToEdit="2" DataIDField="StandardCode" AllowSorting="true" SortField="StandardCode"
|
||||
SortDirection="DESC" OnSort="Grid1_Sort"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
ClicksToEdit="2" DataIDField="StandardCode" AllowSorting="true" SortField="StandardCode"
|
||||
SortDirection="DESC" OnSort="Grid1_Sort" EnableCheckBoxSelect="true"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="200" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="true" OnRowDataBound="Grid1_RowDataBound" OnRowCommand="Grid1_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
@@ -42,6 +42,9 @@
|
||||
<f:Button ID="btnNew" ToolTip="增加" Icon="Add" runat="server" Hidden="true"
|
||||
OnClick="btnNew_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnSave" ToolTip="保存" Icon="SystemSave" runat="server" Text="" Hidden="true"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
@@ -105,10 +108,10 @@
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
<f:ListItem Text="15" Value="15" />
|
||||
<f:ListItem Text="20" Value="20" />
|
||||
<f:ListItem Text="25" Value="25" />
|
||||
<f:ListItem Text="30" Value="30" />
|
||||
<f:ListItem Text="200" Value="200" />
|
||||
<f:ListItem Text="300" Value="300" />
|
||||
<f:ListItem Text="400" Value="400" />
|
||||
<f:ListItem Text="500" Value="500" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
|
||||
@@ -12,10 +12,42 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||
{
|
||||
public partial class ConstructionStandardListProject : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 被选择项列表
|
||||
/// </summary>
|
||||
public List<string> SelectedList
|
||||
{
|
||||
get
|
||||
{
|
||||
return (List<string>)ViewState["SelectedList"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["SelectedList"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 未被选择项列表
|
||||
/// </summary>
|
||||
public List<string> NoSelectedList
|
||||
{
|
||||
get
|
||||
{
|
||||
return (List<string>)ViewState["NoSelectedList"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["NoSelectedList"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.SelectedList = new List<string>();
|
||||
this.NoSelectedList = new List<string>();
|
||||
GetButtonPower();
|
||||
InitTreeMenu();
|
||||
BindGrid();
|
||||
@@ -53,6 +85,17 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
for (int i = 0; i < this.Grid1.Rows.Count; i++)
|
||||
{
|
||||
if (this.Grid1.SelectedRowIDArray.Contains(this.Grid1.Rows[i].RowID))
|
||||
{
|
||||
SelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
else
|
||||
{
|
||||
NoSelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
}
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
@@ -79,6 +122,7 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||
standardList.IsSelected8,
|
||||
standardList.IsSelected9,
|
||||
standardList.IsSelected10,
|
||||
standardList.IsChecked,
|
||||
standardList.pubDate,
|
||||
standardList.ImpDate,
|
||||
standardList.ReplaceStandard,
|
||||
@@ -113,6 +157,26 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
if (tb.Rows.Count > 0)
|
||||
{
|
||||
List<string> ids = new List<string>();
|
||||
for (int i = 0; i < tb.Rows.Count; i++)
|
||||
{
|
||||
if (tb.Rows[i][16].ToString() == "True")
|
||||
{
|
||||
ids.Add(tb.Rows[i][0].ToString());
|
||||
}
|
||||
}
|
||||
if (ids.Count() > 0)
|
||||
{
|
||||
this.Grid1.SelectedRowIDArray = ids.ToArray();
|
||||
}
|
||||
}
|
||||
//var selectIds = (from x in Funs.DB.WBS_BreakdownProject where x.DivisionProjectId == this.trWBS.SelectedNodeID && x.IsSelected == true select x.BreakdownProjectId).ToList();
|
||||
//if (selectIds.Count() > 0)
|
||||
//{
|
||||
// this.Grid1.SelectedRowIDArray = selectIds.ToArray();
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -124,6 +188,17 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
for (int i = 0; i < this.Grid1.Rows.Count; i++)
|
||||
{
|
||||
if (this.Grid1.SelectedRowIDArray.Contains(this.Grid1.Rows[i].RowID))
|
||||
{
|
||||
SelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
else
|
||||
{
|
||||
NoSelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
}
|
||||
Grid1.PageIndex = e.NewPageIndex;
|
||||
BindGrid();
|
||||
}
|
||||
@@ -279,6 +354,48 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 保存事件
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
for (int i = 0; i < this.Grid1.Rows.Count; i++)
|
||||
{
|
||||
if (this.Grid1.SelectedRowIDArray.Contains(this.Grid1.Rows[i].RowID))
|
||||
{
|
||||
SelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
else
|
||||
{
|
||||
NoSelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
}
|
||||
foreach (var item in SelectedList.Distinct())
|
||||
{
|
||||
var rows = BLL.ConstructionStandardListProjectService.GetConstructionStandardListProjectByStandardCode(Convert.ToInt32(item), this.CurrUser.LoginProjectId);
|
||||
rows.IsChecked = true;
|
||||
BLL.ConstructionStandardListProjectService.UpdateConstructionStandardListProject(rows);
|
||||
}
|
||||
NoSelectedList = NoSelectedList.Distinct().ToList();
|
||||
var q = NoSelectedList.Distinct().ToList();
|
||||
foreach (var item in q)
|
||||
{
|
||||
foreach (var i in SelectedList.Distinct())
|
||||
{
|
||||
if (item == i)
|
||||
{
|
||||
NoSelectedList.Remove(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (var item in NoSelectedList)
|
||||
{
|
||||
var rows = BLL.ConstructionStandardListProjectService.GetConstructionStandardListProjectByStandardCode(Convert.ToInt32(item), this.CurrUser.LoginProjectId);
|
||||
rows.IsChecked = null;
|
||||
BLL.ConstructionStandardListProjectService.UpdateConstructionStandardListProject(rows);
|
||||
}
|
||||
Alert.ShowInTop("保存成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 权限设置
|
||||
/// <summary>
|
||||
/// 权限设置
|
||||
@@ -297,6 +414,10 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||
this.btnMenuModify.Hidden = false;
|
||||
this.Grid1.EnableRowDoubleClickEvent = true;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
this.btnSave.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
this.btnMenuDel.Hidden = false;
|
||||
|
||||
+9
@@ -138,6 +138,15 @@ namespace FineUIPro.Web.CQMS.DataBase {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||
string standardCode = Request.Params["StandardCode"];
|
||||
if (!string.IsNullOrEmpty(standardCode))
|
||||
{
|
||||
Model.CQMS_Law_ConstructionStandardListProject standard = BLL.ConstructionStandardListProjectService.GetConstructionStandardListProjectByStandardCode(Convert.ToInt32(standardCode),this.CurrUser.LoginProjectId);
|
||||
Model.CQMS_Law_ConstructionStandardListProject standard = BLL.ConstructionStandardListProjectService.GetConstructionStandardListProjectByStandardCode(Convert.ToInt32(standardCode), this.CurrUser.LoginProjectId);
|
||||
if (standard != null)
|
||||
{
|
||||
this.drpStandardType.SelectedValue = standard.StandardType;
|
||||
@@ -85,7 +85,7 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||
{
|
||||
maxStandardCode = BLL.ConstructionStandardListProjectService.GetMaxStandardCode(this.CurrUser.LoginProjectId);
|
||||
}
|
||||
this.hdStandardCode.Text = (maxStandardCode + 1).ToString()+this.CurrUser.LoginProjectId;
|
||||
this.hdStandardCode.Text = (maxStandardCode + 1).ToString() + this.CurrUser.LoginProjectId;
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", this.hdStandardCode.Text, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
|
||||
}
|
||||
@@ -122,6 +122,8 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||
if (!string.IsNullOrEmpty(standardCode))
|
||||
{
|
||||
newStandard.StandardCode = Convert.ToInt32(standardCode);
|
||||
Model.CQMS_Law_ConstructionStandardListProject standard = BLL.ConstructionStandardListProjectService.GetConstructionStandardListProjectByStandardCode(Convert.ToInt32(standardCode), this.CurrUser.LoginProjectId);
|
||||
newStandard.IsChecked = standard.IsChecked;
|
||||
BLL.ConstructionStandardListProjectService.UpdateConstructionStandardListProject(newStandard);
|
||||
}
|
||||
else
|
||||
@@ -132,12 +134,13 @@ namespace FineUIPro.Web.CQMS.DataBase
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
int maxStandardCode = 0;
|
||||
if (BLL.ConstructionStandardListProjectService.GetCountConstructionStandardListProject(this.CurrUser.LoginProjectId) != 0)
|
||||
{
|
||||
maxStandardCode = BLL.ConstructionStandardListProjectService.GetMaxStandardCode(this.CurrUser.LoginProjectId);
|
||||
}
|
||||
newStandard.StandardCode = maxStandardCode + 1;
|
||||
int maxStandardCode = 0;
|
||||
if (BLL.ConstructionStandardListProjectService.GetCountConstructionStandardListProject(this.CurrUser.LoginProjectId) != 0)
|
||||
{
|
||||
maxStandardCode = BLL.ConstructionStandardListProjectService.GetMaxStandardCode(this.CurrUser.LoginProjectId);
|
||||
}
|
||||
newStandard.StandardCode = maxStandardCode + 1;
|
||||
newStandard.IsChecked = true;
|
||||
//}
|
||||
BLL.ConstructionStandardListProjectService.AddConstructionStandardListProject(newStandard);
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
private void GetComprehensive()
|
||||
{
|
||||
decimal? count = 0;
|
||||
var inspectionEquipments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
|
||||
var inspectionEquipments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.CNProfessionalId == BLL.Const.EQCNProfessionalId && x.EquipmentOrMatail == "设备" select x).ToList();
|
||||
foreach (var item in inspectionEquipments)
|
||||
{
|
||||
count += Funs.GetNewIntOrZero(item.Counts);
|
||||
@@ -126,7 +126,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
this.txt3.Text = Convert.ToString(count);
|
||||
|
||||
decimal? thisWeekCount = 0;
|
||||
var equpments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text) && x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text) select x).ToList();
|
||||
var equpments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.CNProfessionalId == BLL.Const.EQCNProfessionalId && x.EquipmentOrMatail == "设备" && x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text) && x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text) select x).ToList();
|
||||
foreach (var item in equpments)
|
||||
{
|
||||
thisWeekCount += Funs.GetNewIntOrZero(item.Counts);
|
||||
@@ -142,6 +142,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
//}
|
||||
var Uequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text)
|
||||
&& x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text)
|
||||
&& x.UnitId == BLL.Const.UnitId_CWCEC
|
||||
@@ -150,12 +151,14 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
|
||||
var Tequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.UnitId == BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt6.Text = Tequipments.ToString();
|
||||
|
||||
var CUequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text)
|
||||
&& x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text)
|
||||
&& x.UnitId != BLL.Const.UnitId_CWCEC
|
||||
@@ -164,6 +167,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
|
||||
var CTequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.UnitId != BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt8.Text = CTequipments.ToString();
|
||||
|
||||
@@ -140,7 +140,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
private void GetComprehensive()
|
||||
{
|
||||
decimal? count = 0;
|
||||
var inspectionEquipments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
|
||||
var inspectionEquipments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.CNProfessionalId == BLL.Const.EQCNProfessionalId && x.EquipmentOrMatail == "设备" select x).ToList();
|
||||
foreach (var item in inspectionEquipments)
|
||||
{
|
||||
//count += item.Counts;
|
||||
@@ -148,7 +148,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
this.txt3.Text = Convert.ToString(count);
|
||||
|
||||
decimal? thisWeekCount = 0;
|
||||
var equpments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text) && x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text) select x).ToList();
|
||||
var equpments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.CNProfessionalId == BLL.Const.EQCNProfessionalId && x.EquipmentOrMatail == "设备" && x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text) && x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text) select x).ToList();
|
||||
foreach (var item in equpments)
|
||||
{
|
||||
//thisWeekCount += item.Counts;
|
||||
@@ -156,34 +156,31 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
this.txt2.Text = Convert.ToString(thisWeekCount);
|
||||
|
||||
var Uequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text)
|
||||
&& x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text)
|
||||
&& y.UnitAttribute == "1"
|
||||
&& x.UnitId == BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt5.Text = Uequipments.ToString();
|
||||
|
||||
var Tequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& y.UnitAttribute == "1"
|
||||
&& x.UnitId == BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt6.Text = Tequipments.ToString();
|
||||
|
||||
var CUequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text)
|
||||
&& x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text)
|
||||
&& y.UnitAttribute == "2"
|
||||
&& x.UnitId != BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt7.Text = CUequipments.ToString();
|
||||
|
||||
var CTequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& y.UnitAttribute == "2"
|
||||
&& x.UnitId != BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt8.Text = CTequipments.ToString();
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
private void GetComprehensive()
|
||||
{
|
||||
int count = 0;
|
||||
var inspectionEquipments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
|
||||
var inspectionEquipments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.CNProfessionalId == BLL.Const.EQCNProfessionalId && x.EquipmentOrMatail == "设备" select x).ToList();
|
||||
foreach (var item in inspectionEquipments)
|
||||
{
|
||||
count += Funs.GetNewIntOrZero(item.Counts);
|
||||
@@ -127,7 +127,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
this.txt3.Text = Convert.ToString(count);
|
||||
|
||||
int thisWeekCount = 0;
|
||||
var equpments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text) && x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text) select x).ToList();
|
||||
var equpments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.CNProfessionalId == BLL.Const.EQCNProfessionalId && x.EquipmentOrMatail == "设备" && x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text) && x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text) select x).ToList();
|
||||
foreach (var item in equpments)
|
||||
{
|
||||
thisWeekCount += Funs.GetNewIntOrZero(item.Counts);
|
||||
@@ -136,6 +136,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
|
||||
var Uequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text)
|
||||
&& x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text)
|
||||
&& x.UnitId == BLL.Const.UnitId_CWCEC
|
||||
@@ -144,12 +145,14 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
|
||||
var Tequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.UnitId == BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt6.Text = Tequipments.ToString();
|
||||
|
||||
var CUequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text)
|
||||
&& x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text)
|
||||
&& x.UnitId != BLL.Const.UnitId_CWCEC
|
||||
@@ -158,6 +161,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
|
||||
var CTequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.UnitId != BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt8.Text = CTequipments.ToString();
|
||||
|
||||
@@ -10,7 +10,7 @@ using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
namespace FineUIPro.Web.CQMS.ManageReport
|
||||
{
|
||||
public partial class WeekReportPrint :PageBase
|
||||
public partial class WeekReportPrint : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
@@ -139,7 +139,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
private void GetComprehensive()
|
||||
{
|
||||
decimal? count = 0;
|
||||
var inspectionEquipments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
|
||||
var inspectionEquipments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.CNProfessionalId == BLL.Const.EQCNProfessionalId && x.EquipmentOrMatail == "设备" select x).ToList();
|
||||
foreach (var item in inspectionEquipments)
|
||||
{
|
||||
//count += item.Counts;
|
||||
@@ -147,7 +147,7 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
this.txt3.Text = Convert.ToString(count);
|
||||
|
||||
decimal? thisWeekCount = 0;
|
||||
var equpments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text) && x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text) select x).ToList();
|
||||
var equpments = (from x in Funs.DB.Comprehensive_InspectionEquipment where x.ProjectId == this.CurrUser.LoginProjectId && x.CNProfessionalId == BLL.Const.EQCNProfessionalId && x.EquipmentOrMatail == "设备" && x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text) && x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text) select x).ToList();
|
||||
foreach (var item in equpments)
|
||||
{
|
||||
//thisWeekCount += item.Counts;
|
||||
@@ -155,34 +155,34 @@ namespace FineUIPro.Web.CQMS.ManageReport
|
||||
this.txt2.Text = Convert.ToString(thisWeekCount);
|
||||
|
||||
var Uequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text)
|
||||
&& x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text)
|
||||
&& y.UnitAttribute == "1"
|
||||
&& x.UnitId == BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt5.Text = Uequipments.ToString();
|
||||
|
||||
var Tequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& y.UnitAttribute == "1"
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.UnitId == BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt6.Text = Tequipments.ToString();
|
||||
|
||||
var CUequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.InspectionDate >= Convert.ToDateTime(this.txtStartDate.Text)
|
||||
&& x.InspectionDate <= Convert.ToDateTime(this.txtEndDate.Text)
|
||||
&& y.UnitAttribute == "2"
|
||||
&& x.UnitId != BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt7.Text = CUequipments.ToString();
|
||||
|
||||
var CTequipments = (from x in Funs.DB.Comprehensive_InspectionEquipment
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& y.UnitAttribute == "2"
|
||||
&& x.EquipmentOrMatail == "材料"
|
||||
&& x.UnitId != BLL.Const.UnitId_CWCEC
|
||||
select x).Count();
|
||||
this.txt8.Text = CTequipments.ToString();
|
||||
|
||||
|
||||
@@ -205,8 +205,6 @@ namespace Web.Controls
|
||||
ChartArea chartArea = new ChartArea();
|
||||
chartArea.BackColor = Color.Transparent;
|
||||
chartArea.AxisX.IsLabelAutoFit = false;
|
||||
chartArea.AxisY.Maximum = 1;//设置最小值,为了让第一个柱紧挨坐标轴
|
||||
chartArea.AxisY.LabelStyle.Format = "0%";//格式化,为了显示百分号
|
||||
chartArea.AxisY.IsLabelAutoFit = false;
|
||||
chartArea.AxisX.LabelStyle.Font = new Font("Verdana,Arial,Helvetica,sans-serif", 8F, FontStyle.Regular);
|
||||
chartArea.AxisY.LabelStyle.Font = new Font("Verdana,Arial,Helvetica,sans-serif", 8F, FontStyle.Regular);
|
||||
@@ -218,47 +216,67 @@ namespace Web.Controls
|
||||
chartArea.Area3DStyle.Enable3D = false;
|
||||
chart1.ChartAreas.Add(chartArea);
|
||||
|
||||
chart1.Series.Add("计划值");
|
||||
chart1.Series.Add("实际值");
|
||||
chart1.Series.Add("累计计划值");
|
||||
chart1.Series.Add("累计实际值");
|
||||
chart1.Series.Add("本月计划完成预算");
|
||||
chart1.Series.Add("本月完成预算");
|
||||
chart1.Series.Add("本月实际成本");
|
||||
chart1.Series.Add("累计计划完成预算");
|
||||
chart1.Series.Add("累计完成预算");
|
||||
chart1.Series.Add("累计完成成本");
|
||||
|
||||
DataView dv = dt.DefaultView;
|
||||
|
||||
chart1.Series["计划值"].Points.DataBindXY(dv, dt.Columns[0].ColumnName, dv, "计划值");
|
||||
chart1.Series["计划值"].ChartType = SeriesChartType.Column;
|
||||
chart1.Series["本月计划完成预算"].Points.DataBindXY(dv, "月份", dv, "本月计划完成预算");
|
||||
chart1.Series["本月计划完成预算"].ChartType = SeriesChartType.Column;
|
||||
|
||||
for (int i = 0; i < chart1.Series["计划值"].Points.Count; i++)
|
||||
for (int i = 0; i < chart1.Series["本月计划完成预算"].Points.Count; i++)
|
||||
{
|
||||
chart1.Series["计划值"].Points[i].ToolTip = "#VALX,#VALY";
|
||||
chart1.Series["本月计划完成预算"].Points[i].ToolTip = "#VALX,#VALY";
|
||||
}
|
||||
|
||||
chart1.Series["实际值"].Points.DataBindXY(dv, dt.Columns[0].ColumnName, dv, "实际值");
|
||||
chart1.Series["实际值"].ChartType = SeriesChartType.Column;
|
||||
chart1.Series["本月完成预算"].Points.DataBindXY(dv, "月份", dv, "本月完成预算");
|
||||
chart1.Series["本月完成预算"].ChartType = SeriesChartType.Column;
|
||||
|
||||
for (int i = 0; i < chart1.Series["实际值"].Points.Count; i++)
|
||||
for (int i = 0; i < chart1.Series["本月完成预算"].Points.Count; i++)
|
||||
{
|
||||
chart1.Series["实际值"].Points[i].ToolTip = "#VALX,#VALY";
|
||||
chart1.Series["本月完成预算"].Points[i].ToolTip = "#VALX,#VALY";
|
||||
}
|
||||
|
||||
chart1.Series["累计计划值"].Points.DataBindXY(dv, dt.Columns[0].ColumnName, dv, "累计计划值");
|
||||
chart1.Series["累计计划值"].ChartType = SeriesChartType.Spline;
|
||||
chart1.Series["累计计划值"].Color = Color.Blue;
|
||||
chart1.Series["累计计划值"].BorderWidth = 2;
|
||||
chart1.Series["本月实际成本"].Points.DataBindXY(dv, "月份", dv, "本月实际成本");
|
||||
chart1.Series["本月实际成本"].ChartType = SeriesChartType.Column;
|
||||
|
||||
for (int i = 0; i < chart1.Series["累计计划值"].Points.Count; i++)
|
||||
for (int i = 0; i < chart1.Series["本月实际成本"].Points.Count; i++)
|
||||
{
|
||||
chart1.Series["累计计划值"].Points[i].ToolTip = "#VALX,#VALY";
|
||||
chart1.Series["本月实际成本"].Points[i].ToolTip = "#VALX,#VALY";
|
||||
}
|
||||
|
||||
chart1.Series["累计实际值"].Points.DataBindXY(dv, dt.Columns[0].ColumnName, dv, "累计实际值");
|
||||
chart1.Series["累计实际值"].ChartType = SeriesChartType.Spline;
|
||||
chart1.Series["累计实际值"].Color = Color.MediumSeaGreen;
|
||||
chart1.Series["累计实际值"].BorderWidth = 2;
|
||||
chart1.Series["累计计划完成预算"].Points.DataBindXY(dv, "月份", dv, "累计计划完成预算");
|
||||
chart1.Series["累计计划完成预算"].ChartType = SeriesChartType.Spline;
|
||||
chart1.Series["累计计划完成预算"].Color = Color.Blue;
|
||||
chart1.Series["累计计划完成预算"].BorderWidth = 2;
|
||||
|
||||
for (int i = 0; i < chart1.Series["累计实际值"].Points.Count; i++)
|
||||
for (int i = 0; i < chart1.Series["累计计划完成预算"].Points.Count; i++)
|
||||
{
|
||||
chart1.Series["累计实际值"].Points[i].ToolTip = "#VALX,#VALY";
|
||||
chart1.Series["累计计划完成预算"].Points[i].ToolTip = "#VALX,#VALY";
|
||||
}
|
||||
|
||||
chart1.Series["累计完成预算"].Points.DataBindXY(dv, "月份", dv, "累计完成预算");
|
||||
chart1.Series["累计完成预算"].ChartType = SeriesChartType.Spline;
|
||||
chart1.Series["累计完成预算"].Color = Color.MediumSeaGreen;
|
||||
chart1.Series["累计完成预算"].BorderWidth = 2;
|
||||
|
||||
for (int i = 0; i < chart1.Series["累计完成预算"].Points.Count; i++)
|
||||
{
|
||||
chart1.Series["累计完成预算"].Points[i].ToolTip = "#VALX,#VALY";
|
||||
}
|
||||
|
||||
chart1.Series["累计完成成本"].Points.DataBindXY(dv, "月份", dv, "累计完成成本");
|
||||
chart1.Series["累计完成成本"].ChartType = SeriesChartType.Spline;
|
||||
chart1.Series["累计完成成本"].Color = Color.Red;
|
||||
chart1.Series["累计完成成本"].BorderWidth = 2;
|
||||
|
||||
for (int i = 0; i < chart1.Series["累计完成成本"].Points.Count; i++)
|
||||
{
|
||||
chart1.Series["累计完成成本"].Points[i].ToolTip = "#VALX,#VALY";
|
||||
}
|
||||
|
||||
Controls.Add(chart1);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,788 +1 @@
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:SqlException
|
||||
错误信息:对象名 'dbo.View_JDGL_ProgressCompletion' 无效。
|
||||
错误堆栈:
|
||||
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
|
||||
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
|
||||
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
|
||||
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
|
||||
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
|
||||
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
|
||||
在 System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
|
||||
在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
|
||||
在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
|
||||
在 FineUIPro.Web.common.mainProject.get_Two() 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 86
|
||||
在 ASP.common_mainproject_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
|
||||
在 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
|
||||
在 System.Web.UI.Page.Render(HtmlTextWriter writer)
|
||||
在 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/20/2021 11:28:56
|
||||
出错文件:http://localhost/sggl_wh/common/mainProject.aspx
|
||||
IP地址:::1
|
||||
操作人员:系统管理员
|
||||
|
||||
出错时间:05/20/2021 11:28:56
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:SqlException
|
||||
错误信息:对象名 'dbo.View_JDGL_ProgressCompletion' 无效。
|
||||
错误堆栈:
|
||||
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
|
||||
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
|
||||
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
|
||||
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
|
||||
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
|
||||
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
|
||||
在 System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
|
||||
在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
|
||||
在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
|
||||
在 FineUIPro.Web.common.mainProject.get_Two() 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:行号 86
|
||||
在 ASP.common_mainproject_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
|
||||
在 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
|
||||
在 System.Web.UI.Page.Render(HtmlTextWriter writer)
|
||||
在 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/20/2021 11:29:14
|
||||
出错文件:http://localhost/sggl_wh/common/mainProject.aspx
|
||||
IP地址:::1
|
||||
操作人员:系统管理员
|
||||
|
||||
出错时间:05/20/2021 11:29:14
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:InvalidCastException
|
||||
错误信息:无法将类型为“System.Int32”的对象强制转换为类型“System.String”。
|
||||
错误堆栈:
|
||||
在 System.Data.SqlClient.SqlBuffer.get_String()
|
||||
在 System.Data.SqlClient.SqlDataReader.GetString(Int32 i)
|
||||
在 Read_InOutstatisticsItem(ObjectMaterializer`1 )
|
||||
在 System.Data.Linq.SqlClient.ObjectReaderCompiler.ObjectReader`2.MoveNext()
|
||||
在 (IEnumerator )
|
||||
在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean )
|
||||
在 (Grid , IEnumerable , Boolean )
|
||||
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
|
||||
在 (Grid , Boolean )
|
||||
在 FineUIPro.Grid.DataBind()
|
||||
在 FineUIPro.Web.Door.InOutList.GetPersonStatistic() 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 78
|
||||
在 FineUIPro.Web.Door.InOutList.btnSearch_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 150
|
||||
在 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)
|
||||
出错时间:05/26/2021 16:17:09
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/26/2021 16:17:09
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:InvalidCastException
|
||||
错误信息:无法将类型为“System.Int32”的对象强制转换为类型“System.String”。
|
||||
错误堆栈:
|
||||
在 System.Data.SqlClient.SqlBuffer.get_String()
|
||||
在 System.Data.SqlClient.SqlDataReader.GetString(Int32 i)
|
||||
在 Read_InOutstatisticsItem(ObjectMaterializer`1 )
|
||||
在 System.Data.Linq.SqlClient.ObjectReaderCompiler.ObjectReader`2.MoveNext()
|
||||
在 (IEnumerator )
|
||||
在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean )
|
||||
在 (Grid , IEnumerable , Boolean )
|
||||
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
|
||||
在 (Grid , Boolean )
|
||||
在 FineUIPro.Grid.DataBind()
|
||||
在 FineUIPro.Web.Door.InOutList.GetPersonStatistic() 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 78
|
||||
在 FineUIPro.Web.Door.InOutList.btnSearch_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 150
|
||||
在 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)
|
||||
出错时间:05/26/2021 16:27:26
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/26/2021 16:27:26
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:InvalidCastException
|
||||
错误信息:无法将类型为“System.Int32”的对象强制转换为类型“System.String”。
|
||||
错误堆栈:
|
||||
在 System.Data.SqlClient.SqlBuffer.get_String()
|
||||
在 System.Data.SqlClient.SqlDataReader.GetString(Int32 i)
|
||||
在 Read_InOutstatisticsItem(ObjectMaterializer`1 )
|
||||
在 System.Data.Linq.SqlClient.ObjectReaderCompiler.ObjectReader`2.MoveNext()
|
||||
在 (IEnumerator )
|
||||
在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean )
|
||||
在 (Grid , IEnumerable , Boolean )
|
||||
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
|
||||
在 (Grid , Boolean )
|
||||
在 FineUIPro.Grid.DataBind()
|
||||
在 FineUIPro.Web.Door.InOutList.GetPersonStatistic() 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 78
|
||||
在 FineUIPro.Web.Door.InOutList.btnSearch_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 150
|
||||
在 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)
|
||||
出错时间:05/26/2021 16:27:47
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/26/2021 16:27:47
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:InvalidCastException
|
||||
错误信息:指定的转换无效。
|
||||
错误堆栈:
|
||||
在 System.Data.SqlClient.SqlBuffer.get_Double()
|
||||
在 System.Data.SqlClient.SqlDataReader.GetDouble(Int32 i)
|
||||
在 Read_InOutListItem(ObjectMaterializer`1 )
|
||||
在 System.Data.Linq.SqlClient.ObjectReaderCompiler.ObjectReader`2.MoveNext()
|
||||
在 (IEnumerator )
|
||||
在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean )
|
||||
在 (Grid , IEnumerable , Boolean )
|
||||
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
|
||||
在 (Grid , Boolean )
|
||||
在 FineUIPro.Grid.DataBind()
|
||||
在 FineUIPro.Web.Door.InOutList.GetPersonStatistic() 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 78
|
||||
在 FineUIPro.Web.Door.InOutList.btnSearch_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 150
|
||||
在 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)
|
||||
出错时间:05/26/2021 16:44:31
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/26/2021 16:44:31
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:NullReferenceException
|
||||
错误信息:未将对象引用设置到对象的实例。
|
||||
错误堆栈:
|
||||
在 (Object )
|
||||
在 FineUIPro.GridRow.kxpUEMXYxcbykrOznAFBzkoxlAnb()
|
||||
在 (GridRow )
|
||||
在 FineUIPro.GridRow.InitTemplateContainers()
|
||||
在 (GridRow )
|
||||
在 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object )
|
||||
在 (Grid , Int32 , Object )
|
||||
在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean )
|
||||
在 (Grid , IEnumerable , Boolean )
|
||||
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
|
||||
在 (Grid , Boolean )
|
||||
在 FineUIPro.Grid.DataBind()
|
||||
在 FineUIPro.Web.Door.InOutList.GetPersonStatistic() 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 78
|
||||
在 FineUIPro.Web.Door.InOutList.btnSearch_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 150
|
||||
在 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)
|
||||
出错时间:05/26/2021 16:52:53
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/26/2021 16:52:53
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:NullReferenceException
|
||||
错误信息:未将对象引用设置到对象的实例。
|
||||
错误堆栈:
|
||||
在 (Object )
|
||||
在 FineUIPro.GridRow.kxpUEMXYxcbykrOznAFBzkoxlAnb()
|
||||
在 (GridRow )
|
||||
在 FineUIPro.GridRow.InitTemplateContainers()
|
||||
在 (GridRow )
|
||||
在 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object )
|
||||
在 (Grid , Int32 , Object )
|
||||
在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean )
|
||||
在 (Grid , IEnumerable , Boolean )
|
||||
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
|
||||
在 (Grid , Boolean )
|
||||
在 FineUIPro.Grid.DataBind()
|
||||
在 FineUIPro.Web.Door.InOutList.GetPersonStatistic() 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 78
|
||||
在 FineUIPro.Web.Door.InOutList.btnSearch_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 150
|
||||
在 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)
|
||||
出错时间:05/26/2021 16:53:21
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/26/2021 16:53:21
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:InvalidOperationException
|
||||
错误信息:无法枚举查询结果多次。
|
||||
错误堆栈:
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.OneTimeEnumerable`1.GetEnumerator()
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.SingleResult`1.GetEnumerator()
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.SingleResult`1.System.Collections.IEnumerable.GetEnumerator()
|
||||
在 (IEnumerable )
|
||||
在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean )
|
||||
在 (Grid , IEnumerable , Boolean )
|
||||
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
|
||||
在 (Grid , Boolean )
|
||||
在 FineUIPro.Grid.DataBind()
|
||||
在 FineUIPro.Web.Door.InOutList.GetPersonStatistic() 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 78
|
||||
在 FineUIPro.Web.Door.InOutList.btnSearch_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 150
|
||||
在 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)
|
||||
出错时间:05/26/2021 16:53:54
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/26/2021 16:53:54
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:38:25
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:38:25
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:38:28
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:38:28
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:38:50
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:38:50
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:01
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:01
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:01
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:01
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:01
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:02
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:02
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:02
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:02
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:02
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:18
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:18
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:21
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:21
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:22
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:22
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:23
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:23
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:23
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:23
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:23
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:23
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:找到多个具有相同 ID“ftpl_0f01f566-35c0-48aa-b165-c02f169aefa8_0”的控件。FindControl 要求控件具有唯一的 ID。
|
||||
错误堆栈:
|
||||
在 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
|
||||
在 System.Web.UI.Page.FindControl(String id)
|
||||
在 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:05/27/2021 16:39:24
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:39:24
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:NullReferenceException
|
||||
错误信息:未将对象引用设置到对象的实例。
|
||||
错误堆栈:
|
||||
在 (Object )
|
||||
在 FineUIPro.GridRow.kxpUEMXYxcbykrOznAFBzkoxlAnb()
|
||||
在 (GridRow )
|
||||
在 FineUIPro.GridRow.InitTemplateContainers()
|
||||
在 (GridRow )
|
||||
在 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object )
|
||||
在 (Grid , Int32 , Object )
|
||||
在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean )
|
||||
在 (Grid , IEnumerable , Boolean )
|
||||
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
|
||||
在 (Grid , Boolean )
|
||||
在 FineUIPro.Grid.DataBind()
|
||||
在 FineUIPro.Web.Door.InOutList.GetPersonStatistic() 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 113
|
||||
在 FineUIPro.Web.Door.InOutList.btnSearch_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 119
|
||||
在 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)
|
||||
出错时间:05/27/2021 16:57:06
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 16:57:06
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:InvalidOperationException
|
||||
错误信息:查询包含对不同数据上下文上所定义项的引用。
|
||||
错误堆栈:
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.TranslateConstantTable(ITable table, SqlLink link)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.CoerceToSequence(SqlNode node)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitJoin(Expression outerSequence, Expression innerSequence, LambdaExpression outerKeySelector, LambdaExpression innerKeySelector, LambdaExpression resultSelector)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
|
||||
在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
|
||||
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
|
||||
在 System.Linq.Queryable.Count[TSource](IQueryable`1 source)
|
||||
在 BLL.InOutService.getListData(String projectId, String type, String unitId, String name, String startDate, String endDate, Int32 PageIndex, Int32 PageSize) 位置 D:\WuHuan\SGGL\SGGL\BLL\DoorServer\InOutService.cs:行号 114
|
||||
在 FineUIPro.Web.Door.InOutList.GetPersonStatistic() 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 110
|
||||
在 FineUIPro.Web.Door.InOutList.btnSearch_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\Door\InOutList.aspx.cs:行号 119
|
||||
在 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)
|
||||
出错时间:05/27/2021 17:03:25
|
||||
出错文件:http://localhost:8118/Door/InOutList.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:05/27/2021 17:03:25
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:SqlException
|
||||
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
|
||||
错误堆栈:
|
||||
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
|
||||
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
|
||||
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
|
||||
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
|
||||
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
|
||||
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
|
||||
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
|
||||
在 System.Data.Common.DbCommand.ExecuteReader()
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
|
||||
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
|
||||
在 System.Linq.Queryable.Count[TSource](IQueryable`1 source)
|
||||
在 BLL.GetDataService.CorrectingPersonInOutNumber(String projectId) 位置 E:\工作\五环施工平台\SGGL\SGGL\BLL\OpenService\GetDataService.cs:行号 139
|
||||
在 BLL.MonitorService.DoSynchData() 位置 E:\工作\五环施工平台\SGGL\SGGL\BLL\OpenService\MonitorService.cs:行号 2180
|
||||
在 BLL.MonitorService.ColligateFormConfirmProcessEve(Object sender, ElapsedEventArgs e) 位置 E:\工作\五环施工平台\SGGL\SGGL\BLL\OpenService\MonitorService.cs:行号 112
|
||||
----错误类型:Win32Exception
|
||||
----错误信息:
|
||||
----等待的操作过时。
|
||||
----错误堆栈:
|
||||
出错时间:06/16/2021 11:17:26
|
||||
出错时间:06/16/2021 11:17:26
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:ChangeConflictException
|
||||
错误信息:找不到行或行已更改。
|
||||
错误堆栈:
|
||||
在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
|
||||
在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
|
||||
在 BLL.ProgressCompletionService.AddProgressCompletion(JDGL_ProgressCompletion progressCompletion) 位置 E:\工作\五环施工平台\SGGL\SGGL\BLL\JDGL\Check\ProgressCompletionService.cs:行号 54
|
||||
在 FineUIPro.Web.JDGL.Check.ProgressCompletionEdit.SaveData(Boolean bl) 位置 E:\工作\五环施工平台\SGGL\SGGL\FineUIPro.Web\JDGL\Check\ProgressCompletionEdit.aspx.cs:行号 112
|
||||
在 FineUIPro.Web.JDGL.Check.ProgressCompletionEdit.btnSave_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL\SGGL\FineUIPro.Web\JDGL\Check\ProgressCompletionEdit.aspx.cs:行号 87
|
||||
在 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)
|
||||
出错时间:06/18/2021 16:57:48
|
||||
出错文件:http://localhost:8118/JDGL/Check/ProgressCompletionEdit.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:06/18/2021 16:57:48
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpParseException
|
||||
错误信息:基类包括字段“txtIdentityCard”,但其类型(FineUIPro.TextBox)与控件(FineUIPro.TextArea)的类型不兼容。
|
||||
错误堆栈:
|
||||
在 System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder)
|
||||
在 System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
|
||||
在 System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
|
||||
在 System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
|
||||
在 System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
|
||||
在 System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
|
||||
在 System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
|
||||
在 System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
|
||||
在 System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers()
|
||||
在 System.Web.Compilation.PageCodeDomTreeGenerator.BuildMiscClassMembers()
|
||||
在 System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree()
|
||||
在 System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath)
|
||||
在 System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder)
|
||||
在 System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
|
||||
出错时间:07/06/2021 14:24:26
|
||||
出错文件:http://localhost:8118/ZHGL/RealName/SynchroSet.aspx
|
||||
IP地址:::1
|
||||
|
||||
出错时间:07/06/2021 14:24:26
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:JsonReaderException
|
||||
错误信息:Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
|
||||
错误堆栈:
|
||||
在 Newtonsoft.Json.JsonTextReader.ParseValue()
|
||||
在 Newtonsoft.Json.JsonTextReader.Read()
|
||||
在 Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
|
||||
在 Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
|
||||
在 Newtonsoft.Json.Linq.JObject.Parse(String json)
|
||||
在 BLL.SynchroSetService.PushProCollCompany(String proCode) 位置 D:\WuHuan\SGGL\SGGL\BLL\ZHGL\RealName\SynchroSetService.cs:行号 750
|
||||
在 FineUIPro.Web.ZHGL.RealName.SynchroSet.btnProCollCompany_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\ZHGL\RealName\SynchroSet.aspx.cs:行号 131
|
||||
在 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)
|
||||
出错时间:07/08/2021 20:22:22
|
||||
出错文件:http://localhost:8118/ZHGL/RealName/SynchroSet.aspx
|
||||
IP地址:::1
|
||||
操作人员:系统管理员
|
||||
|
||||
出错时间:07/08/2021 20:22:22
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:SqlException
|
||||
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
|
||||
错误堆栈:
|
||||
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
|
||||
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
|
||||
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
|
||||
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
|
||||
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
|
||||
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
|
||||
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
|
||||
在 System.Data.Common.DbCommand.ExecuteReader()
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
|
||||
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
|
||||
在 System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
|
||||
在 FineUIPro.Web.ZHGL.RealName.SynchroSet.btnDataProcess_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\ZHGL\RealName\SynchroSet.aspx.cs:行号 328
|
||||
在 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)
|
||||
----错误类型:Win32Exception
|
||||
----错误信息:
|
||||
----等待的操作过时。
|
||||
----错误堆栈:
|
||||
出错时间:07/15/2021 09:40:39
|
||||
出错文件:http://localhost:8118/ZHGL/RealName/SynchroSet.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:07/15/2021 09:40:39
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -70,7 +70,7 @@
|
||||
<HintPath>..\..\..\CQMS_New\CQMS\FineUIPro.Web\bin\Aspose.Words.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="AxInterop.SYNCARDOCXLib">
|
||||
<HintPath>..\FineUIPro\Reference BLL\AxInterop.SYNCARDOCXLib.dll</HintPath>
|
||||
<HintPath>..\..\..\SGGL\SGGL\FineUIPro.Web\bin\AxInterop.SYNCARDOCXLib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="FineUIPro, Version=6.3.0.0, Culture=neutral, PublicKeyToken=9cbe753c029f291a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
@@ -79,7 +79,7 @@
|
||||
<Reference Include="Interop.WIA, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<EmbedInteropTypes>False</EmbedInteropTypes>
|
||||
<HintPath>..\FineUIPro\Reference BLL\Interop.WIA.dll</HintPath>
|
||||
<HintPath>..\..\..\SGGL\SGGL\FineUIPro.Web\bin\Interop.WIA.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
|
||||
@@ -117,7 +117,7 @@
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="ThoughtWorks.QRCode, Version=1.0.2774.19990, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\FineUIPro\Reference BLL\ThoughtWorks.QRCode.dll</HintPath>
|
||||
<HintPath>..\..\..\SGGL\SGGL\FineUIPro.Web\bin\ThoughtWorks.QRCode.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ThoughtWorks.QRCode.Fakes">
|
||||
<HintPath>FakesAssemblies\ThoughtWorks.QRCode.Fakes.dll</HintPath>
|
||||
@@ -224,6 +224,7 @@
|
||||
<Content Include="common\mainI.aspx" />
|
||||
<Content Include="common\mainMenu_DigitalSite.aspx" />
|
||||
<Content Include="common\mainMenu_HJGL.aspx" />
|
||||
<Content Include="common\mainMenu_Party.aspx" />
|
||||
<Content Include="common\mainMenu_PDigData.aspx" />
|
||||
<Content Include="common\mainMenu_PZHGL.aspx" />
|
||||
<Content Include="common\mainMenu_TestRun.aspx" />
|
||||
@@ -1108,12 +1109,19 @@
|
||||
<Content Include="font\iconfont.svg" />
|
||||
<Content Include="index.aspx" />
|
||||
<Content Include="JDGL\Check\ElectricalCompletion.aspx" />
|
||||
<Content Include="JDGL\Check\ElectricalCompletionEdit.aspx" />
|
||||
<Content Include="JDGL\Check\ElectricalCompletionIn.aspx" />
|
||||
<Content Include="JDGL\Check\EquipmentCompletion.aspx" />
|
||||
<Content Include="JDGL\Check\EquipmentCompletionEdit.aspx" />
|
||||
<Content Include="JDGL\Check\EquipmentCompletionIn.aspx" />
|
||||
<Content Include="JDGL\Check\LowTankCompletion.aspx" />
|
||||
<Content Include="JDGL\Check\LowTankCompletionEdit.aspx" />
|
||||
<Content Include="JDGL\Check\LowTankCompletionIn.aspx" />
|
||||
<Content Include="JDGL\Check\MeterCompletion.aspx" />
|
||||
<Content Include="JDGL\Check\MeterCompletionEdit.aspx" />
|
||||
<Content Include="JDGL\Check\MeterCompletionIn.aspx" />
|
||||
<Content Include="JDGL\Check\PipelineCompletion.aspx" />
|
||||
<Content Include="JDGL\Check\PipelineCompletionEdit.aspx" />
|
||||
<Content Include="JDGL\Check\PipelineCompletionIn.aspx" />
|
||||
<Content Include="JDGL\Check\ProgressCompletion.aspx" />
|
||||
<Content Include="JDGL\Check\ProgressCompletionEdit.aspx" />
|
||||
@@ -1121,14 +1129,17 @@
|
||||
<Content Include="JDGL\Check\ProgressShow.aspx" />
|
||||
<Content Include="JDGL\Check\ProgressStatistics.aspx" />
|
||||
<Content Include="JDGL\Check\QuantityCompletion.aspx" />
|
||||
<Content Include="JDGL\Check\QuantityCompletionEdit.aspx" />
|
||||
<Content Include="JDGL\Check\QuantityCompletionIn.aspx" />
|
||||
<Content Include="JDGL\Check\QuantityList.aspx" />
|
||||
<Content Include="JDGL\Check\QuantityListEdit.aspx" />
|
||||
<Content Include="JDGL\Check\QuantityListView.aspx" />
|
||||
<Content Include="JDGL\Check\SteelStructureCompletion.aspx" />
|
||||
<Content Include="JDGL\Check\SteelStructureCompletionEdit.aspx" />
|
||||
<Content Include="JDGL\Check\SteelStructureCompletionIn.aspx" />
|
||||
<Content Include="JDGL\Check\TotalCompletion.aspx" />
|
||||
<Content Include="JDGL\Check\UndergroundPipeCompletion.aspx" />
|
||||
<Content Include="JDGL\Check\UndergroundPipeCompletionEdit.aspx" />
|
||||
<Content Include="JDGL\Check\UndergroundPipeCompletionIn.aspx" />
|
||||
<Content Include="JDGL\CostAnalysis\EarnedValueCurve.aspx" />
|
||||
<Content Include="JDGL\CostAnalysis\PlanAdjust.aspx" />
|
||||
@@ -1139,6 +1150,10 @@
|
||||
<Content Include="JDGL\WBSPlan\WBSPlanAudit.aspx" />
|
||||
<Content Include="JDGL\WBSPlan\WBSPlanSet.aspx" />
|
||||
<Content Include="JDGL\WBSWeights\WeightsAudit.aspx" />
|
||||
<Content Include="JDGL\WBS\CostControlDetailEdit.aspx" />
|
||||
<Content Include="JDGL\WBS\CostControlDetailHistoryShow.aspx" />
|
||||
<Content Include="JDGL\WBS\CostControlEdit.aspx" />
|
||||
<Content Include="JDGL\WBS\CostControlInitEdit.aspx" />
|
||||
<Content Include="JDGL\WBS\WBSIn.aspx" />
|
||||
<Content Include="JDGL\WBS\WBSOut.aspx" />
|
||||
<Content Include="JDGL\WBS\WBSSet.aspx" />
|
||||
@@ -1147,6 +1162,8 @@
|
||||
<Content Include="JDGL\WBS\WBSSetCopy.aspx" />
|
||||
<Content Include="JDGL\WBS\WBSSetCopy2.aspx" />
|
||||
<Content Include="JDGL\WBS\WBSSetEdit.aspx" />
|
||||
<Content Include="JDGL\WBS\WorkloadInput.aspx" />
|
||||
<Content Include="JDGL\WBS\WorkloadStatistics.aspx" />
|
||||
<Content Include="Login.aspx" />
|
||||
<Content Include="Notice\IssuedNotice.aspx" />
|
||||
<Content Include="Notice\NoIssuedNotice.aspx" />
|
||||
@@ -1162,18 +1179,41 @@
|
||||
<Content Include="OfficeCheck\Check\RectifyEdit.aspx" />
|
||||
<Content Include="OfficeCheck\ProjectEvaluation\ProjectEvaluation.aspx" />
|
||||
<Content Include="OfficeCheck\ProjectEvaluation\ProjectEvaluationEdit.aspx" />
|
||||
<Content Include="Party\BasicInformation.aspx" />
|
||||
<Content Include="Party\CommentPartyer.aspx" />
|
||||
<Content Include="Party\CommentPartyerEdit.aspx" />
|
||||
<Content Include="Party\DoingThingsForMasses.aspx" />
|
||||
<Content Include="Party\DoingThingsForMassesEdit.aspx" />
|
||||
<Content Include="Party\EmployeeConversationRecord.aspx" />
|
||||
<Content Include="Party\EmployeeConversationRecordEdit.aspx" />
|
||||
<Content Include="Party\FocusLearn.aspx" />
|
||||
<Content Include="Party\FocusLearnEdit.aspx" />
|
||||
<Content Include="Party\LastWorkSummary.aspx" />
|
||||
<Content Include="Party\LastWorkSummaryEdit.aspx" />
|
||||
<Content Include="Party\NewsPropagandaWork.aspx" />
|
||||
<Content Include="Party\NewsPropagandaWorkEdit.aspx" />
|
||||
<Content Include="Party\OrganizingLife.aspx" />
|
||||
<Content Include="Party\OrganizingLifeEdit.aspx" />
|
||||
<Content Include="Party\PartyCommittee.aspx" />
|
||||
<Content Include="Party\PartyCommitteeEdit.aspx" />
|
||||
<Content Include="Party\PartyCongress.aspx" />
|
||||
<Content Include="Party\PartyCongressEdit.aspx" />
|
||||
<Content Include="Party\Partyer.aspx" />
|
||||
<Content Include="Party\PartyerEdit.aspx" />
|
||||
<Content Include="Party\PartyHistoryStudy.aspx" />
|
||||
<Content Include="Party\PartyHistoryStudyEdit.aspx" />
|
||||
<Content Include="Party\PartyLecture.aspx" />
|
||||
<Content Include="Party\PartyLectureEdit.aspx" />
|
||||
<Content Include="Party\PartyMeeting.aspx" />
|
||||
<Content Include="Party\PartyMeetingEdit.aspx" />
|
||||
<Content Include="Party\PartyMoneyUse.aspx" />
|
||||
<Content Include="Party\PartyMoneyUseEdit.aspx" />
|
||||
<Content Include="Party\PartyPioneerDemonstration.aspx" />
|
||||
<Content Include="Party\PartyPioneerDemonstrationEdit.aspx" />
|
||||
<Content Include="Party\ThemePartyDay.aspx" />
|
||||
<Content Include="Party\ThemePartyDayEdit.aspx" />
|
||||
<Content Include="Party\TwoOneGoodSelection.aspx" />
|
||||
<Content Include="Party\TwoOneGoodSelectionEdit.aspx" />
|
||||
<Content Include="Party\WorkPlan.aspx" />
|
||||
<Content Include="Party\WorkPlanEdit.aspx" />
|
||||
<Content Include="Personal\FileSearch.aspx" />
|
||||
@@ -1272,6 +1312,12 @@
|
||||
<Content Include="AttachFile\fileupload.ashx" />
|
||||
<Content Include="AttachFile\lib\README.md" />
|
||||
<Content Include="res\index\images\logocenter.png" />
|
||||
<Content Include="res\js\swiper-bundle.min.css" />
|
||||
<Content Include="res\js\swiper-bundle.min.js" />
|
||||
<Content Include="res\js\swiper.css" />
|
||||
<Content Include="res\js\swiper.js" />
|
||||
<Content Include="res\js\swiper.min.css" />
|
||||
<Content Include="res\js\swiper.min.js" />
|
||||
<Content Include="res\liveplayer\liveplayer-element.min.js" />
|
||||
<Content Include="res\liveplayer\liveplayer.swf" />
|
||||
<Content Include="TestRun\BeforeTestRun\BeforeTestRun.aspx" />
|
||||
@@ -1528,6 +1574,7 @@
|
||||
<Content Include="File\Word\HSSE\HSE隐患整改反馈单.doc" />
|
||||
<Content Include="File\Word\HSSE\HSE隐患整改通知单.doc" />
|
||||
<Content Include="File\Word\HSSE\工程暂停令.doc" />
|
||||
<Content Include="File\Excel\DataIn\现场人员考勤导入模版.xls" />
|
||||
<None Include="packages.config" />
|
||||
<Content Include="ReportPrint\ReportTabFile\分包商上传周报.tab" />
|
||||
<Content Include="ReportPrint\ReportTabFile\HSSE日志暨管理数据收集.tab" />
|
||||
@@ -5880,6 +5927,13 @@
|
||||
<Compile Include="common\mainMenu_HJGL.aspx.designer.cs">
|
||||
<DependentUpon>mainMenu_HJGL.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="common\mainMenu_Party.aspx.cs">
|
||||
<DependentUpon>mainMenu_Party.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="common\mainMenu_Party.aspx.designer.cs">
|
||||
<DependentUpon>mainMenu_Party.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="common\mainMenu_PDigData.aspx.cs">
|
||||
<DependentUpon>mainMenu_PDigData.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -11637,6 +11691,13 @@
|
||||
<Compile Include="JDGL\Check\ElectricalCompletion.aspx.designer.cs">
|
||||
<DependentUpon>ElectricalCompletion.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\ElectricalCompletionEdit.aspx.cs">
|
||||
<DependentUpon>ElectricalCompletionEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\ElectricalCompletionEdit.aspx.designer.cs">
|
||||
<DependentUpon>ElectricalCompletionEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\ElectricalCompletionIn.aspx.cs">
|
||||
<DependentUpon>ElectricalCompletionIn.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -11651,6 +11712,13 @@
|
||||
<Compile Include="JDGL\Check\EquipmentCompletion.aspx.designer.cs">
|
||||
<DependentUpon>EquipmentCompletion.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\EquipmentCompletionEdit.aspx.cs">
|
||||
<DependentUpon>EquipmentCompletionEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\EquipmentCompletionEdit.aspx.designer.cs">
|
||||
<DependentUpon>EquipmentCompletionEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\EquipmentCompletionIn.aspx.cs">
|
||||
<DependentUpon>EquipmentCompletionIn.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -11658,6 +11726,27 @@
|
||||
<Compile Include="JDGL\Check\EquipmentCompletionIn.aspx.designer.cs">
|
||||
<DependentUpon>EquipmentCompletionIn.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\LowTankCompletion.aspx.cs">
|
||||
<DependentUpon>LowTankCompletion.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\LowTankCompletion.aspx.designer.cs">
|
||||
<DependentUpon>LowTankCompletion.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\LowTankCompletionEdit.aspx.cs">
|
||||
<DependentUpon>LowTankCompletionEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\LowTankCompletionEdit.aspx.designer.cs">
|
||||
<DependentUpon>LowTankCompletionEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\LowTankCompletionIn.aspx.cs">
|
||||
<DependentUpon>LowTankCompletionIn.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\LowTankCompletionIn.aspx.designer.cs">
|
||||
<DependentUpon>LowTankCompletionIn.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\MeterCompletion.aspx.cs">
|
||||
<DependentUpon>MeterCompletion.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -11665,6 +11754,13 @@
|
||||
<Compile Include="JDGL\Check\MeterCompletion.aspx.designer.cs">
|
||||
<DependentUpon>MeterCompletion.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\MeterCompletionEdit.aspx.cs">
|
||||
<DependentUpon>MeterCompletionEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\MeterCompletionEdit.aspx.designer.cs">
|
||||
<DependentUpon>MeterCompletionEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\MeterCompletionIn.aspx.cs">
|
||||
<DependentUpon>MeterCompletionIn.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -11679,6 +11775,13 @@
|
||||
<Compile Include="JDGL\Check\PipelineCompletion.aspx.designer.cs">
|
||||
<DependentUpon>PipelineCompletion.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\PipelineCompletionEdit.aspx.cs">
|
||||
<DependentUpon>PipelineCompletionEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\PipelineCompletionEdit.aspx.designer.cs">
|
||||
<DependentUpon>PipelineCompletionEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\PipelineCompletionIn.aspx.cs">
|
||||
<DependentUpon>PipelineCompletionIn.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -11728,6 +11831,13 @@
|
||||
<Compile Include="JDGL\Check\QuantityCompletion.aspx.designer.cs">
|
||||
<DependentUpon>QuantityCompletion.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\QuantityCompletionEdit.aspx.cs">
|
||||
<DependentUpon>QuantityCompletionEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\QuantityCompletionEdit.aspx.designer.cs">
|
||||
<DependentUpon>QuantityCompletionEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\QuantityCompletionIn.aspx.cs">
|
||||
<DependentUpon>QuantityCompletionIn.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -11763,6 +11873,13 @@
|
||||
<Compile Include="JDGL\Check\SteelStructureCompletion.aspx.designer.cs">
|
||||
<DependentUpon>SteelStructureCompletion.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\SteelStructureCompletionEdit.aspx.cs">
|
||||
<DependentUpon>SteelStructureCompletionEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\SteelStructureCompletionEdit.aspx.designer.cs">
|
||||
<DependentUpon>SteelStructureCompletionEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\SteelStructureCompletionIn.aspx.cs">
|
||||
<DependentUpon>SteelStructureCompletionIn.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -11784,6 +11901,13 @@
|
||||
<Compile Include="JDGL\Check\UndergroundPipeCompletion.aspx.designer.cs">
|
||||
<DependentUpon>UndergroundPipeCompletion.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\UndergroundPipeCompletionEdit.aspx.cs">
|
||||
<DependentUpon>UndergroundPipeCompletionEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\UndergroundPipeCompletionEdit.aspx.designer.cs">
|
||||
<DependentUpon>UndergroundPipeCompletionEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\Check\UndergroundPipeCompletionIn.aspx.cs">
|
||||
<DependentUpon>UndergroundPipeCompletionIn.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -11854,6 +11978,34 @@
|
||||
<Compile Include="JDGL\WBSWeights\WeightsAudit.aspx.designer.cs">
|
||||
<DependentUpon>WeightsAudit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\CostControlDetailEdit.aspx.cs">
|
||||
<DependentUpon>CostControlDetailEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\CostControlDetailEdit.aspx.designer.cs">
|
||||
<DependentUpon>CostControlDetailEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\CostControlDetailHistoryShow.aspx.cs">
|
||||
<DependentUpon>CostControlDetailHistoryShow.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\CostControlDetailHistoryShow.aspx.designer.cs">
|
||||
<DependentUpon>CostControlDetailHistoryShow.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\CostControlEdit.aspx.cs">
|
||||
<DependentUpon>CostControlEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\CostControlEdit.aspx.designer.cs">
|
||||
<DependentUpon>CostControlEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\CostControlInitEdit.aspx.cs">
|
||||
<DependentUpon>CostControlInitEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\CostControlInitEdit.aspx.designer.cs">
|
||||
<DependentUpon>CostControlInitEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\WBSIn.aspx.cs">
|
||||
<DependentUpon>WBSIn.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -11910,6 +12062,20 @@
|
||||
<Compile Include="JDGL\WBS\WBSSetEdit.aspx.designer.cs">
|
||||
<DependentUpon>WBSSetEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\WorkloadInput.aspx.cs">
|
||||
<DependentUpon>WorkloadInput.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\WorkloadInput.aspx.designer.cs">
|
||||
<DependentUpon>WorkloadInput.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\WorkloadStatistics.aspx.cs">
|
||||
<DependentUpon>WorkloadStatistics.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="JDGL\WBS\WorkloadStatistics.aspx.designer.cs">
|
||||
<DependentUpon>WorkloadStatistics.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Login.aspx.cs">
|
||||
<DependentUpon>Login.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -12015,6 +12181,69 @@
|
||||
<Compile Include="OfficeCheck\ProjectEvaluation\ProjectEvaluationEdit.aspx.designer.cs">
|
||||
<DependentUpon>ProjectEvaluationEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\BasicInformation.aspx.cs">
|
||||
<DependentUpon>BasicInformation.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\BasicInformation.aspx.designer.cs">
|
||||
<DependentUpon>BasicInformation.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\CommentPartyer.aspx.cs">
|
||||
<DependentUpon>CommentPartyer.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\CommentPartyer.aspx.designer.cs">
|
||||
<DependentUpon>CommentPartyer.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\CommentPartyerEdit.aspx.cs">
|
||||
<DependentUpon>CommentPartyerEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\CommentPartyerEdit.aspx.designer.cs">
|
||||
<DependentUpon>CommentPartyerEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\DoingThingsForMasses.aspx.cs">
|
||||
<DependentUpon>DoingThingsForMasses.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\DoingThingsForMasses.aspx.designer.cs">
|
||||
<DependentUpon>DoingThingsForMasses.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\DoingThingsForMassesEdit.aspx.cs">
|
||||
<DependentUpon>DoingThingsForMassesEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\DoingThingsForMassesEdit.aspx.designer.cs">
|
||||
<DependentUpon>DoingThingsForMassesEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\EmployeeConversationRecord.aspx.cs">
|
||||
<DependentUpon>EmployeeConversationRecord.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\EmployeeConversationRecord.aspx.designer.cs">
|
||||
<DependentUpon>EmployeeConversationRecord.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\EmployeeConversationRecordEdit.aspx.cs">
|
||||
<DependentUpon>EmployeeConversationRecordEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\EmployeeConversationRecordEdit.aspx.designer.cs">
|
||||
<DependentUpon>EmployeeConversationRecordEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\FocusLearn.aspx.cs">
|
||||
<DependentUpon>FocusLearn.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\FocusLearn.aspx.designer.cs">
|
||||
<DependentUpon>FocusLearn.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\FocusLearnEdit.aspx.cs">
|
||||
<DependentUpon>FocusLearnEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\FocusLearnEdit.aspx.designer.cs">
|
||||
<DependentUpon>FocusLearnEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\LastWorkSummary.aspx.cs">
|
||||
<DependentUpon>LastWorkSummary.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -12029,6 +12258,20 @@
|
||||
<Compile Include="Party\LastWorkSummaryEdit.aspx.designer.cs">
|
||||
<DependentUpon>LastWorkSummaryEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\NewsPropagandaWork.aspx.cs">
|
||||
<DependentUpon>NewsPropagandaWork.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\NewsPropagandaWork.aspx.designer.cs">
|
||||
<DependentUpon>NewsPropagandaWork.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\NewsPropagandaWorkEdit.aspx.cs">
|
||||
<DependentUpon>NewsPropagandaWorkEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\NewsPropagandaWorkEdit.aspx.designer.cs">
|
||||
<DependentUpon>NewsPropagandaWorkEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\OrganizingLife.aspx.cs">
|
||||
<DependentUpon>OrganizingLife.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -12071,6 +12314,34 @@
|
||||
<Compile Include="Party\PartyCongressEdit.aspx.designer.cs">
|
||||
<DependentUpon>PartyCongressEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\Partyer.aspx.cs">
|
||||
<DependentUpon>Partyer.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\Partyer.aspx.designer.cs">
|
||||
<DependentUpon>Partyer.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyerEdit.aspx.cs">
|
||||
<DependentUpon>PartyerEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyerEdit.aspx.designer.cs">
|
||||
<DependentUpon>PartyerEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyHistoryStudy.aspx.cs">
|
||||
<DependentUpon>PartyHistoryStudy.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyHistoryStudy.aspx.designer.cs">
|
||||
<DependentUpon>PartyHistoryStudy.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyHistoryStudyEdit.aspx.cs">
|
||||
<DependentUpon>PartyHistoryStudyEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyHistoryStudyEdit.aspx.designer.cs">
|
||||
<DependentUpon>PartyHistoryStudyEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyLecture.aspx.cs">
|
||||
<DependentUpon>PartyLecture.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -12099,6 +12370,62 @@
|
||||
<Compile Include="Party\PartyMeetingEdit.aspx.designer.cs">
|
||||
<DependentUpon>PartyMeetingEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyMoneyUse.aspx.cs">
|
||||
<DependentUpon>PartyMoneyUse.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyMoneyUse.aspx.designer.cs">
|
||||
<DependentUpon>PartyMoneyUse.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyMoneyUseEdit.aspx.cs">
|
||||
<DependentUpon>PartyMoneyUseEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyMoneyUseEdit.aspx.designer.cs">
|
||||
<DependentUpon>PartyMoneyUseEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyPioneerDemonstration.aspx.cs">
|
||||
<DependentUpon>PartyPioneerDemonstration.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyPioneerDemonstration.aspx.designer.cs">
|
||||
<DependentUpon>PartyPioneerDemonstration.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyPioneerDemonstrationEdit.aspx.cs">
|
||||
<DependentUpon>PartyPioneerDemonstrationEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\PartyPioneerDemonstrationEdit.aspx.designer.cs">
|
||||
<DependentUpon>PartyPioneerDemonstrationEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\ThemePartyDay.aspx.cs">
|
||||
<DependentUpon>ThemePartyDay.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\ThemePartyDay.aspx.designer.cs">
|
||||
<DependentUpon>ThemePartyDay.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\ThemePartyDayEdit.aspx.cs">
|
||||
<DependentUpon>ThemePartyDayEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\ThemePartyDayEdit.aspx.designer.cs">
|
||||
<DependentUpon>ThemePartyDayEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\TwoOneGoodSelection.aspx.cs">
|
||||
<DependentUpon>TwoOneGoodSelection.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\TwoOneGoodSelection.aspx.designer.cs">
|
||||
<DependentUpon>TwoOneGoodSelection.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\TwoOneGoodSelectionEdit.aspx.cs">
|
||||
<DependentUpon>TwoOneGoodSelectionEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Party\TwoOneGoodSelectionEdit.aspx.designer.cs">
|
||||
<DependentUpon>TwoOneGoodSelectionEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Party\WorkPlan.aspx.cs">
|
||||
<DependentUpon>WorkPlan.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:WindowField TextAlign="Center" Width="90px" WindowID="WindowAtt" HeaderText="证书扫描件"
|
||||
Text="查看" ToolTip="附件上传查看" DataIFrameUrlFields="SafePersonQualityId" DataIFrameUrlFormatString="../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/SafePersonQualityAttachUrl&menuId=750F5074-45B9-470E-AE1E-6204957421E6&type=-1"
|
||||
Text="查看" ToolTip="附件上传查看" DataIFrameUrlFields="SafePersonQualityId" DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/SafePersonQualityAttachUrl&menuId=750F5074-45B9-470E-AE1E-6204957421E6&type=-1"
|
||||
HeaderTextAlign="Center" ColumnID="attWindow" />
|
||||
</Columns>
|
||||
<Listeners>
|
||||
|
||||
@@ -60,12 +60,9 @@
|
||||
<f:RenderField Width="220px" ColumnID="IdentityCard" DataField="IdentityCard" SortField="IdentityCard"
|
||||
FieldType="String" HeaderText="身份证号码" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="tfIntoOut" Width="150px" HeaderText="进/出" HeaderTextAlign="Center" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblIntoOut" runat="server" Text='<%# ConvertIntoOut(Eval("IntoOut")) %>'
|
||||
ToolTip='<%#ConvertIntoOut(Eval("IntoOut")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="150px" ColumnID="IntoOut" DataField="IntoOut" SortField="IntoOut"
|
||||
FieldType="String" HeaderText="进/出" HeaderTextAlign="Center" TextAlign="Center" RendererFunction="renderGender">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="240px" ColumnID="IntoOutTime" DataField="IntoOutTime" SortField="IntoOutTime"
|
||||
FieldType="String" HeaderText="时间" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
@@ -90,5 +87,10 @@
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
<script>
|
||||
function renderGender(value) {
|
||||
return value == '1' ? '进场' : '出场';
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -362,7 +362,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
checking.UnitName = col0;
|
||||
checking.PersonName = col1;
|
||||
checking.IdentityCard = col2;
|
||||
checking.IntoOut = (col3 == "进"? "1": "0");
|
||||
checking.IntoOut = col3 == "进" ? "1" : "0";
|
||||
checking.IntoOutTime = Convert.ToDateTime(col4);
|
||||
var person = BLL.PersonService.GetPersonByIdentityCard(this.CurrUser.LoginProjectId, checking.IdentityCard);
|
||||
if (person != null)
|
||||
@@ -403,15 +403,13 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
int a = viewCheckings.Count();
|
||||
for (int i = 0; i < a; i++)
|
||||
{
|
||||
Model.SitePerson_Checking newChecking = new Model.SitePerson_Checking
|
||||
{
|
||||
CheckingId = viewCheckings[i].CheckingId,
|
||||
ProjectId = this.CurrUser.LoginProjectId,
|
||||
IdentityCard = viewCheckings[i].IdentityCard,
|
||||
IntoOutTime = viewCheckings[i].IntoOutTime,
|
||||
IntoOut = viewCheckings[i].IntoOut,
|
||||
PersonId = viewCheckings[i].PersonId
|
||||
};
|
||||
Model.SitePerson_Checking newChecking = new Model.SitePerson_Checking();
|
||||
newChecking.CheckingId = viewCheckings[i].CheckingId;
|
||||
newChecking.ProjectId = this.CurrUser.LoginProjectId;
|
||||
newChecking.IdentityCard = viewCheckings[i].IdentityCard;
|
||||
newChecking.IntoOutTime = viewCheckings[i].IntoOutTime;
|
||||
newChecking.IntoOut = viewCheckings[i].IntoOut;
|
||||
newChecking.PersonId = viewCheckings[i].PersonId;
|
||||
BLL.SitePerson_CheckingService.AddPersonInfo(newChecking);
|
||||
}
|
||||
string rootPath = Server.MapPath("~/");
|
||||
@@ -466,29 +464,6 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
Response.End();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 转换字符串
|
||||
/// <summary>
|
||||
/// 把进出转换为字符串类型
|
||||
/// </summary>
|
||||
/// <param name="sex"></param>
|
||||
/// <returns></returns>
|
||||
protected string ConvertIntoOut(object intoOut)
|
||||
{
|
||||
if (intoOut != null)
|
||||
{
|
||||
if (Convert.ToBoolean(intoOut) == true)
|
||||
{
|
||||
return "进场";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "出场";
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -120,15 +120,6 @@ namespace FineUIPro.Web.HSSE.SitePerson {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// lblIntoOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblIntoOut;
|
||||
|
||||
/// <summary>
|
||||
/// hdFileName 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -240,6 +240,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
}
|
||||
else
|
||||
{
|
||||
this.InitProjectDropDownList();
|
||||
var unit = BLL.UnitService.GetUnitByUnitId(this.UnitId);
|
||||
if (unit != null)
|
||||
{
|
||||
@@ -293,45 +294,48 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.txtPersonName.Text))
|
||||
if (string.IsNullOrEmpty(this.txtOutTime.Text.Trim()))
|
||||
{
|
||||
ShowNotify("人员姓名不能为空!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpIdcardType.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择证件类型!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(this.txtIdentityCard.Text))
|
||||
{
|
||||
ShowNotify("证件号码不能为空!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
//if (string.IsNullOrEmpty(this.txtIdcardStartDate.Text))
|
||||
//{
|
||||
// ShowNotify("证件开始日期不能为空!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
//if (this.txtIdcardEndDate.Enabled == true && string.IsNullOrEmpty(this.txtIdcardEndDate.Text.Trim()))
|
||||
//{
|
||||
// ShowNotify("证件有效日期不能为空!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
if (this.drpTeamGroup.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择所属班组!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpPost.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择所属岗位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(this.txtInTime.Text))
|
||||
{
|
||||
ShowNotify("入场时间不能为空!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
if (string.IsNullOrEmpty(this.txtPersonName.Text))
|
||||
{
|
||||
ShowNotify("人员姓名不能为空!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpIdcardType.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择证件类型!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(this.txtIdentityCard.Text))
|
||||
{
|
||||
ShowNotify("证件号码不能为空!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
//if (string.IsNullOrEmpty(this.txtIdcardStartDate.Text))
|
||||
//{
|
||||
// ShowNotify("证件开始日期不能为空!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
//if (this.txtIdcardEndDate.Enabled == true && string.IsNullOrEmpty(this.txtIdcardEndDate.Text.Trim()))
|
||||
//{
|
||||
// ShowNotify("证件有效日期不能为空!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
if (this.drpTeamGroup.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择所属班组!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpPost.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择所属岗位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(this.txtInTime.Text))
|
||||
{
|
||||
ShowNotify("入场时间不能为空!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
SaveData();
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
@@ -481,15 +485,18 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
{
|
||||
person.Birthday = Convert.ToDateTime(this.txtBirthday.Text.Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(imgPhoto.ImageUrl) && imgPhoto.ImageUrl != "~/res/images/blank_150.png")
|
||||
if (string.IsNullOrEmpty(this.txtOutTime.Text.Trim()))
|
||||
{
|
||||
person.PhotoUrl = imgPhoto.ImageUrl.Replace("~/", "");
|
||||
person.HeadImage = AttachFileService.SetImageToByteArray(Funs.RootPath + person.PhotoUrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
person.PhotoUrl = null;
|
||||
person.HeadImage = null;
|
||||
if (!string.IsNullOrEmpty(imgPhoto.ImageUrl) && imgPhoto.ImageUrl != "~/res/images/blank_150.png")
|
||||
{
|
||||
person.PhotoUrl = imgPhoto.ImageUrl.Replace("~/", "");
|
||||
person.HeadImage = AttachFileService.SetImageToByteArray(Funs.RootPath + person.PhotoUrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
person.PhotoUrl = null;
|
||||
person.HeadImage = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(this.txtAuditorDate.Text))
|
||||
@@ -590,12 +597,14 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
BLL.PersonQualityService.AddPersonQuality(newPersonQuality);
|
||||
}
|
||||
}
|
||||
|
||||
///上传人脸库
|
||||
var getProject = ProjectService.GetProjectByProjectId(person.ProjectId);
|
||||
if (!string.IsNullOrEmpty(person.PhotoUrl) && getProject != null && getProject.IsFace == true)
|
||||
{
|
||||
Alert.ShowInParent(APIPersonService.PersonFace(person), MessageBoxIcon.Warning);
|
||||
if (string.IsNullOrEmpty(this.txtOutTime.Text.Trim()))
|
||||
{
|
||||
///上传人脸库
|
||||
var getProject = ProjectService.GetProjectByProjectId(person.ProjectId);
|
||||
if (!string.IsNullOrEmpty(person.PhotoUrl) && getProject != null && getProject.IsFace == true)
|
||||
{
|
||||
Alert.ShowInParent(APIPersonService.PersonFace(person), MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 210 KiB |
@@ -54,7 +54,7 @@
|
||||
TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="ThisNum" DataField="ThisNum" SortField="ThisNum"
|
||||
FieldType="Float" HeaderText="本期安成量" HeaderTextAlign="Center" TextAlign="Center">
|
||||
FieldType="Float" HeaderText="本期完成量" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="TotalThisNum" DataField="TotalThisNum" SortField="TotalThisNum"
|
||||
FieldType="Float" HeaderText="累计完成量" HeaderTextAlign="Center" TextAlign="Center">
|
||||
@@ -77,6 +77,9 @@
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<Items>
|
||||
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true" Text="修改" Icon="Pencil"
|
||||
OnClick="btnMenuModify_Click">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Hidden="true" Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?"
|
||||
OnClick="btnMenuDel_Click">
|
||||
</f:MenuButton>
|
||||
|
||||
@@ -39,12 +39,23 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
this.btnMenuModify.Hidden = false;
|
||||
this.btnMenuDel.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void btnMenuModify_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ElectricalCompletionEdit.aspx?ElectricalCompletionId={0}", Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
|
||||
protected void btnMenuDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||
|
||||
@@ -93,6 +93,15 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuModify 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuModify;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDel 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectricalCompletionEdit.aspx.cs" Inherits="FineUIPro.Web.JDGL.Check.ElectricalCompletionEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox runat="server" ID="txtThisNum" Required="true" ShowRedStar="true" Label="本期完成量" LabelWidth="150px" NoDecimal="false" NoNegative="true"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:HiddenField ID="hdCheckerId" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false"
|
||||
runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,91 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.JDGL.Check
|
||||
{
|
||||
public partial class ElectricalCompletionEdit : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
public string ElectricalCompletionId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ElectricalCompletionId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ElectricalCompletionId"] = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 项目id
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
ElectricalCompletionId = Request.Params["ElectricalCompletionId"];
|
||||
if (!string.IsNullOrEmpty(ElectricalCompletionId))
|
||||
{
|
||||
|
||||
Model.JDGL_ElectricalCompletion ElectricalCompletion = BLL.ElectricalCompletionService.GetElectricalCompletionById(ElectricalCompletionId);
|
||||
if (ElectricalCompletion != null)
|
||||
{
|
||||
this.ProjectId = ElectricalCompletion.ProjectId;
|
||||
if (ElectricalCompletion.ThisNum != null)
|
||||
{
|
||||
this.txtThisNum.Text = ElectricalCompletion.ThisNum.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
SaveData(true);
|
||||
}
|
||||
|
||||
private void SaveData(bool bl)
|
||||
{
|
||||
string ElectricalCompletionId = Request.Params["ElectricalCompletionId"];
|
||||
Model.JDGL_ElectricalCompletion ElectricalCompletion = new Model.JDGL_ElectricalCompletion();
|
||||
if (!string.IsNullOrEmpty(this.txtThisNum.Text.Trim()))
|
||||
{
|
||||
ElectricalCompletion.ThisNum = Convert.ToDecimal(this.txtThisNum.Text.Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(ElectricalCompletionId))
|
||||
{
|
||||
ElectricalCompletion.ElectricalCompletionId = ElectricalCompletionId;
|
||||
BLL.ElectricalCompletionService.UpdateElectricalCompletion(ElectricalCompletion);
|
||||
}
|
||||
else
|
||||
{
|
||||
ElectricalCompletion.ElectricalCompletionId = SQLHelper.GetNewID(typeof(Model.JDGL_ElectricalCompletion));
|
||||
BLL.ElectricalCompletionService.AddElectricalCompletion(ElectricalCompletion);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JDGL.Check {
|
||||
|
||||
|
||||
public partial class ElectricalCompletionEdit {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtThisNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtThisNum;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// hdCheckerId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdCheckerId;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
}
|
||||
}
|
||||
@@ -73,6 +73,9 @@
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<Items>
|
||||
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true" Text="修改" Icon="Pencil"
|
||||
OnClick="btnMenuModify_Click">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Hidden="true" Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?"
|
||||
OnClick="btnMenuDel_Click">
|
||||
</f:MenuButton>
|
||||
|
||||
@@ -39,12 +39,23 @@ namespace FineUIPro.Web.JDGL.Check
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
this.btnMenuModify.Hidden = false;
|
||||
this.btnMenuDel.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void btnMenuModify_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentCompletionEdit.aspx?EquipmentCompletionId={0}", Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
|
||||
protected void btnMenuDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||
|
||||
@@ -93,6 +93,15 @@ namespace FineUIPro.Web.JDGL.Check {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuModify 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuModify;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDel 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentCompletionEdit.aspx.cs" Inherits="FineUIPro.Web.JDGL.Check.EquipmentCompletionEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox runat="server" ID="txtArrivalNum" Required="true" ShowRedStar="true" Label="已到场数量" LabelWidth="150px" NoDecimal="false" NoNegative="true"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox runat="server" ID="txtThisNum" Required="true" ShowRedStar="true" Label="本期安装就位数量" LabelWidth="150px" NoDecimal="false" NoNegative="true"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:HiddenField ID="hdCheckerId" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false"
|
||||
runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,99 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.JDGL.Check
|
||||
{
|
||||
public partial class EquipmentCompletionEdit : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
public string EquipmentCompletionId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["EquipmentCompletionId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["EquipmentCompletionId"] = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 项目id
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
EquipmentCompletionId = Request.Params["EquipmentCompletionId"];
|
||||
if (!string.IsNullOrEmpty(EquipmentCompletionId))
|
||||
{
|
||||
|
||||
Model.JDGL_EquipmentCompletion EquipmentCompletion = BLL.EquipmentCompletionService.GetEquipmentCompletionById(EquipmentCompletionId);
|
||||
if (EquipmentCompletion != null)
|
||||
{
|
||||
this.ProjectId = EquipmentCompletion.ProjectId;
|
||||
if (EquipmentCompletion.ArrivalNum != null)
|
||||
{
|
||||
this.txtArrivalNum.Text = EquipmentCompletion.ArrivalNum.ToString();
|
||||
}
|
||||
if (EquipmentCompletion.ThisNum != null)
|
||||
{
|
||||
this.txtThisNum.Text = EquipmentCompletion.ThisNum.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
SaveData(true);
|
||||
}
|
||||
|
||||
private void SaveData(bool bl)
|
||||
{
|
||||
string EquipmentCompletionId = Request.Params["EquipmentCompletionId"];
|
||||
Model.JDGL_EquipmentCompletion EquipmentCompletion = new Model.JDGL_EquipmentCompletion();
|
||||
if (!string.IsNullOrEmpty(this.txtArrivalNum.Text.Trim()))
|
||||
{
|
||||
EquipmentCompletion.ArrivalNum = Convert.ToDecimal(this.txtArrivalNum.Text.Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtThisNum.Text.Trim()))
|
||||
{
|
||||
EquipmentCompletion.ThisNum = Convert.ToDecimal(this.txtThisNum.Text.Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(EquipmentCompletionId))
|
||||
{
|
||||
EquipmentCompletion.EquipmentCompletionId = EquipmentCompletionId;
|
||||
BLL.EquipmentCompletionService.UpdateEquipmentCompletion(EquipmentCompletion);
|
||||
}
|
||||
else
|
||||
{
|
||||
EquipmentCompletion.EquipmentCompletionId = SQLHelper.GetNewID(typeof(Model.JDGL_EquipmentCompletion));
|
||||
BLL.EquipmentCompletionService.AddEquipmentCompletion(EquipmentCompletion);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JDGL.Check {
|
||||
|
||||
|
||||
public partial class EquipmentCompletionEdit {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtArrivalNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtArrivalNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtThisNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtThisNum;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// hdCheckerId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdCheckerId;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LowTankCompletion.aspx.cs" Inherits="FineUIPro.Web.JDGL.Check.LowTankCompletion" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>低温储罐完成情况</title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
|
||||
<f:Grid ID="Grid1" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="低温储罐完成情况" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="LowTankCompletionId" AllowCellEditing="true" ForceFit="true"
|
||||
ClicksToEdit="1" DataIDField="LowTankCompletionId" AllowSorting="true" SortField="Code"
|
||||
SortDirection="ASC" EnableColumnLines="true"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="1000"
|
||||
AllowFilters="true" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnImport" ToolTip="导入" Icon="ApplicationGet" runat="server"
|
||||
OnClick="btnImport_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="100px" ColumnID="Code" DataField="Code"
|
||||
SortField="Code" FieldType="String" HeaderText="储罐编号" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="130px" ColumnID="Name" DataField="Name"
|
||||
SortField="Name" FieldType="String" HeaderText="类型" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Unit" DataField="Unit"
|
||||
SortField="Unit" FieldType="String" HeaderText="单位" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="TotalNum" DataField="TotalNum"
|
||||
SortField="TotalNum" FieldType="Float" HeaderText="设计数量" HeaderTextAlign="Center"
|
||||
TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:GroupField EnableLock="true" HeaderText="本期" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="70px" ColumnID="PlanNum" DataField="PlanNum" FieldType="Float"
|
||||
HeaderText="计划完成" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="RealNum" DataField="RealNum"
|
||||
FieldType="Float" HeaderText="实际完成" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableColumnEdit="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Rate" DataField="Rate"
|
||||
FieldType="String" HeaderText="计划完成率" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField EnableLock="true" HeaderText="累计" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="70px" ColumnID="TotalPlanNum" DataField="TotalPlanNum" FieldType="Float"
|
||||
HeaderText="计划完成" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="TotalRealNum" DataField="TotalRealNum"
|
||||
FieldType="Float" HeaderText="实际完成" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="TotalRate" DataField="TotalRate"
|
||||
FieldType="String" HeaderText="计划完成率" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:RenderField Width="100px" ColumnID="SumRate" DataField="SumRate"
|
||||
FieldType="String" HeaderText="总完成率" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
<f:Listener Event="dataload" Handler="onGridDataLoad" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="导入" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="false"
|
||||
CloseAction="HidePostBack" Width="1200px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<Items>
|
||||
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true" Text="修改" Icon="Pencil"
|
||||
OnClick="btnMenuModify_Click">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Hidden="true" Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?"
|
||||
OnClick="btnMenuDel_Click">
|
||||
</f:MenuButton>
|
||||
</Items>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
|
||||
function onGridDataLoad(event) {
|
||||
this.mergeColumns(['Code'], {
|
||||
depends: true
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,127 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace FineUIPro.Web.JDGL.Check
|
||||
{
|
||||
public partial class LowTankCompletion : PageBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
GetButtonPower();
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
if (Request.Params["value"] == BLL.Const._Null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.LowTankCompletionMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
this.btnMenuModify.Hidden = false;
|
||||
this.btnMenuDel.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void btnMenuModify_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LowTankCompletionEdit.aspx?LowTankCompletionId={0}", Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
|
||||
protected void btnMenuDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
BLL.LowTankCompletionService.DeleteLowTankCompletionById(rowID);
|
||||
}
|
||||
|
||||
BindGrid();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载Grid
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"select *
|
||||
from dbo.View_JDGL_LowTankCompletion qc
|
||||
where qc.ProjectId=@ProjectId order by qc.Code";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
#region 月份选择事件
|
||||
/// <summary>
|
||||
/// 月份选择事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtMonths_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 导入
|
||||
/// <summary>
|
||||
/// 导入按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LowTankCompletionIn.aspx?ProjectId={0}", this.CurrUser.LoginProjectId, "导入 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 关闭导入弹出窗口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JDGL.Check {
|
||||
|
||||
|
||||
public partial class LowTankCompletion {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// btnImport 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuModify 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuModify;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDel;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LowTankCompletionEdit.aspx.cs" Inherits="FineUIPro.Web.JDGL.Check.LowTankCompletionEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox runat="server" ID="txtPlanNum" Required="true" ShowRedStar="true" Label="计划完成" LabelWidth="150px" NoDecimal="false" NoNegative="true"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox runat="server" ID="txtRealNum" Required="true" ShowRedStar="true" Label="实际完成" LabelWidth="150px" NoDecimal="false" NoNegative="true"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:HiddenField ID="hdCheckerId" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false"
|
||||
runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,99 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.JDGL.Check
|
||||
{
|
||||
public partial class LowTankCompletionEdit : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
public string LowTankCompletionId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["LowTankCompletionId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["LowTankCompletionId"] = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 项目id
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
LowTankCompletionId = Request.Params["LowTankCompletionId"];
|
||||
if (!string.IsNullOrEmpty(LowTankCompletionId))
|
||||
{
|
||||
|
||||
Model.JDGL_LowTankCompletion LowTankCompletion = BLL.LowTankCompletionService.GetLowTankCompletionById(LowTankCompletionId);
|
||||
if (LowTankCompletion != null)
|
||||
{
|
||||
this.ProjectId = LowTankCompletion.ProjectId;
|
||||
if (LowTankCompletion.PlanNum != null)
|
||||
{
|
||||
this.txtPlanNum.Text = LowTankCompletion.PlanNum.ToString();
|
||||
}
|
||||
if (LowTankCompletion.RealNum != null)
|
||||
{
|
||||
this.txtRealNum.Text = LowTankCompletion.RealNum.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
SaveData(true);
|
||||
}
|
||||
|
||||
private void SaveData(bool bl)
|
||||
{
|
||||
string LowTankCompletionId = Request.Params["LowTankCompletionId"];
|
||||
Model.JDGL_LowTankCompletion LowTankCompletion = new Model.JDGL_LowTankCompletion();
|
||||
if (!string.IsNullOrEmpty(this.txtPlanNum.Text.Trim()))
|
||||
{
|
||||
LowTankCompletion.PlanNum = Convert.ToDecimal(this.txtPlanNum.Text.Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtRealNum.Text.Trim()))
|
||||
{
|
||||
LowTankCompletion.RealNum = Convert.ToDecimal(this.txtRealNum.Text.Trim());
|
||||
}
|
||||
if (!string.IsNullOrEmpty(LowTankCompletionId))
|
||||
{
|
||||
LowTankCompletion.LowTankCompletionId = LowTankCompletionId;
|
||||
BLL.LowTankCompletionService.UpdateLowTankCompletion(LowTankCompletion);
|
||||
}
|
||||
else
|
||||
{
|
||||
LowTankCompletion.LowTankCompletionId = SQLHelper.GetNewID(typeof(Model.JDGL_LowTankCompletion));
|
||||
BLL.LowTankCompletionService.AddLowTankCompletion(LowTankCompletion);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user