/// <summary> /// This Method is used to collect filter paratmeters /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void butGo_Click(object sender, ImageClickEventArgs e) { ReportParameterInfo Info = new ReportParameterInfo(); Info.FromDate = (DateTime.Parse(txtfrmDate.Text)).ToString("yyyy/MM/dd"); Info.ToDate = (DateTime.Parse(txtToDate.Text)).ToString("yyyy/MM/dd"); Info.VoucherTypeID = int.Parse(drpVoucherType.SelectedValue.ToString()); Info.isVoucherBooklet = int.Parse(drpVoucherBooklet.SelectedValue.ToString()); Info.FromStore = int.Parse(drpStore.SelectedValue.ToString()); DataTable Reportdata = BL_Reports.GVInventory(Info); ViewState["Reportdata"] = Reportdata; FillPagingDropDown(); GetData(); imgbtnExport.Visible = Reportdata != null && Reportdata.Rows.Count > 0; }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void butGo_Click(object sender, ImageClickEventArgs e) { try { ReportParameterInfo Info = new ReportParameterInfo(); Info.FromDate = (DateTime.Parse(txtfrmDate.Text)).ToString("yyyy/MM/dd"); Info.ToDate = (DateTime.Parse(txtToDate.Text)).ToString("yyyy/MM/dd"); Info.VoucherTypeID = int.Parse(drpVoucherType.SelectedValue.ToString()); Info.UserId = Convert.ToString(Session["UserID"]); Info.isVoucherBooklet = int.Parse(Request.QueryString["choices"].ToString()); //Info.Status = int.Parse(drpStatus.SelectedValue.ToString()); DataTable Reportdata = BL_Reports.GVOCRedemptionReport(Info); ViewState["Reportdata"] = Reportdata; FillPagingDropDown(); GetData(); imgbtnExport.Visible = Reportdata != null && Reportdata.Rows.Count > 0; } catch (Exception ex) { throw; } }
/// <summary> /// This Method is used to collect filter paratmeters /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void butGo_Click(object sender, ImageClickEventArgs e) { ReportParameterInfo Info = new ReportParameterInfo(); Info.FromDate = (DateTime.Parse(txtfrmDate.Text)).ToString("yyyy/MM/dd"); Info.ToDate = (DateTime.Parse(txtToDate.Text)).ToString("yyyy/MM/dd"); Info.VoucherTypeID = int.Parse(drpVoucherType.SelectedValue.ToString()); Info.isVoucherBooklet = int.Parse(Request.QueryString["choices"].ToString()); //int.Parse(drpVoucherBooklet.SelectedValue.ToString()); Info.Status = int.Parse(drpStatus.SelectedValue.ToString()); Info.StartIndex = 1; Info.EndIndex = 10; DataTable Reportdata = BL_Reports.GVCreationReport(Info); ViewState["Reportdata"] = Reportdata; FillPagingDropDown((DataTable)ViewState["Reportdata"]); GetData((DataTable)ViewState["Reportdata"]); imgbtnExport.Visible = Reportdata != null && Reportdata.Rows.Count > 0; }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void butGo_Click(object sender, ImageClickEventArgs e) { ReportParameterInfo Info = new ReportParameterInfo(); int StoreId = int.Parse(drpStore.SelectedValue.ToString()); //string Date = txtDate.Text; //DataTable Reportdata = BL_Reports.GVInventoryNew(StoreId, Date); int isVoucherBooklet = int.Parse(Request.QueryString["choices"].ToString()); DataTable Reportdata = BL_Reports.GVInventoryNew(StoreId, isVoucherBooklet); ViewState["Reportdata"] = Reportdata; FillPagingDropDown(); GetData(); imgbtnExport.Visible = Reportdata != null && Reportdata.Rows.Count > 0; }
/// <summary> /// This Method is used to collect filter paratmeters /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void butGo_Click(object sender, ImageClickEventArgs e) { try { ReportParameterInfo Info = new ReportParameterInfo(); Info.Voucher_Booklet = txtVoucher.Text == "" ? "-1" : txtVoucher.Text.Trim(); Info.VoucherTypeID = int.Parse(drpVoucherType.SelectedValue.ToString() == "0" ? "-1" : drpVoucherType.SelectedValue.ToString()); Info.Status = int.Parse(drpStatus.SelectedValue.ToString() == "0" ? "-1" : drpStatus.SelectedValue.ToString()); Info.IssuedStore = drpIssueStore.SelectedValue.ToString() == "0" ? "-1" : drpIssueStore.SelectedValue.ToString(); Info.RedeemByStore = drpRedeemStore.SelectedValue.ToString() == "0" ? "-1" : drpRedeemStore.SelectedValue.ToString(); Info.isVoucherBooklet = int.Parse(Request.QueryString["choices"].ToString()); Info.FromDate = txtfrmDate.Text.Trim(); Info.ToDate = txtToDate.Text.Trim(); DataTable Reportdata = BL_Reports.GVMainReport(Info); ViewState["Reportdata"] = Reportdata; FillPagingDropDown((DataTable)ViewState["Reportdata"]); GetData((DataTable)ViewState["Reportdata"]); imgbtnExport.Visible = Reportdata != null && Reportdata.Rows.Count > 0; } catch (Exception ex) { AjaxControlToolkit.ToolkitScriptManager.RegisterStartupScript(this, GetType(), "Check Scan", "alert('" + ex.Message.Replace("User Define:", string.Empty) + "');", true); } }
/// <summary> /// This Method is used to collect filter paratmeters /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void butGo_Click(object sender, ImageClickEventArgs e) { ReportParameterInfo Info = new ReportParameterInfo(); Info.Status = int.Parse(drpStatus.SelectedValue.ToString()); Info.isVoucherBooklet = int.Parse(Request.QueryString["choices"].ToString()); DataTable Reportdata = BL_Reports.GVStatusWise(Info); ViewState["Reportdata"] = Reportdata; FillPagingDropDown(); GetData(); imgbtnExport.Visible = Reportdata != null && Reportdata.Rows.Count > 0; }