protected void Page_Load(object sender, EventArgs e) { if (Session["loginId"] == null) { Response.Redirect("../Login.aspx"); } if (!IsPostBack) { txtStartDate.Text = _objBOUtiltiy.ConvertDateFormat(DateTime.Now.ToString()); txtTodate.Text = _objBOUtiltiy.ConvertDateFormat(DateTime.Now.ToString()); BindReport(); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["loginId"] == null) { Response.Redirect("~/SalesLogin.aspx"); } if (!IsPostBack) { txtStartDate.Text = _objBoutility.ConvertDateFormat(DateTime.Now.ToString()); txtTodate.Text = _objBoutility.ConvertDateFormat(DateTime.Now.ToString()); BindFlightBooking(); } }
private void DailyReport() { try { lblDayTitle.Text = DateTime.Now.ToString("MMMM dd, yyyy"); string FromDate = _objBOUtiltiy.ConvertDateFormat(DateTime.Now.ToString()); string ToDate = _objBOUtiltiy.ConvertDateFormat(DateTime.Now.ToString()); DataSet objDayWiseReport = objBAReport.GetDashBoard(FromDate, ToDate); string strDayReport = string.Empty; string strDayReportValues = string.Empty; foreach (DataRow dr in objDayWiseReport.Tables[0].Rows) { strDayReport = strDayReport + "," + dr["operation"].ToString() + "-" + dr["PaymentAmount"].ToString(); strDayReportValues = strDayReportValues + "," + dr["PaymentAmount"].ToString(); } hfDayReport.Value = strDayReport.TrimStart(','); hfDayReportValues.Value = strDayReportValues.TrimStart(','); } catch (Exception ex) { ExceptionLogging.SendExcepToDB(ex); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["loginId"] == null) { Response.Redirect("../SalesLogin.aspx"); } strCurrencycode = _objBOUtiltiy.Currencycode(); if (!IsPostBack) { BindRolesDropDwon(); txtStartDate.Text = _objBOUtiltiy.ConvertDateFormat(DateTime.Now.ToString()); txtTodate.Text = _objBOUtiltiy.ConvertDateFormat(DateTime.Now.ToString()); ddlUser.Items.Insert(0, new System.Web.UI.WebControls.ListItem("All Users", "0")); BindReport(0); } }
private void InsertUpdatePromotions() { try { PromotionsMaster objPromotionsMaster = new PromotionsMaster(); objPromotionsMaster.PromotionId = Convert.ToInt32(hfPromotionId.Value); objPromotionsMaster.PromotionCategory = dropPromotionCategory.SelectedValue; objPromotionsMaster.PromotionRelavance = txtRelavance.Text; objPromotionsMaster.PromotionType = DropPromotionType.SelectedValue; objPromotionsMaster.PromotionCode = txtPromoCode.Text; objPromotionsMaster.DiscountType = Convert.ToInt32(rboDiscountTypes.SelectedValue); if (rboDiscountTypes.SelectedValue == "1") { objPromotionsMaster.Percentage = Convert.ToDecimal(txtAmount.Text); } else { objPromotionsMaster.Amount = Convert.ToDecimal(txtAmount.Text); } objPromotionsMaster.StartDate = txtStartDate.Text != "" ? Convert.ToDateTime(_objBOUtility.ConvertDateFormat(txtStartDate.Text)) : Convert.ToDateTime(_objBOUtility.ConvertDateFormat(System.DateTime.Now.ToShortDateString())); objPromotionsMaster.EndDate = txtEndDate.Text != "" ? Convert.ToDateTime(_objBOUtility.ConvertDateFormat(txtEndDate.Text)) : Convert.ToDateTime(_objBOUtility.ConvertDateFormat(System.DateTime.Now.ToShortDateString())); objPromotionsMaster.CreatedBy = Session["loginId"].ToString(); int nResult = _objBALPromotions.InsertUpdatePromotions(objPromotionsMaster); if (nResult > 0) { labelError.Text = _objBOUtility.ShowMessage("success", "Success", "Promaotion add successfully"); } } catch (Exception ex) { labelError.Text = _objBOUtility.ShowMessage("error", "Error", ex.Message); } }
private void DailyReport() { lblDayTitle.Text = DateTime.Now.ToString("MMMM dd, yyyy"); string LoginId = Session["loginId"].ToString(); string FromDate = _objBOUtiltiy.ConvertDateFormat(DateTime.Now.ToString()); string ToDate = _objBOUtiltiy.ConvertDateFormat(DateTime.Now.ToString()); DataSet objDayWiseReport = objBORpeort.GetDashboardSourceReport(FromDate, ToDate, LoginId, Convert.ToInt32(Session["role_id"]), Convert.ToInt32(Session["CompanyId"])); string strDayReport = string.Empty; string strDayReportValues = string.Empty; foreach (DataRow dr in objDayWiseReport.Tables[0].Rows) { strDayReport = strDayReport + "," + dr["BookingSource"].ToString() + "-" + dr["PaymentAmount"].ToString(); strDayReportValues = strDayReportValues + "," + dr["PaymentAmount"].ToString(); } hfDayReport.Value = strDayReport.TrimStart(','); hfDayReportValues.Value = strDayReportValues.TrimStart(','); }