private void saveProductListToDatabase(List <DAProductBase> productList) { //Utils.showErrorAlert(Page.ClientScript, this.GetType(), "Folder giao diện này hiện không tồn tại!"); DAProductProductCat daProductProductCat = new DAProductProductCat(); foreach (DAProductBase daProduct in productList) { daProduct.fID = daProduct.USP_GetKey(); daProduct.USP_Product_Insert(); daProductProductCat.USP_ProductProductCat_UpdateCustom(daProduct.fID, daProduct.fProductCats); } }
private Boolean UpdateCategory() { try { String IDListProductCatID = ","; DAProductProductCat daProductProductCat = new DAProductProductCat(); IList <RadTreeNode> nodeCollection = RadTreeView1.CheckedNodes; foreach (RadTreeNode node in nodeCollection) { IDListProductCatID += node.Value + ","; } daProductProductCat.USP_ProductProductCat_UpdateCustom(this.KeyID, IDListProductCatID); return(true); } catch (Exception ex) { ShowErrorMes("Lỗi hệ thống: " + ex.ToString()); return(false); } }