public ActionResult CreateEmLead()
        {
            RememberURL();
            if (!CheckIsLogin())
            {
                return(Redirect(res.Pageviews.PvMemberSignIn));
            }
            else
            {
                GetStatusUser();
                if (LogonServiceType == 9)
                {
                    svAddress  = new AddressService();
                    svBizType  = new BizType.BizTypeService();
                    svPurchase = new PurchaseService();

                    SetPager();
                    CountLead();
                    ViewBag.EmLeadCode   = svPurchase.GenLeadCode(0, 2);
                    ViewBag.actionEmLead = 0;
                    return(View());
                }
                else
                {
                    return(Redirect(PathHome));
                }
            }
        }
        public ActionResult CreateLead()
        {
            RememberURL();
            if (!CheckIsLogin())
            {
                return(Redirect(res.Pageviews.PvMemberSignIn));
            }
            else
            {
                GetStatusUser();
                if (LogonServiceType == 9)
                {
                    svAddress  = new AddressService();
                    svBizType  = new BizType.BizTypeService();
                    svPurchase = new PurchaseService();

                    SetPager();
                    CountLead();
                    ViewBag.AssignLeadCode = svPurchase.GenLeadCode(0, 1);
                    ViewBag.Provinces      = svAddress.GetProvinceAll().ToList();
                    ViewBag.Biztypes       = svBizType.GetBiztype().ToList();
                    ViewBag.setEmLeadID    = "";
                    return(View());
                }
                else
                {
                    return(Redirect(PathHome));
                }
            }
        }
Пример #3
0
 public BuyleadCenterController()
 {
     svBuylead  = new BuyleadService();
     svCategory = new CategoryService();
     svBizType  = new BizTypeService();
     svCompany  = new CompanyService();
     svAddress  = new AddressService();
 }
Пример #4
0
 public SupplierController()
 {
     svCategory = new CategoryService();
     svBizType  = new BizTypeService();
     svCompany  = new CompanyService();
     svAddress  = new AddressService();
     svProduct  = new ProductService();
 }
Пример #5
0
 public ShipmentController()
 {
     svBizType  = new BizTypeService();
     svMember   = new MemberService();
     svAddress  = new AddressService();
     svCompany  = new CompanyService();
     svProduct  = new ProductService();
     svShipment = new ShipmentService();
 }
 public FavoriteController()
 {
     svFavProduct = new FavProductService();
     svFavBuylead = new FavBuyleadService();
     svFavCompany = new FavCompanyService();
     svBizType    = new BizTypeService();
     svCompany    = new CompanyService();
     svAddress    = new AddressService();
 }
 public OrderlistController()
 {
     svBizType  = new BizTypeService();
     svMember   = new MemberService();
     svAddress  = new AddressService();
     svCompany  = new CompanyService();
     svProduct  = new ProductService();
     svShipment = new ShipmentService();
     svOrderPur = new OrderPurchaseService();
 }
Пример #8
0
        public OutSourceController()
        {
            svBizType   = new BizTypeService();
            svMember    = new MemberService();
            svAddress   = new AddressService();
            svEmcompany = new emCompanyService();
            svCompany   = new CompanyService();
            svWeb       = new WebService();

            AppName          = res.Common.lblWebsite;
            RememberAppName  = string.Concat("Remember", AppName);
            svAuthentication = new AuthenticationService();
            emailManager     = new EmailManager(res.Config.SMTP_Server, res.Config.SMTP_UserName, res.Config.SMTP_Password, Convert.ToBoolean(res.Config.SMTP_IsAuthentication));

            mail = new Ouikum.Common.Mail();
        }
 public BizTypeController()
 {
     svBiztype = new BizTypeService();
 }