Esempio n. 1
0
        public void LayDSQuyen()
        {
            Quyen        quyen = new Quyen();
            List <Quyen> tb    = quyen.LayDanhSachQuyen(1, 0, "", "");
            var          js    = new JavaScriptSerializer();

            Context.Response.Write(JsonConvert.SerializeObject(tb));
        }
Esempio n. 2
0
 /// <summary>
 /// Load thong tin danh sach quyen tren he thong
 /// </summary>
 private void LoadQuyen()
 {
     StringBuilder str_chk = new StringBuilder();
     Quyen bs_quyen = new Quyen();
     List<Quyen> quyen_col= bs_quyen.LayDanhSachQuyen(1,0,"","");
     foreach(Quyen quyen in quyen_col)
     {
         //str_chk.AppendFormat("<div class='checkbox'><label><input type = 'checkbox' name='chk' id='chk_{0}' value='{1}'/>{2}</label></div>", quyen.Ma_Quyen, quyen.ID_Quyen, quyen.Ten_Quyen);
         str_chk.AppendFormat("<option value='{0}'>{1}</option>", quyen.ID_Quyen, quyen.Ten_Quyen);
     }
     lit_quyentruycap.Text = str_chk.ToString();
     
                         
 }
Esempio n. 3
0
 public void ThemMoiQuyen(int action, int id_quyen, string tenquyen, string maquyen)
 {
     Quyen        quyen = new Quyen();
     List <Quyen> tb    = quyen.LayDanhSachQuyen(action, id_quyen, tenquyen, maquyen);
 }