| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897 |
- using CallCenterApi.DB;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Data.SqlClient;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CallCenterApi.DAL
- {
- /// <summary>
- /// 数据访问类:T_Cus_CustomerExpand
- /// </summary>
- public partial class T_Cus_CustomerExpand
- {
- public T_Cus_CustomerExpand()
- { }
- #region BasicMethod
- /// <summary>
- /// 是否存在该记录
- /// </summary>
- public bool Exists(Guid F_ExpandId)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("select count(1) from T_Cus_CustomerExpand");
- strSql.Append(" where F_ExpandId=@F_ExpandId ");
- SqlParameter[] parameters = {
- new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16) };
- parameters[0].Value = F_ExpandId;
- return DbHelperSQL.Exists(strSql.ToString(), parameters);
- }
- /// <summary>
- /// 增加一条数据
- /// </summary>
- public bool Add(CallCenterApi.Model.T_Cus_CustomerExpand model)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("insert into T_Cus_CustomerExpand(");
- strSql.Append("F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_StrExpand7,F_StrExpand8,F_StrExpand9,F_StrExpand10,F_StrExpand11,F_StrExpand12,F_StrExpand13,F_StrExpand14,F_StrExpand15,F_StrExpand16,F_StrExpand17,F_StrExpand18,F_StrExpand19,F_StrExpand20,F_StrExpand21,F_StrExpand22,F_StrExpand23,F_StrExpand24,F_StrExpand25,F_StrExpand26,F_StrExpand27,F_StrExpand28,F_StrExpand29,F_StrExpand30,F_StrExpand31,F_StrExpand32,F_StrExpand33,F_StrExpand34,F_StrExpand35,F_StrExpand36,F_StrExpand37,F_StrExpand38,F_StrExpand39,F_StrExpand40)");
- strSql.Append(" values (");
- strSql.Append("@F_CustomerId,@F_StrExpand1,@F_StrExpand2,@F_StrExpand3,@F_StrExpand4,@F_StrExpand5,@F_StrExpand6,@F_StrExpand7,@F_StrExpand8,@F_StrExpand9,@F_StrExpand10,@F_StrExpand11,@F_StrExpand12,@F_StrExpand13,@F_StrExpand14,@F_StrExpand15,@F_StrExpand16,@F_StrExpand17,@F_StrExpand18,@F_StrExpand19,@F_StrExpand20,@F_StrExpand21,@F_StrExpand22,@F_StrExpand23,@F_StrExpand24,@F_StrExpand25,@F_StrExpand26,@F_StrExpand27,@F_StrExpand28,@F_StrExpand29,@F_StrExpand30,@F_StrExpand31,@F_StrExpand32,@F_StrExpand33,@F_StrExpand34,@F_StrExpand35,@F_StrExpand36,@F_StrExpand37,@F_StrExpand38,@F_StrExpand39,@F_StrExpand40)");
- int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), new SqlParameter[] {
- new SqlParameter("@F_CustomerId",model.F_CustomerId ),
- new SqlParameter("@F_StrExpand1",model. F_StrExpand1) ,
- new SqlParameter("@F_StrExpand2",model. F_StrExpand2) ,
- new SqlParameter("@F_StrExpand3",model. F_StrExpand3) ,
- new SqlParameter("@F_StrExpand4",model. F_StrExpand4) ,
- new SqlParameter("@F_StrExpand5",model. F_StrExpand5) ,
- new SqlParameter("@F_StrExpand6",model. F_StrExpand6) ,
- new SqlParameter("@F_StrExpand7",model. F_StrExpand7) ,
- new SqlParameter("@F_StrExpand8",model. F_StrExpand8) ,
- new SqlParameter("@F_StrExpand9",model. F_StrExpand9) ,
- new SqlParameter("@F_StrExpand10",model.F_StrExpand10),
- new SqlParameter("@F_StrExpand11",model.F_StrExpand11),
- new SqlParameter("@F_StrExpand12",model.F_StrExpand12),
- new SqlParameter("@F_StrExpand13",model.F_StrExpand13),
- new SqlParameter("@F_StrExpand14",model.F_StrExpand14),
- new SqlParameter("@F_StrExpand15",model.F_StrExpand15),
- new SqlParameter("@F_StrExpand16",model.F_StrExpand16),
- new SqlParameter("@F_StrExpand17",model.F_StrExpand17),
- new SqlParameter("@F_StrExpand18",model.F_StrExpand18),
- new SqlParameter("@F_StrExpand19",model.F_StrExpand19),
- new SqlParameter("@F_StrExpand20",model.F_StrExpand20),
- new SqlParameter("@F_StrExpand21",model.F_StrExpand21),
- new SqlParameter("@F_StrExpand22",model.F_StrExpand22),
- new SqlParameter("@F_StrExpand23",model.F_StrExpand23),
- new SqlParameter("@F_StrExpand24",model.F_StrExpand24),
- new SqlParameter("@F_StrExpand25",model.F_StrExpand25),
- new SqlParameter("@F_StrExpand26",model.F_StrExpand26),
- new SqlParameter("@F_StrExpand27",model.F_StrExpand27),
- new SqlParameter("@F_StrExpand28",model.F_StrExpand28),
- new SqlParameter("@F_StrExpand29",model.F_StrExpand29),
- new SqlParameter("@F_StrExpand30",model.F_StrExpand30),
- new SqlParameter("@F_StrExpand31",model.F_StrExpand31),
- new SqlParameter("@F_StrExpand32",model.F_StrExpand32),
- new SqlParameter("@F_StrExpand33",model.F_StrExpand33),
- new SqlParameter("@F_StrExpand34",model.F_StrExpand34),
- new SqlParameter("@F_StrExpand35",model.F_StrExpand35),
- new SqlParameter("@F_StrExpand36",model.F_StrExpand36),
- new SqlParameter("@F_StrExpand37",model.F_StrExpand37),
- new SqlParameter("@F_StrExpand38",model.F_StrExpand38),
- new SqlParameter("@F_StrExpand39",model.F_StrExpand39),
- new SqlParameter("@F_StrExpand40",model.F_StrExpand40)
- });
- if (rows > 0)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- /// <summary>
- /// 更新一条数据
- /// </summary>
- public bool Update(CallCenterApi.Model.T_Cus_CustomerExpand model)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("update T_Cus_CustomerExpand set ");
- strSql.Append("F_StrExpand1=@F_StrExpand1, ");
- strSql.Append("F_StrExpand2=@F_StrExpand2, ");
- strSql.Append("F_StrExpand3=@F_StrExpand3, ");
- strSql.Append("F_StrExpand4=@F_StrExpand4, ");
- strSql.Append("F_StrExpand5=@F_StrExpand5, ");
- strSql.Append("F_StrExpand6=@F_StrExpand6, ");
- strSql.Append("F_StrExpand7=@F_StrExpand7, ");
- strSql.Append("F_StrExpand8=@F_StrExpand8, ");
- strSql.Append("F_StrExpand9=@F_StrExpand9, ");
- strSql.Append("F_StrExpand10=@F_StrExpand10, ");
- strSql.Append("F_StrExpand11=@F_StrExpand11, ");
- strSql.Append("F_StrExpand12=@F_StrExpand12, ");
- strSql.Append("F_StrExpand13=@F_StrExpand13, ");
- strSql.Append("F_StrExpand14=@F_StrExpand14, ");
- strSql.Append("F_StrExpand15=@F_StrExpand15, ");
- strSql.Append("F_StrExpand16=@F_StrExpand16, ");
- strSql.Append("F_StrExpand17=@F_StrExpand17, ");
- strSql.Append("F_StrExpand18=@F_StrExpand18, ");
- strSql.Append("F_StrExpand19=@F_StrExpand19, ");
- strSql.Append("F_StrExpand20=@F_StrExpand20, ");
- strSql.Append("F_StrExpand21=@F_StrExpand21, ");
- strSql.Append("F_StrExpand22=@F_StrExpand22, ");
- strSql.Append("F_StrExpand23=@F_StrExpand23, ");
- strSql.Append("F_StrExpand24=@F_StrExpand24, ");
- strSql.Append("F_StrExpand25=@F_StrExpand25, ");
- strSql.Append("F_StrExpand26=@F_StrExpand26, ");
- strSql.Append("F_StrExpand27=@F_StrExpand27, ");
- strSql.Append("F_StrExpand28=@F_StrExpand28, ");
- strSql.Append("F_StrExpand29=@F_StrExpand29, ");
- strSql.Append("F_StrExpand30=@F_StrExpand30, ");
- strSql.Append("F_StrExpand31=@F_StrExpand31, ");
- strSql.Append("F_StrExpand32=@F_StrExpand32, ");
- strSql.Append("F_StrExpand33=@F_StrExpand33, ");
- strSql.Append("F_StrExpand34=@F_StrExpand34, ");
- strSql.Append("F_StrExpand35=@F_StrExpand35, ");
- strSql.Append("F_StrExpand36=@F_StrExpand36, ");
- strSql.Append("F_StrExpand37=@F_StrExpand37, ");
- strSql.Append("F_StrExpand38=@F_StrExpand38, ");
- strSql.Append("F_StrExpand39=@F_StrExpand39, ");
- strSql.Append("F_StrExpand40=@F_StrExpand40 ");
- strSql.Append("where F_CustomerId=@F_CustomerId ");
- int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), new SqlParameter[] {
- new SqlParameter("@F_CustomerId",model.F_CustomerId ),
- new SqlParameter("@F_StrExpand1",model.F_StrExpand1) ,
- new SqlParameter("@F_StrExpand2",model.F_StrExpand2) ,
- new SqlParameter("@F_StrExpand3",model.F_StrExpand3) ,
- new SqlParameter("@F_StrExpand4",model.F_StrExpand4) ,
- new SqlParameter("@F_StrExpand5",model.F_StrExpand5) ,
- new SqlParameter("@F_StrExpand6",model.F_StrExpand6) ,
- new SqlParameter("@F_StrExpand7",model.F_StrExpand7) ,
- new SqlParameter("@F_StrExpand8",model.F_StrExpand8) ,
- new SqlParameter("@F_StrExpand9",model.F_StrExpand9) ,
- new SqlParameter("@F_StrExpand10",model.F_StrExpand10),
- new SqlParameter("@F_StrExpand11",model.F_StrExpand11),
- new SqlParameter("@F_StrExpand12",model.F_StrExpand12),
- new SqlParameter("@F_StrExpand13",model.F_StrExpand13),
- new SqlParameter("@F_StrExpand14",model.F_StrExpand14),
- new SqlParameter("@F_StrExpand15",model.F_StrExpand15),
- new SqlParameter("@F_StrExpand16",model.F_StrExpand16),
- new SqlParameter("@F_StrExpand17",model.F_StrExpand17),
- new SqlParameter("@F_StrExpand18",model.F_StrExpand18),
- new SqlParameter("@F_StrExpand19",model.F_StrExpand19),
- new SqlParameter("@F_StrExpand20",model.F_StrExpand20),
- new SqlParameter("@F_StrExpand21",model.F_StrExpand21),
- new SqlParameter("@F_StrExpand22",model.F_StrExpand22),
- new SqlParameter("@F_StrExpand23",model.F_StrExpand23),
- new SqlParameter("@F_StrExpand24",model.F_StrExpand24),
- new SqlParameter("@F_StrExpand25",model.F_StrExpand25),
- new SqlParameter("@F_StrExpand26",model.F_StrExpand26),
- new SqlParameter("@F_StrExpand27",model.F_StrExpand27),
- new SqlParameter("@F_StrExpand28",model.F_StrExpand28),
- new SqlParameter("@F_StrExpand29",model.F_StrExpand29),
- new SqlParameter("@F_StrExpand30",model.F_StrExpand30),
- new SqlParameter("@F_StrExpand31",model.F_StrExpand31),
- new SqlParameter("@F_StrExpand32",model.F_StrExpand32),
- new SqlParameter("@F_StrExpand33",model.F_StrExpand33),
- new SqlParameter("@F_StrExpand34",model.F_StrExpand34),
- new SqlParameter("@F_StrExpand35",model.F_StrExpand35),
- new SqlParameter("@F_StrExpand36",model.F_StrExpand36),
- new SqlParameter("@F_StrExpand37",model.F_StrExpand37),
- new SqlParameter("@F_StrExpand38",model.F_StrExpand38),
- new SqlParameter("@F_StrExpand39",model.F_StrExpand39),
- new SqlParameter("@F_StrExpand40",model.F_StrExpand40)
- });
- if (rows > 0)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- /// <summary>
- /// 删除一条数据
- /// </summary>
- public bool Delete(Guid F_ExpandId)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("delete from T_Cus_CustomerExpand ");
- strSql.Append(" where F_ExpandId=@F_ExpandId ");
- SqlParameter[] parameters = {
- new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16) };
- parameters[0].Value = F_ExpandId;
- int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
- if (rows > 0)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- /// <summary>
- /// 批量删除数据
- /// </summary>
- public bool DeleteList(string F_ExpandIdlist)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("delete from T_Cus_CustomerExpand ");
- strSql.Append(" where F_ExpandId in (" + F_ExpandIdlist + ") ");
- int rows = DbHelperSQL.ExecuteSql(strSql.ToString());
- if (rows > 0)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- /// <summary>
- /// 得到一个对象实体
- /// </summary>
- public CallCenterApi.Model.T_Cus_CustomerExpand GetModel(Guid F_ExpandId)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("select top 1 F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_StrExpand7,F_StrExpand8,F_StrExpand9,F_StrExpand10,F_StrExpand11,F_StrExpand12,F_StrExpand13,F_StrExpand14,F_StrExpand15,F_StrExpand16,F_StrExpand17,F_StrExpand18,F_StrExpand19,F_StrExpand20,F_StrExpand21,F_StrExpand22,F_StrExpand23,F_StrExpand24,F_StrExpand25,F_StrExpand26,F_StrExpand27,F_StrExpand28,F_StrExpand29,F_StrExpand30,F_StrExpand31,F_StrExpand32,F_StrExpand33,F_StrExpand34,F_StrExpand35,F_StrExpand36,F_StrExpand37,F_StrExpand38,F_StrExpand39,F_StrExpand40 from T_Cus_CustomerExpand ");
- strSql.Append(" where F_ExpandId=@F_ExpandId ");
- SqlParameter[] parameters = {
- new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16) };
- parameters[0].Value = F_ExpandId;
- CallCenterApi.Model.T_Cus_CustomerExpand model = new CallCenterApi.Model.T_Cus_CustomerExpand();
- DataSet ds = DbHelperSQL.Query(strSql.ToString(), parameters);
- if (ds.Tables[0].Rows.Count > 0)
- {
- return DataRowToModel(ds.Tables[0].Rows[0]);
- }
- else
- {
- return null;
- }
- }
- /// <summary>
- /// 得到一个对象实体
- /// </summary>
- public CallCenterApi.Model.T_Cus_CustomerExpand GetModelByCustomerId(string customerId)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("select top 1 F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_StrExpand7,F_StrExpand8,F_StrExpand9,F_StrExpand10,F_StrExpand11,F_StrExpand12,F_StrExpand13,F_StrExpand14,F_StrExpand15,F_StrExpand16,F_StrExpand17,F_StrExpand18,F_StrExpand19,F_StrExpand20,F_StrExpand21,F_StrExpand22,F_StrExpand23,F_StrExpand24,F_StrExpand25,F_StrExpand26,F_StrExpand27,F_StrExpand28,F_StrExpand29,F_StrExpand30,F_StrExpand31,F_StrExpand32,F_StrExpand33,F_StrExpand34,F_StrExpand35,F_StrExpand36,F_StrExpand37,F_StrExpand38,F_StrExpand39,F_StrExpand40 from T_Cus_CustomerExpand ");
- strSql.Append(" where F_CustomerId=@F_CustomerId ");
- SqlParameter[] parameters = {
- new SqlParameter("@F_CustomerId",customerId) };
- CallCenterApi.Model.T_Cus_CustomerExpand model = new CallCenterApi.Model.T_Cus_CustomerExpand();
- DataSet ds = DbHelperSQL.Query(strSql.ToString(), parameters);
- if (ds.Tables[0].Rows.Count > 0)
- {
- return DataRowToModel(ds.Tables[0].Rows[0]);
- }
- else
- {
- return null;
- }
- }
- /// <summary>
- /// 得到一个对象实体
- /// </summary>
- public CallCenterApi.Model.T_Cus_CustomerExpand DataRowToModel(DataRow row)
- {
- CallCenterApi.Model.T_Cus_CustomerExpand model = new CallCenterApi.Model.T_Cus_CustomerExpand();
- var columns = row.Table.Columns;
- if (row != null)
- {
- model.F_ExpandId = row["F_ExpandId"] == DBNull.Value ? "" : row["F_ExpandId"].ToString();
- model.F_CustomerId = row["F_CustomerId"] == DBNull.Value ? "" : row["F_CustomerId"].ToString();
- if (columns.Contains("F_StrExpand1")) { model.F_StrExpand1 = row["F_StrExpand1"] == DBNull.Value ? "" : row["F_StrExpand1"].ToString(); }
- if (columns.Contains("F_StrExpand2")) { model.F_StrExpand2 = row["F_StrExpand2"] == DBNull.Value ? "" : row["F_StrExpand2"].ToString(); }
- if (columns.Contains("F_StrExpand3")) { model.F_StrExpand3 = row["F_StrExpand3"] == DBNull.Value ? "" : row["F_StrExpand3"].ToString(); }
- if (columns.Contains("F_StrExpand4")) { model.F_StrExpand4 = row["F_StrExpand4"] == DBNull.Value ? "" : row["F_StrExpand4"].ToString(); }
- if (columns.Contains("F_StrExpand5")) { model.F_StrExpand5 = row["F_StrExpand5"] == DBNull.Value ? "" : row["F_StrExpand5"].ToString(); }
- if (columns.Contains("F_StrExpand6")) { model.F_StrExpand6 = row["F_StrExpand6"] == DBNull.Value ? "" : row["F_StrExpand6"].ToString(); }
- if (columns.Contains("F_StrExpand7")) { model.F_StrExpand7 = row["F_StrExpand7"] == DBNull.Value ? "" : row["F_StrExpand7"].ToString(); }
- if (columns.Contains("F_StrExpand8")) { model.F_StrExpand8 = row["F_StrExpand8"] == DBNull.Value ? "" : row["F_StrExpand8"].ToString(); }
- if (columns.Contains("F_StrExpand9")) { model.F_StrExpand9 = row["F_StrExpand9"] == DBNull.Value ? "" : row["F_StrExpand9"].ToString(); }
- if (columns.Contains("F_StrExpand10")) { model.F_StrExpand10 = row["F_StrExpand10"] == DBNull.Value ? "" : row["F_StrExpand10"].ToString(); }
- if (columns.Contains("F_StrExpand11")) { model.F_StrExpand11 = row["F_StrExpand11"] == DBNull.Value ? "" : row["F_StrExpand11"].ToString(); }
- if (columns.Contains("F_StrExpand12")) { model.F_StrExpand12 = row["F_StrExpand12"] == DBNull.Value ? "" : row["F_StrExpand12"].ToString(); }
- if (columns.Contains("F_StrExpand13")) { model.F_StrExpand13 = row["F_StrExpand13"] == DBNull.Value ? "" : row["F_StrExpand13"].ToString(); }
- if (columns.Contains("F_StrExpand14")) { model.F_StrExpand14 = row["F_StrExpand14"] == DBNull.Value ? "" : row["F_StrExpand14"].ToString(); }
- if (columns.Contains("F_StrExpand15")) { model.F_StrExpand15 = row["F_StrExpand15"] == DBNull.Value ? "" : row["F_StrExpand15"].ToString(); }
- if (columns.Contains("F_StrExpand16")) { model.F_StrExpand16 = row["F_StrExpand16"] == DBNull.Value ? "" : row["F_StrExpand16"].ToString(); }
- if (columns.Contains("F_StrExpand17")) { model.F_StrExpand17 = row["F_StrExpand17"] == DBNull.Value ? "" : row["F_StrExpand17"].ToString(); }
- if (columns.Contains("F_StrExpand18")) { model.F_StrExpand18 = row["F_StrExpand18"] == DBNull.Value ? "" : row["F_StrExpand18"].ToString(); }
- if (columns.Contains("F_StrExpand19")) { model.F_StrExpand19 = row["F_StrExpand19"] == DBNull.Value ? "" : row["F_StrExpand19"].ToString(); }
- if (columns.Contains("F_StrExpand20")) { model.F_StrExpand20 = row["F_StrExpand20"] == DBNull.Value ? "" : row["F_StrExpand20"].ToString(); }
- if (columns.Contains("F_StrExpand21")) { model.F_StrExpand21 = row["F_StrExpand21"] == DBNull.Value ? "" : row["F_StrExpand21"].ToString(); }
- if (columns.Contains("F_StrExpand22")) { model.F_StrExpand22 = row["F_StrExpand22"] == DBNull.Value ? "" : row["F_StrExpand22"].ToString(); }
- if (columns.Contains("F_StrExpand23")) { model.F_StrExpand23 = row["F_StrExpand23"] == DBNull.Value ? "" : row["F_StrExpand23"].ToString(); }
- if (columns.Contains("F_StrExpand24")) { model.F_StrExpand24 = row["F_StrExpand24"] == DBNull.Value ? "" : row["F_StrExpand24"].ToString(); }
- if (columns.Contains("F_StrExpand25")) { model.F_StrExpand25 = row["F_StrExpand25"] == DBNull.Value ? "" : row["F_StrExpand25"].ToString(); }
- if (columns.Contains("F_StrExpand26")) { model.F_StrExpand26 = row["F_StrExpand26"] == DBNull.Value ? "" : row["F_StrExpand26"].ToString(); }
- if (columns.Contains("F_StrExpand27")) { model.F_StrExpand27 = row["F_StrExpand27"] == DBNull.Value ? "" : row["F_StrExpand27"].ToString(); }
- if (columns.Contains("F_StrExpand28")) { model.F_StrExpand28 = row["F_StrExpand28"] == DBNull.Value ? "" : row["F_StrExpand28"].ToString(); }
- if (columns.Contains("F_StrExpand29")) { model.F_StrExpand29 = row["F_StrExpand29"] == DBNull.Value ? "" : row["F_StrExpand29"].ToString(); }
- if (columns.Contains("F_StrExpand30")) { model.F_StrExpand30 = row["F_StrExpand30"] == DBNull.Value ? "" : row["F_StrExpand30"].ToString(); }
- if (columns.Contains("F_StrExpand31")) { model.F_StrExpand31 = row["F_StrExpand31"] == DBNull.Value ? "" : row["F_StrExpand31"].ToString(); }
- if (columns.Contains("F_StrExpand32")) { model.F_StrExpand32 = row["F_StrExpand32"] == DBNull.Value ? "" : row["F_StrExpand32"].ToString(); }
- if (columns.Contains("F_StrExpand33")) { model.F_StrExpand33 = row["F_StrExpand33"] == DBNull.Value ? "" : row["F_StrExpand33"].ToString(); }
- if (columns.Contains("F_StrExpand34")) { model.F_StrExpand34 = row["F_StrExpand34"] == DBNull.Value ? "" : row["F_StrExpand34"].ToString(); }
- if (columns.Contains("F_StrExpand35")) { model.F_StrExpand35 = row["F_StrExpand35"] == DBNull.Value ? "" : row["F_StrExpand35"].ToString(); }
- if (columns.Contains("F_StrExpand36")) { model.F_StrExpand36 = row["F_StrExpand36"] == DBNull.Value ? "" : row["F_StrExpand36"].ToString(); }
- if (columns.Contains("F_StrExpand37")) { model.F_StrExpand37 = row["F_StrExpand37"] == DBNull.Value ? "" : row["F_StrExpand37"].ToString(); }
- if (columns.Contains("F_StrExpand38")) { model.F_StrExpand38 = row["F_StrExpand38"] == DBNull.Value ? "" : row["F_StrExpand38"].ToString(); }
- if (columns.Contains("F_StrExpand39")) { model.F_StrExpand39 = row["F_StrExpand39"] == DBNull.Value ? "" : row["F_StrExpand39"].ToString(); }
- if (columns.Contains("F_StrExpand40")) { model.F_StrExpand40 = row["F_StrExpand40"] == DBNull.Value ? "" : row["F_StrExpand40"].ToString(); }
- }
- return model;
- }
- /// <summary>
- /// 获得数据列表
- /// </summary>
- public DataSet GetList(string strWhere)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("select F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_TypeExpand1,F_TypeExpand2,F_IntExpand1,F_IntExpand2,F_TimeExpand1,F_TimeExpand2,F_TextExpand1,F_TextExpand2 ");
- strSql.Append(" FROM T_Cus_CustomerExpand ");
- if (strWhere.Trim() != "")
- {
- strSql.Append(" where " + strWhere);
- }
- return DbHelperSQL.Query(strSql.ToString());
- }
- /// <summary>
- /// 获得前几行数据
- /// </summary>
- public DataSet GetList(int Top, string strWhere, string filedOrder)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("select ");
- if (Top > 0)
- {
- strSql.Append(" top " + Top.ToString());
- }
- strSql.Append(" F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_TypeExpand1,F_TypeExpand2,F_IntExpand1,F_IntExpand2,F_TimeExpand1,F_TimeExpand2,F_TextExpand1,F_TextExpand2 ");
- strSql.Append(" FROM T_Cus_CustomerExpand ");
- if (strWhere.Trim() != "")
- {
- strSql.Append(" where " + strWhere);
- }
- strSql.Append(" order by " + filedOrder);
- return DbHelperSQL.Query(strSql.ToString());
- }
- /// <summary>
- /// 获取记录总数
- /// </summary>
- public int GetRecordCount(string strWhere)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("select count(1) FROM T_Cus_CustomerExpand ");
- if (strWhere.Trim() != "")
- {
- strSql.Append(" where " + strWhere);
- }
- object obj = DbHelperSQL.GetSingle(strSql.ToString());
- if (obj == null)
- {
- return 0;
- }
- else
- {
- return Convert.ToInt32(obj);
- }
- }
- /// <summary>
- /// 分页获取数据列表
- /// </summary>
- public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
- {
- StringBuilder strSql = new StringBuilder();
- strSql.Append("SELECT * FROM ( ");
- strSql.Append(" SELECT ROW_NUMBER() OVER (");
- if (!string.IsNullOrEmpty(orderby.Trim()))
- {
- strSql.Append("order by T." + orderby);
- }
- else
- {
- strSql.Append("order by T.F_ExpandId desc");
- }
- strSql.Append(")AS Row, T.* from T_Cus_CustomerExpand T ");
- if (!string.IsNullOrEmpty(strWhere.Trim()))
- {
- strSql.Append(" WHERE " + strWhere);
- }
- strSql.Append(" ) TT");
- strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
- return DbHelperSQL.Query(strSql.ToString());
- }
- /*
- /// <summary>
- /// 分页获取数据列表
- /// </summary>
- public DataSet GetList(int PageSize,int PageIndex,string strWhere)
- {
- SqlParameter[] parameters = {
- new SqlParameter("@tblName", SqlDbType.VarChar, 255),
- new SqlParameter("@fldName", SqlDbType.VarChar, 255),
- new SqlParameter("@PageSize", SqlDbType.Int),
- new SqlParameter("@PageIndex", SqlDbType.Int),
- new SqlParameter("@IsReCount", SqlDbType.Bit),
- new SqlParameter("@OrderType", SqlDbType.Bit),
- new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
- };
- parameters[0].Value = "T_Cus_CustomerExpand";
- parameters[1].Value = "F_ExpandId";
- parameters[2].Value = PageSize;
- parameters[3].Value = PageIndex;
- parameters[4].Value = 0;
- parameters[5].Value = 0;
- parameters[6].Value = strWhere;
- return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
- }*/
- #endregion BasicMethod
- #region ExtensionMethod
- #endregion ExtensionMethod
- // public T_Cus_CustomerExpand()
- // { }
- // #region BasicMethod
- // /// <summary>
- // /// 是否存在该记录
- // /// </summary>
- // public bool Exists(Guid F_ExpandId)
- // {
- // StringBuilder strSql = new StringBuilder();
- // strSql.Append("select count(1) from T_Cus_CustomerExpand");
- // strSql.Append(" where F_ExpandId=@F_ExpandId ");
- // SqlParameter[] parameters = {
- // new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16) };
- // parameters[0].Value = F_ExpandId;
- // return DbHelperSQL.Exists(strSql.ToString(), parameters);
- // }
- // /// <summary>
- // /// 增加一条数据
- // /// </summary>
- // public bool Add(CallCenterApi.Model.T_Cus_CustomerExpand model)
- // {
- // StringBuilder strSql = new StringBuilder();
- // strSql.Append("insert into T_Cus_CustomerExpand(");
- // strSql.Append("F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_TypeExpand1,F_TypeExpand2,F_IntExpand1,F_IntExpand2,F_TimeExpand1,F_TimeExpand2,F_TextExpand1,F_TextExpand2)");
- // strSql.Append(" values (");
- // strSql.Append("@F_ExpandId,@F_CustomerId,@F_StrExpand1,@F_StrExpand2,@F_StrExpand3,@F_StrExpand4,@F_StrExpand5,@F_StrExpand6,@F_TypeExpand1,@F_TypeExpand2,@F_IntExpand1,@F_IntExpand2,@F_TimeExpand1,@F_TimeExpand2,@F_TextExpand1,@F_TextExpand2)");
- // SqlParameter[] parameters = {
- // new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16),
- // new SqlParameter("@F_CustomerId", SqlDbType.UniqueIdentifier,16),
- // new SqlParameter("@F_StrExpand1", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_StrExpand2", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_StrExpand3", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_StrExpand4", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_StrExpand5", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_StrExpand6", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_TypeExpand1", SqlDbType.NVarChar,50),
- // new SqlParameter("@F_TypeExpand2", SqlDbType.NVarChar,50),
- // new SqlParameter("@F_IntExpand1", SqlDbType.Int,4),
- // new SqlParameter("@F_IntExpand2", SqlDbType.Int,4),
- // new SqlParameter("@F_TimeExpand1", SqlDbType.DateTime),
- // new SqlParameter("@F_TimeExpand2", SqlDbType.DateTime),
- // new SqlParameter("@F_TextExpand1", SqlDbType.Text),
- // new SqlParameter("@F_TextExpand2", SqlDbType.Text)};
- // parameters[0].Value = Guid.NewGuid();
- // parameters[1].Value = Guid.NewGuid();
- // parameters[2].Value = model.F_StrExpand1;
- // parameters[3].Value = model.F_StrExpand2;
- // parameters[4].Value = model.F_StrExpand3;
- // parameters[5].Value = model.F_StrExpand4;
- // parameters[6].Value = model.F_StrExpand5;
- // parameters[7].Value = model.F_StrExpand6;
- // parameters[8].Value = model.F_TypeExpand1;
- // parameters[9].Value = model.F_TypeExpand2;
- // parameters[10].Value = model.F_IntExpand1;
- // parameters[11].Value = model.F_IntExpand2;
- // parameters[12].Value = model.F_TimeExpand1;
- // parameters[13].Value = model.F_TimeExpand2;
- // parameters[14].Value = model.F_TextExpand1;
- // parameters[15].Value = model.F_TextExpand2;
- // int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
- // if (rows > 0)
- // {
- // return true;
- // }
- // else
- // {
- // return false;
- // }
- // }
- // /// <summary>
- // /// 更新一条数据
- // /// </summary>
- // public bool Update(CallCenterApi.Model.T_Cus_CustomerExpand model)
- // {
- // StringBuilder strSql = new StringBuilder();
- // strSql.Append("update T_Cus_CustomerExpand set ");
- // strSql.Append("F_CustomerId=@F_CustomerId,");
- // strSql.Append("F_StrExpand1=@F_StrExpand1,");
- // strSql.Append("F_StrExpand2=@F_StrExpand2,");
- // strSql.Append("F_StrExpand3=@F_StrExpand3,");
- // strSql.Append("F_StrExpand4=@F_StrExpand4,");
- // strSql.Append("F_StrExpand5=@F_StrExpand5,");
- // strSql.Append("F_StrExpand6=@F_StrExpand6,");
- // strSql.Append("F_TypeExpand1=@F_TypeExpand1,");
- // strSql.Append("F_TypeExpand2=@F_TypeExpand2,");
- // strSql.Append("F_IntExpand1=@F_IntExpand1,");
- // strSql.Append("F_IntExpand2=@F_IntExpand2,");
- // strSql.Append("F_TimeExpand1=@F_TimeExpand1,");
- // strSql.Append("F_TimeExpand2=@F_TimeExpand2,");
- // strSql.Append("F_TextExpand1=@F_TextExpand1,");
- // strSql.Append("F_TextExpand2=@F_TextExpand2");
- // strSql.Append(" where F_ExpandId=@F_ExpandId ");
- // SqlParameter[] parameters = {
- // new SqlParameter("@F_CustomerId", SqlDbType.UniqueIdentifier,16),
- // new SqlParameter("@F_StrExpand1", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_StrExpand2", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_StrExpand3", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_StrExpand4", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_StrExpand5", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_StrExpand6", SqlDbType.NVarChar,200),
- // new SqlParameter("@F_TypeExpand1", SqlDbType.NVarChar,50),
- // new SqlParameter("@F_TypeExpand2", SqlDbType.NVarChar,50),
- // new SqlParameter("@F_IntExpand1", SqlDbType.Int,4),
- // new SqlParameter("@F_IntExpand2", SqlDbType.Int,4),
- // new SqlParameter("@F_TimeExpand1", SqlDbType.DateTime),
- // new SqlParameter("@F_TimeExpand2", SqlDbType.DateTime),
- // new SqlParameter("@F_TextExpand1", SqlDbType.Text),
- // new SqlParameter("@F_TextExpand2", SqlDbType.Text),
- // new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16)};
- // parameters[0].Value = model.F_CustomerId;
- // parameters[1].Value = model.F_StrExpand1;
- // parameters[2].Value = model.F_StrExpand2;
- // parameters[3].Value = model.F_StrExpand3;
- // parameters[4].Value = model.F_StrExpand4;
- // parameters[5].Value = model.F_StrExpand5;
- // parameters[6].Value = model.F_StrExpand6;
- // parameters[7].Value = model.F_TypeExpand1;
- // parameters[8].Value = model.F_TypeExpand2;
- // parameters[9].Value = model.F_IntExpand1;
- // parameters[10].Value = model.F_IntExpand2;
- // parameters[11].Value = model.F_TimeExpand1;
- // parameters[12].Value = model.F_TimeExpand2;
- // parameters[13].Value = model.F_TextExpand1;
- // parameters[14].Value = model.F_TextExpand2;
- // parameters[15].Value = model.F_ExpandId;
- // int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
- // if (rows > 0)
- // {
- // return true;
- // }
- // else
- // {
- // return false;
- // }
- // }
- // /// <summary>
- // /// 删除一条数据
- // /// </summary>
- // public bool Delete(Guid F_ExpandId)
- // {
- // StringBuilder strSql = new StringBuilder();
- // strSql.Append("delete from T_Cus_CustomerExpand ");
- // strSql.Append(" where F_ExpandId=@F_ExpandId ");
- // SqlParameter[] parameters = {
- // new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16) };
- // parameters[0].Value = F_ExpandId;
- // int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
- // if (rows > 0)
- // {
- // return true;
- // }
- // else
- // {
- // return false;
- // }
- // }
- // /// <summary>
- // /// 批量删除数据
- // /// </summary>
- // public bool DeleteList(string F_ExpandIdlist)
- // {
- // StringBuilder strSql = new StringBuilder();
- // strSql.Append("delete from T_Cus_CustomerExpand ");
- // strSql.Append(" where F_ExpandId in (" + F_ExpandIdlist + ") ");
- // int rows = DbHelperSQL.ExecuteSql(strSql.ToString());
- // if (rows > 0)
- // {
- // return true;
- // }
- // else
- // {
- // return false;
- // }
- // }
- // /// <summary>
- // /// 得到一个对象实体
- // /// </summary>
- // public CallCenterApi.Model.T_Cus_CustomerExpand GetModel(Guid F_ExpandId)
- // {
- // StringBuilder strSql = new StringBuilder();
- // strSql.Append("select top 1 F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_TypeExpand1,F_TypeExpand2,F_IntExpand1,F_IntExpand2,F_TimeExpand1,F_TimeExpand2,F_TextExpand1,F_TextExpand2 from T_Cus_CustomerExpand ");
- // strSql.Append(" where F_ExpandId=@F_ExpandId ");
- // SqlParameter[] parameters = {
- // new SqlParameter("@F_ExpandId", SqlDbType.UniqueIdentifier,16) };
- // parameters[0].Value = F_ExpandId;
- // CallCenterApi.Model.T_Cus_CustomerExpand model = new CallCenterApi.Model.T_Cus_CustomerExpand();
- // DataSet ds = DbHelperSQL.Query(strSql.ToString(), parameters);
- // if (ds.Tables[0].Rows.Count > 0)
- // {
- // return DataRowToModel(ds.Tables[0].Rows[0]);
- // }
- // else
- // {
- // return null;
- // }
- // }
- // /// <summary>
- // /// 得到一个对象实体
- // /// </summary>
- // public CallCenterApi.Model.T_Cus_CustomerExpand DataRowToModel(DataRow row)
- // {
- // CallCenterApi.Model.T_Cus_CustomerExpand model = new CallCenterApi.Model.T_Cus_CustomerExpand();
- // if (row != null)
- // {
- // if (row["F_ExpandId"] != null && row["F_ExpandId"].ToString() != "")
- // {
- // model.F_ExpandId = new Guid(row["F_ExpandId"].ToString());
- // }
- // if (row["F_CustomerId"] != null && row["F_CustomerId"].ToString() != "")
- // {
- // model.F_CustomerId = new Guid(row["F_CustomerId"].ToString());
- // }
- // if (row["F_StrExpand1"] != null)
- // {
- // model.F_StrExpand1 = row["F_StrExpand1"].ToString();
- // }
- // if (row["F_StrExpand2"] != null)
- // {
- // model.F_StrExpand2 = row["F_StrExpand2"].ToString();
- // }
- // if (row["F_StrExpand3"] != null)
- // {
- // model.F_StrExpand3 = row["F_StrExpand3"].ToString();
- // }
- // if (row["F_StrExpand4"] != null)
- // {
- // model.F_StrExpand4 = row["F_StrExpand4"].ToString();
- // }
- // if (row["F_StrExpand5"] != null)
- // {
- // model.F_StrExpand5 = row["F_StrExpand5"].ToString();
- // }
- // if (row["F_StrExpand6"] != null)
- // {
- // model.F_StrExpand6 = row["F_StrExpand6"].ToString();
- // }
- // if (row["F_TypeExpand1"] != null)
- // {
- // model.F_TypeExpand1 = row["F_TypeExpand1"].ToString();
- // }
- // if (row["F_TypeExpand2"] != null)
- // {
- // model.F_TypeExpand2 = row["F_TypeExpand2"].ToString();
- // }
- // if (row["F_IntExpand1"] != null && row["F_IntExpand1"].ToString() != "")
- // {
- // model.F_IntExpand1 = int.Parse(row["F_IntExpand1"].ToString());
- // }
- // if (row["F_IntExpand2"] != null && row["F_IntExpand2"].ToString() != "")
- // {
- // model.F_IntExpand2 = int.Parse(row["F_IntExpand2"].ToString());
- // }
- // if (row["F_TimeExpand1"] != null && row["F_TimeExpand1"].ToString() != "")
- // {
- // model.F_TimeExpand1 = DateTime.Parse(row["F_TimeExpand1"].ToString());
- // }
- // if (row["F_TimeExpand2"] != null && row["F_TimeExpand2"].ToString() != "")
- // {
- // model.F_TimeExpand2 = DateTime.Parse(row["F_TimeExpand2"].ToString());
- // }
- // if (row["F_TextExpand1"] != null)
- // {
- // model.F_TextExpand1 = row["F_TextExpand1"].ToString();
- // }
- // if (row["F_TextExpand2"] != null)
- // {
- // model.F_TextExpand2 = row["F_TextExpand2"].ToString();
- // }
- // }
- // return model;
- // }
- // /// <summary>
- // /// 获得数据列表
- // /// </summary>
- // public DataSet GetList(string strWhere)
- // {
- // StringBuilder strSql = new StringBuilder();
- // strSql.Append("select F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_TypeExpand1,F_TypeExpand2,F_IntExpand1,F_IntExpand2,F_TimeExpand1,F_TimeExpand2,F_TextExpand1,F_TextExpand2 ");
- // strSql.Append(" FROM T_Cus_CustomerExpand ");
- // if (strWhere.Trim() != "")
- // {
- // strSql.Append(" where " + strWhere);
- // }
- // return DbHelperSQL.Query(strSql.ToString());
- // }
- // /// <summary>
- // /// 获得前几行数据
- // /// </summary>
- // public DataSet GetList(int Top, string strWhere, string filedOrder)
- // {
- // StringBuilder strSql = new StringBuilder();
- // strSql.Append("select ");
- // if (Top > 0)
- // {
- // strSql.Append(" top " + Top.ToString());
- // }
- // strSql.Append(" F_ExpandId,F_CustomerId,F_StrExpand1,F_StrExpand2,F_StrExpand3,F_StrExpand4,F_StrExpand5,F_StrExpand6,F_TypeExpand1,F_TypeExpand2,F_IntExpand1,F_IntExpand2,F_TimeExpand1,F_TimeExpand2,F_TextExpand1,F_TextExpand2 ");
- // strSql.Append(" FROM T_Cus_CustomerExpand ");
- // if (strWhere.Trim() != "")
- // {
- // strSql.Append(" where " + strWhere);
- // }
- // strSql.Append(" order by " + filedOrder);
- // return DbHelperSQL.Query(strSql.ToString());
- // }
- // /// <summary>
- // /// 获取记录总数
- // /// </summary>
- // public int GetRecordCount(string strWhere)
- // {
- // StringBuilder strSql = new StringBuilder();
- // strSql.Append("select count(1) FROM T_Cus_CustomerExpand ");
- // if (strWhere.Trim() != "")
- // {
- // strSql.Append(" where " + strWhere);
- // }
- // object obj = DbHelperSQL.GetSingle(strSql.ToString());
- // if (obj == null)
- // {
- // return 0;
- // }
- // else
- // {
- // return Convert.ToInt32(obj);
- // }
- // }
- // /// <summary>
- // /// 分页获取数据列表
- // /// </summary>
- // public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
- // {
- // StringBuilder strSql = new StringBuilder();
- // strSql.Append("SELECT * FROM ( ");
- // strSql.Append(" SELECT ROW_NUMBER() OVER (");
- // if (!string.IsNullOrEmpty(orderby.Trim()))
- // {
- // strSql.Append("order by T." + orderby);
- // }
- // else
- // {
- // strSql.Append("order by T.F_ExpandId desc");
- // }
- // strSql.Append(")AS Row, T.* from T_Cus_CustomerExpand T ");
- // if (!string.IsNullOrEmpty(strWhere.Trim()))
- // {
- // strSql.Append(" WHERE " + strWhere);
- // }
- // strSql.Append(" ) TT");
- // strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
- // return DbHelperSQL.Query(strSql.ToString());
- // }
- // /*
- ///// <summary>
- ///// 分页获取数据列表
- ///// </summary>
- //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
- //{
- // SqlParameter[] parameters = {
- // new SqlParameter("@tblName", SqlDbType.VarChar, 255),
- // new SqlParameter("@fldName", SqlDbType.VarChar, 255),
- // new SqlParameter("@PageSize", SqlDbType.Int),
- // new SqlParameter("@PageIndex", SqlDbType.Int),
- // new SqlParameter("@IsReCount", SqlDbType.Bit),
- // new SqlParameter("@OrderType", SqlDbType.Bit),
- // new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
- // };
- // parameters[0].Value = "T_Cus_CustomerExpand";
- // parameters[1].Value = "F_ExpandId";
- // parameters[2].Value = PageSize;
- // parameters[3].Value = PageIndex;
- // parameters[4].Value = 0;
- // parameters[5].Value = 0;
- // parameters[6].Value = strWhere;
- // return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
- //}*/
- // #endregion BasicMethod
- // #region ExtensionMethod
- // #endregion ExtensionMethod
- }
- }
|