Example #1
0
        public static IStatusGeneric <FormDictionary> CreateFormDicFactory(FormDictionaryType type,
                                                                           string description, string code, string activityName, string fileName
                                                                           , int workPackageId, int[] desciplineId, int priority, float mh)
        {
            var status  = new StatusGenericHandler <FormDictionary>();
            var formDic = new FormDictionary
            {
                Description   = description,
                Code          = code,
                ActivityName  = activityName,
                Type          = type,
                FileName      = fileName,
                WorkPackageId = workPackageId,
                Priority      = priority,
                ManHours      = mh
            };

            formDic.DesciplineLink = new List <FormDictionaryDescipline>();
            foreach (var ids in desciplineId)
            {
                formDic.DesciplineLink.Add(FormDictionaryDescipline.CreateFormDicDescipline(0, ids).Result);
            }

            status.Result = formDic;
            return(status);
        }
 public FormDictionaryDescipline(Descipline descipline, FormDictionary formDic)
 {
     this.Descipline     = descipline;
     this.FormDictionary = formDic;
 }