/// <summary> /// 查詢明細 /// </summary> /// <param name="detailRequest"></param> /// <returns></returns> public DetailViewModel QueryDetail(DetailRequestViewModel detailRequest) { #region 參數宣告 DetailViewModel detail = new DetailViewModel(); IHandSetRepository handSetRp = new HandSetRepository(); #endregion #region 流程 detail = handSetRp.QueryDetail(detailRequest); return(detail); #endregion }
/// <summary> /// 查詢列表 /// </summary> /// <param name="searchInfo"></param> /// <returns></returns> public SearchListViewModel QuerySearchList(SearchInfoViewModel searchInfo) { #region 參數宣告 SearchListViewModel searchList = new SearchListViewModel(); IHandSetRepository handSetRp = new HandSetRepository(); #endregion #region 流程 searchList = handSetRp.QuerySearchList(searchInfo); return(searchList); #endregion }
/// <summary> /// 新增明細 /// </summary> /// <param name="detail"></param> /// <returns></returns> public bool AddDetail(DetailViewModel detail) { #region 參數宣告 bool result = false; HandSetModel handSet = new HandSetModel(); IHandSetRepository handSetRp = new HandSetRepository(); #endregion #region 流程 handSet = PropertyCopy.Convert <DetailViewModel, HandSetModel>(detail); result = handSetRp.AddHandSet(handSet); return(result); #endregion }