コード例 #1
0
ファイル: FCreateAccount.cs プロジェクト: fanzh0513/caika365
        protected override void Execute(Hashtable Params)
        {
            switch (ActionUtil.GetCmd(Params))
            {
            case ActionUtil.AutoRun:
                CBTypes.Items.Add(account_type.NormalAcount);
                CBTypes.Items.Add(account_type.VirtualAccount);
                CBTypes.Items.Add(account_type.AgentAccount);
                CBTypes.Items.Add(account_type.ManageAccount);
                CBTypes.SelectedIndex = 0;

                _objValidationHelper.Add(TxtAccountID);
                _objValidationHelper.Add(TxtPassword);
                _objValidationHelper.Add(TxtConfirm);
                _objValidationHelper.Add(CBTypes);
                _objValidationHelper.Add(TxtParentAgent);

                standardGrid1.DataMember = DictSet.TableName;
                standardGrid1.DataSource = MemberDBUtils.GetMemberDigest(GetControl());

                _objValidationHelper.ResetAllState(false, false);
                _objValidationHelper.ValidateAll();
                break;
            }

            base.Execute(Params);
        }
コード例 #2
0
        private void BtnOK_Click(object sender, EventArgs e)
        {
            if (!_objValidationHelper.ValidateAll())
            {
                AlertBox.ShowWarning("窗体输入项存在校检错误,请核对!", this, MessageBoxButtons.OK);
                return;
            }

            DialogResult = System.Windows.Forms.DialogResult.OK;
        }
コード例 #3
0
        protected override void Execute(System.Collections.Hashtable Params)
        {
            switch (ActionUtil.GetCmd(Params))
            {
            case ActionUtil.AutoRun:
                _objValidationHelper = new ControlValidationHelper(errorProvider1);
                _objValidationHelper.Add(TxtPassword);
                _objValidationHelper.Add(TxtConfirm);

                _objValidationHelper.ResetAllState(false, false);
                _objValidationHelper.ValidateAll();
                break;
            }

            base.Execute(Params);
        }