Example #1
0
        //static T t1 = new T("");
        static void Main(string[] args)
        {
            //string xls = @"E:\Den_2020-09-14\Den\App\数据2020-8-31 174255\2020.08.30-3(E008-E009后4对,纯化,不纯化,1-10,无破碎)\2020.08.30-3结果分析.xls";
            //string xlsx = @"E:\Den_2020-09-14\Den\App\QPCR结果 - 1\2019.07.10\2019.7.10-上午-Quantification Cq Results.xlsx";
            string dic = null;

            dic = args.Length > 0 ? args[0] : null;

            //dic = @"E:\100-项目代码箱\110-进行中项目\QPCR数据\仪器Excel";
            dic = @"E:\Den_2020-09-14\Den\App\仪器Excel";
            //dic = @"E:\Den_2020-09-14\Den\App\数据2020-8-31 174255";
            //dic = @"E:\Den_2020-09-14\Den\App\数据2020-8-31 174255\2020.08.30-2(E008中间7对,纯化,不纯化,1-10,无破碎)";

            IEDInstance ins = new BLL.Export();

            IEDSett set = ins.GetEDSett();
            string  t   = Convert.ToString(true);

            set.Write("JoinDb", t);

            DateTime dtStart = DateTime.Now;
            IEDLoad  load    = ins.GetEDLoad("I");

            load.ProgressEvent += Load_ProgressEvent;
            load.Load(100, dic);
            DateTime dtEnd = DateTime.Now;

            Console.WriteLine((dtEnd - dtStart).TotalMilliseconds);

            SQLite.Export exp = new SQLite.Export();

            Console.ReadKey();
        }
Example #2
0
        public IEDLoad GetEDLoad(string name)
        {
            IEDLoad load = null;
            IEDSett set  = GetEDSett();
            Port    port;


            switch (name)
            {
            case "I":
                port = new Port()
                {
                    CellHelper  = new CellHelperI(),
                    EvFile      = new FileValidation(),
                    EvTarget    = new TargetValidation(),
                    EvSample    = new SampleValidation(),
                    Group       = new GroupI(),
                    Calculation = new CalculateI(),
                    Output      = new OutPutI(),
                    ExcIns      = excIns,
                    DbIns       = dbIns,
                    JoinDb      = Convert.ToBoolean(set.Read("JoinDb"))
                };
                port.CqHelper = new CqHelperI(port.EvTarget, port.EvSample);
                load          = new Load.LoadI(port);
                break;

            case "II":
                port = new Port()
                {
                    CellHelper  = new CellHelperI(),
                    EvFile      = new FileValidation(),
                    EvTarget    = new TargetValidation(),
                    EvSample    = new SampleValidation(),
                    Group       = new GroupII(),
                    Calculation = new CalculateI(),
                    Output      = new OutPutII(),
                    ExcIns      = excIns,
                    DbIns       = dbIns,
                    JoinDb      = Convert.ToBoolean(set.Read("JoinDb"))
                };
                port.CqHelper = new CqHelperII(port.EvTarget, port.EvSample);

                load = new LoadII(port); break;

            default:
                break;
            }

            return(load);
        }
Example #3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //bar.Value = 50;
            FolderSelectDialog fsd = new FolderSelectDialog();

            if (fsd.ShowDialog())
            {
                IEDLoad load = instance.GetEDLoad(cbType.Text);
                load.ProgressEvent += Load_ProgressEvent;
                bs.ShowProgress();

                load.Load((int)bar.Maximum, fsd.FileNames);
                //for (int i = 0; i < 100; i++)
                //{
                //    Load_ProgressEvent(i, null);
                //    Thread.Sleep(100);
                //}
                bs.Title = _titlehead;
                bs.ShowLab("完成");
            }
        }