Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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;
 }
Esempio n. 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;
 }