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 ();
        }
Ejemplo n.º 2
0
        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 ();
        }
        public bool Delete_Where( string strWhere )
        {
            //Not allow delete all data in table
            if ( strWhere.Trim () == "" )
                return false;

            SQL Sql = new SQL ( DBParam.Sql.Connect );

            string strSql = String.Format ( "delete from {0} where {1}" , DB.Tab.基层科.社区服务信息管理_社区公益服务.TAB , strWhere );
            Sql.Exec ( strSql );

            Sql.Close ();

            return true;
        }
        public void Update_ByID( string strID, string strFld, string strVal )
        {
            SQL Sql = new SQL( DBParam.Sql.Connect );

            string strSql = String.Format( "update {0} set {1}='{2}' where ID='{3}'", DB.Tab.事务科.低收入居民.TAB, strFld, strVal, strID );
            Sql.Exec( strSql );

            Sql.Close();
        }
        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();
        }
        public bool FakeDelete_Where( string strWhere )
        {
            SQL Sql = new SQL( DBParam.Sql.Connect );

            string strSql = String.Format( "update {0} set {1}='True' where {2}", DB.Tab.优抚科.优抚对象.在乡复员军人.生活费来源.TAB, DB.Tab.优抚科.优抚对象.在乡复员军人.生活费来源.DelFlag, strWhere );
            Sql.Exec( strSql );

            Sql.Close();

            return true;
        }
        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();
        }
        public bool Delete_Where( string strWhere )
        {
            //Not allow delete all data in table
            if ( strWhere.Trim() == "" )
                return false;

            SQL Sql = new SQL( DBParam.Sql.Connect );

            string strSql = String.Format( "delete from {0} where {1}", DB.Tab.优抚科.优抚对象.铀矿开采军队退役人员员子女役人员.基本信息.TAB, strWhere );
            Sql.Exec( strSql );

            Sql.Close();

            return true;
        }
        public void Delete_Table()
        {
            SQL Sql = new SQL( GL.Param.Sql.Connect );

            string strSql = String.Format( "delete from {0} ", Tab.USER.TAB );
            Sql.Exec( strSql );

            Sql.Close();
        }
        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();
        }
        public void Update_ByID( string strID, string strFld, string strVal )
        {
            SQL Sql = new SQL( DBParam.Sql.Connect );

            string strSql = String.Format( "update {0} set {1}='{2}' where ID='{3}'", DB.Tab.优抚科.优抚对象.铀矿开采军队退役人员员子女役人员.基本信息.TAB, strFld, strVal, strID );
            Sql.Exec( strSql );

            Sql.Close();
        }
        public bool Delete_Where(string strWhere)
        {
            //Not allow delete all data in table
            if (strWhere.Trim() == "")
                return false;

            SQL Sql = new SQL(FF.TD.Def.ConnectStr);

            string strSql = String.Format("delete from {0} where {1}", Tab.TEST_LOG.TAB, strWhere);
            Sql.Exec(strSql);

            Sql.Close();

            return true;
        }
        public void Delete_Table()
        {
            SQL Sql = new SQL(FF.TD.Def.ConnectStr);

            string strSql = String.Format("delete from {0} ", Tab.TEST_LOG.TAB);
            Sql.Exec(strSql);

            Sql.Close();
        }
        public void Delete_ByID( string strID )
        {
            if( strID.Trim() == "" )
                return;

            SQL Sql = new SQL( CONNECT.SqlConnect );

            string strSql = String.Format( "delete from {0} where {1}='{2}'", Tab.TAB, Tab.ID, strID );
            Sql.Exec( strSql );

            Sql.Close();

            return;
        }