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

            m_boTable = mkt;

            return(m_boTable == null);
        }
Beispiel #2
0
        public override bool Init()
        {
            ProductGroupMD proGrp = (ProductGroupMD)m_boTable;

            proGrp.ID = GetNextID();

            return(base.Init());
        }
Beispiel #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);
        }
Beispiel #4
0
 public BOProductGroup()
 {
     base.m_boId = BOIDEnum.ProductGroup;
     m_boTable   = new ProductGroupMD();
 }
Beispiel #5
0
 public BOProductGroup()
 {
     base.m_boId = BOIDEnum.ProductGroup;
     m_boTable = new ProductGroupMD();
 }