void rptLogs_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                var ltlDepartment = e.Item.FindControl("ltlDepartment") as Literal;
                var ltlUserName   = e.Item.FindControl("ltlUserName") as Literal;
                var ltlAddDate    = e.Item.FindControl("ltlAddDate") as Literal;
                var ltlSummary    = e.Item.FindControl("ltlSummary") as Literal;

                var departmentID = SqlUtils.EvalInt(e.Item.DataItem, "DepartmentID");
                var userName     = SqlUtils.EvalString(e.Item.DataItem, "UserName");
                var addDate      = SqlUtils.EvalDateTime(e.Item.DataItem, "AddDate");
                var summary      = SqlUtils.EvalString(e.Item.DataItem, "Summary");

                if (departmentID > 0)
                {
                    ltlDepartment.Text = DepartmentManager.GetDepartmentName(departmentID);
                }
                ltlUserName.Text = userName;
                ltlAddDate.Text  = DateUtils.GetDateAndTimeString(addDate);
                ltlSummary.Text  = summary;
            }
        }
        private void RptContents_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem)
            {
                return;
            }

            var ltlIndex         = (Literal)e.Item.FindControl("ltlIndex");
            var ltlAddUserName   = (Literal)e.Item.FindControl("ltlAddUserName");
            var ltlAddDate       = (Literal)e.Item.FindControl("ltlAddDate");
            var ltlContentLength = (Literal)e.Item.FindControl("ltlContentLength");
            var ltlView          = (Literal)e.Item.FindControl("ltlView");

            var logId = SqlUtils.EvalInt(e.Item.DataItem, nameof(TemplateLogInfo.Id));

            ltlIndex.Text         = Convert.ToString(e.Item.ItemIndex + 1);
            ltlAddUserName.Text   = SqlUtils.EvalString(e.Item.DataItem, nameof(TemplateLogInfo.AddUserName));
            ltlAddDate.Text       = DateUtils.GetDateAndTimeString(SqlUtils.EvalDateTime(e.Item.DataItem, nameof(TemplateLogInfo.AddDate)));
            ltlContentLength.Text = SqlUtils.EvalInt(e.Item.DataItem, nameof(TemplateLogInfo.ContentLength)).ToString();
            ltlView.Text          =
                $@"<a href=""javascript:;"" onclick=""{ModalTemplateView.GetOpenWindowString(SiteId,
                    logId)}"">查看</a>";
        }
Exemple #3
0
 public UserInfo(object dataItem)
 {
     if (dataItem == null)
     {
         return;
     }
     Id                    = SqlUtils.EvalInt(dataItem, nameof(Id));
     UserName              = SqlUtils.EvalString(dataItem, nameof(UserName));
     Password              = SqlUtils.EvalString(dataItem, nameof(Password));
     PasswordFormat        = SqlUtils.EvalString(dataItem, nameof(PasswordFormat));
     PasswordSalt          = SqlUtils.EvalString(dataItem, nameof(PasswordSalt));
     CreateDate            = SqlUtils.EvalDateTime(dataItem, nameof(CreateDate));
     LastResetPasswordDate = SqlUtils.EvalDateTime(dataItem, nameof(LastResetPasswordDate));
     LastActivityDate      = SqlUtils.EvalDateTime(dataItem, nameof(LastActivityDate));
     CountOfLogin          = SqlUtils.EvalInt(dataItem, nameof(CountOfLogin));
     CountOfFailedLogin    = SqlUtils.EvalInt(dataItem, nameof(CountOfFailedLogin));
     CountOfWriting        = SqlUtils.EvalInt(dataItem, nameof(CountOfWriting));
     IsChecked             = SqlUtils.EvalBool(dataItem, nameof(IsChecked));
     IsLockedOut           = SqlUtils.EvalBool(dataItem, nameof(IsLockedOut));
     DisplayName           = SqlUtils.EvalString(dataItem, nameof(DisplayName));
     Email                 = SqlUtils.EvalString(dataItem, nameof(Email));
     Mobile                = SqlUtils.EvalString(dataItem, nameof(Mobile));
     AvatarUrl             = SqlUtils.EvalString(dataItem, nameof(AvatarUrl));
     Organization          = SqlUtils.EvalString(dataItem, nameof(Organization));
     Department            = SqlUtils.EvalString(dataItem, nameof(Department));
     Position              = SqlUtils.EvalString(dataItem, nameof(Position));
     Gender                = SqlUtils.EvalString(dataItem, nameof(Gender));
     Birthday              = SqlUtils.EvalString(dataItem, nameof(Birthday));
     Education             = SqlUtils.EvalString(dataItem, nameof(Education));
     Graduation            = SqlUtils.EvalString(dataItem, nameof(Graduation));
     Address               = SqlUtils.EvalString(dataItem, nameof(Address));
     WeiXin                = SqlUtils.EvalString(dataItem, nameof(WeiXin));
     Qq                    = SqlUtils.EvalString(dataItem, nameof(Qq));
     WeiBo                 = SqlUtils.EvalString(dataItem, nameof(WeiBo));
     Interests             = SqlUtils.EvalString(dataItem, nameof(Interests));
     Signature             = SqlUtils.EvalString(dataItem, nameof(Signature));
 }
Exemple #4
0
        void dgContents_ItemDataBound(object sender, DataGridItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                var keywordId  = SqlUtils.EvalInt(e.Item.DataItem, "KeywordId");
                var keywords   = SqlUtils.EvalString(e.Item.DataItem, "Keywords");
                var reply      = SqlUtils.EvalString(e.Item.DataItem, "Reply");
                var isDisabled = TranslateUtils.ToBool(SqlUtils.EvalString(e.Item.DataItem, "IsDisabled"));
                var matchType  = EMatchTypeUtils.GetEnumType(SqlUtils.EvalString(e.Item.DataItem, "MatchType"));
                var addDate    = SqlUtils.EvalDateTime(e.Item.DataItem, "AddDate");

                var ltlReply     = e.Item.FindControl("ltlReply") as Literal;
                var ltlAddDate   = e.Item.FindControl("ltlAddDate") as Literal;
                var ltlMatchType = e.Item.FindControl("ltlMatchType") as Literal;
                var ltlIsEnabled = e.Item.FindControl("ltlIsEnabled") as Literal;
                var hlUp         = e.Item.FindControl("hlUp") as HyperLink;
                var hlDown       = e.Item.FindControl("hlDown") as HyperLink;
                var ltlEditUrl   = e.Item.FindControl("ltlEditUrl") as Literal;
                var ltlDeleteUrl = e.Item.FindControl("ltlDeleteUrl") as Literal;

                ltlReply.Text     = StringUtils.CleanText(reply);
                ltlAddDate.Text   = DateUtils.GetDateString(addDate);
                ltlMatchType.Text = EMatchTypeUtils.GetText(matchType);
                ltlIsEnabled.Text = StringUtils.GetTrueOrFalseImageHtml(!isDisabled);

                var redirectUrl = GetRedirectUrl(PublishmentSystemId);

                hlUp.NavigateUrl   = $"{redirectUrl}&SetTaxis=True&KeywordId={keywordId}&Direction=UP";
                hlDown.NavigateUrl = $"{redirectUrl}&SetTaxis=True&KeywordId={keywordId}&Direction=DOWN";

                var showPopWinString = ModalKeywordAddText.GetOpenWindowStringToEdit(PublishmentSystemId, keywordId);
                ltlEditUrl.Text = $@"<a href=""javascript:;"" onClick=""{showPopWinString}"">修改</a>";

                ltlDeleteUrl.Text =
                    $@"<a href=""{redirectUrl}&Delete=True&KeywordID={keywordId}"" onClick=""javascript:return confirm('此操作将删除关键字“{keywords}”,确认吗?');"">删除</a>";
            }
        }
Exemple #5
0
        void dlContents_ItemDataBound(object sender, DataListItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                var imageUrl      = SqlUtils.EvalString(e.Item.DataItem, "ImageUrl");
                var largeImageUrl = SqlUtils.EvalString(e.Item.DataItem, "LargeImageUrl");

                var tbContentImageUrl = e.Item.FindControl("tbContentImageUrl") as TextBox;
                var ltlImageUrl       = e.Item.FindControl("ltlImageUrl") as Literal;

                if (string.IsNullOrEmpty(imageUrl))
                {
                    ltlImageUrl.Text = @"<i class=""appmsg_thumb default"">缩略图</i>";
                }
                else
                {
                    var previewImageClick = ModalMessage.GetOpenWindowStringToPreviewImage(PublishmentSystemId, tbContentImageUrl.ClientID);
                    tbContentImageUrl.Text = PageUtility.ParseNavigationUrl(PublishmentSystemInfo, largeImageUrl);
                    ltlImageUrl.Text       =
                        $@"<a  href=""javascript:;"" onclick=""{previewImageClick}""> <img class=""img-rounded"" style=""width:80px;"" src=""{PageUtility
                            .ParseNavigationUrl(PublishmentSystemInfo, imageUrl)}""> </a>";
                }
            }
        }
Exemple #6
0
        private void rptContents_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem)
            {
                return;
            }

            if (e.Item.DataItem == null)
            {
                return;
            }

            var id                 = SqlUtils.EvalInt(e.Item.DataItem, nameof(UserInfo.Id));
            var userName           = SqlUtils.EvalString(e.Item.DataItem, nameof(UserInfo.UserName));
            var createDate         = SqlUtils.EvalDateTime(e.Item.DataItem, nameof(UserInfo.CreateDate));
            var lastActivityDate   = SqlUtils.EvalDateTime(e.Item.DataItem, nameof(UserInfo.LastActivityDate));
            var countOfLogin       = SqlUtils.EvalInt(e.Item.DataItem, nameof(UserInfo.CountOfLogin));
            var countOfFailedLogin = SqlUtils.EvalInt(e.Item.DataItem, nameof(UserInfo.CountOfFailedLogin));
            var groupId            = SqlUtils.EvalInt(e.Item.DataItem, nameof(UserInfo.GroupId));
            var isChecked          = SqlUtils.EvalBool(e.Item.DataItem, nameof(UserInfo.IsChecked));
            var isLockedOut        = SqlUtils.EvalBool(e.Item.DataItem, nameof(UserInfo.IsLockedOut));
            var displayName        = SqlUtils.EvalString(e.Item.DataItem, nameof(UserInfo.DisplayName));
            var email              = SqlUtils.EvalString(e.Item.DataItem, nameof(UserInfo.Email));
            var mobile             = SqlUtils.EvalString(e.Item.DataItem, nameof(UserInfo.Mobile));

            var ltlUserName      = (Literal)e.Item.FindControl("ltlUserName");
            var ltlEmail         = (Literal)e.Item.FindControl("ltlEmail");
            var ltlMobile        = (Literal)e.Item.FindControl("ltlMobile");
            var ltlGroupName     = (Literal)e.Item.FindControl("ltlGroupName");
            var ltlLoginCount    = (Literal)e.Item.FindControl("ltlLoginCount");
            var ltlCreationDate  = (Literal)e.Item.FindControl("ltlCreationDate");
            var ltlSelect        = (Literal)e.Item.FindControl("ltlSelect");
            var hlChangePassword = (HyperLink)e.Item.FindControl("hlChangePassword");
            var hlEditLink       = (HyperLink)e.Item.FindControl("hlEditLink");

            var showPopWinString = ModalUserView.GetOpenWindowString(userName);
            var state            = isChecked ? string.Empty : @"<span style=""color:red;"">[待审核]</span>";

            if (isLockedOut)
            {
                state += @"<span style=""color:red;"">[已锁定]</span>";
            }
            else if (ConfigManager.SystemConfigInfo.IsUserLockLogin &&
                     ConfigManager.SystemConfigInfo.UserLockLoginCount <= countOfFailedLogin)
            {
                if (_lockType == EUserLockType.Forever)
                {
                    state += @"<span style=""color:red;"">[已锁定]</span>";
                }
                else
                {
                    var ts    = new TimeSpan(DateTime.Now.Ticks - lastActivityDate.Ticks);
                    var hours = Convert.ToInt32(ConfigManager.SystemConfigInfo.UserLockLoginHours - ts.TotalHours);
                    if (hours > 0)
                    {
                        state += $@"<span style=""color:red;"">[已锁定{hours}小时]</span>";
                    }
                }
            }

            ltlUserName.Text = $@"<a href=""javascript:;"" onclick=""{showPopWinString}"">{userName}</a> {state}";

            if (!string.IsNullOrEmpty(displayName))
            {
                ltlUserName.Text += $"({displayName})";
            }
            ltlEmail.Text        = email;
            ltlMobile.Text       = mobile;
            ltlGroupName.Text    = UserGroupManager.GetUserGroupInfo(groupId).GroupName;
            ltlLoginCount.Text   = countOfLogin.ToString();
            ltlCreationDate.Text = DateUtils.GetDateAndTimeString(createDate);

            hlEditLink.NavigateUrl = PageUserAdd.GetRedirectUrlToEdit(id, GetRedirectUrl());
            hlChangePassword.Attributes.Add("onclick", ModalUserPassword.GetOpenWindowString(userName));
            ltlSelect.Text = $@"<input type=""checkbox"" name=""UserIDCollection"" value=""{id}"" />";
        }
Exemple #7
0
        private void RptContents_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem)
            {
                return;
            }

            var templateId          = SqlUtils.EvalInt(e.Item.DataItem, nameof(TemplateInfo.Id));
            var templateType        = TemplateTypeUtils.GetEnumType(SqlUtils.EvalString(e.Item.DataItem, nameof(TemplateInfo.TemplateType)));
            var templateName        = SqlUtils.EvalString(e.Item.DataItem, nameof(TemplateInfo.TemplateName));
            var relatedFileName     = SqlUtils.EvalString(e.Item.DataItem, nameof(TemplateInfo.RelatedFileName));
            var createdFileFullName = SqlUtils.EvalString(e.Item.DataItem, nameof(TemplateInfo.CreatedFileFullName));
            var isDefault           = TranslateUtils.ToBool(SqlUtils.EvalString(e.Item.DataItem, nameof(TemplateInfo.IsDefault)));

            var ltlTemplateName    = (Literal)e.Item.FindControl("ltlTemplateName");
            var ltlRelatedFileName = (Literal)e.Item.FindControl("ltlRelatedFileName");
            var ltlFileName        = (Literal)e.Item.FindControl("ltlFileName");
            var ltlUseCount        = (Literal)e.Item.FindControl("ltlUseCount");
            var ltlTemplateType    = (Literal)e.Item.FindControl("ltlTemplateType");
            var ltlDefaultUrl      = (Literal)e.Item.FindControl("ltlDefaultUrl");
            var ltlCopyUrl         = (Literal)e.Item.FindControl("ltlCopyUrl");
            var ltlLogUrl          = (Literal)e.Item.FindControl("ltlLogUrl");
            var ltlCreateUrl       = (Literal)e.Item.FindControl("ltlCreateUrl");
            var ltlDeleteUrl       = (Literal)e.Item.FindControl("ltlDeleteUrl");

            var templateAddUrl = PageTemplateAdd.GetRedirectUrl(SiteId, templateId, templateType);

            ltlTemplateName.Text    = $@"<a href=""{templateAddUrl}"">{templateName}</a>";
            ltlRelatedFileName.Text = relatedFileName;

            if (templateType == TemplateType.IndexPageTemplate || templateType == TemplateType.FileTemplate)
            {
                var url = PageUtility.ParseNavigationUrl(SiteInfo, createdFileFullName, false);
                ltlFileName.Text = $"<a href='{url}' target='_blank'>{createdFileFullName}</a>";
            }

            ltlUseCount.Text = DataProvider.ChannelDao.GetTemplateUseCount(SiteId, templateId, templateType, isDefault).ToString();

            ltlTemplateType.Text = TemplateTypeUtils.GetText(templateType);

            if (templateType != TemplateType.FileTemplate)
            {
                if (isDefault)
                {
                    ltlDefaultUrl.Text = @"<span class=""badge badge-primary"">默认模板</span>";
                }
                else
                {
                    var defaultUrl = PageUtils.GetCmsUrl(SiteId, nameof(PageTemplate), new NameValueCollection
                    {
                        { "TemplateID", templateId.ToString() },
                        { "SetDefault", true.ToString() },
                        { "TemplateType", templateType.Value }
                    });
                    ltlDefaultUrl.Text =
                        $@"<a href=""{defaultUrl}"" onClick=""javascript:return confirm('此操作将把此模板设为默认,确认吗?');"">设为默认</a>";
                }
            }

            var copyUrl = PageTemplateAdd.GetRedirectUrlToCopy(SiteId, templateId);

            ltlCopyUrl.Text = $@"<a href=""{copyUrl}"">快速复制</a>";

            var logUrl = PageTemplateLog.GetRedirectUrl(SiteId, templateId);

            ltlLogUrl.Text = $@"<a href=""{logUrl}"">修订历史</a>";

            ltlCreateUrl.Text =
                $@"<a href=""javascript:;"" onclick=""{ModalProgressBar.GetOpenWindowStringWithCreateByTemplate(
                    SiteId, templateId)}"">生成页面</a>";

            if (!isDefault)
            {
                var deleteUrl = PageUtils.GetCmsUrl(SiteId, nameof(PageTemplate), new NameValueCollection
                {
                    { "TemplateID", templateId.ToString() },
                    { "Delete", true.ToString() },
                    { "TemplateType", templateType.Value }
                });

                ltlDeleteUrl.Text =
                    $@"<a href=""javascript:;"" onclick=""{AlertUtils.ConfirmDelete("删除文件", $"此操作将删除模板“{templateName}”,确认吗?", deleteUrl)}"">删除</a>";
            }
        }
        void dgContents_ItemDataBound(object sender, DataGridItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                var classCode = SqlUtils.EvalString(e.Item.DataItem, "ClassCode");
                var className = SqlUtils.EvalString(e.Item.DataItem, "ClassName");
                var isSystem  = TranslateUtils.ToBool(SqlUtils.EvalString(e.Item.DataItem, "IsSystem"));
                var isEnabled = TranslateUtils.ToBool(SqlUtils.EvalString(e.Item.DataItem, "IsEnabled"));

                var ltlClassName     = e.Item.FindControl("ltlClassName") as Literal;
                var ltlClassCode     = e.Item.FindControl("ltlClassCode") as Literal;
                var hlUpLinkButton   = e.Item.FindControl("hlUpLinkButton") as HyperLink;
                var hlDownLinkButton = e.Item.FindControl("hlDownLinkButton") as HyperLink;
                var ltlIsEnabled     = e.Item.FindControl("ltlIsEnabled") as Literal;
                var ltlEditUrl       = e.Item.FindControl("ltlEditUrl") as Literal;
                var ltlDeleteUrl     = e.Item.FindControl("ltlDeleteUrl") as Literal;

                if (!isSystem)
                {
                    ltlClassName.Text = $@"<a href=""{PageGovPublicCategory.GetRedirectUrl(PublishmentSystemId, classCode)}"" target=""category"">{className}分类</a>";
                }
                else if (EGovPublicCategoryClassTypeUtils.Equals(EGovPublicCategoryClassType.Channel, classCode))
                {
                    ltlClassName.Text = $@"<a href=""{PageGovPublicChannel.GetRedirectUrl(PublishmentSystemId)}"" target=""category"">{className}分类</a>";
                }
                else if (EGovPublicCategoryClassTypeUtils.Equals(EGovPublicCategoryClassType.Department, classCode))
                {
                    ltlClassName.Text = $@"<a href=""{PageDepartment.GetRedirectUrl(0)}"" target=""category"">{className}分类</a>";
                }

                ltlClassCode.Text = classCode;
                ltlIsEnabled.Text = StringUtils.GetTrueOrFalseImageHtml(isEnabled);

                hlUpLinkButton.NavigateUrl = PageUtils.GetWcmUrl(nameof(PageGovPublicCategoryClass),
                                                                 new NameValueCollection
                {
                    { "PublishmentSystemID", PublishmentSystemId.ToString() },
                    { "ClassCode", classCode },
                    { "Up", true.ToString() }
                });

                hlDownLinkButton.NavigateUrl = PageUtils.GetWcmUrl(nameof(PageGovPublicCategoryClass),
                                                                   new NameValueCollection
                {
                    { "PublishmentSystemID", PublishmentSystemId.ToString() },
                    { "ClassCode", classCode },
                    { "Down", true.ToString() }
                });

                ltlEditUrl.Text =
                    $@"<a href='javascript:;' onclick=""{ModalGovPublicCategoryClassAdd.GetOpenWindowStringToEdit(
                        PublishmentSystemId, classCode)}"">编辑</a>";

                if (!isSystem)
                {
                    var urlDelete = PageUtils.GetWcmUrl(nameof(PageGovPublicCategoryClass), new NameValueCollection
                    {
                        { "PublishmentSystemID", PublishmentSystemId.ToString() },
                        { "ClassCode", classCode },
                        { "Delete", true.ToString() }
                    });
                    ltlDeleteUrl.Text =
                        $@"<a href=""{urlDelete}"" onClick=""javascript:return confirm('此操作将删除分类法“{className}”及其分类项,确认吗?');"">删除</a>";
                }
            }
        }
Exemple #9
0
        private void DgContents_ItemDataBound(object sender, DataGridItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                var templateId          = SqlUtils.EvalInt(e.Item.DataItem, "TemplateID");
                var templateType        = ETemplateTypeUtils.GetEnumType(SqlUtils.EvalString(e.Item.DataItem, "TemplateType"));
                var templateName        = SqlUtils.EvalString(e.Item.DataItem, "TemplateName");
                var createdFileFullName = SqlUtils.EvalString(e.Item.DataItem, "CreatedFileFullName");
                var isDefault           = TranslateUtils.ToBool(SqlUtils.EvalString(e.Item.DataItem, "IsDefault"));

                var ltlTemplateName = (Literal)e.Item.FindControl("ltlTemplateName");
                var ltlFileName     = (Literal)e.Item.FindControl("ltlFileName");
                var ltlUseCount     = (Literal)e.Item.FindControl("ltlUseCount");
                var ltlTemplateType = (Literal)e.Item.FindControl("ltlTemplateType");
                var ltlDefaultUrl   = (Literal)e.Item.FindControl("ltlDefaultUrl");
                var ltlCopyUrl      = (Literal)e.Item.FindControl("ltlCopyUrl");
                var ltlLogUrl       = (Literal)e.Item.FindControl("ltlLogUrl");
                var ltlCreateUrl    = (Literal)e.Item.FindControl("ltlCreateUrl");
                var ltlDeleteUrl    = (Literal)e.Item.FindControl("ltlDeleteUrl");

                var templateAddUrl = PageTemplateAdd.GetRedirectUrl(PublishmentSystemId, templateId, templateType);
                ltlTemplateName.Text = $@"<a href=""{templateAddUrl}"">{templateName}</a>";

                if (templateType == ETemplateType.IndexPageTemplate || templateType == ETemplateType.FileTemplate)
                {
                    var url = PageUtility.ParseNavigationUrl(PublishmentSystemInfo, createdFileFullName);
                    ltlFileName.Text = $"<a href='{url}' target='_blank'>{createdFileFullName}</a>";
                }

                ltlUseCount.Text = DataProvider.TemplateDao.GetTemplateUseCount(PublishmentSystemId, templateId, templateType, isDefault).ToString();

                ltlTemplateType.Text = ETemplateTypeUtils.GetText(templateType);

                if (templateType != ETemplateType.FileTemplate)
                {
                    if (isDefault)
                    {
                        ltlDefaultUrl.Text = "默认模板";
                    }
                    else
                    {
                        var defaultUrl = PageUtils.GetCmsUrl(nameof(PageTemplate), new NameValueCollection
                        {
                            { "PublishmentSystemID", PublishmentSystemId.ToString() },
                            { "TemplateID", templateId.ToString() },
                            { "SetDefault", true.ToString() }
                        });
                        ltlDefaultUrl.Text =
                            $@"<a href=""{defaultUrl}"" onClick=""javascript:return confirm('此操作将把此模板设为默认,确认吗?');"">设为默认</a>";
                    }
                }

                var copyUrl = PageTemplateAdd.GetRedirectUrlToCopy(PublishmentSystemId, templateId);
                ltlCopyUrl.Text = $@"<a href=""{copyUrl}"">快速复制</a>";

                var logUrl = PageTemplateLog.GetRedirectUrl(PublishmentSystemId, templateId);
                ltlLogUrl.Text = $@"<a href=""{logUrl}"">修订历史</a>";

                ltlCreateUrl.Text =
                    $@"<a href=""javascript:;"" onclick=""{ModalProgressBar.GetOpenWindowStringWithCreateByTemplate(
                        PublishmentSystemId, templateId)}"">生成页面</a>";

                if (!isDefault)
                {
                    var deleteUrl = PageUtils.GetCmsUrl(nameof(PageTemplate), new NameValueCollection
                    {
                        { "PublishmentSystemID", PublishmentSystemId.ToString() },
                        { "TemplateID", templateId.ToString() },
                        { "Delete", true.ToString() }
                    });
                    ltlDeleteUrl.Text =
                        $@"<a href=""{deleteUrl}"" onClick=""javascript:return confirm('此操作将删除模板“{templateName}”,确认吗?');"">删除</a>";
                }
            }
        }
Exemple #10
0
        void rptContents_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                var keywordId  = SqlUtils.EvalInt(e.Item.DataItem, "KeywordId");
                var keywords   = SqlUtils.EvalString(e.Item.DataItem, "Keywords");
                var isDisabled = TranslateUtils.ToBool(SqlUtils.EvalString(e.Item.DataItem, "IsDisabled"));
                var reply      = SqlUtils.EvalString(e.Item.DataItem, "Reply");
                var matchType  = EMatchTypeUtils.GetEnumType(SqlUtils.EvalString(e.Item.DataItem, "MatchType"));
                var addDate    = SqlUtils.EvalDateTime(e.Item.DataItem, "AddDate");

                var phSingle   = e.Item.FindControl("phSingle") as PlaceHolder;
                var phMultiple = e.Item.FindControl("phMultiple") as PlaceHolder;

                var resourceInfoList = DataProviderWx.KeywordResourceDao.GetResourceInfoList(keywordId);

                phMultiple.Visible = resourceInfoList.Count > 1;
                phSingle.Visible   = !phMultiple.Visible;

                if (phSingle.Visible)
                {
                    var resourceInfo = new KeywordResourceInfo();
                    if (resourceInfoList.Count > 0)
                    {
                        resourceInfo = resourceInfoList[0];
                    }

                    var ltlSingleTitle     = e.Item.FindControl("ltlSingleTitle") as Literal;
                    var ltlSingleKeywords  = e.Item.FindControl("ltlSingleKeywords") as Literal;
                    var ltlSingleAddDate   = e.Item.FindControl("ltlSingleAddDate") as Literal;
                    var ltlSingleImageUrl  = e.Item.FindControl("ltlSingleImageUrl") as Literal;
                    var ltlSingleSummary   = e.Item.FindControl("ltlSingleSummary") as Literal;
                    var ltlSingleEditUrl   = e.Item.FindControl("ltlSingleEditUrl") as Literal;
                    var ltlSingleDeleteUrl = e.Item.FindControl("ltlSingleDeleteUrl") as Literal;

                    ltlSingleTitle.Text    = $@"<a href=""{"javascript:;"}"" target=""_blank"">{resourceInfo.Title}</a>";
                    ltlSingleKeywords.Text =
                        $@"{keywords + (isDisabled ? "(禁用)" : string.Empty)}&nbsp;<a href=""javascript:;"" onclick=""{ModalKeywordAddNews.GetOpenWindowStringToEdit(PublishmentSystemId, keywordId)}"">修改</a>";
                    ltlSingleAddDate.Text = addDate.ToShortDateString();
                    if (!string.IsNullOrEmpty(resourceInfo.ImageUrl))
                    {
                        ltlSingleImageUrl.Text =
                            $@"<img src=""{PageUtility.ParseNavigationUrl(PublishmentSystemInfo, resourceInfo.ImageUrl)}"" class=""appmsg_thumb"">";
                    }
                    ltlSingleSummary.Text = MPUtils.GetSummary(resourceInfo.Summary, resourceInfo.Content);
                    ltlSingleEditUrl.Text =
                        $@"<a class=""js_edit"" href=""{PageKeywordNewsAdd.GetRedirectUrl(PublishmentSystemId,
                            keywordId, resourceInfo.ResourceId, phSingle.Visible)}""><i class=""icon18_common edit_gray"">编辑</i></a>";
                    ltlSingleDeleteUrl.Text =
                        $@"<a class=""js_del no_extra"" href=""{GetRedirectUrl(
                            PublishmentSystemId)}&delete=true&keywordID={keywordId}"" onclick=""javascript:return confirm('此操作将删除图文回复“{keywords}”,确认吗?');""><i class=""icon18_common del_gray"">删除</i></a>";
                }
                else
                {
                    var resourceInfo = resourceInfoList[0];
                    resourceInfoList.Remove(resourceInfo);

                    var ltlMultipleKeywords  = e.Item.FindControl("ltlMultipleKeywords") as Literal;
                    var ltlMultipleAddDate   = e.Item.FindControl("ltlMultipleAddDate") as Literal;
                    var ltlMultipleTitle     = e.Item.FindControl("ltlMultipleTitle") as Literal;
                    var ltlMultipleImageUrl  = e.Item.FindControl("ltlMultipleImageUrl") as Literal;
                    var rptMultipleContents  = e.Item.FindControl("rptMultipleContents") as Repeater;
                    var ltlMultipleEditUrl   = e.Item.FindControl("ltlMultipleEditUrl") as Literal;
                    var ltlMultipleDeleteUrl = e.Item.FindControl("ltlMultipleDeleteUrl") as Literal;

                    ltlMultipleKeywords.Text =
                        $@"{keywords + (isDisabled ? "(禁用)" : string.Empty)}&nbsp;<a href=""javascript:;"" onclick=""{ModalKeywordAddNews.GetOpenWindowStringToEdit(PublishmentSystemId, keywordId)}"">修改</a>";

                    ltlMultipleAddDate.Text = addDate.ToShortDateString();
                    ltlMultipleTitle.Text   = $@"<a href=""{"javascript:;"}"" target=""_blank"">{resourceInfo.Title}</a>";
                    if (!string.IsNullOrEmpty(resourceInfo.ImageUrl))
                    {
                        ltlMultipleImageUrl.Text =
                            $@"<img src=""{PageUtility.ParseNavigationUrl(PublishmentSystemInfo, resourceInfo.ImageUrl)}"" class=""appmsg_thumb"">";
                    }

                    rptMultipleContents.DataSource     = resourceInfoList;
                    rptMultipleContents.ItemDataBound += rptMultipleContents_ItemDataBound;
                    rptMultipleContents.DataBind();

                    ltlMultipleEditUrl.Text =
                        $@"<a class=""js_edit"" href=""{PageKeywordNewsAdd.GetRedirectUrl(PublishmentSystemId,
                            keywordId, resourceInfo.ResourceId, phSingle.Visible)}""><i class=""icon18_common edit_gray"">编辑</i></a>";
                    ltlMultipleDeleteUrl.Text =
                        $@"<a class=""js_del no_extra"" href=""{GetRedirectUrl(
                            PublishmentSystemId)}&delete=true&keywordID={keywordId}"" onclick=""javascript:return confirm('此操作将删除图文回复“{keywords}”,确认吗?');""><i class=""icon18_common del_gray"">删除</i></a>";
                }
            }
        }
Exemple #11
0
        private void DgContents_ItemDataBound(object sender, DataGridItemEventArgs e)
        {
            if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem)
            {
                return;
            }

            var inputId   = SqlUtils.EvalInt(e.Item.DataItem, "InputID");
            var inputName = SqlUtils.EvalString(e.Item.DataItem, "InputName");
            var isChecked = SqlUtils.EvalBool(e.Item.DataItem, "IsChecked");
            var isIsReply = SqlUtils.EvalBool(e.Item.DataItem, "IsReply");

            var ltlTitle      = (Literal)e.Item.FindControl("ltlTitle");
            var ltlIsCheck    = (Literal)e.Item.FindControl("ltlIsCheck");
            var ltlIsReply    = (Literal)e.Item.FindControl("ltlIsReply");
            var ltlUpLink     = (Literal)e.Item.FindControl("ltlUpLink");
            var ltlDownLink   = (Literal)e.Item.FindControl("ltlDownLink");
            var ltlStyleUrl   = (Literal)e.Item.FindControl("ltlStyleUrl");
            var ltlPreviewUrl = (Literal)e.Item.FindControl("ltlPreviewUrl");
            var ltlEditUrl    = (Literal)e.Item.FindControl("ltlEditUrl");
            var ltlExportUrl  = (Literal)e.Item.FindControl("ltlExportUrl");
            var ltlDeleteUrl  = (Literal)e.Item.FindControl("ltlDeleteUrl");

            ltlTitle.Text   = $@"<a href=""{PageInputContent.GetRedirectUrl(PublishmentSystemId, inputName)}"">{inputName}</a>";
            ltlIsCheck.Text = StringUtils.GetTrueImageHtml(!isChecked);
            ltlIsReply.Text = StringUtils.GetTrueImageHtml(isIsReply);

            var urlUp = PageUtils.GetCmsUrl(nameof(PageInput), new NameValueCollection
            {
                { "PublishmentSystemID", PublishmentSystemId.ToString() },
                { "InputID", inputId.ToString() },
                { "Up", true.ToString() }
            });

            ltlUpLink.Text = $@"<a href=""{urlUp}""><img src=""../Pic/icon/up.gif"" border=""0"" alt=""上升"" /></a>";

            var urlDown = PageUtils.GetCmsUrl(nameof(PageInput), new NameValueCollection
            {
                { "PublishmentSystemID", PublishmentSystemId.ToString() },
                { "InputID", inputId.ToString() },
                { "Down", true.ToString() }
            });

            ltlDownLink.Text =
                $@"<a href=""{urlDown}""><img src=""../Pic/icon/down.gif"" border=""0"" alt=""下降"" /></a>";

            ltlStyleUrl.Text =
                $@"<a href=""{PageTableStyle.GetRedirectUrl(PublishmentSystemId, ETableStyle.InputContent,
                    DataProvider.InputContentDao.TableName, inputId)}"">表单字段</a>";

            ltlPreviewUrl.Text = $@"<a href=""{PageInputPreview.GetRedirectUrl(PublishmentSystemId, inputId, string.Empty)}"">预览</a>";

            ltlEditUrl.Text =
                $@"<a href=""javascript:;"" onclick=""{ModalInputAdd.GetOpenWindowStringToEdit(
                    PublishmentSystemId, inputId, false)}"">编辑</a>";

            ltlExportUrl.Text =
                $@"<a href=""javascript:;"" onclick=""{ModalExportMessage.GetOpenWindowStringToInput(
                    PublishmentSystemId, inputId)}"">导出</a>";

            var urlDelete = PageUtils.GetCmsUrl(nameof(PageInput), new NameValueCollection
            {
                { "PublishmentSystemID", PublishmentSystemId.ToString() },
                { "InputID", inputId.ToString() },
                { "Delete", true.ToString() }
            });

            ltlDeleteUrl.Text = $@"<a href=""{urlDelete}"" onClick=""javascript:return confirm('此操作将删除提交表单“{inputName}”及相关数据,确认吗?');"">删除</a> </ItemTemplate>";
        }
Exemple #12
0
        void rptContents_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                var ltlUserName  = (Literal)e.Item.FindControl("ltlUserName");
                var ltlAddDate   = (Literal)e.Item.FindControl("ltlAddDate");
                var ltlIpAddress = (Literal)e.Item.FindControl("ltlIPAddress");
                var ltlAction    = (Literal)e.Item.FindControl("ltlAction");
                var ltlSummary   = (Literal)e.Item.FindControl("ltlSummary");

                ltlUserName.Text  = SqlUtils.EvalString(e.Item.DataItem, "UserName");
                ltlAddDate.Text   = DateUtils.GetDateAndTimeString(SqlUtils.EvalDateTime(e.Item.DataItem, "AddDate"));
                ltlIpAddress.Text = SqlUtils.EvalString(e.Item.DataItem, "IPAddress");
                ltlAction.Text    = EUserActionTypeUtils.GetText(EUserActionTypeUtils.GetEnumType(SqlUtils.EvalString(e.Item.DataItem, "Action")));
                ltlSummary.Text   = SqlUtils.EvalString(e.Item.DataItem, "Summary");
            }
        }
Exemple #13
0
        private static void RptContents_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem)
            {
                return;
            }

            var ltlUserName  = (Literal)e.Item.FindControl("ltlUserName");
            var ltlAddDate   = (Literal)e.Item.FindControl("ltlAddDate");
            var ltlIpAddress = (Literal)e.Item.FindControl("ltlIpAddress");
            var ltlAction    = (Literal)e.Item.FindControl("ltlAction");
            var ltlSummary   = (Literal)e.Item.FindControl("ltlSummary");

            ltlUserName.Text  = SqlUtils.EvalString(e.Item.DataItem, nameof(UserLogInfo.UserName));
            ltlAddDate.Text   = DateUtils.GetDateAndTimeString(SqlUtils.EvalDateTime(e.Item.DataItem, nameof(UserLogInfo.AddDate)));
            ltlIpAddress.Text = SqlUtils.EvalString(e.Item.DataItem, nameof(UserLogInfo.IpAddress));
            ltlAction.Text    = EUserActionTypeUtils.GetText(EUserActionTypeUtils.GetEnumType(SqlUtils.EvalString(e.Item.DataItem, nameof(UserLogInfo.Action))));
            ltlSummary.Text   = SqlUtils.EvalString(e.Item.DataItem, nameof(UserLogInfo.Summary));
        }
Exemple #14
0
        void dgContents_ItemDataBound(object sender, DataGridItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                var tableMetadataId = SqlUtils.EvalInt(e.Item.DataItem, "TableMetadataID");
                var attributeName   = SqlUtils.EvalString(e.Item.DataItem, "AttributeName");
                var dataType        = SqlUtils.EvalString(e.Item.DataItem, "DataType");
                var dataLength      = SqlUtils.EvalInt(e.Item.DataItem, "DataLength");
                var isSystem        = SqlUtils.EvalString(e.Item.DataItem, "IsSystem");

                var ltlAttributeName = e.Item.FindControl("ltlAttributeName") as Literal;
                var ltlDisplayName   = e.Item.FindControl("ltlDisplayName") as Literal;
                var ltlIsVisible     = e.Item.FindControl("ltlIsVisible") as Literal;
                var ltlValidate      = e.Item.FindControl("ltlValidate") as Literal;
                var ltlDataType      = e.Item.FindControl("ltlDataType") as Literal;
                var ltlInputType     = e.Item.FindControl("ltlInputType") as Literal;
                var upLinkButton     = e.Item.FindControl("UpLinkButton") as HyperLink;
                var downLinkButton   = e.Item.FindControl("DownLinkButton") as HyperLink;
                var ltlStyle         = e.Item.FindControl("ltlStyle") as Literal;
                var ltlEditValidate  = e.Item.FindControl("ltlEditValidate") as Literal;
                var ltlEditUrl       = e.Item.FindControl("ltlEditUrl") as Literal;
                var ltlDeleteUrl     = e.Item.FindControl("ltlDeleteUrl") as Literal;

                var showPopWinString = ModalTableMetadataView.GetOpenWindowString(_tableType, _tableName, attributeName);
                ltlAttributeName.Text =
                    $"<a href=\"javascript:void 0;\" onClick=\"{showPopWinString}\">{attributeName}</a>";

                var styleInfo = TableStyleManager.GetTableStyleInfo(EAuxiliaryTableTypeUtils.GetTableStyle(_tableType), _tableName, attributeName, null);
                ltlDisplayName.Text = styleInfo.DisplayName;

                ltlIsVisible.Text = StringUtils.GetTrueOrFalseImageHtml(styleInfo.IsVisible.ToString());
                ltlValidate.Text  = EInputValidateTypeUtils.GetValidateInfo(styleInfo);

                ltlDataType.Text  = EDataTypeUtils.GetTextByAuxiliaryTable(EDataTypeUtils.GetEnumType(dataType), dataLength);
                ltlInputType.Text = EInputTypeUtils.GetText(EInputTypeUtils.GetEnumType(styleInfo.InputType));

                if (IsSystem(isSystem))
                {
                    if (upLinkButton != null)
                    {
                        upLinkButton.NavigateUrl = PageUtils.GetSysUrl(nameof(PageTableMetadata),
                                                                       new NameValueCollection
                        {
                            { "PublishmentSystemID", PublishmentSystemId.ToString() },
                            { "SetTaxis", "True" },
                            { "TableStyleID", styleInfo.TableStyleId.ToString() },
                            { "Direction", "UP" },
                            { "TableMetadataId", tableMetadataId.ToString() },
                            { "ENName", _tableName },
                            { "TableType", EAuxiliaryTableTypeUtils.GetValue(_tableType) }
                        });
                    }
                    if (downLinkButton != null)
                    {
                        downLinkButton.NavigateUrl = PageUtils.GetSysUrl(nameof(PageTableMetadata),
                                                                         new NameValueCollection
                        {
                            { "PublishmentSystemID", PublishmentSystemId.ToString() },
                            { "SetTaxis", "True" },
                            { "TableStyleID", styleInfo.TableStyleId.ToString() },
                            { "Direction", "DOWN" },
                            { "TableMetadataId", tableMetadataId.ToString() },
                            { "ENName", _tableName },
                            { "TableType", EAuxiliaryTableTypeUtils.GetValue(_tableType) }
                        });
                    }
                }

                ltlStyle.Text = GetEditStyleHtml(tableMetadataId, attributeName);

                showPopWinString     = ModalTableStyleValidateAdd.GetOpenWindowString(styleInfo.TableStyleId, _tableName, styleInfo.AttributeName, EAuxiliaryTableTypeUtils.GetTableStyle(_tableType), _redirectUrl);
                ltlEditValidate.Text = $"<a href=\"javascript:void 0;\" onClick=\"{showPopWinString}\">设置</a>";

                ltlEditUrl.Text = GetEditHtml(isSystem, tableMetadataId);

                if (!IsSystem(isSystem))
                {
                    var attributes = new NameValueCollection
                    {
                        { "Delete", true.ToString() },
                        { "TableMetadataID", tableMetadataId.ToString() }
                    };
                    var deleteUrl = PageUtils.AddQueryString(_redirectUrl, attributes);
                    ltlDeleteUrl.Text =
                        $@"<a href=""{deleteUrl}"" onClick=""javascript:return confirm('此操作将删除辅助字段“{attributeName}”,确认吗?');"">删除字段</a>";
                }
            }
        }
Exemple #15
0
 public UserInfo(object dataItem)
 {
     if (dataItem == null)
     {
         return;
     }
     UserId                = SqlUtils.EvalInt(dataItem, "UserID");
     UserName              = SqlUtils.EvalString(dataItem, "UserName");
     Password              = SqlUtils.EvalString(dataItem, "Password");
     PasswordFormat        = SqlUtils.EvalString(dataItem, "PasswordFormat");
     PasswordSalt          = SqlUtils.EvalString(dataItem, "PasswordSalt");
     GroupId               = SqlUtils.EvalInt(dataItem, "GroupID");
     CreateDate            = SqlUtils.EvalDateTime(dataItem, "CreateDate");
     LastResetPasswordDate = SqlUtils.EvalDateTime(dataItem, "LastResetPasswordDate");
     LastActivityDate      = SqlUtils.EvalDateTime(dataItem, "LastActivityDate");
     CountOfLogin          = SqlUtils.EvalInt(dataItem, "CountOfLogin");
     CountOfFailedLogin    = SqlUtils.EvalInt(dataItem, "CountOfFailedLogin");
     CountOfWriting        = SqlUtils.EvalInt(dataItem, "CountOfWriting");
     IsChecked             = SqlUtils.EvalBool(dataItem, "IsChecked");
     IsLockedOut           = SqlUtils.EvalBool(dataItem, "IsLockedOut");
     DisplayName           = SqlUtils.EvalString(dataItem, "DisplayName");
     Email               = SqlUtils.EvalString(dataItem, "Email");
     Mobile              = SqlUtils.EvalString(dataItem, "Mobile");
     AvatarUrl           = SqlUtils.EvalString(dataItem, "AvatarUrl");
     Organization        = SqlUtils.EvalString(dataItem, "Organization");
     Department          = SqlUtils.EvalString(dataItem, "Department");
     Position            = SqlUtils.EvalString(dataItem, "Position");
     Gender              = SqlUtils.EvalString(dataItem, "Gender");
     Birthday            = SqlUtils.EvalString(dataItem, "Birthday");
     Education           = SqlUtils.EvalString(dataItem, "Education");
     Graduation          = SqlUtils.EvalString(dataItem, "Graduation");
     Address             = SqlUtils.EvalString(dataItem, "Address");
     WeiXin              = SqlUtils.EvalString(dataItem, "WeiXin");
     Qq                  = SqlUtils.EvalString(dataItem, "QQ");
     WeiBo               = SqlUtils.EvalString(dataItem, "WeiBo");
     Interests           = SqlUtils.EvalString(dataItem, "Interests");
     Signature           = SqlUtils.EvalString(dataItem, "Signature");
     PositiveEnergyValue = SqlUtils.EvalInt(dataItem, "PositiveEnergyValue");
     FlowPartyMember     = SqlUtils.EvalInt(dataItem, "FlowPartyMember");
     PublishmentSystemId = SqlUtils.EvalInt(dataItem, "PublishmentSystemId");
     //public int UserId { get; set; }
     //public string TelePhone { get; set; }
     //public string EmergencyName { get; set; }
     //public string EmergencyMobile { get; set; }
     //public string EmergencyRalationShip { get; set; }
     //public string PostalAddress { get; set; }
     //public string ExtraContactWay { get; set; }
     //public string PersonalSatus { get; set; }
     //public string Education { get; set; }
     //public string Degree { get; set; }
     //public string WorkTime { get; set; }
     //public string FirstSituation { get; set; }
     //public string NewStratum { get; set; }
     //public string TechnicalPost { get; set; }
     //public string WorkPlace { get; set; }
     //public string WorkAttribute { get; set; }
     //public string EnterPriseType { get; set; }
     //public string EnterPriseScale { get; set; }
     //public string MediumOrganizationType { get; set; }
     //public DateTime JoinPartyTime { get; set; }
     //public DateTime JoinTime { get; set; }
     //public DateTime ApplyJoinPartyTime { get; set; }
     //public DateTime ConfirmActiveTime { get; set; }
     //public DateTime ConversionTime { get; set; }
     //public DateTime GoOutTime { get; set; }
     //public DateTime GoOutIssuingTime { get; set; }
     //public string GoOutPlace { get; set; }
     //public string GoOutReason { get; set; }
     //public string PartyMemberAdd { get; set; }
     //public DateTime PartyMemberAddTime { get; set; }
     //public string HomeAddress { get; set; }
     //public string Resume { get; set; }
     //public string Remarks { get; set; }
     Additional.UserId                 = SqlUtils.EvalInt(dataItem, "UserID");
     Additional.TelePhone              = SqlUtils.EvalString(dataItem, "TelePhone");
     Additional.EmergencyName          = SqlUtils.EvalString(dataItem, "EmergencyName");
     Additional.EmergencyMobile        = SqlUtils.EvalString(dataItem, "EmergencyMobile");
     Additional.EmergencyRalationShip  = SqlUtils.EvalString(dataItem, "EmergencyRalationShip");
     Additional.PostalAddress          = SqlUtils.EvalString(dataItem, "PostalAddress");
     Additional.ExtraContactWay        = SqlUtils.EvalString(dataItem, "ExtraContactWay");
     Additional.PersonalSatus          = SqlUtils.EvalString(dataItem, "PersonalSatus");
     Additional.Education              = SqlUtils.EvalString(dataItem, "Education");
     Additional.Degree                 = SqlUtils.EvalString(dataItem, "Degree");
     Additional.WorkTime               = SqlUtils.EvalString(dataItem, "WorkTime");
     Additional.NewStratum             = SqlUtils.EvalString(dataItem, "NewStratum");
     Additional.TechnicalPost          = SqlUtils.EvalString(dataItem, "TechnicalPost");
     Additional.WorkPlace              = SqlUtils.EvalString(dataItem, "WorkPlace");
     Additional.WorkAttribute          = SqlUtils.EvalString(dataItem, "WorkAttribute");
     Additional.EnterPriseType         = SqlUtils.EvalString(dataItem, "EnterPriseType");
     Additional.EnterPriseScale        = SqlUtils.EvalString(dataItem, "EnterPriseScale");
     Additional.MediumOrganizationType = SqlUtils.EvalString(dataItem, "MediumOrganizationType");
     Additional.JoinPartyTime          = SqlUtils.EvalString(dataItem, "JoinPartyTime");
     Additional.JoinTime               = SqlUtils.EvalString(dataItem, "JoinTime");
     Additional.ApplyJoinPartyTime     = SqlUtils.EvalString(dataItem, "ApplyJoinPartyTime");
     Additional.ConfirmActiveTime      = SqlUtils.EvalString(dataItem, "ConfirmActiveTime");
     Additional.ConversionTime         = SqlUtils.EvalString(dataItem, "ConversionTime");
     Additional.GoOutTime              = SqlUtils.EvalString(dataItem, "GoOutTime");
     Additional.GoOutIssuingTime       = SqlUtils.EvalString(dataItem, "GoOutIssuingTime");
     Additional.GoOutPlace             = SqlUtils.EvalString(dataItem, "GoOutPlace");
     Additional.GoOutReason            = SqlUtils.EvalString(dataItem, "GoOutReason");
     Additional.PartyMemberAdd         = SqlUtils.EvalString(dataItem, "PartyMemberAdd");
     Additional.PartyMemberAddTime     = SqlUtils.EvalString(dataItem, "PartyMemberAddTime");
     Additional.HomeAddress            = SqlUtils.EvalString(dataItem, "HomeAddress");
     Additional.Resume                 = SqlUtils.EvalString(dataItem, "Resume");
     Additional.Remarks                = SqlUtils.EvalString(dataItem, "Remarks");
 }