Esempio n. 1
0
        private double CalculateCurrentRowDeducts(string strMethod, string strDistress, string strSeverity, double dAmount, double dArea)
        {
            PCIMethodObject method = Validation.PCIMethods.Find(delegate(PCIMethodObject pciMethod){ return(pciMethod.Method == strMethod); });

            if (method == null)
            {
                return(0.0);
            }

            double dPCIDeduct = 0.0;

            if (PciDistress.IsWASHCLKMethod(method.Method))
            {
                double dExtent   = dAmount / dArea;
                string extent    = string.Format("{0:F2}", dExtent);
                int    nDistress = method.GetDistress(strDistress);
                dPCIDeduct = PciDistress.pvt_ComputeNonPCIDeduct(method.Method, nDistress, strSeverity, dExtent);
            }
            else
            {
                dPCIDeduct = PciDistress.pvt_ComputePCIDeduct(method.GetDistress(strDistress), strSeverity, dAmount, dArea);
            }
            return(dPCIDeduct);
        }
Esempio n. 2
0
 public bool IsWASHCLKMethod(string s) => PciDistress.IsWASHCLKMethod(s);