Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
    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();
    }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 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();
     }
 }