Exemple #1
0
        /// <summary>
        /// 获取列表
        /// </summary>
        /// <returns></returns>
        public static List <CustManageModel> GetModelList()
        {
            List <Customer>        list     = CustomerService.GetCustomerList();
            List <CustManageModel> custlist = new List <CustManageModel>();

            foreach (Customer i in list)
            {
                CustManageModel node = new CustManageModel();
                node.CustID     = i.CustomerID;
                node.IDNumber   = i.IDNumber;
                node.Name       = i.Name;
                node.CustDegree = CustDegreeService.FindCustDegreeByID(i.DrgreeID).DegreeName;
                node.Money      = i.TotalMoney;
                node.CheckCount = i.CheckInCount;
                node.CustStatus = CustStatusService.FindCustStatusByID(i.StatusID).StatusName;
                custlist.Add(node);
            }

            return(custlist);
        }
Exemple #2
0
        public static bool IsFreeCash(string idnumber)
        {
            int id = CustomerService.FindCustomerListByCodeOrID(-1, idnumber, 2).DrgreeID;

            return(CustDegreeService.FindCustDegreeByID(id).PledgeCashDisCount == 1 ? false : true);
        }
Exemple #3
0
        public static double GetDegreeDisCount(string idnumber)
        {
            int id = CustomerService.FindCustomerListByCodeOrID(-1, idnumber, 2).DrgreeID;

            return(CustDegreeService.FindCustDegreeByID(id).RoomDiscount);
        }