报销单确认付款个性化非空校验

by zhaigang 2012.5.9 18:39

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

前一段时间,客户要求把报销单确认付款单放开个性化。结果放开了,个性化非空校验没有校验。

后来跟代码发现问题了。UBF生成代码时,只是对单据保存、提交、审核和弃审进行个性化校验。

后来报销单确认付款时,自己添加校验。个性化非空校验可以校验了。

//平台生成代码时,保存时调用校验方法
private void BtnSave_Click_DefaultImpl(object sender, EventArgs e)
        {
			if (adjust.DoRequireCheck())
			{
			//Template (tpl) Code here...
			//加入{action.Name}的代码模版:.\UITpls\WebPart\ViewCodeBehindCommon.tpl,参数:SaveClick

	
		Action.SaveClick(sender,new UIActionEventArgs());

		
			

			}
        }
//报销单确认付款时,添加相关校验方法
private void OnPayOK_Click_Extend(object sender, EventArgs e)
		{
			//调用模版提供的默认实现.--默认实现可能会调用相应的Action.
            if (adjust.DoRequireCheck())
            {
                OnPayOK_Click_DefaultImpl(sender, e);
            }
		}
以上只是我开发中遇到的一些问题,仅供参考。

Tags:

F财务

评论 (2) -

cheap skechers shoes 美国 wrote at 2017/5/16 8:33:47 #

great put up, very informative. I ponder why the other experts of this sector do not understand this. You must proceed your writing. I am confident, you have a huge readers' base already!

gold price 美国 wrote at 2018/12/4 19:24:26 #

Furthermore, if Europe's weak economy doesn't recover within the next 12 months, the banks borrowing the bucks may not be able to pay it back.  Although the advertisements may exaggerate the values and safety somewhat, they're fundamentally legit: you'll receive handsome compensation for your old gold jewelry.  You may not always obtain the exact worth from the gold you use, nevertheless, you shouldn't feel you've got to disappear after being low-balled.

添加评论



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


RecentComments

评论 RSS

Statistics

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