Commit 92b1a50e authored by Phạm Duy Phi's avatar Phạm Duy Phi

no message

parent 392c9e18
HELP.md
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
/build/
### VS Code ###
.vscode/
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache Leave, Version 2.0 (the
"Leave"); you may not use this file except in compliance
with the Leave. You may obtain a copy of the Leave at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the Leave is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the Leave for the
specific language governing permissions and limitations
under the Leave.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
"https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
/**
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
".mvn/wrapper/maven-wrapper.properties";
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
".mvn/wrapper/maven-wrapper.jar";
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
public static void main(String args[]) {
System.out.println("- Downloader started");
File baseDirectory = new File(args[0]);
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists, read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
} catch (IOException e) {
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
} finally {
try {
if (mavenWrapperPropertyFileInputStream != null) {
mavenWrapperPropertyFileInputStream.close();
}
} catch (IOException e) {
// Ignore ...
}
}
}
System.out.println("- Downloading from: : " + url);
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
if (!outputFile.getParentFile().exists()) {
if (!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
try {
downloadFileFromURL(url, outputFile);
System.out.println("Done");
System.exit(0);
} catch (Throwable e) {
System.out.println("- Error downloading");
e.printStackTrace();
System.exit(1);
}
}
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
URL website = new URL(urlString);
ReadableByteChannel rbc;
rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destination);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
rbc.close();
}
}
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
2019-06-10 10:27:20 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-12 23:53:58 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-12 23:55:38 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-12 23:56:35 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-12 23:56:51 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-13 00:04:52 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-13 00:06:11 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-13 09:21:21 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-13 09:21:35 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-13 11:27:55 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-13 11:28:21 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-13 11:28:42 INFO EmployeeController:106 - Rest request to get a page of Employee
2019-06-16 16:59:24 INFO ProjectGroupBussinessImpl:58 - saveEmployeeProject
2019-06-16 16:59:41 INFO ProjectGroupBussinessImpl:58 - saveEmployeeProject
2019-06-16 16:59:41 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 16:59:41 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 16:59:52 INFO ProjectGroupBussinessImpl:88 - updateEmployeeProject
2019-06-16 16:59:52 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 16:59:52 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 16:59:55 INFO ProjectGroupBussinessImpl:122 - deleteEmployeeProject
2019-06-16 16:59:55 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 16:59:55 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:00:05 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:00:05 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:01:57 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:01:57 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:06:16 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:06:16 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:06:23 INFO ProjectGroupBussinessImpl:113 - Lỗi update EProject null
2019-06-16 17:06:24 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:06:24 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:06:25 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:06:25 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:14:49 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:14:49 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:14:58 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:14:58 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:15:11 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:15:11 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:15:32 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:15:32 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:16:49 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:16:49 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:17:59 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:17:59 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:26:27 INFO ProjectBussinessImpl:110 - deleteProjectById
2019-06-16 17:48:52 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:48:52 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:54:10 INFO ProjectBussinessImpl:56 - Lỗi updatecould not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement
2019-06-16 17:54:43 INFO ProjectBussinessImpl:110 - deleteProjectById
2019-06-16 17:55:09 INFO ProjectBussinessImpl:56 - Lỗi updatecould not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement
2019-06-16 17:57:09 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:57:09 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 17:57:16 INFO ProjectBussinessImpl:110 - deleteProjectById
2019-06-16 18:00:43 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:00:43 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:02:39 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:02:39 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:02:42 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:02:42 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:03:12 INFO ProjectGroupBussinessImpl:58 - saveEmployeeProject
2019-06-16 18:03:13 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:03:13 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:03:21 INFO ProjectGroupBussinessImpl:88 - updateEmployeeProject
2019-06-16 18:03:21 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:03:21 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:08:24 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:08:24 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:08:27 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:08:35 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:08:53 INFO ProjectGroupBussinessImpl:88 - updateEmployeeProject
2019-06-16 18:08:53 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:13:03 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:13:13 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:13:37 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:15:46 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:16:56 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-16 18:17:19 INFO ProjectGroupBussinessImpl:58 - saveEmployeeProject
2019-06-16 18:17:39 INFO ProjectGroupBussinessImpl:58 - saveEmployeeProject
2019-06-16 18:17:39 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:11:47 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:12:05 INFO ProjectGroupBussinessImpl:58 - saveEmployeeProject
2019-06-17 12:12:05 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:12:14 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:16:58 INFO ProjectBussinessImpl:56 - Lỗi updatecould not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement
2019-06-17 12:17:32 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:19:21 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:19:41 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:19:55 INFO ProjectGroupBussinessImpl:58 - saveEmployeeProject
2019-06-17 12:19:56 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:20:09 INFO ProjectGroupBussinessImpl:58 - saveEmployeeProject
2019-06-17 12:20:09 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:20:19 INFO ProjectGroupBussinessImpl:58 - saveEmployeeProject
2019-06-17 12:20:33 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:20:44 INFO ProjectGroupBussinessImpl:88 - updateEmployeeProject
2019-06-17 12:20:44 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:20:47 INFO ProjectGroupBussinessImpl:122 - deleteEmployeeProject
2019-06-17 12:20:47 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:20:59 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:21:47 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:22:41 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:22:45 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:22:49 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:22:56 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:23:10 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:23:20 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:45:19 INFO ProjectBussinessImpl:110 - deleteProjectById
2019-06-17 12:45:22 INFO ProjectBussinessImpl:110 - deleteProjectById
2019-06-17 12:45:23 INFO ProjectBussinessImpl:110 - deleteProjectById
2019-06-17 12:45:25 INFO ProjectBussinessImpl:110 - deleteProjectById
2019-06-17 12:45:26 INFO ProjectBussinessImpl:110 - deleteProjectById
2019-06-17 12:45:28 INFO ProjectBussinessImpl:110 - deleteProjectById
2019-06-17 12:50:50 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 12:50:52 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 13:09:19 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
2019-06-17 13:09:31 INFO ProjectGroupBussinessImpl:58 - saveEmployeeProject
2019-06-17 13:10:06 INFO ProjectGroupBussinessImpl:58 - saveEmployeeProject
2019-06-17 13:10:07 INFO ProjectGroupBussinessImpl:36 - getGroupByProjectId
# QLNS_N01
dự án quản lý nhân sự trong mock1 của nhóm 01
\ No newline at end of file
Manifest-Version: 1.0
Implementation-Title: quantrivanphong
Implementation-Version: 1.0
Built-By: damdt
Implementation-Vendor-Id: com.itsol
Created-By: IntelliJ IDEA
Build-Jdk: 1.8.0_181
Main-Class: ${start-class}
<!-- Sticky Footer -->
<footer class="sticky-footer">
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span>PS: Phung Van Dung</span>
</div>
</div>
</footer>
\ No newline at end of file
<div id="wrapper">
<!-- Sidebar -->
<ul class="sidebar navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="pagesDropdown" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<i class="fas fa-fw fa-folder"></i>
<span>Quản Trị Văn Phòng</span>
</a>
<div class="dropdown-menu" aria-labelledby="pagesDropdown">
<h6 class="dropdown-header">Quản Trị</h6>
<a class="dropdown-item" data-ng-href="/project/danh-sach-tat-ca-du-an.html">Dự Án</a>
<a class="dropdown-item" href="#">Nhân Viên</a>
<a class="dropdown-item" href="#">Báo Cáo</a>
<a class="dropdown-item" href="#">Tin Tức</a>
<div class="dropdown-divider">aaa</div>
<h6 class="dropdown-header">Báo Cáo</h6>
<a class="dropdown-item" href="#">Xin Phép</a>
<a class="dropdown-item" href="#">Time Sheet</a>
<a class="dropdown-item" href="#">Quản lý Issuses</a>
</div>
</li>
</ul>
</div>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
.blue-button {
background: #25A6E1;
padding: 3px 5px;
color: #fff;
font-family: 'Helvetica Neue', sans-serif;
font-size: 12px;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 4px;
border: 1px solid #1A87B9
}
.red-button {
background: #CD5C5C;
padding: 3px 5px;
color: #fff;
font-family: 'Helvetica Neue', sans-serif;
font-size: 12px;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 4px;
border: 1px solid #CD5C5C
}
table {
font-family: "Helvetica Neue", Helvetica, sans-serif;
width: 50%;
}
caption {
text-align: left;
color: silver;
font-weight: bold;
text-transform: uppercase;
padding: 5px;
}
th {
background: SteelBlue;
color: white;
}
tbody tr:nth-child(even) {
background: WhiteSmoke;
}
tbody tr td:nth-child(2) {
text-align: center;
}
tbody tr td:nth-child(3), tbody tr td:nth-child(4) {
text-align: center;
font-family: monospace;
}
tfoot {
background: SeaGreen;
color: white;
text-align: right;
}
tfoot tr th:last-child {
font-family: monospace;
}
td, th {
border: 1px solid gray;
width: 25%;
text-align: left;
padding: 5px 10px;
}
\ No newline at end of file
<!DOCTYPE HTML>
<html>
<head>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css'/>
<!-- Custom Theme files -->
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700" rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" type='text/css'>
<link href="css/style.css" rel='stylesheet' type='text/css'/>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/angular.js"></script>
<script src="js/app.js"></script>
<script src="js/angular-route.js"></script>
<script src="js/angular-ui-router.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<script src="pages/employee/js/app.js"></script>
<script src="pages/employee/js/employeeController.js"></script>
</head>
<body ng-app="myApp">
<h1>Trang chủ</h1>
<h2>Menu</h2>
<!--Phần content-->
<div ui-view>
</div>
</body>
</html>
\ No newline at end of file
/**
*
*/
angular.module("myApp", ["ui.router"]).config(function($stateProvider, $urlRouterProvider,$locationProvider) {
$locationProvider.hashPrefix('');
$urlRouterProvider.otherwise("/index");
$stateProvider
//index layout riêng
.state("index", {
url: "/index",
views:{
"index":{
templateUrl: "pages/index/index.htm",
controller: "indexController"
},
"banner":{
templateUrl: "pages/index/banner.htm"
}
}
})
// State chứa layout chung cho các trang
.state('app', {
abstract: true,
views: {
'main_layout': {
templateUrl: 'main_layout.html',
}
}
})
// Các state bên dưới kế thừa state app
.state("tintuc", { // Khai báo một state
parent: 'app',
url: "/tintuc", // URL hiển thị
views:{
"content":{
templateUrl: "pages/tintuc/tintuc.htm",
controller: "tintucController" // khai báo controller
}
}
})
.state("tuyendung", {
parent: 'app',
url: "/tuyendung",
views:{
"content":{
templateUrl: "pages/tuyendung/tuyendung.htm",
controller: "tuyendungController"
}
}
})
// .state("lienhe", {
// parent: 'app',
// url: "/lienhe",
// views:{
// "content":{
// templateUrl: "pages/lienhe/lienhe.htm",
// controller: "lienheController"
// }
// }
// })
.state("gioithieu", {
parent: 'app',
url: "/gioithieu",
views:{
"content":{
templateUrl: "pages/gioithieu/gioithieu.htm",
controller: "gioithieuController"
}
}
})
});
\ No newline at end of file
var myApp = angular.module('myApp',['ui.router']);
myApp.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/home');
$stateProvider
.state('home', {
url: '/home',
templateUrl: 'pages/employee/html/welcome.html',
controller:'employeeController'
});
});
myApp.directive('ngConfirmClick', [ function() {
return {
link : function(scope, element, attr) {
var msg = attr.ngConfirmClick || "Are you sure?";
var clickAction = attr.confirmedClick;
element.bind('click', function(event) {
if (window.confirm(msg)) {
scope.$eval(clickAction)
}
});
}
};
} ])
(function(factory){if(typeof define==="function"&&define.amd){define(["static/admin/js/jquery"],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){exports=factory(require("static/admin/js/jquery"))}else{factory(jQuery)}})(function($){$.easing.jswing=$.easing.swing;var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*PI/3,c5=2*PI/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;if(x<1/d1){return n1*x*x}else if(x<2/d1){return n1*(x-=1.5/d1)*x+.75}else if(x<2.5/d1){return n1*(x-=2.25/d1)*x+.9375}else{return n1*(x-=2.625/d1)*x+.984375}}$.extend($.easing,{def:"easeOutQuad",swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return x===0?0:pow(2,10*x-10)},easeOutExpo:function(x){return x===1?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return x===0?0:x===1?1:x<.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return x===0?0:x===1?1:-pow(2,10*x-10)*sin((x*10-10.75)*c4)},easeOutElastic:function(x){return x===0?0:x===1?1:pow(2,-10*x)*sin((x*10-.75)*c4)+1},easeInOutElastic:function(x){return x===0?0:x===1?1:x<.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return c3*x*x*x-c1*x*x},easeOutBack:function(x){return 1+c3*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<.5?pow(2*x,2)*((c2+1)*2*x-c2)/2:(pow(2*x-2,2)*((c2+1)*(x*2-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}})});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/Router
angular.module('ProjectApiModule', ['ui.router', 'ngResource', 'ProjectApiModule.controllers', 'ProjectApiModule.services']).config(function($stateProvider) {
$stateProvider.state('project.State', {
url: '/list-project',
templateUrl: 'project/projectListViews.html',
controller: 'carCtrlr'
}).state('showCar', {
url: '/:Id1',
templateUrl: 'car-detail.html',
controller: 'carDetailCtrl'
}).state('newCar', {
url: '/new',
templateUrl: 'car-create.html',
controller: 'carCreateController'
}).state('editCar', {
url: '/edit/:Id2',
templateUrl: 'car-edit.html',
controller: 'carEditCtrl'
});
}).run(function($state) {
$state.go('project.State');
});
\ No newline at end of file
var app = angular.module('ProjectApiModule', []);
app.controller('showProject',showProject);
app.controller('insertProject',insertProject);
// controlers tạo Get API
function showProject($scope, $http){
$http.get("http://localhost:8081/quan-tri/danh-sach-du-an").then(successCallback, errorCallback);
function successCallback(response){
//success code
console.log(response.data);
{$scope.listProject = response.data}
}
function errorCallback(error){
//error code
console.log("can't get data!!");
}
};
// tạo controllers insert APT
function insertProject($scope, $http) {
$scope.insert_project = function () {
$http({
//khai báo type
method: 'POST',
//đường dẫn API
url: 'http://localhost:8081/quan-tri/them-du-an',
//truyền dữ liệu nhập trên cline vào data
data: angular.toJson($scope.lstProject),
//kiểu dữ liệu API
headers: {
'Content-Type': 'application/json'
}
// kết quả trả về (THEN)
}).then(successCallback,errorCallback);
//tạo funtion nếu thành công!
function successCallback(response){
$window.location.href = 'http://localhost:8081/#!/';
}
//tạo funtion kiểm tra nếu thất bại
function errorCallback(error){
//error code
console.log("can't insert data!!");
}
}
};
//tạo service lấy id của đường dẫn
angular.module('ProjectApiModule.Services', []).factory('Car', function($resource) {
return $resource('http://localhost/car-management/api-web-car/get/:id', { id: '@myCarId' }, {
update: {
method: 'PUT'
}
});
});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment