|  |  |  | 
|---|
|  |  |  | private static String openValveDt ; | 
|---|
|  |  |  | private static String closeValveDt ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static Integer instantAmount = 10123;//瞬时流量10.000 | 
|---|
|  |  |  | public static Integer totalAmount = 1234567;//实为12345.67 | 
|---|
|  |  |  | public static Integer remainMoney = 56789;//实为567.89 | 
|---|
|  |  |  | public static Integer thisAmount = 1000;//实为10.00 | 
|---|
|  |  |  | public static Integer thisMoney = 1000;//实为10.00 | 
|---|
|  |  |  | public static Integer thisAmount = 0;// | 
|---|
|  |  |  | public static Integer thisMoney = 0;// | 
|---|
|  |  |  | public static Integer thisTime = 10;//实为10 | 
|---|
|  |  |  | public static Integer thisPrice = 100;//实为1.00 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static Integer perAmount = thisAmount; | 
|---|
|  |  |  | public static Integer perMoney = thisMoney; | 
|---|
|  |  |  | public static Integer perAmount = 10; | 
|---|
|  |  |  | public static Integer perMoney = 0; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static void clearOpenValveDt(){ | 
|---|
|  |  |  | 
|---|
|  |  |  | return closeValveDt ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static void closeValve(){ | 
|---|
|  |  |  | public static void addValve(){ | 
|---|
|  |  |  | perMoney = perAmount / (thisPrice / 100) ; | 
|---|
|  |  |  | thisAmount += perAmount ; | 
|---|
|  |  |  | thisMoney += perMoney ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | totalAmount = totalAmount + perAmount ; | 
|---|
|  |  |  | remainMoney = remainMoney - perMoney ; | 
|---|
|  |  |  | } | 
|---|