private void frmRptRegisterKoreksiReturBeliFilter_Load(object sender, EventArgs e) { this.Text = "Pembelian"; T1.DateValue = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); t2.DateValue = DateTime.Now; try { this.Cursor = Cursors.WaitCursor; DataTable dtGudang = new DataTable(); using (Database db = new Database()) { db.Commands.Add(db.CreateCommand("usp_Gudang_LIST")); dtGudang = db.Commands[0].ExecuteDataTable(); } DataColumn cConcatenated = new DataColumn("Concatenated", Type.GetType("System.String"), "GudangID + ' | ' + NamaGudang"); dtGudang.Columns.Add(cConcatenated); dtGudang.Rows.Add(""); dtGudang.DefaultView.Sort = "GudangID ASC"; cboGudang.DataSource = dtGudang; cboGudang.DisplayMember = "Concatenated"; cboGudang.ValueMember = "GudangID"; } catch (Exception ex) { Error.LogError(ex); } finally { this.Cursor = Cursors.Default; } T1.Focus(); }
protected void ImageButton5_Click(object sender, ImageClickEventArgs e) { T.Text = ""; T.Focus(); T1.Text = ""; T1.Focus(); T2.Text = ""; T2.Focus(); T3.Text = ""; T3.Focus(); T4.Text = ""; T4.Focus(); T5.Text = ""; T5.Focus(); T6.Text = ""; T6.Focus(); T7.Text = ""; T7.Focus(); T8.Text = ""; T8.Focus(); T9.Text = ""; T9.Focus(); }