Esempio n. 1
0
        public override bool GetById(int id)
        {
            ProductGroupMD mkt = m_dbConn.GetTableData(GetTableName(), id).ConvertToTarget <ProductGroupMD>();

            m_boTable = mkt;

            return(m_boTable == null);
        }
Esempio n. 2
0
        public override bool Init()
        {
            ProductGroupMD proGrp = (ProductGroupMD)m_boTable;

            proGrp.ID = GetNextID();

            return(base.Init());
        }
Esempio n. 3
0
        public override bool OnIsValid()
        {
            bool isValid = true;

            if (m_boTable != null)
            {
                ProductGroupMD proGrp = (ProductGroupMD)m_boTable;
                if (string.IsNullOrEmpty(proGrp.Name))
                {
                    isValid = false;
                }
            }
            return(isValid);
        }
Esempio n. 4
0
 public BOProductGroup()
 {
     base.m_boId = BOIDEnum.ProductGroup;
     m_boTable   = new ProductGroupMD();
 }
Esempio n. 5
0
 public BOProductGroup()
 {
     base.m_boId = BOIDEnum.ProductGroup;
     m_boTable = new ProductGroupMD();
 }