Пример #1
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;
                }
            }
        }
    }
 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;
     }
 }