本文整理汇总了C#中Utility.displayValue方法的典型用法代码示例。如果您正苦于以下问题:C# Utility.displayValue方法的具体用法?C# Utility.displayValue怎么用?C# Utility.displayValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utility
的用法示例。
在下文中一共展示了Utility.displayValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
Utility util = new Utility();
LoanDSTableAdapters.LoanApplicationsTableAdapter loanApp = new LoanDSTableAdapters.LoanApplicationsTableAdapter();
LoanDS.LoanApplicationsDataTable tblLoanApp = loanApp.GetLoanApplication(Convert.ToString(MySessionManager.AppID));
if (tblLoanApp.Rows.Count > 0)
{
if (!(this.editskip.Value == "2"))
{
if (tblLoanApp[0].IsdatDurationNull()==false){ txtperiod.Text = tblLoanApp[0].datDuration.ToString(); }
if (tblLoanApp[0].IsdatInterestRateNull()==false){txtinterestrate.Text = tblLoanApp[0].datInterestRate.ToString();}
if (tblLoanApp[0].IsdatInterestRateTypeNull() == false) { txtinterestrateType.Text = util.displayValue("opt_interest_rate_types", tblLoanApp[0].datInterestRateType.ToString()); }
if (tblLoanApp[0].IsdatFirstPaymentDateNull() == false) { txtfirstpaymentdate.Text = tblLoanApp[0].datFirstPaymentDate.ToString("dd-MM-yyyy"); }
txtFrequency.Text = util.displayValue("opt_frequencies", tblLoanApp[0].datFrequency.ToString());
if (tblLoanApp[0].IsdatLoanAmountNull() == false) { txtprincipal.Text = tblLoanApp[0].datLoanAmount.ToString(); }
this.editskip.Value = "2";
int mnths = Convert.ToInt32(tblLoanApp[0].datDuration.ToString());
double per = Convert.ToDouble(tblLoanApp[0].datInterestRate.ToString());
double amt = Convert.ToDouble(tblLoanApp[0].datLoanAmount.ToString());
try
{
GenerateMonths(mnths, DateTime.Parse(txtfirstpaymentdate.Text));
}
catch (Exception ex) { }
}
else
{
int mnths = Convert.ToInt32(txtperiod.Text);
double per = Convert.ToDouble(txtinterestrate.Text);
double amt = Convert.ToDouble(txtprincipal.Text);
try
{
GenerateMonths(mnths, DateTime.Parse(txtfirstpaymentdate.Text));
}
catch (Exception ex) { }
}
}
}