protected void LoadSubscriptionList() { BusinessLayer.Subscription objSubscription = new BusinessLayer.Subscription(); Entity.Subscription subscription = new Entity.Subscription(); DataTable dt = new DataTable(); subscription.MemberId = int.Parse(ddlMember.SelectedValue); subscription.FinancialYearId = 0; subscription.EntryDate = (!String.IsNullOrEmpty(txtTransactionFromDate.Text)) ? Convert.ToDateTime(txtTransactionFromDate.Text) : DateTime.MinValue; subscription.EntryDateTo = (!String.IsNullOrEmpty(txtTransactionToDate.Text)) ? Convert.ToDateTime(txtTransactionToDate.Text) : DateTime.MinValue; subscription.Status = Convert.ToInt32(ddlStatus.SelectedValue); subscription.MobileNo = ""; dt = objSubscription.Subscription_GetAll(subscription); if (dt != null) { dgvSubscriptionList.DataSource = dt; dgvSubscriptionList.DataBind(); } }
protected void LoadSubscriptionList() { BusinessLayer.Subscription objSubscription = new BusinessLayer.Subscription(); Entity.Subscription subscription = new Entity.Subscription(); DataTable dt = new DataTable(); subscription.MemberId = int.Parse(ddlMember.SelectedValue); subscription.FinancialYearId = int.Parse(ddlYear.SelectedValue); subscription.EntryDate = DateTime.MinValue; subscription.EntryDateTo = DateTime.MinValue; subscription.Status = Convert.ToInt32(ddlStatus.SelectedValue); subscription.MobileNo = txtMobNo.Text; subscription.BlockName = ddlBlock.SelectedItem.Text; subscription.Amount = (txtAmount.Text == "") ? 0 : Convert.ToDecimal(txtAmount.Text); dt = objSubscription.Subscription_GetAll(subscription); if (dt != null) { dgvSubscriptionList.DataSource = dt; dgvSubscriptionList.DataBind(); } }