Пример #1
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity清单特征表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity清单特征表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity清单特征表         = new CEntity清单特征表();
             m_CEntity清单特征表.QINGDBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单特征表.FILED_QINGDBH]);
             m_CEntity清单特征表.TEZBH   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单特征表.FILED_TEZBH]);
             m_CEntity清单特征表.TEZMC   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单特征表.FILED_TEZMC]);
             m_CEntity清单特征表.TEZDW   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单特征表.FILED_TEZDW]);
             m_CEntity清单特征表.TEZZ    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单特征表.FILED_TEZZ]);
             this.m_index           = index;
             return(m_CEntity清单特征表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity清单特征表.FILED_QINGDBH] = value.QINGDBH;
         this.Rows[index][CEntity清单特征表.FILED_TEZBH]   = value.TEZBH;
         this.Rows[index][CEntity清单特征表.FILED_TEZMC]   = value.TEZMC;
         this.Rows[index][CEntity清单特征表.FILED_TEZDW]   = value.TEZDW;
         this.Rows[index][CEntity清单特征表.FILED_TEZZ]    = value.TEZZ;
     }
 }
Пример #2
0
        /// <summary>
        /// 将p_obj对象与p_objMove对象交换位置
        /// </summary>
        /// <param name="p_obj">源对象</param>
        /// <param name="p_objMove">交换位置对象</param>
        private void ObjectMove(DataRowView p_obj, DataRowView p_objMove)
        {
            if (!p_obj["DEEP"].Equals(p_objMove["DEEP"]))
            {
                return;
            }
            long sort = CDataConvert.ConToValue <long>(p_obj["Sort"]);

            p_obj.Row.BeginEdit();
            p_obj["Sort"] = p_objMove["Sort"];
            p_obj.Row.EndEdit();
            p_objMove.Row.BeginEdit();
            p_objMove["Sort"] = sort;
            p_objMove.Row.EndEdit();
            if (p_obj["DEEP"].Equals(2))
            {
                _UnitProject m_UnitProject_Y = p_obj["UnitProject"] as _UnitProject;
                if (m_UnitProject_Y != null)
                {
                    m_UnitProject_Y.Sort = ToolKit.ParseInt(p_obj["Sort"]);
                }
                _UnitProject m_UnitProject_M = p_objMove["UnitProject"] as _UnitProject;
                if (m_UnitProject_M != null)
                {
                    m_UnitProject_M.Sort = ToolKit.ParseInt(p_objMove["Sort"]);
                }
            }
            //this.m_DataSource.StructSource.ModelProject.UpDate(p_obj);
            //this.m_DataSource.StructSource.ModelProject.UpDate(p_objMove);
            this.treeList1.Refresh();
        }
Пример #3
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity加密系数表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity加密系数表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity加密系数表        = new CEntity加密系数表();
             m_CEntity加密系数表.CAIJBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity加密系数表.FILED_CAIJBH]);
             m_CEntity加密系数表.JMXS   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity加密系数表.FILED_JMXS]);
             this.m_index          = index;
             return(m_CEntity加密系数表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity加密系数表.FILED_CAIJBH] = value.CAIJBH;
         this.Rows[index][CEntity加密系数表.FILED_JMXS]   = value.JMXS;
     }
 }
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity图集做法定额表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity图集做法定额表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity图集做法定额表       = new CEntity图集做法定额表();
             m_CEntity图集做法定额表.ZFBH  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集做法定额表.FILED_ZFBH]);
             m_CEntity图集做法定额表.ZFDEH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集做法定额表.FILED_ZFDEH]);
             m_CEntity图集做法定额表.DEMC  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集做法定额表.FILED_DEMC]);
             m_CEntity图集做法定额表.DEDW  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集做法定额表.FILED_DEDW]);
             m_CEntity图集做法定额表.XS    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集做法定额表.FILED_XS]);
             m_CEntity图集做法定额表.DECJ  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集做法定额表.FILED_DECJ]);
             m_CEntity图集做法定额表.TJH   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集做法定额表.FILED_TJH]);
             this.m_index           = index;
             return(m_CEntity图集做法定额表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity图集做法定额表.FILED_ZFBH]  = value.ZFBH;
         this.Rows[index][CEntity图集做法定额表.FILED_ZFDEH] = value.ZFDEH;
         this.Rows[index][CEntity图集做法定额表.FILED_DEMC]  = value.DEMC;
         this.Rows[index][CEntity图集做法定额表.FILED_DEDW]  = value.DEDW;
         this.Rows[index][CEntity图集做法定额表.FILED_XS]    = value.XS;
         this.Rows[index][CEntity图集做法定额表.FILED_DECJ]  = value.DECJ;
         this.Rows[index][CEntity图集做法定额表.FILED_TJH]   = value.TJH;
     }
 }
Пример #5
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntityTransitPriceLibrary this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntityTransitPriceLibrary);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntityTransitPriceLibrary             = new CEntityTransitPriceLibrary();
             m_CEntityTransitPriceLibrary.ID          = ToolKit.ParseInt(this.Rows[index][CEntityTransitPriceLibrary.FILED_ID]);
             m_CEntityTransitPriceLibrary.CAIJBH      = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityTransitPriceLibrary.FILED_CAIJBH]);
             m_CEntityTransitPriceLibrary.LIBRARYTYPE = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityTransitPriceLibrary.FILED_LIBRARYTYPE]);
             m_CEntityTransitPriceLibrary.SOURCE      = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityTransitPriceLibrary.FILED_SOURCE]);
             m_CEntityTransitPriceLibrary.ADDTYPE     = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityTransitPriceLibrary.FILED_ADDTYPE]);
             m_CEntityTransitPriceLibrary.ADDCOUNT    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityTransitPriceLibrary.FILED_ADDCOUNT]);
             this.m_index = index;
             return(m_CEntityTransitPriceLibrary);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntityTransitPriceLibrary.FILED_ID]          = value.ID;
         this.Rows[index][CEntityTransitPriceLibrary.FILED_CAIJBH]      = value.CAIJBH;
         this.Rows[index][CEntityTransitPriceLibrary.FILED_LIBRARYTYPE] = value.LIBRARYTYPE;
         this.Rows[index][CEntityTransitPriceLibrary.FILED_SOURCE]      = value.SOURCE;
         this.Rows[index][CEntityTransitPriceLibrary.FILED_ADDTYPE]     = value.ADDTYPE;
         this.Rows[index][CEntityTransitPriceLibrary.FILED_ADDCOUNT]    = value.ADDCOUNT;
     }
 }
Пример #6
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity图集表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity图集表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity图集表      = new CEntity图集表();
             m_CEntity图集表.SYBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集表.FILED_SYBH]);
             m_CEntity图集表.TX1  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集表.FILED_TX1]);
             m_CEntity图集表.TX2  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集表.FILED_TX2]);
             m_CEntity图集表.TJBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集表.FILED_TJBH]);
             m_CEntity图集表.TJMC = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集表.FILED_TJMC]);
             m_CEntity图集表.DW   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集表.FILED_DW]);
             m_CEntity图集表.BZ   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity图集表.FILED_BZ]);
             this.m_index      = index;
             return(m_CEntity图集表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity图集表.FILED_SYBH] = value.SYBH;
         this.Rows[index][CEntity图集表.FILED_TX1]  = value.TX1;
         this.Rows[index][CEntity图集表.FILED_TX2]  = value.TX2;
         this.Rows[index][CEntity图集表.FILED_TJBH] = value.TJBH;
         this.Rows[index][CEntity图集表.FILED_TJMC] = value.TJMC;
         this.Rows[index][CEntity图集表.FILED_DW]   = value.DW;
         this.Rows[index][CEntity图集表.FILED_BZ]   = value.BZ;
     }
 }
Пример #7
0
        /// <summary>
        /// 刷新变颜色
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="Check"></param>
        protected void UnInformation_OnCheck(object sender, bool Check)
        {
            DataRow row = sender as DataRow;

            if (row == null)
            {
                return;
            }
            string[] strTemp = CDataConvert.ConToValue <string>(row["TJ"]).Split(':');
            if (strTemp.Length > 1)
            {
                string[] arrtemp = strTemp[1].Split(new char[] { '[', ']' });
                if (arrtemp.Length > 1)
                {
                    DataTable dt = this.bindingSource1.DataSource as DataTable;
                    if (null != dt)
                    {
                        DataRow[] rows = dt.Select(string.Format("ID={0}", arrtemp[1]));
                        if (rows.Length > 0)
                        {
                            rows[0]["IsFresh"] = Check;
                        }
                    }
                }
            }
        }
Пример #8
0
        private void gridView1_CustomRowCellEditForEditing(object sender, DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs e)
        {
            popControl1.PopupControl.Size = new Size(e.Column.Width, popControl1.PopupControl.Height);
            switch (e.Column.FieldName)
            {
            case "LB":
                this.JGGJMCbindingSource.Filter = "JGSYID='5'";
                popControl1.DataSource          = this.JGGJMCbindingSource;
                popControl1.ColName             = new string[] { "类别|JGGJMC|LB" };
                popControl1.bind();
                break;

            case "HNTBHLYQ":
                popControl1.DataSource           = this.HNTYQbindingSource;
                popControl1.ColName              = new string[] { "混凝土拌合料要求|BHLYQ|HNTBHLYQ" };
                popControl1.RemoveDefaultColName = new string[] { "HNTQDDJ" };
                popControl1.bind();
                break;

            case "HNTQDDJ":
                DataRowView currRow = this.bindingSource1.Current as DataRowView;
                if (null == currRow)
                {
                    return;
                }
                LookUpEditSelectChage(CDataConvert.ConToValue <string>(currRow["HNTBHLYQ"]).Trim());
                popControl1.DataSource = this.HNTQDbindingSource;
                popControl1.ColName    = new string[] { "混凝土强度等级|QDDJ|HNTQDDJ" };
                popControl1.bind();
                break;
            }
        }
Пример #9
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity指引内容表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity指引内容表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity指引内容表         = new CEntity指引内容表();
             m_CEntity指引内容表.QINGDBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity指引内容表.FILED_QINGDBH]);
             m_CEntity指引内容表.NEIRBH  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity指引内容表.FILED_NEIRBH]);
             m_CEntity指引内容表.NRMC    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity指引内容表.FILED_NRMC]);
             m_CEntity指引内容表.ZHIYDE  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity指引内容表.FILED_ZHIYDE]);
             this.m_index           = index;
             return(m_CEntity指引内容表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity指引内容表.FILED_QINGDBH] = value.QINGDBH;
         this.Rows[index][CEntity指引内容表.FILED_NEIRBH]  = value.NEIRBH;
         this.Rows[index][CEntity指引内容表.FILED_NRMC]    = value.NRMC;
         this.Rows[index][CEntity指引内容表.FILED_ZHIYDE]  = value.ZHIYDE;
     }
 }
Пример #10
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity清单表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity清单表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity清单表           = new CEntity清单表();
             m_CEntity清单表.TX1       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单表.FILED_TX1]);
             m_CEntity清单表.TX2       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单表.FILED_TX2]);
             m_CEntity清单表.QINGDBH   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单表.FILED_QINGDBH]);
             m_CEntity清单表.QINGDMC   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单表.FILED_QINGDMC]);
             m_CEntity清单表.QINGDDW   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单表.FILED_QINGDDW]);
             m_CEntity清单表.JISGZ     = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单表.FILED_JISGZ]);
             m_CEntity清单表.QINGDSYBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单表.FILED_QINGDSYBH]);
             this.m_index           = index;
             return(m_CEntity清单表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity清单表.FILED_TX1]       = value.TX1;
         this.Rows[index][CEntity清单表.FILED_TX2]       = value.TX2;
         this.Rows[index][CEntity清单表.FILED_QINGDBH]   = value.QINGDBH;
         this.Rows[index][CEntity清单表.FILED_QINGDMC]   = value.QINGDMC;
         this.Rows[index][CEntity清单表.FILED_QINGDDW]   = value.QINGDDW;
         this.Rows[index][CEntity清单表.FILED_JISGZ]     = value.JISGZ;
         this.Rows[index][CEntity清单表.FILED_QINGDSYBH] = value.QINGDSYBH;
     }
 }
Пример #11
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity大材设置表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity大材设置表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity大材设置表         = new CEntity大材设置表();
             m_CEntity大材设置表.SANDCMC = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity大材设置表.FILED_SANDCMC]);
             m_CEntity大材设置表.HUIZDW  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity大材设置表.FILED_HUIZDW]);
             this.m_index           = index;
             return(m_CEntity大材设置表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity大材设置表.FILED_SANDCMC] = value.SANDCMC;
         this.Rows[index][CEntity大材设置表.FILED_HUIZDW]  = value.HUIZDW;
     }
 }
Пример #12
0
        /// <summary>
        /// 应用于OnModelChange功能区的过程
        /// </summary>
        /// <param name="form"></param>
        private void UseFunction(ABaseForm form)
        {
            //this.dp_Function.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;

            form.functionList1.Visible = true;
            form.functionList1.Dock    = DockStyle.Fill;
            this.dp_Function.ControlContainer.Controls.Clear();
            //如果发现form.functionList1 没有操作则不显示this.dp_Function
            if (form.functionList1.Count == 0)
            {
                ///如果没有操作栏目此处不显示功能区
                ///记录当前状态
                if (this.dp_Function.Visibility != DockVisibility.Hidden)
                {
                    m_DockVisibility = this.dp_Function.Visibility;
                }
                this.dp_Function.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
                this.dp_Function.ControlContainer.Controls.Add(form.functionList1);
            }
            else
            {
                if (m_DockVisibility != null)
                {
                    this.dp_Function.Visibility = CDataConvert.ConToValue <DockVisibility>(m_DockVisibility);
                    m_DockVisibility            = null;
                }
                this.dp_Function.ControlContainer.Controls.Add(form.functionList1);
            }
        }
Пример #13
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity配合比表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity配合比表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity配合比表          = new CEntity配合比表();
             m_CEntity配合比表.CAIJBH   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity配合比表.FILED_CAIJBH]);
             m_CEntity配合比表.PHB_CJBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity配合比表.FILED_PHB_CJBH]);
             m_CEntity配合比表.PHB_CJSL = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity配合比表.FILED_PHB_CJSL]);
             this.m_index           = index;
             return(m_CEntity配合比表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity配合比表.FILED_CAIJBH]   = value.CAIJBH;
         this.Rows[index][CEntity配合比表.FILED_PHB_CJBH] = value.PHB_CJBH;
         this.Rows[index][CEntity配合比表.FILED_PHB_CJSL] = value.PHB_CJSL;
     }
 }
Пример #14
0
        /// <summary>
        /// 土方  筛选 返回 清单
        /// </summary>
        /// <param name="_strQDWhere">筛选条件</param>
        /// <param name="strTJ">条件</param>
        /// <param name="SWGCL">实物工程量</param>
        /// <returns></returns>
        protected DataRow GetTFQD(string _strQDWhere, string strTJ, float SWGCL)
        {
            TFQRQDbindingSource.Filter = _strQDWhere;
            if (!APP.UnInformation.QDTable.Columns.Contains("BZ"))
            {
                APP.UnInformation.QDTable.Columns.Add("BZ");
            }
            DataRow dr = APP.UnInformation.QDTable.NewRow();

            if (0 < this.TFQRQDbindingSource.Count)
            {
                DataRowView view = this.TFQRQDbindingSource[0] as DataRowView;
                dr["QDBH"] = view["QDBH"];
                dr["QDMC"] = view["QDMC"];
                dr["DW"]   = view["DW"];
                dr["XS"]   = view["GCLXS"];
                dr["GCL"]  = CDataConvert.ConToValue <float>(dr["XS"]) * SWGCL;
                dr["WZLX"] = view["WZ"];
                dr["TJ"]   = strTJ;
                dr["BZ"]   = "";
                if (CDataConvert.ConToValue <string>(view["QDBH"]).Length > 5)
                {
                    dr["ZJ"] = CDataConvert.ConToValue <string>(view["QDBH"]).Substring(0, 6);//清单所属章节【清单编号前六位】
                }
            }
            return(dr);
        }
Пример #15
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity清单索引表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity清单索引表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity清单索引表           = new CEntity清单索引表();
             m_CEntity清单索引表.PARENTID  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单索引表.FILED_PARENTID]);
             m_CEntity清单索引表.QINGDSYBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单索引表.FILED_QINGDSYBH]);
             m_CEntity清单索引表.MULNR     = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity清单索引表.FILED_MULNR]);
             this.m_index             = index;
             return(m_CEntity清单索引表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity清单索引表.FILED_PARENTID]  = value.PARENTID;
         this.Rows[index][CEntity清单索引表.FILED_QINGDSYBH] = value.QINGDSYBH;
         this.Rows[index][CEntity清单索引表.FILED_MULNR]     = value.MULNR;
     }
 }
Пример #16
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntityTreelist this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntityTreelist);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntityTreelist = new CEntityTreelist();
             m_CEntityTreelist.KEYFIELDNAME    = CDataConvert.ConToValue <System.Int64>(this.Rows[index][CEntityTreelist.FILED_KEYFIELDNAME]);
             m_CEntityTreelist.PARENTFIELDNAME = CDataConvert.ConToValue <System.Int64>(this.Rows[index][CEntityTreelist.FILED_PARENTFIELDNAME]);
             m_CEntityTreelist.NODENAME        = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityTreelist.FILED_NODENAME]);
             m_CEntityTreelist.REMARK          = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityTreelist.FILED_REMARK]);
             m_CEntityTreelist.IMAGEINDEX      = CDataConvert.ConToValue <System.Int64>(this.Rows[index][CEntityTreelist.FILED_IMAGEINDEX]);
             m_CEntityTreelist.COMMANDNAME     = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityTreelist.FILED_COMMANDNAME]);
             this.m_index = index;
             return(m_CEntityTreelist);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntityTreelist.FILED_KEYFIELDNAME]    = value.KEYFIELDNAME;
         this.Rows[index][CEntityTreelist.FILED_PARENTFIELDNAME] = value.PARENTFIELDNAME;
         this.Rows[index][CEntityTreelist.FILED_NODENAME]        = value.NODENAME;
         this.Rows[index][CEntityTreelist.FILED_REMARK]          = value.REMARK;
         this.Rows[index][CEntityTreelist.FILED_IMAGEINDEX]      = value.IMAGEINDEX;
         this.Rows[index][CEntityTreelist.FILED_COMMANDNAME]     = value.COMMANDNAME;
     }
 }
Пример #17
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntityFixedIncreased this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntityFixedIncreased);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntityFixedIncreased             = new CEntityFixedIncreased();
             m_CEntityFixedIncreased.ID          = ToolKit.ParseInt(this.Rows[index][CEntityFixedIncreased.FILED_ID]);
             m_CEntityFixedIncreased.PARENTID    = ToolKit.ParseInt(this.Rows[index][CEntityFixedIncreased.FILED_PARENTID]);
             m_CEntityFixedIncreased.NAME        = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityFixedIncreased.FILED_NAME]);
             m_CEntityFixedIncreased.ISCHECK     = ToolKit.ParseBoolen(this.Rows[index][CEntityFixedIncreased.FILED_ISCHECK]);
             m_CEntityFixedIncreased.CODE        = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityFixedIncreased.FILED_CODE]);
             m_CEntityFixedIncreased.LOCATION    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityFixedIncreased.FILED_LOCATION]);
             m_CEntityFixedIncreased.GROUP       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityFixedIncreased.FILED_GROUP]);
             m_CEntityFixedIncreased.FIXED       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityFixedIncreased.FILED_FIXED]);
             m_CEntityFixedIncreased.CALCULATION = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityFixedIncreased.FILED_CALCULATION]);
             m_CEntityFixedIncreased.ADDITIONAL  = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityFixedIncreased.FILED_ADDITIONAL]);
             m_CEntityFixedIncreased.COEFFICIENT = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityFixedIncreased.FILED_COEFFICIENT]);
             m_CEntityFixedIncreased.ARTIFICIAL  = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityFixedIncreased.FILED_ARTIFICIAL]);
             m_CEntityFixedIncreased.MATERIAL    = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityFixedIncreased.FILED_MATERIAL]);
             m_CEntityFixedIncreased.MECHANICAL  = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityFixedIncreased.FILED_MECHANICAL]);
             m_CEntityFixedIncreased.EXPERTISE   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityFixedIncreased.FILED_EXPERTISE]);
             m_CEntityFixedIncreased.REMARK      = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityFixedIncreased.FILED_REMARK]);
             this.m_index = index;
             return(m_CEntityFixedIncreased);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntityFixedIncreased.FILED_ID]          = value.ID;
         this.Rows[index][CEntityFixedIncreased.FILED_PARENTID]    = value.PARENTID;
         this.Rows[index][CEntityFixedIncreased.FILED_NAME]        = value.NAME;
         this.Rows[index][CEntityFixedIncreased.FILED_ISCHECK]     = value.ISCHECK;
         this.Rows[index][CEntityFixedIncreased.FILED_CODE]        = value.CODE;
         this.Rows[index][CEntityFixedIncreased.FILED_LOCATION]    = value.LOCATION;
         this.Rows[index][CEntityFixedIncreased.FILED_GROUP]       = value.GROUP;
         this.Rows[index][CEntityFixedIncreased.FILED_FIXED]       = value.FIXED;
         this.Rows[index][CEntityFixedIncreased.FILED_CALCULATION] = value.CALCULATION;
         this.Rows[index][CEntityFixedIncreased.FILED_ADDITIONAL]  = value.ADDITIONAL;
         this.Rows[index][CEntityFixedIncreased.FILED_COEFFICIENT] = value.COEFFICIENT;
         this.Rows[index][CEntityFixedIncreased.FILED_ARTIFICIAL]  = value.ARTIFICIAL;
         this.Rows[index][CEntityFixedIncreased.FILED_MATERIAL]    = value.MATERIAL;
         this.Rows[index][CEntityFixedIncreased.FILED_MECHANICAL]  = value.MECHANICAL;
         this.Rows[index][CEntityFixedIncreased.FILED_EXPERTISE]   = value.EXPERTISE;
         this.Rows[index][CEntityFixedIncreased.FILED_REMARK]      = value.REMARK;
     }
 }
Пример #18
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntitySubheadingsFee this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntitySubheadingsFee);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntitySubheadingsFee          = new CEntitySubheadingsFee();
             m_CEntitySubheadingsFee.ID       = ToolKit.ParseInt(this.Rows[index][CEntitySubheadingsFee.FILED_ID]);
             m_CEntitySubheadingsFee.PARENTID = ToolKit.ParseInt(this.Rows[index][CEntitySubheadingsFee.FILED_PARENTID]);
             m_CEntitySubheadingsFee.XID      = ToolKit.ParseInt(this.Rows[index][CEntitySubheadingsFee.FILED_XID]);
             m_CEntitySubheadingsFee.DID      = ToolKit.ParseInt(this.Rows[index][CEntitySubheadingsFee.FILED_DID]);
             m_CEntitySubheadingsFee.QID      = ToolKit.ParseInt(this.Rows[index][CEntitySubheadingsFee.FILED_QID]);
             m_CEntitySubheadingsFee.ZID      = ToolKit.ParseInt(this.Rows[index][CEntitySubheadingsFee.FILED_ZID]);
             m_CEntitySubheadingsFee.YYH      = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntitySubheadingsFee.FILED_YYH]);
             m_CEntitySubheadingsFee.MC       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntitySubheadingsFee.FILED_MC]);
             m_CEntitySubheadingsFee.BDS      = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntitySubheadingsFee.FILED_BDS]);
             m_CEntitySubheadingsFee.TBJSJC   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntitySubheadingsFee.FILED_TBJSJC]);
             m_CEntitySubheadingsFee.BDJSJC   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntitySubheadingsFee.FILED_BDJSJC]);
             m_CEntitySubheadingsFee.FL       = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntitySubheadingsFee.FILED_FL]);
             m_CEntitySubheadingsFee.JSJCJG   = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntitySubheadingsFee.FILED_JSJCJG]);
             m_CEntitySubheadingsFee.JE       = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntitySubheadingsFee.FILED_JE]);
             m_CEntitySubheadingsFee.BEIZHU   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntitySubheadingsFee.FILED_BEIZHU]);
             this.m_index = index;
             return(m_CEntitySubheadingsFee);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntitySubheadingsFee.FILED_ID]       = value.ID;
         this.Rows[index][CEntitySubheadingsFee.FILED_PARENTID] = value.PARENTID;
         this.Rows[index][CEntitySubheadingsFee.FILED_XID]      = value.XID;
         this.Rows[index][CEntitySubheadingsFee.FILED_DID]      = value.DID;
         this.Rows[index][CEntitySubheadingsFee.FILED_QID]      = value.QID;
         this.Rows[index][CEntitySubheadingsFee.FILED_ZID]      = value.ZID;
         this.Rows[index][CEntitySubheadingsFee.FILED_YYH]      = value.YYH;
         this.Rows[index][CEntitySubheadingsFee.FILED_MC]       = value.MC;
         this.Rows[index][CEntitySubheadingsFee.FILED_BDS]      = value.BDS;
         this.Rows[index][CEntitySubheadingsFee.FILED_TBJSJC]   = value.TBJSJC;
         this.Rows[index][CEntitySubheadingsFee.FILED_BDJSJC]   = value.BDJSJC;
         this.Rows[index][CEntitySubheadingsFee.FILED_FL]       = value.FL;
         this.Rows[index][CEntitySubheadingsFee.FILED_JSJCJG]   = value.JSJCJG;
         this.Rows[index][CEntitySubheadingsFee.FILED_JE]       = value.JE;
         this.Rows[index][CEntitySubheadingsFee.FILED_BEIZHU]   = value.BEIZHU;
     }
 }
Пример #19
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity定额表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity定额表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity定额表           = new CEntity定额表();
             m_CEntity定额表.DINGESYBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_DINGESYBH]);
             m_CEntity定额表.TX1       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_TX1]);
             m_CEntity定额表.TX2       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_TX2]);
             m_CEntity定额表.TX3       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_TX3]);
             m_CEntity定额表.DINGEH    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_DINGEH]);
             m_CEntity定额表.DINGEMC   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_DINGEMC]);
             m_CEntity定额表.DINGEDW   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_DINGEDW]);
             m_CEntity定额表.DINGEJJ   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_DINGEJJ]);
             m_CEntity定额表.RENGF     = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_RENGF]);
             m_CEntity定额表.CAILF     = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_CAILF]);
             m_CEntity定额表.JIXF      = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_JIXF]);
             m_CEntity定额表.JIANGX    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_JIANGX]);
             m_CEntity定额表.DINGESX   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_DINGESX]);
             m_CEntity定额表.DINGESM   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_DINGESM]);
             m_CEntity定额表.DECJ      = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额表.FILED_DECJ]);
             this.m_index           = index;
             return(m_CEntity定额表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity定额表.FILED_DINGESYBH] = value.DINGESYBH;
         this.Rows[index][CEntity定额表.FILED_TX1]       = value.TX1;
         this.Rows[index][CEntity定额表.FILED_TX2]       = value.TX2;
         this.Rows[index][CEntity定额表.FILED_TX3]       = value.TX3;
         this.Rows[index][CEntity定额表.FILED_DINGEH]    = value.DINGEH;
         this.Rows[index][CEntity定额表.FILED_DINGEMC]   = value.DINGEMC;
         this.Rows[index][CEntity定额表.FILED_DINGEDW]   = value.DINGEDW;
         this.Rows[index][CEntity定额表.FILED_DINGEJJ]   = value.DINGEJJ;
         this.Rows[index][CEntity定额表.FILED_RENGF]     = value.RENGF;
         this.Rows[index][CEntity定额表.FILED_CAILF]     = value.CAILF;
         this.Rows[index][CEntity定额表.FILED_JIXF]      = value.JIXF;
         this.Rows[index][CEntity定额表.FILED_JIANGX]    = value.JIANGX;
         this.Rows[index][CEntity定额表.FILED_DINGESX]   = value.DINGESX;
         this.Rows[index][CEntity定额表.FILED_DINGESM]   = value.DINGESM;
         this.Rows[index][CEntity定额表.FILED_DECJ]      = value.DECJ;
     }
 }
Пример #20
0
 public void Bind()
 {
     if (this.m_Configuration != null)
     {
         radioGroup1.SelectedIndex = ToolKit.ParseInt(this.m_Configuration.Configs["工程量输入方式"]);
         radioGroup2.SelectedIndex = ToolKit.ParseInt(this.m_Configuration.Configs["名称显示方式"]);
         checkEdit1.Checked        = ToolKit.ParseBoolen(this.m_Configuration.Configs["清单工程量设置"]);
         checkEdit2.Checked        = ToolKit.ParseBoolen(this.m_Configuration.Configs["标准换算"]);
         checkEdit3.Checked        = ToolKit.ParseBoolen(this.m_Configuration.Configs["石灰换算"]);
         checkEdit4.Checked        = ToolKit.ParseBoolen(this.m_Configuration.Configs["配合比换算"]);
         checkEdit5.Checked        = ToolKit.ParseBoolen(this.m_Configuration.Configs["砂浆换算"]);
         txt_Time.Text             = CDataConvert.ConToValue <string>(this.m_Configuration.Configs["自动保存时间"]);
     }
 }
Пример #21
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity定额换算表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity定额换算表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity定额换算表            = new CEntity定额换算表();
             m_CEntity定额换算表.DINGEH     = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_DINGEH]);
             m_CEntity定额换算表.HUANSLB    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_HUANSLB]);
             m_CEntity定额换算表.TISXX      = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_TISXX]);
             m_CEntity定额换算表.HUANSJS_R  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_HUANSJS_R]);
             m_CEntity定额换算表.HUANSDEH_C = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_HUANSDEH_C]);
             m_CEntity定额换算表.ZENGL_J    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_ZENGL_J]);
             m_CEntity定额换算表.ZC         = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_ZC]);
             m_CEntity定额换算表.SB         = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_SB]);
             m_CEntity定额换算表.DJDW       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_DJDW]);
             m_CEntity定额换算表.FZ         = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_FZ]);
             m_CEntity定额换算表.XHLB       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_XHLB]);
             m_CEntity定额换算表.THZHC      = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_THZHC]);
             m_CEntity定额换算表.THWZFC     = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_THWZFC]);
             m_CEntity定额换算表.HSXI       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额换算表.FILED_HSXI]);
             this.m_index = index;
             return(m_CEntity定额换算表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity定额换算表.FILED_DINGEH]     = value.DINGEH;
         this.Rows[index][CEntity定额换算表.FILED_HUANSLB]    = value.HUANSLB;
         this.Rows[index][CEntity定额换算表.FILED_TISXX]      = value.TISXX;
         this.Rows[index][CEntity定额换算表.FILED_HUANSJS_R]  = value.HUANSJS_R;
         this.Rows[index][CEntity定额换算表.FILED_HUANSDEH_C] = value.HUANSDEH_C;
         this.Rows[index][CEntity定额换算表.FILED_ZENGL_J]    = value.ZENGL_J;
         this.Rows[index][CEntity定额换算表.FILED_ZC]         = value.ZC;
         this.Rows[index][CEntity定额换算表.FILED_SB]         = value.SB;
         this.Rows[index][CEntity定额换算表.FILED_DJDW]       = value.DJDW;
         this.Rows[index][CEntity定额换算表.FILED_FZ]         = value.FZ;
         this.Rows[index][CEntity定额换算表.FILED_XHLB]       = value.XHLB;
         this.Rows[index][CEntity定额换算表.FILED_THZHC]      = value.THZHC;
         this.Rows[index][CEntity定额换算表.FILED_THWZFC]     = value.THWZFC;
         this.Rows[index][CEntity定额换算表.FILED_HSXI]       = value.HSXI;
     }
 }
Пример #22
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity取费表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity取费表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity取费表         = new CEntity取费表();
             m_CEntity取费表.GONGCLB = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_GONGCLB]);
             m_CEntity取费表.DINGEH  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_DINGEH]);
             m_CEntity取费表.GUANLFL = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_GUANLFL]);
             m_CEntity取费表.LIRL    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_LIRL]);
             m_CEntity取费表.FXLBD   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_FXLBD]);
             m_CEntity取费表.FXLTB   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_FXLTB]);
             m_CEntity取费表.GLBDJC  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_GLBDJC]);
             m_CEntity取费表.GLTBJC  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_GLTBJC]);
             m_CEntity取费表.LRBDJC  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_LRBDJC]);
             m_CEntity取费表.LRTBJC  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_LRTBJC]);
             m_CEntity取费表.FXBDJC  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_FXBDJC]);
             m_CEntity取费表.FXTBJC  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_FXTBJC]);
             m_CEntity取费表.SFHH    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity取费表.FILED_SFHH]);
             this.m_index         = index;
             return(m_CEntity取费表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity取费表.FILED_GONGCLB] = value.GONGCLB;
         this.Rows[index][CEntity取费表.FILED_DINGEH]  = value.DINGEH;
         this.Rows[index][CEntity取费表.FILED_GUANLFL] = value.GUANLFL;
         this.Rows[index][CEntity取费表.FILED_LIRL]    = value.LIRL;
         this.Rows[index][CEntity取费表.FILED_FXLBD]   = value.FXLBD;
         this.Rows[index][CEntity取费表.FILED_FXLTB]   = value.FXLTB;
         this.Rows[index][CEntity取费表.FILED_GLBDJC]  = value.GLBDJC;
         this.Rows[index][CEntity取费表.FILED_GLTBJC]  = value.GLTBJC;
         this.Rows[index][CEntity取费表.FILED_LRBDJC]  = value.LRBDJC;
         this.Rows[index][CEntity取费表.FILED_LRTBJC]  = value.LRTBJC;
         this.Rows[index][CEntity取费表.FILED_FXBDJC]  = value.FXBDJC;
         this.Rows[index][CEntity取费表.FILED_FXTBJC]  = value.FXTBJC;
         this.Rows[index][CEntity取费表.FILED_SFHH]    = value.SFHH;
     }
 }
Пример #23
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntityProjects this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntityProjects);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntityProjects             = new CEntityProjects();
             m_CEntityProjects.ID          = CDataConvert.ConToValue <System.Int64>(this.Rows[index][CEntityProjects.FILED_ID]);
             m_CEntityProjects.PROJECTCODE = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityProjects.FILED_PROJECTCODE]);
             m_CEntityProjects.PASSWORD    = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityProjects.FILED_PASSWORD]);
             m_CEntityProjects.PGCDD       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityProjects.FILED_PGCDD]);
             //m_CEntityProjects.PQDGZ		 = CDataConvert.ConToValue<System.String>(this.Rows[index][CEntityProjects.FILED_PQDGZ]);
             //m_CEntityProjects.PDEGZ		 = CDataConvert.ConToValue<System.String>(this.Rows[index][CEntityProjects.FILED_PDEGZ]);
             m_CEntityProjects.PJFCX        = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityProjects.FILED_PJFCX]);
             m_CEntityProjects.PNSDD        = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityProjects.FILED_PNSDD]);
             m_CEntityProjects.CREATOR      = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityProjects.FILED_CREATOR]);
             m_CEntityProjects.EDITOR       = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityProjects.FILED_EDITOR]);
             m_CEntityProjects.FISTDATETIME = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityProjects.FILED_FISTDATETIME]);
             m_CEntityProjects.EDITDATETIME = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityProjects.FILED_EDITDATETIME]);
             m_CEntityProjects.PROJECTNAME  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityProjects.FILED_PROJECTNAME]);
             this.m_index = index;
             return(m_CEntityProjects);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntityProjects.FILED_ID]          = value.ID;
         this.Rows[index][CEntityProjects.FILED_PROJECTCODE] = value.PROJECTCODE;
         this.Rows[index][CEntityProjects.FILED_PASSWORD]    = value.PASSWORD;
         this.Rows[index][CEntityProjects.FILED_PGCDD]       = value.PGCDD;
         //this.Rows[index][CEntityProjects.FILED_PQDGZ] = value.PQDGZ;
         //this.Rows[index][CEntityProjects.FILED_PDEGZ] = value.PDEGZ;
         this.Rows[index][CEntityProjects.FILED_PJFCX]        = value.PJFCX;
         this.Rows[index][CEntityProjects.FILED_PNSDD]        = value.PNSDD;
         this.Rows[index][CEntityProjects.FILED_CREATOR]      = value.CREATOR;
         this.Rows[index][CEntityProjects.FILED_EDITOR]       = value.EDITOR;
         this.Rows[index][CEntityProjects.FILED_FISTDATETIME] = value.FISTDATETIME;
         this.Rows[index][CEntityProjects.FILED_EDITDATETIME] = value.EDITDATETIME;
         this.Rows[index][CEntityProjects.FILED_PROJECTNAME]  = value.PROJECTNAME;
     }
 }
Пример #24
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity材机表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity材机表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity材机表          = new CEntity材机表();
             m_CEntity材机表.CAIJBH   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity材机表.FILED_CAIJBH]);
             m_CEntity材机表.CAIJSYBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity材机表.FILED_CAIJSYBH]);
             m_CEntity材机表.CAIJMC   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity材机表.FILED_CAIJMC]);
             m_CEntity材机表.CAIJDW   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity材机表.FILED_CAIJDW]);
             m_CEntity材机表.CAIJDJ   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity材机表.FILED_CAIJDJ]);
             m_CEntity材机表.CAIJLB   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity材机表.FILED_CAIJLB]);
             m_CEntity材机表.CAIJSC   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity材机表.FILED_CAIJSC]);
             m_CEntity材机表.CAIJJC   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity材机表.FILED_CAIJJC]);
             m_CEntity材机表.CAIJXSJG = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity材机表.FILED_CAIJXSJG]);
             m_CEntity材机表.SANDCMC  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity材机表.FILED_SANDCMC]);
             m_CEntity材机表.SANDCXS  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity材机表.FILED_SANDCXS]);
             this.m_index          = index;
             return(m_CEntity材机表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity材机表.FILED_CAIJBH]   = value.CAIJBH;
         this.Rows[index][CEntity材机表.FILED_CAIJSYBH] = value.CAIJSYBH;
         this.Rows[index][CEntity材机表.FILED_CAIJMC]   = value.CAIJMC;
         this.Rows[index][CEntity材机表.FILED_CAIJDW]   = value.CAIJDW;
         this.Rows[index][CEntity材机表.FILED_CAIJDJ]   = value.CAIJDJ;
         this.Rows[index][CEntity材机表.FILED_CAIJLB]   = value.CAIJLB;
         this.Rows[index][CEntity材机表.FILED_CAIJSC]   = value.CAIJSC;
         this.Rows[index][CEntity材机表.FILED_CAIJJC]   = value.CAIJJC;
         this.Rows[index][CEntity材机表.FILED_CAIJXSJG] = value.CAIJXSJG;
         this.Rows[index][CEntity材机表.FILED_SANDCMC]  = value.SANDCMC;
         this.Rows[index][CEntity材机表.FILED_SANDCXS]  = value.SANDCXS;
     }
 }
Пример #25
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            this.timer1.Stop();
            //取当前时间
            DateTime cur = DateTime.Now;
            long     idt = CDataConvert.ConToValue <long>(APP.Application.Global.Configuration.Get("自动保存时间"));

            if (idt > 0)
            {
                DateTime time = this.CurrDate.AddMinutes(idt);
                if (time <= cur)
                {
                    //提醒保存操作
                    this.alertControl1.Show(this, "提示", string.Format("您已有{0}分钟没有保存项目,请及时保存数据!", idt));
                    this.CurrDate = DateTime.Now;
                }
            }
            this.timer1.Start();
        }
Пример #26
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntityOtherProject this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntityOtherProject);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntityOtherProject               = new CEntityOtherProject();
             m_CEntityOtherProject.ID            = ToolKit.ParseInt(this.Rows[index][CEntityOtherProject.FILED_ID]);
             m_CEntityOtherProject.PARENTID      = ToolKit.ParseInt(this.Rows[index][CEntityOtherProject.FILED_PARENTID]);
             m_CEntityOtherProject.NUMBER        = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityOtherProject.FILED_NUMBER]);
             m_CEntityOtherProject.NAME          = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityOtherProject.FILED_NAME]);
             m_CEntityOtherProject.UNIT          = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityOtherProject.FILED_UNIT]);
             m_CEntityOtherProject.QUANTITIES    = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityOtherProject.FILED_QUANTITIES]);
             m_CEntityOtherProject.CALCULATION   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityOtherProject.FILED_CALCULATION]);
             m_CEntityOtherProject.COEFFICIENT   = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityOtherProject.FILED_COEFFICIENT]);
             m_CEntityOtherProject.UNITPRICE     = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityOtherProject.FILED_UNITPRICE]);
             m_CEntityOtherProject.COMBINEDPRICE = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityOtherProject.FILED_COMBINEDPRICE]);
             m_CEntityOtherProject.REMARK        = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityOtherProject.FILED_REMARK]);
             this.m_index = index;
             return(m_CEntityOtherProject);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntityOtherProject.FILED_ID]            = value.ID;
         this.Rows[index][CEntityOtherProject.FILED_PARENTID]      = value.PARENTID;
         this.Rows[index][CEntityOtherProject.FILED_NUMBER]        = value.NUMBER;
         this.Rows[index][CEntityOtherProject.FILED_NAME]          = value.NAME;
         this.Rows[index][CEntityOtherProject.FILED_UNIT]          = value.UNIT;
         this.Rows[index][CEntityOtherProject.FILED_QUANTITIES]    = value.QUANTITIES;
         this.Rows[index][CEntityOtherProject.FILED_CALCULATION]   = value.CALCULATION;
         this.Rows[index][CEntityOtherProject.FILED_COEFFICIENT]   = value.COEFFICIENT;
         this.Rows[index][CEntityOtherProject.FILED_UNITPRICE]     = value.UNITPRICE;
         this.Rows[index][CEntityOtherProject.FILED_COMBINEDPRICE] = value.COMBINEDPRICE;
         this.Rows[index][CEntityOtherProject.FILED_REMARK]        = value.REMARK;
     }
 }
Пример #27
0
        private void gridView1_CustomRowCellEditForEditing(object sender, DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs e)
        {
            DataRowView currRow = this.bindingSource1.Current as DataRowView;

            if (null == currRow)
            {
                return;
            }
            popControl1.PopupControl.Size = new Size(e.Column.Width, popControl1.PopupControl.Height);
            switch (e.Column.FieldName)
            {
            case "BWBW":
                popControl1.DataSource           = this.BWBWbindingSource;
                popControl1.ColName              = new string[] { "保温部位|BWBWMC|BWBW" };
                popControl1.RemoveDefaultColName = new string[] { "BWCL", "BWCL2", "BWCL3" };
                popControl1.bind();
                break;

            case "BWCL":
                this.BWCLbindingSource.Filter = "BWMC='" + CDataConvert.ConToValue <string>(currRow["BWBW"]).Trim() + "'";
                this.bindingSource1.ResetBindings(false);
                popControl1.DataSource = this.BWCLbindingSource;
                popControl1.ColName    = new string[] { "保温材料|BWCLMC|BWCL" };
                popControl1.bind();
                break;

            case "BWCL2":
                this.BWCLbindingSource.Filter = "BWMC='" + CDataConvert.ConToValue <string>(currRow["BWBW"]).Trim() + "'";
                this.bindingSource1.ResetBindings(false);
                popControl1.DataSource = this.BWCLbindingSource;
                popControl1.ColName    = new string[] { "保温材料|BWCLMC|BWCL2" };
                popControl1.bind();
                break;

            case "BWCL3":
                this.BWCLbindingSource.Filter = "BWMC='" + CDataConvert.ConToValue <string>(currRow["BWBW"]).Trim() + "'";
                this.bindingSource1.ResetBindings(false);
                popControl1.DataSource = this.BWCLbindingSource;
                popControl1.ColName    = new string[] { "保温材料|BWCLMC|BWCL3" };
                popControl1.bind();
                break;
            }
        }
Пример #28
0
        /// <summary>
        /// 结构  筛选 返回 清单
        /// </summary>
        /// <param name="_strQDWhere">筛选条件</param>
        /// <param name="strTJ">条件</param>
        /// <param name="SWGCL">实物工程量</param>
        /// <returns></returns>
        protected DataRow GetQD(string _strQDWhere, string strTJ, float SWGCL)
        {
            QDbindingSource.Filter = _strQDWhere;
            DataRow r = APP.UnInformation.QDTable.NewRow();

            if (0 < QDbindingSource.Count)
            {
                DataRowView view = QDbindingSource[0] as DataRowView;
                r["QDBH"] = view["QDBH"];
                r["QDMC"] = view["QDMC"];
                r["DW"]   = view["DW"];
                r["XS"]   = 1;
                r["GCL"]  = 1 * SWGCL;
                r["TJ"]   = strTJ;
                r["WZLX"] = WZLX.分部分项;
                if (CDataConvert.ConToValue <string>(view["QDBH"]).Length > 5)
                {
                    r["ZJ"] = CDataConvert.ConToValue <string>(view["QDBH"]).Substring(0, 6);//清单所属章节【清单编号前六位】
                }
            }
            return(r);
        }
Пример #29
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity定额属性表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity定额属性表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity定额属性表      = new CEntity定额属性表();
             m_CEntity定额属性表.DESX = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity定额属性表.FILED_DESX]);
             this.m_index        = index;
             return(m_CEntity定额属性表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity定额属性表.FILED_DESX] = value.DESX;
     }
 }
Пример #30
0
 /// <summary>
 /// 获取当前集合指定行的实体对象
 /// </summary>
 /// <param name="index">集合中行的索引</param>
 /// <returns>相关的实体对象(没有记录则返回空)</returns>
 public CEntity关联信息表 this[int index]
 {
     get
     {
         //如果前一次执行已经转换过当前索引则直接返回
         if (index == this.m_index)
         {
             return(this.m_CEntity关联信息表);
         }
         if (this.Rows.Count > 0)
         {
             m_CEntity关联信息表        = new CEntity关联信息表();
             m_CEntity关联信息表.DINGEH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity关联信息表.FILED_DINGEH]);
             m_CEntity关联信息表.GLDEH  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity关联信息表.FILED_GLDEH]);
             m_CEntity关联信息表.DEMC   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity关联信息表.FILED_DEMC]);
             m_CEntity关联信息表.DEDW   = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity关联信息表.FILED_DEDW]);
             m_CEntity关联信息表.GLDHSX = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity关联信息表.FILED_GLDHSX]);
             m_CEntity关联信息表.GCLXS  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity关联信息表.FILED_GCLXS]);
             m_CEntity关联信息表.TISXX  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity关联信息表.FILED_TISXX]);
             m_CEntity关联信息表.JISJS  = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntity关联信息表.FILED_JISJS]);
             this.m_index          = index;
             return(m_CEntity关联信息表);
         }
         return(null);
     }
     set
     {
         this.Rows[index][CEntity关联信息表.FILED_DINGEH] = value.DINGEH;
         this.Rows[index][CEntity关联信息表.FILED_GLDEH]  = value.GLDEH;
         this.Rows[index][CEntity关联信息表.FILED_DEMC]   = value.DEMC;
         this.Rows[index][CEntity关联信息表.FILED_DEDW]   = value.DEDW;
         this.Rows[index][CEntity关联信息表.FILED_GLDHSX] = value.GLDHSX;
         this.Rows[index][CEntity关联信息表.FILED_GCLXS]  = value.GCLXS;
         this.Rows[index][CEntity关联信息表.FILED_TISXX]  = value.TISXX;
         this.Rows[index][CEntity关联信息表.FILED_JISJS]  = value.JISJS;
     }
 }