This file contains hidden or 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
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:minHeight="60dp" | |
| android:orientation="horizontal" | |
| android:padding="5dip"> | |
| <TextView android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:text="dd/MM/yyyy" |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <TableLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent"> | |
| <ListView android:layout_width="match_parent" | |
| android:layout_height="450dp" | |
| android:id="@+id/list_view"/> | |
| <RelativeLayout | |
| android:layout_width="match_parent" |
This file contains hidden or 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
| public static Date doParse(String toParse) { | |
| SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd/MM/yyyy"); | |
| try { | |
| return simpleDateFormat.parse(toParse); | |
| } catch (ParseException e) { | |
| e.printStackTrace(); | |
| } | |
| return null; |
This file contains hidden or 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
| private String parse(int pos){ | |
| Calendar data = vendas.get(pos).getData(); | |
| return String.format("%s/%s/%s", | |
| data.get(Calendar.DAY_OF_MONTH), | |
| data.get(Calendar.MONTH), | |
| data.get(Calendar.YEAR)); | |
| } |
This file contains hidden or 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
| public Collection<? extends GrantedAuthority> getAuthorities(Integer role) { | |
| List<GrantedAuthority> authList = getGrantedAuthorities(getRoles(role)); | |
| return authList; | |
| } | |
| public List<String> getRoles(Integer role) { | |
| List<String> roles = new ArrayList<String>(); | |
| if (role.intValue() == 1) { |
This file contains hidden or 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
| public void makeReport(){ | |
| try{ | |
| JasperReport jasperReport = JasperManager.compileReport("pathToJRXML"); | |
| Map params = new HashMap(); | |
| params.put("key",123); | |
| /**constroi o report | |
| *@param jasperReport o jrxml carregado |
This file contains hidden or 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
| $(window).keydown(function (event) { | |
| if (event.keyCode == 13) { | |
| event.preventDefault(); | |
| return false; | |
| } | |
| }); |
This file contains hidden or 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
| Repositoy --Injected--> ServiceImpl --Implements---> Service ---Injected--> Controller |
This file contains hidden or 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
| $(function() { | |
| $('.draggable').draggable({ | |
| containment : 'document', | |
| cursor : 'move', | |
| revert : "invalid" | |
| }); |
OlderNewer