/// <summary>
        /// 设置响应报文
        /// </summary>
        /// <param name="model">请求报文信息实体</param>
        public void SetValue(YhjzrzdzModel model, string fileName)
        {
            ResRtnValueModel modelRtn = new ResRtnValueModel();

            modelRtn.RtnCodeArray = new int[] { 1, 2, 4, 24, 27, 28, 32 };//返回值可能情况
            string fhz = modelRtn.GetRtnValueOnline();

            BasicOperation.SetByteArray(this.Length, "0250");
            BasicOperation.SetByteArray(this.Jym, model.Jym);
            BasicOperation.SetByteArray(this.Fhz, fhz);
            BasicOperation.SetByteArray(this.Dzdmc, "山东路分行对账单");
            BasicOperation.SetByteArray(this.Zhmc, "杭州住房公积金管理中心萧山分中心");
            BasicOperation.SetByteArray(this.Yhzh, "37546458677");
            BasicOperation.SetByteArray(this.Qsrq, model.Qsrq);
            BasicOperation.SetByteArray(this.Zzrq, model.Zzrq);
            BasicOperation.SetByteArray(this.Hzjls, "5");
            BasicOperation.SetByteArray(this.Hzjfbs, "2");
            BasicOperation.SetByteArray(this.Hzjffsz, "1000000");
            BasicOperation.SetByteArray(this.Hzdfbs, "3");
            BasicOperation.SetByteArray(this.Hzdffse, "1000000");

            DateTime dt      = DateTime.Now;
            string   strDate = dt.ToString("yyyyMMdd");

            BasicOperation.SetByteArray(this.Dzrq, strDate);
            BasicOperation.SetByteArray(this.Dzwjmc, fileName);
        }
        /// <summary>
        /// 设置响应报文
        /// </summary>
        /// <param name="model">请求报文信息实体</param>
        public void SetValue(ZqKhsszfModel model)
        {
            ResRtnValueModel modelRtn = new ResRtnValueModel();

            modelRtn.RtnCodeArray = new int[] { 1, 2, 4, 24, 27, 28, 32 };//返回值可能情况
            string fhz = modelRtn.GetRtnValueOnline();

            BasicOperation.SetByteArray(this.Length, "0420");
            BasicOperation.SetByteArray(this.Jym, model.Jym);
            BasicOperation.SetByteArray(this.ReturnCode, fhz);
            BasicOperation.SetByteArray(this.Pch, model.Pch);

            //银行流水
            Random radom = new Random();

            BasicOperation.SetByteArray(this.Yhls, BasicOperation.GenerateLongBankSerialNum(radom.Next(99)));

            BasicOperation.SetByteArray(this.Fkrzh, model.Fkrzh);
            BasicOperation.SetByteArray(this.Fkrmc, model.Fkrmc);
            BasicOperation.SetByteArray(this.Fkyhmc, model.Fkyhmc);
            BasicOperation.SetByteArray(this.Skrzh, model.Skrzh);
            BasicOperation.SetByteArray(this.Skrmc, model.Skrmc);
            BasicOperation.SetByteArray(this.Skyhmc, model.Skyhmc);
            BasicOperation.SetByteArray(this.Je, model.Je);
            BasicOperation.SetByteArray(this.Beiz, model.Beiz);
        }
예제 #3
0
        /// <summary>
        /// 设置响应报文
        /// </summary>
        /// <param name="model">请求报文信息实体</param>
        public void SetValue(DkdbkkModel model)
        {
            ResRtnValueModel modelRtn = new ResRtnValueModel();

            modelRtn.RtnCodeArray = new int[] { 1, 2, 4, 24, 27, 28, 32 };//返回值可能情况
            string fhz  = modelRtn.GetRtnValueOnline();
            string fhxx = modelRtn.RtnInfo;

            BasicOperation.SetByteArray(this.Length, "0274");
            BasicOperation.SetByteArray(this.Jym, model.Jym);
            BasicOperation.SetByteArray(this.Fhz, fhz);
            BasicOperation.SetByteArray(this.Fhxx, fhxx);
            BasicOperation.SetByteArray(this.Lx, "22");
            BasicOperation.SetByteArray(this.Kh, model.Kh);
            BasicOperation.SetByteArray(this.Ykje, model.Ykje);
            BasicOperation.SetByteArray(this.Skje, model.Skje);
            BasicOperation.SetByteArray(this.Xm, model.Xm);
            BasicOperation.SetByteArray(this.Sfz, model.Sfz);
            BasicOperation.SetByteArray(this.Cebz, model.Cebz);
            BasicOperation.SetByteArray(this.Hkqc, model.Hkqc);
            BasicOperation.SetByteArray(this.Hth, model.Hth);
            BasicOperation.SetByteArray(this.Ykbj, model.Ykbj);
            BasicOperation.SetByteArray(this.Yklx, model.Yklx);
            //银行流水
            Random radom = new Random();

            BasicOperation.SetByteArray(this.Yhls, BasicOperation.GenerateLongBankSerialNum(radom.Next(99)));
            BasicOperation.SetByteArray(this.Yl, model.Yl);
        }
        /// <summary>
        /// 设置响应报文
        /// </summary>
        /// <param name="model">请求报文信息实体</param>
        public void SetValue(DkdzxxffModel model, string fileName)
        {
            ResRtnValueModel modelRtn = new ResRtnValueModel();

            modelRtn.RtnCodeArray = new int[] { 1, 2, 4, 24, 27, 28, 32 };//返回值可能情况
            string fhz = modelRtn.GetRtnValueOnline();

            BasicOperation.SetByteArray(this.Length, "0068");
            BasicOperation.SetByteArray(this.Jym, model.Jym);
            BasicOperation.SetByteArray(this.Fhz, fhz);
            BasicOperation.SetByteArray(this.Mxwj, fileName);
        }
예제 #5
0
        /// <summary>
        /// 设置响应报文
        /// </summary>
        /// <param name="model">请求报文信息实体</param>
        public void SetValue(DkplshfqModel model)
        {
            ResRtnValueModel modelRtn = new ResRtnValueModel();

            modelRtn.RtnCodeArray = new int[] { 1, 2, 4, 19, 24, 27, 28, 32 };//返回值可能情况
            string fhz = modelRtn.GetRtnValueOnline();

            BasicOperation.SetByteArray(this.Length, "0032");
            BasicOperation.SetByteArray(this.Jym, model.Jym);
            BasicOperation.SetByteArray(this.Fhz, fhz);
            BasicOperation.SetByteArray(this.Pch, model.Pch);
        }
예제 #6
0
        /// <summary>
        /// 设置响应报文
        /// </summary>
        /// <param name="model">请求报文信息实体</param>
        public void SetValue(SkzhjyModel model)
        {
            ResRtnValueModel modelRtn = new ResRtnValueModel();

            modelRtn.RtnCodeArray = new int[] { 1, 2, 4, 24, 26, 27, 28, 32, 34 };//返回值可能情况
            string fhz  = modelRtn.GetRtnValueOnline();
            string fhxx = modelRtn.RtnInfo;

            BasicOperation.SetByteArray(this.Length, "0158");
            BasicOperation.SetByteArray(this.Jym, model.Jym);
            BasicOperation.SetByteArray(this.Fhz, fhz);
            BasicOperation.SetByteArray(this.Fhxx, fhxx);
            BasicOperation.SetByteArray(this.Zh, model.Zh);
            BasicOperation.SetByteArray(this.Zhmc, model.Zhmc);
        }
예제 #7
0
        /// <summary>
        /// 设置响应报文
        /// </summary>
        /// <param name="model">请求报文信息实体</param>
        public void SetValue(KyecxModel model)
        {
            ResRtnValueModel modelRtn = new ResRtnValueModel();

            modelRtn.RtnCodeArray = new int[] { 1, 2, 4, 16, 24, 27, 28, 32 };//返回值可能情况
            string fhz = modelRtn.GetRtnValueOnline();

            BasicOperation.SetByteArray(this.Length, "0060");
            BasicOperation.SetByteArray(this.Jym, model.Jym);
            BasicOperation.SetByteArray(this.Fhz, fhz);
            BasicOperation.SetByteArray(this.Xm, model.Xm);
            BasicOperation.SetByteArray(this.Kzh, model.Kzh);
            BasicOperation.SetByteArray(this.Bz, "1");
            BasicOperation.SetByteArray(this.Kzt, "2");
        }
예제 #8
0
        /// <summary>
        /// 设置响应报文
        /// </summary>
        /// <param name="model">请求报文信息实体</param>
        public void SetValue(DsplzfModel model, string fileName)
        {
            ResRtnValueModel modelRtn = new ResRtnValueModel();

            modelRtn.RtnCodeArray = new int[] { 1, 2, 4, 24, 27, 28, 32 };//返回值可能情况
            string fhz = modelRtn.GetRtnValueOnline();

            BasicOperation.SetByteArray(this.Length, "0136");
            BasicOperation.SetByteArray(this.Jym, model.Jym);
            BasicOperation.SetByteArray(this.Fhz, fhz);
            BasicOperation.SetByteArray(this.Pch, model.Pch);
            BasicOperation.SetByteArray(this.Wjmc, fileName);
            BasicOperation.SetByteArray(this.Bs, model.Bs);
            BasicOperation.SetByteArray(this.Je, model.Je);
            BasicOperation.SetByteArray(this.Beiz, model.Beiz);
        }
예제 #9
0
        /// <summary>
        /// 设置响应报文
        /// </summary>
        /// <param name="model">请求报文信息实体</param>
        public void SetValue(WtwyzzjcdzModel model, string fileName)
        {
            ResRtnValueModel modelRtn = new ResRtnValueModel();

            modelRtn.RtnCodeArray = new int[] { 1, 2, 4, 24, 27, 28, 32 };//返回值可能情况
            string fhz  = modelRtn.GetRtnValueOnline();
            string fhxx = modelRtn.RtnInfo;

            BasicOperation.SetByteArray(this.Length, "0150");
            BasicOperation.SetByteArray(this.Jym, model.Jym);
            BasicOperation.SetByteArray(this.Fhz, fhz);
            BasicOperation.SetByteArray(this.Fhxx, fhxx);
            BasicOperation.SetByteArray(this.Yhzh, model.Yhzh);
            BasicOperation.SetByteArray(this.Wjmc, fileName);
            BasicOperation.SetByteArray(this.Zbs, model.Zbs);
            BasicOperation.SetByteArray(this.Zje, model.Zje);
        }