日期:2014-05-17 浏览次数:21062 次
public static int yjxf = 0;
public static string yjxfkh = "";
private void b_allfee_Click(object sender, EventArgs e)
{
zxf = 0;
yjxf = 0;
if (l_cardshare_list.Items.Count > 0)
{
foreach (string czk_je in l_cardshare_list.Items)
{
if(czk_je.Substring(czk_je.IndexOf("会员卡号:") + 4,10) == "1216000001")
{
yjxf += Convert.ToInt32(czk_je.Substring(czk_je.IndexOf("消费:") + 3));
yjxfkh = czk_je.Substring(czk_je.IndexOf("会员卡号:") + 4,10);
}
zxf += Convert.ToInt32(czk_je.Substring(czk_je.IndexOf("消费:") + 3));
}
return;
}
else
{
l_czk_xfe.Text = "0";
}
}
if (t_cardid.Text.Length == 27)
{
MessageBox.Show(t_cardid.Text.Substring(0, 10) + Environment.NewLine +
park_fee_out.yjxfkh + Environment.NewLine +
Convert.ToInt32(park_fee_out.yjxf).ToString());
string shared_sql = "select * from storevaulecard_data where storevaluecard_cardid =
'" + t_cardid.Text + "'";
SqlConnection