示例#1
0
        public IStatusGeneric CreateMDRStatus(string description, int commentStatusId, string folderName)
        {
            var pstatus   = new StatusGenericHandler();
            var mdrStatus = MDRStatusHistory.CreateMDRStatus(description, commentStatusId, false, true
                                                             , folderName).Result;

            this.MDRStatusHistoryies.Add(mdrStatus);
            return(pstatus);
        }
示例#2
0
        public static IStatusGeneric <MDRStatusHistory> CreateMDRStatus(string description, int statusId,
                                                                        bool isIfr, bool contractorConfirm, string folderName)
        {
            var pstatus = new StatusGenericHandler <MDRStatusHistory>();

            var newMDRDoc = new MDRStatusHistory
            {
                Description         = description,
                MdrStatusId         = statusId,
                IsIFR               = isIfr,
                IsContractorConfirm = contractorConfirm,
                FolderName          = folderName
            };

            pstatus.Result = newMDRDoc;
            return(pstatus);
        }