Untitled

mail@pastecode.io avatar
unknown
javascript
a year ago
1.9 kB
3
Indexable
Never
				if(this.get("IsOEWhichExaminationUnderwayButtonPressed")){	
					var filterGroup = Ext.create("Terrasoft.FilterGroup");
					filterGroup.addItem(Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "NsIsOrderOfOrgranizationSEEPassed", true));
					filterGroup.logicalOperation = this.Terrasoft.LogicalOperatorType.AND;
					var letterFilterGroup = Ext.create("Terrasoft.FilterGroup");
					//letterFilterGroup.addItem(Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.NOT_EQUAL, "[NsPostalItemsInObjectOfExpertise:ObjectOfExpertise:Id].PostalItems.Subject.Id", Constants.SfItemTitle.NotificationCompletionOfSEE));
					letterFilterGroup.addItem(Terrasoft.createNotExistsFilter("[NsPostalItemsInObjectOfExpertise:ObjectOfExpertise:Id].PostalItems.Subject.Id", Constants.SfItemTitle.NotificationCompletionOfSEE));
					letterFilterGroup.logicalOperation = this.Terrasoft.LogicalOperatorType.OR;
					var subFilterGroup = Ext.create("Terrasoft.FilterGroup");
					subFilterGroup.addItem(Terrasoft.createExistsFilter("[NsPostalItemsInObjectOfExpertise:ObjectOfExpertise:Id].PostalItems.Subject.Id", Constants.SfItemTitle.NotificationCompletionOfSEE));
					//subFilterGroup.addItem(Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "[NsPostalItemsInObjectOfExpertise:ObjectOfExpertise:Id].PostalItems.Subject.Id", Constants.SfItemTitle.NotificationCompletionOfSEE));
					subFilterGroup.logicalOperation = this.Terrasoft.LogicalOperatorType.AND;
					subFilterGroup.addItem(Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.NOT_EQUAL, "[NsPostalItemsInObjectOfExpertise:ObjectOfExpertise:Id].PostalItems.Stage.Id", Constants.NsPostaItemsStage.EndSend));
					letterFilterGroup.addItem(subFilterGroup);
					filterGroup.addItem(letterFilterGroup);
					filters.addItem(filterGroup);