当前位置: 首页>>代码示例>>C#>>正文


C# TransactionResponse.isSuccessful方法代码示例

本文整理汇总了C#中TransactionResponse.isSuccessful方法的典型用法代码示例。如果您正苦于以下问题:C# TransactionResponse.isSuccessful方法的具体用法?C# TransactionResponse.isSuccessful怎么用?C# TransactionResponse.isSuccessful使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TransactionResponse的用法示例。


在下文中一共展示了TransactionResponse.isSuccessful方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: isProfileArrivedDateRegistered

    public TransactionResponse isProfileArrivedDateRegistered()
    {
        //Add List of Arguments
        IDictionary<string, object> parameters = new Dictionary<string, object>();
        parameters.Add("@vacancy_No", vacancy.VacancyNo);
        parameters.Add("@posted_date ", vacancy.PostedDate);

        TransactionResponse response = new TransactionResponse();

        response = getApplicantRegistrationComplete();

        if (!response.isSuccessful())
        {
            DBOperationsUtil operation = new DBOperationsUtil(DbAccessConstants.spIsProfileDateRegistered, parameters);
            DataTable dataTable = operation.getRecord();
            if (dataTable != null && dataTable.Rows.Count == 0)
            {
                response.Data = dataTable;
                response.setSuccess(true);
            }
            else
            {
                response.setSuccess(false);
                response.setMessage(DBOperationErrorConstants.M_PROFILE_ARRIVED_DATE_REGISTERED_ALREADY);
            }
        }
        else
        {
            response.setSuccess(false);
            response.setMessage(DBOperationErrorConstants.M_APPLICANT_COMPLETE_NOT_REGISTERED);
        }

        return response;
    }
开发者ID:ETH-WORKS-DASHBOARD,项目名称:CBEHR,代码行数:34,代码来源:VacancyRegistrationAndEvaluationManager.cs

示例2: btnConfirmComplete_Click

    protected void btnConfirmComplete_Click(object sender, EventArgs e)
    {
        string temp = DropDownVacancyProfList.SelectedValue;

        if (temp == "-1")
        {
            lblDropVacancyList.Visible = true;
            return;
        }

        string[] splitter = new string[] { PageConstants.GREATER_GREATER_THAN };
        VacancyInfoTosplit = (temp).Split(splitter, StringSplitOptions.RemoveEmptyEntries);
        vacancyNo = VacancyInfoTosplit[0].Trim();
        VacancyDate = VacancyInfoTosplit[1].Trim();

        //Update vacancy Profile arrived date. 
        Vacancy vacancy = new Vacancy();
        vacancy.VacancyNo = vacancyNo;
        vacancy.PostedDate = VacancyDate;

        TransactionResponse response = new TransactionResponse();

        VacancyRegistrationAndEvaluationManager manager = new VacancyRegistrationAndEvaluationManager(vacancy);
        response = manager.updateProfileArrivedDateAndVacancyStatus();

        PanelConfirmVacancyComplete.Visible = false;
        displayMessageToTheUser(response);

        if (response.isSuccessful())
        {
            //REGISTER NOTIFICATION for HR Manager
            //check the vacancy status whether its re-advertise or Normal

            response = manager.getVacancyDetail(vacancy);
            DataTable dataTable = (DataTable)response.Data;

            string vacStatus = null;
            string repHROfficerProcessor = null;
            string repHROfficerCheckor = null;
            
            NotificationManager notificationManager = new NotificationManager(vacancy);
            TransactionResponse notificationResponse = null;

            if (dataTable != null && dataTable.Rows.Count > 0)
            {
                vacStatus = dataTable.Rows[0]["status"].ToString();
                repHROfficerProcessor = dataTable.Rows[0]["responsible_processor_EID"].ToString();
                repHROfficerCheckor = dataTable.Rows[0]["reponsible_accessor_EID"].ToString();

                if (vacStatus.Trim() == "11")
                {
                    if (repHROfficerCheckor != null || repHROfficerProcessor != null)
                    {
                    }
                    else
                    {
                        notificationResponse = notificationManager.addNotification(Membership.GetUser(), "6");
                    }
                }
                else
                {
                    notificationResponse = notificationManager.addNotification(Membership.GetUser(), "6");
                }
            }


            if (!notificationResponse.isSuccessful())
            {
                WarnDIV.Visible = true;
                lblWarningMsg.Text = notificationResponse.getMessage() + notificationResponse.getErrorCode();
            }

            DropDownVacancyProfList.ClearSelection();
        }
        else
        {
            msgPanel.Visible = true;
            InfoDIV.Visible = true;
            lblInformationMsg.Text = response.getMessage();
            DropDownVacancyProfList.ClearSelection();
        }
    }
开发者ID:jLeta,项目名称:HN_HR_1.0,代码行数:82,代码来源:generate-applicant-detial.aspx.cs

示例3: NotAssignedVacDV_ItemUpdating

    protected void NotAssignedVacDV_ItemUpdating(object sender, DetailsViewUpdateEventArgs e)
    {
        try
        {
            string vacancyTitle = e.NewValues["[Vacancy Title]"].ToString().Trim();
            string branchID = e.NewValues["branch_id"].ToString().Trim();
            string deadLine = e.NewValues["[Vacancy Deadline]"].ToString().Trim();
            string jGrade = e.NewValues["[Job Grade]"].ToString().Trim();
            string year4Gen = e.NewValues["[Year required for General]"].ToString().Trim();
            string year4Spec = e.NewValues["[Year required for Specific]"].ToString().Trim();
            string genPerc = e.NewValues["[General Work Exp Percentage]"].ToString().Trim();
            string specPerc = e.NewValues["[Specific Work Exp Percentage]"].ToString().Trim();
            string RelPer = e.NewValues["[Related Work Exp Percentage]"].ToString().Trim();
            string examPer = e.NewValues["[Examination Percentage]"].ToString().Trim();
            string mangRec = e.NewValues["[Manageral Rec Percentage]"].ToString().Trim();
            string interviewPer = e.NewValues["[Interview Percentage]"].ToString().Trim();
            string benefit = e.NewValues["[Job Benefit]"].ToString().Trim();
            string jobDes = e.NewValues["[Job Description]"].ToString().Trim();
            string jobReq = e.NewValues["[Job Requirement]"].ToString().Trim();
            
            Vacancy vacancy = new Vacancy();

            vacancy.VancayTitle = vacancyTitle;
            vacancy.BranchId = branchID;
            vacancy.VancyDeadline = deadLine;
            vacancy.VacancyforJobGrade = jGrade;
            vacancy.YearRequiredforGeneral = year4Gen;
            vacancy.YearRequiredforSpec = year4Spec;
            vacancy.GeneralWrkExprPercent = genPerc;
            vacancy.SpecificWrkExprPercent = specPerc;
            vacancy.RelatedWrkExprPercent = RelPer;
            vacancy.ExaminationPercent = examPer;
            vacancy.ManagerRecPercent = mangRec;
            vacancy.InterviewPercent = interviewPer;
            vacancy.SalaryAndBenefit = benefit;
            vacancy.JobDescription = jobDes;
            vacancy.JobRequirement = jobReq;

            vacancy.VacancyNo = vacancyNoforGV;
            vacancy.PostedDate = postDate;

            VacancyRegistrationAndEvaluationManager manager = new VacancyRegistrationAndEvaluationManager();
            TransactionResponse response = new TransactionResponse();
            
            response = manager.updateVacancyDetailNotAssignedtoHROfficer(vacancy);
            if (response.isSuccessful())
            {
                NotAssignedVacDV.ChangeMode(DetailsViewMode.ReadOnly);
                BindAssignedVacToDetailView();

                msgPanel.Visible = true;
                SucessDIV.Visible = true;
                lblSuccessMessage.Text = response.getMessage();
            }
            else
            {
                msgPanel.Visible = true;
                ErroroDIV.Visible = true;
                lblErrorMsg.Text = response.getMessage();
            }

        }
        catch (Exception ex)
        {
            msgPanel.Visible = true;
            lblErrorMsg.Text = ex.StackTrace.ToString();
        }
    }
开发者ID:jLeta,项目名称:HN_HR_1.0,代码行数:68,代码来源:get-list-of-applicant.aspx.cs

示例4: AssignedVacDV_ItemUpdating


//.........这里部分代码省略.........
            string accesID = e.NewValues["[Accessor ID]"].ToString().Trim();

            if (vacStatusCanEditted == "Vacancy Checking Done" ||
                vacStatusCanEditted == "Vacancy Evalution1 Done" ||
                vacStatusCanEditted == "Vacancy Evalution2 Done")
            {
                updateAccProc = 0;
            }
            else
            {
                updateAccProc = 1;
            }

            Vacancy vacancy = new Vacancy();

            vacancy.VancayTitle = vacancyTitle;
            vacancy.BranchId = branchID;
            vacancy.VancyDeadline = deadLine;
            vacancy.VacancyforJobGrade = jGrade;
            vacancy.Status = vacancyStatus;
            vacancy.YearRequiredforGeneral = year4Gen;
            vacancy.YearRequiredforSpec = year4Spec;
            vacancy.GeneralWrkExprPercent = genPerc;
            vacancy.SpecificWrkExprPercent = specPerc;
            vacancy.RelatedWrkExprPercent = RelPer;
            vacancy.ExaminationPercent = examPer;
            vacancy.ManagerRecPercent = mangRec;
            vacancy.InterviewPercent = interviewPer;
            vacancy.ApplicantComplete = appCompDate;
            vacancy.ProfileArrivedDate = profArrive;
            vacancy.ProcessorStartDate = procSDate;
            vacancy.ProcessorEndDate = procEDate;
            vacancy.AccessorStartDate = accesSDate;
            vacancy.AccessorEndDate = accesEDate;
            vacancy.ResponsibleProcessorEID = procID;
            vacancy.ResponsibleAccessorEID = accesID;
            vacancy.JobDescription = jobDes;
            vacancy.JobRequirement = jobReq;
            vacancy.SalaryAndBenefit = benefit;

            vacancy.VacancyNo = vacancyNoforGV;
            vacancy.PostedDate = postDate;

            VacancyRegistrationAndEvaluationManager manager = new VacancyRegistrationAndEvaluationManager();
            TransactionResponse response = new TransactionResponse();

            //get the current Processor and Checker
            response = manager.getVacancyDetail(vacancy);
            DataTable dataTable = (DataTable)response.Data;
            


            if (dataTable != null && dataTable.Rows.Count > 0)
            {
                oldProcessor = dataTable.Rows[0]["responsible_processor_EID"].ToString().Trim();
                oldAccessor = dataTable.Rows[0]["reponsible_accessor_EID"].ToString().Trim();

                if (procID == oldProcessor && accesID == oldAccessor)
                {
                    ProcAccUpdateStatus = 1;
                }
                else if (procID != oldProcessor && accesID == oldAccessor)
                {
                    ProcAccUpdateStatus = 2;
                }
                else if (procID == oldProcessor && accesID != oldAccessor)
                {
                    ProcAccUpdateStatus = 3;
                }
                else if (procID != oldProcessor && accesID != oldAccessor)
                {
                    ProcAccUpdateStatus = 4;
                }
            }

            response = manager.updateVacancyDetailAssignedtoHROfficer(vacancy, updateAccProc, ProcAccUpdateStatus, 
                                                oldProcessor, oldAccessor);
            if (response.isSuccessful())
            {
                AssignedVacDV.ChangeMode(DetailsViewMode.ReadOnly);
                BindAssignedVacToDetailView();

                msgPanel.Visible = true;
                SucessDIV.Visible = true;
                lblSuccessMessage.Text = response.getMessage();
            }
            else
            {
                msgPanel.Visible = true;
                ErroroDIV.Visible = true;
                lblErrorMsg.Text = response.getMessage();
            }

        }
        catch (Exception ex)
        {
            msgPanel.Visible = true;
            lblErrorMsg.Text = ex.StackTrace.ToString();
        }
    }
开发者ID:jLeta,项目名称:HN_HR_1.0,代码行数:101,代码来源:get-list-of-applicant.aspx.cs

示例5: btnConfirmComplete_Click

    protected void btnConfirmComplete_Click(object sender, EventArgs e)
    {
        
        Vacancy vacancy = new Vacancy();
        try
        {
            vacancy.VacancyNo = vacancyNumber;
            vacancy.PostedDate = postDate;

            VacancyRegistrationAndEvaluationManager manager = new VacancyRegistrationAndEvaluationManager(vacancy);
            TransactionResponse response = new TransactionResponse();

            response = manager.updateNotAnnouncedVacancyToAnnounced();
            if (response.isSuccessful())
            {
                clearMsgPanel();
                msgPanel.Visible = true;
                SucessDIV.Visible = true;
                string success = response.getMessage();
                populatePostedVacancy();
                clearWarningmsg();
                populatePostedVacancy();
                SucessDIV.Visible = true;
                lblSuccessMessage.Text = success;
            }
            else
            {
                clearMsgPanel();
                msgPanel.Visible = true;
                ErroroDIV.Visible = true;
                lblErrorMsg.Text = response.getMessage();
            }
        }
        catch (Exception ex)
        {
            clearMsgPanel();
            msgPanel.Visible = true;
            lblErrorMsg.Text = ex.StackTrace.ToString();
        }
    }
开发者ID:jLeta,项目名称:HN_HR_1.0,代码行数:40,代码来源:manager-vacancy-post.aspx.cs

示例6: btnConfirmComplete_Click

    protected void btnConfirmComplete_Click(object sender, EventArgs e)
    {
        lblCompleteVacancy.Visible = false;

        string[] splitter = new string[] { PageConstants.GREATER_GREATER_THAN };
        string[] VacancyInfoTosplit = (DropDownListCompVacancy.SelectedItem.Text).Split(splitter, StringSplitOptions.RemoveEmptyEntries);
        string vacancyNo = VacancyInfoTosplit[0].Trim();
        string VacancyDate = VacancyInfoTosplit[1].Trim();

        //Update vacancy Profile arrived date. 
        Vacancy vacancy = new Vacancy();
        vacancy.VacancyNo = vacancyNo;
        vacancy.PostedDate = VacancyDate;

        TransactionResponse response = new TransactionResponse();

        VacancyRegistrationAndEvaluationManager manager = new VacancyRegistrationAndEvaluationManager(vacancy);

        response = manager.getVacancyDetail(vacancy);
        DataTable dataTable = (DataTable)response.Data;
        string vacStatus = null;
        string respProcessor = null;
        string respAccessor = null;
        if (dataTable != null && dataTable.Rows.Count > 0)
        {
            vacStatus = dataTable.Rows[0]["status"].ToString().Trim();

            respProcessor = dataTable.Rows[0]["responsible_processor_EID"].ToString().Trim();
            respAccessor = dataTable.Rows[0]["reponsible_accessor_EID"].ToString().Trim();
        }

        vacancy.ResponsibleProcessorEID = respProcessor;
        vacancy.ResponsibleAccessorEID = respAccessor;

        if (vacStatus == "11" && respAccessor != null && respProcessor != null && respAccessor != "" && respProcessor != "")
        {
            //Change the status of the vacancy into 3 ==> assigned to HR Officer
            //notifiy Re-advertise vacancy re-assigned to HR Officer

            //update vacancy status to 'assigned for Evaluation' STAUS CODE = 3 . 
            vacancy.Status = VacancyConstants.VACANCY_ASSIGNED_TO_HR_OFFICERS;

            VacancyRegistrationAndEvaluationManager vacancyRegistrationManager = new VacancyRegistrationAndEvaluationManager(vacancy);
            response = vacancyRegistrationManager.updateVacancyStatusToAssgnedFromReAdvertise();

            //Notification for HR Officer goes here.
            NotificationManager notificationManager = new NotificationManager(vacancy);
            TransactionResponse notificationResponse = notificationManager.addNotificationForVacancyAssignement(Membership.GetUser(), true);
            if (notificationResponse.isSuccessful())
            {

            }
            else
            {
                WarnDIV.Visible = true;
                lblWarningMsg.Text = notificationResponse.getMessage() + notificationResponse.getErrorCode();
            }
        }
        else
        {

            response = manager.getApplicantRegistrationComplete();

            if (response.isSuccessful())
            {
                response = manager.updateApplicantRegisterationCompleteDate();
                if (response.isSuccessful())
                {
                    msgPanel.Visible = true;
                    SucessDIV.Visible = true;
                    lblSuccessMessage.Text = response.getMessage();

                    PanelCompleteApplicant.Visible = true;
                    btnCompAppReg.Visible = true;
                    DropDownListCompVacancy.ClearSelection();

                    //Register Notification here if its required
                }
                else
                {
                    msgPanel.Visible = true;
                    ErroroDIV.Visible = true;
                    lblErrorMsg.Text = response.getMessage() + response.getErrorCode();
                }
            }
            else
            {
                clearMsgPanel();
                msgPanel.Visible = true;
                InfoDIV.Visible = true;
                lblInformationMsg.Text = response.getMessage();
            }
        }
        populateVacancyList();
        populateVacancyForRegComplete();

        PanelConfirmVacancyComplete.Visible = false;
        DropDownListCompVacancy.ClearSelection();
    }
开发者ID:jLeta,项目名称:HN_HR_1.0,代码行数:99,代码来源:register-employee-for-vacancy.aspx.cs


注:本文中的TransactionResponse.isSuccessful方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。