コード例 #1
0
ファイル: MDRDocument.cs プロジェクト: Aminsh1221056SaSa/PSSR
        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);
        }