예제 #1
0
파일: UserView.cs 프로젝트: whuacn/CJia
 //删除用户
 private void BtnDelete_Click(object sender, EventArgs e)
 {
     CJia.PIVAS.Views.DataManage.UserEventArgs userArgs = new Views.DataManage.UserEventArgs();
     if (GridViewUser.FocusedRowHandle >= 0)
     {
         if (CJia.PIVAS.Tools.Message.ShowQuery("确认是否删除", CJia.PIVAS.Tools.Message.Button.YesNo) == CJia.PIVAS.Tools.Message.Result.Yes)
         {
             userArgs.CreateBy = User.UserId;
             userArgs.UserId   = long.Parse(GridViewUser.GetFocusedDataRow()["USER_ID"].ToString());
             this.OnDeleteUser(null, userArgs);
             this.OnLoadData(null, null);
         }
         {
             return;
         }
     }
     else
     {
         CJia.PIVAS.Tools.Message.Show("请选择数据");
     }
 }