/// <summary> /// 传入对象,保存数据到ArrangedVouch车间排配单表中XCQ20161217 /// </summary> /// <param name="model"></param> /// <returns></returns> public CommonResult <ArrangedVouch> InsertArrangedVouch(ArrangedVouch model) { var result = new CommonResult <ArrangedVouch>(); try { if (result.IsSuccess) { var dbSession = new DBService <ArrangedVouch>().DbSession; result.Data = dbSession.Insert(model); } } catch (Exception ex) { Utils.Logger.Error(ex.ToString()); throw ex; } return(result); }
/// <summary> /// 传入对象,保存数据到车间排配单表中XCQ20161217 /// </summary> /// <param name="model"></param> /// <returns></returns> public CommonResult <ArrangedVouch> InsertArrangedVouch(ArrangedVouch model) { var result = new CommonResult <ArrangedVouch>(); try { if (result.IsSuccess) { var dbSession = new DBService <ArrangedVouch>().DbSession; result.Data = dbSession.Insert(model); } } catch (Exception ex) { result.IsSuccess = false; result.Message = ex.Message; result.StackTrace = ex.StackTrace; } return(result); }