Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from malubsi/backendrefactoring
Primeira versão usável
- Loading branch information
Showing
31 changed files
with
878 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; | ||
|
||
import { AppModule } from './app.module'; | ||
import { AppModule } from "./app.module"; | ||
|
||
platformBrowserDynamic().bootstrapModule(AppModule); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export abstract class EntidadeAbstrata {} | ||
export abstract class EntidadeAbstrata { | ||
abstract id: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ComponentFixture, async } from '@angular/core/testing'; | ||
import { TestUtils } from '../../test'; | ||
import { PageFormPrecos } from './main'; | ||
|
||
let fixture: ComponentFixture<PageFormPrecos> = null; | ||
let instance: any = null; | ||
|
||
declare var describe: any; | ||
declare var it: any; | ||
declare var expect: any; | ||
declare var beforeEach: any; | ||
|
||
describe('Pages: Forms: Precos', () => { | ||
beforeEach(async(() => TestUtils.beforeEachCompiler([PageFormPrecos]).then(compiled => { | ||
fixture = compiled.fixture; | ||
instance = compiled.instance; | ||
}))); | ||
|
||
it('should create the page', async(() => { | ||
expect(instance).toBeTruthy(); | ||
})); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Component } from '@angular/core'; | ||
import { NavController } from 'ionic-angular'; | ||
import { NavParams } from 'ionic-angular'; | ||
import { ToastController } from 'ionic-angular'; | ||
import { PageForm } from '../generico_form/main'; | ||
import { Consulta } from '../../entities/Consulta'; | ||
|
||
@Component({ | ||
selector: 'page-form', | ||
templateUrl: '../generico_form/main.html' | ||
}) | ||
export class PageFormPrecos extends PageForm<Consulta> { | ||
constructor( | ||
public navCtrl: NavController, | ||
public navParams: NavParams, | ||
public toastCtrl: ToastController, | ||
){ | ||
super(navCtrl, navParams, toastCtrl); | ||
console.log(this.editing) | ||
this.postSuper(); | ||
} | ||
public textOption(field: string, item: any): string{ return ''; }; | ||
public titulo: string = "preço"; | ||
public fields: object[] = [ | ||
{ | ||
type: 'number', | ||
label: 'Preco unitário', | ||
entity: 'preco', | ||
verifywith: 'gtz' | ||
}, | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ComponentFixture, async } from '@angular/core/testing'; | ||
import { TestUtils } from '../../test'; | ||
import { PageListaPrecos } from './main'; | ||
|
||
let fixture: ComponentFixture<PageListaPrecos> = null; | ||
let instance: any = null; | ||
|
||
declare var describe: any; | ||
declare var it: any; | ||
declare var expect: any; | ||
declare var beforeEach: any; | ||
|
||
describe('Pages: Listas: Precos', () => { | ||
beforeEach(async(() => TestUtils.beforeEachCompiler([PageListaPrecos]).then(compiled => { | ||
fixture = compiled.fixture; | ||
instance = compiled.instance; | ||
}))); | ||
|
||
it('should create the page', async(() => { | ||
expect(instance).toBeTruthy(); | ||
})); | ||
}); |
Oops, something went wrong.