void GetDepot()
    {
        distobj = new DistributionCenters(ComObj);
        string  ord = "Districtid='23" + distid + "' order by DepotName";
        DataSet ds  = distobj.select(ord);

        ddlissue.DataSource     = ds.Tables[0];
        ddlissue.DataTextField  = "DepotName";
        ddlissue.DataValueField = "DepotId";
        ddlissue.DataBind();
        ddlissue.Items.Insert(0, "--Select--");
    }
Beispiel #2
0
    void GetDCName()
    {
        distobj = new DistributionCenters(ComObj);
        string  ord = "Districtid='23" + ddldistrict.SelectedValue.ToString() + "' order by DepotName";
        DataSet ds  = distobj.select(ord);

        ddlissue.DataSource     = ds.Tables[0];
        ddlissue.DataTextField  = "DepotName";
        ddlissue.DataValueField = "DepotID";
        ddlissue.DataBind();
        ddlissue.Items.Insert(0, "--Select--");
        // ddDistId.Items.Insert(0, "--चुनिये--");
    }
Beispiel #3
0
 public void GetDCName()
 {
     try
     {
         distobj = new DistributionCenters(ComObj);
         string  ord = "Districtid='23" + ddldistrict.SelectedValue.ToString() + "' order by DepotName";
         DataSet ds  = distobj.select(ord);
         ddlissuecenter.DataSource     = ds.Tables[0];
         ddlissuecenter.DataTextField  = "DepotName";
         ddlissuecenter.DataValueField = "DepotId";
         ddlissuecenter.DataBind();
         ddlissuecenter.Items.Insert(0, "--Select--");
     }
     catch (Exception)
     {
     }
 }
    void GetIssCName()
    {
        ddl_IC.Items.Clear();
        distobj = new DistributionCenters(ComObj);
        string  ord = "Districtid='23" + ddl_dist.SelectedValue.ToString() + "' order by DepotName";
        DataSet ds  = distobj.select(ord);

        if (ds == null)
        {
        }
        else
        {
            ddl_IC.DataSource     = ds.Tables[0];
            ddl_IC.DataTextField  = "DepotName";
            ddl_IC.DataValueField = "DepotId";
            ddl_IC.DataBind();
            ddl_IC.Items.Insert(0, "--Select--");
        }
    }