Ejemplo n.º 1
0
        // GET: EnterpriseLock
        public ActionResult Index()
        {
            EnterpriseBll bll=new EnterpriseBll();

            Enterprise model = bll.GetModelById(LoginUser.UserBasic.EnterpriseID);

            return View(model);
        }
Ejemplo n.º 2
0
        // GET: EnterpriseLock
        public ActionResult Index()
        {
            EnterpriseBll bll = new EnterpriseBll();

            Enterprise model = bll.GetModelById(LoginUser.UserBasic.EnterpriseID);

            return(View(model));
        }
Ejemplo n.º 3
0
        public ActionResult Edit(Enterprise model)
        {
            ReturnData <string> ret = new ReturnData <string>();

            Model.Enterprise check = ebll.GetModelById(model.ID);
            string           img   = model.EIMG;

            check.EIMG       = img;
            check.TitleLogo  = model.TitleLogo;
            check.Contact    = model.Contact;
            check.ContactTel = model.ContactTel;
            check.AreasID    = model.AreasID;
            check.Address    = model.Address;
            ret = ebll.Update(check);
            if (ret.Status == true)
            {
                return(Content(ret.Message));
            }
            return(Content(ret.Message));
        }
Ejemplo n.º 4
0
        public ActionResult CheckNum(string num)
        {
            AgentBll      bll  = new AgentBll();
            EnterpriseBll eBll = new EnterpriseBll();


            Agent      model  = bll.GetModelByPhone(num);
            Enterprise emodel = eBll.GetModelById(model.EnterpriseID);

            if (model == null)
            {
                return(Content("您所输入的手机号码不存在!请确认号码!"));
            }
            if (model.Status != 1)
            {
                return(Content("您所输入的手机号码不是待验证状态!请确认号码!"));
            }
            ISMS   test     = new Sms();
            string checkNum = test.SendbyGSM(num, emodel.EName);

            return(Content(checkNum));
        }
Ejemplo n.º 5
0
        public ActionResult CheckNum(string num)
        {
            AgentBll bll = new AgentBll();
            EnterpriseBll eBll = new EnterpriseBll();


            Agent model = bll.GetModelByPhone(num);
            Enterprise emodel = eBll.GetModelById(model.EnterpriseID);
            if (model == null)
            {
                return Content("您所输入的手机号码不存在!请确认号码!");
            }
            if (model.Status != 1)
            {
                return Content("您所输入的手机号码不是待验证状态!请确认号码!");
            }
            ISMS test = new Sms();
            string checkNum = test.SendbyGSM(num, emodel.EName);
            return Content(checkNum);
        }