Ejemplo n.º 1
0
        /// <summary>
        /// 从房产库查询数据构建BDC插入实例
        /// </summary>
        /// <param name="slbh"></param>
        /// <returns></returns>
        private static List <DOC_BINFILE> GetDoc_Binfile(string slbh, string fcslbh)
        {
            List <VolEleArcDtl> veads = ImportDAL.GetVolEleArcDtl(fcslbh);
            List <DOC_BINFILE>  list  = new List <DOC_BINFILE>();

            //if(null!=Res_list && Res_list.Count>0)
            //{
            //    foreach (Result res in Res_list)
            //    {
            Thread.Sleep(200);
            foreach (VolEleArcDtl v in veads)
            {
                v.imgName = v.imgName.Replace(@"\\192.168.134.245\", "").Replace(@"\\192.168.100.202\", "").Replace(@"K:\", "").Replace(@"\\192.168.100.202 \", "");
                v.imgName = v.imgName.Replace("\\", "/");
                VolEleArc   vea         = GetVolEleArc(v.VolEleArc_ID);
                DOC_BINFILE doc_binfile = new DOC_BINFILE();
                doc_binfile.BINID = GetCID(slbh, vea.EleArcName);
                if (doc_binfile.BINID != "")
                {
                    doc_binfile.FTPATH       = v.imgName;
                    doc_binfile.FILEID       = Guid.NewGuid().ToString();
                    doc_binfile.FILENAME     = vea.EleArcName;
                    doc_binfile.EXTNAME      = GetExtName(v.imgName);
                    doc_binfile.ISCOMPRESSED = "否";
                    doc_binfile.ISENCRYPTED  = "否";
                    list.Add(doc_binfile);
                }
            }

            //    }
            //}

            return(list);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 从房产库查询数据构建BDC插入实例
        /// </summary>
        /// <param name="slbh"></param>
        /// <returns></returns>
        private static List <DOC_BINFILE> GetDoc_Binfile(string slbh)
        {
            //string[] args = new string[1];
            //args[0] = "China";
            //object result= WebServiceHelper.InvokeWebService(WebSrvUrl, WebSrvMethon, args);
            //List<Result> Res_list = (List<Result>)result;
            List <VolEleArcDtl> veads = ImportDAL.GetVolEleArcDtl(slbh);
            List <DOC_BINFILE>  list  = new List <DOC_BINFILE>();

            //if(null!=Res_list && Res_list.Count>0)
            //{
            //    foreach (Result res in Res_list)
            //    {
            foreach (VolEleArcDtl v in veads)
            {
                v.imgName = v.imgName.Replace(@"\\192.168.100.202 \", "").Replace(@"K:\", "");

                VolEleArc   vea         = GetVolEleArc(v.VolEleArc_ID);
                DOC_BINFILE doc_binfile = new DOC_BINFILE();
                doc_binfile.BINID = GetCID(slbh, vea.EleArcName);
                if (doc_binfile.BINID != "")
                {
                    doc_binfile.FTPATH       = v.imgName;
                    doc_binfile.FILEID       = Guid.NewGuid().ToString();
                    doc_binfile.FILENAME     = vea.EleArcName;
                    doc_binfile.EXTNAME      = "JPG";
                    doc_binfile.ISCOMPRESSED = "否";
                    doc_binfile.ISENCRYPTED  = "否";
                    list.Add(doc_binfile);
                }
            }

            //    }
            //}

            return(list);
        }