/// <summary> /// 保存采购订单 /// </summary> /// <param name="param">Purchase Order</param> /// <returns></returns> public static int SavePurchaseOrder(PurchaseOrderHead po) { try { if (po == null) { throw new Exception("PurchaseOrder is null"); } int result = factory.SavePurchaseOrder(po); if (result == 0) { throw new Exception("DAL.Purchase.PurchaseOrderFactory.SavePurchaseOrder()==0"); } return(result); } catch (Exception ex) { LogHelper.WriteLog(new Log() { message = ex.Message }, "SavePurchaseOrder"); return(0); } }