private void ProcessText()
        {
            String input = txtText.Content.ToString();

            String newOutPut = String.Empty;

            String fe = SqlExpressionBuilder.PrepareFilterExpression(CRMAgreementVariableMapEntity.FLD_NAME_AgreementID, OverviewAgreementID.ToString(), SQLMatchType.Equal);
            IList <CRMAgreementVariableMapEntity> cRMAgreementVariableMapList = FCCCRMAgreementVariableMap.GetFacadeCreate().GetIL(null, null, String.Empty, fe, DatabaseOperationType.LoadWithFilterExpression);

            if (cRMAgreementVariableMapList != null && cRMAgreementVariableMapList.Count > 0)
            {
                foreach (CRMAgreementVariableMapEntity ent in cRMAgreementVariableMapList)
                {
                    newOutPut = MiscUtil.ReplaceFullWords(input, ent.Name, ent.Value.ToString());
                    input     = newOutPut;
                }
            }

            if (newOutPut.IsNotNullOrEmpty())
            {
                lblTextView.Text = newOutPut;
            }
            else
            {
                lblTextView.Text = input;
            }
        }
Esempio n. 2
0
        protected void odsCRMAgreementVariableMap_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
        {
            String fe = SqlExpressionBuilder.PrepareFilterExpression(CRMAgreementVariableMapEntity.FLD_NAME_AgreementID, OverviewAgreementID.ToString(), SQLMatchType.Equal);

            if (chbxFilter.Checked)
            {
                String fe1 = SqlExpressionBuilder.PrepareFilterExpression(CRMAgreementVariableMapEntity.FLD_NAME_Name, txtSearchText.Text.ToString(), SQLMatchType.LikeWithBothMath);
                String fe2 = SqlExpressionBuilder.PrepareFilterExpression(CRMAgreementVariableMapEntity.FLD_NAME_Value, txtSearchText.Text.ToString(), SQLMatchType.LikeWithBothMath);
                String fe3 = SqlExpressionBuilder.PrepareFilterExpression(fe1, SQLJoinType.OR, fe2);
                fe = SqlExpressionBuilder.PrepareFilterExpression(fe, SQLJoinType.AND, fe3);
            }

            e.InputParameters["filterExpression"] = fe;
        }
        private void PrepareInitialView()
        {
            BuildDropDownList();

            txtAgreementDate.Text = String.Empty;
            txtSignDate.Text      = String.Empty;
            txtExecuteDate.Text   = String.Empty;
            txtWizardRemarks.Text = String.Empty;

            hypAgreementVariableMap.NavigateUrl = UrlHelper.BuildSecureUrl("~/CRM/CRMAgreementVariableMap.aspx", String.Empty, UrlConstants.OVERVIEW_AGREEMENT_ID, OverviewAgreementID.ToString()).ToString();
            hypAgreementVariableMap.Target      = "_blank";

            #region Approval

            lvAPMemberFeedbackRemarks.DataSource = APRobot.GetMemberFeedbackRemarks_DetailedByApprovalProcessID(APApprovalProcessID);
            lvAPMemberFeedbackRemarks.DataBind();

            EnableDisableApprovalButtons();

            #endregion
        }
        protected void odsCRMAgreementSpecs_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
        {
            String fe = SqlExpressionBuilder.PrepareFilterExpression(CRMAgreementSpecsEntity.FLD_NAME_AgreementID, OverviewAgreementID.ToString(), SQLMatchType.Equal);

            e.InputParameters["filterExpression"] = fe;
        }