コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public bool SaveNewVendorProduct(NewVendorCategory objNewVendorCat)
 {
     return(VendorDAL.Instance.SaveNewVendorProduct(objNewVendorCat));
 }
コード例 #3
0
 public bool UpdateVendorCategory(NewVendorCategory objVendorCat)
 {
     return(VendorDAL.Instance.UpdateVendorCategory(objVendorCat));
 }
コード例 #4
0
 public string SaveNewVendorCategory(NewVendorCategory objNewVendorCat)
 {
     return(VendorDAL.Instance.SaveNewVendorCategory(objNewVendorCat));
 }