diff --git a/FCL/FineUIPro.Web/Evaluation/ContractorEvaluation.aspx.cs b/FCL/FineUIPro.Web/Evaluation/ContractorEvaluation.aspx.cs index 714a172..d6a4138 100644 --- a/FCL/FineUIPro.Web/Evaluation/ContractorEvaluation.aspx.cs +++ b/FCL/FineUIPro.Web/Evaluation/ContractorEvaluation.aspx.cs @@ -395,6 +395,21 @@ namespace FineUIPro.Web.Evaluation if (reportModel.GetRow(8).GetCell(8) == null) reportModel.GetRow(8).CreateCell(8); reportModel.GetRow(8).GetCell(8).SetCellValue(eva.YearAvg != null ? eva.YearAvg.ToString() : ""); + //10行 + if (reportModel.GetRow(9) == null) reportModel.CreateRow(9); + if (reportModel.GetRow(9).GetCell(2) == null) reportModel.GetRow(9).CreateCell(2); + reportModel.GetRow(9).GetCell(2).SetCellValue(eva.IfExtend);//是否为续签合同 + if (reportModel.GetRow(9).GetCell(4) == null) reportModel.GetRow(9).CreateCell(4); + reportModel.GetRow(9).GetCell(4).SetCellValue(eva.PreviousFO);//续签前合同 + var previous = BLL.SESRelatedDataService.GetSESRelatedDataByFoNo(eva.PreviousFO); + if (previous != null) + { + if (reportModel.GetRow(9).GetCell(6) == null) reportModel.GetRow(9).CreateCell(6); + reportModel.GetRow(9).GetCell(6).SetCellValue(previous.Validate_Date.HasValue ? string.Format("{0:yyyy-MM-dd}", previous.Validate_Date) : "");//合同生效日 + if (reportModel.GetRow(9).GetCell(8) == null) reportModel.GetRow(9).CreateCell(8); + reportModel.GetRow(9).GetCell(8).SetCellValue(previous.Expire_Date.HasValue ? string.Format("{0:yyyy-MM-dd}", previous.Expire_Date) : "");//合同结束日 + } + // 左边列表 DateTime startDate = DateTime.Now.AddMonths(-23); DateTime startTime = DateTime.Parse(startDate.Year + "-" + startDate.Month + "-01"); @@ -409,8 +424,7 @@ namespace FineUIPro.Web.Evaluation var sesDataTable = SQLHelper.GetDataTableRunProc("Sp_ContractorEvaluation", yearToDateParList); var sesDataScore = JsonConvert.DeserializeObject>(JsonConvert.SerializeObject(sesDataTable)); - // 14行 - if (reportModel.GetRow(13) == null) reportModel.CreateRow(13); + // 15行 if (reportModel.GetRow(14) == null) reportModel.CreateRow(14); if (reportModel.GetRow(15) == null) reportModel.CreateRow(15); if (reportModel.GetRow(16) == null) reportModel.CreateRow(16); @@ -422,322 +436,373 @@ namespace FineUIPro.Web.Evaluation if (reportModel.GetRow(22) == null) reportModel.CreateRow(22); if (reportModel.GetRow(23) == null) reportModel.CreateRow(23); if (reportModel.GetRow(24) == null) reportModel.CreateRow(24); + if (reportModel.GetRow(25) == null) reportModel.CreateRow(25); + int s = 0; for (int j = 0; j < 24; j++) { var curDate = DateTime.Parse("" + startDate.Year + "-" + startDate.Month + "-01").AddMonths(j); if (j >= 0 && j < 12) { - if (reportModel.GetRow(13 + j).GetCell(0) == null) reportModel.GetRow(13 + j).CreateCell(0); - reportModel.GetRow(13 + j).GetCell(0).SetCellValue(curDate.ToString("yyyy-MM")); + if (reportModel.GetRow(14 + j).GetCell(0) == null) reportModel.GetRow(14 + j).CreateCell(0); + reportModel.GetRow(14 + j).GetCell(0).SetCellValue(curDate.ToString("yyyy-MM")); if (sesDataScore.Count(p => p.dataMonth == curDate.ToString("yyyy-MM")) > 0 && Funs.GetNewDecimal(sesDataScore.FirstOrDefault(p => p.dataMonth == curDate.ToString("yyyy-MM")).SumScore) > 0) { var yearNums = float.Parse(sesDataScore.FirstOrDefault(p => p.dataMonth == curDate.ToString("yyyy-MM")).SumScore).ToString("0.##"); - reportModel.GetRow(13 + j).GetCell(2).SetCellValue(yearNums); + reportModel.GetRow(14 + j).GetCell(2).SetCellValue(yearNums); + if (Funs.GetNewDecimalOrZero(yearNums) < 60) + { + s++; + } } else { - reportModel.GetRow(13 + j).GetCell(2).SetCellValue(""); + reportModel.GetRow(14 + j).GetCell(2).SetCellValue(""); } } else { - if (reportModel.GetRow(13 + j - 12).GetCell(3) == null) reportModel.GetRow(13 + j - 12).CreateCell(3); - reportModel.GetRow(13 + j - 12).GetCell(3).SetCellValue(curDate.ToString("yyyy-MM")); + if (reportModel.GetRow(14 + j - 12).GetCell(3) == null) reportModel.GetRow(14 + j - 12).CreateCell(3); + reportModel.GetRow(14 + j - 12).GetCell(3).SetCellValue(curDate.ToString("yyyy-MM")); if (sesDataScore.Count(p => p.dataMonth == curDate.ToString("yyyy-MM")) > 0 && Funs.GetNewDecimal(sesDataScore.FirstOrDefault(p => p.dataMonth == curDate.ToString("yyyy-MM")).SumScore) > 0) { var yearNums = float.Parse(sesDataScore.FirstOrDefault(p => p.dataMonth == curDate.ToString("yyyy-MM")).SumScore).ToString("0.##"); - reportModel.GetRow(13 + j - 12).GetCell(4).SetCellValue(yearNums); + reportModel.GetRow(14 + j - 12).GetCell(4).SetCellValue(yearNums); + if (Funs.GetNewDecimalOrZero(yearNums) < 60) + { + s++; + } } else { - reportModel.GetRow(13 + j - 12).GetCell(4).SetCellValue(""); + reportModel.GetRow(14 + j - 12).GetCell(4).SetCellValue(""); } } } - if (reportModel.GetRow(12).GetCell(5) == null) reportModel.GetRow(12).CreateCell(5); - reportModel.GetRow(12).GetCell(5).SetCellValue(eva.Enumeration); - if (reportModel.GetRow(16).GetCell(6) == null) reportModel.GetRow(16).CreateCell(6); - reportModel.GetRow(16).GetCell(6).SetCellValue(eva.PriceEvaluation1); + if (reportModel.GetRow(13).GetCell(5) == null) reportModel.GetRow(13).CreateCell(5); + reportModel.GetRow(13).GetCell(5).SetCellValue(eva.Enumeration); if (reportModel.GetRow(17).GetCell(6) == null) reportModel.GetRow(17).CreateCell(6); - reportModel.GetRow(17).GetCell(6).SetCellValue(eva.PriceEvaluation2); + reportModel.GetRow(17).GetCell(6).SetCellValue(eva.PriceEvaluation1); + if (reportModel.GetRow(18).GetCell(6) == null) reportModel.GetRow(18).CreateCell(6); + reportModel.GetRow(18).GetCell(6).SetCellValue(eva.PriceEvaluation2); - if (reportModel.GetRow(20).GetCell(6) == null) reportModel.GetRow(20).CreateCell(6); - if (reportModel.GetRow(21).GetCell(6) == null) reportModel.GetRow(21).CreateCell(6); - if (reportModel.GetRow(22).GetCell(6) == null) reportModel.GetRow(22).CreateCell(6); - if (reportModel.GetRow(23).GetCell(6) == null) reportModel.GetRow(23).CreateCell(6); - if (reportModel.GetRow(24).GetCell(6) == null) reportModel.GetRow(24).CreateCell(6); + if (reportModel.GetRow(27).GetCell(2) == null) reportModel.GetRow(27).CreateCell(2); + reportModel.GetRow(27).GetCell(2).SetCellValue(eva.InterviewTimes.ToString());//约谈次数 + if (reportModel.GetRow(27).GetCell(5) == null) reportModel.GetRow(27).CreateCell(5); + reportModel.GetRow(27).GetCell(5).SetCellValue("");//原合同竞标/续签过程回顾 + if (reportModel.GetRow(30).GetCell(2) == null) reportModel.GetRow(30).CreateCell(2); + reportModel.GetRow(30).GetCell(2).SetCellValue(eva.NCRTimes.ToString());//NCR次数 + if (reportModel.GetRow(33).GetCell(2) == null) reportModel.GetRow(33).CreateCell(2); + reportModel.GetRow(33).GetCell(2).SetCellValue(eva.RectificationTimes.ToString());//停工整改次数 + + //框架合同EHSQ审计结果 + if (reportModel.GetRow(36).GetCell(2) == null) reportModel.GetRow(36).CreateCell(2); + reportModel.GetRow(36).GetCell(2).SetCellValue(eva.GreenTimes.ToString());//绿区次数 + if (reportModel.GetRow(36).GetCell(4) == null) reportModel.GetRow(36).CreateCell(4); + reportModel.GetRow(36).GetCell(4).SetCellValue(eva.YellowGreenTimes.ToString());//黄绿区次数 + if (reportModel.GetRow(37).GetCell(2) == null) reportModel.GetRow(37).CreateCell(2); + reportModel.GetRow(37).GetCell(2).SetCellValue(eva.YellowTimes.ToString());//黄区次数 + if (reportModel.GetRow(37).GetCell(4) == null) reportModel.GetRow(37).CreateCell(4); + reportModel.GetRow(37).GetCell(4).SetCellValue(eva.RedYellowTimes.ToString());//红黄区次数 + if (reportModel.GetRow(38).GetCell(2) == null) reportModel.GetRow(38).CreateCell(2); + reportModel.GetRow(38).GetCell(2).SetCellValue(eva.RedTimes.ToString());//红区次数 + if (reportModel.GetRow(38).GetCell(3) == null) reportModel.GetRow(38).CreateCell(3); + reportModel.GetRow(38).GetCell(3).SetCellValue(eva.NotAudit);//不在审计清单 + //41行 + if (reportModel.GetRow(40).GetCell(3) == null) reportModel.GetRow(40).CreateCell(3); + reportModel.GetRow(40).GetCell(3).SetCellValue(eva.OthersNum.ToString());//其他 + //43行 + decimal? technicalBonusMalus = Funs.GetNewDecimal(eva.TechnicalBonusMalus); + if (reportModel.GetRow(42).GetCell(3) == null) reportModel.GetRow(42).CreateCell(3); + reportModel.GetRow(42).GetCell(3).SetCellValue(technicalBonusMalus.ToString());//技术加值/减值 + //44行 + decimal? safetyBonus = Funs.GetNewDecimal(eva.SafetyBonus); + if (reportModel.GetRow(43).GetCell(3) == null) reportModel.GetRow(43).CreateCell(3); + reportModel.GetRow(43).GetCell(3).SetCellValue(safetyBonus.ToString());//安全业绩加值 + //45行 + + if (reportModel.GetRow(44).GetCell(3) == null) reportModel.GetRow(44).CreateCell(3); + reportModel.GetRow(44).GetCell(3).SetCellValue((technicalBonusMalus + safetyBonus).ToString());//Total Score (Technical and Safety) + //48行 + string rs = string.Empty; + if (s >= 3 && eva.NCRTimes >= 3) + { + rs = "序号1:该合同累计3次月度评估低于60分, 不得参与下轮合同
序号2:该合同累计三个NCR提前终止合同且不得参与下轮合同"; + } + else if (s >= 3) + { + rs = "序号1:该合同累计3次月度评估低于60分, 不得参与下轮合同"; + } + else if (eva.NCRTimes >= 3) + { + rs = "序号1:该合同累计三个NCR提前终止合同且不得参与下轮合同"; + } + if (reportModel.GetRow(47).GetCell(0) == null) reportModel.GetRow(47).CreateCell(0); + reportModel.GetRow(47).GetCell(0).SetCellValue(rs);//合同管理小组对该承包商在本合同期表现的评价 + + + + //if (reportModel.GetRow(21).GetCell(6) == null) reportModel.GetRow(21).CreateCell(6); + //if (reportModel.GetRow(22).GetCell(6) == null) reportModel.GetRow(22).CreateCell(6); + //if (reportModel.GetRow(23).GetCell(6) == null) reportModel.GetRow(23).CreateCell(6); + //if (reportModel.GetRow(24).GetCell(6) == null) reportModel.GetRow(24).CreateCell(6); + //if (reportModel.GetRow(25).GetCell(6) == null) reportModel.GetRow(25).CreateCell(6); //string priceLevel = string.Empty; - if (eva.PriceLevel == "1") - { - reportModel.GetRow(21).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(21).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(22).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(22).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(23).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(23).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(24).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(24).GetCell(6).CellStyle.SetFont(content_Font); - } - if (eva.PriceLevel == "2") - { - reportModel.GetRow(20).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(20).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(22).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(22).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(23).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(23).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(24).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(24).GetCell(6).CellStyle.SetFont(content_Font); - } - if (eva.PriceLevel == "3") - { - reportModel.GetRow(21).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(21).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(20).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(20).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(23).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(23).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(24).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(24).GetCell(6).CellStyle.SetFont(content_Font); - } - if (eva.PriceLevel == "4") - { - reportModel.GetRow(21).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(21).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(22).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(22).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(20).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(20).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(24).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(24).GetCell(6).CellStyle.SetFont(content_Font); - } - if (eva.PriceLevel == "5") - { - reportModel.GetRow(21).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(21).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(22).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(22).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(23).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(23).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(20).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(20).GetCell(6).CellStyle.SetFont(content_Font); - } - if (string.IsNullOrEmpty(eva.PriceLevel)) - { - reportModel.GetRow(20).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(20).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(21).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(21).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(22).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(22).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(23).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(23).GetCell(6).CellStyle.SetFont(content_Font); - reportModel.GetRow(24).GetCell(6).SetCellValue(txtNo); - reportModel.GetRow(24).GetCell(6).CellStyle.SetFont(content_Font); - } - //reportModel.GetRow(20).GetCell(5).SetCellValue(priceLevel); + //if (eva.PriceLevel == "1") + //{ + // reportModel.GetRow(22).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(22).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(23).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(23).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(24).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(24).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(25).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(25).GetCell(6).CellStyle.SetFont(content_Font); + //} + //if (eva.PriceLevel == "2") + //{ + // reportModel.GetRow(20).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(20).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(22).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(22).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(23).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(23).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(24).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(24).GetCell(6).CellStyle.SetFont(content_Font); + //} + //if (eva.PriceLevel == "3") + //{ + // reportModel.GetRow(21).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(21).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(20).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(20).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(23).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(23).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(24).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(24).GetCell(6).CellStyle.SetFont(content_Font); + //} + //if (eva.PriceLevel == "4") + //{ + // reportModel.GetRow(21).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(21).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(22).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(22).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(20).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(20).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(24).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(24).GetCell(6).CellStyle.SetFont(content_Font); + //} + //if (eva.PriceLevel == "5") + //{ + // reportModel.GetRow(21).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(21).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(22).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(22).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(23).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(23).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(20).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(20).GetCell(6).CellStyle.SetFont(content_Font); + //} + //if (string.IsNullOrEmpty(eva.PriceLevel)) + //{ + // reportModel.GetRow(20).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(20).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(21).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(21).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(22).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(22).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(23).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(23).GetCell(6).CellStyle.SetFont(content_Font); + // reportModel.GetRow(24).GetCell(6).SetCellValue(txtNo); + // reportModel.GetRow(24).GetCell(6).CellStyle.SetFont(content_Font); + //} // 28 - if (reportModel.GetRow(26) == null) reportModel.CreateRow(26); - if (reportModel.GetRow(27) == null) reportModel.CreateRow(27); - if (reportModel.GetRow(28) == null) reportModel.CreateRow(28); - if (reportModel.GetRow(29) == null) reportModel.CreateRow(29); - if (reportModel.GetRow(31) == null) reportModel.CreateRow(31); - if (reportModel.GetRow(32) == null) reportModel.CreateRow(32); - if (reportModel.GetRow(33) == null) reportModel.CreateRow(33); - if (reportModel.GetRow(34) == null) reportModel.CreateRow(34); - if (reportModel.GetRow(35) == null) reportModel.CreateRow(35); - if (reportModel.GetRow(36) == null) reportModel.CreateRow(36); - if (reportModel.GetRow(37) == null) reportModel.CreateRow(37); - if (reportModel.GetRow(38) == null) reportModel.CreateRow(38); - if (reportModel.GetRow(39) == null) reportModel.CreateRow(39); - if (reportModel.GetRow(42) == null) reportModel.CreateRow(42); - - //if (reportModel.GetRow(43) == null) reportModel.CreateRow(43); - //if (reportModel.GetRow(44) == null) reportModel.CreateRow(44); - //if (reportModel.GetRow(45) == null) reportModel.CreateRow(45); - //if (reportModel.GetRow(46) == null) reportModel.CreateRow(46); - //if (reportModel.GetRow(47) == null) reportModel.CreateRow(47); - //if (reportModel.GetRow(48) == null) reportModel.CreateRow(48); - - //if (reportModel.GetRow(49) == null) reportModel.CreateRow(49); - //if (reportModel.GetRow(50) == null) reportModel.CreateRow(50); - //if (reportModel.GetRow(51) == null) reportModel.CreateRow(51); - //if (reportModel.GetRow(52) == null) reportModel.CreateRow(52); - //if (reportModel.GetRow(53) == null) reportModel.CreateRow(53); + //if (reportModel.GetRow(26) == null) reportModel.CreateRow(26); + //if (reportModel.GetRow(27) == null) reportModel.CreateRow(27); + //if (reportModel.GetRow(28) == null) reportModel.CreateRow(28); + //if (reportModel.GetRow(29) == null) reportModel.CreateRow(29); + //if (reportModel.GetRow(31) == null) reportModel.CreateRow(31); + //if (reportModel.GetRow(32) == null) reportModel.CreateRow(32); + //if (reportModel.GetRow(33) == null) reportModel.CreateRow(33); + //if (reportModel.GetRow(34) == null) reportModel.CreateRow(34); + //if (reportModel.GetRow(35) == null) reportModel.CreateRow(35); + //if (reportModel.GetRow(36) == null) reportModel.CreateRow(36); + //if (reportModel.GetRow(37) == null) reportModel.CreateRow(37); + //if (reportModel.GetRow(38) == null) reportModel.CreateRow(38); + //if (reportModel.GetRow(39) == null) reportModel.CreateRow(39); + //if (reportModel.GetRow(42) == null) reportModel.CreateRow(42); - if (reportModel.GetRow(26).GetCell(5) == null) reportModel.GetRow(26).CreateCell(5); - reportModel.GetRow(26).GetCell(5).SetCellValue(eva.ReviewOfFC); + //if (reportModel.GetRow(26).GetCell(5) == null) reportModel.GetRow(26).CreateCell(5); + //reportModel.GetRow(26).GetCell(5).SetCellValue(eva.ReviewOfFC); - if (eva.IsInquiry == true) - { + //if (eva.IsInquiry == true) + //{ - reportModel.GetRow(27).GetCell(1).SetCellValue(eva.InquiryNum != null ? eva.InquiryNum.Value.ToString() : "0"); - reportModel.GetRow(26).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(26).GetCell(2).CellStyle.SetFont(content_Font); - } - else if (eva.IsInquiry == false) - { - reportModel.GetRow(27).GetCell(1).SetCellValue(""); - reportModel.GetRow(26).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(26).GetCell(0).CellStyle.SetFont(content_Font); - } - else - { - reportModel.GetRow(26).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(26).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(26).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(26).GetCell(2).CellStyle.SetFont(content_Font); - } + // reportModel.GetRow(27).GetCell(1).SetCellValue(eva.InquiryNum != null ? eva.InquiryNum.Value.ToString() : "0"); + // reportModel.GetRow(26).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(26).GetCell(2).CellStyle.SetFont(content_Font); + //} + //else if (eva.IsInquiry == false) + //{ + // reportModel.GetRow(27).GetCell(1).SetCellValue(""); + // reportModel.GetRow(26).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(26).GetCell(0).CellStyle.SetFont(content_Font); + //} + //else + //{ + // reportModel.GetRow(26).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(26).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(26).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(26).GetCell(2).CellStyle.SetFont(content_Font); + //} - if (eva.NCRIsReview == true) - { + //if (eva.NCRIsReview == true) + //{ - reportModel.GetRow(30).GetCell(1).SetCellValue(eva.NCRReviewNum != null ? eva.NCRReviewNum.Value.ToString() : "0"); - reportModel.GetRow(29).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(29).GetCell(2).CellStyle.SetFont(content_Font); - } - else if (eva.NCRIsReview == false) - { - reportModel.GetRow(30).GetCell(1).SetCellValue(""); - reportModel.GetRow(29).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(29).GetCell(0).CellStyle.SetFont(content_Font); - } - else - { - reportModel.GetRow(29).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(29).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(29).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(29).GetCell(2).CellStyle.SetFont(content_Font); - } + // reportModel.GetRow(30).GetCell(1).SetCellValue(eva.NCRReviewNum != null ? eva.NCRReviewNum.Value.ToString() : "0"); + // reportModel.GetRow(29).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(29).GetCell(2).CellStyle.SetFont(content_Font); + //} + //else if (eva.NCRIsReview == false) + //{ + // reportModel.GetRow(30).GetCell(1).SetCellValue(""); + // reportModel.GetRow(29).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(29).GetCell(0).CellStyle.SetFont(content_Font); + //} + //else + //{ + // reportModel.GetRow(29).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(29).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(29).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(29).GetCell(2).CellStyle.SetFont(content_Font); + //} - //string auditResult = string.Empty; - if (eva.AuditResult == "1") - { - reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); - } - if (eva.AuditResult == "2") - { - reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); - } - if (eva.AuditResult == "3") - { - reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); - } - if (eva.AuditResult == "4") - { - reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); - } - if (eva.AuditResult == "5") - { - reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); - } - if (eva.AuditResult == "6") - { - reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); - - } - if (string.IsNullOrEmpty(eva.AuditResult)) - { - reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); - } + //if (eva.AuditResult == "1") + //{ + // reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); + //} + //if (eva.AuditResult == "2") + //{ + // reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); + //} + //if (eva.AuditResult == "3") + //{ + // reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); + //} + //if (eva.AuditResult == "4") + //{ + // reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); + //} + //if (eva.AuditResult == "5") + //{ + // reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); + //} + //if (eva.AuditResult == "6") + //{ + // reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); - - if (eva.IsOthers == true) - { + //} + //if (string.IsNullOrEmpty(eva.AuditResult)) + //{ + // reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); + //} - reportModel.GetRow(37).GetCell(1).SetCellValue(eva.OtherDef); - reportModel.GetRow(36).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(2).CellStyle.SetFont(content_Font); - } - else if (eva.IsOthers == false) - { - reportModel.GetRow(36).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(0).CellStyle.SetFont(content_Font); - } - else - { - reportModel.GetRow(36).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(36).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(2).CellStyle.SetFont(content_Font); - } - if (reportModel.GetRow(38).GetCell(3) == null) reportModel.GetRow(38).CreateCell(3); - reportModel.GetRow(38).GetCell(3).SetCellValue(eva.TechnicalBonus); - if (reportModel.GetRow(39).GetCell(3) == null) reportModel.GetRow(39).CreateCell(3); - reportModel.GetRow(39).GetCell(3).SetCellValue(eva.SafetyBonus); - reportModel.GetRow(42).GetCell(0).SetCellValue(eva.Proposed); + //if (eva.IsOthers == true) + //{ + + // reportModel.GetRow(37).GetCell(1).SetCellValue(eva.OtherDef); + // reportModel.GetRow(36).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(36).GetCell(2).CellStyle.SetFont(content_Font); + //} + //else if (eva.IsOthers == false) + //{ + // reportModel.GetRow(36).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(36).GetCell(0).CellStyle.SetFont(content_Font); + //} + //else + //{ + // reportModel.GetRow(36).GetCell(0).SetCellValue(txtNo); + // reportModel.GetRow(36).GetCell(0).CellStyle.SetFont(content_Font); + // reportModel.GetRow(36).GetCell(2).SetCellValue(txtNo); + // reportModel.GetRow(36).GetCell(2).CellStyle.SetFont(content_Font); + //} + + //if (reportModel.GetRow(38).GetCell(3) == null) reportModel.GetRow(38).CreateCell(3); + //reportModel.GetRow(38).GetCell(3).SetCellValue(eva.TechnicalBonus); + //if (reportModel.GetRow(39).GetCell(3) == null) reportModel.GetRow(39).CreateCell(3); + //reportModel.GetRow(39).GetCell(3).SetCellValue(eva.SafetyBonus); + //reportModel.GetRow(42).GetCell(0).SetCellValue(eva.Proposed); } #endregion reportModel.ForceFormulaRecalculation = true; diff --git a/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx b/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx index b1dcf29..58307c3 100644 --- a/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx +++ b/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx @@ -15,13 +15,13 @@ - - + @@ -50,36 +50,46 @@ - - + + + + + + + + + + + + - + - + - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -101,23 +111,23 @@ - - - + + + - + - - - - + + + + @@ -138,15 +148,15 @@ - + - + - + <%-- @@ -154,15 +164,16 @@ - - + --%> + + - + - + <%-- @@ -170,15 +181,25 @@ - - + --%> + + - + - + + + + + + + + + + <%-- @@ -190,14 +211,32 @@ - + --%> + + + + + + + + + + + + + + + + + + - <%-- + <%-- @@ -221,27 +260,27 @@ --%> - + - + - + - - - - + + + - + <%-- @@ -250,15 +289,16 @@ - - <%-- --%> + --%> + + - + @@ -270,16 +310,16 @@ - - + + - + + OnClick="btnSave_Click"> @@ -299,7 +339,7 @@ } __doPostBack('', 'CheckBoxList1Change'); } - + diff --git a/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx.cs b/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx.cs index 518dbe2..3c637f3 100644 --- a/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx.cs +++ b/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx.cs @@ -26,7 +26,7 @@ namespace FineUIPro.Web.Evaluation // 权限 if (CurrUser.UserId != Const.GlyId) { - + txtReviewOfFC.Enabled = false; lbPriceEvaluation.Enabled = false; txtPriceEvaluation1.Enabled = false; @@ -35,16 +35,22 @@ namespace FineUIPro.Web.Evaluation txtEnumeration.Enabled = false; txtForecasted.Enabled = false; - cbNCR.Enabled = false; + //cbNCR.Enabled = false; numNCRTime.Enabled = false; - cbInquiry.Enabled = false; + //cbInquiry.Enabled = false; numInquiryTime.Enabled = false; - cbAuditResult.Enabled = false; + numWorkRe.Enabled = false; + txtGreenTimes.Enabled = false; + txtYellowGreenTimes.Enabled = false; + txtYellowTimes.Enabled = false; + txtRedYellowTimes.Enabled = false; + txtRedTimes.Enabled = false; + //cbAuditResult.Enabled = false; //cbBoQIsAudit.Enabled = false; //txtBoQ.Enabled = false; - cbIsOthers.Enabled = false; - txtOtherDef.Enabled = false; - //numOthers.Enabled = false; + //cbIsOthers.Enabled = false; + //txtOtherDef.Enabled = false; + numOthers.Enabled = false; txtProposed.Enabled = false; txtTechnicalBonus.Enabled = false; @@ -62,16 +68,23 @@ namespace FineUIPro.Web.Evaluation cbPriceLevel.Enabled = true; txtEnumeration.Enabled = true; btnSave.Hidden = false; - } - + } + // 合同员 if (foview.First().Contract_Admin == CurrUser.UserId) { - cbNCR.Enabled = true; + //cbNCR.Enabled = true; numNCRTime.Enabled = true; - cbInquiry.Enabled = true; + //cbInquiry.Enabled = true; numInquiryTime.Enabled = true; - cbAuditResult.Enabled = true; + numWorkRe.Enabled = true; + txtGreenTimes.Enabled = true; + txtYellowGreenTimes.Enabled = true; + txtYellowTimes.Enabled = true; + txtRedYellowTimes.Enabled = true; + txtRedTimes.Enabled = true; + numOthers.Enabled = true; + //cbAuditResult.Enabled = true; btnSave.Hidden = false; } // 主协调员 @@ -79,9 +92,9 @@ namespace FineUIPro.Web.Evaluation { txtForecasted.Enabled = true; txtTechnicalBonus.Enabled = true; - cbIsOthers.Enabled = true; - //numOthers.Enabled = true; - txtOtherDef.Enabled= true; + //cbIsOthers.Enabled = true; + numOthers.Enabled = true; + //txtOtherDef.Enabled= true; txtProposed.Enabled = true; btnSave.Hidden = false; } @@ -103,7 +116,7 @@ namespace FineUIPro.Web.Evaluation btnSave.Hidden = false; } } - + // 框架合同信息 txtSpending_commitment.Text = foview.First().Spending_commitment.ToString(); if (foview.First().Forecasted.HasValue) @@ -119,6 +132,24 @@ namespace FineUIPro.Web.Evaluation txtExpire_Date.Text = foview.First().Expire_Date.HasValue ? foview.First().Expire_Date.Value.ToString("yyyy-MM-dd") : ""; txtPercentage.Text = foview.First().VolumeAllocation; txtYearDiff.Text = foview.First().YearDiff.ToString(); + if (foview.First().IfExtend == "Y") + { + cbIfExtend.Checked = true; + } + else + { + cbIfExtend.Checked = false; + } + if (!string.IsNullOrEmpty(foview.First().PreviousFO)) + { + txtPreviousFO.Text = foview.First().PreviousFO.ToString(); + } + var d = BLL.SESRelatedDataService.GetSESRelatedDataByFoNo(txtPreviousFO.Text.Trim()); + if (d != null) + { + txtFoValidateDate.Text = d.Validate_Date.HasValue ? string.Format("{0:yyyy-MM-dd}", d.Validate_Date) : ""; + txtFoExpiryDate.Text = d.Expire_Date.HasValue ? string.Format("{0:yyyy-MM-dd}", d.Expire_Date) : ""; + } // 采购 txtReviewOfFC.Text = foview.First().ReviewOfFC; @@ -129,45 +160,57 @@ namespace FineUIPro.Web.Evaluation cbPriceLevel.SelectedValueArray = new string[] { foview.First().PriceLevel }; } txtEnumeration.Text = foview.First().Enumeration; - + numInquiryTime.Text = foview.First().InterviewTimes.ToString(); + numNCRTime.Text = foview.First().NCRTimes.ToString(); + numWorkRe.Text = foview.First().RectificationTimes.ToString(); + txtGreenTimes.Text = foview.First().GreenTimes.ToString(); + txtYellowGreenTimes.Text = foview.First().YellowGreenTimes.ToString(); + txtYellowTimes.Text = foview.First().YellowTimes.ToString(); + txtRedYellowTimes.Text = foview.First().RedYellowTimes.ToString(); + txtRedTimes.Text = foview.First().RedTimes.ToString(); + if (txtGreenTimes.Text.Trim() == "0" && txtYellowGreenTimes.Text.Trim() == "0" && txtYellowTimes.Text.Trim() == "0" && txtRedYellowTimes.Text.Trim() == "0" && txtRedTimes.Text.Trim() == "0") + { + cbNotAudit.Checked = true; + } // 主协调人 - if (foview.First().IsInquiry.HasValue) - { - if (foview.First().IsInquiry == true) - { - cbInquiry.SelectedValueArray = new string[] { "True" }; - } - else - { - cbInquiry.SelectedValueArray = new string[] { "False" }; - } - } + //if (foview.First().IsInquiry.HasValue) + //{ + // if (foview.First().IsInquiry == true) + // { + // cbInquiry.SelectedValueArray = new string[] { "True" }; + // } + // else + // { + // cbInquiry.SelectedValueArray = new string[] { "False" }; + // } + //} - if (foview.First().InquiryNum.HasValue) - { - numInquiryTime.Text = foview.First().InquiryNum.ToString(); - } + //if (foview.First().InquiryNum.HasValue) + //{ + // numInquiryTime.Text = foview.First().InquiryNum.ToString(); + //} - if (foview.First().NCRIsReview.HasValue) - { - if (foview.First().NCRIsReview == true) - { - cbNCR.SelectedValueArray = new string[] { "True" }; - } - else - { - cbNCR.SelectedValueArray = new string[] { "False" }; - } - } + //if (foview.First().NCRIsReview.HasValue) + //{ + // if (foview.First().NCRIsReview == true) + // { + // cbNCR.SelectedValueArray = new string[] { "True" }; + // } + // else + // { + // cbNCR.SelectedValueArray = new string[] { "False" }; + // } + //} - if (foview.First().NCRReviewNum.HasValue) - { - numNCRTime.Text = foview.First().NCRReviewNum.ToString(); - } - if (!string.IsNullOrEmpty(foview.First().AuditResult)) - { - cbAuditResult.SelectedValueArray = new string[] { foview.First().AuditResult }; - } + //if (foview.First().NCRReviewNum.HasValue) + //{ + // numNCRTime.Text = foview.First().NCRReviewNum.ToString(); + //} + + //if (!string.IsNullOrEmpty(foview.First().AuditResult)) + //{ + // cbAuditResult.SelectedValueArray = new string[] { foview.First().AuditResult }; + //} //if (foview.First().BoQIsAudit.HasValue) //{ @@ -182,25 +225,26 @@ namespace FineUIPro.Web.Evaluation //} //txtBoQ.Text = foview.First().BoQAuditComments; - if (foview.First().IsOthers.HasValue) - { - if (foview.First().IsOthers == true) - { - cbIsOthers.SelectedValueArray = new string[] { "True" }; - } - else - { - cbIsOthers.SelectedValueArray = new string[] { "False" }; - } - } + //if (foview.First().IsOthers.HasValue) + //{ + // if (foview.First().IsOthers == true) + // { + // cbIsOthers.SelectedValueArray = new string[] { "True" }; + // } + // else + // { + // cbIsOthers.SelectedValueArray = new string[] { "False" }; + // } + //} //if (foview.First().OthersNum.HasValue) //{ - // numOthers.Text = foview.First().OthersNum.ToString(); + numOthers.Text = foview.First().OthersNum.ToString(); //} - txtOtherDef.Text = foview.First().OtherDef; - txtTechnicalBonus.Text = foview.First().TechnicalBonus; + ////txtOtherDef.Text = foview.First().OtherDef; + txtTechnicalBonus.Text = foview.First().TechnicalBonusMalus; txtSafetyBonus.Text = foview.First().SafetyBonus; - txtProposed.Text = foview.First().Proposed; + + } else { @@ -225,7 +269,7 @@ namespace FineUIPro.Web.Evaluation DataTable dt = SQLHelper.GetDataTableRunText(strSql, null); Grid1.DataSource = dt; Grid1.DataBind(); - + int s = 0; for (int j = 0; j < 24; j++) { var curDate = DateTime.Parse("" + startDate.Year + "-" + startDate.Month + "-01").AddMonths(j); @@ -246,6 +290,10 @@ namespace FineUIPro.Web.Evaluation { var yearNums = float.Parse(sesDataScore.FirstOrDefault(p => p.dataMonth == curDate.ToString("yyyy-MM")).SumScore).ToString("0.##"); Grid1.Rows[1].Values[j + 1] = yearNums; + if (Funs.GetNewDecimalOrZero(yearNums) < 60) + { + s++; + } } else { @@ -261,6 +309,10 @@ namespace FineUIPro.Web.Evaluation { var yearNums = float.Parse(sesDataScore.FirstOrDefault(p => p.dataMonth == curDate.ToString("yyyy-MM")).SumScore).ToString("0.##"); Grid1.Rows[3].Values[j - 11] = yearNums; + if (Funs.GetNewDecimalOrZero(yearNums) < 60) + { + s++; + } } else { @@ -268,6 +320,20 @@ namespace FineUIPro.Web.Evaluation } } } + string rs = string.Empty; + if (s >= 3 && foview.First().NCRTimes >= 3) + { + rs = "序号1:该合同累计3次月度评估低于60分, 不得参与下轮合同
序号2:该合同累计三个NCR提前终止合同且不得参与下轮合同"; + } + else if (s >= 3) + { + rs = "序号1:该合同累计3次月度评估低于60分, 不得参与下轮合同"; + } + else if (foview.First().NCRTimes >= 3) + { + rs = "序号1:该合同累计三个NCR提前终止合同且不得参与下轮合同"; + } + txtProposed.Text = rs;//foview.First().Proposed; } } @@ -291,68 +357,68 @@ namespace FineUIPro.Web.Evaluation newFo.Enumeration= txtEnumeration.Text.Trim(); // 合同员 - if (cbInquiry.SelectedValueArray.Length > 0) - { - newFo.IsInquiry = Convert.ToBoolean(cbInquiry.SelectedValueArray[0].ToString()); - } - else if (newFo.Contract_Admin == CurrUser.UserId) - { - Alert.ShowInTop("若无Interview,请勾选无No!", MessageBoxIcon.Warning); - return; - } + //if (cbInquiry.SelectedValueArray.Length > 0) + //{ + // newFo.IsInquiry = Convert.ToBoolean(cbInquiry.SelectedValueArray[0].ToString()); + //} + //else if (newFo.Contract_Admin == CurrUser.UserId) + //{ + // Alert.ShowInTop("若无Interview,请勾选无No!", MessageBoxIcon.Warning); + // return; + //} if (!string.IsNullOrEmpty(numInquiryTime.Text)) { newFo.InquiryNum = Convert.ToInt32(numInquiryTime.Text); } - if (cbNCR.SelectedValueArray.Length>0) - { - newFo.NCRIsReview = Convert.ToBoolean(cbNCR.SelectedValueArray[0].ToString()); - } - else if (newFo.Contract_Admin == CurrUser.UserId) - { - Alert.ShowInTop("若无Review,请勾选无No!", MessageBoxIcon.Warning); - return; - } + //if (cbNCR.SelectedValueArray.Length>0) + //{ + // newFo.NCRIsReview = Convert.ToBoolean(cbNCR.SelectedValueArray[0].ToString()); + //} + //else if (newFo.Contract_Admin == CurrUser.UserId) + //{ + // Alert.ShowInTop("若无Review,请勾选无No!", MessageBoxIcon.Warning); + // return; + //} if (!string.IsNullOrEmpty(numNCRTime.Text)) { newFo.NCRReviewNum = Convert.ToInt32(numNCRTime.Text); } - if (cbAuditResult.SelectedValueArray.Length>0) - { - newFo.AuditResult = cbAuditResult.SelectedValueArray[0].ToString(); - } - else if (newFo.Contract_Admin == CurrUser.UserId) - { - Alert.ShowInTop("若无FC EHSQ Audit result ,请勾选无不适用!", MessageBoxIcon.Warning); - return; - } + //if (cbAuditResult.SelectedValueArray.Length>0) + //{ + // newFo.AuditResult = cbAuditResult.SelectedValueArray[0].ToString(); + //} + //else if (newFo.Contract_Admin == CurrUser.UserId) + //{ + // Alert.ShowInTop("若无FC EHSQ Audit result ,请勾选无不适用!", MessageBoxIcon.Warning); + // return; + //} //if (cbBoQIsAudit.SelectedValueArray.Length>0) //{ // newFo.BoQIsAudit = Convert.ToBoolean(cbBoQIsAudit.SelectedValueArray[0].ToString()); //} - + //newFo.BoQAuditComments= txtBoQ.Text.Trim(); - if (cbIsOthers.SelectedValueArray.Length>0) - { - newFo.IsOthers = Convert.ToBoolean(cbIsOthers.SelectedValueArray[0].ToString()); - } - else if (newFo.Main_Coordinator == CurrUser.UserId) - { - Alert.ShowInTop("若无Others ,请勾选无No!", MessageBoxIcon.Warning); - return; - } - - //if (!string.IsNullOrEmpty(numOthers.Text)) + //if (cbIsOthers.SelectedValueArray.Length>0) //{ - // newFo.OthersNum = Convert.ToInt32(numOthers.Text); + // newFo.IsOthers = Convert.ToBoolean(cbIsOthers.SelectedValueArray[0].ToString()); //} - newFo.OtherDef=txtOtherDef.Text.Trim(); + //else if (newFo.Main_Coordinator == CurrUser.UserId) + //{ + // Alert.ShowInTop("若无Others ,请勾选无No!", MessageBoxIcon.Warning); + // return; + //} + + if (!string.IsNullOrEmpty(numOthers.Text)) + { + newFo.OthersNum = Convert.ToInt32(numOthers.Text); + } + //newFo.OtherDef = txtOtherDef.Text.Trim(); newFo.TechnicalBonus = txtTechnicalBonus.Text.Trim(); var role = BLL.Sys_RoleService.GetRole(CurrUser.RoleId); diff --git a/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx.designer.cs b/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx.designer.cs index 005eca1..fe02856 100644 --- a/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx.designer.cs +++ b/FCL/FineUIPro.Web/Evaluation/ContractorEvaluationEdit.aspx.designer.cs @@ -167,6 +167,42 @@ namespace FineUIPro.Web.Evaluation /// protected global::FineUIPro.TextBox txtYearAvg; + /// + /// cbIfExtend 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBox cbIfExtend; + + /// + /// txtPreviousFO 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPreviousFO; + + /// + /// txtFoValidateDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtFoValidateDate; + + /// + /// txtFoExpiryDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtFoExpiryDate; + /// /// gpMonthEva 控件。 /// @@ -267,13 +303,13 @@ namespace FineUIPro.Web.Evaluation protected global::FineUIPro.GroupPanel GroupPanel2; /// - /// cbInquiry 控件。 + /// lblInterview 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.CheckBoxList cbInquiry; + protected global::FineUIPro.Label lblInterview; /// /// numInquiryTime 控件。 @@ -285,13 +321,13 @@ namespace FineUIPro.Web.Evaluation protected global::FineUIPro.NumberBox numInquiryTime; /// - /// cbNCR 控件。 + /// Label1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.CheckBoxList cbNCR; + protected global::FineUIPro.Label Label1; /// /// numNCRTime 控件。 @@ -303,13 +339,85 @@ namespace FineUIPro.Web.Evaluation protected global::FineUIPro.NumberBox numNCRTime; /// - /// cbAuditResult 控件。 + /// Label2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.CheckBoxList cbAuditResult; + protected global::FineUIPro.Label Label2; + + /// + /// numWorkRe 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox numWorkRe; + + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label3; + + /// + /// txtGreenTimes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtGreenTimes; + + /// + /// txtYellowGreenTimes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtYellowGreenTimes; + + /// + /// txtYellowTimes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtYellowTimes; + + /// + /// txtRedYellowTimes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRedYellowTimes; + + /// + /// txtRedTimes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRedTimes; + + /// + /// cbNotAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBox cbNotAudit; /// /// GroupPanel5 控件。 @@ -339,22 +447,22 @@ namespace FineUIPro.Web.Evaluation protected global::FineUIPro.GroupPanel GroupPanel6; /// - /// cbIsOthers 控件。 + /// lblOther 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.CheckBoxList cbIsOthers; + protected global::FineUIPro.Label lblOther; /// - /// txtOtherDef 控件。 + /// numOthers 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtOtherDef; + protected global::FineUIPro.NumberBox numOthers; /// /// txtTechnicalBonus 控件。 diff --git a/FCL/FineUIPro.Web/Evaluation/EvaluationNew.aspx.cs b/FCL/FineUIPro.Web/Evaluation/EvaluationNew.aspx.cs index 0b7003b..7a19da3 100644 --- a/FCL/FineUIPro.Web/Evaluation/EvaluationNew.aspx.cs +++ b/FCL/FineUIPro.Web/Evaluation/EvaluationNew.aspx.cs @@ -994,16 +994,16 @@ namespace FineUIPro.Web.Evaluation var setList = Funs.DB.Sys_User.Where(p => new string[] { Const.Role_CTSSId, Const.Role_CTSCId, Const.Role_CTMTId }.Contains(p.RoleId) && p.UserId == CurrUser.UserId).ToList(); if (setList.Count > 0) { - sesList = Funs.DB.FC_SESReportView.Where(p => p.FO_NO == FoNo && p.Requisitioner != "" && p.Requisitioner != null).ToList(); + sesList = Funs.DB.FC_SESReportView.Where(p => p.FO_NO == FoNo && p.Requisitioner != "" && p.Requisitioner != null && (p.Blocked == null || p.Blocked == "") && (p.Deleted == null || p.Deleted == "")).ToList(); } else { - sesList = Funs.DB.FC_SESReportView.Where(p => p.FO_NO == FoNo && (p.MainCoordinatorUser == CurrUser.Account || p.ContractAdminUser == CurrUser.Account || p.UserRepresentativeUser == CurrUser.Account)).ToList(); + sesList = Funs.DB.FC_SESReportView.Where(p => p.FO_NO == FoNo && (p.MainCoordinatorUser == CurrUser.Account || p.ContractAdminUser == CurrUser.Account || p.UserRepresentativeUser == CurrUser.Account) && (p.Blocked == null || p.Blocked == "") && (p.Deleted == null || p.Deleted == "")).ToList(); } } else { - sesList = Funs.DB.FC_SESReportView.Where(p => p.FO_NO == FoNo && p.Requisitioner == CurrUser.Account).ToList(); + sesList = Funs.DB.FC_SESReportView.Where(p => p.FO_NO == FoNo && p.Requisitioner == CurrUser.Account && (p.Blocked == null || p.Blocked == "") && (p.Deleted == null || p.Deleted == "")).ToList(); } Grid2.DataSource = sesList.OrderByDescending(x=>x.ShowViolationDegree); Grid2.DataBind(); diff --git a/FCL/FineUIPro.Web/File/Excel/承包商评估表.xlsx b/FCL/FineUIPro.Web/File/Excel/承包商评估表.xlsx index 7255768..9ed351a 100644 Binary files a/FCL/FineUIPro.Web/File/Excel/承包商评估表.xlsx and b/FCL/FineUIPro.Web/File/Excel/承包商评估表.xlsx differ diff --git a/FCL/FineUIPro.Web/Global.asax.cs b/FCL/FineUIPro.Web/Global.asax.cs index a97ca36..c07d7c1 100644 --- a/FCL/FineUIPro.Web/Global.asax.cs +++ b/FCL/FineUIPro.Web/Global.asax.cs @@ -706,13 +706,13 @@ } private void aTimer_AutoSend(object sender, System.Timers.ElapsedEventArgs e) - { + { // 过期提示,30天范围 var foList = from x in Funs.DB.FC_SESRelatedData where x.Expire_Date != null && x.Expire_Date.Value.AddMonths(-6).AddDays(-7).Date <= DateTime.Now.Date && x.Expire_Date.Value.AddMonths(-5).AddDays(-7).Date >= DateTime.Now.Date select x; - if (foList.Count() > 0) + if (foList.Count() > 0) { foreach (var fo in foList) { diff --git a/FCL/Model/Model.cs b/FCL/Model/Model.cs index e02f575..f9d41b1 100644 --- a/FCL/Model/Model.cs +++ b/FCL/Model/Model.cs @@ -870,6 +870,14 @@ namespace Model } } + public System.Data.Linq.Table View_EMC_PunishmentNew + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table View_EMC_Que_Punishment { get @@ -20537,6 +20545,10 @@ namespace Model private string _ShowViolationDegree; + private string _Deleted; + + private string _Blocked; + public FC_SESReportView() { } @@ -20876,6 +20888,38 @@ namespace Model } } } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Deleted", DbType="VarChar(10)")] + public string Deleted + { + get + { + return this._Deleted; + } + set + { + if ((this._Deleted != value)) + { + this._Deleted = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Blocked", DbType="VarChar(10)")] + public string Blocked + { + get + { + return this._Blocked; + } + set + { + if ((this._Blocked != value)) + { + this._Blocked = value; + } + } + } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.FC_SignedContracts")] @@ -27702,12 +27746,36 @@ namespace Model private System.Nullable _IsOthers; - private System.Nullable _OthersNum; + private int _OthersNum; private string _OtherDef; private string _Proposed; + private int _InterviewTimes; + + private int _NCRTimes; + + private int _RectificationTimes; + + private int _GreenTimes; + + private int _YellowGreenTimes; + + private int _YellowTimes; + + private int _RedYellowTimes; + + private int _RedTimes; + + private string _NotAudit; + + private string _IfExtend; + + private string _PreviousFO; + + private string _TechnicalBonusMalus; + private System.Nullable _Total; private System.Nullable _YearAvg; @@ -28212,8 +28280,8 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OthersNum", DbType="Int")] - public System.Nullable OthersNum + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OthersNum", DbType="Int NOT NULL")] + public int OthersNum { get { @@ -28260,6 +28328,198 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InterviewTimes", DbType="Int NOT NULL")] + public int InterviewTimes + { + get + { + return this._InterviewTimes; + } + set + { + if ((this._InterviewTimes != value)) + { + this._InterviewTimes = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NCRTimes", DbType="Int NOT NULL")] + public int NCRTimes + { + get + { + return this._NCRTimes; + } + set + { + if ((this._NCRTimes != value)) + { + this._NCRTimes = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationTimes", DbType="Int NOT NULL")] + public int RectificationTimes + { + get + { + return this._RectificationTimes; + } + set + { + if ((this._RectificationTimes != value)) + { + this._RectificationTimes = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GreenTimes", DbType="Int NOT NULL")] + public int GreenTimes + { + get + { + return this._GreenTimes; + } + set + { + if ((this._GreenTimes != value)) + { + this._GreenTimes = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YellowGreenTimes", DbType="Int NOT NULL")] + public int YellowGreenTimes + { + get + { + return this._YellowGreenTimes; + } + set + { + if ((this._YellowGreenTimes != value)) + { + this._YellowGreenTimes = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YellowTimes", DbType="Int NOT NULL")] + public int YellowTimes + { + get + { + return this._YellowTimes; + } + set + { + if ((this._YellowTimes != value)) + { + this._YellowTimes = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RedYellowTimes", DbType="Int NOT NULL")] + public int RedYellowTimes + { + get + { + return this._RedYellowTimes; + } + set + { + if ((this._RedYellowTimes != value)) + { + this._RedYellowTimes = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RedTimes", DbType="Int NOT NULL")] + public int RedTimes + { + get + { + return this._RedTimes; + } + set + { + if ((this._RedTimes != value)) + { + this._RedTimes = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NotAudit", DbType="VarChar(2) NOT NULL", CanBeNull=false)] + public string NotAudit + { + get + { + return this._NotAudit; + } + set + { + if ((this._NotAudit != value)) + { + this._NotAudit = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IfExtend", DbType="VarChar(1) NOT NULL", CanBeNull=false)] + public string IfExtend + { + get + { + return this._IfExtend; + } + set + { + if ((this._IfExtend != value)) + { + this._IfExtend = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PreviousFO", DbType="NVarChar(50)")] + public string PreviousFO + { + get + { + return this._PreviousFO; + } + set + { + if ((this._PreviousFO != value)) + { + this._PreviousFO = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalBonusMalus", DbType="VarChar(51)")] + public string TechnicalBonusMalus + { + get + { + return this._TechnicalBonusMalus; + } + set + { + if ((this._TechnicalBonusMalus != value)) + { + this._TechnicalBonusMalus = value; + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Total", DbType="Decimal(20,2)")] public System.Nullable Total { @@ -30966,6 +31226,519 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_EMC_PunishmentNew")] + public partial class View_EMC_PunishmentNew + { + + private string _PunishmentId; + + private System.Nullable _PunishDate; + + private string _Location; + + private string _Description; + + private string _Contractor; + + private string _FO_NO; + + private string _Main_Coordinator; + + private string _MainCoordinatorName; + + private string _MCDepName; + + private string _ContractRequester; + + private string _ContractRequesterName; + + private string _ContractRequesterDep; + + private string _UserRepresentativeName; + + private string _ContractAdminName; + + private string _ItemNo; + + private string _ViolationClauseId; + + private string _ClauseDef; + + private string _ViolationDegree; + + private System.Nullable _Company; + + private string _IndividualPerson; + + private System.Nullable _Individual; + + private string _UserDepName; + + private string _ViolationRelatedSes; + + private string _SES_No; + + private System.Nullable _CompletionDate; + + private System.Nullable _IsFrame; + + private string _IsFrameName; + + private string _Flag; + + public View_EMC_PunishmentNew() + { + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PunishmentId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string PunishmentId + { + get + { + return this._PunishmentId; + } + set + { + if ((this._PunishmentId != value)) + { + this._PunishmentId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PunishDate", DbType="DateTime")] + public System.Nullable PunishDate + { + get + { + return this._PunishDate; + } + set + { + if ((this._PunishDate != value)) + { + this._PunishDate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Location", DbType="NVarChar(100)")] + public string Location + { + get + { + return this._Location; + } + set + { + if ((this._Location != value)) + { + this._Location = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(500)")] + public string Description + { + get + { + return this._Description; + } + set + { + if ((this._Description != value)) + { + this._Description = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contractor", DbType="NVarChar(150)")] + public string Contractor + { + get + { + return this._Contractor; + } + set + { + if ((this._Contractor != value)) + { + this._Contractor = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FO_NO", DbType="NVarChar(50)")] + public string FO_NO + { + get + { + return this._FO_NO; + } + set + { + if ((this._FO_NO != value)) + { + this._FO_NO = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Main_Coordinator", DbType="NVarChar(50)")] + public string Main_Coordinator + { + get + { + return this._Main_Coordinator; + } + set + { + if ((this._Main_Coordinator != value)) + { + this._Main_Coordinator = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MainCoordinatorName", DbType="NVarChar(50)")] + public string MainCoordinatorName + { + get + { + return this._MainCoordinatorName; + } + set + { + if ((this._MainCoordinatorName != value)) + { + this._MainCoordinatorName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MCDepName", DbType="NVarChar(50)")] + public string MCDepName + { + get + { + return this._MCDepName; + } + set + { + if ((this._MCDepName != value)) + { + this._MCDepName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractRequester", DbType="NVarChar(50)")] + public string ContractRequester + { + get + { + return this._ContractRequester; + } + set + { + if ((this._ContractRequester != value)) + { + this._ContractRequester = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractRequesterName", DbType="NVarChar(50)")] + public string ContractRequesterName + { + get + { + return this._ContractRequesterName; + } + set + { + if ((this._ContractRequesterName != value)) + { + this._ContractRequesterName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractRequesterDep", DbType="NVarChar(50)")] + public string ContractRequesterDep + { + get + { + return this._ContractRequesterDep; + } + set + { + if ((this._ContractRequesterDep != value)) + { + this._ContractRequesterDep = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserRepresentativeName", DbType="NVarChar(50)")] + public string UserRepresentativeName + { + get + { + return this._UserRepresentativeName; + } + set + { + if ((this._UserRepresentativeName != value)) + { + this._UserRepresentativeName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractAdminName", DbType="NVarChar(50)")] + public string ContractAdminName + { + get + { + return this._ContractAdminName; + } + set + { + if ((this._ContractAdminName != value)) + { + this._ContractAdminName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ItemNo", DbType="NVarChar(10)")] + public string ItemNo + { + get + { + return this._ItemNo; + } + set + { + if ((this._ItemNo != value)) + { + this._ItemNo = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationClauseId", DbType="NVarChar(50)")] + public string ViolationClauseId + { + get + { + return this._ViolationClauseId; + } + set + { + if ((this._ViolationClauseId != value)) + { + this._ViolationClauseId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClauseDef", DbType="NVarChar(500)")] + public string ClauseDef + { + get + { + return this._ClauseDef; + } + set + { + if ((this._ClauseDef != value)) + { + this._ClauseDef = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationDegree", DbType="VarChar(10)")] + public string ViolationDegree + { + get + { + return this._ViolationDegree; + } + set + { + if ((this._ViolationDegree != value)) + { + this._ViolationDegree = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Company", DbType="Money")] + public System.Nullable Company + { + get + { + return this._Company; + } + set + { + if ((this._Company != value)) + { + this._Company = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IndividualPerson", DbType="NVarChar(50)")] + public string IndividualPerson + { + get + { + return this._IndividualPerson; + } + set + { + if ((this._IndividualPerson != value)) + { + this._IndividualPerson = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Individual", DbType="Money")] + public System.Nullable Individual + { + get + { + return this._Individual; + } + set + { + if ((this._Individual != value)) + { + this._Individual = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserDepName", DbType="NVarChar(50)")] + public string UserDepName + { + get + { + return this._UserDepName; + } + set + { + if ((this._UserDepName != value)) + { + this._UserDepName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationRelatedSes", DbType="NVarChar(50)")] + public string ViolationRelatedSes + { + get + { + return this._ViolationRelatedSes; + } + set + { + if ((this._ViolationRelatedSes != value)) + { + this._ViolationRelatedSes = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SES_No", DbType="NVarChar(20)")] + public string SES_No + { + get + { + return this._SES_No; + } + set + { + if ((this._SES_No != value)) + { + this._SES_No = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompletionDate", DbType="DateTime")] + public System.Nullable CompletionDate + { + get + { + return this._CompletionDate; + } + set + { + if ((this._CompletionDate != value)) + { + this._CompletionDate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsFrame", DbType="Bit")] + public System.Nullable IsFrame + { + get + { + return this._IsFrame; + } + set + { + if ((this._IsFrame != value)) + { + this._IsFrame = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsFrameName", DbType="VarChar(2) NOT NULL", CanBeNull=false)] + public string IsFrameName + { + get + { + return this._IsFrameName; + } + set + { + if ((this._IsFrameName != value)) + { + this._IsFrameName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Flag", DbType="NChar(1)")] + public string Flag + { + get + { + return this._Flag; + } + set + { + if ((this._Flag != value)) + { + this._Flag = value; + } + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_EMC_Que_Punishment")] public partial class View_EMC_Que_Punishment {