public Int64 Update(porders objporders)
        {
            Int64 result = 0;

            try
            {
                Cls_porders_db objCls_porders_db = new Cls_porders_db();

                result = Convert.ToInt64(objCls_porders_db.Update(objporders));
                return(result);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(result);
            }
        }
        public porders SelectById(Int64 oid)
        {
            porders objporders = new porders();

            try
            {
                Cls_porders_db objCls_porders_db = new Cls_porders_db();

                objporders = objCls_porders_db.SelectById(oid);
                return(objporders);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(objporders);
            }
        }