采购接口功能全部完成

This commit is contained in:
qmj
2025-04-24 01:49:44 +08:00
parent cb3269ae8b
commit 46c20e2895
32 changed files with 3538 additions and 291 deletions
@@ -4,7 +4,8 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Web.UI.WebControls;
using UFIDA.U8.Framework.Api.ControlObject.AP;
using UFIDA.U8.Framework.Api.ControlObject.Models;
using UFIDA.U8.Framework.Api.ControlObject.Entity;
using UFIDA.U8.Framework.Api.ControlObject.Json;
using UFIDA.U8.Framework.Api.ControlObject.U8M;
namespace UFIDA.U8.Framework.Api.Tests.Controllers
@@ -20,14 +21,12 @@ namespace UFIDA.U8.Framework.Api.Tests.Controllers
baseLogin.Init(
new LoginParamter()
{
cSerial = "", cSrv = "192.168.50.31", pAccId = "(default)@801", pDate = "2015-07-01",
pPassword = "", pSubId = "DP", pUserId = "demo", pYearId = "2015"
cSerial = "", cSrv = "192.168.50.5", pAccId = "(default)@801", pDate = "2014-12-31",
pPassword = "", pSubId = "DP", pUserId = "demo", pYearId = "2014"
}, false);
var bo = new UFAPBO();
var bo = new NoteManageAR();
var dd = new List<Dictionary<string, object>>();
var da = new Dictionary<string, object>(){
{ "bPrePay", 0 },
{ "iType", 0 },
@@ -46,40 +45,10 @@ namespace UFIDA.U8.Framework.Api.Tests.Controllers
{ "cPersonCode", "00043" }
}; ;
dd.Add(da);
//var res= bo.NoteSave(baseLogin, da );
var dict = new Dictionary<string, object>()
{
{ "cVouchType", "49" },
{ "cVouchID", "0000000030" },
{ "dVouchDate", "2015-07-22" },
{ "cDwCode", "01004" },
{ "cSSCode", "1" },
{"cDeptCode", "0401"},
{"cSSName", "现金"},
{"iPeriod", 7},
{"cPerson", "00043"},
{"cPersonName", "顾潇"},
{"cexch_name", "人民币"},
{"iExchRate", 1},
{"iAmount_f", 100.00},
{"iAmount", 100.00},
{"iRAmount_f", 100.00},
{"iRAmount", 100.00},
{"cTypeName", "付款单"},
{"cFlag", "AP"},
{"iPayForOther", 0},
{"bFromBank", 0},
{"bToBank", 0},
{"bSure", 0},
{"cCode", "1001"},
{ "bStartFlag", 0},
{"body",dd}
};
var res= bo.CloseBillSave(baseLogin, dict, "AP");
Trace.WriteLine("aaaaa");
//Trace.WriteLine(res.ToJson());
}
}