王 垚
2021-11-12 0ce538e3c3dc01153ce1bfc2d75276881206c222
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using Kingdee.BOS;
using Kingdee.BOS.ServiceHelper;
using XhOA.Extension;
using XhOA.Models;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
 
namespace XhOA.DBService
{
    public class BigTicketProjectService
    {
       
        public decimal GetReceiveBillRate(Context ctx, long proId)
        {
            string sql = $"select t2.F_PXDF_Decimal from  t_AR_receivable t1 left join t_AR_receivableEntry t2 on t1.fid=t2.fid where t1.fdocumentstatus='C' and t2.FProjectNo='{proId}' ";
            //LogHelper.Info("GetReceiveBillRate:" + sql);
            return DBServiceHelper.ExecuteScalar(ctx, sql, 0);
        }
    }
}