daily pastebin goal
9%
SHARE
TWEET

folha3

a guest Jun 14th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @model folha2018.Models.Funcionario
  2.  
  3. @{
  4.     ViewBag.Title = "Cadastro de Funcionario";
  5. }
  6.  
  7. <div class="panel panel-info">
  8.     <div class="panel-heading">Cadastro de Funcionario </div>
  9.     <p></p>
  10.     @using (Html.BeginForm("Create", "Funcionario", FormMethod.Post, new { @class = "form-horizontal", @role = "form" }))
  11.     {
  12.  
  13.         @Html.ValidationSummary(true)
  14.  
  15.  
  16.         <div class="form-group">
  17.             <label for="INome" class="col-sm-2 control-label">Nome</label>
  18.             <div class="col-sm-3">
  19.                 <input type="text" class="form-control" placeholder="Nome" name="Nome" id="INome" required>
  20.             </div>
  21.         </div>
  22.         <p></p>
  23.  
  24.         <div class="form-group">
  25.             <label for="IMatricula" class="col-sm-2 control-label">MatrĂ­cula</label>
  26.             <div class="col-sm-3">
  27.                 <input type="text" class="form-control" placeholder="Matricula" name="Matricula" id="IMatricula" required>
  28.             </div>
  29.         </div>
  30.         <p></p>
  31.  
  32.         <div class="form-group">
  33.             <label for="ICtps" class="col-sm-2 control-label">CTPS</label>
  34.             <div class="col-sm-3">
  35.                 <input type="text" class="form-control" placeholder="Ctps" name="Numero" id="ICtps" required>
  36.             </div>
  37.         </div>
  38.         <p></p>
  39.         <div class="form-group">
  40.             <label for="IEndereco" class="col-sm-2 control-label">Endereco</label>
  41.             <div class="col-sm-3">
  42.                 <input type="text" class="form-control" placeholder="Endereco" name="Numero" id="IEndereco" required>
  43.             </div>
  44.         </div>
  45.         <p></p>
  46.  
  47.         <div class="form-group">
  48.             <label for="EmpresaId" class="col-sm-2 control-label">Empresa</label>
  49.             <div class="col-sm-3">
  50.                 @Html.DropDownListFor(model => model.Empresa.Id,
  51.                     folha2018.Daos.EmpresaDAO.BuscarTodos().Select(empresa => new SelectListItem { Text = empresa.RazaoSocial, Value = empresa.Id.ToString() }),
  52.                     "Escolha uma Empresa...", new { @class = "form-control", required = "required", id = "EmpresaId" }
  53.                     )
  54.             </div>
  55.         </div>
  56.         <div class="form-group">
  57.             <label for="DepartamentoId" class="col-sm-2 control-label">Departamento</label>
  58.             <div class="col-sm-3">
  59.                 @Html.DropDownListFor(model => model.Departamento.Id,
  60.                     folha2018.Daos.DepartamentoDAO.BuscarTodos().Select(departamento => new SelectListItem { Text = departamento.Descricao, Value = departamento.Id.ToString() }),
  61.                     "Escolha um Departamento...", new { @class = "form-control", required = "required", id = "DepartamentoId" }
  62.                     )
  63.             </div>
  64.         </div>
  65.         <div class="form-group">
  66.             <label for="CboId" class="col-sm-2 control-label">CBO</label>
  67.             <div class="col-sm-3">
  68.                 @Html.DropDownListFor(model => model.Cbo.Id,
  69.                     folha2018.Daos.CboDAO.BuscarTodos().Select(cbo => new SelectListItem { Text = cbo.Funcao, Value = cbo.Id.ToString() }),
  70.                     "Escolha um CBO...", new { @class = "form-control", required = "required", id = "CboId" }
  71.                     )
  72.             </div>
  73.         </div>
  74.         <p></p>
  75.         <div class="row">
  76.             <div class="col-md-4 col-md-offset-5">
  77.                 <div class="btn-group btn-group-sm">
  78.                     <button type="submit" class="btn btn-default">Salvar</button>
  79.                     <a href="@Url.Action("Index", "Funcionario")" class="btn btn-default btn-sm">Voltar</a>
  80.                 </div>
  81.             </div>
  82.         </div>
  83.         <p></p>
  84.     }
  85. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top