protected void grdTheoDoiTienCODGiaTri_ClickDup(object sender, DirectEventArgs e) { string json = e.ExtraParams["ValuesGT"]; if (json == "") { return; } Dictionary <string, string>[] companies = JSON.Deserialize <Dictionary <string, string>[]>(json); string _MaBuuCuc = "0"; DateTime _TuNgay = DateTime.Now, _DenNgay = DateTime.Now; Double _ST = 0; foreach (Dictionary <string, string> row in companies) { try { _MaBuuCuc = row["Ma"]; _TuNgay = DateTime.Parse(row["TuNgay"]); _DenNgay = DateTime.Parse(row["DenNgay"]); _ST = Convert.ToDouble(row["GiaTri"]); } catch { _MaBuuCuc = "0"; } } if (_MaBuuCuc != "0") { string _url; _url = UIHelper.daPhien.LayDiaChiURL("/TienCOD/frmTheoDoiTienCODGiaTri_CTiet.aspx?gtTuNgay=" + _TuNgay.ToShortDateString() + "&>DenNgay=" + _DenNgay.ToShortDateString() + "&>MaDonVi=" + _MaBuuCuc + "&>SoTien=" + SoTien.ToString() + "&>GiaTri=" + _ST.ToString()); string script = "window.open('" + _url + "', '')"; this.grdTheoDoiTienCODGiaTri.AddScript(script); } }
public override string ToString() { return(string.Format("LH{0} - Môn học: {1} - Ca: {2} - Ngày học: {3} - Số lượng HV: {4} - Số tiền: {5} VNĐ", MaLH.ToString(), MonHocBUS.Instance.getMonHoc((int)MonHoc).TenMH, CaHoc, NgayHoc, SoLuongHV, SoTien.ToString())); }