Exemplo n.º 1
0
        ///<summary>
        /// Set entity data
        ///</summary>
        private void SetEntity(ProductCategoryEntity objEntity)
        {
            GBUId = objEntity.ProductCategoryId;
            txtGBUName.Text = objEntity.Title;

            txtGBUName.Focus();
        }
        ///<summary>
        /// Set entity data
        ///</summary>
        private void SetEntity(ProductCategoryEntity objEntity)
        {
            CategoryId = objEntity.ProductCategoryId;
            ddlGBU.SelectedValue = objEntity.Pid;
            txtCategoryName.Text = objEntity.Title;

            txtCategoryName.Focus();
        }
Exemplo n.º 3
0
        private ProductCategoryEntity GetEntity()
        {

            ProductCategoryEntity objEntity = null;
            if (!string.IsNullOrEmpty(GBUId))
                objEntity = MainService.ProductCategoryBLLService.GetProductCategoryEntityById(GBUId);
            else
                objEntity = new ProductCategoryEntity();
            objEntity.Title = txtGBUName.Text.Trim();
            objEntity.ProductCategoryLevel = (int)BPSC.Common.BrandCategory_Category.GBU;
            objEntity.Category = BPSC.Common.BrandCategory_Category.GBU.ToString();
            objEntity.Pid = "#";

            return objEntity;
        }
Exemplo n.º 4
0
 public virtual DataSet GetCategory(string _GBUId)
 {
     ProductCategoryEntity entity = new ProductCategoryEntity();
     entity.ProductCategoryLevel = (int)BPSC.Common.BrandCategory_Category.Category;
     entity.Pid = _GBUId;
     return DataAccess.SelectDataSet(entity);
 }
Exemplo n.º 5
0
 //public virtual List<ChkFunctionParamEntity> GetChkFunctionParasByFunctionId(string functionId)
 //{
 //    return SelectByCondition<ChkFunctionParamEntity>(adidas.DataCollection.Common.Utils.QueryCondition.Create().Equals(ChkFunctionParamTable.C_FUNCTION_ID, functionId).Order(ChkFunctionParamTable.C_SORT_ORDER));
 //}
 //public virtual void InsertChkFUnctionParas(List<ChkFunctionParamEntity> functionParas, DataAccessBroker broker)
 //{
 //    DataAccess.Insert(functionParas, broker);
 //}
 //public virtual void DeleteChkFunctionParasByCondition(ChkFunctionParamEntity param, DataAccessBroker broker)
 //{
 //    DataAccess.DeleteEntity(param, broker);
 //}
 public virtual DataSet GetAllGBU()
 {
     ProductCategoryEntity entity = new ProductCategoryEntity();
     entity.ProductCategoryLevel = (int)BPSC.Common.BrandCategory_Category.GBU;
     return DataAccess.SelectDataSet(entity);
 }
Exemplo n.º 6
0
 public virtual void UpdateProductCategoryEntity(ProductCategoryEntity entity, DataAccessBroker broker)
 {
     DataAccess.Update(entity, broker);
 }
Exemplo n.º 7
0
 public virtual void InsertProductCategoryEntity(ProductCategoryEntity entity, DataAccessBroker broker)
 {
     DataAccess.Insert(entity, broker);
 }
Exemplo n.º 8
0
 /// <summary>
 /// 检查产品类别名在同级别中是否含有指定的名称存在,用于添加记录前的检查。
 /// </summary>
 /// <param name="title"></param>
 /// <param name="level"></param>
 /// <returns></returns>
 public virtual bool CheckCategoryTitleIsExist(string title, string pid)
 {
     ProductCategoryEntity entity = new ProductCategoryEntity();
     entity.Title = title;
     entity.Pid = pid;
     return DataAccess.Select<ProductCategoryEntity>(entity).Count > 0;
 }
Exemplo n.º 9
0
 public virtual ProductCategoryDomain CreateProductCategoryDomain()
 {
     ProductCategoryEntity entity = new ProductCategoryEntity();
     entity.ProductCategoryId = Guid.NewGuid().ToString();
     return new ProductCategoryDomain(entity);
 }
Exemplo n.º 10
0
 public ProductCategoryDomain(ProductCategoryEntity entity)
     : base(entity)
 {
     masterEntity = entity;
 }
Exemplo n.º 11
0
        ///<summary>
        /// Set entity data
        ///</summary>
        private void SetEntity(ProductCategoryEntity objEntity)
        {
            BrandId = objEntity.ProductCategoryId;
            string categoryId = objEntity.Pid;
            string gbuId = MainService.ProductCategoryBLLService.GetProductCategoryEntityById(BrandId).Pid;

            BindGBUList();
            this.ddlGBU.SelectedValue = gbuId;
            BindCategoryList();
            this.ddlCategory.SelectedValue = categoryId;

            txtBrandName.Text = objEntity.Title;
            txtBrandName.Focus();


        }
Exemplo n.º 12
0
        private ProductCategoryEntity GetEntity()
        {

            ProductCategoryEntity objEntity = null;
            if (!string.IsNullOrEmpty(BrandId))
                objEntity =  MainService.ProductCategoryBLLService.GetProductCategoryEntityById(BrandId); 
            else
                objEntity = new ProductCategoryEntity();

            objEntity.Title = txtBrandName.Text.Trim();
            objEntity.Pid = ddlCategory.SelectedValue;
            objEntity.ProductCategoryLevel = (int)BPSC.Common.BrandCategory_Category.Brand;
            objEntity.Category = BPSC.Common.BrandCategory_Category.Brand.ToString();

            return objEntity;



        }