Esempio n. 1
0
 /// <summary>
 /// 下载文档
 /// </summary>
 /// <param name="doc"></param>
 /// <returns></returns>
 public bool downDocument(document doc)
 {
     // 获取后台文件,发送到前台
     Client client = new Client(doc.ipaddress,doc.port,doc.cn_name+"."+doc.format_name,doc.physical_file_location);
     //client.start();
     client.StartSend();
     return true;
 }
Esempio n. 2
0
        /// <summary>
        /// 下载文档
        /// </summary>
        /// <param name="doc"></param>
        /// <returns></returns>
        public bool downDocument(document doc)
        {
            // 获取后台文件,发送到前台
            Client client = new Client(doc.ipaddress, doc.port, doc.cn_name + "." + doc.format_name, doc.physical_file_location);

            //client.start();
            client.StartSend();
            return(true);
        }
Esempio n. 3
0
 /// <summary>
 /// 批量下载文档
 /// </summary>
 /// <param name="doc"></param>
 /// <returns></returns>
 public bool downDocumentAll(List<document> docs)
 {
     foreach(document doc in docs){
         // 获取后台文件,发送到前台
         Client client = new Client(doc.ipaddress, doc.port, doc.cn_name + "." + doc.format_name, doc.physical_file_location);
         client.StartSend();
     }
     return true;
 }
Esempio n. 4
0
 /// <summary>
 /// 批量下载文档
 /// </summary>
 /// <param name="doc"></param>
 /// <returns></returns>
 public bool downDocumentAll(List <document> docs)
 {
     foreach (document doc in docs)
     {
         // 获取后台文件,发送到前台
         Client client = new Client(doc.ipaddress, doc.port, doc.cn_name + "." + doc.format_name, doc.physical_file_location);
         client.StartSend();
     }
     return(true);
 }