Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     mU.Id        = StringDeal.ToInt(Request.QueryString["Id"]);
     mU.GroupId   = StringDeal.ToInt(Request.QueryString["GroupId"]);
     mm.Id        = StringDeal.ToInt(Request.QueryString["Id"]);
     mm.TableName = bU.GetTableName(mU);
     if (!IsPostBack)
     {
         xml             = new XmlDoc();
         xml.xmlfilePath = GetConfig.System("TableXmlPath") + mm.TableName + ".xml";
         dsReader        = bm.ModelReader(mm);
         UserReader();
         BindModel();
         this.GroupTitle.Text = bU.GetUserGroupTitle(mU);
     }
     else
     {
         UserSave();
     }
 }
Exemplo n.º 2
0
    //protected DataSet ug_dsList;
    //protected bUserGroup bUG = new bUserGroup();
    //protected mUserGroup mUG = new mUserGroup();

    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        mU.Id        = StringDeal.ToInt(Request.QueryString["Id"]);
        mU.GroupId   = StringDeal.ToInt(Request.QueryString["GroupId"]);
        mm.Id        = StringDeal.ToInt(Request.QueryString["Id"]);
        mm.TableName = bU.GetTableName(mU);
        if (!IsPostBack)
        {
            xml             = new XmlDoc();
            xml.xmlfilePath = GetConfig.System("TableXmlPath") + mm.TableName + ".xml";
            dsReader        = bm.ModelReader(mm);
            //mUG.ParentId = -1;
            //ug_dsList = (DataSet)bUG.UserGroupList(mUG);
            //UserGroupBind(0, "┣");
            UserReader();
            BindModel();
        }
        else
        {
            UserSave();
        }
    }