protected void RdlView_SelectedIndexChanged(object sender, EventArgs e) { RdBValue = RdlView.SelectedValue.ToString(); if (RdBValue == "Employee") { BindEmployee(); Pnlcust.Visible = true; pnlDate.Visible = false; pnlDetails.Visible = false; Rptrpending.Visible = true; Rptrpending.DataBind(); pnlconfirm.Visible = true; btnBookWice.Visible = false; DDLEmployee.Focus(); } //else if (RdBValue == "All") //{ // Pnlcust.Visible = false; // pnlDate.Visible = false; // Rptrpending.Visible = true; // Rptrpending.DataSource = Specimen.Get_PendingDocNo("All", System.DateTime.Now, System.DateTime.Now, Convert.ToInt32(strFY), ""); // Rptrpending.DataBind(); // upOrderNO.Update(); // pnlconfirm.Visible = true; // pnlDetails.Visible = false; // btnBookWice.Visible = true; //} else { datewise(); Rptrpending.DataBind(); } }
protected void RdlView_SelectedIndexChanged(object sender, EventArgs e) { pnlDetails.Visible = false; string RdBValue = RdlView.SelectedValue.ToString(); if (RdBValue == "Employee") { Pnlcust.Visible = true; pnlDate.Visible = false; Rptrpending.Visible = true; Rptrpending.DataBind(); DDLEmployee.Focus(); BindEmployee(); } else if (RdBValue == "All") { Pnlcust.Visible = false; pnlDate.Visible = false; Rptrpending.Visible = true; Rptrpending.DataBind(); bindData(); } else { pnlDate.Visible = true; Pnlcust.Visible = false; Rptrpending.DataBind(); } }
public void BindEmployee() { DDLEmployee.Items.Clear(); //DDLCustomer.DataSource = DCMaster.Get_Customer_PendingDocNo("Customer"); //DDLEmployee.DataSource = Specimen.Get_PedingDocNo_Employee(Convert.ToInt32(strFY)); DDLEmployee.DataSource = Specimen.Get_PedingDocNo_Employee(Convert.ToInt32(strFY)); DDLEmployee.DataBind(); DDLEmployee.Items.Insert(0, new ListItem("- Select Employee -", "0")); }
public void BindEmployee() { DataSet ds = null; if (ViewState["sales"] == null) { ds = Specimen.Get_ApprovedDocNo_Employee(Convert.ToInt32(strFY)); ViewState["sales"] = ds; } else { ds = (DataSet)ViewState["sales"]; } DDLEmployee.Items.Clear(); DDLEmployee.DataSource = ds; DDLEmployee.DataBind(); DDLEmployee.Items.Insert(0, new ListItem("- Select Employee -", "0")); }