示例#1
0
        protected void ResetListOnTenantChange(BocList list)
        {
            ArgumentUtility.CheckNotNull("list", list);

            if (HasTenantChanged)
            {
                CurrentFunction.Reset();
                list.LoadUnboundValue(GetValues(), false);
            }
        }
示例#2
0
        protected void HandleNewButtonClick(BocList sender)
        {
            ArgumentUtility.CheckNotNull("sender", sender);

            if (!Page.IsReturningPostBack)
            {
                var editUserFormFunction = CreateEditFunction(WxeTransactionMode.CreateRootWithAutoCommit, null);
                Page.ExecuteFunction(editUserFormFunction, WxeCallArguments.Default);
            }
            else
            {
                if (!((FormFunction <T>)Page.ReturningFunction).HasUserCancelled)
                {
                    CurrentFunction.Reset();
                    sender.LoadUnboundValue(GetValues(), false);
                }
            }
        }