コード例 #1
0
 /// <summary>
 /// 绑定数据
 /// </summary>
 private void BindData()
 {
     if (SystemID > 0)
     {
         try
         {
             SystemInfo system = biService.GetSystem(SystemID);
             if (system != null)
             {
                 txtId.Text              = system.ID.ToString();
                 txtName.Text            = system.Name;
                 rblstatus.SelectedValue = ((int)system.Status).ToString();
                 txtDescription.Text     = system.Description;
                 txtMd5Key.Text          = system.Md5Key;
                 txtUrl.Text             = system.Url;
             }
         }
         catch (NotRightException)
         {
             AlertBack("您没有权限执行此操作");
         }
     }
 }