我有这行代码
acctStatusLabel.Text = acct.acctStatusCode == "APPR" || acct.acctStatusCode == "IACT"
? "Inactive"
: "Closed";
我需要做的是更改它,以便 APPR 状态代码显示“已批准”,而 IACT 状态代码显示“非活动”
这是完整的代码集
if (acct.acctStatusCode == "DORM")
acctStatusLabel.Text = "Dormant";
else
acctStatusLabel.Text = acct.acctStatusCode == "APPR" || acct.acctStatusCode == "IACT"
? "Inactive"
: "Closed";