/** 发送按钮 */


var angular = require('angular'),
  _ = require('jsUtil');
require('../modules');
require('../services/DefaultWorkflowService');

var module = angular.module('flowmodulebutton.directives');

/**
  <sino-flow-send-button
    flow-type=""
    record-id=""
    title=""
    show="" 默认 false
    stop-time="" 紧急停止时间
    valid-notion="" 是否验证意见 默认true
    before-valid-send=""  是否可以发送 默认true
    valid-error-text="" 验证失败的提示
    subflag="" 修改业务表中的subflag
   ></sino-flow-send-button>
 */
module.directive('sinoFlowSendButton', function(DefaultWorkflowService) {
  return {
    restrict: 'E',
    require: '^sinoFlowButtonBar',
    template: '<sino-flow-base-send-button button-id="send" transferflag="0"></sino-flow-base-send-button>',
    replace: true,
  };
});
