public bool Insert(tbOrderPrint OrderPrint) { bool IsOk = false; IDbDataParameter[] parm = GetInsertParam(); parm[0].Value = OrderPrint.OrdersNumber; parm[1].Value = OrderPrint.OrderPrintDate; parm[2].Value = OrderPrint.Operator; parm[3].Value = OrderPrint.Detail; try { DBHelper.ExecuteNonQuery(CommandType.StoredProcedure, SQL_INSERT, parm); IsOk = true; } catch { } return(IsOk); }
/// <summary> /// 添加订单打印信息 /// </summary> /// <param name="OrderPrint">订单打印表</param> /// <returns></returns> public static bool Insert(tbOrderPrint OrderPrint) { return(OrderPrintDal.Insert(OrderPrint)); }