Esempio n. 1
0
        public Int64 Update(PurchaseOrderHeader objPurchaseOrderHeader)
        {
            Int64 result = 0;

            try
            {
                Cls_PurchaseOrderHeader_db objCls_PurchaseOrderHeader_db = new Cls_PurchaseOrderHeader_db();

                result = Convert.ToInt64(objCls_PurchaseOrderHeader_db.Update(objPurchaseOrderHeader));
                return(result);
            }
            catch (Exception ex)
            {
                ////ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(result);
            }
        }
Esempio n. 2
0
        public DataTable SelectAll(PurchaseOrderHeader objPurchaseOrderHeader)
        {
            DataTable dt = new DataTable();

            try
            {
                Cls_PurchaseOrderHeader_db objCls_PurchaseOrderHeader_db = new Cls_PurchaseOrderHeader_db();

                dt = objCls_PurchaseOrderHeader_db.SelectAll(objPurchaseOrderHeader);
                return(dt);
            }
            catch (Exception ex)
            {
                //ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(dt);
            }
        }
Esempio n. 3
0
        public PurchaseOrderHeader SelectById(Int64 id)
        {
            PurchaseOrderHeader objPurchaseOrderHeader = new PurchaseOrderHeader();

            try
            {
                Cls_PurchaseOrderHeader_db objCls_PurchaseOrderHeader_db = new Cls_PurchaseOrderHeader_db();

                objPurchaseOrderHeader = objCls_PurchaseOrderHeader_db.SelectById(id);
                return(objPurchaseOrderHeader);
            }
            catch (Exception ex)
            {
                //ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(objPurchaseOrderHeader);
            }
        }
        public Int64 Insert(PurchaseOrderHeader objorders)
        {
            Int64 result = 0;

            try
            {
                Cls_PurchaseOrderHeader_db objCls_orders_db = new Cls_PurchaseOrderHeader_db();

                result = Convert.ToInt64(objCls_orders_db.Insert(objorders));
                return(result);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(result);
            }
        }