Example #1
0
        /// <summary>
        /// //取得刀具圖檔
        /// </summary>
        /// <param name="toolType"></param>
        private void GetToolTypeImages(string toolType)
        {
            //清除資料
            _ToolTypePictures = new List <CSTToolTypePictureInfo>();

            //取得刀具圖檔清單
            _ToolTypePictures = CSTToolTypePictureInfo.GetDataListByToolType(toolType);

            gvToolTypeImage.SetDataSource(_ToolTypePictures, true);
        }
Example #2
0
        /// <summary>
        /// //取得刀具圖檔
        /// </summary>
        /// <param name="toolType"></param>
        private void GetToolTypeImages(string toolType)
        {
            //清除資料
            _SourceToolTypePictures = new List <CSTToolTypePictureInfo>();
            _ModifyToolTypePictures = new List <CSTToolTypePictureInfo>();
            _HttpPostedFiles        = new List <HttpPostedFile>();

            //取得刀具圖檔清單
            _SourceToolTypePictures = CSTToolTypePictureInfo.GetDataListByToolType(toolType);

            _SourceToolTypePictures.ForEach(toolTypePicture =>
            {
                _HttpPostedFiles.Add(FileUpload1.PostedFile);
                _ModifyToolTypePictures.Add(toolTypePicture);
            });

            gvToolTypeImage.SetDataSource(_ModifyToolTypePictures, true);
        }