///// <summary> /////发送短信 ///// </summary> //private string SendSMS(HttpContext context) //{ // string PhoneList = context.Request["PhoneList"]; // //var SMSContent = context.Request["SMSContent"]; // //if (string.IsNullOrWhiteSpace(SMSContent)) // //{ // // return "请输入短信内容"; // //} // //var userInfo= DataLoadTool.GetCurrUserModel(); // //int count = 0; // //foreach (var item in PhoneList.Split(',')) // //{ // // string Parm = string.Format("userName={0}&userPwd={1}&mobile={2}&content={3}&pipeID=membertrigger", userInfo.UserID, userInfo.Password, item, SMSContent); // // Common.HttpInterFace obj = new Common.HttpInterFace(); // // string result = obj.PostWebRequest(Parm, "http://www.jubit.org/Serv/SubmitSMSAPI.aspx", System.Text.Encoding.GetEncoding("gb2312")); // // if (result=="0") // // { // // count++; // // } // // else // // { // // } // //} // //if (PhoneList.Split(',').Length==count) // //{ // // return "true"; // //} // //else // //{ // // return "短信未全部发送成功,请检查余额或联系管理员"; // //} // //BLLMember bllMember = new BLLMember(""); // //context.Session[SessionKey.PageRedirect] = "/Activity/ActivityData.aspx"; // //context.Session[SessionKey.PageCacheName] = "cache" + bllMember.GetGUID(TransacType.CacheGet); // //Comm.DataCache.SetCache(context.Session[SessionKey.PageCacheName].ToString(), PhoneList); // return "true"; //} /// <summary> /// 下载报名数据 /// </summary> /// <param name="context"></param> /// <returns></returns> private void DownLoadActivityData(HttpContext context) { BLLPermission.BLLMenuPermission bllMenupermission = new BLLPermission.BLLMenuPermission(""); bool isData = bllMenupermission.CheckPerRelationByaccount(bllUser.GetCurrUserID(), -1); if (isData) { return; } string activityId = context.Request["ActivityID"]; string exportType = context.Request["type"]; if (!bllActivity.IsExistActivity(activityId)) { return; } ////判断普通用户是否有相应权限 //if (!bll.CheckActivityIDAndUser(ActivityID, cu.UserID) && userInfo.UserType != 1) // return; #region 日志模块 if (exportType == "DistributionOffLine") { bllLog.Add(BLLJIMP.Enums.EnumLogType.DistributionOffLine, BLLJIMP.Enums.EnumLogTypeAction.Export, bllUser.GetCurrUserID(), "导出分销员审核数据"); } else { bllLog.Add(BLLJIMP.Enums.EnumLogType.DistributionOffLine, BLLJIMP.Enums.EnumLogTypeAction.Export, bllUser.GetCurrUserID(), "导出活动报名数据"); } #endregion DataTable dataTable = bllActivity.QueryActivityData(activityId); string fileName = bllActivity.GetActivityInfoByActivityID(activityId).ActivityName; DataLoadTool.ExportDataTable(dataTable, string.Format("{0}_{1}_data.xls", fileName, DateTime.Now.ToString())); }