コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <summary>
        /// 更新账表分户账和账表明细账
        /// </summary>
        private void UpdateZbInfo(bool execPermission, string[] lineArray)
        {
            if (execPermission)
            {
                ZbfhzModel zbfhz = new ZbfhzModel();
                ZbmxzModel zbmxz = new ZbmxzModel();

                zbmxz.Zh = lineArray[5];
                int iBs = db2Operation.GetCountByZh(zbmxz);
                zbmxz.Bc  = (iBs + 1).ToString();
                zbmxz.Fse = lineArray[3];

                Random radom = new Random();
                zbmxz.Yhls = BasicOperation.GenerateLongBankSerialNum(radom.Next(99));

                zbmxz.Yhls  = model.Pch;
                zbmxz.Pjhm  = lineArray[10];
                zbmxz.Jdbz  = "2";
                zbmxz.Ywlx  = "1";
                zbmxz.Dfzh  = lineArray[2];
                zbmxz.Dfhm  = lineArray[3];
                zbmxz.Zxjsh = lineArray[1];
                zbmxz.Rqrq  = db2Operation.GetDjrqrq();

                zbfhz.Yhzh = zbmxz.Zh;
                zbfhz.Bs   = zbmxz.Bc;
                zbfhz.Hm   = lineArray[6];

                db2Operation.UpateZbfhzAndZbmxz(zbmxz, zbfhz);
            }
        }
コード例 #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);
        }