Exemplo n.º 1
0
        private void okButton_Click(object sender, EventArgs e)
        {
            Result = new SelectedRankRow();

            if (rankRowSet.Empty == true)
            {
                DialogResult = DialogResult.Cancel;
                Close();
                return;
            }

            Result.RecNo = rankSet.RecNo;
            Result.Name  = rankSet.Name;

            for (int i = 0; i < rankRowSet.RowCount; i++)
            {
                rankRowSet.Fetch(i);

                if (i == 0)
                {
                    Result.Lower = rankRowSet.Lower1;
                }
            }

            Result.Upper = rankRowSet.Upper1;
            Close();
        }
Exemplo n.º 2
0
        public DialogRankList(Int64 recipeNo, Int64 recNo, EReportItemCode code)
        {
            Result        = null;
            this.recipeNo = recipeNo;
            this.recNo    = recNo;
            this.code     = code;

            InitializeComponent();
            Initialize();
        }
Exemplo n.º 3
0
        private void DialogRankList_Load(object sender, EventArgs e)
        {
            rankSet.Select(recipeNo, code);
            if (rankSet.Empty == true)
            {
                Result       = new SelectedRankRow();
                DialogResult = DialogResult.Cancel;
                Close();
                return;
            }

            rankGrid.DataSource = rankSet.DataSet.Tables[0];
            rankGridView.Appearance.EvenRow.BackColor        = Color.FromArgb(244, 244, 236);
            rankGridView.OptionsView.EnableAppearanceEvenRow = true;
            SetCurrentRowHandle();

            rankRowGrid.DataSource = rankRowSet.DataSet.Tables[0];
            rankRowGridView.Appearance.EvenRow.BackColor        = Color.FromArgb(244, 244, 236);
            rankRowGridView.OptionsView.EnableAppearanceEvenRow = true;
        }