Commit ed05a45a authored by solho's avatar solho

報價規則及其他修改

parent fc859bb5
......@@ -163,7 +163,7 @@
</site>
<site name="WebAPI" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="D:\work\翼勝\WADE\WEB_CODE\WebAPI" />
<virtualDirectory path="/" physicalPath="D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI" />
</application>
<bindings>
<binding protocol="https" bindingInformation="*:44339:localhost" />
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
namespace WebAPI.App_Code
{
public class CommonFunc
{
public static void aa()
{
}
}
}
\ No newline at end of file
using System;
using System.Collections;
using ClosedXML.Excel;
using ExcelDataReader;
using Microsoft.International.Formatters;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Http;
using ExcelDataReader;
using Wade.Business;
using Wade.Common;
using Wade.Model;
using System.Runtime.InteropServices;
using Newtonsoft.Json;
using System.Drawing.Design;
using System.Web.Http.Cors;
using System.ComponentModel;
using ClosedXML.Excel;
namespace WebAPI.Controllers
{
......@@ -48,17 +44,53 @@ namespace WebAPI.Controllers
public int Count { get; set; }
public int rejectCount { get; set; }
}
public class 核稿歷史Excel
{
/// <summary>
/// 流程ID
/// </summary>
public String eflow_id { get; set; }
public String create_time { get; set; }
public String Reject_Count { get; set; }
public String case_volume { get; set; }
public String proc_id { get; set; }
public String first_doc_date { get; set; }
public String int_doc_date { get; set; }
/// <summary>
/// 內核時長
/// </summary>
public String Audit_day { get; set; }
/// <summary>
/// 委案日
/// </summary>
public String charge_date { get; set; }
/// <summary>
/// 承辦人
/// </summary>
public String pic_UserCName { get; set; }
public String revise_curEmpName { get; set; }
public String ctrl_proc_zh_cn { get; set; }
public List<String> Reject_audit_time = new List<String>();
public List<String> Submit_audit_time = new List<String>();
}
public class MessageList
{
public List<Message> msglist; //報價規則
public List<核稿歷史> CurHislist; //核稿評分歷史
public List<核稿歷史Excel> CurHislist_Excel; //核稿評分歷史
public int CurHislist_Count; //核稿評分歷史
public int ListCode //回傳代碼
, ErrCount; //錯誤筆數
public String Listmsg; //回傳訊息
}
public class CurHisParam {
public class CurHisParam
{
public String trids { get; set; }
public String isCount { get; set; }
......@@ -71,7 +103,6 @@ namespace WebAPI.Controllers
{
Outmsg = new MessageList();
}
private CtrlBaseInfo BSS = new CtrlBaseInfo();
private List<Dictionary<string, string>> FCCate = new List<Dictionary<string, string>>();
private String u_user_id;
......@@ -174,7 +205,7 @@ namespace WebAPI.Controllers
public HttpResponse Download_cur_hiss_Excel(String trids)
{
String eflowids = trids;
MessageList msg = Get_cur_hiss(trids); ;
MessageList msg = Get_cur_hiss_for_Excel(trids);
String TmpPath = HttpContext.Current.Server.MapPath(@"~" + "/Template/核稿歷史樣板.xlsx");
HttpResponse response = System.Web.HttpContext.Current.Response;
HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK);
......@@ -184,39 +215,44 @@ namespace WebAPI.Controllers
using (XLWorkbook wb = new XLWorkbook(TmpPath))
{
IXLWorksheet worksheet = wb.Worksheet(1);
int curRow = 2, curcell = 1;
int curRow = 3, curcell = 1, Rownum = 1;
foreach (核稿歷史 chis in msg.CurHislist)
foreach (核稿歷史Excel chis in msg.CurHislist_Excel)
{
ClosedXML.Excel.IXLCells cells = worksheet.Row(curRow).Cells();
curcell = 1;
worksheet.Cell(curRow, curcell).Value = Rownum; Rownum++;
curcell++;
worksheet.Cell(curRow, curcell).Value = chis.case_volume;
curcell++;
worksheet.Cell(curRow, curcell).Value = chis.case_type_zh_tw;
worksheet.Cell(curRow, curcell).Value = chis.charge_date;
curcell++;
worksheet.Cell(curRow, curcell).Value = chis.audit_cn_name;
worksheet.Cell(curRow, curcell).Value = chis.create_time;
curcell++;
worksheet.Cell(curRow, curcell).Value = chis.audit_time;
worksheet.Cell(curRow, curcell).Value = chis.ctrl_proc_zh_cn;
curcell++;
worksheet.Cell(curRow, curcell).Value = chis.remark;
worksheet.Cell(curRow, curcell).Value = chis.pic_UserCName;
curcell++;
worksheet.Cell(curRow, curcell).Value = chis.audit_type_zh_cn;
worksheet.Cell(curRow, curcell).Value = chis.revise_curEmpName;
curcell++;
worksheet.Cell(curRow, curcell).Value = chis.to_cn_name;
worksheet.Cell(curRow, curcell).Value = chis.Reject_Count;
for (int i = 0; i < chis.Submit_audit_time.Count; i++)
{
curcell++;
worksheet.Cell(curRow, curcell).Value = chis.ctrl_proc_zh_tw;
worksheet.Cell(curRow, curcell).Value = chis.Submit_audit_time[i];
curcell++;
worksheet.Cell(curRow, curcell).Value = chis.proc_status_zh_tw;
worksheet.Cell(curRow, curcell).Value = chis.Reject_audit_time[i];
}
curcell++;
worksheet.Cell(curRow, curcell).Value = chis.finish_date;
worksheet.Cell(curRow, curcell).Value = chis.int_doc_date;
curcell++;
worksheet.Cell(curRow, curcell).Value = chis.score;
//案號 案件類型 辦理人員 辦理時間 辦理意見 辦理結果 交付人員 處理事項 科目 處理事項狀態 完成日期 核稿總分
worksheet.Cell(curRow, curcell).Value = chis.Audit_day;
curRow++;
}
worksheet.Columns().AdjustToContents();
//worksheet.Columns().AdjustToContents();
//worksheet.Rows().AdjustToContents();
wb.SaveAs(ms);
response.Clear();
response.AddHeader("Content-Disposition", "attachment; filename=" + "RecordExport_" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xls");
......@@ -225,27 +261,141 @@ namespace WebAPI.Controllers
ms.Close();
response.End();
}
}
catch (Exception e)
{
result.Content = new StringContent(e.Message);
}
return response;
}
/// <summary>
/// 取得多個ID時歷史資料
/// </summary>
/// <param name="trids"></param>
/// <returns></returns>
public MessageList Get_cur_hiss_for_Excel(String trids)
{
String connString = ConfigurationManager.ConnectionStrings["eflow_cur"].ConnectionString;
HttpRequest Req = HttpContext.Current.Request;
List<核稿歷史Excel> Hislist = new List<核稿歷史Excel>();
try
{
//result.Content = new StringContent(WriteTsv(msg.CurHislist));
String[] strids = String.IsNullOrEmpty(Req.Form["trids"]) ? "".Split(',') : Req.Form["trids"].Split(',');
using (SqlConnection Conn = new SqlConnection(connString))
{
核稿歷史Excel hisT = new 核稿歷史Excel();
SqlCommand cmd = new SqlCommand("", Conn);
String Tid = "";
var parameters = new string[strids.Length];
for (int i = 0; i < strids.Length; i++)
{
Tid = strids[i];
if (!String.IsNullOrEmpty(Tid))
{
parameters[i] = string.Format("@id{0}", i);
cmd.Parameters.AddWithValue(parameters[i], Tid);
}
}
//result.Content = new StreamContent(ms);
//result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.ms-excel");
#region Sql語句設定
String Cte = String.Format(@";with cte as(
select a.case_id,a.eflow_id,a.is_submit,a.pic_user_id,a.proc_id,b.status,d.ctrl_proc_zh_tw,d.case_volume,d.case_type_zh_tw,d.proc_status_zh_tw,
Convert(varchar(10) ,d.finish_date, 111) as finish_date,d.first_doc_date,d.int_doc_date,d.create_time,f.charge_date
, case when audit_id='reject' then 1 when audit_id='submit' then 2 else 0 end as IsReject ,c.audit_time
,e.audit_type_zh_cn,g.pic_UserCName,h.revise_curEmpName,d.ctrl_proc_zh_cn
from p_eflow a
left join s_flow_activity b on a.eflow_id=b.obj_id
left join s_flow_history c on a.eflow_id=c.obj_id
left join evw_p_proc_info d on a.proc_id=d.proc_id
left join s_audit_type e on c.audit_type_id=e.audit_id
left join evw_p_case_info f on d.case_id=f.case_id
left join evw_p_proc_pic_list g on g.obj_id=d.proc_id
left join evw_p_revise_user_list h on h.obj_id=d.proc_id
where a.eflow_id IN ({0})
) ", string.Join(",", parameters)),
MaxCount = @"select max(count) as maxCount from
(
select count(case when IsReject=1 then 1 else null end) as count,max(audit_time) as Max_audit_time
,MIN(audit_time) as Min_audit_time,eflow_id
from cte
group by eflow_id
) aa
",
Result = @"select create_time,eflow_id,count,case_volume,proc_id,first_doc_date,Convert(varchar(10),int_doc_date, 111) as int_doc_date
,Audit_day,charge_date,pic_UserCName,revise_curEmpName,ctrl_proc_zh_cn
@auditString
from (
select ROW_NUMBER() OVER(PARTITION BY cte.eflow_id,cte.IsReject ORDER BY audit_time) as ROWID,cte.create_time,cte.eflow_id, cte2.count,cte.case_volume,cte.proc_id,
cte.first_doc_date,int_doc_date,DATEDIFF(Day, first_doc_date,int_doc_date) as Audit_day,cte.audit_time,cte.IsReject,charge_date,pic_UserCName,revise_curEmpName,ctrl_proc_zh_cn
from cte
left join ( select count(case when IsReject=1 then 1 else null end) as count, max(audit_time) as Max_audit_time, MIN(audit_time) as Min_audit_time, eflow_id from cte
group by eflow_id) as cte2 on cte.eflow_id = cte2.eflow_id
) aa
group by create_time, eflow_id, count, case_volume, proc_id, first_doc_date, int_doc_date, Audit_day, charge_date, pic_UserCName, revise_curEmpName,ctrl_proc_zh_cn"
;
#endregion
StringBuilder auditString = new StringBuilder(""); int auditCount=10;
cmd.CommandText = Cte + MaxCount;
DataSet ds = GetSqlToDs(cmd);
foreach (DataRow dr in ds.Tables[0].Rows)
{
auditCount = Convert.ToInt16(dr["maxCount"]);
}
catch (Exception e)
auditCount = 7;//test 動態完成待處理
for (int i = 1; i <= auditCount; i++)
{
result.Content = new StringContent(e.Message);
auditString.Append("," + "max(case when ROWID=" + i + " and aa.IsReject=1 then aa.audit_time end) as t" + i);
auditString.Append("," + "max(case when ROWID=" + i + " and aa.IsReject=2 then aa.audit_time end) as s" + i);
}
cmd.CommandText = (Cte+ Result).Replace("@auditString", auditString.ToString());
ds = GetSqlToDs(cmd);
//result.Content.Headers.ContentType.CharSet = "BIG-5";
//result.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment")
//{
// DispositionType = "UTF-8"
//}; //attachment will force download
//result.Content.Headers.ContentDisposition.FileName = "RecordExport_"+ DateTime.Now.ToString("yyyyMMddHHmmss") + ".xls";
//result.Content.Headers.Add("CodePage", Encoding.ASCII.CodePage.ToString());
return response;
foreach (DataRow dr in ds.Tables[0].Rows)
{
hisT = new 核稿歷史Excel()
{
case_volume = dr["case_volume"].ToString(),
create_time = dr["create_time"].ToString(),
Reject_Count = dr["count"].ToString(),
proc_id = dr["proc_id"].ToString(),
first_doc_date = dr["first_doc_date"].ToString(),
int_doc_date = dr["int_doc_date"].ToString(),
eflow_id = dr["eflow_id"].ToString(),
charge_date = dr["charge_date"].ToString(),
pic_UserCName = dr["pic_UserCName"].ToString(),
Audit_day = dr["Audit_day"].ToString(),
revise_curEmpName = dr["revise_curEmpName"].ToString(),
ctrl_proc_zh_cn = dr["ctrl_proc_zh_cn"].ToString()
};
try
{
for (int i = 1; i <= auditCount; i++)
{
hisT.Reject_audit_time.Add((dr["t" + i] == null ? "":dr["t" + i].ToString()));
hisT.Submit_audit_time.Add((dr["s" + i] == null ? "" : dr["s" + i].ToString()));
}
Hislist.Add(hisT);
}
catch
{
}
}
}
Outmsg.CurHislist_Excel = Hislist;
Outmsg.ListCode = 0;
Outmsg.Listmsg = "上傳成功";
}
catch (Exception e)
{
Outmsg.ListCode = 1;
Outmsg.Listmsg = "Exception:" + e.StackTrace;
}
return Outmsg;
}
/// <summary>
......@@ -316,8 +466,7 @@ namespace WebAPI.Controllers
hisT = new 核稿歷史()
{
eflow_id = dr["eflow_id"].ToString(),
Count = dr["count"].GetInt(),
rejectCount= dr["rejectCount"].GetInt()
Count = Convert.ToInt32(dr["count"])
};
}
else
......@@ -417,7 +566,7 @@ namespace WebAPI.Controllers
hisT = new 核稿歷史()
{
eflow_id = dr["eflow_id"].ToString(),
Count = dr["count"].GetInt()
Count = Convert.ToInt32(dr["count"])
};
}
else
......@@ -868,9 +1017,9 @@ namespace WebAPI.Controllers
cmd.Parameters.AddWithValue("@item_fee_small", Convert.ToDouble(item["item_fee_small"].ToString()));
cmd.Parameters.AddWithValue("@item_fee_micro", Convert.ToDouble(item["item_fee_micro"].ToString()));
cmd.Parameters.AddWithValue("@item_unit", item["item_unit"].ToString());
cmd.Parameters.AddWithValue("@is_shibao", item["is_shibao"].IsEquivalent("是") || item["is_shibao"].IsEquivalent("Y") ? 1 : 0);
cmd.Parameters.AddWithValue("@is_gean", item["is_gean"].IsEquivalent("是") || item["is_gean"].IsEquivalent("Y") ? 1 : 0);
cmd.Parameters.AddWithValue("@is_item_fee", item["is_item_fee"].IsEquivalent("是") || item["is_item_fee"].IsEquivalent("Y") ? 1 : 0);
cmd.Parameters.AddWithValue("@is_shibao", item["is_shibao"]== "是" || item["is_shibao"]== "Y" ? 1 : 0);
cmd.Parameters.AddWithValue("@is_gean", item["is_gean"]== "是" || item["is_gean"]== "Y" ? 1 : 0);
cmd.Parameters.AddWithValue("@is_item_fee", item["is_item_fee"]== "是" || item["is_item_fee"]== "Y" ? 1 : 0);
cmd.Parameters.AddWithValue("@fc_cate_id", item["fc_cate_id"].ToString());
cmd.Parameters.AddWithValue("@fee_cate_workitem", item["fee_cate_workitem"].ToString());
cmd.Parameters.AddWithValue("@update_user_id", item["update_user_id"].ToString());
......@@ -914,9 +1063,9 @@ namespace WebAPI.Controllers
cmd.Parameters.AddWithValue("@item_fee_small", Convert.ToDouble(item["item_fee_small"].ToString()));
cmd.Parameters.AddWithValue("@item_fee_micro", Convert.ToDouble(item["item_fee_micro"].ToString()));
cmd.Parameters.AddWithValue("@item_unit", item["item_unit"].ToString());
cmd.Parameters.AddWithValue("@is_shibao", item["is_shibao"].IsEquivalent("是") || item["is_shibao"].IsEquivalent("Y") ? 1 : 0);
cmd.Parameters.AddWithValue("@is_gean", item["is_gean"].IsEquivalent("是") || item["is_gean"].IsEquivalent("Y") ? 1 : 0);
cmd.Parameters.AddWithValue("@is_item_fee", item["is_item_fee"].IsEquivalent("是") || item["is_item_fee"].IsEquivalent("Y") ? 1 : 0);
cmd.Parameters.AddWithValue("@is_shibao", item["is_shibao"]== "是" || item["is_shibao"]== "Y" ? 1 : 0);
cmd.Parameters.AddWithValue("@is_gean", item["is_gean"]== "是" || item["is_gean"]== "Y" ? 1 : 0);
cmd.Parameters.AddWithValue("@is_item_fee", item["is_item_fee"]== "是" || item["is_item_fee"]== "Y" ? 1 : 0);
cmd.Parameters.AddWithValue("@fc_cate_id", item["fc_cate_id"].ToString());
cmd.Parameters.AddWithValue("@fee_cate_workitem", item["fee_cate_workitem"].ToString());
cmd.Parameters.AddWithValue("@update_user_id", item["update_user_id"].ToString());
......@@ -980,9 +1129,9 @@ namespace WebAPI.Controllers
cmd.Parameters.AddWithValue("@item_exceed_unit", item["item_exceed_unit"].ToString());
cmd.Parameters.AddWithValue("@item_fee", Convert.ToDouble(item["item_fee"].ToString()));
cmd.Parameters.AddWithValue("@item_unit", item["item_unit"].ToString());
cmd.Parameters.AddWithValue("@is_shibao", item["is_shibao"].IsEquivalent("是") || item["is_shibao"].IsEquivalent("Y") ? 1 : 0);
cmd.Parameters.AddWithValue("@is_gean", item["is_gean"].IsEquivalent("是") || item["is_gean"].IsEquivalent("Y") ? 1 : 0);
cmd.Parameters.AddWithValue("@is_item_fee", item["is_item_fee"].IsEquivalent("是") || item["is_item_fee"].IsEquivalent("Y") ? 1 : 0);
cmd.Parameters.AddWithValue("@is_shibao", item["is_shibao"]== "是" || item["is_shibao"]== "Y" ? 1 : 0);
cmd.Parameters.AddWithValue("@is_gean", item["is_gean"]== "是" || item["is_gean"]== "Y" ? 1 : 0);
cmd.Parameters.AddWithValue("@is_item_fee", item["is_item_fee"]== "是" || item["is_item_fee"]== "Y" ? 1 : 0);
cmd.Parameters.AddWithValue("@review_stage", item["case_status_id"].ToString());
cmd.Parameters.AddWithValue("@is_export", 1);
......@@ -1009,7 +1158,7 @@ namespace WebAPI.Controllers
string str = @"SELECT case_type_id,case_type_zh_tw FROM dbo.i_case_type; SELECT apply_type_id,apply_type_zh_tw FROM dbo.i_apply_type
SELECT ctrl_proc_id,case_type_id,ctrl_proc_zh_tw FROM dbo.i_ctrl_proc where is_enabled=1;
SELECT business_type_id,business_type_zh_tw FROM dbo.i_business_type where isnull(business_type_zh_tw,'') <> ''; SELECT fc_cate_id,text_zh_tw FROM dbo.i_fc_category where is_enabled=1;
select customer_id,customer_name_en,customer_name from c_customer a where is_enabled=1 and isnull(customer_name,'') <> '';SELECT case_status_id,case_status_zh_tw FROM i_case_status;
select customer_id,customer_name_en,customer_name from c_customer a where is_enabled=1 and isnull(customer_name,'') <> '';SELECT case_status_id,case_status_zh_tw FROM i_case_status where isnull(case_status_zh_tw,'') <> '';
SELECT dictionary_id,value,text_zh_tw FROM dbo.s_dictionary WHERE dictionary_name = 'fee_cate_workitem'; SELECT dictionary_id,value,text_zh_tw FROM dbo.s_dictionary WHERE dictionary_name ='fo_tax_rate_name';
select currency_id,currency_name_zh_tw from i_currency a;select country_id,country_zh_tw from i_country a";
cmd.CommandText = str;
......@@ -1084,6 +1233,23 @@ namespace WebAPI.Controllers
#endregion
#region 共用函式
public string EastAsia_Format(string Msg)
{
Match m;
while ((m = Regex.Match(Msg, "\\d+")).Success)
{
int n = int.Parse(m.Value);
string t =
EastAsiaNumericFormatter.FormatWithCulture("Ln", n,
null, new CultureInfo("zh-TW"));
//"L"-大寫,壹貳參... "Ln"-一二三... "Lc"-貨幣,同L
Msg = Msg.Substring(0, m.Index) + t +
Msg.Substring(m.Index + m.Value.Length);
}
return Msg;
}
#endregion
#region 簡轉繁
internal const int LOCALE_SYSTEM_DEFAULT = 0x0800;
internal const int LCMAP_SIMPLIFIED_CHINESE = 0x02000000;
......
......@@ -10,7 +10,7 @@
</PropertyGroup>
<ItemGroup>
<File Include="App_Code/HelloWorldModule.cs">
<publishTime>09/30/2020 18:08:08</publishTime>
<publishTime>10/05/2020 15:02:01</publishTime>
</File>
<File Include="Areas/HelpPage/HelpPage.css">
<publishTime>06/30/2020 15:50:43</publishTime>
......@@ -382,10 +382,10 @@
<publishTime>10/19/2018 08:25:23</publishTime>
</File>
<File Include="bin/WebAPI.dll">
<publishTime>10/05/2020 11:09:54</publishTime>
<publishTime>10/14/2020 15:38:45</publishTime>
</File>
<File Include="bin/WebAPI.pdb">
<publishTime>10/05/2020 11:09:54</publishTime>
<publishTime>10/14/2020 15:38:45</publishTime>
</File>
<File Include="bin/WebGrease.dll">
<publishTime>01/23/2014 13:57:34</publishTime>
......@@ -517,7 +517,7 @@
<publishTime>06/30/2020 15:50:34</publishTime>
</File>
<File Include="Web.config">
<publishTime>10/05/2020 11:03:27</publishTime>
<publishTime>10/14/2020 15:38:46</publishTime>
</File>
</ItemGroup>
</Project>
\ No newline at end of file
......@@ -26,16 +26,16 @@
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
<modules>
<add name="HelloWorldModule" type="HelloWorldModule"/>
<add name="HelloWorldModule" type="HelloWorldModule" />
</modules>
<!--<httpProtocol>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="http://120.78.73.107:8888" />
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS" />
<add name="Access-Control-Allow-Headers" value="Content-Type,Accept" />
<add name="Access-Control-Allow-Credentials" value="true" />
</customHeaders>
</httpProtocol>-->
</httpProtocol>
<staticContent>
<clientCache cacheControlCustom="public" />
</staticContent>
......
......@@ -51,6 +51,9 @@
<Reference Include="DocumentFormat.OpenXml, Version=2.7.2.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17, processorArchitecture=MSIL">
<HintPath>packages\DocumentFormat.OpenXml.2.7.2\lib\net46\DocumentFormat.OpenXml.dll</HintPath>
</Reference>
<Reference Include="EastAsiaNumericFormatter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e1e67937c016e5b2, processorArchitecture=MSIL">
<HintPath>packages\EastAsiaNumericFormatter.1.0.0\lib\net40\EastAsiaNumericFormatter.dll</HintPath>
</Reference>
<Reference Include="ExcelDataReader, Version=3.6.0.0, Culture=neutral, PublicKeyToken=93517dbe6a4012fa, processorArchitecture=MSIL">
<HintPath>.\packages\ExcelDataReader.3.6.0\lib\net45\ExcelDataReader.dll</HintPath>
</Reference>
......@@ -136,25 +139,6 @@
<Private>True</Private>
<HintPath>.\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
</Reference>
<Reference Include="Wade.Business">
<HintPath>..\IPEasyTP\bin\Wade.Business.dll</HintPath>
</Reference>
<Reference Include="Wade.Common">
<HintPath>..\IPEasyTP\bin\Wade.Common.dll</HintPath>
</Reference>
<Reference Include="Wade.DAL">
<HintPath>..\IPEasyTP\bin\Wade.DAL.dll</HintPath>
</Reference>
<Reference Include="Wade.DataAccess, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\IPEasyTP\bin\Wade.DataAccess.dll</HintPath>
</Reference>
<Reference Include="Wade.IDAL">
<HintPath>..\IPEasyTP\bin\Wade.IDAL.dll</HintPath>
</Reference>
<Reference Include="Wade.Model">
<HintPath>..\IPEasyTP\bin\Wade.Model.dll</HintPath>
</Reference>
<Reference Include="WebGrease">
<Private>True</Private>
<HintPath>.\packages\WebGrease.1.6.0\lib\WebGrease.dll</HintPath>
......@@ -172,6 +156,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="App_Code\HelloWorldModule.cs" />
<Content Include="App_Code\CommonFunc.cs" />
<Compile Include="App_Start\BundleConfig.cs" />
<Compile Include="App_Start\FilterConfig.cs" />
<Compile Include="App_Start\RouteConfig.cs" />
......
<?xml version="1.0"?>
<doc>
<assembly>
<name>EastAsiaNumericFormatter</name>
</assembly>
<members>
<member name="T:Microsoft.International.Formatters.EastAsiaNumericFormatter">
<summary>
提供一个格式化类,把数值型的数据转换为东亚的本地数字表示形式的字符串。
</summary>
<remarks>
这个类支持以下的东亚语言:
<list type="bullet">
<item>
简体中文
</item>
<item>
繁体中文
</item>
<item>
日语
</item>
<item>
韩语
</item>
</list>
这个类支持以下格式化字符串:
<list type="bullet">
<item>
标准格式(L):又称大写。
</item>
<item>
普通格式(Ln):又称小写。
</item>
<item>
货币格式(Lc):用来表示货币。
</item>
<item>
字译格式(Lt):以数字符号字母表示数值型数据,只支持日文。
</item>
</list>
为了解释文化和格式化组合如何工作,我们将以“12345”举例。
<list type="bullet">
<item>
简体中文
<list type="bullet">
<item>
标准:壹万贰仟叁佰肆拾伍
</item>
<item>
普通:一万二千三百四十五
</item>
<item>
货币:壹万贰仟叁佰肆拾伍
</item>
<item>
字译:抛出ArgumentException异常
</item>
</list>
</item>
<item>
繁体中文
<list type="bullet">
<item>
标准:壹萬貳仟參佰肆拾伍
</item>
<item>
普通:一萬二千三百四十五
</item>
<item>
货币:壹萬貳仟參佰肆拾伍
</item>
<item>
字译:抛出ArgumentException异常
</item>
</list>
</item>
<item>
日语
<list type="bullet">
<item>
标准:壱萬弐阡参百四拾伍
</item>
<item>
普通:一万二千三百四十五
</item>
<item>
货币:抛出ArgumentException异常
</item>
<item>
字译:一二三四五
</item>
</list>
</item>
<item>
韩语
<list type="bullet">
<item>
标准:일만 이천삼백사십오
</item>
<item>
普通:抛出ArgumentException异常
</item>
<item>
货币:일만 이천삼백사십오
</item>
<item>
字译:抛出ArgumentException异常
</item>
</list>
</item>
<item>
其他语言:抛出ArgumentException异常
</item>
</list>
被支持的数据类型,包括 double、float、int、uint、long、ulong、short、ushort、sbyte、byte和decimal。
</remarks>
<example>
以下的代码演示了一个把数值转换为东亚的本地数字表示形式的字符串的实例。
<code source = "../../Example_CS/Program.cs" lang = "cs"></code>
<code source = "../../Example_VB/Main.vb" lang = "vbnet"></code>
<code source = "../../Example_CPP/Example_CPP.cpp" lang = "cpp"></code>
</example>
</member>
<member name="M:Microsoft.International.Formatters.EastAsiaNumericFormatter.#ctor">
<summary>
初始化EastAsiaNumericFormatter类的一个新实例。
</summary>
</member>
<member name="M:Microsoft.International.Formatters.EastAsiaNumericFormatter.GetFormat(System.Type)">
<summary>
返回一个实现了ICustomFormatter接口的格式化对象。
</summary>
<remarks>
请参阅<see cref="T:Microsoft.International.Formatters.EastAsiaNumericFormatter"/>来查看使用EastAsiaNumericFormatter的实例。
</remarks>
<param name="formatType">格式类型。</param>
<returns>
如果参数formatType是<see cref="T:System.ICustomFormatter"/>,则返回formatType本身,否则返回一个空引用。
</returns>
</member>
<member name="M:Microsoft.International.Formatters.EastAsiaNumericFormatter.Format(System.String,System.Object,System.IFormatProvider)">
<summary>
将对象格式化为东亚文化表示形式。
</summary>
<remarks>
请参阅<see cref="T:Microsoft.International.Formatters.EastAsiaNumericFormatter"/>来查看使用EastAsiaNumericFormatter的实例。
</remarks>
<param name="format">格式类型。</param>
<param name="arg">将被格式化的数据。</param>
<param name="formatProvider">格式提供者。</param>
<returns>用东亚语言格式化过的本地化字符串。</returns>
<exception cref="T:System.ArgumentNullException">
format,arg或者culture是一个空引用。
</exception>
<exception cref="T:System.ArgumentException">
localFmt在此文化中不被支持。
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
arg超出范围。
</exception>
<exception cref="T:System.ArgumentException">
arg是一个无效类型。
</exception>
</member>
<member name="M:Microsoft.International.Formatters.EastAsiaNumericFormatter.FormatWithCulture(System.String,System.Object,System.IFormatProvider,System.Globalization.CultureInfo)">
<summary>
将对象格式化为指定的东亚文化表示形式。
</summary>
<remarks>
请参阅<see cref="T:Microsoft.International.Formatters.EastAsiaNumericFormatter">EastAsiaNumericFormatter</see>以获取使用EastAsiaNumericFormatter的实例。
</remarks>
<param name="format">格式类型。</param>
<param name="arg">将被格式化的数据。</param>
<param name="formatProvider">格式提供者。</param>
<param name="culture">文化类型。</param>
<returns>用东亚语言格式化过的本地化字符串。</returns>
<exception cref="T:System.ArgumentNullException">
format,arg或者culture是一个空引用。
</exception>
<exception cref="T:System.ArgumentException">
localFmt在此文化中不被支持。
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
num超出范围。
</exception>
<exception cref="T:System.ArgumentException">
arg是一个无效类型。
</exception>
</member>
</members>
</doc>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="AutoUpdSoap" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://192.168.1.168/IPEasy/AutoUpdate/AutoUpd.asmx"
binding="basicHttpBinding" bindingConfiguration="AutoUpdSoap"
contract="AutoUpdateService.AutoUpdSoap" name="AutoUpdSoap" />
</client>
</system.serviceModel>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="WSFMSoap" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://192.168.1.254:8066/AutoUpdate/WSFM.asmx"
binding="basicHttpBinding" bindingConfiguration="WSFMSoap"
contract="WsFM.WSFMSoap" name="WSFMSoap" />
</client>
</system.serviceModel>
</configuration>
\ No newline at end of file
No preview for this file type
......@@ -26,11 +26,11 @@
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
<modules>
<add name="HelloWorldModule" type="HelloWorldModule"/>
<add name="HelloWorldModule" type="HelloWorldModule" />
</modules>
<!--<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="http://120.78.73.107:8888" />
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS" />
<add name="Access-Control-Allow-Headers" value="Content-Type,Accept" />
<add name="Access-Control-Allow-Credentials" value="true" />
......
No preview for this file type
......@@ -25,7 +25,7 @@ using System.Web;
if (context.Request.HttpMethod.ToUpper() == "OPTIONS")
{
context.Response.StatusCode = 200;
context.Response.End();
//context.Response.End();
}
}
}
......@@ -33,6 +33,7 @@
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS" />
<add name="Access-Control-Allow-Headers" value="Content-Type,Accept" />
<add name="Access-Control-Allow-Credentials" value="true" />
</customHeaders>
</httpProtocol>-->
<staticContent>
......
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="AutoUpdSoap" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://192.168.1.168/IPEasy/AutoUpdate/AutoUpd.asmx"
binding="basicHttpBinding" bindingConfiguration="AutoUpdSoap"
contract="AutoUpdateService.AutoUpdSoap" name="AutoUpdSoap" />
</client>
</system.serviceModel>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="WSFMSoap" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://192.168.1.254:8066/AutoUpdate/WSFM.asmx"
binding="basicHttpBinding" bindingConfiguration="WSFMSoap"
contract="WsFM.WSFMSoap" name="WSFMSoap" />
</client>
</system.serviceModel>
</configuration>
\ No newline at end of file
......@@ -33,6 +33,7 @@
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS" />
<add name="Access-Control-Allow-Headers" value="Content-Type,Accept" />
<add name="Access-Control-Allow-Credentials" value="true" />
</customHeaders>
</httpProtocol>-->
<staticContent>
......
......@@ -33,6 +33,7 @@
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS" />
<add name="Access-Control-Allow-Headers" value="Content-Type,Accept" />
<add name="Access-Control-Allow-Credentials" value="true" />
</customHeaders>
</httpProtocol>-->
<staticContent>
......
7e393cda9ad7d8f49fb6c77ff39640c75ea1c48a
b6ad0612993a4bc6230d2c35172da39f4c39197d
......@@ -73,25 +73,7 @@ D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\System.Web.Razor.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\System.Web.WebPages.Deployment.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\System.Web.WebPages.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\System.Web.WebPages.Razor.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.Business.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.Common.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.DAL.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.DataAccess.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.IDAL.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.Model.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\WebGrease.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Crazy.Framework.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\itextsharp.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Interop.Acrobat.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\NPOI.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\NPOI.OOXML.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\ICSharpCode.SharpZipLib.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Interop.ACRODISTXLib.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Language.Resource.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\EASendMail40.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.FM.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\NPOI.OpenXmlFormats.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\NPOI.OpenXml4Net.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\ClosedXML.pdb
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\ClosedXML.xml
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\DocumentFormat.OpenXml.xml
......@@ -112,14 +94,6 @@ D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\System.Web.Razor.xml
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\System.Web.WebPages.xml
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\System.Web.WebPages.Deployment.xml
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\System.Web.WebPages.Razor.xml
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.Business.pdb
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.Common.pdb
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.Common.dll.config
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.DAL.pdb
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.DataAccess.pdb
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.IDAL.pdb
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.Model.pdb
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Wade.Model.dll.config
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Antlr3.Runtime.pdb
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\zh-Hant\System.Net.Http.Formatting.resources.dll
......@@ -137,3 +111,120 @@ D:\work\翼勝\WADE\WEB_CODE\WebAPI\obj\Release\WebAPI.csproj.CopyComplete
D:\work\翼勝\WADE\WEB_CODE\WebAPI\obj\Release\WebAPI.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\obj\Release\WebAPI.pdb
D:\work\翼勝\WADE\WEB_CODE\WebAPI\obj\Release\WebAPI.csprojAssemblyReference.cache
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\EastAsiaNumericFormatter.dll
D:\work\翼勝\WADE\WEB_CODE\WebAPI\bin\EastAsiaNumericFormatter.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\WebAPI.dll.config
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\WebAPI.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\WebAPI.pdb
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\csc.exe
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\csc.exe.config
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\csc.rsp
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\csi.exe
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\csi.exe.config
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\csi.rsp
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.CodeAnalysis.CSharp.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.CodeAnalysis.CSharp.Scripting.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.CodeAnalysis.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.CodeAnalysis.Scripting.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.CSharp.Core.targets
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.DiaSymReader.Native.x86.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.Managed.Core.targets
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.VisualBasic.Core.targets
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\Microsoft.Win32.Primitives.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.AppContext.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Collections.Immutable.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Console.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Diagnostics.DiagnosticSource.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Diagnostics.FileVersionInfo.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Diagnostics.StackTrace.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Globalization.Calendars.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.IO.Compression.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.IO.Compression.ZipFile.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.IO.FileSystem.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.IO.FileSystem.Primitives.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Net.Http.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Net.Sockets.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Reflection.Metadata.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Runtime.InteropServices.RuntimeInformation.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Security.Cryptography.Algorithms.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Security.Cryptography.Encoding.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Security.Cryptography.Primitives.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Security.Cryptography.X509Certificates.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Text.Encoding.CodePages.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Threading.Tasks.Extensions.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.ValueTuple.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Xml.ReaderWriter.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Xml.XmlDocument.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Xml.XPath.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\System.Xml.XPath.XDocument.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\vbc.exe
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\vbc.exe.config
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\vbc.rsp
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\VBCSCompiler.exe
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\roslyn\VBCSCompiler.exe.config
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\Antlr3.Runtime.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\ClosedXML.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\DocumentFormat.OpenXml.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\EastAsiaNumericFormatter.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\ExcelDataReader.DataSet.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\ExcelDataReader.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\ExcelNumberFormat.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\Microsoft.Web.Infrastructure.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\Newtonsoft.Json.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.IO.FileSystem.Primitives.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.IO.Packaging.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Net.Http.Formatting.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Cors.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Helpers.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Http.Cors.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Http.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Http.WebHost.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Mvc.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Optimization.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Razor.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.WebPages.Deployment.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.WebPages.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.WebPages.Razor.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\WebGrease.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\ClosedXML.pdb
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\ClosedXML.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\DocumentFormat.OpenXml.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\EastAsiaNumericFormatter.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\ExcelDataReader.pdb
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\ExcelDataReader.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\ExcelDataReader.DataSet.pdb
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\ExcelDataReader.DataSet.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\ExcelNumberFormat.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\Newtonsoft.Json.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Http.Cors.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Net.Http.Formatting.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Helpers.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Http.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Http.WebHost.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Mvc.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Optimization.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.Razor.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.WebPages.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.WebPages.Deployment.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\System.Web.WebPages.Razor.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\Antlr3.Runtime.pdb
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\zh-Hant\System.Net.Http.Formatting.resources.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\zh-Hant\System.Web.Helpers.resources.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\zh-Hant\System.Web.Http.resources.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\zh-Hant\System.Web.Http.WebHost.resources.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\zh-Hant\System.Web.Mvc.resources.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\zh-Hant\System.Web.Optimization.resources.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\zh-Hant\System.Web.Razor.resources.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\zh-Hant\System.Web.WebPages.resources.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\zh-Hant\System.Web.WebPages.Deployment.resources.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\bin\zh-Hant\System.Web.WebPages.Razor.resources.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\obj\Release\WebAPI.csprojAssemblyReference.cache
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\obj\Release\WebAPI.csproj.CoreCompileInputs.cache
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\obj\Release\WebAPI.csproj.CopyComplete
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\obj\Release\WebAPI.dll
D:\work\翼勝\WADE\WEB_CODE\CODE\WebAPI\obj\Release\WebAPI.pdb
......@@ -4,6 +4,7 @@
<package id="bootstrap" version="3.4.1" targetFramework="net46" />
<package id="ClosedXML" version="0.95.3" targetFramework="net46" />
<package id="DocumentFormat.OpenXml" version="2.7.2" targetFramework="net46" />
<package id="EastAsiaNumericFormatter" version="1.0.0" targetFramework="net46" />
<package id="ExcelDataReader" version="3.6.0" targetFramework="net46" />
<package id="ExcelDataReader.DataSet" version="3.6.0" targetFramework="net46" />
<package id="ExcelNumberFormat" version="1.0.10" targetFramework="net46" />
......
<?xml version="1.0"?>
<doc>
<assembly>
<name>EastAsiaNumericFormatter</name>
</assembly>
<members>
<member name="T:Microsoft.International.Formatters.EastAsiaNumericFormatter">
<summary>
提供一个格式化类,把数值型的数据转换为东亚的本地数字表示形式的字符串。
</summary>
<remarks>
这个类支持以下的东亚语言:
<list type="bullet">
<item>
简体中文
</item>
<item>
繁体中文
</item>
<item>
日语
</item>
<item>
韩语
</item>
</list>
这个类支持以下格式化字符串:
<list type="bullet">
<item>
标准格式(L):又称大写。
</item>
<item>
普通格式(Ln):又称小写。
</item>
<item>
货币格式(Lc):用来表示货币。
</item>
<item>
字译格式(Lt):以数字符号字母表示数值型数据,只支持日文。
</item>
</list>
为了解释文化和格式化组合如何工作,我们将以“12345”举例。
<list type="bullet">
<item>
简体中文
<list type="bullet">
<item>
标准:壹万贰仟叁佰肆拾伍
</item>
<item>
普通:一万二千三百四十五
</item>
<item>
货币:壹万贰仟叁佰肆拾伍
</item>
<item>
字译:抛出ArgumentException异常
</item>
</list>
</item>
<item>
繁体中文
<list type="bullet">
<item>
标准:壹萬貳仟參佰肆拾伍
</item>
<item>
普通:一萬二千三百四十五
</item>
<item>
货币:壹萬貳仟參佰肆拾伍
</item>
<item>
字译:抛出ArgumentException异常
</item>
</list>
</item>
<item>
日语
<list type="bullet">
<item>
标准:壱萬弐阡参百四拾伍
</item>
<item>
普通:一万二千三百四十五
</item>
<item>
货币:抛出ArgumentException异常
</item>
<item>
字译:一二三四五
</item>
</list>
</item>
<item>
韩语
<list type="bullet">
<item>
标准:일만 이천삼백사십오
</item>
<item>
普通:抛出ArgumentException异常
</item>
<item>
货币:일만 이천삼백사십오
</item>
<item>
字译:抛出ArgumentException异常
</item>
</list>
</item>
<item>
其他语言:抛出ArgumentException异常
</item>
</list>
被支持的数据类型,包括 double、float、int、uint、long、ulong、short、ushort、sbyte、byte和decimal。
</remarks>
<example>
以下的代码演示了一个把数值转换为东亚的本地数字表示形式的字符串的实例。
<code source = "../../Example_CS/Program.cs" lang = "cs"></code>
<code source = "../../Example_VB/Main.vb" lang = "vbnet"></code>
<code source = "../../Example_CPP/Example_CPP.cpp" lang = "cpp"></code>
</example>
</member>
<member name="M:Microsoft.International.Formatters.EastAsiaNumericFormatter.#ctor">
<summary>
初始化EastAsiaNumericFormatter类的一个新实例。
</summary>
</member>
<member name="M:Microsoft.International.Formatters.EastAsiaNumericFormatter.GetFormat(System.Type)">
<summary>
返回一个实现了ICustomFormatter接口的格式化对象。
</summary>
<remarks>
请参阅<see cref="T:Microsoft.International.Formatters.EastAsiaNumericFormatter"/>来查看使用EastAsiaNumericFormatter的实例。
</remarks>
<param name="formatType">格式类型。</param>
<returns>
如果参数formatType是<see cref="T:System.ICustomFormatter"/>,则返回formatType本身,否则返回一个空引用。
</returns>
</member>
<member name="M:Microsoft.International.Formatters.EastAsiaNumericFormatter.Format(System.String,System.Object,System.IFormatProvider)">
<summary>
将对象格式化为东亚文化表示形式。
</summary>
<remarks>
请参阅<see cref="T:Microsoft.International.Formatters.EastAsiaNumericFormatter"/>来查看使用EastAsiaNumericFormatter的实例。
</remarks>
<param name="format">格式类型。</param>
<param name="arg">将被格式化的数据。</param>
<param name="formatProvider">格式提供者。</param>
<returns>用东亚语言格式化过的本地化字符串。</returns>
<exception cref="T:System.ArgumentNullException">
format,arg或者culture是一个空引用。
</exception>
<exception cref="T:System.ArgumentException">
localFmt在此文化中不被支持。
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
arg超出范围。
</exception>
<exception cref="T:System.ArgumentException">
arg是一个无效类型。
</exception>
</member>
<member name="M:Microsoft.International.Formatters.EastAsiaNumericFormatter.FormatWithCulture(System.String,System.Object,System.IFormatProvider,System.Globalization.CultureInfo)">
<summary>
将对象格式化为指定的东亚文化表示形式。
</summary>
<remarks>
请参阅<see cref="T:Microsoft.International.Formatters.EastAsiaNumericFormatter">EastAsiaNumericFormatter</see>以获取使用EastAsiaNumericFormatter的实例。
</remarks>
<param name="format">格式类型。</param>
<param name="arg">将被格式化的数据。</param>
<param name="formatProvider">格式提供者。</param>
<param name="culture">文化类型。</param>
<returns>用东亚语言格式化过的本地化字符串。</returns>
<exception cref="T:System.ArgumentNullException">
format,arg或者culture是一个空引用。
</exception>
<exception cref="T:System.ArgumentException">
localFmt在此文化中不被支持。
</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
num超出范围。
</exception>
<exception cref="T:System.ArgumentException">
arg是一个无效类型。
</exception>
</member>
</members>
</doc>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment