Beispiel #1
0
 private void dropDownLimit_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
 {
     this.page = 0;
     int.TryParse(dropDownLimit.Text, out this.count_per_page);
     this.count_no_limit = UserQuery.CountNoLimitHistoryEditSuratKeluar(this.filter);
     BindingDataGrid();
 }
Beispiel #2
0
        private void radButton1_Click(object sender, EventArgs e)
        {
            int.TryParse(dropDownLimit.Text, out this.count_per_page);

            this.count_no_limit = UserQuery.CountNoLimitHistoryEditSuratKeluar(this.filter);
            int pageCount;

            if (this.count_no_limit % this.count_per_page > 0)
            {
                pageCount = ((this.count_no_limit / this.count_per_page) + 1);
            }
            else
            {
                pageCount = (this.count_no_limit / this.count_per_page);
            }

            if (this.page + 1 < pageCount)
            {
                page = pageCount - 1;
            }
            else
            {
                return;
            }

            BindingDataGrid();
        }
Beispiel #3
0
        private void radButton4_Click(object sender, EventArgs e)
        {
            if (page == 0)
            {
                return;
            }
            page = 0;

            int.TryParse(dropDownLimit.Text, out this.count_per_page);
            this.count_no_limit = UserQuery.CountNoLimitHistoryEditSuratKeluar(this.filter);
            BindingDataGrid();
        }
Beispiel #4
0
        private void radCheckBoxElement1_Click(object sender, EventArgs e)
        {
            if (radCheckBoxElement1.Checked)
            {
                this.temp_filter = this.filter;
                this.filter      = this.patent_filter;
            }
            else
            {
                this.filter      = this.temp_filter;
                this.temp_filter = this.patent_filter;
            }

            this.count_no_limit = UserQuery.CountNoLimitHistoryEditSuratKeluar(this.filter);
            RefreshData();
        }
Beispiel #5
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            this.filter = this.patent_filter;
            radCheckBoxElement1.Checked = true;

            Filter.FrmFilterHistoriEditSuratKeluar frmFilterSuratKeluar = new Filter.FrmFilterHistoriEditSuratKeluar(this);
            frmFilterSuratKeluar.ShowInTaskbar = false;
            frmFilterSuratKeluar.ShowDialog();

            if (this.filter == this.patent_filter)
            {
                radCheckBoxElement1.Checked = false;
                return;
            }
            this.count_no_limit = UserQuery.CountNoLimitHistoryEditSuratKeluar(this.filter);
            RefreshData();
        }
Beispiel #6
0
 private void toolStripButton3_Click(object sender, EventArgs e)
 {
     this.count_no_limit = UserQuery.CountNoLimitHistoryEditSuratKeluar(this.filter);
     RefreshData();
 }