Untitled
unknown
javascript
2 years ago
1.9 kB
7
Indexable
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);Editor is loading...