예제 #1
0
        /// <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
        }
예제 #2
0
        /// <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
        }
예제 #3
0
        /// <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
        }