public DataSet GetDataTables(string commandText) { DataSet result = this.CurrentDBOpreate.GetDataTables(commandText); if (result == null) { LibEventManager.TouchEvent(this, LibEventType.SqlException, this.CurrentDBOpreate.Exception); LibEventManager.LogOutListener(this); } return(result); }
object ILibDBHelp.ExecuteScalar(string commandText) { object result = this.CurrentDBOpreate.ExecuteScalar(commandText); if (result == null) { LibEventManager.TouchEvent(this, LibEventType.SqlException, this.CurrentDBOpreate.Exception); LibEventManager.LogOutListener(this); } return(result); //return DBOperate.ExecuteScalar(commandText); }
public int ExecuteNonQuery(List <string> commandtextlist) { int result = this.CurrentDBOpreate.ExecuteNonQuery(commandtextlist); if (result == -900) { LibEventManager.TouchEvent(this, LibEventType.SqlException, this.CurrentDBOpreate.Exception); LibEventManager.LogOutListener(this); } //return this.CurrentDBOpreate.ExecuteNonQuery(commandText); //return DBOperate.ExecuteNonQuery(commandText); return(result); }
DataRow ILibDBHelp.GetDataRow(string commandText) { int flag = 0; DataRow result = this.CurrentDBOpreate.GetDataRow(commandText, out flag); if (flag == -1) { LibEventManager.TouchEvent(this, LibEventType.SqlException, this.CurrentDBOpreate.Exception); LibEventManager.LogOutListener(this); } return(result); //return DBOperate.GetDataRow(commandText); }
void called_FormClosing(object sender, FormClosingEventArgs e) { LibEventManager.TouchEvent(_caller, LibEventType.FormCommunitation, _paramContain.RefTag, _paramContain.FormCommunitationAgrs); LibEventManager.LogOutListener(_caller); _paramContain.FormCommunitationAgrs.Clear(); }