コード例 #1
0
        private void bNext_Click(object sender, EventArgs e)
        {
            if (curActivity == Discrepancy.DiscrepancyActivity.Busy)
            {
                oOrder.SetStatus(Discrepancy.DiscrepancyActivity.NoAction);
            }
            if (oOrder.GetNextOrder(txtCustomerID.Text) != 0)
            {
                oOrder.Find(oOrder.GetNextOrder(txtCustomerID.Text));
                txtStudent.Text = oOrder.Student;
                txtTeacher.Text = oOrder.Teacher;

                if (oOrder.FindText(Convert.ToInt32(oOrder.ID)))
                {
                    txtText.Text = oOrder.LetterText;
                }
                else
                {
                    txtText.Text = "";
                    lbDiff.Text  = oOrder.Diff.ToString();
                }

                if (oOrder.oImage.OrderID != 0)
                {
                    bPrintImage.Visible = true;
                }
                else
                {
                    bPrintImage.Visible = false;
                }

//                oOrder.SetStatus(Discrepancy.DiscrepancyActivity.Busy);
                //groupBox3.Focus();
                //txtText.Text = "";
                txtText.Focus();
            }
            else
            {
                MessageBox.Show("Discrepancy done with this school");
                txtCustomerID.Focus();
            }
        }