protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable compDT = compBll.Sel();
         if (UserID < 1)
         {
             function.WriteErrMsg("未指定需要操作的用户");
         }
         if (compDT.Rows.Count < 1)
         {
             function.WriteErrMsg("还没有公司数据,请先添加公司");
         }
         M_UserInfo mu = buser.SelReturnModel(UserID);
         UserName_L.Text        = mu.UserName;
         PlatComp_DP.DataSource = compDT;
         PlatComp_DP.DataBind();
         PlatGroup_DP.DataSource = gpBll.SelByCompID(Convert.ToInt32(PlatComp_DP.SelectedValue));
         PlatGroup_DP.DataBind();
         PlatGroup_DP.Items.Insert(0, new ListItem("不分配", ""));
         //---------
         M_User_Plat upMod = upBll.SelReturnModel(UserID);
         if (upMod == null || upMod.CompID < 1)
         {
             PlatInfo_L.Text    = "<span style='color:red;'>该用户尚未加入过能力中心</span>";
             Remove_Btn.Visible = false;
         }
         else
         {
             PlatInfo_L.Text += "<span class='btn btn-default margin_r5'>所属公司:" + (string.IsNullOrEmpty(upMod.CompName) ? "无" : upMod.CompName) + "</span>";
             PlatInfo_L.Text += "<span class='btn btn-default margin_r5'>所属部门:" + (string.IsNullOrEmpty(upMod.GroupName) ? "未分配" : upMod.GroupName) + "</span>";
         }
         Call.HideBread(Master);
     }
 }
 protected void PlatComp_DP_SelectedIndexChanged(object sender, EventArgs e)
 {
     PlatGroup_DP.DataSource = gpBll.SelByCompID(Convert.ToInt32(PlatComp_DP.SelectedValue));
     PlatGroup_DP.DataBind();
     PlatGroup_DP.Items.Insert(0, new ListItem("无部门", "0"));
 }