Ejemplo n.º 1
0
        private void BindData()
        {
            CreditCardType creditCardType = CreditCardTypeManager.GetCreditCardTypeById(this.CreditCardTypeId);

            if (creditCardType != null)
            {
                this.txtName.Text          = creditCardType.Name;
                this.txtSystemKeyword.Text = creditCardType.SystemKeyword;
                this.txtDisplayOrder.Value = creditCardType.DisplayOrder;
            }
        }
Ejemplo n.º 2
0
        public CreditCardType SaveInfo()
        {
            CreditCardType creditCardType = CreditCardTypeManager.GetCreditCardTypeById(this.CreditCardTypeId);

            if (creditCardType != null)
            {
                creditCardType = CreditCardTypeManager.UpdateCreditCardType(creditCardType.CreditCardTypeId, txtName.Text,
                                                                            txtSystemKeyword.Text, txtDisplayOrder.Value, creditCardType.Deleted);
            }
            else
            {
                creditCardType = CreditCardTypeManager.InsertCreditCardType(txtName.Text, txtSystemKeyword.Text, txtDisplayOrder.Value, false);
            }

            return(creditCardType);
        }