protected void btnSave_Click(object sender, EventArgs e) { AppInfoEntity appInfo = new AppInfoEntity(); appInfo.AppID = this.AppID; //appInfo.UAppID = this.hidUAppID.Value.Convert<int>(0); appInfo.MainPackID = 0; appInfo.AppName = this.AppName.Text.Trim(); appInfo.ShowName = this.ShowName.Text.Trim(); appInfo.Architecture = GetArchitecture(); appInfo.ForDeviceType = this.ForDeviceTypeList.SelectedValue.Convert <int>(0); appInfo.PackName = this.MainPackName.Value; appInfo.PackSign = string.Empty; appInfo.CPID = this.DevID.Value.Convert <int>(0); appInfo.IssueType = Convert.ToInt32(drpIssueType.SelectedItem.Value); appInfo.ChannelNos = GetChannel(); appInfo.ChannelAdaptation = GetChannel2(); appInfo.DevName = this.CPName.Text.Trim(); appInfo.AppClass = this.AppClass.Convert <int>(11); appInfo.IsNetGame = this.IsNetGame.SelectedValue.Convert <int>(0); appInfo.EvilLevel = this.EvilLevel.SelectedValue.Convert <int>(0); appInfo.RecommLevel = this.RecommLevel.SelectedValue.Convert <int>(0); appInfo.RecommWord = this.RecommWord.Text.Trim(); appInfo.ThumbPicUrl = this.ThumbPicUrl.Value; appInfo.AppDesc = this.AppDesc.Text.Trim(); appInfo.SearchKeys = this.SearchKeys.Text.Trim(); appInfo.DownTimes = this.DownTimes.Text.Trim().Convert <int>(); appInfo.Remarks = this.Remarks.Text.Trim(); appInfo.Status = this.Status.SelectedValue.Convert <int>(); appInfo.MainVerName = string.Empty; appInfo.MainVerCode = 0; appInfo.MainSignCode = string.Empty; appInfo.MainIconUrl = string.Empty; appInfo.RecommTag = GetRecommFlag(); appInfo.AppTag = GetTag(); this.X1 = Math.Round(this.Request.Params["x1"].Convert <double>(0)); this.X2 = Math.Round(this.Request.Params["x2"].Convert <double>(0)); this.Y1 = Math.Round(this.Request.Params["y1"].Convert <double>(0)); this.Y2 = Math.Round(this.Request.Params["y2"].Convert <double>(0)); this.Width = Math.Round(this.Request.Params["w"].Convert <double>(0)); this.Height = Math.Round(this.Request.Params["h"].Convert <double>(0)); if (string.IsNullOrEmpty(this.AppType.SelectedValue)) { this.Alert("请选择分类信息"); return; } //应用类型 appInfo.AppType = this.AppType.SelectedValue.Convert <int>(0); #region 处理缩略图 if (this.OldThumbPicUrl.Value != this.ThumbPicUrl.Value) { if (!string.IsNullOrEmpty(appInfo.ThumbPicUrl)) { if (this.Width != 0 && this.Height != 0) { //裁剪方式 string croptype = this.Request <string>("cropType", string.Empty); Bitmap bitSource = ImageHelper.GetBitmapFromUrl(appInfo.ThumbPicUrl); if (bitSource == null) { this.Alert("远程图片解析失败,请刷新后再试"); return; } int rX = Convert.ToInt32(Math.Round(this.X1, MidpointRounding.AwayFromZero)); int rY = Convert.ToInt32(Math.Round(this.Y1, MidpointRounding.AwayFromZero)); int rW = Convert.ToInt32(Math.Round(this.Width, MidpointRounding.AwayFromZero)); int rH = Convert.ToInt32(Math.Round(this.Height, MidpointRounding.AwayFromZero)); bitSource = ImageHelper.KiCut(bitSource, rX, rY, rW, rH); if (croptype == "hengping") { bitSource = ImageHelper.ImageCompress(bitSource, 260, 195); } else { bitSource = ImageHelper.ImageCompress(bitSource, 195, 260); } UploadFile up = new UploadFile(); byte[] imageBytes = BitmapToBytes(bitSource); //StartTransfer中的AppID和CID在前端页面中上传控件定义 string token = up.StartTransfer(2, 11, appInfo.ThumbPicUrl.Substring(appInfo.ThumbPicUrl.LastIndexOf("."), 4), 1, imageBytes.Length, string.Empty); string resultString = up.Transfer(token, imageBytes, 1); appInfo.ThumbPicUrl = resultString.Split(',')[1]; //up.GenerateThumb(appInfo.ThumbPicUrl, 0); up.GenerateThumb(token); bitSource.Dispose(); } } } #endregion if (string.IsNullOrEmpty(appInfo.AppName)) { this.Alert("资料不完整,请完善后再试"); return; } //写入数据库 bool result = new AppInfoBLL().Update(appInfo); //判断是否修改成功 if (result) { if (this.CheckBox1.Checked == true) { new AppCommentSummaryBLL().UpdateSummary(appInfo.AppID, appInfo.DownTimes, appInfo.RecommLevel); } if (this.AppClass == "12") { OperateRecordEntity info = new OperateRecordEntity() { ElemId = appInfo.AppID, reason = "", Status = 1, OperateFlag = "2", OperateType = "2", OperateExplain = "修改游戏信息", SourcePage = 1, OperateContent = appInfo.ShowName, UserName = GetUserName(), }; new OperateRecordBLL().Insert(info); this.Alert("操作成功", string.Format("GameInfoList.aspx")); } else { this.Alert("操作成功", string.Format("AppInfoList.aspx")); } } else { this.Alert("操作失败"); } }
/// <summary> /// 修改数据 /// </summary> private void Update() { GroupInfoEntity entity = new GroupInfoEntity(); entity.GroupName = this.GroupName.Text; entity.OrderType = this.dropOrderType.SelectedValue.Convert <int>(1); entity.GroupTypeID = this.dropGroupType.SelectedValue.Convert <int>(1); entity.GroupTips = this.RecommWord.Text; entity.Status = this.Status.SelectedValue.Convert <int>(1); entity.Remarks = this.Remarks.Text; entity.StartTime = this.StartTime.Text.Trim().Convert <DateTime>(DateTime.Now); entity.EndTime = this.EndTime.Text.Trim().Convert <DateTime>(DateTime.Now.AddDays(7)); entity.GroupDesc = this.GroupDesc.Text; entity.GroupPicUrl = this.ThumbPicUrl.Value; entity.GroupID = this.GroupID; #region 处理缩略图 if (this.OldThumbPicUrl.Value != this.ThumbPicUrl.Value) { if (!string.IsNullOrEmpty(entity.GroupPicUrl)) { if (this.Width != 0 && this.Height != 0) { //裁剪方式 string croptype = this.Request <string>("cropType", string.Empty); Bitmap bitSource = ImageHelper.GetBitmapFromUrl(entity.GroupPicUrl); if (bitSource == null) { this.Alert("远程图片解析失败,请刷新后再试"); return; } int rX = Convert.ToInt32(Math.Round(this.X1, MidpointRounding.AwayFromZero)); int rY = Convert.ToInt32(Math.Round(this.Y1, MidpointRounding.AwayFromZero)); int rW = Convert.ToInt32(Math.Round(this.Width, MidpointRounding.AwayFromZero)); int rH = Convert.ToInt32(Math.Round(this.Height, MidpointRounding.AwayFromZero)); bitSource = ImageHelper.KiCut(bitSource, rX, rY, rW, rH); if (croptype == "hengping") { bitSource = ImageHelper.ImageCompress(bitSource, 260, 195); } else { bitSource = ImageHelper.ImageCompress(bitSource, 195, 260); } UploadFile up = new UploadFile(); byte[] imageBytes = BitmapToBytes(bitSource); //StartTransfer中的AppID和CID在前端页面中上传控件定义 string token = up.StartTransfer(2, 41, entity.GroupPicUrl.Substring(entity.GroupPicUrl.LastIndexOf("."), 4), 1, imageBytes.Length, string.Empty); string resultString = up.Transfer(token, imageBytes, 1); entity.GroupPicUrl = resultString.Split(',')[1]; //up.GenerateThumb(entity.GroupPicUrl, 0); up.GenerateThumb(token); bitSource.Dispose(); } } } #endregion //写入数据库 bool result = new GroupInfoBll().UpdateGroupInfo(entity); if (result) { this.Alert("操作成功", string.Format("/GroupInfo.aspx")); } else { this.Alert("操作失败"); } }
protected void btnSave_Click(object sender, EventArgs e) { try { AppInfoiosEntity appInfoios = new AppInfoiosEntity() { //应用ID AppID = this.AppID, //应用名称 AppName = this.AppName.Text.Trim(), //显示名称 ShowName = this.ShowName.Text.Trim(), //开发商名称 DevName = this.DevName.Text.Trim(), //应用类型 AppType = this.AppType.Text.Trim(), //应用大小 AppSize = this.AppSize.Text.Trim(), //应用价格 AppPrice = this.AppPrice.Text.Trim(), //应用版本 AppVersion = this.AppVersion.Text.Trim(), //应用标示语 RecommFlagWord = this.RecommFlagWord.Text.Trim(), //缩略图 ThumbPicUrl = this.ThumbPicUrl.Value, //应用连接Url地址 AppUrl = this.AppUrl.Text.Trim(), //应用推荐语 RecommWord = this.RecommWord.Text.Trim(), //描述语言 AppDesc = this.AppDesc.Text.Trim(), //Icon Url地址 IconPicUrl = this.Request <string>("IconPicUrl", string.Empty), //IconUrl = this.IconUrl.Value, //广告Urls //AdsPicUrl = this.AdsUrl.Text.Trim(), AdsPicUrl = this.AdsPicUrl.Value, //推荐语 Remarks = this.Remarks.Text.Trim(), //应用状态 Status = this.Status.SelectedValue.Convert <int>() }; #region 判断数据有效性 if (string.IsNullOrEmpty(appInfoios.ShowName)) { this.Alert("显示名称不能为空"); return; } else if (string.IsNullOrEmpty(appInfoios.AppName)) { this.Alert("安装包包名不能为空"); return; } else if (string.IsNullOrEmpty(appInfoios.IconPicUrl)) { this.Alert("Icon不能为空"); return; } bool result1 = false; //判断些应用信息是否已经存在 result1 = new AppInfoiosBLL().IsExistAppInfo(this.AppName.Text.Trim()); if (result1) { this.Alert("应用已经存在"); return; } //iosApp信息cms后台管理 string[] appPicUrl = this.Request.Params["AppPicUrl"].Split(','); string str_PicUrl = ""; //添加应用截图,URL之间用英文逗号分隔 for (int i = 0; i < appPicUrl.Length; i++) { str_PicUrl = str_PicUrl == "" ? appPicUrl[i] : (str_PicUrl + ',' + appPicUrl[i]); } appInfoios.AppPicUrl = str_PicUrl; this.X1 = Math.Round(this.Request.Params["x1"].Convert <double>(0)); this.X2 = Math.Round(this.Request.Params["x2"].Convert <double>(0)); this.Y1 = Math.Round(this.Request.Params["y1"].Convert <double>(0)); this.Y2 = Math.Round(this.Request.Params["y2"].Convert <double>(0)); this.Width = Math.Round(this.Request.Params["w"].Convert <double>(0)); this.Height = Math.Round(this.Request.Params["h"].Convert <double>(0)); #endregion #region 处理缩略图 if (!string.IsNullOrEmpty(appInfoios.IconPicUrl)) { if (this.Width != 0 && this.Height != 0) { //裁剪方式 string croptype = this.Request <string>("cropType", string.Empty); Bitmap bitSource = ImageHelper.GetBitmapFromUrl(appInfoios.IconPicUrl); if (bitSource == null) { this.Alert("远程图片解析失败,请刷新后再试"); return; } int rX = Convert.ToInt32(Math.Round(this.X1, MidpointRounding.AwayFromZero)); int rY = Convert.ToInt32(Math.Round(this.Y1, MidpointRounding.AwayFromZero)); int rW = Convert.ToInt32(Math.Round(this.Width, MidpointRounding.AwayFromZero)); int rH = Convert.ToInt32(Math.Round(this.Height, MidpointRounding.AwayFromZero)); bitSource = ImageHelper.KiCut(bitSource, rX, rY, rW, rH); if (croptype == "hengping") { bitSource = ImageHelper.ImageCompress(bitSource, 260, 195); } else { bitSource = ImageHelper.ImageCompress(bitSource, 195, 260); } UploadFile up = new UploadFile(); byte[] imageBytes = BitmapToBytes(bitSource); //StartTransfer中的AppID在前端页面中上传控件定义 string token = up.StartTransfer(2, 11, appInfoios.IconPicUrl.Substring(appInfoios.IconPicUrl.LastIndexOf("."), 4), 1, imageBytes.Length, string.Empty); string resultString = up.Transfer(token, imageBytes, 1); appInfoios.IconPicUrl = resultString.Split(',')[1]; //up.GenerateThumb(appInfo.ThumbPicUrl, 0); up.GenerateThumb(token); bitSource.Dispose(); } } #endregion if (string.IsNullOrEmpty(appInfoios.AppName)) { this.Alert("资料不完整,请完善后再试"); return; } //写入数据库 int result2 = new AppInfoiosBLL().Insert(appInfoios); if (result2 != 0) { if (this.AppClass == "23") { OperateRecordEntity info = new OperateRecordEntity() { ElemId = result2, reason = "", Status = 1, OperateFlag = "1", OperateType = "2", OperateExplain = "新增IOS游戏", SourcePage = 1, OperateContent = appInfoios.ShowName, UserName = GetUserName(), }; new OperateRecordBLL().Insert(info); } this.Response.Redirect(string.Format("IosAppInfoList.aspx?AppID={0}&ShowName={1}", this.AppID, appInfoios.ShowName)); } else { this.Alert("新增失败"); } } catch (Exception ex) { nwbase_utils.TextLog.Default.Error(ex.Message); throw ex; } }
protected void btnNext_Click(object sender, EventArgs e) { AppInfoEntity appInfo = new AppInfoEntity(); //主安装包ID appInfo.MainPackID = 0; //应用名称 appInfo.AppName = this.AppName.Text.Trim(); //显示名称 appInfo.ShowName = this.ShowName.Text.Trim(); //架构适配,1=arm,2=x86,...位运算 appInfo.Architecture = GetArchitecture(); //适用设备类型,定义:1=手机,2=平板,4=...位运算 appInfo.ForDeviceType = this.ForDeviceTypeList.SelectedValue.Convert <int>(0); //包名 appInfo.PackName = string.Empty; //包签名 appInfo.PackSign = string.Empty; //开发者ID appInfo.CPID = this.DevID.Value.Convert <int>(0); //分发类型:1=不分渠道,2=分渠道分发 appInfo.IssueType = Convert.ToInt32(drpIssueType.SelectedValue); //多个渠道号,只有当IssueType=2时生效。逗号分隔,首尾要加上逗号 appInfo.ChannelNos = GetChannel(); appInfo.ChannelAdaptation = GetChannel2(); //开发者名 appInfo.DevName = this.CPName.Text.Trim(); //应用分类 appInfo.AppClass = this.AppClass.Convert <int>(0); //是否网游,定义:1=网游,2=单机 appInfo.IsNetGame = this.IsNetGame.SelectedValue.Convert <int>(0); //邪恶等级,1~5表示从纯洁到邪恶 appInfo.EvilLevel = this.EvilLevel.SelectedValue.Convert <int>(0); //推荐值,0~10代表从不推荐到推荐 appInfo.RecommLevel = this.RecommLevel.SelectedValue.Convert <int>(0); //推荐语 appInfo.RecommWord = this.RecommWord.Text.Trim(); //缩略图URL appInfo.ThumbPicUrl = this.ThumbPicUrl.Value; //应用描述 appInfo.AppDesc = this.AppDesc.Text.Trim(); //搜索关键字 appInfo.SearchKeys = this.SearchKeys.Text.Trim(); //下载量,定期更新(不影响更新时间) appInfo.DownTimes = this.DownTimes.Text.Trim().Convert <int>(0); //备注 appInfo.Remarks = this.Remarks.Text.Trim(); //状态:1=正常,2=禁用,12=数据异常,22=控制禁用 appInfo.Status = this.Status.SelectedValue.Convert <int>(); //主版本号 appInfo.MainVerName = string.Empty; //主版本代码 appInfo.MainVerCode = 0; //签名特征码 appInfo.MainSignCode = string.Empty; //主ICON图URL地址 appInfo.AppTag = GetTag(); appInfo.MainIconUrl = string.Empty; //推荐标签,编辑指定,1=官方 2=推荐 4=首发 8=免费 16=礼包 32=活动 64=内测 128=热门...位运算 appInfo.RecommTag = GetRecommFlag(); //分发类型:1=不分渠道,2=分渠道分发 //appInfo.IssueType = this.IssueType.SelectedValue.Convert<int>(1); //联运游戏ID appInfo.UAppID = this.hidUAppID.Value.Convert <int>(0); this.X1 = Math.Round(this.Request.Params["x1"].Convert <double>(0)); this.X2 = Math.Round(this.Request.Params["x2"].Convert <double>(0)); this.Y1 = Math.Round(this.Request.Params["y1"].Convert <double>(0)); this.Y2 = Math.Round(this.Request.Params["y2"].Convert <double>(0)); this.Width = Math.Round(this.Request.Params["w"].Convert <double>(0)); this.Height = Math.Round(this.Request.Params["h"].Convert <double>(0)); if (string.IsNullOrEmpty(this.AppType.SelectedValue)) { this.Alert("请选择分类信息"); return; } //应用类型 appInfo.AppType = this.AppType.SelectedValue.Convert <int>(0); //数据状态,定义:1=正常,2=异常 appInfo.DataStatus = 2; if (new AppInfoBLL().IsExistAppInfo(appInfo.ShowName)) { this.Alert("当前应用已经存在,请修改后重试"); return; } #region 处理缩略图 if (!string.IsNullOrEmpty(appInfo.ThumbPicUrl)) { if (this.Width != 0 && this.Height != 0) { //裁剪方式 string croptype = this.Request <string>("cropType", string.Empty); Bitmap bitSource = ImageHelper.GetBitmapFromUrl(appInfo.ThumbPicUrl); if (bitSource == null) { this.Alert("远程图片解析失败,请刷新后再试"); return; } int rX = Convert.ToInt32(Math.Round(this.X1, MidpointRounding.AwayFromZero)); int rY = Convert.ToInt32(Math.Round(this.Y1, MidpointRounding.AwayFromZero)); int rW = Convert.ToInt32(Math.Round(this.Width, MidpointRounding.AwayFromZero)); int rH = Convert.ToInt32(Math.Round(this.Height, MidpointRounding.AwayFromZero)); bitSource = ImageHelper.KiCut(bitSource, rX, rY, rW, rH); if (croptype == "hengping") { bitSource = ImageHelper.ImageCompress(bitSource, 260, 195); } else { bitSource = ImageHelper.ImageCompress(bitSource, 195, 260); } UploadFile up = new UploadFile(); byte[] imageBytes = BitmapToBytes(bitSource); //StartTransfer中的AppID和CID在前端页面中上传控件定义 string token = up.StartTransfer(2, 11, appInfo.ThumbPicUrl.Substring(appInfo.ThumbPicUrl.LastIndexOf("."), 4), 1, imageBytes.Length, string.Empty); string resultString = up.Transfer(token, imageBytes, 1); appInfo.ThumbPicUrl = resultString.Split(',')[1]; //up.GenerateThumb(appInfo.ThumbPicUrl, 0); up.GenerateThumb(token); bitSource.Dispose(); } } #endregion if (string.IsNullOrEmpty(appInfo.AppName)) { this.Alert("资料不完整,请完善后再试"); return; } //写入数据库 int result = new AppInfoBLL().Insert(appInfo); #region 由于数据结构变更,不存在此操作 2014-10-23 momo //if (result != 0) //{ // RAppTypeEntity rAppTypeEntity = new RAppTypeEntity() // { // AppID = result, // TypeID = this.AppType.SelectedValue.Convert<int>(0) // }; // if (new R_AppTypeBLL().Insert(rAppTypeEntity)) // { // //游戏需要处理R_AppType表数据 // if (this.AppClass == "12") // { // rAppTypeEntity = new RAppTypeEntity() // { // AppID = result, // TypeID = this.IsNetGame.SelectedValue.Convert<int>(0) == 0 ? 2102 : 2101 // }; // new R_AppTypeBLL().Insert(rAppTypeEntity); // } // Response.Redirect(string.Format("PackInfoAdd.aspx?AppID={0}&ShowName={1}&type=app", result, appInfo.ShowName)); // } // else // { // this.Alert("操作失败"); // } //} //else //{ // this.Alert("操作失败"); //} #endregion if (result != 0) { if (this.CheckBox1.Checked == true) { new AppCommentSummaryBLL().UpdateSummary(result, appInfo.DownTimes, appInfo.RecommLevel); } if (this.AppClass == "12") { OperateRecordEntity info = new OperateRecordEntity() { ElemId = result, reason = "", Status = 1, OperateFlag = "1", OperateType = "2", OperateExplain = "新增游戏", SourcePage = 1, OperateContent = appInfo.ShowName, UserName = GetUserName(), }; new OperateRecordBLL().Insert(info); } //页面跳转至添加包页面 Response.Redirect(string.Format("PackInfoAdd.aspx?AppID={0}&ShowName={1}&type=app", result, appInfo.ShowName)); } else { this.Alert("新增失败"); } }
protected void btnSave_Click(object sender, EventArgs e) { CurrentEntity = new AppInfoiosBLL().GetSingle(this.AppID); try { AppInfoiosEntity appInfoios = new AppInfoiosEntity(); appInfoios.AppID = this.AppID; appInfoios.AppName = this.AppName.Text.Trim(); appInfoios.RecommFlagWord = this.RecommFlagWord.Text.Trim(); appInfoios.AppType = this.AppType.Text.Trim(); appInfoios.AppSize = this.AppSize.Text.Trim(); appInfoios.AppPrice = this.AppPrice.Text.Trim(); appInfoios.AppVersion = this.AppVersion.Text.Trim(); appInfoios.ThumbPicUrl = this.ThumbPicUrl.Value; appInfoios.ShowName = this.ShowName.Text.Trim(); appInfoios.DevName = this.DevName.Text.Trim(); appInfoios.RecommWord = this.RecommWord.Text.Trim(); appInfoios.IconPicUrl = this.IconUrl.Value; appInfoios.AppDesc = this.AppDesc.Text.Trim(); appInfoios.Remarks = this.Remarks.Text.Trim(); appInfoios.Status = this.Status.SelectedValue.Convert <int>(); appInfoios.AppUrl = this.AppUrl.Text.Trim(); appInfoios.AdsPicUrl = this.AdsPicUrl.Value; appInfoios.AppPicUrl = (this.AppPicUrl == "") ? CurrentEntity.AppPicUrl : this.AppPicUrl; this.X1 = Math.Round(this.Request.Params["x1"].Convert <double>(0)); this.X2 = Math.Round(this.Request.Params["x2"].Convert <double>(0)); this.Y1 = Math.Round(this.Request.Params["y1"].Convert <double>(0)); this.Y2 = Math.Round(this.Request.Params["y2"].Convert <double>(0)); this.Width = Math.Round(this.Request.Params["w"].Convert <double>(0)); this.Height = Math.Round(this.Request.Params["h"].Convert <double>(0)); #region 处理缩略图 if (!string.IsNullOrEmpty(appInfoios.IconPicUrl)) { if (this.Width != 0 && this.Height != 0) { //裁剪方式 string croptype = this.Request <string>("cropType", string.Empty); Bitmap bitSource = ImageHelper.GetBitmapFromUrl(appInfoios.IconPicUrl); if (bitSource == null) { this.Alert("远程图片解析失败,请刷新后再试"); return; } int rX = Convert.ToInt32(Math.Round(this.X1, MidpointRounding.AwayFromZero)); int rY = Convert.ToInt32(Math.Round(this.Y1, MidpointRounding.AwayFromZero)); int rW = Convert.ToInt32(Math.Round(this.Width, MidpointRounding.AwayFromZero)); int rH = Convert.ToInt32(Math.Round(this.Height, MidpointRounding.AwayFromZero)); bitSource = ImageHelper.KiCut(bitSource, rX, rY, rW, rH); if (croptype == "hengping") { bitSource = ImageHelper.ImageCompress(bitSource, 260, 195); } else { bitSource = ImageHelper.ImageCompress(bitSource, 195, 260); } UploadFile up = new UploadFile(); byte[] imageBytes = BitmapToBytes(bitSource); //StartTransfer中的AppID和CID在前端页面中上传控件定义 string token = up.StartTransfer(2, 11, appInfoios.IconPicUrl.Substring(appInfoios.IconPicUrl.LastIndexOf("."), 4), 1, imageBytes.Length, string.Empty); string resultString = up.Transfer(token, imageBytes, 1); appInfoios.IconPicUrl = resultString.Split(',')[1]; //up.GenerateThumb(appInfo.ThumbPicUrl, 0); up.GenerateThumb(token); bitSource.Dispose(); } } #endregion if (string.IsNullOrEmpty(appInfoios.AppName)) { this.Alert("资料不完整,请完善后再试"); return; } //写入数据库 bool result = new AppInfoiosBLL().Update(appInfoios); //判断是否修改成功 if (result) { OperateRecordEntity info = new OperateRecordEntity() { ElemId = appInfoios.AppID, reason = "", Status = 1, OperateFlag = "2", OperateType = "2", OperateExplain = "修改IOS游戏信息", SourcePage = 1, OperateContent = appInfoios.ShowName, UserName = GetUserName(), }; new OperateRecordBLL().Insert(info); this.Response.Redirect(string.Format("IosAppInfoList.aspx?AppID={0}&ShowName={1}", this.AppID, appInfoios.ShowName)); this.Alert("操作成功", string.Format("IosAppInfoEdit.aspx")); } else { this.Alert("操作失败"); } } catch (Exception ex) { nwbase_utils.TextLog.Default.Error(ex.Message); throw ex; } }