示例#1
0
        /// <summary>
        /// Create the QCL record.
        /// </summary>
        /// <param name="context"></param>
        protected override void DoWork(CodeActivityContext context)
        {
            var mgr = new QclManager {
                PM = PM
            };
            int chkId = mgr.CreateQcl(PatId1.Get(context),
                                      TskId.Get(context),
                                      StaffIdResponsible.Get(context),
                                      StaffIdRequesting.Get(context),
                                      DueDate.Get(context),
                                      CGroup.Get(context),
                                      PrsId.Get(context),
                                      Instructions.Get(context),
                                      Comment.Get(context));

            ChkId.Set(context, chkId);
        }
示例#2
0
        /// <summary>
        /// Checks for QCL's with attributes matching the parameters passed in.
        /// </summary>
        /// <param name="context"></param>
        protected override void DoWork(CodeActivityContext context)
        {
            var mgr = new QclManager {
                PM = PM
            };
            bool qclExists = mgr.CheckQclExists(PatId1.Get(context),
                                                TskId.Get(context),
                                                StaffIdResponsible.Get(context),
                                                StaffIdRequesting.Get(context),
                                                DueDate.Get(context),
                                                CGroup.Get(context),
                                                PrsId.Get(context),
                                                Instructions.Get(context),
                                                Comment.Get(context),
                                                Completed.Get(context));

            QclExists.Set(context, qclExists);
        }