门户财务部分开发

by limingk 2015.7.9 16:08

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

客户门户和供应商门户对应的缩写分别是SP和VP

其中客户门户有应收对账单,供应商门户有应付对账单和新加的应付单、付款单、应付余额

这几个界面在菜单配置时都加了页面参数,比如供应商门户的都是SuppPortal=1

在前台页面调用的时候用以下条件来判断是否为门户调用

if (this.CurrentPart.NameValues["SuppPortal"] != null && this.CurrentPart.NameValues["SuppPortal"].ToString() == "1")//供应商门户调用

在代码编写时可以通过PlatformContext.Current[PlatformContext.SUPPLIER_ID].ToString()来获取当前登录的供应商

另外由于登录的组织为供应商门户,所以在页面AfterCreateChildControls时需要把当前组织切换为供应商门户对应的所属组织,代码如下

                string opid = PlatformContext.Current[PlatformContext.OPERATINGORG_ID].ToString();
                string orgid = PlatformContext.Current[PlatformContext.ORG_ID].ToString();

                if (opid != orgid)
                    ((PageBase)this.Page).ChangeCurrentOrg(opid);

 

Tags:

F财务

评论 (12) -

Oakley Romeo 美国 wrote at 2015/8/5 19:58:00 #

This is my first time pay a visit at here and i am really pleassant to read everthing at one place.

learn italian book 美国 wrote at 2015/8/5 21:46:03 #

Ahaa, its nice discussion on the topic of this article at this place at this weblog, I have read all that, so now me also commenting at this place.

Emmett 美国 wrote at 2016/2/12 5:16:11 #

Heya are using Wordpress for your site platform? I'm new to the blog world but I'm trying to get started and create my own. Do you need any html coding expertise to make your own blog? Any help would be really appreciated!

self storage gold iras 美国 wrote at 2016/2/15 23:42:39 #

I simply could not depart your site before suggesting that I extremely loved the standard information an individual provide to your guests? Is gonna be again regularly in order to check out new posts

Lucy 美国 wrote at 2016/2/17 18:32:15 #

Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

standrewscricketclub.co.uk 美国 wrote at 2016/2/20 12:07:57 #

Simply wish to say your article is as astonishing. The clearness to your publish is simply nice and i can assume you're an expert on this subject. Fine together with your permission let me to seize your RSS feed to keep updated with drawing close post. Thank you a million and please carry on the gratifying work.

Eden 美国 wrote at 2016/2/22 6:56:48 #

Awesome blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple adjustements would really make my blog stand out. Please let me know where you got your design. Bless you

Virgil 美国 wrote at 2016/2/23 16:35:29 #

Hello there,  You have done a fantastic job. I will certainly digg it and personally suggest to my friends. I'm confident they will be benefited from this website.

stay debt free 美国 wrote at 2016/3/23 1:10:44 #

What i don't understood is if truth be told how you are no longer really a lot more smartly-preferred than you might be now. You are so intelligent. You realize thus considerably with regards to this subject, made me personally believe it from a lot of varied angles. Its like men and women are not fascinated except it's something to do with Girl gaga! Your own stuffs outstanding. At all times maintain it up!

auto tech news 美国 wrote at 2016/5/5 18:50:41 #

I'm not sure where you're getting your information, but great topic. I needs to spend some time learning much more or understanding more. Thanks for fantastic info I was looking for this info for my mission.

latest soccer news 美国 wrote at 2016/8/2 17:11:32 #

Appreciate it! A lot of material.

latest soccer news 美国 wrote at 2016/8/2 17:12:59 #

Very good content, Appreciate it!

添加评论



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


RecentComments

评论 RSS

Statistics

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