or
public
ActionResult Index()
{
IList<CzasPracyMaszyn> CzasPracyMaszyn = _repository.GetCzasPracyMaszyn();
return
View(CzasPracyMaszyn);
}
public
class
CzasPracyMaszyn
{
public
virtual
int
ID {
get
;
set
; }
public
virtual
string
STANOWISKO {
get
;
set
; }
public
virtual
int
CZASPRACY {
get
;
set
; }
}
@model IEnumerable<CMMS_Aplixcom_alfa.Models.CzasPracyMaszyn>
@(Html.Kendo().Chart(Model)
.Name("aa")
.Title("aaa")
.Series(series => {
series.Column(model => model.CZASPRACY).Name("Czas Pracy");
})
.CategoryAxis(axis => axis
.Categories(model => model.STANOWISKO)
)
)
@model AssetPoint.TabWare.Central.Query.QueryInfo
<
form
action
=
"@Url.Action("
Save", "Calendario")"
method
=
"post"
data-as-ajax
=
"edit-appointment"
>
<
input
type
=
"hidden"
name
=
"ID"
value
=
"@Model.ID"
/>
<
div
class
=
"row"
>
<
label
for
=
"FechaInicio"
>Fecha Inicio</
label
>
@Html.Kendo().DatePicker().Name("FechaInicio").Value(Model.FechaInicio)
</
div
>
<
div
class
=
"row"
>
<
label
for
=
"Asunto"
>Asunto</
label
>
<
textarea
name
=
"Asunto"
>@Model.Asunto</
textarea
>
</
div
>
<
div
class
=
"row"
>
<
label
for
=
"Observaciones"
>Observaciones</
label
>
<
textarea
name
=
"Observaciones"
>@Model.Observaciones</
textarea
>
</
div
>
<
input
type
=
"submit"
value
=
"Guardar"
/>
</
form
>
var viewModel = kendo.observable {
Cart : [],
Items : [
{
Id : "item/10",
Name: "CD ROM"
},
{
Id : "item/11",
Name: "DVD ROM"
}
};
<
script
id
=
"products-template"
type
=
"text/x-kendo-template"
>
<
li
class
=
"draggable"
>
<
div
data-bind
=
"text: Name"
></
div
>
</
li
>
</
script
>
<
div
id
=
"shopping-items-available"
>
<
ul
data-template
=
"products-template"
data-bind
=
"source: Items"
>
</
ul
>
</
div
>
<
div
id
=
"droptarget"
>Start dragging.</
div
>
#droptarget {
border: 1px solid #959595;
height: 198px;
width: 300px;
font-size: 36px;
border-radius: 37px;
text-align: center;
line-height: 198px;
color: #a1a1a1;
text-shadow: 0 1px 1px #fff;
margin: 0 0 30px 220px;
cursor: default;
background: #dddddd;
background: -moz-linear-gradient(top, #dddddd 0%, #c1c1c1 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dddddd), color-stop(100%,#c1c1c1));
background: -webkit-linear-gradient(top, #dddddd 0%,#c1c1c1 100%);
background: -o-linear-gradient(top, #dddddd 0%,#c1c1c1 100%);
background: -ms-linear-gradient(top, #dddddd 0%,#c1c1c1 100%);
background: linear-gradient(top, #dddddd 0%,#c1c1c1 100%);
}
$("body").kendoDraggable({
hint: function (target) {
return $(target).clone().addClass("draggable");
},
filter: ".draggable"
});
$("#droptarget").kendoDropTarget({
drop: droptargetOnDrop
});
function droptargetOnDrop(e) {
console.log(e);
$("#droptarget").text("You did great!");
$(".draggable").removeClass("hollow");
}