static void Main(string[] args) { ContractList sy = new Contract(@".\syContract.ini");//获取子系统中的合同号 List<Sys_Contract> sy_contracts=(List<Sys_Contract >)sy.GetList(); ContractList kc = new Contract(@".\kcContract.ini");//获取子系统中的合同号 List<Sys_Contract> kc_contracts = (List<Sys_Contract>)kc.GetList(); ContractList mContractor = new MainContractor(@".\mainContract.ini"); List<MainContract> msc = (List< MainContract >) mContractor.GetList(); TicketList syor = new Ticket(@".\syContract.ini"); List<SysTicket> sy_Tickets= (List<SysTicket>)syor.GetList(); TicketList kcor = new Ticket(@".\kcContract.ini"); List<SysTicket> kc_Tickets = (List<SysTicket>)kcor.GetList(); List<SysTicket> t = new List<SysTicket>(); t.AddRange(kc_Tickets); t.AddRange(sy_Tickets); //Ticketor ticketor = new Ticketor(t,msc); //Ticket_sum tm = ticketor["物业费"].GetByDate(2018, 9); //Ticket_sum tm1 = ticketor["固定租金"].GetByDate(2018, 9); //double fee = tm1.GetTicketSum(10); }
private void Reload_All() { sy = new Contract(@".\syContract.ini");//获取子系统中的合同号 sy_contracts = (List <Sys_Contract>)sy.GetList(); kc = new Contract(@".\kcContract.ini");//获取子系统中的合同号 kc_contracts = (List <Sys_Contract>)kc.GetList(); mContractor = new MainContractor(@".\mainContract.ini"); msc = (List <MainContract>)mContractor.GetList(); syor = new Ticket(@".\syContract.ini"); sy_Tickets = (List <SysTicket>)syor.GetList(); kcor = new Ticket(@".\kcContract.ini"); kc_Tickets = (List <SysTicket>)kcor.GetList(); All_Tickets = new List <SysTicket>(); All_Tickets.AddRange(kc_Tickets); All_Tickets.AddRange(sy_Tickets); _AreaList = GetAllArea(); tkor = new Ticktor(All_Tickets, msc); ckor = new Clockor(@".\syContract.ini"); _Clocks = ckor.GetList(); tkor.ImportClock(_Clocks); }