示例#1
0
        private static void BuildMeterCreate(int PID, List <VM_Branch> branches, List <BranchMeter> branchMeters)
        {
            //清空BuildMeter表
            BuildMeterDAL.DeleteByPID(PID);
            var buildMeters = ModelLink.BuildMeterLink(branches, branchMeters);

            CommonDAL.CreateMultiple(buildMeters);
        }
示例#2
0
        public static void BuildMeterCreate(int PID)
        {
            var result = getBranchesAndBranchMeter(PID);

            //清空BuildMeter表
            BuildMeterDAL.DeleteByPID(PID);
            var buildMeters = ModelLink.BuildMeterLink(result.branches, result.branchMeters);

            CommonDAL.CreateMultiple(buildMeters);
        }