routine update

This commit is contained in:
yubaolee 2018-03-15 17:36:41 +08:00
parent e353c75fd7
commit abbd395fde
7 changed files with 30 additions and 29 deletions

View File

@ -24,8 +24,9 @@ namespace OpenAuth.App
public void Add(Form obj)
{
Repository.Add(obj);
Repository.ExecuteSql(FormUtil.GetSql(obj));
UnitWork.Add(obj);
UnitWork.ExecuteSql(FormUtil.GetSql(obj));
UnitWork.Save();
}
public void Update(Form obj)

View File

@ -58,9 +58,9 @@ UE.plugins['text'] = function () {
this.hide();
},
_delete:function(){
if( window.confirm('确认删除该控件吗?') ) {
//if( window.confirm('确认删除该控件吗?') ) {
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
}
//}
this.hide();
}
} );
@ -132,9 +132,9 @@ UE.plugins['macros'] = function () {
this.hide();
},
_delete:function(){
if( window.confirm('确认删除该控件吗?') ) {
// if( window.confirm('确认删除该控件吗?') ) {
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
}
//}
this.hide();
}
} );
@ -358,9 +358,9 @@ UE.plugins['radios'] = function () {
this.hide();
},
_delete:function(){
if( window.confirm('确认删除该控件吗?') ) {
// if( window.confirm('确认删除该控件吗?') ) {
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
}
//}
this.hide();
}
} );
@ -434,9 +434,9 @@ UE.plugins['checkboxs'] = function () {
this.hide();
},
_delete:function(){
if( window.confirm('确认删除该控件吗?') ) {
// if( window.confirm('确认删除该控件吗?') ) {
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
}
// }
this.hide();
}
} );
@ -510,9 +510,9 @@ UE.plugins['textarea'] = function () {
this.hide();
},
_delete:function(){
if( window.confirm('确认删除该控件吗?') ) {
// if( window.confirm('确认删除该控件吗?') ) {
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
}
// }
this.hide();
}
} );
@ -583,9 +583,9 @@ UE.plugins['select'] = function () {
this.hide();
},
_delete:function(){
if( window.confirm('确认删除该控件吗?') ) {
// if( window.confirm('确认删除该控件吗?') ) {
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
}
// }
this.hide();
}
} );
@ -663,9 +663,9 @@ UE.plugins['progressbar'] = function () {
this.hide();
},
_delete:function(){
if( window.confirm('确认删除该控件吗?') ) {
// if( window.confirm('确认删除该控件吗?') ) {
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
}
// }
this.hide();
}
} );
@ -737,9 +737,9 @@ UE.plugins['qrcode'] = function () {
this.hide();
},
_delete:function(){
if( window.confirm('确认删除该控件吗?') ) {
// if( window.confirm('确认删除该控件吗?') ) {
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
}
// }
this.hide();
}
} );
@ -811,9 +811,9 @@ UE.plugins['listctrl'] = function () {
this.hide();
},
_delete:function(){
if( window.confirm('确认删除该控件吗?') ) {
// if( window.confirm('确认删除该控件吗?') ) {
baidu.editor.dom.domUtils.remove(this.anchorEl,false);
}
// }
this.hide();
}
} );

File diff suppressed because one or more lines are too long

View File

@ -64,5 +64,6 @@ namespace OpenAuth.Repository.Interface
void Save();
void ExecuteSql(string sql);
}
}

View File

@ -142,5 +142,10 @@ namespace OpenAuth.Repository
return dbSet;
}
public void ExecuteSql(string sql)
{
Context.Database.ExecuteSqlCommand(sql);
}
}
}

View File

@ -7,14 +7,6 @@
<h2>OpenAuth.net测试站点登录</h2>
@if (Model != null && !Model.Success)
{
<div class="alert alert-danger">
<a href="#" class="close" data-dismiss="alert">&times;</a>
<strong>Warning!</strong> @Model.ErrorMsg
</div>
}
<div class="col-lg-12">
<form class="form-horizontal" method="POST">
<div class="control-group">