|
|
@@ -175,6 +175,9 @@ func (this *OilContractSumScoreController) GetComputeEntityList(){
|
|
|
// }
|
|
|
//}
|
|
|
|
|
|
+ // 审核通过的参与核算
|
|
|
+ where = where + " and review.Status='8' "
|
|
|
+
|
|
|
svc := contractSumScore.GetOilContractSumScoreService(utils.DBE)
|
|
|
var list []contractSumScore.OilContractComputeSumScoreVo
|
|
|
total := svc.GetPagingComputeEntitiesWithOrderBytbl(page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
@@ -244,16 +247,28 @@ func (this *OilContractSumScoreController) GetEntity() {
|
|
|
result.Content3 = item.Content3
|
|
|
result.Content4 = item.Content4
|
|
|
result.Content5 = item.Content5
|
|
|
+ result.Content6 = item.Content6
|
|
|
+ result.Content7 = item.Content7
|
|
|
+ result.Content8 = item.Content8
|
|
|
+
|
|
|
result.SumScore1 = item.SumScore1
|
|
|
result.SumScore2 = item.SumScore2
|
|
|
result.SumScore3 = item.SumScore3
|
|
|
result.SumScore4 = item.SumScore4
|
|
|
result.SumScore5 = item.SumScore5
|
|
|
+ result.SumScore6 = item.SumScore6
|
|
|
+ result.SumScore7 = item.SumScore7
|
|
|
+ result.SumScore8 = item.SumScore8
|
|
|
+
|
|
|
result.NormalSumScore1 = item.NormalSumScore1
|
|
|
result.NormalSumScore2 = item.NormalSumScore2
|
|
|
result.NormalSumScore3 = item.NormalSumScore3
|
|
|
result.NormalSumScore4 = item.NormalSumScore4
|
|
|
result.NormalSumScore5 = item.NormalSumScore5
|
|
|
+ result.NormalSumScore6 = item.NormalSumScore6
|
|
|
+ result.NormalSumScore7 = item.NormalSumScore7
|
|
|
+ result.NormalSumScore8 = item.NormalSumScore8
|
|
|
+
|
|
|
result.Note = item.Note
|
|
|
result.Conclusion = item.Conclusion
|
|
|
|
|
|
@@ -265,6 +280,9 @@ func (this *OilContractSumScoreController) GetEntity() {
|
|
|
result.B6 = item.B6
|
|
|
result.B7 = item.B7
|
|
|
result.B8 = item.B8
|
|
|
+
|
|
|
+ result.Result1 = item.Result1
|
|
|
+ result.Result2 = item.Result2
|
|
|
this.Data["json"] = &result
|
|
|
this.ServeJSON()
|
|
|
}
|
|
|
@@ -336,6 +354,9 @@ func (this *OilContractSumScoreController) AddEntity() {
|
|
|
item.B7 = model.B7
|
|
|
item.B8 = model.B8
|
|
|
|
|
|
+ item.Result1 = model.Result1
|
|
|
+ item.Result2 = model.Result2
|
|
|
+
|
|
|
var item2 contractSumScoreItems.OilContractSumScoreItems
|
|
|
item2.SumScoreId = entity.Id
|
|
|
item2.Category = 1 // 二级单位创建
|
|
|
@@ -378,6 +399,9 @@ func (this *OilContractSumScoreController) AddEntity() {
|
|
|
item2.B7 = model.B7
|
|
|
item2.B8 = model.B8
|
|
|
|
|
|
+ item2.Result1 = model.Result1
|
|
|
+ item2.Result2 = model.Result2
|
|
|
+
|
|
|
itemSvc := contractSumScoreItems.GetOilContractSumScoreItemsService(utils.DBE)
|
|
|
_, err2 := itemSvc.InsertEntityBytbl(OilContractSumScoreItemsName, &item)
|
|
|
_, err3 := itemSvc.InsertEntityBytbl(OilContractSumScoreItemsName, &item2)
|
|
|
@@ -456,6 +480,16 @@ func (this *OilContractSumScoreController) UpdateEntity() {
|
|
|
item.Content5 = model.Content5
|
|
|
item.NormalSumScore5 = model.NormalSumScore5
|
|
|
item.SumScore5 = model.SumScore5
|
|
|
+ item.Content6 = model.Content6
|
|
|
+ item.NormalSumScore6 = model.NormalSumScore6
|
|
|
+ item.SumScore6 = model.SumScore6
|
|
|
+ item.Content7 = model.Content7
|
|
|
+ item.NormalSumScore7 = model.NormalSumScore7
|
|
|
+ item.SumScore7 = model.SumScore7
|
|
|
+ item.Content8 = model.Content8
|
|
|
+ item.NormalSumScore8 = model.NormalSumScore8
|
|
|
+ item.SumScore8 = model.SumScore8
|
|
|
+ item.Conclusion = model.Conclusion
|
|
|
item.Note = model.Note
|
|
|
item.ModifiedOn = time.Now()
|
|
|
item.ModifiedBy = this.User.Realname
|
|
|
@@ -469,6 +503,9 @@ func (this *OilContractSumScoreController) UpdateEntity() {
|
|
|
item.B7 = model.B7
|
|
|
item.B8 = model.B8
|
|
|
|
|
|
+ item.Result1 = model.Result1
|
|
|
+ item.Result2 = model.Result2
|
|
|
+
|
|
|
cols2 := []string{
|
|
|
"Category",
|
|
|
"SumScore",
|
|
|
@@ -496,6 +533,7 @@ func (this *OilContractSumScoreController) UpdateEntity() {
|
|
|
"SumScore6",
|
|
|
"SumScore7",
|
|
|
"SumScore8",
|
|
|
+ "Conclusion",
|
|
|
"Note",
|
|
|
"ModifiedOn",
|
|
|
"ModifiedBy",
|
|
|
@@ -508,6 +546,8 @@ func (this *OilContractSumScoreController) UpdateEntity() {
|
|
|
"B6",
|
|
|
"B7",
|
|
|
"B8",
|
|
|
+ "Result1",
|
|
|
+ "Result2",
|
|
|
}
|
|
|
err2 := itemSvc.UpdateEntityBytbl(OilContractSumScoreItemsName,item.Id,&item,cols2)
|
|
|
|
|
|
@@ -533,6 +573,16 @@ func (this *OilContractSumScoreController) UpdateEntity() {
|
|
|
item3.Content5 = model.Content5
|
|
|
item3.NormalSumScore5 = model.NormalSumScore5
|
|
|
item3.SumScore5 = model.SumScore5
|
|
|
+ item3.Content6 = model.Content6
|
|
|
+ item3.NormalSumScore6 = model.NormalSumScore6
|
|
|
+ item3.SumScore6 = model.SumScore6
|
|
|
+ item3.Content7 = model.Content7
|
|
|
+ item3.NormalSumScore7 = model.NormalSumScore7
|
|
|
+ item3.SumScore7 = model.SumScore7
|
|
|
+ item3.Content8 = model.Content8
|
|
|
+ item3.NormalSumScore8 = model.NormalSumScore8
|
|
|
+ item3.SumScore8 = model.SumScore8
|
|
|
+ item3.Conclusion = model.Conclusion
|
|
|
item3.Note = model.Note
|
|
|
item3.ModifiedOn = time.Now()
|
|
|
item3.ModifiedBy = this.User.Realname
|
|
|
@@ -545,6 +595,8 @@ func (this *OilContractSumScoreController) UpdateEntity() {
|
|
|
item3.B6 = model.B6
|
|
|
item3.B7 = model.B7
|
|
|
item3.B8 = model.B8
|
|
|
+ item3.Result1 = model.Result1
|
|
|
+ item3.Result2 = model.Result2
|
|
|
|
|
|
cols3 := []string{
|
|
|
"Category",
|
|
|
@@ -573,6 +625,7 @@ func (this *OilContractSumScoreController) UpdateEntity() {
|
|
|
"SumScore6",
|
|
|
"SumScore7",
|
|
|
"SumScore8",
|
|
|
+ "Conclusion",
|
|
|
"Note",
|
|
|
"ModifiedOn",
|
|
|
"ModifiedBy",
|
|
|
@@ -585,6 +638,8 @@ func (this *OilContractSumScoreController) UpdateEntity() {
|
|
|
"B6",
|
|
|
"B7",
|
|
|
"B8",
|
|
|
+ "Result1",
|
|
|
+ "Result2",
|
|
|
}
|
|
|
err3 := itemSvc.UpdateEntityBytbl(OilContractSumScoreItemsName,item3.Id,&item3,cols3)
|
|
|
|
|
|
@@ -670,6 +725,9 @@ func (this *OilContractSumScoreController) SaveScoreItemsBySec(){
|
|
|
item.B7 = model.B7
|
|
|
item.B8 = model.B8
|
|
|
|
|
|
+ item.Result1 = model.Result1
|
|
|
+ item.Result2 = model.Result2
|
|
|
+
|
|
|
_,err := itemSvc.InsertEntityBytbl(OilContractSumScoreItemsName, &item)
|
|
|
|
|
|
if err == nil {
|