示例#1
0
        public ResponseModel GetGlCombo()
        {
            var data = _aGlAccount.SelectAll().Where(x => x.ParentId != null).Select(a => new
            {
                id   = a.A_GlAccountId,
                text = a.Name + "(" + a.Code + ")"
            }).ToList();

            var aaa = data.ToList();

            return(_aModel.Respons(data));
        }
示例#2
0
        public ResponseModel A_GlAccountCombo()
        {
            var data = _aGlAccount.SelectAll().Where(gl => gl.TransactionAllowed == true).Select(a => new
            {
                id   = a.A_GlAccountId,
                text = a.Name + "(" + a.Code + ")"
            }).ToList();

            //var aaa = data.ToList();
            return(_aModel.Respons(data));
        }