/// <summary>
        /// Get Array object class có parameter.
        /// </summary>
        /// <returns></returns>
        public static Cls_ShopsOrdersDetail[] getArrayObject(DataTable dt)
        {
            if (dt.Rows.Count == 0)
            {
                return(null);
            }
            Cls_ShopsOrdersDetail[] arr = new Cls_ShopsOrdersDetail[dt.Rows.Count];
            int i = 0;

            foreach (DataRow dr in dt.Rows)
            {
                arr[i] = converDataRow_To_Object(dr);
                i++;
            }
            return(arr);
        }
        /// <summary>
        /// Converter DataRow sang Object.
        /// </summary>
        /// <returns></returns>
        public static Cls_ShopsOrdersDetail converDataRow_To_Object(DataRow dr)
        {
            Cls_ShopsOrdersDetail _Object = new Cls_ShopsOrdersDetail();

            //ID_OrderProduct
            if (dr.Table.Columns.Contains(fn_ID_OrderProduct))
            {
                if (dr[fn_ID_OrderProduct] != DBNull.Value)
                {
                    _Object.ID_OrderProduct = (int)dr[fn_ID_OrderProduct];
                }
            }

            //ID_Payment
            if (dr.Table.Columns.Contains(fn_ID_Payment))
            {
                if (dr[fn_ID_Payment] != DBNull.Value)
                {
                    _Object.ID_Payment = (int)dr[fn_ID_Payment];
                }
            }

            //ID_User
            if (dr.Table.Columns.Contains(fn_ID_User))
            {
                if (dr[fn_ID_User] != DBNull.Value)
                {
                    _Object.ID_User = (int)dr[fn_ID_User];
                }
            }

            //OrdersName
            if (dr.Table.Columns.Contains(fn_OrdersName))
            {
                if (dr[fn_OrdersName] != DBNull.Value)
                {
                    _Object.OrdersName = (string)dr[fn_OrdersName];
                }
            }

            //UserName
            if (dr.Table.Columns.Contains(fn_UserName))
            {
                if (dr[fn_UserName] != DBNull.Value)
                {
                    _Object.UserName = (string)dr[fn_UserName];
                }
            }

            //UserEmail
            if (dr.Table.Columns.Contains(fn_UserEmail))
            {
                if (dr[fn_UserEmail] != DBNull.Value)
                {
                    _Object.UserEmail = (string)dr[fn_UserEmail];
                }
            }

            //UserAddress
            if (dr.Table.Columns.Contains(fn_UserAddress))
            {
                if (dr[fn_UserAddress] != DBNull.Value)
                {
                    _Object.UserAddress = (string)dr[fn_UserAddress];
                }
            }

            //UserPhone
            if (dr.Table.Columns.Contains(fn_UserPhone))
            {
                if (dr[fn_UserPhone] != DBNull.Value)
                {
                    _Object.UserPhone = (string)dr[fn_UserPhone];
                }
            }

            //PriceTotal
            if (dr.Table.Columns.Contains(fn_PriceTotal))
            {
                if (dr[fn_PriceTotal] != DBNull.Value)
                {
                    _Object.PriceTotal = (Double)dr[fn_PriceTotal];
                }
            }

            //Description
            if (dr.Table.Columns.Contains(fn_Description))
            {
                if (dr[fn_Description] != DBNull.Value)
                {
                    _Object.Description = (string)dr[fn_Description];
                }
            }

            //AddTime
            if (dr.Table.Columns.Contains(fn_AddTime))
            {
                if (dr[fn_AddTime] != DBNull.Value)
                {
                    _Object.AddTime = (DateTime)dr[fn_AddTime];
                }
            }

            //EditTime
            if (dr.Table.Columns.Contains(fn_EditTime))
            {
                if (dr[fn_EditTime] != DBNull.Value)
                {
                    _Object.EditTime = (DateTime)dr[fn_EditTime];
                }
            }

            //Hidden
            if (dr.Table.Columns.Contains(fn_Hidden))
            {
                if (dr[fn_Hidden] != DBNull.Value)
                {
                    _Object.Hidden = (bool)dr[fn_Hidden];
                }
            }

            return(_Object);
        }