1
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Pilot.Report.Exploitation.AccountsReceivable
|
||||
// 判断 应收对账单【明细版】按钮
|
||||
if (e.BarItemKey == "Test_Button_1")
|
||||
{
|
||||
string FPath = "应收账款对账单【明细版】.xlsx";
|
||||
string FPath = "应收账款对账单【简易版】.xlsx";
|
||||
|
||||
// 在临时文件目录,生成一个完整的文件名: C:\Program Files\Kingdee\K3Cloud\WebSite\...\JD.xls
|
||||
string filePath = PathUtils.GetPhysicalPath(KeyConst.TEMPFILEPATH, Path.GetFileName(FPath));
|
||||
@@ -57,7 +57,7 @@ namespace Pilot.Report.Exploitation.AccountsReceivable
|
||||
//单据体
|
||||
var list = reportModel.DataSource.Rows;
|
||||
|
||||
string sqlTest = string.Format(@"/*dialect*/Select FAmount,FDate From MBBA_t_Cust100006 Where Month(FDATE) = Month(DATEADD(MONTH, -1, '{0}'))", fDate);
|
||||
string sqlTest = string.Format(@"/*dialect*/SELECT * FROM YingShouZhanKuanJY_GZTH");
|
||||
|
||||
var sqlTestList = DBUtils.ExecuteDynamicObject(Context, sqlTest);
|
||||
|
||||
@@ -67,8 +67,8 @@ namespace Pilot.Report.Exploitation.AccountsReceivable
|
||||
if (sqlTestList.Count() > 0)
|
||||
{
|
||||
Num = 1;
|
||||
fAmount = Math.Round(Convert.ToDecimal(sqlTestList[0]["FAmount"]), 2);
|
||||
fDate2 = sqlTestList[0]["FDate"].ToString().Split(' ')[0];
|
||||
fAmount = Math.Round(Convert.ToDecimal(sqlTestList[0]["OrderFAmount"]), 2);
|
||||
fDate2 = sqlTestList[0]["Date"].ToString().Split(' ')[0];
|
||||
}
|
||||
|
||||
Main(filePath, fClient, fDate, fProject, list, Num, fAmount, fDate2, Context);
|
||||
|
||||
Reference in New Issue
Block a user