コード例 #1
0
        /// <summary>
        /// 删除账号信息
        /// </summary>
        /// <param name="id">账号标识</param>
        /// <returns></returns>
        public string DelBankAccount(string id)
        {
            bool   result = new BankAccountSvc().DelBankAccount(id);
            string msg    = string.Empty;

            if (result)
            {
                msg = General.Resource.Common.Success;
            }
            else
            {
                msg = General.Resource.Common.Failed;
            }
            return(string.Format("{{\"Result\":{0},\"Msg\":\"{1}\"}}"
                                 , result.ToString().ToLower(), msg));
        }
コード例 #2
0
        /// <summary>
        /// 更新账号信息
        /// </summary>
        /// <param name="bankAccount">账号信息对象</param>
        /// <returns></returns>
        public string UpdBankAccount(T_BankAccount bankAccount)
        {
            bankAccount.C_GUID = Session["CurrentCompany"].ToString();
            bool   result = new BankAccountSvc().UpdBankAccount(bankAccount);
            string msg    = string.Empty;

            if (result)
            {
                msg = General.Resource.Common.Success;
            }
            else
            {
                msg = General.Resource.Common.Failed;
            }
            return(string.Format("{{\"Result\":{0},\"Msg\":\"{1}\"}}"
                                 , result.ToString().ToLower(), msg));
        }