This commit is contained in:
毕文静 2025-07-29 09:35:32 +08:00
parent f3013d8c1a
commit 0c51a35191
5 changed files with 59 additions and 55 deletions

View File

@ -19,15 +19,15 @@
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server"
RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow >
<f:FormRow>
<Items>
<f:DropDownList ID="drpPM_General_CDI" runat="server" Label="CDI" LabelWidth="80px" EnableEdit="true">
</f:DropDownList>
<f:DropDownList ID="drpOutSourceType" runat="server" Label="OutSource Type" LabelWidth="140px" >
<f:ListItem Text="" Value="0"/>
<f:ListItem Text="A" Value="A"/>
<f:ListItem Text="B" Value="B"/>
<f:ListItem Text="C" Value="C"/>
<f:DropDownList ID="drpOutSourceType" runat="server" Label="OutSource Type" LabelWidth="140px">
<f:ListItem Text="" Value="0" />
<f:ListItem Text="A" Value="A" />
<f:ListItem Text="B" Value="B" />
<f:ListItem Text="C" Value="C" />
</f:DropDownList>
<f:NumberBox ID="txtPM_General_CostToComplete" runat="server" Label="Cost to Complete" NoNegative="true" EnableCommas="true"
LabelWidth="140px">
@ -239,6 +239,9 @@
</Items>
</f:GroupPanel>
</Items>
</f:GroupPanel>
<f:GroupPanel ID="GroupPanel5" Layout="Anchor" Title="Remarks" runat="server">
<Items>
<f:Panel ID="Panel5" Layout="HBox" ShowHeader="false" ShowBorder="false" runat="server">
@ -263,8 +266,6 @@
</f:Panel>
</Items>
</f:GroupPanel>
</Items>
</f:GroupPanel>
<f:GroupPanel ID="gpEM" Layout="Anchor" Title="EM Detail Eng单击行Forecast Start、Forecast End编辑" runat="server">
<Items>
<f:Panel ID="Panel8" Layout="HBox" ShowHeader="false" ShowBorder="false" runat="server">
@ -275,7 +276,7 @@
<Columns>
<f:RowNumberField TextAlign="Center" />
<f:RenderField Width="100px" ColumnID="DisciplinesWBSCode" DataField="DisciplinesWBSCode"
HeaderText="Identifier" HeaderTextAlign="Center" >
HeaderText="Identifier" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="DisciplinesWBSName" DataField="DisciplinesWBSName"
HeaderText="Disciplines" HeaderTextAlign="Center">
@ -328,10 +329,10 @@
<f:Toolbar ID="Toolbar1" runat="server" ToolbarAlign="Right" Position="Bottom">
<Items>
<f:Button ID="btnCalculated" Icon="CalculatorEdit" runat="server" ToolTip="Calculated Progress"
OnClick="btnCalculated_Click" Text="Calculated Progress" >
OnClick="btnCalculated_Click" Text="Calculated Progress">
</f:Button>
<f:Button ID="btnSave" Icon="SystemSave" Text="Save" runat="server" ToolTip="Save" ValidateForms="SimpleForm1"
OnClick="btnSave_Click" >
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="Close" ToolTip="Close" runat="server" Icon="SystemClose">
</f:Button>

View File

@ -96,6 +96,7 @@
aTimer.Start();
aTimer.Elapsed += new System.Timers.ElapsedEventHandler(MCEmial);
}
//填写第二张资源时,第一张资源预留一个月的时候填写人工时
if (DateTime.Now.Hour == 10)
{
@ -350,13 +351,14 @@
where x.EProjectId == epr.Key && (y.ProjectControl_JobType == "Projects" || y.ProjectControl_JobType == "MOC")
&& x.Phase == "Study/Concept Planning"
orderby x.CreateDate ascending
select new { x.ResourcePlanId, y.PM_MA_ProjectApproval }).ToList();
select new { x.ResourcePlanId, y.PM_MA_ProjectApproval, x.WO }).ToList();
//if (planLists.Count == 2)
//{
if (planLists[0].PM_MA_ProjectApproval.HasValue && planLists[0].PM_MA_ProjectApproval.Value.AddMonths(1) <= DateTime.Now)
{
string resourcePlanId = planLists[0].ResourcePlanId.ToString();
List<ManHours_Plan> manHours_Plan = (from x in Funs.DB.ManHours_Plan where x.ResourcePlanId == resourcePlanId select x).ToList();
string wo = planLists[0].WO.ToString();//特殊处理的人工时无ResourcePlanId判断Account与第一个rp的Account相同做Disabled
List<ManHours_Plan> manHours_Plan = (from x in Funs.DB.ManHours_Plan where x.EProjectId == epr.Key && (x.ResourcePlanId == resourcePlanId || x.Account.Contains(wo)) select x).ToList();
foreach (var item in manHours_Plan)
{
item.AccountDisabled = 1;

View File

@ -2887,7 +2887,7 @@ namespace FineUIPro.Web.Report
{
if (Funs.GetNewDateTime(itemOver.MCActual).Value.AddDays(90) < Funs.GetNewDateTime(DateTime.Now.ToShortDateString()) && string.IsNullOrEmpty(itemOver.FC_Signed))
{
overview.GetRow(rowIndex).GetCell(22).CellStyle = redbackgroundstyle;
overview.GetRow(rowIndex).GetCell(24).CellStyle = redbackgroundstyle;
}
}
@ -2901,7 +2901,7 @@ namespace FineUIPro.Web.Report
{
if (Funs.GetNewDateTime(itemOver.FC_Signed).Value.AddDays(180) < Funs.GetNewDateTime(DateTime.Now.ToShortDateString()) && string.IsNullOrEmpty(itemOver.ProjectControl_BC_CloseDate))
{
overview.GetRow(rowIndex).GetCell(23).CellStyle = redbackgroundstyle;
overview.GetRow(rowIndex).GetCell(25).CellStyle = redbackgroundstyle;
}
}
//超出实际MC90天仍未收到AB的As-built Received
@ -2909,7 +2909,7 @@ namespace FineUIPro.Web.Report
{
if (Funs.GetNewDateTime(itemOver.MCActual).Value.AddDays(90) < Funs.GetNewDateTime(DateTime.Now.ToShortDateString()) && string.IsNullOrEmpty(itemOver.As_built_Received))
{
overview.GetRow(rowIndex).GetCell(25).CellStyle = redDatestyle;
overview.GetRow(rowIndex).GetCell(27).CellStyle = redDatestyle;
}
}
#endregion

View File

@ -49,7 +49,7 @@ namespace FineUIPro.Web.Report
string strSql = @"SELECT costReport.CostReportId,
costReport.EProjectId,
costReport.Monthly,
costReport.OrginalBudget,
(costReport.OrginalBudget+costReport.ChangedBudget) as OrginalBudget,
costReport.ChangedBudget,
costReport.ActualCost,
(costReport.CommittedPRPO + costReport.CommittedSSRs) AS Commitment,

View File

@ -731,7 +731,8 @@
var sd = parseFloat(CostArr[i].ActualCost) + parseFloat(CostArr[i].CommittedPRPO) + parseFloat(CostArr[i].CommittedSSRs + parseFloat(CostArr[i].CostToComplete));
ActCom += "" + sd + ",";
ActComs += "" + CostArr[i].ActualCost + ",";
Budget += "" + CostArr[i].OrginalBudget + ",";
var bg = parseFloat(CostArr[i].OrginalBudget) + parseFloat(CostArr[i].ChangedBudget);
Budget += "" + bg + ",";
}
}
Legendata = '[' + Legendata.substring(0, Legendata.length - 1) + ']';