Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { Component } from 'react';
  2. import { Programa, SimpleTable, Select, TextArea, Button } from 'argous/dist/components';
  3. import { serverAction } from 'argous/dist/utils/api'
  4. import passFields from 'argous/dist/fieldsRedux/passFields';
  5. import { setField } from 'argous/dist/fieldsRedux';
  6. import Input from 'argous/dist/components/Input';
  7. import GraficoPizzaAnaliseFeedBack from './GraficoPizzaAnaliseFeedBack';
  8.  
  9. class RelatorioAnaliseFeedback extends Component {
  10.  
  11.     pgCode = 'AnaliseFeebackAD'
  12.  
  13.     state = {
  14.         modalDadosFeedback: false,
  15.         quantidadeF: 0,
  16.         quantidadeI: 0,
  17.         quantidadeN: 0,
  18.         quantidadeTotal: 0,
  19.         appearing: true,
  20.         arr: [],
  21.         cdCiclo: '1',
  22.         filtro: {},
  23.         mostraIndicadores: true,
  24.         mostraGrid: true,
  25.         mostraGrafico: false,
  26.         mostraRelatorio: false,
  27.         mostraQuestoes: false,
  28.         mostraPlanoDesenvolvimento: false
  29.     }
  30.  
  31.     indicadores = [{
  32.         id: 'F',
  33.         tipo: 'Finalizado'
  34.     }, {
  35.         id: 'I',
  36.         tipo: 'Iniciado'
  37.     }, {
  38.         id: 'N',
  39.         tipo: 'Não Iniciado'
  40.     }]
  41.  
  42.     visualizaFeedback = (obj) => {
  43.         console.log("Visualizando", obj)
  44.         serverAction('buscaAvaliacaoDeFeedback', obj).then(res => {
  45.             console.log("Visualizando", res)
  46.         })
  47.     }
  48.  
  49.     executaFiltroPesquisa = (obj) => {
  50.         console.log('Executando executaFiltroPesquisa', obj)
  51.  
  52.         var filtro = {
  53.             cdCiclo: this.state.cdCiclo,
  54.             cdH: this.state.cdH,
  55.             cdC: this.state.cdC,
  56.             cdS: this.state.cdS,
  57.         }
  58.  
  59.         if (obj !== undefined && obj !== '') {
  60.             console.log("ADICIONANDO AO FILTRO")
  61.             filtro = {
  62.                 cdCiclo: this.state.cdCiclo,
  63.                 cdH: this.state.cdH,
  64.                 cdC: this.state.cdC,
  65.                 cdS: this.state.cdS,
  66.                 nmF: obj
  67.             }
  68.         }
  69.  
  70.         console.log("filtro ", filtro)
  71.  
  72.         serverAction('buscaAvaliacoesDeFeedback', filtro).then(res => {
  73.             console.log('chamada', res)
  74.             if (res.status) {
  75.                 setField("listaCargos", res.cargos)
  76.                 setField("listaHierarquias", res.hierarquias)
  77.                 setField("listaCiclos", res.ciclos)
  78.                 setField("listaCiclosSelecionado", 1)
  79.                 setField("itensFB", res.itens)
  80.                 setField('listaQuantidades', this.indicadores)
  81.                 setField('quantidades', res.quantidades)
  82.                 if (res.quantidades !== undefined) {
  83.                     var qtN = 0;
  84.                     var qtI = 0;
  85.                     var qtF = 0;
  86.                     var qtTotal = 0;
  87.                     var arr = []
  88.                     for (var i = 0; i < res.quantidades.length; i++) {
  89.                         arr[i] = res.quantidades[i].tpStatus
  90.  
  91.                         if (res.quantidades[i].tpStatus === 'F') {
  92.                             qtF = res.quantidades[i].quantidade;
  93.                         } else if (res.quantidades[i].tpStatus === 'I') {
  94.                             qtI = res.quantidades[i].quantidade;
  95.                         } else if (res.quantidades[i].tpStatus === 'N') {
  96.                             qtN = res.quantidades[i].quantidade;
  97.                         }
  98.                     }
  99.  
  100.                     qtTotal = (qtN + qtF + qtI)
  101.  
  102.                     this.setState({
  103.                         quantidadeF: qtF,
  104.                         quantidadeI: qtI,
  105.                         quantidadeN: qtN,
  106.                         quantidadeTotal: qtTotal,
  107.                         arr: arr
  108.                     })
  109.                 }
  110.             }
  111.         })
  112.  
  113.     }
  114.  
  115.     executaFiltroCiclo = (obj) => {
  116.         console.log('Executando executaFiltroCiclo', obj)
  117.         var filtro = {
  118.             cdH: this.state.cdH,
  119.             cdC: this.state.cdC,
  120.             cdS: this.state.cdS,
  121.         }
  122.         if (obj !== 'Selecionar') {
  123.             filtro = {
  124.                 cdCiclo: obj,
  125.                 cdH: this.state.cdH,
  126.                 cdC: this.state.cdC,
  127.                 cdS: this.state.cdS,
  128.             }
  129.         }
  130.  
  131.         serverAction('buscaAvaliacoesDeFeedback', filtro).then(res => {
  132.             console.log('chamada', res)
  133.             if (res.status) {
  134.                 setField("listaCargos", res.cargos)
  135.                 setField("listaHierarquias", res.hierarquias)
  136.                 setField("listaCiclos", res.ciclos)
  137.                 setField("listaCiclosSelecionado", 1)
  138.                 setField("itensFB", res.itens)
  139.                 setField('listaQuantidades', this.indicadores)
  140.                 setField('quantidades', res.quantidades)
  141.                 if (res.quantidades !== undefined) {
  142.                     var qtN = 0;
  143.                     var qtI = 0;
  144.                     var qtF = 0;
  145.                     var qtTotal = 0;
  146.                     var arr = []
  147.                     for (var i = 0; i < res.quantidades.length; i++) {
  148.                         arr[i] = res.quantidades[i].tpStatus
  149.  
  150.                         if (res.quantidades[i].tpStatus === 'F') {
  151.                             qtF = res.quantidades[i].quantidade;
  152.                         } else if (res.quantidades[i].tpStatus === 'I') {
  153.                             qtI = res.quantidades[i].quantidade;
  154.                         } else if (res.quantidades[i].tpStatus === 'N') {
  155.                             qtN = res.quantidades[i].quantidade;
  156.                         }
  157.                     }
  158.  
  159.                     qtTotal = (qtN + qtF + qtI)
  160.  
  161.                     this.setState({
  162.                         quantidadeF: qtF,
  163.                         quantidadeI: qtI,
  164.                         quantidadeN: qtN,
  165.                         quantidadeTotal: qtTotal,
  166.                         arr: arr
  167.                     })
  168.                 }
  169.             }
  170.         })
  171.     }
  172.  
  173.     executaFiltroCargo = (obj) => {
  174.         console.log('Executando executaFiltroCargo', obj)
  175.         var filtro = {
  176.             cdCiclo: this.state.cdCiclo,
  177.             cdH: this.state.cdH,
  178.             cdS: this.state.cdS,
  179.         }
  180.         if (obj !== 'Selecionar') {
  181.             filtro = {
  182.                 cdCiclo: this.state.cdCiclo,
  183.                 cdH: this.state.cdH,
  184.                 cdC: obj,
  185.                 cdS: this.state.cdS,
  186.             }
  187.             this.setState({
  188.                 cdC: obj
  189.             })
  190.         } else {
  191.             delete this.state.cdC
  192.         }
  193.  
  194.  
  195.  
  196.         serverAction('buscaAvaliacoesDeFeedback', filtro).then(res => {
  197.             console.log('chamada', res)
  198.             if (res.status) {
  199.                 setField("listaCargos", res.cargos)
  200.                 setField("listaHierarquias", res.hierarquias)
  201.                 setField("listaCiclos", res.ciclos)
  202.                 setField("listaCiclosSelecionado", 1)
  203.                 setField("itensFB", res.itens)
  204.                 setField('listaQuantidades', this.indicadores)
  205.                 setField('quantidades', res.quantidades)
  206.                 if (res.quantidades !== undefined) {
  207.                     var qtN = 0;
  208.                     var qtI = 0;
  209.                     var qtF = 0;
  210.                     var qtTotal = 0;
  211.                     var arr = []
  212.                     for (var i = 0; i < res.quantidades.length; i++) {
  213.                         arr[i] = res.quantidades[i].tpStatus
  214.  
  215.                         if (res.quantidades[i].tpStatus === 'F') {
  216.                             qtF = res.quantidades[i].quantidade;
  217.                         } else if (res.quantidades[i].tpStatus === 'I') {
  218.                             qtI = res.quantidades[i].quantidade;
  219.                         } else if (res.quantidades[i].tpStatus === 'N') {
  220.                             qtN = res.quantidades[i].quantidade;
  221.                         }
  222.                     }
  223.  
  224.                     qtTotal = (qtN + qtF + qtI)
  225.  
  226.                     this.setState({
  227.                         quantidadeF: qtF,
  228.                         quantidadeI: qtI,
  229.                         quantidadeN: qtN,
  230.                         quantidadeTotal: qtTotal,
  231.                         arr: arr
  232.                     })
  233.                 }
  234.             }
  235.         })
  236.     }
  237.  
  238.     executaFiltroHierarquia = (obj) => {
  239.         console.log('Executando executaFiltroHierarquia', obj)
  240.         var filtro = {
  241.             cdCiclo: this.state.cdCiclo,
  242.             cdC: this.state.cdC,
  243.             cdS: this.state.cdS,
  244.         }
  245.         if (obj !== 'Selecionar') {
  246.             filtro = {
  247.                 cdCiclo: this.state.cdCiclo,
  248.                 cdH: obj,
  249.                 cdC: this.state.cdC,
  250.                 cdS: this.state.cdS,
  251.             }
  252.             this.setState({
  253.                 cdH: obj
  254.             })
  255.         } else {
  256.             delete this.state.cdH
  257.         }
  258.  
  259.         serverAction('buscaAvaliacoesDeFeedback', filtro).then(res => {
  260.             console.log('chamada', res)
  261.             if (res.status) {
  262.                 setField("listaCargos", res.cargos)
  263.                 setField("listaHierarquias", res.hierarquias)
  264.                 setField("listaCiclos", res.ciclos)
  265.                 setField("listaCiclosSelecionado", 1)
  266.                 setField("itensFB", res.itens)
  267.                 setField('listaQuantidades', this.indicadores)
  268.                 setField('quantidades', res.quantidades)
  269.                 if (res.quantidades !== undefined) {
  270.                     var qtN = 0;
  271.                     var qtI = 0;
  272.                     var qtF = 0;
  273.                     var qtTotal = 0;
  274.                     var arr = []
  275.                     for (var i = 0; i < res.quantidades.length; i++) {
  276.                         arr[i] = res.quantidades[i].tpStatus
  277.  
  278.                         if (res.quantidades[i].tpStatus === 'F') {
  279.                             qtF = res.quantidades[i].quantidade;
  280.                         } else if (res.quantidades[i].tpStatus === 'I') {
  281.                             qtI = res.quantidades[i].quantidade;
  282.                         } else if (res.quantidades[i].tpStatus === 'N') {
  283.                             qtN = res.quantidades[i].quantidade;
  284.                         }
  285.                     }
  286.  
  287.                     qtTotal = (qtN + qtF + qtI)
  288.  
  289.                     this.setState({
  290.                         quantidadeF: qtF,
  291.                         quantidadeI: qtI,
  292.                         quantidadeN: qtN,
  293.                         quantidadeTotal: qtTotal,
  294.                         arr: arr
  295.                     })
  296.                 }
  297.             }
  298.         })
  299.     }
  300.  
  301.     executaFiltroStatus = (obj) => {
  302.         console.log('Executando executaFiltroStatus', obj)
  303.         var filtro = {
  304.             cdCiclo: this.state.cdCiclo,
  305.             cdH: this.state.cdH,
  306.             cdC: this.state.cdC,
  307.         }
  308.         if (obj !== 'Selecionar') {
  309.             console.log("DIFERENTE DE SELECIONAR ", obj)
  310.             filtro = {
  311.                 cdCiclo: this.state.cdCiclo,
  312.                 cdH: this.state.cdH,
  313.                 cdC: this.state.cdC,
  314.                 cdS: obj,
  315.             }
  316.             this.setState({
  317.                 cdS: obj
  318.             })
  319.         } else {
  320.             delete this.state.cdS
  321.         }
  322.  
  323.  
  324.         serverAction('buscaAvaliacoesDeFeedback', filtro).then(res => {
  325.             console.log('chamada', res)
  326.             if (res.status) {
  327.                 setField("listaCargos", res.cargos)
  328.                 setField("listaHierarquias", res.hierarquias)
  329.                 setField("listaCiclos", res.ciclos)
  330.                 setField("listaCiclosSelecionado", 1)
  331.                 setField("itensFB", res.itens)
  332.                 setField('listaQuantidades', this.indicadores)
  333.                 setField('quantidades', res.quantidades)
  334.                 if (res.quantidades !== undefined) {
  335.                     var qtN = 0;
  336.                     var qtI = 0;
  337.                     var qtF = 0;
  338.                     var qtTotal = 0;
  339.                     var arr = []
  340.                     for (var i = 0; i < res.quantidades.length; i++) {
  341.                         arr[i] = res.quantidades[i].tpStatus
  342.  
  343.                         if (res.quantidades[i].tpStatus === 'F') {
  344.                             qtF = res.quantidades[i].quantidade;
  345.                         } else if (res.quantidades[i].tpStatus === 'I') {
  346.                             qtI = res.quantidades[i].quantidade;
  347.                         } else if (res.quantidades[i].tpStatus === 'N') {
  348.                             qtN = res.quantidades[i].quantidade;
  349.                         }
  350.                     }
  351.  
  352.                     qtTotal = (qtN + qtF + qtI)
  353.  
  354.                     this.setState({
  355.                         quantidadeF: qtF,
  356.                         quantidadeI: qtI,
  357.                         quantidadeN: qtN,
  358.                         quantidadeTotal: qtTotal,
  359.                         arr: arr
  360.                     })
  361.                 }
  362.             }
  363.         })
  364.     }
  365.  
  366.     init = () => {
  367.  
  368.  
  369.         //{cdCiclo:'', cdH: '', cdC: '', cdS: '', nmF:''}
  370.         const filtro = {
  371.             cdFiltro: '1'
  372.         }
  373.         console.log('Filtro', filtro)
  374.         serverAction('buscaAvaliacoesDeFeedback', this.state.filtro).then(res => {
  375.             console.log('chamada', res)
  376.             if (res.status) {
  377.                 setField("listaCargos", res.cargos)
  378.                 setField("listaHierarquias", res.hierarquias)
  379.                 setField("listaCiclos", res.ciclos)
  380.                 setField("listaCiclosSelecionado", 1)
  381.                 setField("itensFB", res.itens)
  382.                 setField('listaQuantidades', this.indicadores)
  383.                 setField('quantidades', res.quantidades)
  384.                 if (res.quantidades !== undefined) {
  385.                     var qtN = 0;
  386.                     var qtI = 0;
  387.                     var qtF = 0;
  388.                     var qtTotal = 0;
  389.                     var arr = []
  390.                     for (var i = 0; i < res.quantidades.length; i++) {
  391.                         if (res.quantidades[i].tpStatus === 'F') {
  392.                             arr[i] = 'Finalizado'
  393.                             qtF = res.quantidades[i].quantidade;
  394.  
  395.                         } else if (res.quantidades[i].tpStatus === 'I') {
  396.                             arr[i] = 'Iniciado'
  397.                             qtI = res.quantidades[i].quantidade;
  398.  
  399.                         } else if (res.quantidades[i].tpStatus === 'N') {
  400.                             arr[i] = 'Não Iniciado'
  401.                             qtN = res.quantidades[i].quantidade;
  402.                         }
  403.                     }
  404.  
  405.                     qtTotal = (qtN + qtF + qtI)
  406.  
  407.                     this.setState({
  408.                         quantidadeF: qtF,
  409.                         quantidadeI: qtI,
  410.                         quantidadeN: qtN,
  411.                         quantidadeTotal: qtTotal,
  412.                         arr: arr
  413.                     })
  414.                 }
  415.             }
  416.         })
  417.     }
  418.  
  419.     render() {
  420.         const { modalDadosFeedback, modalTelaGrafico, modalRelatorio, modalQuestoes, modalPlanoDesenvolvimento, quantidadeF, quantidadeI, quantidadeN, quantidadeTotal, arr } = this.state
  421.  
  422.         const data = {
  423.             datasets: [{
  424.                 data: [quantidadeN, quantidadeF, quantidadeI],
  425.                 backgroundColor: ['#F6F612', '#F33493', '#3C96F0'],
  426.                 hoverBorderColor: '#BBB3B3',
  427.                 hoverBorderWidth: 3,
  428.             }],
  429.             labels: arr
  430.         }
  431.  
  432.         return (
  433.  
  434.             <Programa programDidMount={this.init} code={this.pgCode} >
  435.                 <div>
  436.                     <div className='row'>
  437.                         <button className="btn btn-dark glyphicon glyphicon-eye-open navbar-right" style={{ marginRight: '20px' }}
  438.                             onClick={() => this.setState({ mostraIndicadores: !this.state.mostraIndicadores })}>
  439.                         </button>
  440.                     </div>
  441.                     {this.state.mostraIndicadores &&
  442.                         <div className='row'>
  443.                             <div className='col-lg-6 col-md-6 col-sm-6 col-xs-6'>
  444.  
  445.                                 <div className='row'>
  446.                                     <div className='col-lg-6 col-md-6 col-sm-6 col-xs-6'>
  447.                                         <label>Ciclo de Avaliação:</label>
  448.                                         <Select field='cdCiclo'
  449.                                             optionsField='listaCiclos'
  450.                                             optionsValue='chave'
  451.                                             optionsLabel='descricao'
  452.                                             onChange={obj => this.executaFiltroCiclo(obj)}>
  453.                                             <option label='Selecionar'>Selecionar</option>
  454.                                         </Select>
  455.                                         <br />
  456.                                     </div>
  457.  
  458.                                     <div className='col-lg-6 col-md-6 col-sm-6 col-xs-6'>
  459.                                         <label>Hierarquia:</label>
  460.                                         <Select field='cdH'
  461.                                             optionsField='listaHierarquias'
  462.                                             optionsLabel='descricao'
  463.                                             optionsValue='chave'
  464.                                             onChange={obj => this.executaFiltroHierarquia(obj)}>
  465.                                             <option label='Selecionar'>Selecionar</option>
  466.                                         </Select>
  467.                                         <br />
  468.                                     </div>
  469.                                 </div>
  470.  
  471.                                 <div className='row'>
  472.                                     <div className='col-lg-6 col-md-6 col-sm-6 col-xs-6'>
  473.                                         <label>Cargo</label>
  474.                                         <Select field='cdC'
  475.                                             optionsField='listaCargos'
  476.                                             optionsLabel='descricao'
  477.                                             optionsValue='chave'
  478.                                             onChange={obj => this.executaFiltroCargo(obj)}>
  479.                                             <option label='Selecionar'>Selecionar</option>
  480.                                         </Select>
  481.                                         <br />
  482.                                     </div>
  483.  
  484.                                     <div className='col-lg-6 col-md-6 col-sm-6 col-xs-6'>
  485.                                         <label>Status Feedback:</label>
  486.                                         <Select field='cdS'
  487.                                             optionsField='listaQuantidades'
  488.                                             optionsLabel='tipo'
  489.                                             optionsValue='id'
  490.                                             onChange={obj => this.executaFiltroStatus(obj)}>
  491.                                             <option label='Selecionar'>Selecionar</option>
  492.                                         </Select>
  493.                                         <br />
  494.                                     </div>
  495.                                 </div>
  496.                             </div>
  497.  
  498.                             <div className='col-lg-1 col-md-1 col-sm-1 col-xs-1'></div>
  499.  
  500.                             <div className='col-lg-2 col-md-2 col-sm-2 col-xs-2'>Indicadores:
  501.                                 <br />
  502.                                 <br />
  503.                                 <label>Total de Feedbacks :</label> {quantidadeTotal} <br />
  504.                                 <label>Não-Iniciados : </label>{quantidadeN}<br />
  505.                                 <label>Iniciados :</label>{quantidadeI}<br />
  506.                                 <label>Finalizados :</label>{quantidadeF}<br />
  507.                             </div>
  508.  
  509.                             <div className='col-lg-3 col-md-3 col-sm-3 col-xs-3'>
  510.                                 <GraficoPizzaAnaliseFeedBack data={data} />
  511.                             </div>
  512.                         </div>
  513.                     }
  514.                 </div>
  515.  
  516.                 <div className='row'>
  517.                     <div className='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
  518.                         <label><br /></label>
  519.                         <Input field='ds_descricao' onBlur={e => this.executaFiltroPesquisa(e.target.value)} placeholder='Pesquise por funcionário, área ou cargo' />
  520.                         <br />
  521.                     </div>
  522.                 </div>
  523.  
  524.                 <div className='row'>
  525.                     <button className="btn btn-dark glyphicon glyphicon-eye-open navbar-right" style={{ marginRight: '20px' }}
  526.                         onClick={() => this.setState({ mostraGrid: !this.state.mostraGrid })}>
  527.                     </button>
  528.                 </div>
  529.  
  530.                 <div className="row">
  531.                     {!modalDadosFeedback && this.state.mostraGrid &&
  532.                         <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  533.                             <SimpleTable
  534.                                 field='itensFB'
  535.                                 head={['FUNCIONÁRIO', 'ÁREA', 'CARGO', 'CICLO']}
  536.                                 alias={['ds_nome', 'ds_cc', 'ds_cargo', 'ds_ciclo']}
  537.                                 rows={25}
  538.                                 onClick={obj =>
  539.                                     this.visualizaFeedback(obj)
  540.                                 }>
  541.                             </SimpleTable>
  542.                         </div>
  543.                     }
  544.                 </div>
  545.  
  546.                 {/* <div className='row'>
  547.                     <label>GRÁFICO</label>
  548.                     <button className="btn btn-dark glyphicon glyphicon-eye-open navbar-right" style={{ marginRight: '20px' }}
  549.                         onClick={() => this.setState({ mostraGrafico: !this.state.mostraGrafico })}>
  550.                     </button>
  551.                 </div>
  552.                 <div className="row">
  553.                     {!modalTelaGrafico && this.state.mostraGrafico &&
  554.                         <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  555.  
  556.                         </div>
  557.                     }
  558.                 </div>
  559.                 <br /> */}
  560.  
  561.  
  562.                 {/* <div className='row'>
  563.                     <label>RELATÓRIO</label>
  564.                     <button className="btn btn-dark glyphicon glyphicon-eye-open navbar-right" style={{ marginRight: '20px' }}
  565.                         onClick={() => this.setState({ mostraRelatorio: !this.state.mostraRelatorio })}>
  566.                     </button>
  567.                 </div>
  568.                 <br />
  569.  
  570.                 <div className="row">
  571.                     {!modalRelatorio && this.state.mostraRelatorio &&
  572.                         <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  573.                             <SimpleTable
  574.                                 field=''
  575.                                 head={['Comportamento', 'Feedback', 'Auto Avaliação', 'Superior']}
  576.                                 alias={['', '', '', '']}
  577.                                 rows={25}
  578.                                 onClick={obj =>
  579.                                     this.visualizaFeedback(obj)
  580.                                 }>
  581.                             </SimpleTable>
  582.                         </div>
  583.                     }
  584.                 </div>
  585.                 <br /> */}
  586.  
  587.  
  588.                 {/* <div className='row'>
  589.                     <label>QUESTÕES DO FEEDBACK</label>
  590.                     <button className="btn btn-dark glyphicon glyphicon-eye-open navbar-right" style={{ marginRight: '20px' }}
  591.                         onClick={() => this.setState({ mostraQuestoes: !this.state.mostraQuestoes })}>
  592.                     </button>
  593.                 </div>
  594.  
  595.                 <div className='row'>
  596.                     {!modalQuestoes && this.state.mostraQuestoes &&
  597.                         <div className="row">
  598.                             <br />
  599.                             <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  600.                                 <div className='col-lg-2 col-md-2 col-sm-2 col-xs-2'>
  601.                                     <label for="primeira">Quais foram as principais contribuições do avaliado no período?</label>
  602.                                 </div>
  603.                                 <div className="col-lg-10 col-md-10 col-sm-10 col-sx-10 ">
  604.                                     <TextArea field="primeira"></TextArea>
  605.                                 </div>
  606.                             </div>
  607.  
  608.                             <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  609.                                 <div className='col-lg-2 col-md-2 col-sm-2 col-xs-2'>
  610.                                     <label for="segunda">Quais os pontos fortes de destaque do avaliado?</label>
  611.                                 </div>
  612.                                 <div className="col-lg-10 col-md-10 col-sm-10 col-sx-10 ">
  613.                                     <TextArea field="segunda"></TextArea>
  614.                                 </div>
  615.                             </div>
  616.                             <br />
  617.  
  618.                             <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  619.                                 <div className='col-lg-2 col-md-2 col-sm-2 col-xs-2'>
  620.                                     <label for="terceira">Quais as dificuldades e os aspectos de melhoria avaliado?</label>
  621.                                 </div>
  622.                                 <div className="col-lg-10 col-md-10 col-sm-10 col-sx-10 ">
  623.                                     <TextArea field="terceira"></TextArea>
  624.                                 </div>
  625.                             </div>
  626.                             <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  627.                                 <button className='btn btn-primary' onClick={this.cadastraNovoGrupo}>Salvar</button>
  628.                             </div>
  629.                         </div>
  630.                     }
  631.                 </div>
  632.                 <br /> */}
  633.  
  634.  
  635.  
  636.  
  637.                 {/* <div className='row'>
  638.                     <label>PLANO DE DESENVOLVIMENTO</label>
  639.                     <button className="btn btn-dark glyphicon glyphicon-eye-open navbar-right" style={{ marginRight: '20px' }}
  640.                         onClick={() => this.setState({ mostraPlanoDesenvolvimento: !this.state.mostraPlanoDesenvolvimento })}>
  641.                     </button>
  642.                 </div>
  643.                 <br />
  644.  
  645.                 <div className="row">
  646.                     {!modalPlanoDesenvolvimento && this.state.mostraPlanoDesenvolvimento &&
  647.                         <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  648.                             <br />
  649.                             <SimpleTable
  650.                                 field=''
  651.                                 head={['Ação', 'Início', 'Fim', 'Descrição']}
  652.                                 alias={['', '', '', '']}
  653.                                 rows={25}
  654.                                 onClick={obj =>
  655.                                     this.visualizaFeedback(obj)
  656.                                 }>
  657.                             </SimpleTable>
  658.                         </div>
  659.                     } */}
  660.                 <div class="accordion" id="accordionExample">
  661.  
  662.  
  663.                     <div class="card">
  664.                         <div class="card-header" id="headingOne">
  665.                             <h5 class="mb-0">
  666.                                 <button class="btn btn-link" type="button" width="100" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"
  667.                                     onClick={() => this.setState({ mostraGrafico: !this.state.mostraGrafico })}>
  668.                                     GRÁFICO
  669.                                     </button>
  670.                             </h5>
  671.                         </div>
  672.                         <div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
  673.                             <div class="card-body">
  674.                                 <div className="row">
  675.                                     {!modalRelatorio && this.state.mostraGrafico &&
  676.                                         <div className="row">
  677.                                             {!modalTelaGrafico && this.state.mostraGrafico &&
  678.                                                 <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  679.  
  680.                                                 </div>
  681.                                             }
  682.                                         </div>
  683.                                     }
  684.                                 </div>
  685.                             </div>
  686.                         </div>
  687.                     </div>
  688.  
  689.                     <div class="card">
  690.                         <div class="card-header" id="headingTwo">
  691.                             <h5 class="mb-0">
  692.                                 <button class="collapse show" type="button" width="100" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"
  693.                                     onClick={() => this.setState({ mostraRelatorio: !this.state.mostraRelatorio })}>
  694.                                     RELATÓRIO
  695.                                     </button>
  696.                             </h5>
  697.                         </div>
  698.                         <div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
  699.                             <div class="card-body">
  700.                                 <div className="row">
  701.                                     {!modalRelatorio && this.state.mostraRelatorio &&
  702.                                         <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  703.                                             <SimpleTable
  704.                                                 field=''
  705.                                                 head={['Comportamento', 'Feedback', 'Auto Avaliação', 'Superior']}
  706.                                                 alias={['', '', '', '']}
  707.                                                 rows={25}
  708.                                                 onClick={obj =>
  709.                                                     this.visualizaFeedback(obj)
  710.                                                 }>
  711.                                             </SimpleTable>
  712.                                         </div>
  713.                                     }
  714.                                 </div>
  715.                             </div>
  716.                         </div>
  717.                     </div>
  718.  
  719.                     <div class="card">
  720.                         <div class="card-header" id="headingThree">
  721.                             <h5 class="mb-0">
  722.                                 <button class="collapse show" type="button" width="100" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"
  723.                                     onClick={() => this.setState({ mostraQuestoes: !this.state.mostraQuestoes })}>
  724.                                     QUESTÕES DO FEEDBACK
  725.                                     </button>
  726.                             </h5>
  727.                         </div>
  728.                         <div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
  729.                             <div class="card-body">
  730.                                 <div className='row'>
  731.                                     {!modalQuestoes && this.state.mostraQuestoes &&
  732.                                         <div className="row">
  733.                                             <br />
  734.                                             <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  735.                                                 <div className='col-lg-2 col-md-2 col-sm-2 col-xs-2'>
  736.                                                     <label for="primeira">Quais foram as principais contribuições do avaliado no período?</label>
  737.                                                 </div>
  738.                                                 <div className="col-lg-10 col-md-10 col-sm-10 col-sx-10 ">
  739.                                                     <TextArea field="primeira"></TextArea>
  740.                                                 </div>
  741.                                             </div>
  742.  
  743.                                             <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  744.                                                 <div className='col-lg-2 col-md-2 col-sm-2 col-xs-2'>
  745.                                                     <label for="segunda">Quais os pontos fortes de destaque do avaliado?</label>
  746.                                                 </div>
  747.                                                 <div className="col-lg-10 col-md-10 col-sm-10 col-sx-10 ">
  748.                                                     <TextArea field="segunda"></TextArea>
  749.                                                 </div>
  750.                                             </div>
  751.                                             <br />
  752.  
  753.                                             <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  754.                                                 <div className='col-lg-2 col-md-2 col-sm-2 col-xs-2'>
  755.                                                     <label for="terceira">Quais as dificuldades e os aspectos de melhoria avaliado?</label>
  756.                                                 </div>
  757.                                                 <div className="col-lg-10 col-md-10 col-sm-10 col-sx-10 ">
  758.                                                     <TextArea field="terceira"></TextArea>
  759.                                                 </div>
  760.                                             </div>
  761.                                             <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  762.                                                 <button className='btn btn-primary' onClick={this.cadastraNovoGrupo}>Salvar</button>
  763.                                             </div>
  764.                                         </div>
  765.                                     }
  766.                                 </div>
  767.                             </div>
  768.                         </div>
  769.                     </div>
  770.  
  771.                     <div className="card">
  772.                         <div className="card-header" id="headingFor">
  773.                             <h5 className="mb-0">
  774.                                 <button className="collapse show" type="button" width="100" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"
  775.                                     onClick={() => this.setState({ mostraPlanoDesenvolvimento: !this.state.mostraPlanoDesenvolvimento })}>
  776.                                     PLANO DE DESENVOLVIMENTO
  777.                                     </button>
  778.                             </h5>
  779.                         </div>
  780.                         <div id="collapseOne" className="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
  781.                             <div class="card-body">
  782.                                 <div className="row">
  783.                                     {!modalPlanoDesenvolvimento && this.state.mostraPlanoDesenvolvimento &&
  784.                                         <div className="col-lg-12 col-md-12 col-sm-12 col-sx-12 padding-bottom-md">
  785.                                             <br />
  786.                                             <SimpleTable
  787.                                                 field=''
  788.                                                 head={['Ação', 'Início', 'Fim', 'Descrição']}
  789.                                                 alias={['', '', '', '']}
  790.                                                 rows={25}
  791.                                                 onClick={obj =>
  792.                                                     this.visualizaFeedback(obj)
  793.                                                 }>
  794.                                             </SimpleTable>
  795.                                         </div>
  796.                                     }
  797.                                 </div>
  798.                             </div>
  799.                         </div>
  800.                     </div>
  801.                 </div>
  802.                 {/* </div> */}
  803.             </Programa>
  804.         )
  805.     }
  806. }
  807. export default passFields(RelatorioAnaliseFeedback);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement