protected void btnUpdateVendorCat_Click(object sender, EventArgs e) { string ProductID = hdnProductID.Value.ToString(); string VendorCatId = hdnVendorID.Value.ToString(); string VendorName = txtVendorCateogryName.Text; Boolean IsRetail_Wholesale = chkVendorCRetail_WholesaleEdit.Checked;; Boolean IsManufacturer = chkVendorCManufacturerEdit.Checked; ActiveProductID = Convert.ToInt32(hdnProductID.Value.ToString()); ActiveCategoryID = 0; NewVendorCategory objNewVendor = new NewVendorCategory(); objNewVendor.VendorName = VendorName; objNewVendor.IsRetail_Wholesale = IsRetail_Wholesale; objNewVendor.IsManufacturer = IsManufacturer; objNewVendor.VendorId = VendorCatId; objNewVendor.ProductId = ProductID; bool res = VendorBLL.Instance.UpdateVendorCategory(objNewVendor); if (res) { ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertBox", "alert('Vendor Category Updated Successfully');", true); string Mtype = GetManufacturerType(); GetInventoryCategoryList(Mtype); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertBox", "alert('Unable to Update Vendor Category');", true); } }
public bool SaveNewVendorProduct(NewVendorCategory objNewVendorCat) { return(VendorDAL.Instance.SaveNewVendorProduct(objNewVendorCat)); }
public bool UpdateVendorCategory(NewVendorCategory objVendorCat) { return(VendorDAL.Instance.UpdateVendorCategory(objVendorCat)); }
public string SaveNewVendorCategory(NewVendorCategory objNewVendorCat) { return(VendorDAL.Instance.SaveNewVendorCategory(objNewVendorCat)); }