Esempio n. 1
0
        //
        //进行验证
        //
        private void btn_Verify_Click(object sender, RoutedEventArgs e)
        {
            User_Verify f = new User_Verify();

            f.ShowDialog();
            if (f.Result_InspectUser == true && f.SysUser.Privilege == "工程师" || f.SysUser.Privilege == "系统管理员" ||
                f.SysUser.Privilege == "助理" || f.SysUser.Privilege == "主管")
            {
                _W_LabVerify.UserID   = f.SysUser.UserID;
                _W_LabVerify.IsVerify = "1";
                if (MCP_CS.LabVerify.Update(_W_LabVerify))
                {
                    My_MessageBox.My_MessageBox_Message("更新成功!");
                    dgv_Not_Verify.ItemsSource = MCP_CS.LabVerify.GetModelList(" (IsVerify = '0') ");
                    image1.Source = null;
                    dgv_InspecStandard.ItemsSource = null;
                }
            }
            else
            {
                My_MessageBox.My_MessageBox_Message("未执行,操作被用户终止!或未通过验证 请确定您是否有权限进行此次操作!");
            }
        }