Files
2025-04-24 01:49:44 +08:00

56 lines
1.6 KiB
C#

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
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.Entity;
using UFIDA.U8.Framework.Api.ControlObject.Json;
using UFIDA.U8.Framework.Api.ControlObject.U8M;
namespace UFIDA.U8.Framework.Api.Tests.Controllers
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
var baseLogin = new BaseLogin();
baseLogin.Init(
new LoginParamter()
{
cSerial = "", cSrv = "192.168.50.5", pAccId = "(default)@801", pDate = "2014-12-31",
pPassword = "", pSubId = "DP", pUserId = "demo", pYearId = "2014"
}, false);
var bo = new NoteManageAR();
var da = new Dictionary<string, object>(){
{ "bPrePay", 0 },
{ "iType", 0 },
{ "cType", "应付款" },
{ "iAmt_f", 100 },
{ "iAmt", 100 },
{ "cKm", "220202" },
{ "cDepName", "采购部" },
{ "cPersonName", "顾潇" },
{ "iRAmt_f", 100.00 },
{ "iRAmt", 100.00 },
{ "cCusVen", "01004" },
{ "iAmt_s", 0 },
{ "iRAmt_s", 0 },
{ "cDepCode", "0401" },
{ "cPersonCode", "00043" }
}; ;
//var res= bo.NoteSave(baseLogin, da );
//Trace.WriteLine(res.ToJson());
}
}
}