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