本文整理汇总了C#中BAL.ClsBAL.Updatecancelstatus方法的典型用法代码示例。如果您正苦于以下问题:C# ClsBAL.Updatecancelstatus方法的具体用法?C# ClsBAL.Updatecancelstatus怎么用?C# ClsBAL.Updatecancelstatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BAL.ClsBAL
的用法示例。
在下文中一共展示了ClsBAL.Updatecancelstatus方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
objBAL = new ClsBAL();
string str = objBAL.Updatecancelstatus(Session["refno"].ToString(), "Booked");
//lblCancel.Text = str;
BindTicketDetails();
}
}
示例2: btnSubmit_Click
protected void btnSubmit_Click(object sender, EventArgs e)
{
objResult.ReferanceId = txtBookingRefNo.Text;
objResult.EmailId = txtEmailId.Text;
objResult.ScreenInd = blossom.GetCancellationdetails;
_objDataSet = (DataSet)objResult.fnGetData();
if (_objDataSet != null)
{
if (_objDataSet.Tables[0].Rows[0]["Status"].ToString() == "Canceled")
{
lblCancel.Text = "Ticket Has been already cancelled";
lblCancel.ForeColor = System.Drawing.Color.Red;
return;
}
string actualfare = _objDataSet.Tables[0].Rows[0]["BasicFare"].ToString();
comm = 10.0;
double cancellationAmount = Convert.ToDouble(actualfare) * comm / 100;
double refundTotalAmount = Convert.ToDouble(actualfare) - cancellationAmount;
ClsBAL objBAL;
objBAL = new ClsBAL();
objBAL.AdjustAgentBalance1(txtBookingRefNo.Text.Trim().ToString(),
Convert.ToDouble(refundTotalAmount), Convert.ToDouble(cancellationAmount),
Convert.ToInt32(Session["UserID"].ToString()));
DataSet dsBalance = objBAL.GetAgentByUserId(Convert.ToInt32(Session["UserID"].ToString()));
string balance = dsBalance.Tables[0].Rows[0]["Balance"].ToString();
Label lbl = (Label)this.Master.FindControl("lblBalance");
lbl.Text = balance.ToString();
Session["Balance"] = balance;
string str=objBAL.Updatecancelstatus(txtBookingRefNo.Text,"Canceled");
lblCancel.Text = str;
lblCancel.ForeColor = System.Drawing.Color.Green;
txtEmailId.Text = txtBookingRefNo.Text = "";
}
else
{
lblCancel.Text = "Invalid Ref/EmailId";
}
}