mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 14:04:41 +08:00
routine update
This commit is contained in:
parent
e353c75fd7
commit
abbd395fde
@ -24,8 +24,9 @@ namespace OpenAuth.App
|
|||||||
|
|
||||||
public void Add(Form obj)
|
public void Add(Form obj)
|
||||||
{
|
{
|
||||||
Repository.Add(obj);
|
UnitWork.Add(obj);
|
||||||
Repository.ExecuteSql(FormUtil.GetSql(obj));
|
UnitWork.ExecuteSql(FormUtil.GetSql(obj));
|
||||||
|
UnitWork.Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Update(Form obj)
|
public void Update(Form obj)
|
||||||
|
@ -58,9 +58,9 @@ UE.plugins['text'] = function () {
|
|||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
_delete:function(){
|
_delete:function(){
|
||||||
if( window.confirm('确认删除该控件吗?') ) {
|
//if( window.confirm('确认删除该控件吗?') ) {
|
||||||
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
||||||
}
|
//}
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
@ -132,9 +132,9 @@ UE.plugins['macros'] = function () {
|
|||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
_delete:function(){
|
_delete:function(){
|
||||||
if( window.confirm('确认删除该控件吗?') ) {
|
// if( window.confirm('确认删除该控件吗?') ) {
|
||||||
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
||||||
}
|
//}
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
@ -358,9 +358,9 @@ UE.plugins['radios'] = function () {
|
|||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
_delete:function(){
|
_delete:function(){
|
||||||
if( window.confirm('确认删除该控件吗?') ) {
|
// if( window.confirm('确认删除该控件吗?') ) {
|
||||||
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
||||||
}
|
//}
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
@ -434,9 +434,9 @@ UE.plugins['checkboxs'] = function () {
|
|||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
_delete:function(){
|
_delete:function(){
|
||||||
if( window.confirm('确认删除该控件吗?') ) {
|
// if( window.confirm('确认删除该控件吗?') ) {
|
||||||
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
||||||
}
|
// }
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
@ -510,9 +510,9 @@ UE.plugins['textarea'] = function () {
|
|||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
_delete:function(){
|
_delete:function(){
|
||||||
if( window.confirm('确认删除该控件吗?') ) {
|
// if( window.confirm('确认删除该控件吗?') ) {
|
||||||
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
||||||
}
|
// }
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
@ -583,9 +583,9 @@ UE.plugins['select'] = function () {
|
|||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
_delete:function(){
|
_delete:function(){
|
||||||
if( window.confirm('确认删除该控件吗?') ) {
|
// if( window.confirm('确认删除该控件吗?') ) {
|
||||||
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
||||||
}
|
// }
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
@ -663,9 +663,9 @@ UE.plugins['progressbar'] = function () {
|
|||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
_delete:function(){
|
_delete:function(){
|
||||||
if( window.confirm('确认删除该控件吗?') ) {
|
// if( window.confirm('确认删除该控件吗?') ) {
|
||||||
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
||||||
}
|
// }
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
@ -737,9 +737,9 @@ UE.plugins['qrcode'] = function () {
|
|||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
_delete:function(){
|
_delete:function(){
|
||||||
if( window.confirm('确认删除该控件吗?') ) {
|
// if( window.confirm('确认删除该控件吗?') ) {
|
||||||
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
||||||
}
|
// }
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
@ -811,9 +811,9 @@ UE.plugins['listctrl'] = function () {
|
|||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
_delete:function(){
|
_delete:function(){
|
||||||
if( window.confirm('确认删除该控件吗?') ) {
|
// if( window.confirm('确认删除该控件吗?') ) {
|
||||||
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
|
||||||
}
|
// }
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -64,5 +64,6 @@ namespace OpenAuth.Repository.Interface
|
|||||||
|
|
||||||
void Save();
|
void Save();
|
||||||
|
|
||||||
|
void ExecuteSql(string sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -142,5 +142,10 @@ namespace OpenAuth.Repository
|
|||||||
return dbSet;
|
return dbSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ExecuteSql(string sql)
|
||||||
|
{
|
||||||
|
Context.Database.ExecuteSqlCommand(sql);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,14 +7,6 @@
|
|||||||
<h2>OpenAuth.net测试站点登录</h2>
|
<h2>OpenAuth.net测试站点登录</h2>
|
||||||
|
|
||||||
|
|
||||||
@if (Model != null && !Model.Success)
|
|
||||||
{
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<a href="#" class="close" data-dismiss="alert">×</a>
|
|
||||||
<strong>Warning!</strong> @Model.ErrorMsg
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
|
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<form class="form-horizontal" method="POST">
|
<form class="form-horizontal" method="POST">
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
|
Loading…
Reference in New Issue
Block a user