Beispiel #1
0
 protected void btnemployee_Click(object sender, EventArgs e)
 {
     Rptrpending.DataSource = Specimen.Get_PendingDocNo("salesman", System.DateTime.Now, System.DateTime.Now, Convert.ToInt32(strFY), DDLEmployee.SelectedValue.ToString());
     Rptrpending.DataBind();
     pnlconfirm.Visible = true;
     pnlDetails.Visible = false;
     upOrderNO.Update();
 }
Beispiel #2
0
    protected void btnfind_Click(object sender, EventArgs e)
    {
        string from = txtFromDate.Text.Split('/')[2] + "/" + txtFromDate.Text.Split('/')[1] + "/" + txtFromDate.Text.Split('/')[0];
        string To   = txttoDate.Text.Split('/')[2] + "/" + txttoDate.Text.Split('/')[1] + "/" + txttoDate.Text.Split('/')[0];

        fdate = Convert.ToDateTime(from);
        tdate = Convert.ToDateTime(To);
        if (fdate > tdate)
        {
            MessageBox("From Date is Greater than ToDate");
            txtFromDate.Focus();
        }
        else
        {
            Rptrpending.DataSource = Specimen.Get_PendingDocNo("datewise", fdate, tdate, Convert.ToInt32(strFY), "");
            Rptrpending.DataBind();
            pnlconfirm.Visible = true;
            pnlDetails.Visible = false;
        }
        upOrderNO.Update();
    }
Beispiel #3
0
    public void callreseter()
    {
        RdBValue = RdlView.SelectedValue.ToString();

        if (RdBValue == "Employee")
        {
            Rptrpending.DataSource = Specimen.Get_PendingDocNo("salesman", System.DateTime.Now, System.DateTime.Now, Convert.ToInt32(strFY), DDLEmployee.SelectedValue.ToString());
            Rptrpending.DataBind();
        }
        else if (RdBValue == "All")
        {
            Rptrpending.DataSource = Specimen.Get_PendingDocNo("All", System.DateTime.Now, System.DateTime.Now, Convert.ToInt32(strFY), "");
            Rptrpending.DataBind();
        }
        else
        {
            string from = txtFromDate.Text.Split('/')[2] + "/" + txtFromDate.Text.Split('/')[1] + "/" + txtFromDate.Text.Split('/')[0];
            string To   = txttoDate.Text.Split('/')[2] + "/" + txttoDate.Text.Split('/')[1] + "/" + txttoDate.Text.Split('/')[0];
            fdate = Convert.ToDateTime(from);
            tdate = Convert.ToDateTime(To);
            if (fdate > tdate)
            {
                MessageBox("From Date is Greater than ToDate");
                txtFromDate.Focus();
            }
            else
            {
                Rptrpending.DataSource = Specimen.Get_PendingDocNo("datewise", fdate, tdate, Convert.ToInt32(strFY), "");
                Rptrpending.DataBind();
                pnlconfirm.Visible = true;
                pnlDetails.Visible = false;
            }
            upOrderNO.Update();
        }
        pnlDetails.Visible = false;
    }
Beispiel #4
0
 protected void DDLCustomer_SelectedIndexChanged(object sender, EventArgs e)
 {
     Rptrpending.DataSource = Specimen.Get_PendingDocNo("Canceled", System.DateTime.Now, System.DateTime.Now, Convert.ToInt32(strFY), DDLCustomer.SelectedValue.ToString());
     Rptrpending.DataBind();
     upOrderNO.Update();
 }