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;
     }
 }
Exemple #2
0
        public void MyBind()
        {
            EGV.DataSource = ualyBll.CompCert_Sel(ZStatus);
            EGV.DataBind();
            switch (ZStatus)
            {
            case (int)ZLEnum.ConStatus.UnAudit:
                break;

            //case (int)ZLEnum.ConStatus.Audited:
            //    break;
            //case (int)ZLEnum.ConStatus.Reject:
            //    break;
            default:
                BatReject_Btn.Visible = false;
                BatAgree_Btn.Visible  = false;
                break;
            }
        }
Exemple #3
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)
            {
                M_Plat_Comp compMod = new M_Plat_Comp();
                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("批量同意完成");
        }