protected void Save_Btn_Click(object sender, EventArgs e)
        {
            M_UserInfo   mu      = buser.SelReturnModel(UserID);
            M_User_Plat  upMod   = upBll.SelReturnModel(UserID);
            M_Plat_Group gpMod   = gpBll.SelReturnModel(DataConvert.CLng(PlatGroup_DP.SelectedValue));
            M_Plat_Comp  compMod = compBll.SelReturnModel(Convert.ToInt32(PlatComp_DP.SelectedValue));

            if (upMod == null)
            {
                upMod            = upBll.NewUser(mu, compMod);
                upMod.Plat_Group = PlatGroup_DP.SelectedValue;
                upBll.Insert(upMod);
            }
            else
            {
                upMod.CompID = compMod.ID;
                upMod.Status = 1;
                upBll.UpdateByID(upMod);
            }
            if (gpMod != null)
            {
                gpBll.AddMember(UserID.ToString(), gpMod.ID);
            }
            function.WriteSuccessMsg("操作成功", Request.RawUrl);
        }
        protected void Save_Btn_Click(object sender, EventArgs e)
        {
            M_Plat_Comp compMod = new M_Plat_Comp();

            if (CompID > 0)
            {
                compMod = compBll.SelReturnModel(CompID);
            }
            string path = Logo_SFile.SaveFile();

            compMod.CompLogo   = string.IsNullOrEmpty(path) ? compMod.CompLogo : path;
            compMod.CompName   = CompName_T.Text;
            compMod.CreateTime = DataConverter.CDate(CDate_T.Text);
            M_UserInfo mu = buser.GetUserByName(CUser_T.Text);

            compMod.CreateUser = mu.IsNull ? 1 : mu.UserID;//后台固定为管理员添加
            compMod.Telephone  = Telephone_T.Text;
            compMod.Mobile     = Mobile_T.Text;
            compMod.CompHref   = "http://" + CompHref_T.Text.Replace("http://", "");
            compMod.CompDesc   = CompDesc_T.Text;
            compMod.Mails      = EMail_T.Text;
            compMod.CompShort  = CompShort_T.Text;
            if (CompID > 0)
            {
                compBll.UpdateByID(compMod); function.WriteSuccessMsg("修改成功!", "CompList.aspx");
            }
            compBll.Insert(compMod);
            function.WriteSuccessMsg("添加成功!", "CompList.aspx");
        }
 private void MyBind()
 {
     //如果企业已认证过,或其不是企业的创始人,则无权修改
     upMod           = B_User_Plat.GetLogin();
     compMod         = compBll.SelReturnModel(upMod.CompID);
     err_div.Visible = true;
     if (compMod.Status != 0)
     {
         err_div.InnerHtml = "该企业已经认证过了";
     }
     else if (compMod.CreateUser != upMod.UserID)
     {
         err_div.InnerHtml = "你没有提交认证的权限";
     }
     else if (ualyBll.CompCert_Sel((int)ZLEnum.ConStatus.UnAudit, "", upMod.UserID).Rows.Count > 0)
     {
         //检测是否已提交过申请
         err_div.InnerHtml = "你已经提交过申请了,请等待管理员处理";
     }
     else
     {
         err_div.Visible = false;
         ok_div.Visible  = true;
     }
 }
示例#4
0
        protected void BatAgree_Btn_Click(object sender, EventArgs e)
        {
            string ids = Request.Form["idchk"];
            //修改公司状态,并更正名称
            DataTable dt = ualyBll.Search(ztype, ids, "", (int)ZLEnum.ConStatus.UnAudit, 0);

            foreach (DataRow dr in dt.Rows)
            {
                M_Common_UserApply ualyMod = new M_Common_UserApply().GetModelFromReader(dr);
                M_UserInfo         mu      = buser.SelReturnModel(ualyMod.UserID);
                //-------------创建公司和用户
                M_User_Plat upMod   = upBll.NewUser(mu);
                M_Plat_Comp compMod = compBll.CreateByUser(upMod);
                compMod.CompName  = ualyMod.CompName;
                compMod.CompShort = ualyMod.Info1;
                compMod.Telephone = ualyMod.Mobile;
                compMod.Mobile    = ualyMod.Mobile;
                compMod.Status    = 1;
                compBll.UpdateByID(compMod);
                upBll.Insert(upMod);
                //-------------创建部门
                DataTable userDT = GetUserDT();
                NewByUserDT(compMod, userDT);
            }
            ualyBll.ChangeByIDS(ids, (int)ZLEnum.ConStatus.Audited);
            function.WriteSuccessMsg("批量同意完成");
        }
示例#5
0
        private void MyBind()
        {
            M_User_Plat upMod   = upBll.SelReturnModel(UserID);
            M_Plat_Comp compMod = compBll.SelReturnModel(upMod.CompID);

            if (upMod.CompID != B_User_Plat.GetLogin().CompID)
            {
                function.WriteErrMsg("用户不存在");
            }
            HoneyName_L.InnerHtml = B_User.GetUserName(upMod.UserName, upMod.TrueName);
            Post_L.InnerHtml      = GetInfo(upMod.Post);
            CompName_l.InnerHtml  = upMod.CompName;
            if (!string.IsNullOrEmpty(upMod.UserFace))
            {
                uface_img.Src = upMod.UserFace;
            }
            //---------
            Mobile_L.Text   = GetInfo(upMod.Mobile);
            Mail_L.Text     = GetInfo("");
            WorkNum_L.Text  = GetInfo("");
            Work_L.Text     = GetInfo("");
            Home_L.Text     = GetInfo("");
            BirthDay_L.Text = GetInfo("");
            uid_hid.Value   = upMod.UserID.ToString();
        }
示例#6
0
        protected void UpPlat_B_Click(object sender, EventArgs e)
        {
            M_UserInfo  mu      = buser.SelReturnModel(UserID);
            M_User_Plat upMod   = upBll.SelReturnModel(UserID);
            M_Plat_Comp compMod = new M_Plat_Comp();
            B_Plat_Comp compBll = new B_Plat_Comp();

            if (upMod == null)
            {
                //------------------------------------
                upMod          = new M_User_Plat();
                upMod.UserID   = mu.UserID;
                upMod.TrueName = B_User.GetUserName(mu.HoneyName, mu.TrueName, mu.UserName);
                upMod.Post     = "";
                upMod.Status   = 1;
                //----------------------------------------
                compBll.CreateByUser(upMod);
                upBll.Insert(upMod);
            }
            else
            {
                if (upMod.CompID == 0)//兼容之前的逻辑
                {
                    compBll.CreateByUser(upMod);
                }
                upMod.Status = 1;
                upBll.UpdateByID(upMod);
            }
            ShowPlatInfo(upMod.UserID);
            function.WriteSuccessMsg("操作成功,你现在可以为该用户指定公司");
        }
示例#7
0
        /// <summary>
        /// 用于创建公司,审核认证
        /// </summary>
        public void NewByUserDT(M_Plat_Comp compMod, DataTable userDT)
        {
            B_Plat_Group gpBll = new B_Plat_Group();

            for (int i = 0; i < userDT.Rows.Count; i++)
            {
                string gname = userDT.Rows[i]["gname"].ToString();
                string uname = userDT.Rows[i]["uname"].ToString();
                string honey = userDT.Rows[i]["honey"].ToString();
                if (string.IsNullOrEmpty(uname))
                {
                    continue;
                }
                M_UserInfo newmu = buser.NewUser(uname, "111111");
                newmu.HoneyName = honey;
                newmu.UserID    = buser.Add(newmu);
                M_Uinfo basemu = buser.NewBase(newmu);
                buser.AddBase(basemu);
                //----能力相关信息
                M_Plat_Group gpMod = gpBll.NewGroup(gname, compMod.ID, newmu.UserID);
                M_User_Plat  upMod = NewUser(newmu, compMod);
                gpMod.ID  = gpBll.Insert(gpMod);
                upMod.Gid = gpMod.ID.ToString();
                Insert(upMod);
            }
        }
示例#8
0
 public void BindComp(M_Plat_Comp compMod)
 {
     compId_Hid.Value  = compMod.ID.ToString();
     CompName_T.Text   = compMod.CompName + "(" + compMod.CompShort + ")";
     CreateTime_T.Text = compMod.CreateTime.ToString("yyyy-MM-dd");
     Desc_T.Text       = string.IsNullOrEmpty(compMod.CompDesc) ? "(暂无)" : compMod.CompDesc;
     Logo_Img.ImageUrl = compMod.CompLogo;
 }
示例#9
0
        private void MyBind()
        {
            M_User_Plat upMod   = B_User_Plat.GetLogin();
            M_Plat_Comp compMod = compBll.SelReturnModel(upMod.CompID);

            Title_T.Text = compMod.CompName + "办公平台";
            //--------------获取本月日程数据,并转为JSON,方便绑定
            myplan_hid.Value = sdlBll.SelMonthToJson(DateTime.Now, upMod.UserID);
            //--------------平台
            M_User_Token tokenMod = tokenBll.SelModelByUid(upMod.UserID);
            bool         flag     = false;

            if (tokenMod != null)
            {
                if (!string.IsNullOrWhiteSpace(tokenMod.SinaToken))
                {
                    sinaBll         = new SinaHelper(tokenMod.SinaToken);
                    sina_li.Visible = true; flag = true;
                    if (!sinaBll.CheckToken())//Token有效
                    {
                        sina_li.InnerHtml = sina_li.InnerHtml + "<span class='r_red'>(已失效)</span>"; sina_li.Attributes.Add("title", "点击重新绑定"); sina_li.Attributes.Add("onclick", "OpenWin(2);");
                    }
                }
                if (!string.IsNullOrWhiteSpace(tokenMod.QQToken))
                {
                    qqBll             = new QQHelper(tokenMod.QQToken, tokenMod.QQOpenID);
                    qqblog_li.Visible = true; flag = true;
                    if (!qqBll.TokenIsValid())
                    {
                        qqblog_li.InnerHtml = qqblog_li.InnerHtml + "<span class='r_red'>(已失效)</span>"; qqblog_li.Attributes.Add("title", "点击重新绑定"); qqblog_li.Attributes.Add("onclick", "OpenWin(2);");
                    }
                }
            }
            bloglist.Visible = flag; noplat_div.Visible = !flag;
            //-----------
            GroupRpt.DataSource = groupBll.SelGroupByAuth(upMod.UserID);
            GroupRpt.DataBind();
            DataTable cateDT = barBll.SelBlogCate(upMod.CompID);

            if (cateDT.Rows.Count > 0)
            {
                Cate_RPT.DataSource = cateDT;
                Cate_RPT.DataBind();
            }
            else
            {
                Cart_RPT_Empty.Visible = true;
            }

            EndDate_T.Text     = DateTime.Now.AddDays(1).ToString("yyyy/MM/dd HH:mm");
            UserInfo_Hid.Value = upMod.TrueName + ":" + upMod.UserFace + ":" + upMod.UserID;
            ////--最近的投票
            //newvote_Rep.DataSource = (from t in dt.AsEnumerable()
            //                          where t.Field<int>("MsgType") == 2
            //                          orderby t.Field<DateTime>("CDate")
            //                          select new { Title = t.Field<string>("Title"), CDate = t.Field<DateTime>("CDate"), UserFace = t.Field<string>("UserFace") }).Take(5);
            //newvote_Rep.DataBind();
        }
示例#10
0
        protected void DownDoc_Btn_Click(object sender, EventArgs e)
        {
            M_Plat_Comp compMod = compBll.SelReturnModel(Mid);
            string      html    = Request.Form["html_hid"];

            html = "<html><head></head><body>" + html + "</body></html>";
            string vpath = "/UploadFiles/Plat/CompReport/" + compMod.CompName + ".doc";

            vpath = OfficeHelper.W_HtmlToWord(html, vpath);
            SafeSC.DownFile(vpath);
        }
示例#11
0
        public M_User_Plat NewUser(M_UserInfo mu, M_Plat_Comp compMod)
        {
            M_User_Plat upMod = new M_User_Plat();

            upMod.UserID   = mu.UserID;
            upMod.UserFace = mu.UserFace;
            upMod.UserName = mu.UserName;
            upMod.TrueName = mu.HoneyName;
            upMod.UserPwd  = mu.UserPwd;
            upMod.Status   = 1;
            //--------------------------
            upMod.CompID     = compMod.ID;
            upMod.CompName   = compMod.CompName;
            upMod.CreateTime = DateTime.Now;
            return(upMod);
        }
示例#12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         M_Plat_Comp compMod = compBll.SelReturnModel(Mid);
         M_UserInfo  mu      = buser.SelReturnModel(compMod.CreateUser);
         CompName_L.Text   = compMod.CompName;
         CDate_L.Text      = compMod.CreateTime.ToString("yyyy-MM-dd");
         CUserName_L.Text  = B_User.GetUserName(mu.HoneyName, mu.UserName);
         CUserEmail_L.Text = mu.Email;
         DataTable dt = upBll.SelByCompany(compMod.ID);
         dt.DefaultView.RowFilter = "UserID<>'" + mu.UserID + "'";
         RPT.DataSource           = dt;
         RPT.DataBind();
     }
 }
示例#13
0
        /// <summary>
        /// 传入需要存储的文件类型,返回路径
        /// </summary>
        public static string GetDirPath(SaveType stype)
        {
            B_Plat_Comp compBll = new B_Plat_Comp();
            M_User_Plat upMod   = B_User_Plat.GetLogin();
            M_Plat_Comp compMod = compBll.SelReturnModel(upMod.CompID);

            if (string.IsNullOrEmpty(compMod.UPPath))
            {
                compMod.UPPath = compBll.CreateUPPath(compMod); compBll.UpdateByID(compMod);
            }
            string bPath     = SiteConfig.SiteOption.UploadDir;
            string persondir = EncryptHelper.AESEncrypt(upMod.UserID + ":" + (upMod.UserName.Length > 4 ? upMod.UserName.Substring(0, 3) : upMod.UserName)) + "/";
            string vpath     = bPath + "Plat/" + compMod.UPPath.Trim('/') + "/";

            switch (stype)
            {
            case SaveType.Company:    //公司文件,网盘等
                vpath += "DocCenter/Common/";
                break;

            case SaveType.Company_P:    //公司私有文件,如Logo等
                vpath += "Private/";
                break;

            case SaveType.Person:    //个人文件,用于网盘(可共享信息)
                vpath += "DocCenter/" + persondir;
                break;

            case SaveType.Person_P:    //私人文件,如头像等信息(非共享信息)
                vpath += "Person/" + persondir;
                break;

            case SaveType.Blog:    //用户博客上传的附件
                vpath += "Blog/" + persondir;
                break;

            case SaveType.Plat_Task:    //需要再加上TaskName
                vpath += "Task/";
                break;

            case SaveType.Plat_Project:
                vpath += "Object/";
                break;
            }
            return(vpath);
        }
 //用户必须未加入公司,才可进入此页,用户不注册则默认都进入
 //加入企业后,移除原本的企业信息
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         M_User_Plat upMod = B_User_Plat.GetLogin();
         compMod = compBll.SelReturnModel(upMod.CompID);
         if (compMod.Status == 1)
         {
             noauth_div.Visible = true;
             noauth_l.InnerHtml = "你已加入了" + compMod.CompName;
         }
         else
         {
             join_div.Visible = true;
         }
     }
 }
示例#15
0
    protected void Skey_Btn_Click(object sender, EventArgs e)
    {
        M_Plat_Comp compMod = compBll.SelModelByName(Skey_T.Text);

        if (compMod == null)
        {
            empty_div.Visible = true;
            comp_tab.Visible  = false;
            Empty_L.Text      = "[" + Skey_T.Text + "]公司不存在,请核对公司名称后再搜索";
        }
        else
        {
            empty_div.Visible = false;
            comp_tab.Visible  = true;
            BindComp(compMod);
        }
    }
 protected void Search_Btn_Click(object sender, EventArgs e)
 {
     nocomp_div.Visible  = false;
     hascomp_div.Visible = false;
     compMod             = compBll.SelModelByName(Search_T.Text);
     if (compMod == null)
     {
         nocomp_l.InnerHtml = "[" + Search_T.Text + "]不存在,请核对公司名称后再搜索";
         nocomp_div.Visible = true;
     }
     else
     {
         hascomp_div.Visible = true;
         CompID          = compMod.ID;
         Logo_Img.Src    = compMod.CompLogo;
         CompName_L.Text = compMod.CompName;
         CompDesc_L.Text = compMod.CompDesc;
     }
 }
 public void MyBind()
 {
     CUser_T.Text = buser.SelReturnModel(1).UserName;//固定初始管理员
     CDate_T.Text = DateTime.Now.ToString();
     if (CompID > 0)
     {
         M_Plat_Comp compMod = compBll.SelReturnModel(CompID);
         CUser_T.Text       = buser.SelReturnModel(compMod.CreateUser).UserName;
         CDate_T.Text       = compMod.CreateTime.ToString();
         CompName_T.Text    = compMod.CompName;
         CompShort_T.Text   = compMod.CompShort;
         Logo_SFile.FileUrl = compMod.CompLogo;
         CompHref_T.Text    = compMod.CompHref;
         CompDesc_T.Text    = compMod.CompDesc;
         EMail_T.Text       = compMod.Mails;
         Telephone_T.Text   = compMod.Telephone;
         Mobile_T.Text      = compMod.Mobile;
     }
 }
示例#18
0
        protected void BatAgree_Btn_Click(object sender, EventArgs e)
        {
            string ids = Request.Form["idchk"];
            //修改公司状态,并更正名称
            DataTable dt = ualyBll.CompCert_Sel((int)ZLEnum.ConStatus.UnAudit, ids);

            foreach (DataRow dr in dt.Rows)
            {
                int compID = DataConvert.CLng(JsonHelper.GetVal(DataConvert.CStr(dr["UserRemind"]), "compid"));
                compMod           = compBll.SelReturnModel(compID);
                compMod.CompName  = DataConvert.CStr(dr["Remind"]);
                compMod.CompShort = JsonHelper.GetVal(DataConvert.CStr(dr["UserRemind"]), "compshort");
                compMod.Telephone = JsonHelper.GetVal(DataConvert.CStr(dr["UserRemind"]), "telephone");
                compMod.Mobile    = JsonHelper.GetVal(DataConvert.CStr(dr["UserRemind"]), "mobile");
                compMod.Status    = 1;
                compBll.UpdateByID(compMod);
            }
            ualyBll.ChangeByIDS(ids, (int)ZLEnum.ConStatus.Audited);
            function.WriteSuccessMsg("批量同意完成");
        }
示例#19
0
    public void MyBind()
    {
        M_UserInfo mu = buser.GetLogin();

        if (ualyBll.JoinComp_Exist(mu.UserID))
        {
            comp_tab.Visible = true;
            //申请信息
            DataTable dt = ualyBll.Search("plat_joincomp", "", "", (int)ZLEnum.ConStatus.UnAudit, mu.UserID);
            ualyMod = ualyBll.SelReturnModel(DataConverter.CLng(dt.Rows[0]["ID"]));
            //申请加入的公司信息
            int compid = DataConverter.CLng(ualyMod.Remind);
            compId_Hid.Value = compid.ToString();
            ualyId_Hid.Value = ualyMod.ID.ToString();
            M_Plat_Comp compMod = compBll.SelReturnModel(compid);
            BindComp(compMod);
            Apply_B.Visible    = false;
            apply_div.Visible  = false;
            cancel_div.Visible = true;
            Mess_L.Text        = "您已提交申请,请等候公司管理员审核";
        }
        else
        {
            M_User_Plat upMod = B_User_Plat.GetLogin();
            if (upMod != null)
            {
                M_Plat_Comp compMod = compBll.SelReturnModel(upMod.CompID);
                if (compMod.Status == 1)
                {
                    Mess_L.Text = "您已加入了[ " + compMod.CompName + " ]";
                    BindComp(compMod);
                    comp_tab.Visible   = true;
                    Apply_B.Visible    = false;
                    apply_div.Visible  = false;
                    cancel_div.Visible = true;
                    Cancel_B.Visible   = false;
                }
            }
        }
    }
        protected void BtnSave_Click(object sender, EventArgs e)
        {
            int CompID = B_User_Plat.GetLogin().CompID;

            compMod          = compBll.SelReturnModel(CompID);
            compMod.CompName = CompName_T.Text;
            compMod.CompDesc = CompDesc_T.Text;
            //compMod.Status = Convert.ToInt32(CompStatus_T.Text);
            compMod.CompLogo  = SaveFile();
            compMod.CompHref  = CompHref_T.Text;
            compMod.CompShort = CompShort_T.Text;
            compMod.Telephone = Telephone_T.Text;
            compMod.Mobile    = Mobile_T.Text;
            if (compBll.UpdateByID(compMod))
            {
                Response.Redirect(Request.RawUrl);
            }
            else
            {
                function.Script(this, "alert('修改失败!!');");
            }
        }
示例#21
0
        protected void BatAdd_Btn_Click(object sender, EventArgs e)
        {
            M_Plat_Comp compMod = compBll.SelReturnModel(CompID);

            string[] ids = UserIDS_Hid.Value.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
            for (int i = 0; i < ids.Length; i++)
            {
                int         uid   = DataConvert.CLng(ids[i]);
                M_User_Plat upMod = upBll.SelReturnModel(uid);
                if (upMod == null)
                {
                    M_UserInfo newmu = buser.SelReturnModel(uid);
                    upMod = upBll.NewUser(newmu, compMod);
                    upBll.Insert(upMod);
                }
                else
                {
                    upMod.CompID = CompID; upBll.UpdateByID(upMod);
                }
            }
            MyBind();
        }
 private void MyBind()
 {
     upMod   = B_User_Plat.GetLogin();
     compMod = compBll.SelReturnModel(upMod.CompID);
     if (compMod.Status == 0)
     {
         //检测是否已提交企业申请或加入公司申请
         if (ualyBll.JoinComp_Exist(upMod.UserID))
         {
             person_div.InnerHtml = "<div>您已提交加入企业申请,请等待公司管理员审核!</div>";
         }
         if (ualyBll.CompCert_Exist(upMod.UserID))
         {
             person_div.InnerHtml = "<div>您已提交企业认证申请,请等待管理员审核。</div>";
         }
         person_div.Visible = true;
     }
     else
     {
         compinfo_div.Visible = true;
         upMod = upBll.SelReturnModel(compMod.CreateUser);
         if (upMod == null)
         {
             upMod = new M_User_Plat();
         }
         CompShort_T.Text  = compMod.CompShort;
         CompName_T.Text   = compMod.CompName;
         CompDesc_T.Text   = compMod.CompDesc;
         CompStatus_T.Text = "正常";// compMod.Status==1?"正常":"关闭";
         CompUser_T.Text   = upMod.UserName;
         CompHref_T.Text   = compMod.CompHref;
         CreateTime_T.Text = compMod.CreateTime.ToString("yyyy年MM月dd日");
         SFiles_Up.FVPath  = compMod.CompLogo;
         Logo_Img.ImageUrl = compMod.CompLogo;
         Telephone_T.Text  = compMod.Telephone;
         Mobile_T.Text     = compMod.Mobile;
     }
 }
        //选择好用户后,为其创建相关信息
        protected void Submit_Btn_Click(object sender, EventArgs e)
        {
            int        uid = Convert.ToInt32(User_Hid.Value.Split(',')[0]);
            M_UserInfo mu  = buser.SelReturnModel(uid);

            if (mu.IsNull)
            {
                function.WriteErrMsg("用户[" + User_T.Text + "]不存在");
            }
            if (upBll.SelReturnModel(uid) != null)
            {
                function.WriteErrMsg("创建失败:用户" + User_T.Text + "已经有了企业,不能重复创建");
            }
            M_Plat_Comp     compMod = new M_Plat_Comp();
            M_Plat_UserRole urMod   = new M_Plat_UserRole();
            DataTable       userDT  = JsonConvert.DeserializeObject <DataTable>(UserInfo_Hid.Value);//为空下是否会报错

            if (SFileUp.HasFile)
            {
                SFileUp.SaveFile();
            }
            //------------------公司
            compMod.CompName   = CompName_T.Text;
            compMod.Status     = 1;
            compMod.CreateUser = mu.UserID;
            compMod.CompLogo   = SFileUp.FileUrl;
            compMod.UPPath     = compBll.CreateUPPath(compMod);
            compMod.ID         = compBll.Insert(compMod);
            //------------------角色
            urMod.IsSuper  = 1;
            urMod.RoleAuth = "";
            urMod.CompID   = compMod.ID;
            urMod.RoleName = "网络管理员";
            urMod.RoleDesc = "公司网络管理员,拥有全部权限,该角色只允许存在一个";
            urMod.UserID   = mu.UserID;
            urMod.ID       = urBll.Insert(urMod);
            //------------------网络管理员
            {
                M_User_Plat upMod = upBll.NewUser(mu, compMod);
                upMod.Plat_Role = "," + urMod.ID + ",";
                upBll.Insert(upMod);
                M_Plat_Group gpMod = NewGroup(upMod.CompID, "办公部门", upMod.UserID);
                gpBll.Insert(gpMod);
            }
            //------------------其他权限管理员
            {
                for (int i = 0; i < userDT.Rows.Count; i++)
                {
                    string gname = userDT.Rows[i]["gname"].ToString();
                    string uname = userDT.Rows[i]["uname"].ToString();
                    string honey = userDT.Rows[i]["honey"].ToString();
                    if (string.IsNullOrEmpty(uname))
                    {
                        continue;
                    }
                    M_UserInfo newmu = buser.NewUser(uname, "111111");
                    newmu.HoneyName = honey;
                    newmu.UserID    = buser.Add(newmu);
                    M_Uinfo basemu = buser.NewBase(newmu);
                    buser.AddBase(basemu);
                    //----能力相关信息
                    M_Plat_Group gpMod = NewGroup(compMod.ID, gname, newmu.UserID);
                    M_User_Plat  upMod = upBll.NewUser(newmu, compMod);
                    gpMod.ID  = gpBll.Insert(gpMod);
                    upMod.Gid = gpMod.ID.ToString();
                    upBll.Insert(upMod);
                }
            }
            function.WriteSuccessMsg(mu.UserName + "的企业[" + compMod.CompName + "]创建成功", "CompList.aspx");
        }