Exemple #1
0
        private void BtnOK_Click(object sender, RoutedEventArgs e)
        {
            CpsUserVM vm = new CpsUserVM()
            {
                SysNo = SysNo, Status = AuditStatus.AuditNoClearance, AuditNoClearanceInfo = txtInfo.Text
            };

            facade.AuditUser(vm, (obj, arg) =>
            {
                if (arg.FaultsHandle())
                {
                    return;
                }
                CPApplication.Current.CurrentPage.Context.Window.Alert("审核成功!");
                CloseDialog(DialogResultType.OK);
            });
        }
        private void hlAuditClearance_Click(object sender, RoutedEventArgs e)
        {
            dynamic   d  = this.CpsUserResult.SelectedItem;
            CpsUserVM vm = new CpsUserVM()
            {
                SysNo = d.SysNo, Status = AuditStatus.AuditClearance
            };

            facade.AuditUser(vm, (obj, arg) =>
            {
                if (arg.FaultsHandle())
                {
                    return;
                }
                Window.MessageBox.Show("审核成功!", MessageBoxType.Success);
                this.CpsUserResult.Bind();
            });
        }