示例#1
0
 private void loadNotUserGroup(string _schemeID, ListBox _lstNBT)
 {
     ProcessEditScheme _processEditScheme = new ProcessEditScheme();
     _processEditScheme.SchemeID = _schemeID;
     _processEditScheme.ComID = Session["trkCompany"].ToString();
     _ds = _processEditScheme.getNotUserGroup();
     _lstNBT.DataSource = _ds;
     _lstNBT.DataTextField = "groupName";
     _lstNBT.DataValueField = "groupID";
     _lstNBT.DataBind();
 }
    private void loadNotUserGroup(string _schemeID)
    {
        try
        {
            DataSet _ds = new DataSet();
            ProcessEditScheme _processEditScheme = new ProcessEditScheme();
            _processEditScheme.SchemeID = _schemeID;
            _processEditScheme.ComID = Session["trkCompany"].ToString();
            _ds = _processEditScheme.getNotUserGroup();
            _lstNBT.DataSource = _ds;
            _lstNBT.DataTextField = "groupName";
            _lstNBT.DataValueField = "groupID";
            _lstNBT.DataBind();
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message.ToString());
        }

        //ListedUpdate.Update();
        //NotListedUpdate.Update();
    }