public Int64 Update(PurchaseOrderDetails objorderproducts) { Int64 result = 0; try { Cls_PurchaseOrderDetails_db objCls_orderproducts_db = new Cls_PurchaseOrderDetails_db(); result = Convert.ToInt64(objCls_orderproducts_db.Update(objorderproducts)); return(result); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(result); } }
/* * public DataTable SelectAll(PurchaseOrderDetails objPurchaseOrderDetails) * { * DataTable dt = new DataTable(); * try * { * Cls_PurchaseOrderDetails_db objCls_PurchaseOrderDetails_db = new Cls_PurchaseOrderDetails_db(); * * dt = objCls_PurchaseOrderDetails_db.SelectAll(objPurchaseOrderDetails); * return dt; * } * catch (Exception ex) * { * //ErrHandler.writeError(ex.Message, ex.StackTrace); * return dt; * } * } * public PurchaseOrderDetails SelectById(Int64 id) * { * PurchaseOrderDetails objPurchaseOrderDetails = new PurchaseOrderDetails(); * try * { * Cls_PurchaseOrderDetails_db objCls_PurchaseOrderDetails_db = new Cls_PurchaseOrderDetails_db(); * * objPurchaseOrderDetails = objCls_PurchaseOrderDetails_db.SelectById(id); * return objPurchaseOrderDetails; * } * catch (Exception ex) * { * //ErrHandler.writeError(ex.Message, ex.StackTrace); * return objPurchaseOrderDetails; * } * } * / * */ public Int64 Insert(PurchaseOrderDetails objPurchaseOrderDetails) { Int64 result = 0; try { Cls_PurchaseOrderDetails_db objCls_PurchaseOrderDetails_db = new Cls_PurchaseOrderDetails_db(); result = Convert.ToInt64(objCls_PurchaseOrderDetails_db.Insert(objPurchaseOrderDetails)); return(result); } catch (Exception ex) { ////ErrHandler.writeError(ex.Message, ex.StackTrace); return(result); } }
public PurchaseOrderDetails SelectById(Int64 opid) { PurchaseOrderDetails objorderproducts = new PurchaseOrderDetails(); try { Cls_PurchaseOrderDetails_db objCls_orderproducts_db = new Cls_PurchaseOrderDetails_db(); objorderproducts = objCls_orderproducts_db.SelectById(opid); return(objorderproducts); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(objorderproducts); } }