38 lines
1.0 KiB
JavaScript
38 lines
1.0 KiB
JavaScript
btnEdit2.onclick = function ()
|
|
{
|
|
btnEdit.click();
|
|
}
|
|
btnDel2.onclick = function () {
|
|
btnDel.click();
|
|
}
|
|
btnAddView.$Open("#divView", {
|
|
title: "创建类",
|
|
w: 600,
|
|
h: 350,
|
|
validate: function () {
|
|
var gridInfo = divGrid.$GridInfo();
|
|
if (txtDbId.value == null || txtDbId.value == "" || txtDbId.value == "0") {
|
|
"请选择数据库".$Alert();
|
|
return false;
|
|
} else {
|
|
return true;
|
|
}
|
|
},
|
|
yes: function () {
|
|
btnProject.$Loading();
|
|
hidviewdbid.value = txtDbId.value;
|
|
frmView.$Form({
|
|
url: _root + "codetable/CreateTableByView",
|
|
callback: function (msg) {
|
|
btnProject.$CloseLoading();
|
|
if (msg.IsSuccess) {
|
|
//ClassName.value = viewclassname.value;
|
|
$sugar.$CloseAll(divView.getAttribute("dataindex"));
|
|
btnSearch.click();
|
|
}
|
|
msg.Data.$Alert();
|
|
}
|
|
});
|
|
},
|
|
btn: ['创建类', '关闭']
|
|
}); |