框架重构
清除多余的业务
This commit is contained in:
38
WebFirst/wwwroot/views/system/dbview.js
Normal file
38
WebFirst/wwwroot/views/system/dbview.js
Normal file
@@ -0,0 +1,38 @@
|
||||
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: ['创建类', '关闭']
|
||||
});
|
||||
Reference in New Issue
Block a user