首页 新闻 会员 周边

可访问性不一致是什么问题

0
[已解决问题] 解决于 2017-07-04 15:18

public List<CwMonthKcInfo> GetListCwMonthKc(int year, int month)
{
StringBuilder sql = new StringBuilder();
sql.Append(" 1=1 ");
sql.AppendFormat(" and year(BillDate)={0} and month(BillDate)={1}", year, month);
WhereClip where = WhereClip.Format(sql.ToString());
List<CwMonthKcInfo> listReturn = new List<CwMonthKcInfo>();
IDBAccessFacade accessFacade = this.GetDBAccessFacade(typeof(CwOutInOrderKc));
IResultAccess result = accessFacade.Select(0, "productNo,WaleNo,Kind,ProductShow,sum(productNum)", where, "productNo,WaleNo,Kind,ProductShow", null, null, 0, 0, false);
if (result.Table != null)
{
foreach (DataRow row in result.Table.Rows)
{
CwMonthKcInfo stat = new CwMonthKcInfo();
stat.productNo = row[0].ToString();
stat.waleNo = row[1].ToString();
stat.kind = short.Parse(row[2].ToString());
stat.productShow = row[3].ToString();
stat.prodcutNum = int.Parse(row[4].ToString());
listReturn.Add(stat);
}
}
return listReturn;
}

如何是好啊的主页 如何是好啊 | 菜鸟二级 | 园豆:206
提问于:2017-05-14 15:39
< >
分享
最佳答案
0

CwMonthKcInfo 不是public的

 

奖励园豆:5
吴瑞祥 | 高人七级 |园豆:29449 | 2017-05-14 17:22
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册