Example #1
0
        private void MultiSave(PicForm scannedForm)
        {
            string Target    = m_TargetPath;
            bool   bShowSnif = m_ShowSnif;
            bool   bNumeric  = m_TargetNumeric;

            scannedForm.Focus();

            frmGetData frm = new frmGetData();

            frm.SetLanguage(menuItemEnglish.Checked ? 0 : 1);
            this.Text = "Scanning Control Center System - ";// +(mnuEliran.Checked ? "אלירן" : "זוהר");

            m_ShowSnif      = bShowSnif;
            m_TargetNumeric = bNumeric;

            if (!bShowSnif)
            {
                frm.HideSnif();
            }

            if (!bNumeric)
            {
                frm.SetNotNumeric();
            }

            if (frm.Snif == null)
            {
                frm.Snif = Branch.ToString();
                frm.Hoze = "";
            }

            //if (Target == "פעיל")
            //    frm.SetScannerTargetPath(m_LicenceAndInsurancePath + Target + "\\");
            //else
            frm.SetScannerTargetPath(m_ScannerPath + Target + "\\");

            frm.SetScanType(m_ScanType);
            frm.SetScanTypePic(m_CurrentImage);
            frm.SetText = txtNumber;
            frm.Text    = "Scan " + Target;
            frm.ShowDialog();
            m_FileName = frm.GetData().Trim();

            //if (Target == "פעיל")
            //{
            //    if (m_FileName.Trim().Length != 7)
            //    {
            //        m_FileName = "";
            //    }
            //}

            if (m_FileName.Trim() != "")
            {
                if (m_FileName.Trim().Length == 7)
                {
                    m_FileName = m_ScanType + m_FileName.Trim();
                }

                m_TargetPath     = Target;
                scannedForm.Text = m_FileName.Trim();
                //StartScan();
            }

            frm.Close();

            txtNumber = "";
        }
Example #2
0
        private void Scan(string Target, bool bShowSnif, bool bNumeric)
        {
            frmGetData frm = new frmGetData();

            frm.SetLanguage(menuItemEnglish.Checked ? 0 : 1);

            this.Text = "Scanning Control Center System - ";// +(mnuEliran.Checked ? "אלירן" : "זוהר");

            m_ShowSnif      = bShowSnif;
            m_TargetNumeric = bNumeric;

            if (!bShowSnif)
            {
                frm.HideSnif();
            }
            else
            {
                //if (m_HozeAndSnifSearch != "")
                //{
                //    if (MessageBox.Show("ðîöà חיפוש ðúåðéí ÷åãí äàí ìùúåì?", "÷ìéèä îחיפוש", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                //    {
                //        frm.Snif = m_Snif;
                //        frm.Hoze = m_Hoze;
                //    }
                //    else
                //    {
                //        m_HozeAndSnifSearch = "";
                //        m_Hoze = "0";
                //        //m_Snif = "";
                //        m_Snif = ((Branch == 0) ? "" : Branch.ToString());
                //    }
                //}
            }

            if (!bNumeric)
            {
                frm.SetNotNumeric();
            }

            if (frm.Snif == null)
            {
                frm.Snif = Branch.ToString();
                frm.Hoze = "0";
            }

            //if (Target == "פעיל")
            //    frm.SetScannerTargetPath(m_LicenceAndInsurancePath + Target + "\\");
            //else
            frm.SetScannerTargetPath(m_ScannerPath + Target + "\\");

            frm.SetScanType(m_ScanType);
            frm.SetScanTypePic(m_CurrentImage);

            frm.Text = "Scan " + Target;
            if (m_ShowSnif)
            {
                frm.Show();
                frm.Hide();
            }
            else
            {
                frm.ShowDialog();
            }

            m_FileName = frm.GetData().Trim();

            if (Target == "פעיל")
            {
                if (m_FileName.Trim().Length != 7)
                {
                    m_FileName = "";
                }
            }

            if (m_FileName.Trim() != "")
            {
                m_TargetPath = Target;
                StartScan();
            }

            frm.Close();
        }