Esempio n. 1
0
        public static DataOfRepair FindDataOfRepair(string phone)
        {
            DataOfRepair dor = new DataOfRepair();

            dor.Village             = repairHelper.GetHistoryRepairByPhone(phone).FirstOrDefault();
            dor.Villages            = repairHelper.GetAllVillage().ToList();
            dor.OveruseRepair       = repairHelper.GetOveruseRepair();
            dor.Record              = RecordHelper.GetRecordByPhone(phone);
            dor.HasUnFinishedRepair = repairHelper.HasUnFinishedRepairByPhone(phone);
            return(dor);
        }
Esempio n. 2
0
        public static DataOfLasterRepair FindDataOfLasterRepairByPhone(string phone)
        {
            DataOfLasterRepair dolr = new Helper.DataOfLasterRepair();

            dolr.Village = repairHelper.GetAllVillage().FirstOrDefault(item => item.Name == RecordHelper.GetRecordByPhone(phone).Address);
            var ceshi = repairHelper.GetHistoryRepairByPhone(phone);

            dolr.Repair = ceshi == null ? null : ceshi.ToList();
            return(dolr);
        }