/// <summary>
 /// LoadByFmTypeDisplayId
 /// </summary>
 /// <param name="fmType">fmType</param>
 /// <param name="companyId">companyId</param>
 /// <param name="displayId">displayId</param>
 public void LoadByFmTypeDisplayId(string fmType, int companyId, int displayId)
 {
     FmTypeViewDisplayGateway columnsToDisplayGateway = new FmTypeViewDisplayGateway(Data);
     columnsToDisplayGateway.LoadByFmTypeDisplayId(fmType, companyId, displayId);
 }
Пример #2
0
        /// <summary>
        /// GetColumnsToDisplayForViews
        /// </summary>
        /// <param name="viewId">viewId</param>
        /// <param name="fmType">fmType</param>
        /// <param name="companyId">companyId</param>
        /// <returns>columnsToDisplay</returns>
        public string GetColumnsToDisplayForViews(int viewId, string fmType, int companyId)
        {
            FmViewDisplayGateway fmViewDisplayGateway = new FmViewDisplayGateway(Data);
            fmViewDisplayGateway.LoadByViewIdFmType(viewId, fmType, companyId);

            string columnsToDisplay = "";

            foreach (FmViewTDS.LFS_FM_VIEW_DISPLAYRow row in (FmViewTDS.LFS_FM_VIEW_DISPLAYDataTable)Table)
            {
                if ((row.FmType == fmType) && (row.COMPANY_ID == companyId) && (row.ViewID == viewId))
                {
                    FmTypeViewDisplayGateway fmTypeViewDisplayGateway = new FmTypeViewDisplayGateway();
                    fmTypeViewDisplayGateway.LoadByFmTypeDisplayId(fmType, companyId, row.DisplayID);

                    columnsToDisplay = columnsToDisplay + fmTypeViewDisplayGateway.GetName(fmType, companyId, row.DisplayID) + ", ";
                }
            }

            columnsToDisplay = columnsToDisplay.Substring(0, columnsToDisplay.Length - 2);

            return columnsToDisplay;
        }