private void button3_Click(object sender, EventArgs e) { frmOrder od = new frmOrder(); od.Show(); this.Close(); }
private void mntstorderProduct_Click(object sender, EventArgs e) { frmOrder frmOrder = new frmOrder(); frmOrder.MdiParent = this; frmOrder.Show(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { // 受注番号を取得 Int64 orderNum = Int64.Parse(dataGridView1[colOrderNum, dataGridView1.SelectedRows[0].Index].Value.ToString()); // 支払IDを取得 int sID = int.Parse(dataGridView1[colID, dataGridView1.SelectedRows[0].Index].Value.ToString()); // 受注確定書登録画面 if (orderNum != 0) { frmOrder frm = new frmOrder(orderNum); frm.ShowDialog(); } // 支払金額入力画面 if (sID != 0) { frmShiharai frm = new frmShiharai(sID); frm.ShowDialog(); } // データグリッドビューデータ表示 gridShow(dataGridView1, 0, e.RowIndex); }
private void bStart_Click(object sender, EventArgs e) { if (oTeacher.Images.Next()) { ScannedImage oImage = oTeacher.Images[oTeacher.Images.Index]; oImage.FileType = "JPEG"; img.FileName = oImage.FilePath; if (oOrder.Find(oImage.OrderID)) { frmOrder ofrmOrder = new frmOrder(oOrder); ofrmOrder._OrderProcess = (int)OrderProcess.Scanning; ofrmOrder.ShowDialog(); if (ofrmOrder.IsSaved) { oImage.OrderID = Convert.ToInt32(ofrmOrder.oOrder.ID); oImage.Message = "Saved and Corrected"; oImage.Status = ScannedOrderStatus.ProcessedAndCorrected; oImage.UpdateStatus(); } ofrmOrder.Dispose(); } this.bStart_Click(null, null); } else { MessageBox.Show("No more Images"); } }
/// <summary> /// 菜单点击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolBar_ToolbarItemClick(object sender, ToolbarClickEventArgs e) { switch (e.Name) { case "仓库": frmMenu frmMenu = new frmMenu(); Form.Close(); this.Form.Show(frmMenu); break; case "订单": frmOrder frmOrder = new frmOrder(); Form.Close(); this.Form.Show(frmOrder); break; case "主数据": frmMasterData frmMasterData = new frmMasterData(); Form.Close(); this.Form.Show(frmMasterData); break; case "统计": frmAnalyze frmAnalyse = new frmAnalyze(); Form.Close(); this.Form.Show(frmAnalyse); break; case "设置": frmMessage frmMessage = new frmMessage(); Form.Close(); this.Form.Show(frmMessage); break; } }
private void button1_Click(object sender, EventArgs e) { //受注確定書登録 Form frm = new frmOrder(0); this.Hide(); frm.ShowDialog(); this.Show(); }
private void tsbtnSel_Click(object sender, EventArgs e) { if (this.dgvOrderList.Rows.Count <= 0 || this.dgvOrderList.CurrentRow == null) { return; } frmOrder frmOrder = new frmOrder(this.ZtType, "SEL", this.dgvOrderList["Finterid", this.dgvOrderList.CurrentRow.Index].Value.ToString()); frmOrder.Show(); }
private void showForm(string ename) { switch (ename) { case "仓库": // frmMenu frmMenu = new frmMenu(); //this.Form.Show(frmMenu, (obj, arg) => //{ // showForm(frmMenu.menuToolbar.selectName); //}); //Form.Close(); //this.Form.Show(frmMenu); break; case "订单": frmOrder frmOrder = new frmOrder(); this.Form.Show(frmOrder, (obj, arg) => { showForm(frmOrder.menuToolbar.selectName); }); //Form.Close(); //this.Form.Show(frmOrder); break; case "主数据": frmMasterData frmMasterData = new frmMasterData(); this.Form.Show(frmMasterData, (obj, arg) => { showForm(frmMasterData.menuToolbar.selectName); }); //Form.Close(); //this.Form.Show(frmMasterData); break; case "统计": frmAnalyze frmAnalyse = new frmAnalyze(); this.Form.Show(frmAnalyse, (obj, arg) => { showForm(frmAnalyse.menuToolbar.selectName); }); //Form.Close(); //this.Form.Show(frmAnalyse); break; case "设置": frmMessage frmMessage = new frmMessage(); this.Form.Show(frmMessage, (obj, arg) => { showForm(frmMessage.menuToolbar.selectName); }); //Form.Close(); //this.Form.Show(frmMessage); break; } }
private void bEdit_Click(object sender, EventArgs e) { oOrder.Student = txtStudent.Text; oOrder.Teacher = txtTeacher.Text; frmOrder ofrmOrder = new frmOrder(ref oOrder); ofrmOrder._OrderProcess = OrderProcess.Discrepancy; ofrmOrder.ShowDialog(); oOrder.Find(Convert.ToInt32(oOrder.ID)); txtText.Focus(); return; }
private void CreateOrder() { Order oOrder = new Order(_CompanyID); //Saving Order to SQL Server oOrder.CompanyID = _CompanyID; oOrder.CustomerID = _CustomerID; oOrder.Teacher = _Teacher; oOrder.Student = icrProcessor.Fields["LastName"].Result + ", " + icrProcessor.Fields["FirstName"].Result; Application.DoEvents(); String Code, Quantity; for (int i = 1; i <= 30; i++) { Code = icrProcessor.Fields["Code" + i.ToString()].GetResult(); Quantity = icrProcessor.Fields["Quantity" + i.ToString()].GetResult(); Code = Code.Trim(); Quantity = Quantity.Trim(); //oOrder.oProduct.CompanyID = _CompanyID; oOrder.oCustomer.Find(_CustomerID); if (Code != "" && Code.Length == 4) { if (oOrder.oProduct.Find(Code) && Quantity != "") { Order.Item Item = new Order.Item(); Item.ProductID = oOrder.oProduct.ID; Item.Quantity = Convert.ToInt32(Quantity.Trim()); Item.Description = oOrder.oProduct.Description; Item.Price = oOrder.oProduct.ExtendedPrice(oOrder.oCustomer); oOrder.Items.Add(oOrder.oProduct.ID, Item); oOrder.GetTotals(); } } } frmOrder ofrmOrder = new frmOrder(oOrder); ofrmOrder._OrderProcess = (int)OrderProcess.Discrepancy; ofrmOrder.ShowDialog(); }
private void Start_Click(object sender, EventArgs e) { foreach (ScannedTeacher oTeacher in oCustomer.Teachers) { txtTeacher.Text = oTeacher.Name; oTeacher.Images.Load(this.CompanyID, oCustomer.ID, oTeacher.Name, ScannedOrderStatus.ProcessedWithErrors); foreach (ScannedImage oImage in oTeacher.Images) { // if (oTeacher.Images.Next()) // { //oImage = oTeacher.Images[oTeacher.Images.Index]; oImage.FileType = "JPEG"; //img.FileName = oImage.FilePath; //MessageBox.Show(oImage.FilePath); Screen[] screens = Screen.AllScreens; this.Left = screens[0].Bounds.Width - this.Width - 20; Global.ClosePhotoGallery(oImage.FilePath); if (!File.Exists(oImage.FilePath)) { oImage.FileType = "TIFF"; } System.Diagnostics.Process.Start(oImage.FilePath, ""); if (oOrder.Find(oImage.OrderID)) { frmOrder ofrmOrder = new frmOrder(oOrder); ofrmOrder._OrderProcess = OrderProcess.ScanFixing; ofrmOrder.ShowDialog(); if (ofrmOrder.IsSaved) { oImage.OrderID = Convert.ToInt32(ofrmOrder.oOrder.ID); oImage.Message = "Saved and Corrected"; oImage.Status = ScannedOrderStatus.ProcessedAndCorrected; oImage.UpdateStatus(); } ofrmOrder.Dispose(); } // } } // this.Start_Click(null, null); } Global.ClosePhotoGallery(""); MessageBox.Show("No more Images"); }
private void btnFinish_Click(object sender, EventArgs e) { _entities = new KBBQEntities(); long id = Convert.ToInt32(txtRecptNo.Text.Trim()); var data = _entities.tblAdvBookings.Where(x => x.id == id).FirstOrDefault(); if (data == null) { MessageBox.Show("Invalid Advance Booking Receipt No", "Error - King Bar beque Restaurant Logins", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } else { frmOrder infoOrder = new frmOrder(); infoOrder.lblwaiterName.Text = waiterName; infoOrder.hiddFashCash = 2; infoOrder.advBookingId = data.id; infoOrder.ShowDialog(); this.Close(); } }
public bool ProcessOrder(ScannedImage oImage) { if (oImage.Status == ScannedOrderStatus.JustScanned) { if (!this.ProcessImage(oImage.FilePath)) { /*oImage.OrderID = 0; * oImage.Message = this.ErrorMsg; * oImage.Status = ScannedOrderStatus.NoProcessedWithErrors; * oImage.UpdateStatus();*/ return(false); } if (!this.CreateOrder()) { if (!IsProcessAll) { frmOrder ofrmOrder = new frmOrder(oOrder); ofrmOrder._OrderProcess = OrderProcess.ScanFixing; ofrmOrder.ShowDialog(); if (ofrmOrder.IsSaved) { oImage.OrderID = Convert.ToInt32(ofrmOrder.oOrder.ID); oImage.Message = "Saved and Corrected"; oImage.Status = ScannedOrderStatus.ProcessedAndCorrected; oImage.UpdateStatus(); } ofrmOrder.Dispose(); } else { oOrder.Save(); oImage.OrderID = Convert.ToInt32(oOrder.ID); oImage.Message = "Processed With Errors"; oImage.Status = ScannedOrderStatus.ProcessedWithErrors; oImage.UpdateStatus(); PegasusImaging.WinForms.ImagXpress9.SaveOptions so = new PegasusImaging.WinForms.ImagXpress9.SaveOptions(); so.Format = PegasusImaging.WinForms.ImagXpress9.ImageXFormat.Jpeg; //so.Tiff.Compression = PegasusImaging.WinForms.ImagXpress9.Compression.Group4; oImage.FileType = "JPEG"; OutputImg.Image.Save(oImage.FilePath, so); } } else { oOrder.Save(); oImage.OrderID = Convert.ToInt32(oOrder.ID); oImage.Message = "Processed And OK"; oImage.Status = ScannedOrderStatus.ProcessedOk; oImage.UpdateStatus(); } } else { return(false); } return(true); }
public void set(frmOrder frm) { this.frm = frm; }