private void FrmTongHopKinhPhi_Load(object sender, EventArgs e) { int namketoan = GetXmlInfo.GetNamKeToan(); cboNam.Text = namketoan.ToString(); BindGrid(); }
private void LoadThamSoHeThong() { General.lstThamSo = InfoService.GetAll(); foreach (Info tmp in General.lstThamSo) { switch (tmp.Ma) { case "p_TenDv": General.TenDv = tmp.GiaTri; break; case "p_DiaChi": General.DiaChi = tmp.GiaTri; break; case "p_KB_Dv": General.KBDv = tmp.GiaTri; break; case "p_Ma_TKKT": General.MaTkkt = tmp.GiaTri; break; case "p_Ma_DV_QHNS": General.MaDvQhns = tmp.GiaTri; break; } } General.NamKeToan = GetXmlInfo.GetNamKeToan(); }
private void btnThucHien_Click(object sender, EventArgs e) { string namketoan = cboNam.Text; General.NamKeToan = int.Parse(cboNam.Text); GetXmlInfo.WriteInfo(namketoan); this.Close(); }