public frmOrderICRAdquire() { InitializeComponent(); oCustomer = new ScannedCustomer(Global.CurrrentCompany); oTeacher = new ScannedTeacher(Global.CurrrentCompany); oImage = new Signature.Classes.ScannedImage(); imagXpress1 = new PegasusImaging.WinForms.ImagXpress9.ImagXpress(components); OutputImg = new PegasusImaging.WinForms.ImagXpress9.ImageXView(imagXpress1); } //Constructor
public frmOrderICR() { // // Required for Windows Form Designer support // InitializeComponent(); img.AutoSize = PegasusImaging.WinForms.ImagXpress7.enumAutoSize.ISIZE_BestFit; oOrder = new Order(Global.CurrrentCompany); oCustomer = new ScannedCustomer(CompanyID); } //Constructor
public frmOrderZonalAdquire() { InitializeComponent(); tw = new CTwain(); tw.Init(this.Handle); oCustomer = new ScannedCustomer(Global.CurrrentCompany); oTeacher = new ScannedTeacher(Global.CurrrentCompany); oImage = new ScannedImage(); } //Constructor
private void cAll_Click(object sender, EventArgs e) { String CustomerID = txtCustomerID.Text; ScannedCustomer oCustomer = new ScannedCustomer(this.CompanyID); oCustomer.Find(CustomerID); oCustomer.Teachers.Load(CustomerID); foreach (ScannedTeacher oTeacher in oCustomer.Teachers) { //MessageBox.Show(oTeacher.Name); txtTeacher.Text = oTeacher.Name; oTeacher.Images.CompanyID = CompanyID; oTeacher.Images.CustomerID = CustomerID; oTeacher.Images.Teacher = oTeacher.Name; oTeacher.Images.Load(ScannedOrderStatus.JustScanned); foreach (ScannedImage oImage in oTeacher.Images) { // MessageBox.Show(oImage.FilePath); oImage.Teacher = oTeacher.Name; //this.icrProcessor.CustomerID = CustomerID; this.icrProcessor.IsProcessAll = false; this.icrProcessor.Teacher = oTeacher.Name; this.icrProcessor.ProcessOrder(oImage); this.Text = oImage.FilePath; //if (this.icrProcessor.ProcessImage(oImage.FilePath)) // this.icrProcessor.CreateOrder(); } } /* * this.IsProcessAll = true; * this.LoadImageFiles(""); * while (this.NextImage()) * { * } */ MessageBox.Show("No more images"); }
public void RunAllCustomer() { String CustomerID = txtCustomerID.Text; ScannedCustomer oCustomer = new ScannedCustomer(this.CompanyID); oCustomer.Find(CustomerID); oCustomer.Teachers.Load(CustomerID); foreach (ScannedTeacher oTeacher in oCustomer.Teachers) { //MessageBox.Show(oTeacher.Name); txtTeacher.Text = oTeacher.Name; oTeacher.Images.CompanyID = CompanyID; oTeacher.Images.CustomerID = CustomerID; oTeacher.Images.Teacher = oTeacher.Name; oTeacher.Images.Load(ScannedOrderStatus.JustScanned); foreach (ScannedImage oImage in oTeacher.Images) { // MessageBox.Show(oImage.FilePath); oImage.Teacher = oTeacher.Name; this.icrProcessor.IsProcessAll = true; this.icrProcessor.Teacher = oTeacher.Name; // this.icrProcessor.ProcessOrder(oImage); } } /* * this.IsProcessAll = true; * this.LoadImageFiles(""); * while (this.NextImage()) * { * } */ MessageBox.Show("No more images"); }