private void MakeEmptyForm() { ChkFrmDate.Checked = false; ChkFrmDate.Focus(); ddlExpense.SelectedIndex = 0; txtFromDate.Enabled = txtToDate.Enabled = true; ImgBtnPrint.Visible = false; ImgBtnExport.Visible = false; ImgPDF.Visible = false; HttpContext.Current.Cache["DirAllCustomer"] = ""; lblCount.Visible = false; lblCount.ForeColor = Color.Red; lblCount.Font.Bold = true; lblCount.Font.Size = 10; Fillcombo(); SetInitialRow(); }
private void MakeEmptyForm() { ChkFrmDate.Checked = false; ChkFrmDate.Focus(); ddlProperty.SelectedIndex = 0; ddlParty.Items.Clear(); ddlCompany.SelectedIndex = 0; // ddlFlatNo.Items.Clear(); txtFromDate.Enabled = txtToDate.Enabled = true; ImgBtnPrint.Visible = false; ImgBtnExport.Visible = false; ImgPDF.Visible = false; HttpContext.Current.Cache["DirAllCustomer"] = ""; txtUnitNo.Text = ""; lblCount.Visible = false; lblCount.ForeColor = Color.Red; lblCount.Font.Bold = true; lblCount.Font.Size = 10; Fillcombo(); SetInitialRow(); }
public void MakeEmptyForm() { txtFromDate.Enabled = txtToDate.Enabled = true; txtFromDate.Text = DateTime.Now.AddMonths(-1).ToString("dd-MMM-yyyy"); txtToDate.Text = DateTime.Now.ToString("dd-MMM-yyyy"); ChkFrmDate.Checked = true; SetInitialRow(); FillComboData(); ReportGrid(); ddlNo.SelectedIndex = ddlTo.SelectedIndex = 0; ChkFrmDate.Focus(); }
protected void ChkFrmDate_CheckedChanged(object sender, EventArgs e) { if (ChkFrmDate.Checked == true) { txtFromDate.Text = DateTime.Now.AddMonths(-1).ToString("dd-MMM-yyyy"); txtToDate.Text = DateTime.Now.ToString("dd-MMM-yyyy"); txtFromDate.Enabled = true; txtToDate.Enabled = true; ChkFrmDate.Focus(); } else { txtFromDate.Text = string.Empty; txtToDate.Text = string.Empty; txtFromDate.Enabled = false; txtToDate.Enabled = false; ChkFrmDate.Focus(); } }