-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bill.cshtml
115 lines (96 loc) · 3.71 KB
/
Bill.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
@model HomeManagementApplicationMain.Models.BillMaster
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<!-- <link href="~/Content/bootstrap.css" rel="stylesheet-->
<!-- <link href="~/lib/angular-bootstrap/ui-bootstrap-csp.css" rel="stylesheet" /> -->
<title>Add Bills</title>
</head>
<body>
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
@*<script src="~/lib/angular-bootstrap/ui-bootstrap.js"></script>
<script src="~/lib/angular-bootstrap/ui-bootstrap.min.js"></script>*@
<script src="~/lib/angular/angular.js"></script>
@*<script src="~/lib/bootstrap-ui-datetime-picker/bootstrap-ui-datetime-picker-tests.js"></script>*@
<script src="~/lib/bootstrap-ui-datetime-picker/dist/datetime-picker.js"></script>
<div>
@using (@Html.BeginForm())
{
<table>
<tr>
<td>
<div>
@Html.Label("Bill Type")
</div>
</td>
<td>
<div class="col-md-5">
@Html.DropDownList("DropDown", Model.BillList, "---Select---")
@* @Html.ValidationMessageFor(x => x.BillName, "", new { @class = "text-danger" })*@
</div>
</td>
</tr>
<tr>
<td>
<div>
@Html.Label("Bill Amount")
</div>
</td>
<td>
<div>
@Html.TextBox("Bill Amount")
</div>
</td>
</tr>
<tr>
<td>
<div>
@Html.Label("Store")
</div>
</td>
<td>
<div>
@Html.TextBox("Store")
</div>
</td>
</tr>
<tr>
<td>
@Html.Label("Bill Date")
</td>
<td>
<div class="input-group">
<input type="text" class="form-control" datetime-picker="dd MMM yyyy HH:mm" ng-model="myDate" is-open="isOpen" />
@*<span class="input-group-btn">
<button type="button" class="btn btn-default" ng-click="openCalendar($event, prop)"><i class="fa fa-calendar"></i></button>
</span>*@
</div>
</td>
</tr>
<tr>
<td>
<input type="submit" value="Save Bill" />
</td>
</tr>
</table>
}
<script type="text/javascript">
var app = angular.module('app', ['ui.bootstrap', 'ui.bootstrap.datetimepicker']);
app.controller('MyController', function () {
var that = this;
this.isOpen = false;
this.openCalendar = function (e) {
e.preventDefault();
e.stopPropagation();
that.isOpen = true;
};
})
</script>
</div>
</body>
</html>