示例#1
0
        public void LayDSNguoiDuyet()
        {
            NguoiDung        nguoidung = new NguoiDung();
            List <NguoiDung> tb        = nguoidung.LayDanhSachNguoiDung(1, 0, "", "", "", "", false, true, false, false, false, "", false);
            var js = new JavaScriptSerializer();

            Context.Response.Write(JsonConvert.SerializeObject(tb));
        }
示例#2
0
        public void ThemMoiNguoiDung(int action, int id_nguoidung, string tendangnhap, string tenhienthi, int id_phongban, string email, bool dangsudung, bool quanly, bool admin, bool quanlykho, bool quanlymuahang, string matkhau, bool domain)
        {
            NguoiDung        nguoidung = new NguoiDung();
            List <NguoiDung> tb        = nguoidung.LayDanhSachNguoiDung(action, id_nguoidung, tendangnhap, tenhienthi, Convert.ToString(id_phongban), email, dangsudung, quanly, admin, quanlykho, quanlymuahang, matkhau, domain);
            var js = new JavaScriptSerializer();

            Context.Response.Write(JsonConvert.SerializeObject(tb));
        }
示例#3
0
 private void LoadNguoiDung()
 {
     StringBuilder str_nguoidung = new StringBuilder();
     NguoiDung bs_nguoidung = new NguoiDung();
     List<NguoiDung> nguoidung_col = bs_nguoidung.LayDanhSachNguoiDung(1,0,"","","","",false,false,false,false,false,"",false);
     foreach (NguoiDung nd in nguoidung_col)
     {
         str_nguoidung.AppendFormat("<option value='{0}'>{1}</option>", nd.ID_NguoiDung,nd.Ten_Hien_Thi);
     }
     lit_nguoidung.Text = str_nguoidung.ToString();
 }