Ejemplo n.º 1
0
 /// <summary>
 /// 廠商下載對帳媒體檔介接參數的建構式。
 /// </summary>
 public TradeFileArguments() : base()
 {
     this.DateType         = TradeDateType.Payment;
     this.PaymentType      = PaymentMethod.ALL;
     this.PlatformStatus   = PlatformState.ALL;
     this.PaymentStatus    = PaymentState.ALL;
     this.AllocateStatus   = AllocateState.ALL;
     this.NewFormatedMedia = true;
     this.CharSet          = CharSetState.Default;
 }
Ejemplo n.º 2
0
        public static Encoding GetCharSet(CharSetState CharSet)
        {
            Encoding type = null;

            switch (CharSet)
            {
            case CharSetState.Big5:
                type = Encoding.GetEncoding("Big5");
                break;

            case CharSetState.UTF8:
                type = Encoding.UTF8;
                break;

            case CharSetState.Default:
            default:
                type = Encoding.Default;
                break;
            }

            return(type);
        }