Atualizando o formulário de cadastro de empresas/clientes
This commit is contained in:
parent
049e59bd82
commit
c03d19df9c
1 changed files with 6 additions and 6 deletions
12
vendor/view/companies/companies_form.php
vendored
12
vendor/view/companies/companies_form.php
vendored
|
|
@ -12,7 +12,7 @@ try{
|
|||
$Companies = new Companies();
|
||||
|
||||
/** Parametros de entrada */
|
||||
$CompaniesId = isset($_POST['companies_id']) ? $Main->antiInjection($_POST['companies_id']) : 0;
|
||||
$CompaniesId = isset($_POST['company_id']) ? $Main->antiInjection($_POST['company_id']) : 0;
|
||||
|
||||
/** Verifica se o ID do projeto foi informado */
|
||||
if($CompaniesId > 0){
|
||||
|
|
@ -270,12 +270,12 @@ try{
|
|||
<input type="hidden" name="TABLE" value="clients" />
|
||||
<input type="hidden" name="ACTION" value="clients_save" />
|
||||
<input type="hidden" name="FOLDER" value="action" />
|
||||
<input type="hidden" name="companies_id" value="<?php echo $ClientsResult->companies_id;?>" />
|
||||
<input type="hidden" name="company_id" value="<?php echo $ClientsResult->company_id;?>" />
|
||||
|
||||
<div class="col-sm-12">
|
||||
|
||||
<label for="btn-save"></label>
|
||||
<a href="#" class="btn btn-primary btn-user btn-block" id="btn-save" onclick="sendForm('#frmClients', '', true, '', 0, '', '<?php echo $ClientsResult->companies_id> 0 ? 'Atualizando cadastro' : 'Cadastrando novo cliente';?>', 'random', 'circle', 'sm', true)"><i class="far fa-save"></i> <?php echo ((int)$CompaniesId > 0 ? 'Salvar alterações do cliente' : 'Cadastrar novo cliente') ?></a>
|
||||
<a href="#" class="btn btn-primary btn-user btn-block" id="btn-save" onclick="sendForm('#frmClients', '', true, '', 0, '', '<?php echo $ClientsResult->company_id> 0 ? 'Atualizando cadastro' : 'Cadastrando novo cliente';?>', 'random', 'circle', 'sm', true)"><i class="far fa-save"></i> <?php echo ((int)$CompaniesId > 0 ? 'Salvar alterações do cliente' : 'Cadastrar novo cliente') ?></a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
|
@ -321,13 +321,13 @@ try{
|
|||
$('[data-toggle="tooltip"]').tooltip();
|
||||
|
||||
/** Carrega os produtos do cliente informado */
|
||||
request('FOLDER=view&TABLE=client_products&ACTION=client_products_datagrid&companies_id=<?php echo $ClientsResult->companies_id;?>', '', true, '', '', '#loadProducts', 'Carregando produtos...', 'blue', 'circle', 'sm', true);
|
||||
request('FOLDER=view&TABLE=client_products&ACTION=client_products_datagrid&company_id=<?php echo $ClientsResult->company_id;?>', '', true, '', '', '#loadProducts', 'Carregando produtos...', 'blue', 'circle', 'sm', true);
|
||||
|
||||
/** Carrega os documentos do cliente informado */
|
||||
request('FOLDER=view&TABLE=clients&ACTION=clients_documents_datagrid&companies_id=<?php echo $ClientsResult->companies_id;?>', '', true, '', '', '#loadDocuments', 'Carregando Documentos...', 'blue', 'circle', 'sm', true);
|
||||
request('FOLDER=view&TABLE=clients&ACTION=clients_documents_datagrid&company_id=<?php echo $ClientsResult->company_id;?>', '', true, '', '', '#loadDocuments', 'Carregando Documentos...', 'blue', 'circle', 'sm', true);
|
||||
|
||||
/** Carrega os documentos do cliente informado */
|
||||
request('FOLDER=view&TABLE=users&ACTION=users_datagrid&companies_id=<?php echo $ClientsResult->companies_id;?>', '', true, '', '', '#loadUsers', 'Carregando Usuários...', 'blue', 'circle', 'sm', true);
|
||||
request('FOLDER=view&TABLE=users&ACTION=users_datagrid&company_id=<?php echo $ClientsResult->company_id;?>', '', true, '', '', '#loadUsers', 'Carregando Usuários...', 'blue', 'circle', 'sm', true);
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue