コード例 #1
0
ファイル: ComplainService.cs プロジェクト: UrviGandhi/IGRSS
 public void CloseInvestigation(Guid InstanceId, InvestigationDoneEventArgs args)
 {
     if (null != InvestigationDone)
     {
         InvestigationDone(null, args);
     }
 }
コード例 #2
0
ファイル: Complain.cs プロジェクト: UrviGandhi/IGRSS
        /// <summary>
        /// <param name="ComplainId"></param>
        /// <param name="InvDetails"></param>
        /// <param name="InvDate"></param>
        /// <returns>InvestigationTable</returns>
        /// </summary>
        public void CompleteInvestigaton(Guid ComplainId, DateTime InvDate, string InvDetails)
        {
            string curUser = Thread.CurrentPrincipal.Identity.Name;
            try
            {
                // Get the Workflow InstanceId
                Guid InstanceId = (Guid) IgrssAdapters.ComplainAdapter.GetWfIdByComplainId(ComplainId);

                // Initilize argument parameters
                InvestigationDoneEventArgs args = new InvestigationDoneEventArgs(InstanceId);
                args.InvestigationDate = InvDate;
                args.InvestigationDetails = InvDetails;

                // Raise the event with the arguments
                WorkflowMediator.ComplainServices.CloseInvestigation(InstanceId, args);
            }
            catch (Exception ex)
            {
                if(ExceptionPolicy.HandleException(ex, "DAL"))
                throw;
            }
        }