using Siger.Middlelayer.Common;

namespace Siger.ApiTPM.Utilities
{
    static class TemplateHelper
    {
        public static int GetSmsEnTemplateId(int SmsTempleteId)
        {
            int templeteId = 0;
            switch (SmsTempleteId)
            {
                case SMSTemplateConst.WaitingForOrders:
                    templeteId = SMSTemplateConst.WaitingForOrders_en;
                    break;
                case SMSTemplateConst.WaitingForCheckIn:
                    templeteId = SMSTemplateConst.WaitingForCheckIn_en;
                    break;
                case SMSTemplateConst.WaitingForRepair:
                    templeteId = SMSTemplateConst.WaitingForRepair_en;
                    break;
                case SMSTemplateConst.WaitingForRenew:
                    templeteId = SMSTemplateConst.WaitingForRenew_en;
                    break;
                case SMSTemplateConst.WaitingForFeedback:
                    templeteId = SMSTemplateConst.WaitingForFeedback_en;
                    break;
                case SMSTemplateConst.Completed:
                    templeteId = SMSTemplateConst.Completed_en;
                    break;
                case SMSTemplateConst.Deleted:
                    templeteId = SMSTemplateConst.Deleted_en;
                    break;
                case SMSTemplateConst.CooperateRepair:
                    templeteId = SMSTemplateConst.CooperateRepair_en;
                    break;
                case SMSTemplateConst.RenewFail:
                    templeteId = SMSTemplateConst.RenewFail_en;
                    break;
                case SMSTemplateConst.RepairReportPlan:
                    templeteId = SMSTemplateConst.RepairReportPlan_en;
                    break;
                case SMSTemplateConst.PlanReportPlan:
                    templeteId = SMSTemplateConst.PlanReportPlan_en;
                    break;
                case SMSTemplateConst.PlanTaskPlan:
                    templeteId = SMSTemplateConst.PlanTaskPlan_en;
                    break;
                case SMSTemplateConst.AndonPlan:
                    templeteId = SMSTemplateConst.AndonPlan_en;
                    break;
                case SMSTemplateConst.SparepartPrepareTemplate:
                    templeteId = SMSTemplateConst.SparepartPrepareTemplate_cn;
                    break;
            }

            return templeteId;
        }

        public static string GetWxTempleteId(bool isTranslate)
        {
            if (isTranslate)
            {
                return WeChatPushHelper.temleteIdMdp;
            }        

            return WeChatPushHelper.temleteIdMdp;
        }
    }
}
