예제 #1
0
        private void txtISO_Leave(object sender, EventArgs e)
        {
            txtISOEntered = false;
            this.Cursor   = Cursors.WaitCursor;
            try
            {
                if (row == null)
                {
                    return;
                }

                //检验ISO
                IsoCode iso = bll.CheckIsoCode(txtISO.Text.Trim());
                //bll.iso = iso;
                if (iso == null)
                {
                    MessageBox.Show("ISOCODE未定义");
                    return;
                }

                if (Convert.ToDecimal(txtMove1.Text) > 1)
                {
                    if (row2.CONTAINER_SHAPE != txtISO.Text.Trim())
                    {
                        row2.RCONTAINER_SHAPE = txtISO.Text.Trim();
                        //cntResult = bll.InitCntCtrl(row);
                    }
                }
                else
                {
                    if (row.CONTAINER_SHAPE != txtISO.Text.Trim())
                    {
                        row.RCONTAINER_SHAPE = txtISO.Text.Trim();
                        //cntResult = bll.InitCntCtrl(row);
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }