3月21
var grid = $("#grid").kendoGrid({
dataSource: dataSource,
resizable: true,
scrollable: true,
navigatable: false,
rownumber: true,
selectable: 'multiple, rowbox',
dataBound: function () {
if (parent.autoResizeIframe) {
parent.autoResizeIframe('${RequestParameters.functionCode!}')
}
},
columns: [
{
field: "name",
title: '<@spring.message "物料名称"/>',
width: 80
},
{
field: "spc",
title: '<@spring.message "规格"/>',
width: 80
},
{
field: "num",
title: '<@spring.message "计划量"/>',
width: 60,
required: true
},
{
field: "unitCode",
title: '<@spring.message "单位"/>',
width: 60
},
{
field: "prdNoSup",
title: '<@spring.message "货号"/>',
width: 80
},
{
field: "planMoney",
title: "计划单价",
width: 80,
format: "{0:c}",
},
{
field: "startingPrice",
title: "起拍价",
width: 80,
format: "{0:c}",
},
{
field: "minPriceCut",
title: "最低降价幅度",
width: 120,
format: "{0:c}",
},
{
field: "productId",
title: '<@spring.message "ERP物料名称"/>',
width: 80,
hidden: true,
},
{
field: "purcNo",
title: 'ERP物料编码',
width: 120,
editor: function (container, options) {
$('<input name="' + options.field + '"/>')
.appendTo(container)
.kendoLov($.extend(<@lov"LOV_SELECT_PRODUCT"/>, {
textField: 'prdNo',
model: options.model,
select: function (e) {
options.model.set('purcNo', e.item.prdNo)
options.model.set('productId', e.item.productId)
options.model.set('proName', e.item.name)
options.model.set('proUnitCode', e.item.unitCode)
options.model.set('currentMoney', e.item.currentMoney)
}
}
));
}
},
{
field: "proName",
title: '<@spring.message "ERP物料名称"/>',
width: 100
},
{
field: "proUnitCode",
title: '<@spring.message "ERP主单位"/>',
width: 120
},
{
field: "currentMoney",
title: '<@spring.message "最新价格"/>',
width: 80
},
],
editable: true
}).data('kendoGrid');
以下是获取当前选中行的方法,在网上找了很多个都不管用,还是使用以下方法新测可用
var grid =$("#grid").data('kendoGrid');
var items = grid.selectedDataItems();
dataSource: dataSource,
resizable: true,
scrollable: true,
navigatable: false,
rownumber: true,
selectable: 'multiple, rowbox',
dataBound: function () {
if (parent.autoResizeIframe) {
parent.autoResizeIframe('${RequestParameters.functionCode!}')
}
},
columns: [
{
field: "name",
title: '<@spring.message "物料名称"/>',
width: 80
},
{
field: "spc",
title: '<@spring.message "规格"/>',
width: 80
},
{
field: "num",
title: '<@spring.message "计划量"/>',
width: 60,
required: true
},
{
field: "unitCode",
title: '<@spring.message "单位"/>',
width: 60
},
{
field: "prdNoSup",
title: '<@spring.message "货号"/>',
width: 80
},
{
field: "planMoney",
title: "计划单价",
width: 80,
format: "{0:c}",
},
{
field: "startingPrice",
title: "起拍价",
width: 80,
format: "{0:c}",
},
{
field: "minPriceCut",
title: "最低降价幅度",
width: 120,
format: "{0:c}",
},
{
field: "productId",
title: '<@spring.message "ERP物料名称"/>',
width: 80,
hidden: true,
},
{
field: "purcNo",
title: 'ERP物料编码',
width: 120,
editor: function (container, options) {
$('<input name="' + options.field + '"/>')
.appendTo(container)
.kendoLov($.extend(<@lov"LOV_SELECT_PRODUCT"/>, {
textField: 'prdNo',
model: options.model,
select: function (e) {
options.model.set('purcNo', e.item.prdNo)
options.model.set('productId', e.item.productId)
options.model.set('proName', e.item.name)
options.model.set('proUnitCode', e.item.unitCode)
options.model.set('currentMoney', e.item.currentMoney)
}
}
));
}
},
{
field: "proName",
title: '<@spring.message "ERP物料名称"/>',
width: 100
},
{
field: "proUnitCode",
title: '<@spring.message "ERP主单位"/>',
width: 120
},
{
field: "currentMoney",
title: '<@spring.message "最新价格"/>',
width: 80
},
],
editable: true
}).data('kendoGrid');
以下是获取当前选中行的方法,在网上找了很多个都不管用,还是使用以下方法新测可用
var grid =$("#grid").data('kendoGrid');
var items = grid.selectedDataItems();
3月14
项目中的一些依赖由于需要手动添加,很多时候都会创建一个私服仓库,比如nexus,将第三方jar添加到私服中,然后在pom中引用。刚来公司接手一个3年前的一个项目,该项目之前下过依赖,这些依赖本地依旧存在,如今重新导入该项目,由于没了私服,于是删去私服地址后,执行mvn package后项目会重新到配置的仓库中找这些依赖下载。
此时会报错"was cached in the local repository..." 或者 " Could not resolve dependencies for project"
解决方法,找到该依赖本地资源库位置,删去_remote.repositories文件 和 xx.lastUpdated文件
此时会报错"was cached in the local repository..." 或者 " Could not resolve dependencies for project"
解决方法,找到该依赖本地资源库位置,删去_remote.repositories文件 和 xx.lastUpdated文件




