如何计算服务税 [英] how to the service tax calulation

查看:102
本文介绍了如何计算服务税的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用c Sharp设计应用程序.

因为我有以下三列.

租金,柴油服务,服务税.


租金231270

柴油发动机19767

Ser Tax 30124(231270 + 19767 * 12/100).

代码如下;

double o = Convert.ToDouble(txt_rentalcost.Text);
double p = Convert.ToDouble(txt_dieselservice.Text);
txt_servicetax.Text = Math.Round((o + p)* 0.12).ToString();


我当时正在计算服务税,服务税是12%.假设明年服务税的百分比是12.36,如何计算.请帮助我.我发送mu码也请帮助我.

Rgds,
Narasiman P

i design application using c sharp.

in that i have threecolumn as follows.

Rental cost ,Diesel service, Service Tax.


Rental Cost 231270

Diesel ser 19767

Ser Tax 30124(231270 + 19767 * 12/100).

Code as follows;

double o = Convert.ToDouble(txt_rentalcost.Text);
double p = Convert.ToDouble(txt_dieselservice.Text);
txt_servicetax.Text = Math.Round((o + p) * 0.12).ToString();


i am doing service tax calculation at that time service tax is 12 percentage.suppose in next year service tax percentage is 12.36 how to do that calculation.please help me.i send mu code also please help me.

Rgds,
Narasiman P

推荐答案

我会将服务税值放在app.config(如果是Windows应用程序)或web.config(如果是asp.net应用程序)中. 然后在进行如下计算之前,先在代码中读取此值

I would put service tax value in app.config (if windows application) or web.config(if asp.net application).
Then read this value in the code prior to calculation as below

if(ConfigurationManager.AppSettings.Get("ServiceTax") != null)
{
  double serviceTax = Convert.ToDouble(ConfigurationManager.AppSettings.Get("ServiceTax"));
 txt_servicetax.Text = Math.Round((o + p) * serviceTax).ToString();

}



希望有帮助.

Milind



Hope that helps.

Milind


这篇关于如何计算服务税的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆