Exemplo n.º 1
0
        /// <summary>
        /// 打开文件
        /// </summary>
        /// <param name="openFileParam"></param>
        /// <param name="proxy"></param>
        /// <returns></returns>
        public static OpenFileResult OpenFile(OpenFileParameter openFileParam, IRemoteFileStorage proxy)
        {
            ManagerHelper.CheckNullReference(openFileParam, "openFileParam");
            if (proxy == null)
            {
                proxy = ServiceProxy;
            }
            OpenFileResult result = proxy.OpenFile(openFileParam);

            ManagerHelper.CheckUpdateResult(result);
            return(result);
        }
Exemplo n.º 2
0
        public static OpenFileResultItemData OpenFile(OpenFileItemData openFileItem, IRemoteFileStorage proxy)
        {
            OpenFileResultItemData result = null;

            ManagerHelper.CheckNullReference(openFileItem, "openFileItem");
            OpenFileParameter param = new OpenFileParameter();

            param.InputData.Add(openFileItem);
            OpenFileResult itemResult = OpenFile(param, proxy);

            if (itemResult.RecordCount > 0)
            {
                result = itemResult.ExecuteResult[0];
            }
            return(result);
        }
 public Topevery.FMP.ObjectModel.OpenFileResult OpenFile(Topevery.FMP.ObjectModel.OpenFileParameter openFileParam)
 {
     return(provider.OpenFile(openFileParam));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 打开文件
 /// </summary>
 /// <param name="openFileParam"></param>
 /// <returns></returns>
 public static OpenFileResult OpenFile(OpenFileParameter openFileParam)
 {
     return(OpenFile(openFileParam, null));
 }