提交代码
This commit is contained in:
@@ -84,18 +84,6 @@ namespace FineUIPro.Web.common
|
||||
select x).Count();
|
||||
divCqmsPxNum.InnerText = CqmsPxNum.ToString();
|
||||
|
||||
//质量问题
|
||||
getZlwt();
|
||||
|
||||
//质量共检
|
||||
getZlgj();
|
||||
|
||||
//焊接
|
||||
getHj();
|
||||
|
||||
//关键事项
|
||||
getGjsx();
|
||||
|
||||
//在建项目
|
||||
allProjects = ProjectService.GetAllProjectDropDownList();
|
||||
int acount = allProjects.Count();
|
||||
@@ -112,6 +100,18 @@ namespace FineUIPro.Web.common
|
||||
div_cjrsCount.InnerText = pcount2.ToString();
|
||||
div_wdgcCount.InnerText = pcount3.ToString();
|
||||
|
||||
//质量问题
|
||||
getZlwt();
|
||||
|
||||
//质量共检
|
||||
getZlgj();
|
||||
|
||||
//焊接
|
||||
getHj();
|
||||
|
||||
//关键事项
|
||||
getGjsx();
|
||||
|
||||
//人员信息
|
||||
getSitePerson();
|
||||
|
||||
@@ -571,28 +571,14 @@ namespace FineUIPro.Web.common
|
||||
List<double> listdata = new List<double>();
|
||||
double result = 0;
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var ndtLists = from x in db.HJGL_FL_NdtList select x;
|
||||
////一次检测合格焊口数
|
||||
//int oneCheckJotNum = (from x in db.HJGL_Batch_NDEItem
|
||||
// join y in db.HJGL_Batch_BatchTrustItem on x.TrustBatchItemId equals y.TrustBatchItemId
|
||||
// join z in db.HJGL_Batch_PointBatchItem on y.PointBatchItemId equals z.PointBatchItemId
|
||||
// join a in db.HJGL_Batch_NDE on x.NDEID equals a.NDEID
|
||||
// where z.PointDate != null && z.PointState == "1" && y.RepairRecordId == null
|
||||
// select x.NDEItemID).Count();
|
||||
////一次检测返修焊口数
|
||||
//int oneCheckRepairJotNum = (from x in db.HJGL_Batch_NDEItem
|
||||
// join y in db.HJGL_Batch_BatchTrustItem on x.TrustBatchItemId equals y.TrustBatchItemId
|
||||
// join z in db.HJGL_Batch_PointBatchItem on y.PointBatchItemId equals z.PointBatchItemId
|
||||
// join a in db.HJGL_Batch_NDE on x.NDEID equals a.NDEID
|
||||
// where z.PointDate != null && z.PointState == "1" && y.RepairRecordId == null && x.CheckResult == "2"
|
||||
// select x.NDEItemID).Count();
|
||||
var ndtLists = from x in db.ProcessControl_NondestructiveTest_New select x;
|
||||
if (ndtLists.Count() > 0)
|
||||
{
|
||||
decimal a = 0, b = 0;
|
||||
foreach (var item in ndtLists)
|
||||
{
|
||||
a += Funs.GetNewDecimalOrZero(item.OneTimeFilmQualifiedAmount);
|
||||
b += Funs.GetNewDecimalOrZero(item.OneTimeFilmAmount);
|
||||
//a += Funs.GetNewDecimalOrZero(item.OneTimeFilmQualifiedAmount);
|
||||
//b += Funs.GetNewDecimalOrZero(item.OneTimeFilmAmount);
|
||||
}
|
||||
if (b > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user