asp.net ת»»ÈËÃñ±Ò´óС½ð¶î
using System;
using System.Collections.Generic;
using System.Text;
namespace Common
{
/// <summary>
/// ת»»ÈËÃñ±Ò´óС½ð¶î¡£
/// </summary>
public class Rmb
{
/// <summary>
/// ת»»ÈËÃñ±Ò´óС½ð¶î
/// </summary>
/// <param name="num">½ð¶î</param>
/// <returns>·µ»Ø´óдÐÎʽ</returns>
public static string CmycurD(decimal num)
{
string str1 = "ÁãÒ¼·¡ÈþËÁÎé½Æâ°Æ¾Á"; //0-9Ëù¶ÔÓ¦µÄºº×Ö
string str2 = "ÍòǪ°ÛʰÒÚǪ°ÛʰÍòǪ°ÛʰԪ½Ç·Ö"; //Êý×ÖλËù¶ÔÓ¦µÄºº×Ö
string str3 = ""; //´ÓÔnumÖµÖÐÈ¡³öµÄÖµ
string str4 = ""; //Êý×ÖµÄ×Ö·û´®ÐÎʽ
string str5 = ""; //ÈËÃñ±Ò´óд½ð¶îÐÎʽ
int i; //Ñ»·±äÁ¿
int j; //numµÄÖµ³ËÒÔ100µÄ×Ö·û´®³¤¶È
string ch1 = ""; //Êý×ֵĺºÓï¶Á·¨
string ch2 = ""; //Êý×ÖλµÄºº×Ö¶Á·¨
int nzero = 0; //ÓÃÀ´¼ÆËãÁ¬ÐøµÄÁãÖµÊǼ¸¸ö
int temp; //´ÓÔnumÖµÖÐÈ¡³öµÄÖµ
num = Math.Round(Math.Abs(num), 2); //½«numÈ¡¾ø¶ÔÖµ²¢ËÄÉáÎåÈëÈ¡2λСÊý
str4 = ((long)(num * 100)).ToString(); //½«num³Ë100²¢×ª»»³É×Ö·û´®ÐÎʽ
j = str4.Length; //ÕÒ³ö×î¸ßλ
if (j > 15) { return "Òç³ö"; }
str2 = str2.Substring(15 - j); //È¡³ö¶ÔӦλÊýµÄstr2µÄÖµ¡£È磺200.55,jΪ5ËùÒÔstr2=°ÛʰԪ½Ç·Ö
//Ñ»·È¡³öÿһλÐèҪת»»µÄÖµ
for (i = 0; i < j; i++)
{
str3 = str4.Substring(i, 1); //È¡³öÐèת»»µÄijһλµÄÖµ
temp = Convert.ToInt32(str3); //ת»»ÎªÊý×Ö
if (i != (j - 3) && i != (j - 7) && i != (j - 11) && i != (j - 15))
{
//µ±ËùȡλÊý²»ÎªÔª¡¢Íò¡¢ÒÚ¡¢ÍòÒÚÉϵÄÊý×Öʱ
if (str3 == "0")
{
ch1 = "";
ch2 = "";
nzero = nzero + 1;
}
else
{
if (str3 != "0" && nzero != 0)
{
ch1 = "Áã" + str1.Substring(temp * 1, 1);
ch2 = str2.Substring(i, 1);
nzero = 0;
}
else
{
ch1 = str1.Substring(temp * 1, 1);
ch2 = str2.Substring(i, 1);
nzero = 0;
}
}
}
else
{
//¸ÃλÊÇÍòÒÚ£¬ÒÚ£¬Íò£¬ÔªÎ»µÈ¹Ø¼üλ
if (str3 != "0" && nzero != 0)
{
ch1 = "Áã" + str1.Substring(temp * 1, 1);
ch2 = str2.Substring(i, 1);
nzero = 0;
}
else
{
Ïà¹ØÎĵµ£º
using System;
using System.Data;
using System.Diagnostics;
using System.Collections.Generic;
using MySql.Data.MySqlClient;
namespace System
{
/// <summary>
/// Description of MySqlDBUtil.
/// </summary>
public class MySqlDBUtil
{
&nbs ......
public void CreatXml(int oid)
{
XmlTextWriter writer = null;
string fileName ="a"+ oid.ToString() + ".xml";
  ......
ÍøÕ¾ÖÐä¯ÀÀÆ÷»º´æµÄ¿ØÖÆ(IIS+ASP.Net)
ÔÚIIS6.0 + Windows Server 2003ͨ¹ý²âÊÔ¡£ÈçÓдíÎó¾´ÇëÖ¸Õý¡£
1¡¢ IIS¿ØÖÆ£¨¶ÔJsµÈÎļþ£©£º
ÔÚIIS¹ÜÀíÆ÷Öв鿴ÎļþÊôÐÔ£¬ÔÚHTTPÍ·µÄTabÒ³ÖУ¬ÉèÖÓÆôÓÃÄÚÈݹýÆÚ”¡£
l IISÄ¬È ......