-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lanil Marasinghe
authored and
Lanil Marasinghe
committed
Jul 1, 2017
1 parent
e3ff955
commit 94c80f3
Showing
2,107 changed files
with
303,345 additions
and
26 deletions.
There are no files selected for viewing
Binary file not shown.
18 changes: 18 additions & 0 deletions
18
Microservices/SupplierService/Database Backup/departments.json
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,18 @@ | ||
{ | ||
"_id" : ObjectId("5954e86be1565c229876af92"), | ||
"id" : "w", | ||
"name" : "w", | ||
"__v" : NumberInt(0) | ||
} | ||
{ | ||
"_id" : ObjectId("5954ea4fe1565c229876af95"), | ||
"id" : "w", | ||
"name" : "w", | ||
"__v" : NumberInt(0) | ||
} | ||
{ | ||
"_id" : ObjectId("5954ec79997c7d0b80d88f7f"), | ||
"id" : "h", | ||
"name" : "h", | ||
"__v" : NumberInt(0) | ||
} |
20 changes: 20 additions & 0 deletions
20
Microservices/SupplierService/Database Backup/orderDetails.json
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,20 @@ | ||
{ | ||
"_id" : ObjectId("5956ecd6d8e33a194c513870"), | ||
"ID" : "01", | ||
"date" : "24th of June", | ||
"name" : "Sachin", | ||
"__v" : NumberInt(0) | ||
} | ||
{ | ||
"_id" : ObjectId("5956ee6cb1b38b4f97a79e36"), | ||
"ID" : "05", | ||
"date" : "24 th of June 2017", | ||
"name" : "Paracetemol", | ||
"suppliername" : "sachin", | ||
"suplierID" : "55C", | ||
"orderCatergory" : "Category 1", | ||
"containerA" : "Level 1 Box", | ||
"containerB" : "Level 2 Box", | ||
"containerC" : "Card", | ||
"orderstatus" : "Pending" | ||
} |
30 changes: 30 additions & 0 deletions
30
Microservices/SupplierService/Database Backup/suppliers.json
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,30 @@ | ||
{ | ||
"_id" : ObjectId("5954e872e1565c229876af93"), | ||
"supplierName" : "w", | ||
"email" : "w", | ||
"__v" : NumberInt(0) | ||
} | ||
{ | ||
"_id" : ObjectId("5956ff437ba72c247070c5d7"), | ||
"name" : "asoka", | ||
"email" : "Shantha", | ||
"address" : "123456789", | ||
"contact" : "0714467349", | ||
"__v" : NumberInt(0) | ||
} | ||
{ | ||
"_id" : ObjectId("595706317ba72c247070c5da"), | ||
"name" : "THILINI", | ||
"email" : "Herath", | ||
"address" : "44", | ||
"contact" : "7", | ||
"__v" : NumberInt(0) | ||
} | ||
{ | ||
"_id" : ObjectId("595758af05746b24f4f33cc7"), | ||
"name" : "movinda", | ||
"email" : "movinda@gmail.com", | ||
"address" : "5", | ||
"contact" : "0757358106", | ||
"__v" : NumberInt(0) | ||
} |
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,97 @@ | ||
<section class="content-header"> | ||
<h1> | ||
Order | ||
<small>Place Order For New Drugs</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="#"><i class="fa fa-home"></i> Home</a></li> | ||
<li><a href="#stock"><i class="fa fa-th"></i>Stock</a></li> | ||
<li><a href="#stock/D656561216"><i class="fa fa-flask"></i>Panadol</a></li> | ||
<li><a href="#stock/D656561216"><i class="fa fa-cart-plus"></i>Order</a></li> | ||
</ol> | ||
|
||
</section> | ||
|
||
<!-- Main content --> | ||
<section class="content"> | ||
<div class="row"> | ||
<div class="col-md-3"> | ||
|
||
<div class="box box-solid"> | ||
<div class="box-header with-border"> | ||
<h3 class="box-title">Order History</h3> | ||
|
||
<div class="box-tools"> | ||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="box-body no-padding"> | ||
<ul class="nav nav-pills nav-stacked"> | ||
<li> <li ng-repeat="data in orderdetails">{{data.ID}}-{{data.date}}-{{data.name}} | ||
</li> | ||
</ul> | ||
</div> | ||
<!-- /.box-body --> | ||
</div> | ||
<!-- /. box --> | ||
<div class="box box-solid"> | ||
<div class="box-header with-border"> | ||
<h3 class="box-title">Order Information</h3> | ||
|
||
<div class="box-tools"> | ||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i> | ||
</button> | ||
</div> | ||
</div> | ||
<!-- /.box-header --> | ||
<div class="box-body"> | ||
<ul class="nav nav-pills nav-stacked"> | ||
<div class="form-group"> | ||
<label>Order Quantity</label> | ||
<input type="text" class="form-control" placeholder="Enter Order Quantity"> | ||
</div> | ||
</ul> | ||
</div> | ||
<!-- /.box-body --> | ||
</div> | ||
<!-- /.box --> | ||
</div> | ||
<!-- /.col --> | ||
<div class="col-md-9"> | ||
<div class="box box-primary"> | ||
<div class="box-header with-border"> | ||
<h3 class="box-title">Compose New Message</h3> | ||
</div> | ||
<!-- /.box-header --> | ||
<div class="box-body"> | ||
<div class="form-group"> | ||
<input class="form-control" placeholder="To:"> | ||
</div> | ||
<div class="form-group"> | ||
<input class="form-control" placeholder="Subject:"> | ||
</div> | ||
<div class="form-group"> | ||
<textarea id="compose-textarea" class="form-control" style="height: 300px"> | ||
|
||
</textarea> | ||
</div> | ||
</div> | ||
<!-- /.box-body --> | ||
<div class="box-footer"> | ||
<div class="pull-right"> | ||
<button type="submit" class="btn btn-primary"><i class="fa fa-envelope-o"></i> Send</button> | ||
</div> | ||
<button type="reset" class="btn btn-default"><i class="fa fa-times"></i> Discard</button> | ||
</div> | ||
</div> | ||
<!-- /.box-footer --> | ||
</div> | ||
<!-- /. box --> | ||
</div> | ||
</div> | ||
|
||
<!-- /.col --> | ||
</div> | ||
<!-- /.row --> | ||
</section> |
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,48 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
|
||
|
||
app.controller("OrderStockController", function ($scope, $http) { | ||
|
||
|
||
$scope.orderdetails = []; | ||
$scope.details = []; | ||
|
||
$http.get("http://localhost:8090/orderdetails").then(function (response) { | ||
$scope.orderdetails = response.data; | ||
}); | ||
function refreshOrders() { | ||
$http.get("http://localhost:8090/orderdetails").then(function (response) { | ||
$scope.orderdetails = response.data; | ||
}); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
//Search for Order Details | ||
|
||
|
||
$scope.search = function (id) { | ||
|
||
|
||
// if (newUser.id != null && newUser.name != null) { | ||
// $http.get("http://localhost:8080/orderDetails" + id).then(function (response) { | ||
// $scope.details = response.data; | ||
// }); | ||
// } else { | ||
// alert("Inputs are not valid !"); | ||
// } | ||
|
||
|
||
|
||
} | ||
|
||
|
||
|
||
|
||
}); |
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,161 @@ | ||
|
||
<section class="content-header"> | ||
<h1> | ||
Supplier Chain Management | ||
<small>Information on suppliers of the systems</small> | ||
</h1> | ||
|
||
|
||
<ol class="breadcrumb"> | ||
<li><a href="#"><i class="fa fa-home"></i> Home</a></li> | ||
<li><a href="#stock"><i class="fa fa-suppliers"></i>Suppliers</a></li> | ||
</ol> | ||
</section> | ||
|
||
<!-- Main content --> | ||
<section class="content"> | ||
|
||
<div class="row"> | ||
<div class="col-md-8"> | ||
<div class="box"> | ||
<div class="box-header with-border"> | ||
<h3 class="box-title">Current Suppliers</h3> | ||
|
||
|
||
<div class="box-body"> | ||
<table id="example1" class="table table-bordered table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Supplier ID</th> | ||
<th>Company</th> | ||
<th>Address</th> | ||
<th>Email</th> | ||
<th>Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="sup in suppliers"> | ||
<td >{{sup.name}}</td> | ||
<td >{{sup.email}}</td> | ||
<td >{{sup.address}}</td> | ||
<td >{{sup.contact}}</td> | ||
<td> | ||
<!--<button class="btn btn-xs btn-info" ng-click="editUser(supplier.suppliername)"><i class="fa fa-pencil"></i> Edit</button>--> | ||
<button class="btn btn-xs btn-danger" ng-click="deleteSupplier(sup.name)"><i class="fa fa-close"></i> Remove</button> | ||
</td> | ||
</tbody> | ||
<tfoot> | ||
<tr> | ||
<th>Supplier ID</th> | ||
<th>Company</th> | ||
<th>Address</th> | ||
<th>Email</th> | ||
<th>Actions</th> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
</li> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- Default box --> | ||
<div class="col-md-4"> | ||
<div class="box"> | ||
<div class="box-header with-border"> | ||
<h3 class="box-title">Add New Supplier</h3> | ||
|
||
<div class="box-body"> | ||
<!-- form start --> | ||
<form > | ||
<div class="box-body"> | ||
<div class="form-group"> | ||
<label for="full_name">Supplier Name</label> | ||
<div> | ||
<input type="text" class="form-control" ng-model="supName" placeholder="Name">{{supName}} | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="email" class="control-label">Email</label> | ||
<div class=""> | ||
<input type="email" class="form-control"ng-model="supEmail" placeholder="Email"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password" class="control-label">Address</label> | ||
<div class=""> | ||
<input type="text" class="form-control" ng-model="supAddress" placeholder="Address"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password" class="control-label">Contact No.</label> | ||
<div class=""> | ||
<input type="text" class="form-control" ng-model="supContact" placeholder="Contact Number"> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<!-- /.box-body --> | ||
<div class="box-footer"> | ||
<button ng-click="neglect()" class="btn btn-default">Cancel</button> | ||
<button ng-click="addSupplier()" class="btn btn-primary pull-right">Submit</button> | ||
</div> | ||
|
||
<!-- /.box-footer --> | ||
</form> | ||
|
||
|
||
|
||
<form > | ||
<div class="box-body"> | ||
<div class="form-group"> | ||
<label for="full_name">Update Supplier</label></br> | ||
<label for="full_name">Name of Supplier</label> | ||
<div> | ||
<input type="text" class="form-control" ng-model="supName" placeholder="Old Name">{{supName}} | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password" class="control-label">Update Name</label> | ||
<div class=""> | ||
<input type="text" class="form-control" ng-model="supdName" placeholder="Update Name"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password" class="control-label">Email</label> | ||
<div class=""> | ||
<input type="text" class="form-control" ng-model="supEmail" placeholder="Update Email"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password" class="control-label">Address</label> | ||
<div class=""> | ||
<input type="text" class="form-control" ng-model="supAddress" placeholder="Update Address"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password" class="control-label">Contact No.</label> | ||
<div class=""> | ||
<input type="text" class="form-control" ng-model="supContact" placeholder="Update Contact No."> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<!-- /.box-body --> | ||
<div class="box-footer"> | ||
<button ng-click="neglect()" class="btn btn-default">Cancel</button> | ||
<button ng-click="updateSupplier(supName,supdName,supEmail,supAddress,supContact)" class="btn btn-primary pull-right">Submit</button> | ||
</div> | ||
|
||
<!-- /.box-footer --> | ||
</form> | ||
|
||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
Oops, something went wrong.