Beispiel #1
0
        /// <summary>
        /// 获取其他项目对象
        /// </summary>
        /// <returns></returns>
        private _Entity_OtherProject GetTop1OtherItem()
        {
            _Entity_OtherProject info = new _Entity_OtherProject();

            DataRow[] rows = this.Unit.StructSource.ModelOtherProject.Select("ParentID=0");
            if (rows.Length > 0)
            {
                _ObjectSource.GetObject(info, rows[0]);
            }
            return(info);
        }
Beispiel #2
0
        /// <summary>
        /// 设置其他项目的合计
        /// </summary>
        public void SetQTXM()
        {
            _Entity_OtherProject info = GetTop1OtherItem();

            //_OtherProject_Statistics sta = new _OtherProject_Statistics(this.Unit);
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "QTXMHJ", this.ResultVarable.Get(info.id, 2, _Statistics.FILED_ZHHJ));
            //this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "QTXMCJHJ", this.ResultVarable.Get(info.id, 2, "QTXMCJHJ"));
            //this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "QTXMRGCJHJ", this.ResultVarable.Get(info.id, 2, "QTXMRGCJHJ"));
            //this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "QTXMJSCJHJ", this.ResultVarable.Get(info.id, 2, "QTXMJSCJHJ"));//结算差价
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "ZLJE", this.ResultVarable.Get(info.id, 2, "ZLJE"));
            //this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "SJBGCJ", this.ResultVarable.Get(info.id, 2, "SJBGCJ"));
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "ZYGCZGJ", this.ResultVarable.Get(info.id, 2, "ZYGCZGJ"));
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "ZCSBZGJ", this.ResultVarable.Get(info.id, 2, "ZCSBZGJ"));
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "LXFBGCE", this.ResultVarable.Get(info.id, 2, "LXFBGCE"));
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "JRG", this.ResultVarable.Get(info.id, 2, "JRG"));
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "JRGRG", this.ResultVarable.Get(info.id, 2, "JRGRG"));
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "JRGCL", this.ResultVarable.Get(info.id, 2, "JRGCL"));
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "JRGJX", this.ResultVarable.Get(info.id, 2, "JRGJX"));
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "ZCBFWF", this.ResultVarable.Get(info.id, 2, "ZCBFWF"));
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "FBGLFWF", this.ResultVarable.Get(info.id, 2, "FBGLFWF"));
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "FBRBGF", this.ResultVarable.Get(info.id, 2, "FBRBGF"));
            this.UNResultVarable.Set(this.Unit.PID, this.Unit.ID, -1, "FSPTJJJ", this.ResultVarable.Get(info.id, 2, "FSPTJJJ"));
        }