|
@@ -114,7 +114,7 @@ func (this *OilContractController) GetEntityList() {
|
|
|
PoNumber := this.GetString("PoNumber")
|
|
PoNumber := this.GetString("PoNumber")
|
|
|
SubPackage := this.GetString("SubPackage")
|
|
SubPackage := this.GetString("SubPackage")
|
|
|
ImportStatus := this.GetString("ImportStatus")
|
|
ImportStatus := this.GetString("ImportStatus")
|
|
|
- //ContractClass := this.GetString("ContractClass")
|
|
|
|
|
|
|
+ ContractClass := this.GetString("ContractClass")
|
|
|
ClassName := this.GetString("ClassName")
|
|
ClassName := this.GetString("ClassName")
|
|
|
SecondUnit := this.GetString("SecondUnit")
|
|
SecondUnit := this.GetString("SecondUnit")
|
|
|
ImportSecondUnit := this.GetString("ImportSecondUnit")
|
|
ImportSecondUnit := this.GetString("ImportSecondUnit")
|
|
@@ -126,10 +126,6 @@ func (this *OilContractController) GetEntityList() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
|
|
paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
|
|
|
- ContractClass := paramSvc.GetBaseparameterMessage("GFGL_CONTRACT", "paramset", "listShowType")
|
|
|
|
|
- if ContractClass != "" {
|
|
|
|
|
- where = where + "and a.ContractClass in (" + strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(ContractClass, "服务商", "'03'"), "承包商", "'02'"), "供应商", "'01'") + ")"
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
if Year != "" {
|
|
if Year != "" {
|
|
|
where = where + " and a.CreateOn like '" + Year + "%'"
|
|
where = where + " and a.CreateOn like '" + Year + "%'"
|
|
@@ -430,8 +426,28 @@ func (this *OilContractController) GetEntityList() {
|
|
|
//wherePAudit := "AuditStepCode='PROF_RECE'"
|
|
//wherePAudit := "AuditStepCode='PROF_RECE'"
|
|
|
//orgSvc.GetEntity(&settingProf, wherePAudit) // PROF_AUDIT
|
|
//orgSvc.GetEntity(&settingProf, wherePAudit) // PROF_AUDIT
|
|
|
//res2 := orgSvc.UserInRoleById(this.User.Id, strconv.Itoa(settingProf.RoleId))
|
|
//res2 := orgSvc.UserInRoleById(this.User.Id, strconv.Itoa(settingProf.RoleId))
|
|
|
|
|
+ ContractClass1 := paramSvc.GetBaseparameterMessage("GFGL_CONTRACT", "paramset", "isStartEva")
|
|
|
if !res1 {
|
|
if !res1 {
|
|
|
where = where + " and a.SecondUnit= " + strconv.Itoa(this.User.UnitId)
|
|
where = where + " and a.SecondUnit= " + strconv.Itoa(this.User.UnitId)
|
|
|
|
|
+ if ContractClass1 != "" {
|
|
|
|
|
+ ContractClassType := strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(ContractClass1, "服务商", "'03'"), "承包商", "'02'"), "供应商", "'01'")
|
|
|
|
|
+ if ContractClass != "" {
|
|
|
|
|
+ if strings.Contains(ContractClassType, ContractClass) {
|
|
|
|
|
+ where = where + " and a.ContractClass='" + ContractClass + "' "
|
|
|
|
|
+ } else {
|
|
|
|
|
+ where = where + " and a.ContractClass='04' "
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ where = where + " and a.ContractClass in (" + ContractClassType + ")"
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 不可见
|
|
|
|
|
+ where = where + " and a.ContractClass='04' "
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if ContractClass != "" {
|
|
|
|
|
+ where = where + " and a.ContractClass='" + ContractClass + "' "
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
svc := contract.GetOilContractService(utils.DBE)
|
|
svc := contract.GetOilContractService(utils.DBE)
|