/// <summary> /// 插入方法 /// </summary> /// <param name="list"></param> public bool Insert(List <Model_账套> list) { List <string> sqlList = new List <string>(); db.InsertPackage(DBTablesName.T_BOOKS, list.OfType <object>().ToList()); sql = sr.ReadSQL(0, "T_VOUCHER", DBTablesName.T_VOUCHER); sqlList.Add(sql); sql = sr.ReadSQL(1, "T_VOUCHERDETAIL", DBTablesName.T_VOUCHER_DETAIL); sqlList.Add(sql); sql = sr.ReadSQL(3, "T_RECORD", DBTablesName.T_RECORD); sqlList.Add(sql); sql = sr.ReadSQL(4, "T_FEE", DBTablesName.T_FEE); sqlList.Add(sql); return(db.BatchOperate(sqlList)); }