Example #1
0
        private void PrepareEditViewForm()
        {
            String fe1 = SqlExpressionBuilder.PrepareFilterExpression(CMProjectScheduleTemplateItemMapEntity.FLD_NAME_ProjectScheduleTemplateID, CMProjectScheduleTemplateID.ToString(), SQLMatchType.Equal);
            String fe2 = SqlExpressionBuilder.PrepareFilterExpression(CMProjectScheduleTemplateItemMapEntity.FLD_NAME_ProjectScheduleItemID, treeProjectSchedule.SelectedValue.ToString(), SQLMatchType.Equal);

            String fe = SqlExpressionBuilder.PrepareFilterExpression(fe1, SQLJoinType.AND, fe2);

            _CMProjectScheduleTemplateItemMapEntity = FCCCMProjectScheduleTemplateItemMap.GetFacadeCreate().GetIL(null, null, String.Empty, fe, DatabaseOperationType.LoadWithFilterExpression);

            #region Setting check to the Schedule Item

            if (_CMProjectScheduleTemplateItemMapEntity != null && _CMProjectScheduleTemplateItemMapEntity.Count > 0)
            {
                CurrentCMProjectScheduleTemplateItemMapEntity = _CMProjectScheduleTemplateItemMapEntity[0];
            }
            else
            {
                CurrentCMProjectScheduleTemplateItemMapEntity = new CMProjectScheduleTemplateItemMapEntity();
            }

            #endregion
        }
Example #2
0
        private void PrepareEditView()
        {
            String fe = SqlExpressionBuilder.PrepareFilterExpression(CMProjectScheduleTemplateItemMapEntity.FLD_NAME_ProjectScheduleTemplateID, CMProjectScheduleTemplateID.ToString(), SQLMatchType.Equal);

            currentMappedScheduleItem = FCCCMProjectScheduleTemplateItemMap.GetFacadeCreate().GetIL(null, null, String.Empty, fe, DatabaseOperationType.LoadWithFilterExpression);

            #region Setting check to the Schedule Item

            if (currentMappedScheduleItem != null && currentMappedScheduleItem.Count > 0)
            {
                foreach (TreeNode tn in treeProjectSchedule.Nodes)
                {
                    IsDocumentNode(tn);
                }
            }
            else
            {
                currentMappedScheduleItem = new List <CMProjectScheduleTemplateItemMapEntity>();
            }

            #endregion
        }