新增项目预算利润表完成加载后自动将实施成本带入实施明细行中
This commit is contained in:
@@ -11,6 +11,8 @@ using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using static IronPython.Modules._ast;
|
||||
using static Kingdee.K3.SCM.App.Core.Validation.InvAccountValidation.InvAccountConsumeSumBillValidator;
|
||||
|
||||
namespace GZ_LTHPilot_ORDER.XMYSLRB
|
||||
{
|
||||
@@ -53,8 +55,11 @@ WHERE
|
||||
return;
|
||||
}
|
||||
|
||||
var SGCB_STR = this.View.Model.GetValue("F_SGCB");
|
||||
var SGCB = Convert.ToDecimal(100);
|
||||
var SGCB_STR = this.View.Model.GetValue("F_SGCB")?.ToString();
|
||||
decimal SGCB;
|
||||
var SGCB_STRIsNumber = decimal.TryParse(SGCB_STR, out SGCB);
|
||||
|
||||
|
||||
|
||||
for (int i = 0; i < Count; i++)
|
||||
{
|
||||
@@ -63,13 +68,16 @@ WHERE
|
||||
// 实施安装费,将税率设置为6,将单头上的施工成本带出
|
||||
if (Convert.ToString(sqlDS[i]["FENTRYID"]) == "682e83afbd70b6")
|
||||
{
|
||||
this.View.Model.SetItemValueByID("F_VRYF_Decimal_qtr", 6, i);
|
||||
this.View.Model.SetValue("F_VRYF_Amount_xk9", SGCB, i);
|
||||
this.View.Model.SetValue("F_VRYF_Decimal_qtr", 6, i);
|
||||
if (SGCB_STRIsNumber)
|
||||
{
|
||||
this.View.Model.SetValue("F_VRYF_Amount_xk9", SGCB, i);
|
||||
}
|
||||
}
|
||||
// 外包费,将税率设置为6
|
||||
else if (Convert.ToString(sqlDS[i]["FENTRYID"]) == "682e83e4bd70cb")
|
||||
{
|
||||
this.View.Model.SetItemValueByID("F_VRYF_Decimal_qtr", 6, i);
|
||||
this.View.Model.SetValue("F_VRYF_Decimal_qtr", 6, i);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user