第3个回答 2011-06-25
你交了增值税就不需要再提营业税,税务局要你交1000元增值税全部入应缴税金借方,你认为多缴的也让他留在应缴税帐户内,暂时不作处理 ,因为你还应有每月大于1000元的
可把一年或半年相抵后仍存在的多缴差额转入营业外支岀,
还有增值税是没有预交也不存在预交的
第4个回答 2011-07-13
import java.io.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
public class incomingtax {
private Shell sShell = null; // 创建各类可视化组件
private Button button = null;
private Text text = null;
private Label label = null;
private Text textArea = null;
private Label label1 = null;
private Button button1 = null;
private Text textArea1 = null;
private Label label2 = null;
private Label label3 = null;
private static final String NEW_LINE = System.getProperty("line.separator"); //静态的String,字符分割
private boolean hasChanged = false; //定义一个boolean变量,当文本被更改时为ture
private void createSShell() { //创建窗体及定义各种方法
sShell = new Shell(SWT.BORDER | SWT.SHELL_TRIM | SWT.PRIMARY_MODAL);
button = new Button(sShell, SWT.NONE);
text = new Text(sShell, SWT.BORDER);
label = new Label(sShell, SWT.CENTER);
textArea = new Text(sShell, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL | SWT.BORDER);
label1 = new Label(sShell, SWT.CENTER);
button1 = new Button(sShell, SWT.NONE);
textArea1 = new Text(sShell, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL | SWT.BORDER);
label2 = new Label(sShell, SWT.CENTER);
label3 = new Label(sShell, SWT.CENTER);
button.setBounds(new org.eclipse.swt.graphics.Rectangle(232,153,54,35));
button.setText("Open");
text.setBounds(new org.eclipse.swt.graphics.Rectangle(223,80,72,20));
label.setBounds(new org.eclipse.swt.graphics.Rectangle(203,45,110,26));
label.setText("TAX FREE");
textArea.setBounds(new org.eclipse.swt.graphics.Rectangle(5,39,169,341));
label1.setBounds(new org.eclipse.swt.graphics.Rectangle(347,4,119,15));
label1.setText("TAXABLE INCOME");
button1.setBounds(new org.eclipse.swt.graphics.Rectangle(231,215,51,35));
button1.setText("Save");
textArea1.setBounds(new org.eclipse.swt.graphics.Rectangle(328,39,171,335));
label2.setBounds(new org.eclipse.swt.graphics.Rectangle(23,5,130,14));
label2.setText("INCOME TAX");
sShell.setText("NEGATIVE INCOME TAX");
sShell.setMinimized(false);
sShell.setMaximized(false);
label3.setBounds(new org.eclipse.swt.graphics.Rectangle(178,354,146,17));
label3.setText("MADE BY YANGKUN");
sShell.setSize(new org.eclipse.swt.graphics.Point(512,417));
button
.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
public void widgetSelected(
org.eclipse.swt.events.SelectionEvent e) {
loadFile(); //监听button的单击事件,当单击时,调用loadFile()方法
}
});
button1
.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
public void widgetSelected(
org.eclipse.swt.events.SelectionEvent e) {
saveFile(); //监听button1的单击事件,当单击时,调用saveFile()方法
}
});
}
public static void main(String[] args) {
//要运行SWT,必须在VM中设置
// -Djava.library.path="installation_directory\plugins\org.eclipse.swt.win32_3.0.1\os\win32\x86"
org.eclipse.swt.widgets.Display display = org.eclipse.swt.widgets.Display.getDefault();
incomingtax test = new incomingtax();
test.createSShell() ;
test.sShell.open();
while (!test.sShell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep ();
}
display.dispose();
}
private void loadFile(){
FileDialog dialog = new FileDialog(sShell, SWT.OPEN); //创建一个打开的对话框
String result = dialog.open(); //将要打开的文件路径,赋值给String变量 result
if (result != null) {
File f = new File(result);
double shuie = 0;
double jine = 0;
double jianfye = Double.parseDouble(text.getText()); //从text组件中,获取文本
try {
BufferedReader br = new BufferedReader(new FileReader(f)); //开启缓存给打开文件
StringBuffer buff = new StringBuffer(); //建立新的流缓存br
String line = br.readLine(); //当br读一行文本时,赋值给line
String out = new String(); //创建空String,out
String out2 = out;
while (line != null) { //line不为null的时候,一直循环
shuie = Double.parseDouble(line); //line的值,转换为double进行运算
if(shuie>29625){
jine = (shuie+15375)/0.45+jianfye;
}else if(shuie>21625){
jine = (shuie+10375)/0.4+jianfye;
}else if(shuie>14625){
jine = (shuie+6375)/0.35+jianfye;
}else if(shuie>8625){
jine = (shuie+3625)/0.3+jianfye;
}else if(shuie>3625){
jine = (shuie+1375)/0.25+jianfye;
}else if(shuie>625){
jine = (shuie+375)/0.2+jianfye;
}else if(shuie>175){
jine = (shuie+125)/0.15+jianfye;
}else if(shuie>25){
jine = (shuie+25)/0.1+jianfye;
}else{
jine = shuie/0.05+jianfye;
}
out = String.valueOf(jine); //变量jine,以String的形式赋值给out
out2=out2+"\n"+out; //进行String累加
buff.append(line + NEW_LINE); //已读取的文本加换行线
line = br.readLine(); //继续读下一行
}
textArea.setText(buff.toString()); //将buff变量流化后,赋值给容器textArea
textArea1.setText(out2);
br.close(); //关闭br
hasChanged = false; //进行是否更改判断
} catch (FileNotFoundException e1) { //抛出异常的处理
e1.printStackTrace();
} catch (IOException e1) {
e1.printStackTrace();
}
}
}
private void saveFile() {
FileDialog dialog = new FileDialog(sShell, SWT.SAVE); //创建一个保存对话框
String result = dialog.open(); //将保存的路径赋值给result
if (result != null) {
File f = new File(result);
try {
BufferedWriter bw = new BufferedWriter(new FileWriter(f)); //开启写文件流
String text = textArea1.getText(); //将容器textArea中的文本赋值给String值text
bw.write(text); //将text中的值写入文本
bw.close(); //关系bw通道
hasChanged = false; //是否更改判断
} catch (FileNotFoundException e1) { //抛出异常的处理
e1.printStackTrace();
} catch (IOException e1) {
e1.printStackTrace();
}
}
}
}
另外,站长团上有产品团购,便宜有保证