我有一個時間戳列在我的SQL服務器表中的一個維護行版本, ,但我不知道如何顯示其劍橋網格上的值, 這是必需的因爲我的實體不會更新該列中具有空值的記錄,通過在網格上顯示時間戳值,我將在更新記錄時將其取回。 這是我的劍道電網架構如何在劍道網格Java腳本中顯示Sql Server時間戳列
schema: {
errors: function(response) {
if (response.Voucher && response.Voucher !== "True") {
return response.Voucher;
}
return false;
},
data: "data",
total: "total",
model: {
id: "ID",
fields: {
ID: { editable: false, nullable: true },
FK_Category_ID: { defaultValue: -1, validation: { required: { message: "" } } },
CompanynameAr: { type: "string", validation: { required: { message: " " } } },
CompanynameEn: { type: "string" },
FK_Country_ID: { defaultValue: -1, validation: { required: { message: "" } } },
Address: { type: "string", validation: { required: { message: "" } } },
PoBox: { type: "string" },
Contractno: { type: "number", validation: { required: { message: "" },min:0 } },
Refrence: { type: "number",validation:{min:0}},
RemarksMarketing: { type: "string" },
Active: { type: "string" },
Latitude: { type: "string" },
Longitude: { type: "string" },
RowVersion: {
type: "date", parse: function (value) {
return new Date(value * 1000);
}
}
//Address
}
}
}
這裏RowVersion是我的專欄持有時間戳值,分析功能,只需點擊,並嘗試解決特定的問題,但不會SUCESSFUL。需要幫助
什麼是數據類型?因爲我必須在控制器的操作上收到這個值。 –