Ejemplo n.º 1
0
        //扫描原件
        private void btnScan_Click(object sender, EventArgs e)
        {
            #region 老式原件扫描
            //localFilePath = Application.StartupPath + "\\TempFile";
            //if (!Directory.Exists(localFilePath))
            //{
            //    Directory.CreateDirectory(localFilePath);
            //}
            //localFilePath += "\\temp.jpg";

            //UIPublicClass.ScannerPublic sp = new ScannerPublic();
            //MemoryStream ms = sp.getPictureStream();
            //if (ms.Length > 0)
            //{
            //    Image img = Image.FromStream(ms);
            //    img.Save(localFilePath);

            //    UpLoadYj(0);
            //}
            #endregion

            string limit, year, leimu, docNum, indexNum;
            indexNum       = Convert.ToString(gd_yj.getYjMaxNum(DocID) + 1);//序号
            docNum         = node.Text;
            leimu          = node.Parent.Text;
            year           = node.Parent.Parent.Text;
            limit          = node.Parent.Parent.Parent.Text;
            scan           = new CamScanner_YJ.ImageScan(GD_Input.TopClassID, limit, year, leimu, docNum, indexNum);
            scan.InputForm = GD_Input.InputForm;
            scan.Show();

            GD_Input.InputForm.Hide();

            ScanTimer       = new Timer();
            ScanTimer.Tick += new EventHandler(timer_Tick);
            ScanTimer.Start();
        }
Ejemplo n.º 2
0
 private void 原件批量扫描ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CamScanner_YJ.ImageScan imagescan = new CamScanner_YJ.ImageScan(TopClassID);
     imagescan.Show();
 }
Ejemplo n.º 3
0
 protected override void YJSM()
 {
     CamScanner_YJ.ImageScan imagescan = new CamScanner_YJ.ImageScan(TopClassID);
     imagescan.Show();
 }