private void SetInfo(Foresight.DataAccess.SiteVersion data) { this.tdVersionCode.Value = data.VersionCode > 0 ? data.VersionCode.ToString() : "1"; this.tdVersionDesc.Value = data.VersionDesc; FilePath = data.FilePath; SqlPath = data.SqlPath; this.tdVersionType.Value = string.IsNullOrEmpty(data.VersionType) ? "platform" : data.VersionType; }
private void SetInfo(Foresight.DataAccess.SiteVersion data) { this.tdAPPVersionDesc.Value = data.APPVersionDesc; this.tdAPPVersionCode.Value = data.APPVersionCode > 0 ? data.APPVersionCode.ToString() : ""; this.tdVersionType.Value = string.IsNullOrEmpty(data.VersionType) ? "platform" : data.VersionType; this.tdVersionDesc.Value = data.VersionDesc; FilePath = data.FilePath; this.tdAPPType.Value = data.APPType > 0 ? data.APPType.ToString() : ""; if (data.VersionType.Equals("ios")) { this.tdIOS_FilePath.Value = data.FilePath; } this.tdDisableUpdate.Value = data.DisableUpdate ? "1" : "0"; this.tdIsForceUpdate.Value = data.IsForceUpdate ? "1" : "0"; }