protected void Page_Load(object sender, EventArgs e) { if (X.IsAjaxRequest) { return; } SPSClientWrapper obj = SPSClientID; if (obj != null) { this.lblName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.lblDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); this.lblUserID.Text = obj.UserID.ToString(); this.lblInterceptRate.Text = obj.InterceptRate.ToString(); this.lblDefaultPrice.Text = obj.DefaultPrice.ToString(); this.lblDefaultShowRecordDays.Text = obj.DefaultShowRecordDays.ToString(); this.lblSycnNotInterceptCount.Text = obj.SycnNotInterceptCount.ToString(); this.lblSycnDataInfo.Text = obj.SycnDataInfo; } }
public void Show(int id) { try { SPUpperWrapper obj = SPUpperWrapper.FindById(id); if (obj != null) { this.lblName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.lblCode.Text = ValueConvertUtil.ConvertStringValue(obj.Code); this.lblDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); //hidLogID.Text = id.ToString(); winSPUpperView.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "错误信息:数据不存在t"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "错误信息:" + ex.Message; return; } }
public void Show(int id) { try { SystemDictionaryWrapper obj = SystemDictionaryWrapper.FindById(id); if (obj != null) { this.txtSystemDictionaryCategoryID.Text = obj.SystemDictionaryCategoryID.ToString(); this.txtSystemDictionaryKey.Text = obj.SystemDictionaryKey.ToString(); this.txtSystemDictionaryValue.Text = obj.SystemDictionaryValue.ToString(); this.txtSystemDictionaryDesciption.Text = obj.SystemDictionaryDesciption.ToString(); this.txtSystemDictionaryOrder.Text = obj.SystemDictionaryOrder.ToString(); this.chkSystemDictionaryIsEnable.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.SystemDictionaryIsEnable); hidSystemDictionaryID.Text = id.ToString(); winSystemDictionaryEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "错误信息:数据不存在!"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "错误信息:" + ex.Message; return; } }
public void Show(int id) { try { SystemRoleWrapper obj = SystemRoleWrapper.FindById(id); if (obj != null) { this.txtRoleName.Text = obj.RoleName; this.txtRoleDescription.Text = obj.RoleDescription; this.txtRoleCode.Text = obj.RoleCode; this.chkRoleIsSystemRole.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.RoleIsSystemRole); hidSystemRoleID.Text = id.ToString(); winSystemRoleEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "错误信息:数据不存在"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = string.Format(this.GetGlobalResourceObject("GlobalResource", "msgServerErrorMsg").ToString(), ex.Message); return; } }
public void Show(int id) { try { SPChannelWrapper obj = SPChannelWrapper.FindById(id); if (obj != null) { obj.UpdateChannelDetailInfo(); this.winSPChannelView.Title = string.Format("通道“{0}”详细信息", obj.Name); this.lblName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.lblChannelDetailInfo.Text = ValueConvertUtil.ConvertStringValue(obj.ChannelDetailInfo); winSPChannelView.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:" + ex.Message; return; } }
public void Show(int id) { try { SystemPostWrapper obj = SystemPostWrapper.FindById(id); if (obj != null) { this.txtName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.txtCode.Text = ValueConvertUtil.ConvertStringValue(obj.Code); this.txtDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); this.txtOrganizationID.Text = obj.OrganizationID.Name; hidId.Text = id.ToString(); winSystemPostEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message : Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message : " + ex.Message; return; } }
public void Show(int id) { try { SystemDictionaryGroupWrapper obj = SystemDictionaryGroupWrapper.FindById(id); if (obj != null) { this.txtName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.txtCode.Text = ValueConvertUtil.ConvertStringValue(obj.Code); this.txtDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); this.chkIsEnable.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsEnable); this.chkIsSystem.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsSystem); hidId.Text = id.ToString(); winSystemDictionaryGroupEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:" + ex.Message; return; } }
public void Show(int id) { try { SystemRoleWrapper obj = SystemRoleWrapper.FindById(id); if (obj != null) { this.txtRoleName.Text = obj.RoleName.ToString(); this.txtRoleDescription.Text = obj.RoleDescription.ToString(); this.chkRoleIsSystemRole.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.RoleIsSystemRole); hidSystemRoleID.Text = id.ToString(); winSystemRoleEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "错误信息:数据不存在"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "错误信息:" + ex.Message; return; } }
public void Show(int id) { try { SPAdPackWrapper obj = SPAdPackWrapper.FindById(id); if (obj != null) { this.lblID.Text = obj.Id.ToString(); this.lblSPAdID.Text = obj.SPAdID.ToString(); this.lblName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.lblCode.Text = ValueConvertUtil.ConvertStringValue(obj.Code); this.lblDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); //hidLogID.Text = id.ToString(); winSPAdPackView.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message; return; } }
public void Show(int id) { try { SPClientCodeRelationWrapper obj = SPClientCodeRelationWrapper.FindById(id); if (obj != null) { this.lblPrice.Text = obj.Price.ToString(); this.lblInterceptRate.Text = obj.InterceptRate.ToString(); this.lblSycnRetryTimes.Text = ValueConvertUtil.ConvertStringValue(obj.SycnRetryTimes); if (obj.SyncDataSetting != null) { this.lblSyncType.Text = ValueConvertUtil.ConvertStringValue(obj.SyncDataSetting.SyncType); this.lblSycnDataUrl.Text = ValueConvertUtil.ConvertStringValue(obj.SyncDataSetting.SycnMOUrl); this.lblSycnOkMessage.Text = ValueConvertUtil.ConvertStringValue(obj.SyncDataSetting.SycnMOOkMessage); this.lblSycnFailedMessage.Text = ValueConvertUtil.ConvertStringValue(obj.SyncDataSetting.SycnMOFailedMessage); } else { this.lblSyncType.Text = ""; this.lblSycnDataUrl.Text = ""; this.lblSycnOkMessage.Text = ""; this.lblSycnFailedMessage.Text = ""; } this.lblStartDate.Text = obj.StartDate.ToString(); this.lblEndDate.Text = obj.EndDate.ToString(); this.lblSycnNotInterceptCount.Text = obj.SycnNotInterceptCount.ToString(); this.lblCreateBy.Text = obj.CreateBy.ToString(); this.lblCreateAt.Text = obj.CreateAt.ToString(); this.lblLastModifyBy.Text = obj.LastModifyBy.ToString(); this.lblLastModifyAt.Text = obj.LastModifyAt.ToString(); //hidLogID.Text = id.ToString(); winSPClientCodeRelationView.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message; return; } }
public void Show(int id) { try { SPChannelWrapper obj = SPChannelWrapper.FindById(id); if (obj != null) { this.txtName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.txtDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); this.txtCode.Text = ValueConvertUtil.ConvertStringValue(obj.Code); //this.txtRecievedName.Text = ValueConvertUtil.ConvertStringValue(obj.RecievedName); //this.chkIsAllowNullLinkID.Checked = ValueConvertUtil.ConvertNullableValue<bool>(obj.IsAllowNullLinkID); //this.chkIsMonitorRequest.Checked = ValueConvertUtil.ConvertNullableValue<bool>(obj.IsMonitorRequest); //this.chkIsDisable.Checked = ValueConvertUtil.ConvertNullableValue<bool>(obj.IsDisable); //this.txtDataOkMessage.Text = ValueConvertUtil.ConvertStringValue(obj.DataOkMessage); //this.txtDataFailedMessage.Text = ValueConvertUtil.ConvertStringValue(obj.DataFailedMessage); //this.txtReportOkMessage.Text = ValueConvertUtil.ConvertStringValue(obj.ReportOkMessage); //this.txtReportFailedMessage.Text = ValueConvertUtil.ConvertStringValue(obj.ReportFailedMessage); //this.chkStatSendOnce.Checked = ValueConvertUtil.ConvertNullableValue<bool>(obj.StatSendOnce); //this.chkTypeRequest.Checked = ValueConvertUtil.ConvertNullableValue<bool>(obj.TypeRequest); //this.txtDataParamName.Text = ValueConvertUtil.ConvertStringValue(obj.DataParamName); //this.txtDataParamValue.Text = ValueConvertUtil.ConvertStringValue(obj.DataParamValue); //this.txtReportParamName.Text = ValueConvertUtil.ConvertStringValue(obj.ReportParamName); //this.txtReportParamValue.Text = ValueConvertUtil.ConvertStringValue(obj.ReportParamValue); //this.chkHasFilters.Checked = ValueConvertUtil.ConvertNullableValue<bool>(obj.HasFilters); //this.txtStatusParamName.Text = ValueConvertUtil.ConvertStringValue(obj.StatusParamName); //this.txtStatusParamValue.Text = ValueConvertUtil.ConvertStringValue(obj.StatusParamValue); //this.txtPrice.Text = obj.Price.ToString(); //this.txtDefaultRate.Text = obj.DefaultRate.ToString(); //this.chkHasStatReport.Checked = ValueConvertUtil.ConvertNullableValue<bool>(obj.HasStatReport); this.txtChannelDetailInfo.Text = ValueConvertUtil.ConvertStringValue(obj.ChannelDetailInfo); //this.ddlUpperID.SelectedValue = obj.UpperID.ToString(); this.chkIsLogRequest.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsLogRequest); hidId.Text = id.ToString(); winSPChannelEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:" + ex.Message; return; } }
public void Show(int id) { try { SPCodeWrapper obj = SPCodeWrapper.FindById(id); if (obj != null) { this.hidId.Text = obj.Id.ToString(); this.txtName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.txtDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); this.txtCode.Text = ValueConvertUtil.ConvertStringValue(obj.Code); this.txtMO.Text = ValueConvertUtil.ConvertStringValue(obj.Mo); this.cmbMOType.Value = ValueConvertUtil.ConvertStringValue(obj.MOType); this.numOrderIndex.Text = obj.OrderIndex.ToString(); this.txtSPCode.Text = ValueConvertUtil.ConvertStringValue(obj.SPCode); //if (!string.IsNullOrEmpty(obj.Province)) // WebUIHelper.SetSelectMutilItems(mcmbProvince, "|", obj.Province); //this.txtProvince.Text = obj.Province.ToString(); //this.txtDisableCity.Text = ValueConvertUtil.ConvertStringValue(obj.DisableCity); this.chkIsDiable.Checked = obj.IsDiable; //this.txtDayLimit.Text = obj.DayLimit.ToString(); //this.txtMonthLimit.Text = obj.MonthLimit.ToString(); this.txtPrice.Text = obj.Price.ToString(); //this.txtCodeSendText.Text = ValueConvertUtil.ConvertStringValue(obj.SendText); this.chkHasFilters.Checked = obj.HasFilters; this.chkHasParamsConvert.Checked = obj.HasParamsConvert; hidId.Text = id.ToString(); winSPCodeEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message; return; } }
public void Show(int id) { try { SPClientCodeRelationWrapper obj = SPClientCodeRelationWrapper.FindById(id); if (obj != null) { this.txtChannelID.Text = obj.CodeID_ChannelID.Name; this.txtCodeID.Text = obj.CodeID.MoCode; this.txtPrice.Text = obj.Price.ToString(); this.txtInterceptRate.Text = obj.InterceptRate.ToString(); this.txtSycnNotInterceptCount.Text = obj.SycnNotInterceptCount.ToString(); this.chkSyncData.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.SyncData); this.txtSycnRetryTimes.Text = ValueConvertUtil.ConvertStringValue(obj.SycnRetryTimes); if (obj.SyncDataSetting != null) { this.txtSycnDataUrl.Text = ValueConvertUtil.ConvertStringValue(obj.SyncDataSetting.SycnMOUrl); this.txtSycnOkMessage.Text = ValueConvertUtil.ConvertStringValue(obj.SyncDataSetting.SycnMOOkMessage); this.txtSycnFailedMessage.Text = ValueConvertUtil.ConvertStringValue(obj.SyncDataSetting.SycnMOFailedMessage); } else { this.txtSycnDataUrl.Text = ""; this.txtSycnOkMessage.Text = ""; this.txtSycnFailedMessage.Text = ""; } hidId.Text = id.ToString(); winSPClientCodeRelationEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "错误信息:数据不存在!"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "错误信息:" + ex.Message; return; } }
public void Show(int id) { try { SPAdvertisementWrapper obj = SPAdvertisementWrapper.FindById(id); if (obj != null) { this.txtName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); if (obj.UpperID != null) { this.cmbUpper.SetValue(obj.UpperID.Id.ToString()); } else { this.cmbUpper.ClearValue(); } this.txtCode.Text = ValueConvertUtil.ConvertStringValue(obj.Code); this.txtImageUrl.Text = ValueConvertUtil.ConvertStringValue(obj.ImageUrl); this.txtAdPrice.Text = ValueConvertUtil.ConvertStringValue(obj.AdPrice); cmbAccountType.SetValue(obj.AccountType); this.cmbAdType.SetValue(obj.AdType); this.txtAdText.Text = ValueConvertUtil.ConvertStringValue(obj.AdText); this.txtDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); //this.chkIsDisable.Checked = obj.IsDisable.ToString(); //this.numAssignedClient.Value = obj.AssignedClient.ToString(); //this.numCreateBy.Value = obj.CreateBy.ToString(); //this.dateCreateAt.Value = obj.CreateAt.ToString(); //this.numLastModifyBy.Value = obj.LastModifyBy.ToString(); //this.dateLastModifyAt.Value = obj.LastModifyAt.ToString(); hidId.Text = id.ToString(); winSPAdvertisementEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:" + ex.Message; return; } }
protected void Page_Load(object sender, EventArgs e) { if (X.IsAjaxRequest) { return; } SPCodeWrapper obj = SPCodeWrapper.FindById(Convert.ToInt32(this.Request.QueryString["CodeID"])); if (obj != null) { this.hidSPCodeID.Text = obj.Id.ToString(); this.txtDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); this.chkIsMatchCase.Checked = obj.IsMatchCase.HasValue && obj.IsMatchCase.Value; this.txtMO.Text = ValueConvertUtil.ConvertStringValue(obj.Mo); this.lblCodeType.Text = obj.MoCode; this.txtSPCode.Text = ValueConvertUtil.ConvertStringValue(obj.SPCode); this.chkIsDiable.Checked = obj.IsDiable; this.chkLimitProvince.Checked = obj.LimitProvince.HasValue && obj.LimitProvince.Value; if (obj.LimitProvince.HasValue && obj.LimitProvince.Value) { if (!string.IsNullOrEmpty(obj.LimitProvinceArea)) { WebUIHelper.SetSelectMutilItems(this.mfLimitProvinceArea, ",", obj.LimitProvinceArea); } } this.chkHasPhoneLimit.Checked = obj.HasPhoneLimit; this.chkHasFilters.Checked = obj.HasFilters; this.chkHasParamsConvert.Checked = obj.HasParamsConvert; if (obj.Price.HasValue) { this.nfPrice.Value = obj.Price; } else { this.nfPrice.Value = 0; } } }
public void Show(int id) { try { SPCodeWrapper obj = SPCodeWrapper.FindById(id); if (obj != null) { //this.lblID.Text = obj.ID.ToString(); this.lblName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.lblDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); this.lblCode.Text = ValueConvertUtil.ConvertStringValue(obj.Code); this.lblChannelID.Text = obj.ChannelID.ToString(); //this.lblMO.Text = ValueConvertUtil.ConvertStringValue(obj.MO); this.lblMOType.Text = ValueConvertUtil.ConvertStringValue(obj.MOType); this.lblOrderIndex.Text = obj.OrderIndex.ToString(); this.lblSPCode.Text = ValueConvertUtil.ConvertStringValue(obj.SPCode); //this.lblProvince.Text = ValueConvertUtil.ConvertStringValue(obj.Province); //this.lblDisableCity.Text = ValueConvertUtil.ConvertStringValue(obj.DisableCity); //this.lblIsDiable.Text = ValueConvertUtil.ConvertNullableValue<bool>(obj.IsDiable); //this.lblSPType.Text = ValueConvertUtil.ConvertStringValue(obj.SPType); //this.lblCodeLength.Text = obj.CodeLength.ToString(); //this.lblDayLimit.Text = obj.DayLimit.ToString(); //this.lblMonthLimit.Text = obj.MonthLimit.ToString(); this.lblPrice.Text = obj.Price.ToString(); //this.lblSendText.Text = ValueConvertUtil.ConvertStringValue(obj.SendText); //this.lblHasFilters.Text = ValueConvertUtil.ConvertNullableValue<bool>(obj.HasFilters); //hidLogID.Text = id.ToString(); winSPCodeView.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message; return; } }
public static void LogOpOther(WrapperType auditableData) { try { SystemVersionWrapper systemVersion = null; if (systemVersion == null) { systemVersion = SaveNewVersion(auditableData); } SystemLogWrapper log = new SystemLogWrapper(); log.LogDate = ValueConvertUtil.ConvertNullableValue(auditableData.GetDataLastModifyAt(), System.DateTime.Now); SystemUserWrapper opUser = null; if (auditableData.GetDataLastModifyBy().HasValue) { opUser = SystemUserWrapper.FindById(auditableData.GetDataLastModifyBy().Value); } log.LogDescrption = auditableData.GetDataLastModifyComment(); log.LogLevel = SystemLogWrapper.SysteLogLevel.Info; log.LogRelateDateTime = auditableData.GetDataLastModifyAt(); log.LogRelateUserID = auditableData.GetDataLastModifyBy(); if (opUser != null) { log.LogRelateUserName = opUser.UserLoginID; } else { log.LogRelateUserName = ""; } log.ParentDataType = auditableData.GetType().ToString(); log.ParentDataID = auditableData.GetDataLastModifyBy(); log.LogSource = "Operation"; log.LogType = SystemLogWrapper.SysteLogType.OperationLog; SystemLogWrapper.Save(log); } catch (Exception ex) { logger.Error(ex.Message); } }
public void Show(int id) { try { SPSClientWrapper obj = SPSClientWrapper.FindById(id); if (obj != null) { this.lblName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.lblDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); //this.lblRecieveDataUrl.Text = ValueConvertUtil.ConvertStringValue(obj.RecieveDataUrl); //this.lblUserID.Text = obj.UserID.ToString(); ////this.lblSyncData.Text = ValueConvertUtil.ConvertNullableValue<bool>(obj.SyncData); //this.lblOkMessage.Text = ValueConvertUtil.ConvertStringValue(obj.DataOkMessage); //this.lblFailedMessage.Text = ValueConvertUtil.ConvertStringValue(obj.FailedMessage); if (obj.SyncDataSetting != null) { this.lblSyncType.Text = ValueConvertUtil.ConvertStringValue(obj.SyncDataSetting.SyncType); } else { this.lblSyncType.Text = ""; } this.lblAlias.Text = ValueConvertUtil.ConvertStringValue(obj.Alias); this.lblInterceptRate.Text = obj.InterceptRate.ToString(); this.lblDefaultPrice.Text = obj.DefaultPrice.ToString(); //hidLogID.Text = id.ToString(); winSPSClientView.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message; return; } }
public void Show(int id) { try { SPAdvertisementWrapper obj = SPAdvertisementWrapper.FindById(id); if (obj != null) { this.lblName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.lblCode.Text = ValueConvertUtil.ConvertStringValue(obj.Code); this.lblImageUrl.Text = ValueConvertUtil.ConvertStringValue(obj.ImageUrl); this.lblAdPrice.Text = ValueConvertUtil.ConvertStringValue(obj.AdPrice); this.lblAccountType.Text = ValueConvertUtil.ConvertStringValue(obj.AccountType); this.lblApplyStatus.Text = ValueConvertUtil.ConvertStringValue(obj.ApplyStatus); this.lblAdType.Text = ValueConvertUtil.ConvertStringValue(obj.AdType); this.lblAdText.Text = ValueConvertUtil.ConvertStringValue(obj.AdText); this.lblDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); this.lblIsDisable.Text = obj.IsDisable.ToString(); this.lblAssignedClient.Text = obj.AssignedClient.ToString(); this.lblCreateBy.Text = obj.CreateBy.ToString(); this.lblCreateAt.Text = obj.CreateAt.ToString(); this.lblLastModifyBy.Text = obj.LastModifyBy.ToString(); this.lblLastModifyAt.Text = obj.LastModifyAt.ToString(); this.lblLastModifyComment.Text = ValueConvertUtil.ConvertStringValue(obj.LastModifyComment); //hidLogID.Text = id.ToString(); winSPAdvertisementView.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message; return; } }
public void Show(int id) { try { SystemResourcesWrapper obj = SystemResourcesWrapper.FindById(id); if (obj != null) { if (obj.ParentResourcesID == null) { this.lblParentResourcesName.Text = "As root resource"; } else { this.lblParentResourcesName.Text = obj.ParentResourcesID.ResourcesNameCn; } this.hidResourcesID.Text = obj.ResourcesID.ToString(); this.txtResourcesNameCn.Text = ValueConvertUtil.ConvertStringValue(obj.ResourcesNameCn); this.txtResourcesNameEn.Text = ValueConvertUtil.ConvertStringValue(obj.ResourcesNameEn); this.txtResourcesDescription.Text = ValueConvertUtil.ConvertStringValue(obj.ResourcesDescription); this.chkResourcesIsRelateUser.Checked = obj.ResourcesIsRelateUser; hidResourcesID.Text = id.ToString(); winSystemResourcesEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message; return; } }
public void Show(int id) { try { SystemOperationWrapper obj = SystemOperationWrapper.FindById(id); if (obj != null) { this.txtOperationNameCn.Text = ValueConvertUtil.ConvertStringValue(obj.OperationNameCn); this.txtOperationNameEn.Text = ValueConvertUtil.ConvertStringValue(obj.OperationNameEn); this.txtOperationDescription.Text = ValueConvertUtil.ConvertStringValue(obj.OperationDescription); this.chkIsSystemOperation.Checked = obj.IsSystemOperation; this.chkIsCanSingleOperation.Checked = obj.IsCanSingleOperation; this.chkIsCanMutilOperation.Checked = obj.IsCanMutilOperation; this.chkIsEnable.Checked = obj.IsEnable; this.chkIsInListPage.Checked = obj.IsInListPage; this.chkIsInSinglePage.Checked = obj.IsInSinglePage; this.txtOperationOrder.Text = obj.OperationOrder.ToString(); this.chkIsCommonOperation.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsCommonOperation); if (obj.ResourceID != null) { this.txtResourceName.Text = obj.ResourceID.ResourcesNameCn; } hidOperationID.Text = id.ToString(); winSystemOperationEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message : Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message : " + ex.Message; return; } }
public void Show(int id) { try { SPAdPackWrapper obj = SPAdPackWrapper.FindById(id); if (obj != null) { //this.numID.Value = obj.ID.ToString(); //this.numSPAdID.Value = obj.SPAdID.ToString(); this.txtName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.txtCode.Text = ValueConvertUtil.ConvertStringValue(obj.Code); this.txtDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); if (obj.AdPrice.HasValue) { this.numAdPrice.Value = obj.AdPrice; } else { this.numAdPrice.Value = decimal.Zero; } hidId.Text = id.ToString(); winSPAdPackEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:" + ex.Message; return; } }
public void Show(int id) { try { SystemEmailSettingsWrapper obj = SystemEmailSettingsWrapper.FindById(id); if (obj != null) { this.lblName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.lblDescriprsion.Text = ValueConvertUtil.ConvertStringValue(obj.Descriprsion); this.lblHost.Text = ValueConvertUtil.ConvertStringValue(obj.Host); this.lblPort.Text = ValueConvertUtil.ConvertStringValue(obj.Port); this.lblSSL.Text = ValueConvertUtil.ConvertNullableValue <bool>(obj.Ssl).ToString(); this.lblFromEmail.Text = ValueConvertUtil.ConvertStringValue(obj.FromEmail); this.lblFromName.Text = ValueConvertUtil.ConvertStringValue(obj.FromName); this.lblLoginEmail.Text = ValueConvertUtil.ConvertStringValue(obj.LoginEmail); this.lblLoginPassword.Text = ValueConvertUtil.ConvertStringValue(obj.LoginPassword); this.lblIsEnable.Text = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsEnable).ToString(); this.lblIsDefault.Text = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsDefault).ToString(); //this.lblCreateDate.Text = obj.CreateDate.ToString(); this.lblCreateBy.Text = obj.CreateBy.ToString(); //hidLogID.Text = id.ToString(); winSystemEmailSettingsView.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message : Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message : " + ex.Message; return; } }
public void Show(int id) { try { SystemEmailSettingsWrapper obj = SystemEmailSettingsWrapper.FindById(id); if (obj != null) { this.txtName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.txtCode.Text = obj.Code; this.txtDescriprsion.Text = ValueConvertUtil.ConvertStringValue(obj.Descriprsion); this.txtHost.Text = ValueConvertUtil.ConvertStringValue(obj.Host); this.txtPort.Text = ValueConvertUtil.ConvertStringValue(obj.Port); this.chkSSL.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.Ssl); this.txtFromEmail.Text = ValueConvertUtil.ConvertStringValue(obj.FromEmail); this.txtFromName.Text = ValueConvertUtil.ConvertStringValue(obj.FromName); this.txtLoginEmail.Text = ValueConvertUtil.ConvertStringValue(obj.LoginEmail); this.txtLoginPassword.Text = ValueConvertUtil.ConvertStringValue(obj.LoginPassword); this.chkIsEnable.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsEnable); this.chkIsDefault.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsDefault); hidEmailSettingID.Text = id.ToString(); winSystemEmailSettingsEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message : Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message : " + ex.Message; return; } }
public void Show(int id) { try { SPChannelParamsWrapper obj = SPChannelParamsWrapper.FindById(id); if (obj != null) { this.txtName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.txtDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); this.chkIsEnable.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsEnable); this.chkIsRequired.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsRequired); this.txtTitle.Text = ValueConvertUtil.ConvertStringValue(obj.Title); this.chkShowInClientGrid.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.ShowInClientGrid); this.txtParamsValue.Text = ValueConvertUtil.ConvertStringValue(obj.ParamsValue); this.cmbChannelParamsType.SetValue(obj.ParamsType); this.cmbParamsMappingName.SetValue(obj.ParamsMappingName); hidId.Text = id.ToString(); winSPChannelParamsEdit.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:" + ex.Message; return; } }
protected void Page_Load(object sender, EventArgs e) { if (X.IsAjaxRequest) { return; } SPChannelWrapper obj = ChannelID; if (obj != null) { obj.UpdateChannelDetailInfo(); this.lblName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.lblCode.Text = ValueConvertUtil.ConvertStringValue(obj.Code); this.lblChannelType.Text = obj.ChannelTypeName; this.lblStateReportType.Text = obj.StatusReportType; this.lblIsMonitorRequest.Text = obj.IsMonitorRequest.ToString(); this.lblIsLogRequest.Text = obj.IsLogRequest.ToString(); this.lblHasFilters.Text = obj.HasFilters.ToString(); this.lblIsDisable.Text = obj.IsDisable.ToString(); this.lblDefaultRate.Text = obj.DefaultRate.ToString(); this.lblPrice.Text = obj.Price.ToString(); this.lblChannelStatus.Text = obj.ChannelStatusName; this.lblUpper.Text = obj.UpperID_Name; this.lblChannelDetailInfo.Text = obj.ChannelDetailInfo; } }
public void Show(int id) { try { SPAdAssignedHistortyWrapper obj = SPAdAssignedHistortyWrapper.FindById(id); if (obj != null) { this.lblSPAdID.Text = obj.SPAdID.ToString(); this.lblSPAdPackID.Text = obj.SPAdPackID.ToString(); this.lblSPClientID.Text = obj.SPClientID.ToString(); this.lblStartDate.Text = obj.StartDate.ToString(); this.lblEndDate.Text = obj.EndDate.ToString(); this.lblCreateBy.Text = obj.CreateBy.ToString(); this.lblCreateAt.Text = obj.CreateAt.ToString(); this.lblLastModifyBy.Text = obj.LastModifyBy.ToString(); this.lblLastModifyAt.Text = obj.LastModifyAt.ToString(); this.lblLastModifyComment.Text = ValueConvertUtil.ConvertStringValue(obj.LastModifyComment); //hidLogID.Text = id.ToString(); winSPAdAssignedHistortyView.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message; return; } }
public void Show(int id) { try { SPChannelParamsWrapper obj = SPChannelParamsWrapper.FindById(id); if (obj != null) { this.hidId.Value = obj.Id.ToString(); this.txtName.Text = obj.Name.ToString(); this.txtDescription.Text = obj.Description.ToString(); this.chkIsEnable.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsEnable); this.chkIsRequired.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.IsRequired); this.cmbParamsType.SetValue(obj.ParamsType.ToString()); this.lblChannelName.Text = obj.ChannelID.Name.ToString(); this.cmbParamsMappingName.SetValue(obj.ParamsMappingName.ToString()); this.txtTitle.Text = obj.Title; this.chkShowInClientGrid.Checked = ValueConvertUtil.ConvertNullableValue <bool>(obj.ShowInClientGrid); hidId.Text = id.ToString(); winSPChannelParamsEdit.Show(); } else { ScriptManager.AjaxSuccess = false; ScriptManager.AjaxErrorMessage = "错误信息:数据不存在"; return; } } catch (Exception ex) { Coolite.Ext.Web.ScriptManager.AjaxSuccess = false; Coolite.Ext.Web.ScriptManager.AjaxErrorMessage = "错误信息:" + ex.Message; return; } }
public void Show(int id) { try { SPClientCodeSycnParamsWrapper obj = SPClientCodeSycnParamsWrapper.FindById(id); if (obj != null) { this.lblName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); this.lblDescription.Text = ValueConvertUtil.ConvertStringValue(obj.Description); this.lblCodeID.Text = obj.CodeID.ToString(); this.lblMappingParams.Text = ValueConvertUtil.ConvertStringValue(obj.MappingParams); this.lblTitle.Text = ValueConvertUtil.ConvertStringValue(obj.Title); this.lblParamsValue.Text = ValueConvertUtil.ConvertStringValue(obj.ParamsValue); this.lblParamsType.Text = ValueConvertUtil.ConvertStringValue(obj.ParamsType); //hidLogID.Text = id.ToString(); winSPClientCodeSycnParamsView.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message; return; } }
public void Show(int id) { try { SPSClientWrapper obj = SPSClientWrapper.FindById(id); if (obj != null) { this.txtName.Text = ValueConvertUtil.ConvertStringValue(obj.Name); SystemUserWrapper clientUser = SystemUserWrapper.FindById(obj.UserID); this.txtUserID.Text = clientUser.UserLoginID; chkChangePassword.Checked = false; this.txtUserPasword.Text = ""; hidId.Text = id.ToString(); winSPClientChangeUserLoginInfo.Show(); } else { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:Data does not exist"; return; } } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:" + ex.Message; return; } }