public virtual CloudAccountDA.FeatureCategoryMasterDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; CloudAccountDA.FeatureCategoryMasterDataTable dataTable = new CloudAccountDA.FeatureCategoryMasterDataTable(); this.Adapter.Fill(dataTable); return(dataTable); }
public virtual int Fill(CloudAccountDA.FeatureCategoryMasterDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if (this.ClearBeforeFill) { dataTable.Clear(); } return(this.Adapter.Fill(dataTable)); }
protected void gvFeatureCategory_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType != DataControlRowType.DataRow) { return; } this.objFeatureCategoryMasterDT = this.objFeatureCategoryMasterBll.GetDataByFeatureCategoryID(int.Parse(e.Row.Cells[1].Text)); if (this.objFeatureCategoryMasterDT.Rows.Count == 0) { return; } e.Row.Cells[1].Text = this.objFeatureCategoryMasterDT.Rows[0]["FeatureCategoryName"].ToString(); }
private void SetRecord(string iD) { this.objFeatureCategoryMasterDT = this.objFeatureCategoryMasterBll.GetDataByFeatureCategoryID(int.Parse(iD)); if (this.objFeatureCategoryMasterDT.Rows.Count <= 0) { return; } this.hfFeatureCategory.Value = this.objFeatureCategoryMasterDT.Rows[0]["FeatureCategoryID"].ToString(); this.txtFeatureCategoryName.Text = this.objFeatureCategoryMasterDT.Rows[0]["FeatureCategoryName"].ToString(); this.txtDesc.Text = this.objFeatureCategoryMasterDT.Rows[0]["Description"].ToString(); this.chkStatus.Checked = this.objFeatureCategoryMasterDT.Rows[0]["Status"].ToString() == "True"; this.chkHome.Checked = this.objFeatureCategoryMasterDT.Rows[0]["ShowOnHomePage"].ToString() == "True"; }
private void ViewRecord(string i) { this.objFeatureCategoryMasterDT = this.objFeatureCategoryMasterBll.GetDataByFeatureCategoryID(int.Parse(i)); if (this.objFeatureCategoryMasterDT.Rows.Count <= 0) { return; } this.hfFeatureCategory.Value = this.objFeatureCategoryMasterDT.Rows[0]["FeatureCategoryID"].ToString(); this.lblFeatureCategoryName.Text = this.objFeatureCategoryMasterDT.Rows[0]["FeatureCategoryName"].ToString(); this.lblDesc.Text = this.objFeatureCategoryMasterDT.Rows[0]["Description"].ToString(); this.lblStatus.Text = this.objFeatureCategoryMasterDT.Rows[0]["Status"].ToString() == "True" ? "True" : "False"; this.lblHome.Text = this.objFeatureCategoryMasterDT.Rows[0]["ShowOnHomePage"].ToString() == "True" ? "True" : "False"; }
private void ViewRecord(string i) { this.objFeatureContentMasterDT = this.objFeatureContentMasterBll.GetDataByFeatureContentID(int.Parse(i)); if (this.objFeatureContentMasterDT.Rows.Count <= 0) { return; } this.hfFeatureContent.Value = this.objFeatureContentMasterDT.Rows[0]["FeatureContentID"].ToString(); this.lblContent.Text = this.objFeatureContentMasterDT.Rows[0]["FeatureContent"].ToString(); this.lblStatus.Text = this.objFeatureContentMasterDT.Rows[0]["Status"].ToString() == "True" ? "True" : "False"; this.lblFeatureCategory.Text = this.objFeatureContentMasterDT.Rows[0]["FeatureCategoryID"].ToString(); this.objFeatureCategoryMasterDT = this.objFeatureCategoryMasterBll.GetDataByFeatureCategoryID(int.Parse(this.lblFeatureCategory.Text)); this.lblFeatureCategory.Text = this.objFeatureCategoryMasterDT.Rows[0]["FeatureCategoryName"].ToString(); }
public virtual CloudAccountDA.FeatureCategoryMasterDataTable GetDataByFeatureCategoryID(int?FeatureCategoryID) { this.Adapter.SelectCommand = this.CommandCollection[1]; if (FeatureCategoryID.HasValue) { this.Adapter.SelectCommand.Parameters[1].Value = FeatureCategoryID.Value; } else { this.Adapter.SelectCommand.Parameters[1].Value = DBNull.Value; } CloudAccountDA.FeatureCategoryMasterDataTable dataTable = new CloudAccountDA.FeatureCategoryMasterDataTable(); this.Adapter.Fill(dataTable); return(dataTable); }
private void SetRecord(string iD) { this.objFeatureContentMasterDT = this.objFeatureContentMasterBll.GetDataByFeatureContentID(int.Parse(iD)); if (this.objFeatureContentMasterDT.Rows.Count <= 0) { return; } this.hfFeatureContent.Value = this.objFeatureContentMasterDT.Rows[0]["FeatureContentID"].ToString(); this.objFeatureCategoryMasterDT = this.objFeatureCategoryMasterBll.GetDataByFeatureCategoryID(int.Parse(this.objFeatureContentMasterDT.Rows[0]["FeatureCategoryID"].ToString())); if (this.objFeatureCategoryMasterDT.Rows.Count > 0) { this.ddlFeatureCategory.Items.Add(this.objFeatureCategoryMasterDT.Rows[0]["FeatureCategoryID"].ToString()); this.ddlFeatureCategory.SelectedValue = this.objFeatureCategoryMasterDT.Rows[0]["FeatureCategoryID"].ToString(); } this.edContent.Content = this.objFeatureContentMasterDT.Rows[0]["FeatureContent"].ToString(); this.chkStatus.Checked = this.objFeatureContentMasterDT.Rows[0]["Status"].ToString() == "True"; }
protected void btnSubmit_Click(object sender, EventArgs e) { if (!this.Page.IsValid) { return; } if (this.txtFeatureCategoryName.Text.Trim().Length > 0) { this.objFeatureCategoryMasterDT = this.objFeatureCategoryMasterBll.GetDataByFeatureCategoryName(this.txtFeatureCategoryName.Text); if (this.objFeatureCategoryMasterDT.Rows.Count > 0) { this.DisplayAlert("Feature Category Already Exist.."); FeatureCategoryMaster.checkInDB = true; } else { FeatureCategoryMaster.checkInDB = false; } if (!FeatureCategoryMaster.checkInDB) { int num = this.objFeatureCategoryMasterBll.AddFeatureCategory(this.txtFeatureCategoryName.Text.Trim(), this.txtDesc.Text.Trim(), this.chkHome.Checked, this.chkStatus.Checked); if (num != 0) { this.DisplayAlert("Details Added Successfully."); this.Response.Redirect("~/BillTransact/FeatureCategoryMaster.aspx?cmd=view&ID=" + (object)num); } else { this.DisplayAlert("Fail to Add New Details."); this.Clear(); } } else { this.DisplayAlert("Fail to Add New Details."); this.Clear(); } } else { this.DisplayAlert("Please Fill All Details...!"); } }
public virtual int Update(CloudAccountDA.FeatureCategoryMasterDataTable dataTable) { return(this.Adapter.Update(dataTable)); }