本文整理汇总了C#中BAL.ClsBAL.UpdateAgent方法的典型用法代码示例。如果您正苦于以下问题:C# ClsBAL.UpdateAgent方法的具体用法?C# ClsBAL.UpdateAgent怎么用?C# ClsBAL.UpdateAgent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BAL.ClsBAL
的用法示例。
在下文中一共展示了ClsBAL.UpdateAgent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnRegister_Click
//.........这里部分代码省略.........
}
}
else if (btnRegister.Text == "Update")
{
if (txtDateOfBirth.Text == "")
{
txtDateOfBirth.Text = "1/1/1990";
}
if (chkDomesticFlights.Checked == false)
{
lblDomesticFlights.Text = "0";
}
else
{
lblDomesticFlights.Text = "1";
}
if (chkInternationalFlights.Checked == false)
{
lblInterNationalFlights.Text = "0";
}
else
{
lblInterNationalFlights.Text = "1";
}
if (chkInternationalFlights.Checked == false)
{
lblInterNationalFlights.Text = "0";
}
else
{
lblInterNationalFlights.Text = "1";
}
if (chkBuses.Checked == false)
{
lblBuses.Text = "0";
}
else
{
lblBuses.Text = "1";
}
if (chkHotels.Checked == false)
{
lblHotels.Text = "0";
}
else
{
lblHotels.Text = "1";
}
if (chkRecharge.Checked == false)
{
lblRecharge.Text = "0";
}
else
{
lblRecharge.Text = "1";
}
message = objBal.UpdateAgent(txtAgentName.Text.Trim().ToString(),
ddlType.SelectedItem.Text.ToString(),
Convert.ToDateTime(txtDateOfBirth.Text),
txtCity.Text.Trim().ToString(),
ddlState.SelectedItem.Text.ToString(),
txtAddress.Text.Trim().ToString(),
txtPinCode.Text.Trim().ToString(),
txtMobileNo.Text.Trim().ToString(),
txtAlternateMobileNo.Text.Trim().ToString(),
txtLandlineNo.Text.Trim().ToString(),
txtEmailId.Text.Trim().ToString(),
txtPAN.Text.Trim().ToString(),
txtDetails.Text.Trim().ToString(),
ddlStatus.SelectedItem.Text.ToString(),
txtPassword.Text.Trim().ToString(),
Convert.ToInt32(btnRegister.CommandArgument.ToString()),
Convert.ToInt32(Session["UserID"].ToString()), Convert.ToInt32(txtCommissionPercentage.Text.ToString()),
lblDomesticFlights.Text.ToString(),
lblInterNationalFlights.Text.ToString(),
lblBuses.Text.ToString(),
lblHotels.Text.ToString(),
lblRecharge.Text.ToString()
);
}
//lblMsg.InnerHtml = message;
lblDomesticFlights.Visible = false;
lblInterNationalFlights.Visible = false;
lblBuses.Visible = false;
lblHotels.Visible = false;
lblRecharge.Visible = false;
}
catch (Exception ex)
{
lblMsg.InnerHtml = ex.Message;
}
}