//显示总积分
int jifen_counts = 0;
RYJL.BLL.jifen_log jifen_logBLL = new RYJL.BLL.jifen_log();
List<RYJL.Model.jifen_log> jifen_loglist = jifen_logBLL.GetModelList("KaNumber='" + this.TxtKaNumber.Text + "'");
if (jifen_loglist.Count > 0)
{
for (int ii = 0; ii < jifen_loglist.Count; ii++)
{
jifen_counts += jifen_loglist[ii].JiFen;
}
this.TxtJiFen.Text = jifen_counts.ToString();//设置该列显示
}
else
{
this.TxtJiFen.Text = "0";//设置该列显示
}
int jifen_counts = 0;
RYJL.BLL.jifen_log jifen_logBLL = new RYJL.BLL.jifen_log();
List<RYJL.Model.jifen_log> jifen_loglist = jifen_logBLL.GetModelList("KaNumber='" + this.TxtKaNumber.Text + "'");
if (jifen_loglist.Count > 0)
{
for (int ii = 0; ii < jifen_loglist.Count; ii++)
{
jifen_counts += jifen_loglist[ii].JiFen;
}
this.TxtJiFen.Text = jifen_counts.ToString();//设置该列显示
}
else
{
this.TxtJiFen.Text = "0";//设置该列显示
}