private static (List <VM_Branch> branches, List <BranchMeter> branchMeters) getBranchesAndBranchMeter(int PID) { //读取所有仪表 var meters = MeterDAL.GetViewListByPID(PID); //读取所有支路 var branches = BranchDAL.GetViewListByPID(PID); var branchMeters = ModelLink.BranchMeterLink(branches, meters); return(branches, branchMeters); }