|
|
@@ -92,78 +92,6 @@ urule.Condition.prototype.initMenu=function(constantLibraries){
|
|
|
URule.setDomContent(self.label,".");
|
|
|
window._setDirty();
|
|
|
}
|
|
|
- },{
|
|
|
- label:"选择方法",
|
|
|
- onClick:function(){
|
|
|
- self.type="method";
|
|
|
- if(self.variableValue){
|
|
|
- self.variableValue.getContainer().hide();
|
|
|
- }
|
|
|
- if(self.parameterValue){
|
|
|
- self.parameterValue.getContainer().hide();
|
|
|
- }
|
|
|
- if(self.functionValue){
|
|
|
- self.functionValue.getContainer().hide();
|
|
|
- }
|
|
|
- if(self.methodValue){
|
|
|
- self.methodValue.getContainer().show();
|
|
|
- }else{
|
|
|
- self.methodValue=new urule.MethodValue(self.arithmetic,null);
|
|
|
- self.valueContainer.append(self.methodValue.getContainer());
|
|
|
- }
|
|
|
- if(self.operator){
|
|
|
- self.operator.getContainer().show();
|
|
|
- }else{
|
|
|
- self.operator=new urule.ComparisonOperator(function(){
|
|
|
- self.inputType=self.operator.getInputType();
|
|
|
- if(self.inputType){
|
|
|
- self.container.append(self.inputType.getContainer());
|
|
|
- }
|
|
|
- });
|
|
|
- self.container.append(self.operator.getContainer());
|
|
|
- }
|
|
|
- self.label.css({
|
|
|
- "color":"white"
|
|
|
- });
|
|
|
- URule.setDomContent(self.label,".");
|
|
|
- window._setDirty();
|
|
|
- }
|
|
|
- },{
|
|
|
- label:"选择函数",
|
|
|
- onClick:function(){
|
|
|
- self.type="commonfunction";
|
|
|
- if(self.variableValue){
|
|
|
- self.variableValue.getContainer().hide();
|
|
|
- }
|
|
|
- if(self.parameterValue){
|
|
|
- self.parameterValue.getContainer().hide();
|
|
|
- }
|
|
|
- if(self.methodValue){
|
|
|
- self.methodValue.getContainer().hide();
|
|
|
- }
|
|
|
- if(self.functionValue){
|
|
|
- self.functionValue.getContainer().show();
|
|
|
- }else{
|
|
|
- self.functionValue=new urule.FunctionValue(self.arithmetic,null,"In");
|
|
|
- self.valueContainer.append(self.functionValue.getContainer());
|
|
|
- }
|
|
|
- if(self.operator){
|
|
|
- self.operator.getContainer().show();
|
|
|
- }else{
|
|
|
- self.operator=new urule.ComparisonOperator(function(){
|
|
|
- self.inputType=self.operator.getInputType();
|
|
|
- if(self.inputType){
|
|
|
- self.container.append(self.inputType.getContainer());
|
|
|
- }
|
|
|
- });
|
|
|
- self.container.append(self.operator.getContainer());
|
|
|
- }
|
|
|
- self.label.css({
|
|
|
- "color":"white"
|
|
|
- });
|
|
|
- URule.setDomContent(self.label,".");
|
|
|
- window._setDirty();
|
|
|
- }
|
|
|
}]
|
|
|
});
|
|
|
this.label.click(function(e){
|