|
|
@@ -71,6 +71,31 @@ func (this *OilContractController) GetEntityList() {
|
|
|
ModifiedOn := this.GetString("ModifiedOn")
|
|
|
ModifiedUserId := this.GetString("ModifiedUserId")
|
|
|
ModifiedBy := this.GetString("ModifiedBy")
|
|
|
+ ContractName := this.GetString("ContractName")
|
|
|
+ ContractSonClass := this.GetString("ContractSonClass")
|
|
|
+ SmallClass := this.GetString("SmallClass")
|
|
|
+ SignedDate := this.GetString("SignedDate")
|
|
|
+ People := this.GetString("People")
|
|
|
+ Number := this.GetString("Number")
|
|
|
+ ChooseWay := this.GetString("ChooseWay")
|
|
|
+ ContractMark := this.GetString("ContractMark")
|
|
|
+ Currency := this.GetString("Currency")
|
|
|
+ BudgetAmount := this.GetString("BudgetAmount")
|
|
|
+ PerformAmount := this.GetString("PerformAmount")
|
|
|
+ IsInternal := this.GetString("IsInternal")
|
|
|
+ IsForeign := this.GetString("IsForeign")
|
|
|
+ IsDeal := this.GetString("IsDeal")
|
|
|
+ MoneyFlows := this.GetString("MoneyFlows")
|
|
|
+ MoneyChannel := this.GetString("MoneyChannel")
|
|
|
+ MoneyChannelSon := this.GetString("MoneyChannelSon")
|
|
|
+ MoneyChannelSmall := this.GetString("MoneyChannelSmall")
|
|
|
+ SingUnit := this.GetString("SingUnit")
|
|
|
+ Place := this.GetString("Place")
|
|
|
+ DisputeResolution := this.GetString("DisputeResolution")
|
|
|
+ SubmitDate := this.GetString("SubmitDate")
|
|
|
+ SealName := this.GetString("SealName")
|
|
|
+ PoNumber := this.GetString("PoNumber")
|
|
|
+ SubPackage := this.GetString("SubPackage")
|
|
|
|
|
|
if Id != "" {
|
|
|
where = where + " and Id like '%" + Id + "%'"
|
|
|
@@ -217,6 +242,108 @@ func (this *OilContractController) GetEntityList() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if SubPackage != "" {
|
|
|
+ where = where + " and SubPackage like '%" + SubPackage + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ContractName != "" {
|
|
|
+ where = where + " and ContractName like '%" + ContractName + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ContractSonClass != "" {
|
|
|
+ where = where + " and ContractSonClass like '%" + ContractSonClass + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SmallClass != "" {
|
|
|
+ where = where + " and SmallClass like '%" + SmallClass + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if People != "" {
|
|
|
+ where = where + " and People like '%" + People + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if Number != "" {
|
|
|
+ where = where + " and Number like '%" + Number + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ChooseWay != "" {
|
|
|
+ where = where + " and ChooseWay like '%" + ChooseWay + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ContractMark != "" {
|
|
|
+ where = where + " and ContractMark like '%" + ContractMark + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if Currency != "" {
|
|
|
+ where = where + " and Currency like '%" + Currency + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if BudgetAmount != "" {
|
|
|
+ where = where + " and BudgetAmount like '%" + BudgetAmount + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if PerformAmount != "" {
|
|
|
+ where = where + " and PerformAmount like '%" + PerformAmount + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if IsInternal != "" {
|
|
|
+ where = where + " and IsInternal like '%" + IsInternal + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if IsForeign != "" {
|
|
|
+ where = where + " and IsForeign like '%" + IsForeign + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if IsDeal != "" {
|
|
|
+ where = where + " and IsDeal like '%" + IsDeal + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if MoneyFlows != "" {
|
|
|
+ where = where + " and MoneyFlows like '%" + MoneyFlows + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if MoneyChannel != "" {
|
|
|
+ where = where + " and MoneyChannel like '%" + MoneyChannel + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if MoneyChannelSon != "" {
|
|
|
+ where = where + " and MoneyChannelSon like '%" + MoneyChannelSon + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if MoneyChannelSmall != "" {
|
|
|
+ where = where + " and MoneyChannelSmall like '%" + MoneyChannelSmall + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SingUnit != "" {
|
|
|
+ where = where + " and SingUnit like '%" + SingUnit + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if Place != "" {
|
|
|
+ where = where + " and Place like '%" + Place + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if DisputeResolution != "" {
|
|
|
+ where = where + " and DisputeResolution like '%" + DisputeResolution + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SubmitDate != "" {
|
|
|
+ where = where + " and SubmitDate like '%" + SubmitDate + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SealName != "" {
|
|
|
+ where = where + " and SealName like '%" + SealName + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if PoNumber != "" {
|
|
|
+ where = where + " and PoNumber like '%" + PoNumber + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SignedDate != "" {
|
|
|
+ where = where + " and PoNumber like '%" + SignedDate + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
svc := contract.GetOilContractService(utils.DBE)
|
|
|
var list []contract.OilContract
|
|
|
total := svc.GetPagingEntitiesWithOrderBytbl("", page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
@@ -436,6 +563,52 @@ func (this *OilContractController) UpdateEntity() {
|
|
|
"ModifiedBy",
|
|
|
|
|
|
"SubPackage",
|
|
|
+
|
|
|
+ "ContractName",
|
|
|
+
|
|
|
+ "ContractSonClass",
|
|
|
+
|
|
|
+ "SmallClass",
|
|
|
+
|
|
|
+ "SignedDate",
|
|
|
+
|
|
|
+ "People",
|
|
|
+
|
|
|
+ "Number",
|
|
|
+
|
|
|
+ "ChooseWay",
|
|
|
+
|
|
|
+ "ContractMark",
|
|
|
+
|
|
|
+ "Currency",
|
|
|
+
|
|
|
+ "BudgetAmount",
|
|
|
+
|
|
|
+ "PerformAmount",
|
|
|
+
|
|
|
+ "IsInternal",
|
|
|
+
|
|
|
+ "IsForeign",
|
|
|
+
|
|
|
+ "IsDeal",
|
|
|
+
|
|
|
+ "MoneyFlows",
|
|
|
+
|
|
|
+ "MoneyChannelSon",
|
|
|
+
|
|
|
+ "MoneyChannelSmall",
|
|
|
+
|
|
|
+ "SingUnit",
|
|
|
+
|
|
|
+ "Place",
|
|
|
+
|
|
|
+ "DisputeResolution",
|
|
|
+
|
|
|
+ "SubmitDate",
|
|
|
+
|
|
|
+ "SealName",
|
|
|
+
|
|
|
+ "PoNumber",
|
|
|
}
|
|
|
err := svc.UpdateEntityBytbl(OilContractName, id, &model, cols)
|
|
|
if err == nil {
|