Esempio n. 1
0
        /// <summary>
        /// 更新账表分户账和账表明细账
        /// </summary>
        private void UpdateZbInfo(bool execPermission)
        {
            if (execPermission)
            {
                ZbfhzModel zbfhz = new ZbfhzModel();
                ZbmxzModel zbmxz = new ZbmxzModel();

                zbmxz.Zh = model.Skrzh;
                int iBs = db2Operation.GetCountByZh(zbmxz);
                zbmxz.Bc    = (iBs + 1).ToString();
                zbmxz.Fse   = model.Je;
                zbmxz.Yhls  = Encoding.Default.GetString(bhsszfMsg.Yhls);
                zbmxz.Pjhm  = model.Pch;
                zbmxz.Jdbz  = "2";
                zbmxz.Ywlx  = "1";
                zbmxz.Dfzh  = model.Fkrzh;
                zbmxz.Dfhm  = model.Fkrmc;
                zbmxz.Zxjsh = model.Fkrzh;
                zbmxz.Rqrq  = db2Operation.GetDjrqrq();

                zbfhz.Yhzh = zbmxz.Zh;
                zbfhz.Bs   = zbmxz.Bc;
                zbfhz.Hm   = model.Skrmc;

                db2Operation.UpateZbfhzAndZbmxz(zbmxz, zbfhz);
            }
        }
        /// <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);
            }
        }