/// <summary> /// 高级服务申请业务逻辑接口的实例 /// </summary> /// <returns></returns> public static EyouSoft.IBLL.SystemStructure.ISysApplyService CreateInstance() { EyouSoft.IBLL.SystemStructure.ISysApplyService op = null; if (op == null) { op = EyouSoft.Component.Factory.ComponentFactory.Create <EyouSoft.IBLL.SystemStructure.ISysApplyService>(); } return(op); }
protected void Page_Load(object sender, EventArgs e) { if (!CheckGrant(TravelPermission.系统设置_权限管理)) { Utils.ResponseNoPermit(); return; } applyBll = EyouSoft.BLL.SystemStructure.SysApplyService.CreateInstance(); string isCustomer = Utils.GetQueryStringValue("iscustomer"); if (isCustomer == "yes") { sznb1.Visible = false; } companyName = SiteUserInfo.CompanyName; string method = Utils.GetFormValue("method"); if (method == "applyMQ") { Apply_MQ(); return; } if (applyBll.IsApply(SiteUserInfo.CompanyID, EyouSoft.Model.CompanyStructure.SysService.MQ)) { EyouSoft.Model.SystemStructure.SysApplyServiceInfo serviceInfo = EyouSoft.BLL.SystemStructure.SysApplyService.CreateInstance().GetApplyInfo(SiteUserInfo.CompanyID, EyouSoft.Model.CompanyStructure.SysService.MQ); if (serviceInfo != null) { am_txtAddress.Visible = false; am_txtContact.Visible = false; am_txtMoible.Visible = false; am_txtTel.Visible = false; contantName = "<span>" + serviceInfo.ContactName + "</span>"; moible = "<span>" + serviceInfo.ContactMobile + "</span>"; tel = "<span>" + serviceInfo.ContactTel + "</span>"; adress = "<span>" + serviceInfo.ContactAddress + "</span>"; mq_message = "你已经申请开通MQ会员,目前处于审核当中……"; } isApply = "style='display:none'"; } else { am_txtContact.Value = SiteUserInfo.ContactInfo.ContactName; am_txtMoible.Value = SiteUserInfo.ContactInfo.Mobile; am_txtTel.Value = SiteUserInfo.ContactInfo.Tel; EyouSoft.Model.CompanyStructure.CompanyInfo companyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID); if (companyModel != null) { am_txtAddress.Value = companyModel.CompanyAddress; } } }
/// <summary> /// /// </summary> private void ApplyServiceTest() { int recordCount = 0; EyouSoft.Model.SystemStructure.SysApplyServiceInfo info = new EyouSoft.Model.SystemStructure.SysApplyServiceInfo(); info.ApplyServiceType = EyouSoft.Model.CompanyStructure.SysService.HighShop; info.ApplyText = "www.g.com"; info.ApplyTime = DateTime.Now; info.CityId = 1; info.CityName = "aq"; info.CompanyId = "bdfa4c0c-9ebc-497c-93d0-dd7255e5cab4"; info.CompanyName = "company name"; info.ContactAddress = "company address"; info.ContactMobile = "15888888888"; info.ContactMQ = "10000"; info.ContactName = "contact name"; info.ContactQQ = "10000"; info.ContactTel = "057188888888"; info.ProvinceId = 1; info.ProvinceName = "ah"; info.UserId = "916b9d06-72e7-410c-8cd9-a8859d04c85e"; EyouSoft.IBLL.SystemStructure.ISysApplyService bll = EyouSoft.BLL.SystemStructure.SysApplyService.CreateInstance(); bll.Apply(info); bll.GetApplyInfo("d63d71cb-f1c4-4317-b944-9bf8884aa41f"); Response.Write(bll.GetApplys(10, 1, ref recordCount, EyouSoft.Model.CompanyStructure.SysService.HighShop, null, null, null, null, null, null).Count); Response.Write(bll.GetApplyState("bdfa4c0c-9ebc-497c-93d0-dd7255e5cab4", EyouSoft.Model.CompanyStructure.SysService.HighShop)); Response.Write(bll.IsApply("bdfa4c0c-9ebc-497c-93d0-dd7255e5cab4", EyouSoft.Model.CompanyStructure.SysService.HighShop)); EyouSoft.Model.SystemStructure.EshopCheckInfo checkinfo = new EyouSoft.Model.SystemStructure.EshopCheckInfo(); checkinfo.ApplyId = "d63d71cb-f1c4-4317-b944-9bf8884aa41f"; checkinfo.ApplyState = EyouSoft.Model.SystemStructure.ApplyServiceState.审核通过; checkinfo.CheckTime = DateTime.Now; checkinfo.DomainName = "www.google.com"; checkinfo.EnableTime = Convert.ToDateTime("2010-01-01"); checkinfo.ExpireTime = Convert.ToDateTime("2010-01-31"); checkinfo.OperatorId = 1; Response.Write(bll.EshopChecked(checkinfo)); /*Response.Write(bll.Renewed("d63d71cb-f1c4-4317-b944-9bf8884aa41f", Convert.ToDateTime("2010-02-01") * , Convert.ToDateTime("2010-08-28"), 1, DateTime.Now));*/ }
protected void ReNewMQ() { EyouSoft.Model.SystemStructure.MQCheckInfo mqCheckModel = new EyouSoft.Model.SystemStructure.MQCheckInfo(); mqCheckModel.ApplyId = Utils.GetQueryStringValue("id"); mqCheckModel.ApplyState = EyouSoft.Model.SystemStructure.ApplyServiceState.审核通过; string enableDate = Request.QueryString["enableDate"]; string expireDate = Request.QueryString["expireDate"]; string sonUserNum = Request.QueryString["sonUserNum"]; if (!(EyouSoft.Common.Function.StringValidate.IsDateTime(enableDate) && EyouSoft.Common.Function.StringValidate.IsDateTime(expireDate) && EyouSoft.Common.Function.StringValidate.IsInteger(sonUserNum))) { Utils.ResponseMeg(false, "子账户数或日期格式不对!"); return; } mqCheckModel.EnableTime = Utils.GetDateTime(enableDate, DateTime.Now); mqCheckModel.ExpireTime = Utils.GetDateTime(expireDate, DateTime.Now); mqCheckModel.SubAccountNumber = Utils.GetInt(sonUserNum); mqCheckModel.OperatorId = MasterUserInfo.ID; mqCheckModel.CheckTime = DateTime.Now; EyouSoft.IBLL.SystemStructure.ISysApplyService serviceBll = EyouSoft.BLL.SystemStructure.SysApplyService.CreateInstance(); //执行续费操作 int result = serviceBll.MQRenewed(mqCheckModel.ApplyId, mqCheckModel.EnableTime, mqCheckModel.ExpireTime, mqCheckModel.OperatorId, mqCheckModel.CheckTime, mqCheckModel.SubAccountNumber); if (result == 1) { Utils.ResponseMegSuccess(); } else if (result == 2) { Utils.ResponseMeg(false, "续费时间不对"); } else { Utils.ResponseMegError(); } }