| | |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | Precondition: |
| | | [* |
| | | feedback := Translations::FilllingCapacity_ValidateInput(); |
| | | |
| | | checkValue := not Coefficient.Text() = '' |
| | | |
| | | return checkValue; |
| | | checkValue := true; |
| | | if( PriorityFactorName.Text() = ''){ |
| | | feedback := Translations::PriorityFactor_CheckNameNull(); |
| | | checkValue := false; |
| | | } |
| | | return checkValue |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |
| | | [* |
| | | Form.ClickBtnOK(); |
| | | businessType := DataHolderBusinessTyoeSelect.Data( ); |
| | | if( NewFlag.Checked() ){ |
| | | // New |
| | | repeatOne := select( businessType,PriorityFactor,pf,pf.Name() = PriorityFactorName.Text()); |
| | | if( not isnull( repeatOne )){ |
| | | WebMessageBox::Error( Translations::PriorityFactor_CheckNameValid() ); |
| | | }else{ |
| | | Form.ClickBtnOK(); |
| | | } |
| | | }else { |
| | | if (EditFlag.Checked() and PriorityFactorNameCache.Text() <>PriorityFactorName.Text()){ |
| | | // Edit |
| | | repeatOne:=select(businessType, PriorityFactor, pf, pf.Name() = PriorityFactorName.Text()); |
| | | if (not isnull(repeatOne)){ |
| | | WebMessageBox::Error (Translations::PriorityFactor_CheckNameValid () ); |
| | | }else{ |
| | | Form.ClickBtnOK(); |
| | | } |
| | | }else{ |
| | | Form.ClickBtnOK(); |
| | | } |
| | | } |
| | | *] |
| | | GroupServerCalls: false |
| | | } |