protected void btnAddAccessoryInTree_Click(object sender, EventArgs e) { try { ViewModel.Search searchAccessoryCategory = new ViewModel.Search(); searchAccessoryCategory.Filter = " And tblAccessoryCategory.IDAccessoryCategory='" + hfIDAccessoryCategory.Value + "'"; DataSet ds = BisAccessoryCategory.GetAccessoryCategoryData(searchAccessoryCategory); string Header = ds.ReturnDataSetField("Name_En"); DefineDetailProduct.setHeaderOfModal(Header); DefineDetailProduct.SetHfIDProduct(hfIDAccessoryCategory.Value); DefineDetailProduct.FillrptParentProperty(hfIDAccessoryCategory.Value); DefineDetailProduct.FillGrdDefineDetailProduct(hfIDAccessoryCategory.Value, false); DefineDetailProduct.OpenModalPropertyProductCategoryEvents(); ScriptManager.RegisterClientScriptBlock(this, GetType(), "CloseModal", "$('#ModalNavigationOnAccessory').modal('hide');", true); } catch { ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "Succsess", " bootbox.alert({message: \"<p dir='rtl' style='color:#004179;font-size:17px;'> اشکال در برقراری ارتباط با دیتابیس!</p>\",title: \"<p style='text-align:right;direction:rtl'>خطا</p>\"});", true); } }
protected void btnGetAll_Click(object sender, EventArgs e) { DefineDetailProduct.FillGrdDefineDetailProduct_All(); DefineDetailProduct.InitialButtonsInAllDefineDetailProduct(); DefineDetailProduct.OpenModalPropertyProductCategoryEvents(); }