public void RefeshData(Object sender, EventArgs e) { List <Jkd> li = new JkdManager().GetList(deBegin.Text + " 00:00:00", deEnd.Text + " 23:59:59", cbeJKR.Text); MoneyConvertChinese mcc = new MoneyConvertChinese(); li.ForEach(item => item.JeDX = mcc.MoneyToChinese(item.Je.ToString())); gridControl1.DataSource = li.Where(item => item.Isdelete == 0).ToList(); }
private void sbPrint_Click(bool flag) { myaccount.dysj = DateTime.Now; new AccountManager().Update(myaccount); XtraReport xr = new JdkRep(); List <Jkd> myjkd = new JkdManager().GetList(int.Parse(teID.Text.Trim())); MoneyConvertChinese mcc = new MoneyConvertChinese(); myjkd.ForEach(item => item.JeDX = mcc.MoneyToChinese(item.Je.ToString())); xr.DataSource = myjkd; new MyReport(xr, "JdkRep.repx", flag); }