首页修改
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user