首页修改

This commit is contained in:
2023-07-26 10:12:33 +08:00
parent f0b0eca670
commit 8f97e47b42
14 changed files with 795 additions and 612 deletions
+27 -13
View File
@@ -181,19 +181,33 @@ namespace FineUIPro.Web.common
#region
private void getHTContract()
{
//var getC = (from x in Funs.DB.PHTGL_ContractReview
// join y in Funs.DB.PHTGL_Approve on x.ContractReviewId equals y.ContractId
// join z in Funs.DB.PHTGL_Contract on x.ContractId equals z.ContractId
// where x.State == 5 && Convert.ToDateTime(y.ApproveDate).Year == DateTime.Now.Year
// select new { x.ContractReviewId, z.ContractAmount }).Distinct();
this.divHTNum.InnerHtml ="0";
decimal d = 0;
//foreach (var item in getC)
//{
// d += item.ContractAmount ?? 0;
//}
this.divHTAmount.InnerHtml = Math.Round((d / 100000000), 4).ToString();
{
var ConstructionNum = Funs.DB.Base_Project.Sum(x => x.ConstructionNum);
var ConstructionMoney = Funs.DB.Base_Project.Sum(x => x.ConstructionMoney);
//var getC = (from x in Funs.DB.PHTGL_ContractReview
// join y in Funs.DB.PHTGL_Approve on x.ContractReviewId equals y.ContractId
// join z in Funs.DB.PHTGL_Contract on x.ContractId equals z.ContractId
// where x.State == 5 && Convert.ToDateTime(y.ApproveDate).Year == DateTime.Now.Year
// select new { x.ContractReviewId, z.ContractAmount }).Distinct();
this.divHTNum.InnerHtml ="0";
if (ConstructionNum.HasValue)
{
this.divHTNum.InnerHtml = ConstructionNum.Value.ToString();
}
decimal d = 0;
//foreach (var item in getC)
//{
// d += item.ContractAmount ?? 0;
//}
if (ConstructionMoney.HasValue)
{
this.divHTAmount.InnerHtml = ConstructionMoney.Value.ToString("0.####");
}
else
{
this.divHTAmount.InnerHtml = Math.Round((d / 100000000), 4).ToString();
}
}
#endregion