本文整理汇总了C#中FrontFlag.SQL.Close方法的典型用法代码示例。如果您正苦于以下问题:C# SQL.Close方法的具体用法?C# SQL.Close怎么用?C# SQL.Close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FrontFlag.SQL
的用法示例。
在下文中一共展示了SQL.Close方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DataTable
public DataTable Get统计( string strWhere )
{
int nYNow = DateTime.Now.Year;
int nY80 = nYNow - 80;
int nY90 = nYNow - 90;
int nY100 = nYNow - 100;
string str80 = String.Format("{0}-01-01", nY80);
string str90 = String.Format( "{0}-01-01", nY90 );
string str100 = String.Format( "{0}-01-01", nY100 );
DataTable dt = new DataTable();
SQL Sql = new SQL( DBParam.Sql.Connect );
if ( strWhere.Trim() != "" )
strWhere = " Where " + strWhere;
string strSql = String.Format( @"select 街道,
SUM( CASE WHEN 出生日期 >= '{0}' and 出生日期 < '{1}' THEN 1 ELSE 0 END) as 年龄段80,
SUM( CASE WHEN 出生日期 >= '{1}' and 出生日期 < '{2}' THEN 1 ELSE 0 END) as 年龄段90,
SUM( CASE WHEN 出生日期 >= '{2}' THEN 1 ELSE 0 END) as 年龄段100
from {3} {4} group by 街道 ",
str80, str90, str100,
DB.Tab.老龄办.发放老龄津贴.TAB, strWhere );
dt = Sql.ExecDataTable( strSql );
Sql.Close();
return dt;
}
示例2: GetBlank
public DataTable GetBlank()
{
SQL Sql = new SQL( DBParam.Sql.Connect );
DataTable dt = Sql.GetBlankDt( Tab.USER.TAB );
Sql.Close();
return dt;
}
示例3: GetBlank
public DataTable GetBlank()
{
SQL Sql = new SQL(FF.TD.Def.ConnectStr);
DataTable dt = Sql.GetBlankDt(Tab.TEST_LOG.TAB);
Sql.Close();
return dt;
}
示例4: GetBlank
public DataTable GetBlank()
{
SQL Sql = new SQL( DBParam.Sql.Connect );
DataTable dt = Sql.GetBlankDt( DB.Tab.优抚科.优抚对象.伤残人员.基本信息.TAB );
Sql.Close();
return dt;
}
示例5: GetBlank
public DataTable GetBlank()
{
SQL Sql = new SQL ( DBParam.Sql.Connect );
DataTable dt = Sql.GetBlankDt(DB.Tab.福利中心.老人入住管理_监护人.TAB);
dt.Rows.Clear();
Sql.Close();
return dt;
}
示例6: GetBlank
public DataTable GetBlank()
{
SQL Sql = new SQL( DBParam.Sql.Connect );
DataTable dt = Sql.GetBlankDt( DB.Tab.优抚科.优抚对象.在乡复员军人.生活费来源.TAB );
dt.Rows.Clear();
Sql.Close();
return dt;
}
示例7: Delete_Table
public void Delete_Table( )
{
SQL Sql = new SQL ( DBParam.Sql.Connect );
string strSql = String.Format ( "delete from {0} " , DB.Tab.福利中心.老人费用登记管理.TAB );
Sql.Exec ( strSql );
Sql.Close ();
}
示例8: GetBlank
public DataTable GetBlank()
{
SQL Sql = new SQL( DBParam.Sql.Connect );
DataTable dt = Sql.GetBlankDt( DB.Tab.事务科.低收入居民.TAB );
dt.Rows.Clear();
Sql.Close();
return dt;
}
示例9: Delete_Table
public void Delete_Table( )
{
SQL Sql = new SQL ( DBParam.Sql.Connect );
string strSql = String.Format ( "delete from {0} " , DB.Tab.基层科.社区服务信息管理_社区公益服务.TAB );
Sql.Exec ( strSql );
Sql.Close ();
}
示例10: GetBlank
public DataTable GetBlank()
{
SQL Sql = new SQL( DBParam.Sql.Connect );
DataTable dt = Sql.GetBlankDt( DB.Tab.优抚科.优抚对象.铀矿开采军队退役人员员子女役人员.基本信息.TAB );
dt.Rows.Clear();
Sql.Close();
return dt;
}
示例11: GetBlank
public DataTable GetBlank()
{
SQL Sql = new SQL ( DBParam.Sql.Connect );
DataTable dt = Sql.GetBlankDt(DB.Tab.基层科.社区服务信息管理_社区公益服务.TAB);
dt.Rows.Clear();
Sql.Close();
return dt;
}
示例12: GetPage
//Get one Page data from all
public DataTable GetPage( int nPageNo, string strWhere )
{
SQL Sql = new SQL( DBParam.Sql.Connect );
DataTable dt = new DataTable();
string strSql = SQL.GetPageSql2005( DB.Tab.优抚科.优抚对象.铀矿开采军队退役人员员子女役人员.基本信息.TAB, nPageNo, CONST.PageSize, DB.Tab.优抚科.优抚对象.铀矿开采军队退役人员员子女役人员.基本信息.ID, strWhere, false );
dt = Sql.ExecDataTable( strSql );
Sql.Close();
return dt;
}
示例13: GetPage
//Get one Page data from all
public DataTable GetPage( int nPageNo, string strWhere )
{
SQL Sql = new SQL( DBParam.Sql.Connect );
DataTable dt = new DataTable();
string strSql = SQL.GetPageSql2005( DB.Tab.事务科.低收入居民.TAB, nPageNo, CONST.PageSize, DB.Tab.事务科.低收入居民.ID, strWhere, false );
dt = Sql.ExecDataTable( strSql );
Sql.Close();
return dt;
}
示例14: GetPage
//Get one Page data from all
public DataTable GetPage(int nPageNo, string strWhere)
{
SQL Sql = new SQL(FF.TD.Def.ConnectStr);
DataTable dt = new DataTable();
string strSql = SQL.GetPageSql(Tab.TEST_LOG.TAB, nPageNo, FrontFlag.Test.DEF.PageSize, Tab.TEST_LOG.ID, strWhere);
dt = Sql.ExecDataTable(strSql);
Sql.Close();
return dt;
}
示例15: GetPageMax
public int GetPageMax( string strWhere )
{
SQL Sql = new SQL( DBParam.Sql.Connect );
int nRecCount = 0;
int nPageNum = Sql.GetPageMaxPage( DB.Tab.事务科.低收入居民.TAB, strWhere, ref nRecCount, CONST.PageSize );
Sql.Close();
return nPageNum;
}