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


C# TransactionResponse.getErrorCode方法代码示例

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


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

示例1: displayMessageToTheUser

    private void displayMessageToTheUser(TransactionResponse response)
    {
        clearMsgPanel();

        switch (response.getMessageType())
        {
            case TransactionResponse.SeverityLevel.SUCESS:
                msgPanel.Visible = true;
                SucessDIV.Visible = true;
                lblSuccessMessage.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.INFO:
                msgPanel.Visible = true;
                InfoDIV.Visible = true;
                lblInformationMsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.WARNING:
                msgPanel.Visible = true;
                WarnDIV.Visible = true;
                if (response.getErrorCode() != null)
                {
                    lblWarningMsg.Text = response.getMessage() + response.getErrorCode();
                    break;
                }
                lblWarningMsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.ERROR:
                msgPanel.Visible = true;
                ErroroDIV.Visible = true;
                if (response.getErrorCode() != null)
                {
                    lblErrorMsg.Text = response.getMessage() + response.getErrorCode();
                    break;
                }
                lblErrorMsg.Text = response.getMessage();
                break;

        }
    }
开发者ID:jLeta,项目名称:HN_HR_1.0,代码行数:39,代码来源:get-applicant-passed-for-further-process.aspx.cs

示例2: displayMessageToTheUser

    private void displayMessageToTheUser(TransactionResponse response)
    {
        PanelApplicantmsg.Visible = true;
        ApplSuccessDiv.Visible = false;
        lblApplicantSuccessmsg.Text = "";
        ApplInfoDiv.Visible = false;
        lblApplicantInfomsg.Text = "";
        ApplWarDiv.Visible = false;
        lblApplicantWarnmsg.Text = "";
        ApplErrorDiv.Visible = false;
        lblApplicantErrormsg.Text = "";

        switch (response.getMessageType())
        {
            case TransactionResponse.SeverityLevel.SUCESS:
                ApplSuccessDiv.Visible = true;
                lblApplicantSuccessmsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.INFO:
                ApplInfoDiv.Visible = true;
                lblApplicantInfomsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.WARNING:
                ApplWarDiv.Visible = true;
                if (response.getErrorCode() != null)
                {
                    lblApplicantWarnmsg.Text = response.getMessage() + response.getErrorCode();
                    break;
                }
                lblApplicantWarnmsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.ERROR:
                ApplErrorDiv.Visible = true;
                if (response.getErrorCode() != null)
                {
                    lblApplicantErrormsg.Text = response.getMessage() + response.getErrorCode();
                    break;
                }
                lblApplicantErrormsg.Text = response.getMessage();
                break;

        }
    }
开发者ID:jLeta,项目名称:HN_HR_1.0,代码行数:43,代码来源:update-interview-exam.aspx.cs

示例3: displayMessageToTheUser

    private void displayMessageToTheUser(TransactionResponse response, bool noNotification)
    {
        if (noNotification)
        {
            InfoDIV.Visible = true;
            lblInformationMsg.Text = "You have no notification sent to you";
            return;
        }

        switch (response.getMessageType())
        {
            case TransactionResponse.SeverityLevel.SUCESS:
                SucessDIV.Visible = true;
                lblErrorMsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.INFO:
                InfoDIV.Visible = true;
                lblInformationMsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.WARNING:
                WarnDIV.Visible = true;
                lblWarningMsg.Text = response.getMessage() + response.getErrorCode() ;
                break;
            case TransactionResponse.SeverityLevel.ERROR:
                ErroroDIV.Visible = true;
                lblErrorMsg.Text = response.getMessage() + response.getErrorCode();
                break;
        }
    }
开发者ID:jLeta,项目名称:HN_HR_1.0,代码行数:29,代码来源:user-notification.aspx.cs

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