private void Get_Bzjg(ListView lv)//获取标准价格 { string str_sql = "("; foreach (ListViewItem item in lv.Items) { str_sql = str_sql + "'" + item.Tag.ToString().Trim() + "',"; } str_sql = str_sql.Substring(0, str_sql.Length - 1); if (str_sql.Length > 0) { str_sql = str_sql + ")"; } if (str_sql == "") { txt_bzjg.Text = "0.00"; } else { txt_bzjg.Text = ywszbiz.Get_ZhxmJg(str_sql); } try { txt_jg.Text = (Convert.ToDecimal(txt_bzjg.Text) * Convert.ToDecimal(txt_dz.Text) / 100).ToString("0.00"); } catch { } }