批量修改参照类型弹性域示例

by daiping 2017.1.6 16:04

注:脚本执行有风险,对于客户正式环境请在研发指导下执行。

grid批量修改参照类型弹性域代码示例:

 string srcColumnField = e.Values[0].FieldID;  //事件的触发列
                                  ///e.Values中已经包含参照携带的字段
                    foreach (UFSoft.UBF.UI.Engine.Runtime.GridEdit.EditItem item in e.Values)
                    {

if (srcColumnField.Contains("DescFlexSegments_PubDescSeg"))
                            {
                                if (item.RefValues != null && item.RefValues.Count > 0)
                                {
                                    string sDesc = srcColumnField.Substring(0, srcColumnField.IndexOf("_ID"));
                                    tRecord[sDesc] = item.Value;

                                    lineRecord.SetValue(sDesc + "_ID", item.Value);

                                    if (item.RefValues.ContainsKey("Code"))
                                    {
                                        lineRecord.SetValue(sDesc, item.RefValues["Code"]);
                                    }
                                    if (item.RefValues.ContainsKey("Name"))
                                    {
                                        lineRecord.SetValue(sDesc + "_Name", item.RefValues["Name"]);
                                    }
                                }
                                else
                                {
                                    tRecord[srcColumnField] = item.Value;
                                }

                            }

Tags:

评论 (8) -

girl cam 美国 wrote at 2017/3/17 20:13:14 #

It's about skirts so short that they come with a government health warning. A good deal of the controversy around astrology would appear to be based on a lack of awareness of the laws that lie within it. If she feels treasured as a woman and spouse and earn her trust, she will be able to reach orgasm easily.  my website  girl cam - www.panxiaoyun95519.com/.../index.php

NO Max Shred Ingredients 美国 wrote at 2017/3/19 23:53:05 #

Hi there! Someone in my Facebook group shared this website with us so I came to give it a look. I'm definitely loving the information. I'm bookmarking and will be tweeting this to my followers! Superb blog and outstanding style and design.  Here is my website ...  NO Max Shred Ingredients - http://nomaxshredtrial.com/no-max-shred-benefits/

Novella 美国 wrote at 2017/3/20 2:06:44 #

Woh I  your content, bookmarked!  Feel free to surf to my blog post: NO Max Shred Reviews ( Novella - nomaxshredtrial.com/no-max-shred-ingredients/ )

Lifetime.Hosting 2 demo review 美国 wrote at 2017/3/26 6:11:43 #

In this chapter, we're going to walk you through how the content publishing world works.

Soci Hub demo product 美国 wrote at 2017/3/26 6:58:52 #

BizMaC 美国 wrote at 2017/4/18 4:52:08 #

I think the admin of this site is really working hard in support of his web site, for the reason that here every data is quality based information.

Cheap Nike Air Max 美国 wrote at 2017/4/18 10:12:21 #

Thanks for a marvelous posting! I really enjoyed reading it, you can be a great author. I will always bookmark your blog and may come back someday. I want to encourage yourself to continue your great work, have a nice weekend!

willettebroekemeier.wordpress.com 美国 wrote at 2017/5/20 5:18:38 #

Your style is unique compared to other folks I have read stuff from. I appreciate you for posting when you have the opportunity, Guess I will just bookmark this web site.

添加评论



biuquote
微笑得意调皮害羞酷大笑惊讶发呆喜欢可怜尴尬闭嘴噘嘴皱眉伤心抓狂呕吐坏笑漫骂发怒
Loading


RecentComments

评论 RSS

Statistics

989 篇文章
0 个单页
652922 条评论
11 次评分
248915 次访问
访问统计开始于 2019年12月15日
平均日访问 5531 次
当前 105 人在线