Exemple #1
0
    // -- Functions

    /// <summary>
    /// Gets the list of POType,requisition Type and SupplierType to bind the List box Controls
    /// </summary>
    public void filldata()
    {
        try
        {
            DataSet ddllist = objBLLconfig.Get_ddlListBLL();

            LbSupplierType.DataSource     = ddllist.Tables[2];
            LbSupplierType.DataTextField  = "VARIABLE_NAME";
            LbSupplierType.DataValueField = "ID";
            LbSupplierType.DataBind();
            LbSupplierType.Items.Insert(0, new ListItem("ALL", "0"));

            ChkBxList_SuppType.DataSource     = ddllist.Tables[2];
            ChkBxList_SuppType.DataTextField  = "VARIABLE_NAME";
            ChkBxList_SuppType.DataValueField = "ID";
            ChkBxList_SuppType.DataBind();
            ChkBxList_SuppType.Items.Insert(0, new ListItem("ALL", "0"));


            ChkBxList_ReqsnType.DataSource     = ddllist.Tables[1];
            ChkBxList_ReqsnType.DataTextField  = "Description";
            ChkBxList_ReqsnType.DataValueField = "Code";
            ChkBxList_ReqsnType.DataBind();

            LBReqsntype.DataSource     = ddllist.Tables[1];
            LBReqsntype.DataTextField  = "Description";
            LBReqsntype.DataValueField = "Code";
            LBReqsntype.DataBind();

            LBpotype.DataSource     = ddllist.Tables[0];
            LBpotype.DataTextField  = "VARIABLE_NAME";
            LBpotype.DataValueField = "ID";
            LBpotype.DataBind();

            LBpotype.Items.Insert(0, new ListItem("Select", "0"));
        }
        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
        }
    }
    public void filldata()
    {
        DataSet ddllist = objBLLconfig.Get_ddlListBLL();

        LbSupplierType.DataSource     = ddllist.Tables[2];
        LbSupplierType.DataTextField  = "VARIABLE_NAME";
        LbSupplierType.DataValueField = "ID";
        LbSupplierType.DataBind();


        LBReqsntype.DataSource     = ddllist.Tables[1];
        LBReqsntype.DataTextField  = "Description";
        LBReqsntype.DataValueField = "Code";
        LBReqsntype.DataBind();

        LBpotype.DataSource     = ddllist.Tables[0];
        LBpotype.DataTextField  = "VARIABLE_NAME";
        LBpotype.DataValueField = "ID";
        LBpotype.DataBind();

        LBpotype.Items.Insert(0, new ListItem("Select", string.Empty));
    }