コード例 #1
0
    private void UserColumn(GridView gridView)
    {
        bool defaultValue = false;

        LPWeb.Model.UserPipelineColumns modUPC = null;
        try
        {
            if (_curLoginUser != null)
            {
                modUPC = _bllUPC.GetModel(_curLoginUser.iUserID);
            }
        }
        catch (Exception exception)
        {
            LPLog.LogMessage(exception.Message);
        }



        gridView.Columns[3].Visible = modUPC == null ? !defaultValue : modUPC.PercentCompl;
        gridView.Columns[4].Visible = modUPC == null ? !defaultValue : modUPC.EstimatedClose;
        //5 alert icon
        gridView.Columns[6].Visible = modUPC == null ? !defaultValue : modUPC.LoanOfficer;

        gridView.Columns[7].Visible  = modUPC == null ? !defaultValue : modUPC.Amount;
        gridView.Columns[8].Visible  = modUPC == null ? !defaultValue : modUPC.Lien;
        gridView.Columns[9].Visible  = modUPC == null ? !defaultValue : modUPC.Rate;
        gridView.Columns[10].Visible = modUPC == null ? defaultValue : modUPC.Lender;
        gridView.Columns[11].Visible = modUPC == null ? defaultValue : modUPC.LockExp;
        gridView.Columns[12].Visible = modUPC == null ? defaultValue : modUPC.Branch;

        gridView.Columns[13].Visible = modUPC == null ? defaultValue : modUPC.Processor;
        gridView.Columns[14].Visible = modUPC == null ? defaultValue : modUPC.TaskCount;
        gridView.Columns[15].Visible = modUPC == null ? defaultValue : modUPC.PointFolder;
        gridView.Columns[16].Visible = modUPC == null ? defaultValue : modUPC.PointFileName;
    }
コード例 #2
0
ファイル: ExportPipeline.aspx.cs プロジェクト: PulseCRM/Pulse
        private List <string> ShowColumns()
        {
            BLL.UserPipelineColumns upcBll = new UserPipelineColumns();

            Model.UserPipelineColumns model = upcBll.GetModel(this.CurrUser.iUserID);

            List <string> ShowColumnsList = new List <string>();

            #region ShowColumns
            ShowColumnsList.Add("Borrower");

            if (model.Alerts)
            {
                ShowColumnsList.Add("Alerts"); //显示什么内容 数据库中仅有图标
            }

            if (model.Amount)
            {
                ShowColumnsList.Add("Amount");
            }

            if (model.Assistant)
            {
                ShowColumnsList.Add("Assistant");
            }
            if (model.Branch)
            {
                ShowColumnsList.Add("Branch");
            }
            if (model.Closer)
            {
                ShowColumnsList.Add("Closer");
            }
            if (model.DocPrep)
            {
                ShowColumnsList.Add("DocPrep");
            }
            if (model.EstimatedClose)
            {
                ShowColumnsList.Add("EstClose");
            }
            if (model.LastCompletedStage)
            {
                ShowColumnsList.Add("LastCompletedStage");
            }
            if (model.LastStageComplDate)
            {
                ShowColumnsList.Add("LastStageComplDate");
            }
            if (model.Lender)
            {
                ShowColumnsList.Add("Lender");
            }
            if (model.Lien)
            {
                ShowColumnsList.Add("Lien");
            }
            if (model.LoanOfficer)
            {
                ShowColumnsList.Add("Loan Officer");
            }
            if (model.LockExp)
            {
                ShowColumnsList.Add("Lock Expiration Date");
            }
            if (model.PercentCompl)
            {
                ShowColumnsList.Add("Progress");
            }
            if (model.PointFileName)
            {
                ShowColumnsList.Add("Filename");
            }
            if (model.PointFolder)
            {
                ShowColumnsList.Add("Point Folder");
            }
            if (model.Processor)
            {
                ShowColumnsList.Add("Processor");
            }
            if (model.Rate)
            {
                ShowColumnsList.Add("Rate");
            }
            if (model.Shipper)
            {
                ShowColumnsList.Add("Shipper");
            }
            if (model.Stage)
            {
                ShowColumnsList.Add("Stage");
            }
            if (model.TaskCount)
            {
                ShowColumnsList.Add("Task Count");
            }

            #endregion

            return(ShowColumnsList);
        }