private void BindICS()
 {
     ddlICS.DataSource     = ip.GetICSID();
     ddlICS.DataTextField  = "Branchcode";
     ddlICS.DataValueField = "Branchcode";
     ddlICS.DataBind();
     ddlICS.Items.Insert(0, MudarApp.AddListItem());
 }
 private void BindSeasonDetailsList()
 {
     ddlSeason.DataSource     = cp.GetSeasonDetails(ddlHolidayYear.SelectedValue);
     ddlSeason.DataTextField  = "SeasonName";
     ddlSeason.DataValueField = "SeasonID";
     ddlSeason.DataBind();
     ddlSeason.Items.Insert(0, MudarApp.AddListItem());
 }
Esempio n. 3
0
 private void BindProductDetails(int SeasonID)
 {
     ddlFarmerProduct.DataSource     = pObj.GetProductDetailsbySeason(SeasonID);
     ddlFarmerProduct.DataTextField  = "ProductName";
     ddlFarmerProduct.DataValueField = "ProductId";
     ddlFarmerProduct.DataBind();
     ddlFarmerProduct.Items.Insert(0, MudarApp.AddListItem());
 }
Esempio n. 4
0
 private void BindVillageslist()
 {
     ddlVillage.DataSource     = UI.FarmersVillageList();
     ddlVillage.DataTextField  = "City_Village";
     ddlVillage.DataValueField = "City_Village";
     ddlVillage.DataBind();
     ddlVillage.Items.Insert(0, MudarApp.AddListItem());
     ddlVillage.Items.Add("All");
 }
Esempio n. 5
0
    private void BindAllSeasonDetailsList()
    {
        ddlAllFarmerSeason.DataSource     = cp.GetSeasonDetails();
        ddlAllFarmerSeason.DataTextField  = "SeasonName";
        ddlAllFarmerSeason.DataValueField = "SeasonID";
        ddlAllFarmerSeason.DataBind();

        ddlAllFarmerSeason.Items.Insert(0, MudarApp.AddListItem());
    }
Esempio n. 6
0
 private void BindddlOrderProductDetails()
 {
     //  string OrderID = Encrypt_Decrypt.Decrypt(Session["sOrderID"].ToString().Trim(), true);
     ddlSelectProduct.DataSource     = ProductObj.GetProductDetails();
     ddlSelectProduct.DataTextField  = "ProductName";
     ddlSelectProduct.DataValueField = "ProductID";
     ddlSelectProduct.DataBind();
     ddlSelectProduct.Items.Insert(0, MudarApp.AddListItem());
 }
Esempio n. 7
0
 private void BindBranchDetailsList()
 {
     if (ddlSelectBranch.Items.Count > 0)
     {
         ddlSelectBranch.Items.Clear();
     }
     ddlSelectBranch.DataSource     = bre.BranchDetails();
     ddlSelectBranch.DataTextField  = "BranchCode";
     ddlSelectBranch.DataValueField = "BranchId";
     ddlSelectBranch.DataBind();
     ddlSelectBranch.Items.Insert(0, MudarApp.AddListItem("Select", "0"));
 }
Esempio n. 8
0
    private void BindSupplierList(string ics)
    {
        if (ddlSelectBranch.Items.Count > 0)
        {
            ddlSelectBranch.Items.Clear();
        }
        ddlSelectBranch.DataSource     = supplierObj.GetIcsandNonSuppliers(ics == "1" ? true : false);
        ddlSelectBranch.DataTextField  = "SupplierCompanyName";
        ddlSelectBranch.DataValueField = "SupplierID";
        ddlSelectBranch.DataBind();

        ddlSelectBranch.Items.Insert(0, MudarApp.AddListItem("Select", "0"));
    }
    private void BindYears()
    {
        DataTable Seasond = cpObj.GetSeasonDetails();

        if (Seasond.Rows.Count > 0)
        {
            ddlSeasonYear.DataSource     = Seasond.DefaultView.ToTable(true, "SeasonYear");
            ddlSeasonYear.DataTextField  = "SeasonYear";
            ddlSeasonYear.DataValueField = "SeasonYear";
            ddlSeasonYear.DataBind();
            ddlSeasonYear.Items.Insert(0, MudarApp.AddListItem());
            ddlSeasonYear.SelectedValue = DateTime.Now.Year.ToString();
        }
    }
 private void BindProductList()
 {
     if (ddlSeason.SelectedIndex > 0)
     {
         ddlProduct.DataSource     = objProd.GetProductDetailsbySeason(Convert.ToInt32(ddlSeason.SelectedValue));
         ddlProduct.DataTextField  = "ProductName";
         ddlProduct.DataValueField = "ProductId";
         ddlProduct.DataBind();
         ddlProduct.Items.Insert(0, MudarApp.AddListItem());
     }
     else
     {
         ddlProduct.Items.Clear();
     }
 }
 protected void ddlHolidayYear_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ddlHolidayYear.SelectedIndex > 0)
     {
         ddlSeason.DataSource     = cp.GetSeasonDetails(ddlHolidayYear.SelectedValue);
         ddlSeason.DataTextField  = "SeasonName";
         ddlSeason.DataValueField = "SeasonID";
         ddlSeason.DataBind();
         ddlSeason.Items.Insert(0, MudarApp.AddListItem());
     }
     else
     {
         ddlSeason.Items.Clear();
     }
 }
    private void BindInvoiceProductsDetails()
    {
        DataTable dtInvProducts = new DataTable();

        dtInvProducts = objOrder.BranchOrderDetails(txtInvno.Text);
        if (dtInvProducts.Rows.Count > 0)
        {
            txtInvDate.Text           = dtInvProducts.Rows[0]["BranchOrderDate"].ToString();
            ddlProduct.DataSource     = dtInvProducts;
            ddlProduct.DataTextField  = "ProductName";
            ddlProduct.DataValueField = "ProductId";
            ddlProduct.DataBind();
            ddlProduct.Items.Insert(0, MudarApp.AddListItem());
        }
    }
    private void BindSeasonYear()
    {
        //ListItemCollection items = MudarApp.BindYear();
        //foreach (ListItem item in items)
        //    ddlSeason.Items.Add(item);
        ////for (int count = 0; count < Convert.ToInt32(WebConfigurationManager.AppSettings["SeasonYearCount"].ToString()); count++)
        ////    ddlSeasonYear.Items.Add((new ListItem()).Text = DateTime.Now.AddYears(count).Year.ToString());
        //ddlSeason.DataBind();
        //ddlSeason.SelectedValue = DateTime.Now.Year.ToString();

        ddlSeason.DataSource     = cpObj.GetSeasonDetails(ddlYear.SelectedValue);
        ddlSeason.DataTextField  = "SeasonName";
        ddlSeason.DataValueField = "SeasonID";
        ddlSeason.DataBind();
        ddlSeason.Items.Insert(0, MudarApp.AddListItem());
    }
 private void BindProductList()
 {
     if (ddlSeason.SelectedIndex > 0)
     {
         ddlProduct.DataSource     = productObj.GetProductDetailsbySeasonNew(Convert.ToInt32(ddlSeason.SelectedValue));
         ddlProduct.DataTextField  = "ProductName";
         ddlProduct.DataValueField = "ProductId";
         ddlProduct.DataBind();
         ddlProduct.Items.Insert(0, MudarApp.AddListItem());
     }
     else
     {
         ddlProduct.Items.Clear();
         ClientScript.RegisterStartupScript(typeof(Page), "alert", "<script language=JavaScript>alert('!!! No Data Found !!!');</script>");
         return;
     }
 }
Esempio n. 15
0
    private void BindCustomAgent()
    {
        DataTable dt = new DataTable();

        dt = customagentobj.GetAgentDetails();
        if (dt.Rows.Count > 0)
        {
            if (ddlCustomAgent.Items.Count > 0)
            {
                ddlCustomAgent.Items.Clear();
            }
            ddlCustomAgent.DataSource     = customagentobj.GetAgentDetails();
            ddlCustomAgent.DataTextField  = "AgentCode";
            ddlCustomAgent.DataValueField = "CustomAgentId";
            ddlCustomAgent.DataBind();
            ddlCustomAgent.Items.Insert(0, MudarApp.AddListItem("Select", "0"));
        }
    }
    private void BindYears()
    {
        //ListItemCollection items = MudarApp.BindYear();
        //foreach (ListItem item in items)
        //    ddlYear.Items.Add(item);

        DataTable Seasond = cpObj.GetSeasonDetails();

        if (Seasond.Rows.Count > 0)
        {
            ddlYear.DataSource     = Seasond.DefaultView.ToTable(true, "SeasonYear");
            ddlYear.DataTextField  = "SeasonYear";
            ddlYear.DataValueField = "SeasonYear";
            ddlYear.DataBind();
            ddlYear.Items.Insert(0, MudarApp.AddListItem());
            ddlYear.SelectedValue = DateTime.Now.Year.ToString();
        }
    }
    private void BindSeasonYear()
    {
        //ListItemCollection items = MudarApp.BindYear();
        //foreach (ListItem item in items)
        //    ddlSeasonYear.Items.Add(item);
        ////for (int count = 0; count < Convert.ToInt32(WebConfigurationManager.AppSettings["SeasonYearCount"].ToString()); count++)
        ////    ddlSeasonYear.Items.Add((new ListItem()).Text = DateTime.Now.AddYears(count).Year.ToString());
        //ddlSeasonYear.DataBind();
        //ddlSeasonYear.SelectedValue = DateTime.Now.Year.ToString();

        DataTable Seasond = cpObj.GetSeasonDetails();

        if (Seasond.Rows.Count > 0)
        {
            ddlSeasonYear.DataSource     = Seasond.DefaultView.ToTable(true, "SeasonYear");
            ddlSeasonYear.DataTextField  = "SeasonYear";
            ddlSeasonYear.DataValueField = "SeasonYear";
            ddlSeasonYear.DataBind();
            ddlSeasonYear.Items.Insert(0, MudarApp.AddListItem());
            ddlSeasonYear.SelectedValue = DateTime.Now.Year.ToString();
        }
    }