SVN r1150
SVN-Revision: r1150
This commit is contained in:
@@ -663,7 +663,7 @@ namespace Lskj.QueryEssentialInfo
|
||||
}
|
||||
}));
|
||||
SetProcessMsg($"正在同步收入...");
|
||||
string dsfxzCode = QueryApiUtil.GetDSFXZ(out string dsfxzResult, out string dsfxzMsg);
|
||||
string dsfxzCode = QueryApiUtil.GetIncome(out string dsfxzResult, out string dsfxzMsg);
|
||||
if (!dsfxzCode.Equals("0"))
|
||||
{
|
||||
throw new Exception($"同步收入失败\r\n{dsfxzMsg}");
|
||||
@@ -678,17 +678,35 @@ namespace Lskj.QueryEssentialInfo
|
||||
/// </summary>
|
||||
private void GSSBQuery()
|
||||
{
|
||||
SetProcessMsg($"正在进行个税申报...");
|
||||
string submitCode = QueryApiUtil.Submit(out string submitResult, out string submitMsg);
|
||||
if (!submitCode.Equals("0"))
|
||||
SetProcessMsg($"正在同步收入...");
|
||||
string incomeCode = QueryApiUtil.GetIncome(out string incomeResult, out string incomeMsg);
|
||||
if (!incomeCode.Equals("0"))
|
||||
{
|
||||
throw new Exception($"个税申报失败\r\n{submitMsg}");
|
||||
throw new Exception($"同步收入失败\r\n{incomeMsg}");
|
||||
}
|
||||
SetProcessMsg($"正在查询个税申报结果...");
|
||||
string submitQueryCode = "-99";
|
||||
while (!submitQueryCode.Equals("0"))
|
||||
SetProcessMsg($"正在生成批次信息...");
|
||||
string batchCode = QueryApiUtil.GetBatch(out string batchResult, "101060100", out string batchMsg);
|
||||
if (!batchCode.Equals("0"))
|
||||
{
|
||||
submitQueryCode = QueryApiUtil.SubmitQuery(out string submitQueryResult, out string submitQueryMsg);
|
||||
if (!submitQueryCode.Equals("0"))
|
||||
{
|
||||
|
||||
throw new Exception($"生成批次信息失败\r\n{batchMsg}");
|
||||
}
|
||||
SetProcessMsg($"正在获取计算结果...");
|
||||
string resultCode = QueryApiUtil.GetResult(out string resultResult, "101060100", out string resultMsg);
|
||||
if (!resultCode.Equals("0"))
|
||||
{
|
||||
throw new Exception($"获取计算结果\r\n{resultMsg}");
|
||||
}
|
||||
//SetProcessMsg($"正在进行个税申报...");
|
||||
//string submitCode = QueryApiUtil.Submit(out string submitResult, out string submitMsg);
|
||||
//if (!submitCode.Equals("0"))
|
||||
//{
|
||||
// throw new Exception($"个税申报失败\r\n{submitMsg}");
|
||||
//}
|
||||
//SetProcessMsg($"正在查询个税申报结果...");
|
||||
//string submitQueryCode = "-99";
|
||||
//while (!submitQueryCode.Equals("0"))
|
||||
//{
|
||||
// submitQueryCode = QueryApiUtil.SubmitQuery(out string submitQueryResult, out string submitQueryMsg);
|
||||
// if (!submitQueryCode.Equals("0"))
|
||||
// {
|
||||
// if
|
||||
Reference in New Issue
Block a user