Пример #1
0
 /// <summary>
 /// ������ϸ����ͳ����Ϣ��
 /// </summary>
 /// <param name="stat"></param>
 /// <param name="g"></param>
 /// <param name="ft"></param>
 /// <param name="x"></param>
 /// <param name="y"></param>
 private void DrawStatInfo(BillStatInfo stat, Graphics g, Font ft,int x,int y)
 {
     g.DrawString(stat.BillCount.ToString(), ft, sb, x+1, y);
     g.DrawLine(new Pen(sb, 0.1f), x, y + 3, x+10, y + 3);
     g.DrawString("��", ft, sb, x+10, y);
     g.DrawString(stat.TotalFee.ToString("F2"), ft, sb, x+15, y);
     g.DrawLine(new Pen(sb, 0.1f), x+14, y + 3, x+29, y + 3);
     g.DrawString("Ԫ", ft, sb, x+29, y);
 }
Пример #2
0
 private BillStatInfo StatBillInfo(BillType type)
 {
     BillStatInfo stat = new BillStatInfo();
     foreach (LdtBillInfo bill in LdtBills)
     {
         if (bill.Type != type)
             continue;
         stat.BillCount++;
         stat.TotalFee += bill.Fee;
     }
     return stat;
 }