Exemple #1
0
        protected virtual bool Load(Enumarations.State MinState)
        {
            bool bTemp = false;

            DataSet oDS;

            oDS = null;

            if (this.ID > 0)
            {
                try
                {
                    DAL.DataProvider.SqlClientProvider oSqlClientProvider = new DAL.DataProvider.SqlClientProvider();
                    oDS = oSqlClientProvider.GetProductDetailByPID(this.ID, (int)MinState);
                    if (Utility.CheckDataSetState(oDS) && (Utility.CheckDataTableState(oDS.Tables[0])))
                    {
                        if (oDS.Tables[0].Rows.Count > 0)
                        {
                            bTemp = LoadProductFromDataRow(oDS.Tables[0].Rows[0], MinState);
                        }
                    }
                }
                catch (Exception Exp)
                {
                }
                finally
                {
                }
            }

            return(bTemp);
        }