Example #1
0
        public string GetSql(object[] d, IGatherDB db)
        {
            decimal[] ids = db.GetSystemID(1);
            string    sql = string.Empty;

            sql = sql + string.Format("insert into {0}", this.reportName) + GetColoums() + " values " + GetValues(ids[0], d) + ";";
            return(sql);
        }
Example #2
0
        public string GetSql(List <object[]> list, IGatherDB db)
        {
            string sql = string.Empty;
            int    len = list.Count;

            decimal[] ids = db.GetSystemID(len);
            for (int i = 0; i < len; i++)
            {
                sql = sql + string.Format("insert into {0}", this.reportName) + GetColoums() + " values " + GetValues(ids[i], list[i]) + ";";
            }
            return(sql);
        }
Example #3
0
 public string GetSql(List<object[]> list,IGatherDB db)
 {
     string sql = string.Empty;
        int len = list.Count;
        decimal[] ids = db.GetSystemID(len);
        for (int i = 0; i < len; i++)
        {
        sql = sql + string.Format("insert into {0}", this.reportName) + GetColoums() + " values " + GetValues(ids[i],list[i]) + ";";
        }
        return sql;
 }
Example #4
0
 public string GetSql(object[] d,IGatherDB db)
 {
     decimal[] ids = db.GetSystemID(1);
     string sql = string.Empty;
     sql = sql + string.Format("insert into {0}", this.reportName) + GetColoums() + " values " + GetValues(ids[0],d) + ";";
     return sql;
 }