Beispiel #1
0
        private async void button2_Click(object sender, EventArgs e)
        {
            ChongGuanSafetySupervisionQZ.DAL.UserDAL userDAL = new DAL.UserDAL();

            ResultData <QZ_User> result = await userDAL.Add(new QZ_User
            {
                AreaCode                = "shit",
                IsDeleteId              = 0,
                LoginName               = "张晓坤" + DateTime.Now.Ticks,
                IsForbidden             = 0,
                LoginPwd                = "123456",
                UserAge                 = "18",
                UserCard                = "123",
                UserCode                = "sb123",
                UserEmail               = "*****@*****.**",
                UserFingerImageFilePath = "sb",
                UserLawCard             = "sb",
                UserName                = "******",
                UserPhone               = "1334324",
                UserSex                 = "sy",
                UserPhotoFilePath       = "sss"
            });

            if (result.IsSuccessed)
            {
                XtraMessageBox.Show(result.Data.UserName, result.Data.UserId.ToString(), MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
            else
            {
                XtraMessageBox.Show("sb", result.Message, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
        }
Beispiel #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     ChongGuanSafetySupervisionQZ.DAL.UserDAL userDAL = new DAL.UserDAL();
     userDAL.Login(new QZ_User {
         LoginName = "mayun", LoginPwd = "dashabi"
     });
 }