public string GetRepairBH(_UnitProject p_CUnitProject, string p_LB) { DataRow[] list = p_CUnitProject.StructSource.ModelQuantity.Select(string.Format("BH like '%补充{0}%'", p_LB), "BH"); if (list.Count() == 0) { return("补充" + p_LB + "0001"); } for (int i = 0, j = 1; j < list.Count(); i++, j++) { int info_i = ToolKit.ParseInt(list[i]["BH"].ToString().Substring(4)); int info_j = ToolKit.ParseInt(list[j]["BH"].ToString().Substring(4)); if ((info_j - info_i) > 1) { return("补充" + p_LB + (info_i + 1).ToString("0000")); } } int info_b = ToolKit.ParseInt(list.First()["BH"].ToString().Substring(4)); if (info_b == 1) { return("补充" + p_LB + (ToolKit.ParseInt(list.Last()["BH"].ToString().Substring(4)) + 1).ToString("0000")); } else { return("补充" + p_LB + "0001"); } }
/// <summary> /// 为指定单位工程重新设置关系数据(导入单位工程的时候使用) /// </summary> /// <param name="p_ObjectKey"></param> /// <param name="p_Info"></param> public override void SetNewFiled(ref int p_ObjectKey, _UnitProject p_Info) { //同步定单位工程的关系数据 //分部分项处理 int i = 0; DataView view = this.DefaultView; view.Sort = "ID asc"; foreach (DataRowView row in view) { ///设置为新增的对象 row.Row.SetAdded(); if (row["LB"].Equals("分部-章") || row["LB"].Equals("分部-节") || row["LB"].Equals("分部-专业")) { } else { row["Key"] = p_ObjectKey + ToolKit.ParseInt(row["ID"]); row["PKey"] = p_ObjectKey + ToolKit.ParseInt(row["FPARENTID"]); } row["UnID"] = p_Info.ID; row["EnID"] = p_Info.PID; if (i == 0) { row["PKey"] = p_Info.PKey; } i++; } p_ObjectKey = ToolKit.ParseInt(view[view.Count - 1]["Key"]); view.Sort = string.Empty; }
/// <summary> /// 指定对象添加到当前数据源对象中(如果对象名称与类名称相互对应此方法可用) /// </summary> /// <param name="p_Info"></param> public virtual int AddNotInt(object p_Info) { DataRow row = this.NewRow(); Type tp = p_Info.GetType(); row.BeginEdit(); //循环列添加数据对象 foreach (DataColumn col in this.Columns) { PropertyInfo info = tp.GetProperty(col.ColumnName); if (info != null) { { try { row[col] = Convert.ChangeType(info.GetValue(p_Info, null), info.PropertyType); } catch (Exception e) { throw e; } } } } row.EndEdit(); this.Rows.Add(row); return(ToolKit.ParseInt(row["ID"])); }
/// <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; } }
/// <summary> /// 插入一条新的用户价格 /// </summary> /// <param name="p_Info">当前修改对象</param> /// <param name="p_BH">指定编号:如果是 string.Empty 则获取新编号 否则是指定编号</param> public void Insert(DataRow p_Info, string p_BH) { _UserPriceLibraryInfo newinfo = new _UserPriceLibraryInfo(); newinfo.YSBH = p_Info["YSBH"].ToString(); newinfo.YSDW = p_Info["YSDW"].ToString(); newinfo.YSMC = p_Info["YSMC"].ToString(); newinfo.YSXHL = ToolKit.ParseDecimal(p_Info["YSXHL"]); newinfo.ZCLB = p_Info["ZCLB"].ToString(); newinfo.BH = p_BH == string.Empty ? GetNumber(p_Info) : p_BH; //如果是 string.Empty 则获取新编号 否则是指定编号 newinfo.DEDJ = ToolKit.ParseDecimal(p_Info["DEDJ"]); newinfo.LB = p_Info["LB"].ToString(); newinfo.MC = this.FieldName == "MC" ? p_Info["MC", DataRowVersion.Proposed].ToString() : p_Info["MC"].ToString(); newinfo.DW = this.FieldName == "DW" ? p_Info["DW", DataRowVersion.Proposed].ToString() : p_Info["DW"].ToString(); newinfo.XHL = ToolKit.ParseDecimal(p_Info["XHL"]); newinfo.SCDJ = this.FieldName == "SCDJ" ? ToolKit.ParseDecimal(p_Info["SCDJ", DataRowVersion.Proposed]) : ToolKit.ParseDecimal(p_Info["SCDJ"]); newinfo.SL = ToolKit.ParseDecimal(p_Info["SL"]); newinfo.GGXH = p_Info["GGXH"].ToString(); newinfo.SSDWGC = this.Activitie.Name; //newinfo.SSKLB = p_Info["SSKLB"].ToString(); newinfo.SSLB = ToolKit.ParseInt(p_Info["SSLB"]); this.m_UserPriceLibraryList.Add(newinfo); //执行范围修改 设置新的编号 EditPart(p_Info, newinfo.BH); }
/// <summary> /// 指定对象添加到当前数据源对象中(如果对象名称与类名称相互对应此方法可用) /// 需要指定一个DataTable /// </summary> /// <param name="p_Info"></param> public static int Add(object p_Info, DataTable p_Table) { DataRow row = p_Table.NewRow(); Type tp = p_Info.GetType(); row.BeginEdit(); //循环列添加数据对象 foreach (DataColumn col in p_Table.Columns) { PropertyInfo info = tp.GetProperty(col.ColumnName); if (info != null) { if (info.Name != "ID") { row[col] = Convert.ChangeType(info.GetValue(p_Info, null), info.PropertyType); } } } row.EndEdit(); p_Table.Rows.Add(row); PropertyInfo pi = tp.GetProperty("ID"); if (pi != null) { pi.SetValue(p_Info, ToolKit.ParseInt(row["ID"]), null); } return(ToolKit.ParseInt(row["ID"])); }
/// <summary> /// 项目调用 统计到单项工程-2 和 项目-3 /// </summary> public void Statistics() { DataView table = this.ModelProject.DefaultView; _VariableSource t1 = null; foreach (DataRowView row in table) { //单项工程统计 if (row["DEEP"].Equals(1)) { int EnID = ToolKit.ParseInt(row["ID"]); t1 = _VariableSource.CreateInstance(EnID, -2); foreach (DataRow dr in t1.Rows) { dr["Value"] = this.ModelProjVariable.Compute("sum(Value)", string.Format(" EnID = '{0}' and Key = '{1}' and Type = -1", EnID, dr["Key"])); dr["EnID"] = EnID; dr["ID"] = EnID; } this.ModelProjVariable.MergeData(t1, false); } } t1 = _VariableSource.CreateInstance(-1, -3); foreach (DataRow dr in t1.Rows) { dr["Value"] = this.ModelProjVariable.Compute("sum(Value)", string.Format(" Key = '{0}' and Type = -2", dr["Key"])); dr["EnID"] = -1; dr["ID"] = 0; } this.ModelProjVariable.MergeData(t1, false); }
/// <summary> /// 统计当前的父行计算结果 /// </summary> /// <param name="row"></param> public void SetCurrentParent(DataRow row) { //1.当前父节点是否为0 //2.若不是0统计所有当前父节点的数据求和 //3.赋值给父节点 int id = ToolKit.ParseInt(row["ParentID"]); if (id != 0) { decimal d = 0m; decimal d1 = 0m; DataRow[] rows = this.m_Source.Select(string.Format(" ParentID = {0}", id)); foreach (DataRow item in rows) { if (!string.IsNullOrEmpty(item["Combinedprice"].ToString())) { d += ToolKit.ParseDecimal(item["Combinedprice"]); } if (!string.IsNullOrEmpty(item["cjhj"].ToString())) { d1 += ToolKit.ParseDecimal(item["cjhj"]); } } DataRow r = this.m_Source.Rows.Find(id); r.BeginEdit(); r["Combinedprice"] = d; r["cjhj"] = d1; r.EndEdit(); SetCurrentParent(r); } }
/// <summary> /// 指定对象添加到当前数据源对象中(如果对象名称与类名称相互对应此方法可用) /// </summary> /// <param name="p_Info"></param> public int Add(object p_Info, int p_UnId, int p_EnID) { DataRow row = this.NewRow(); Type tp = p_Info.GetType(); row.BeginEdit(); string str = string.Empty; //循环列添加数据对象 foreach (DataColumn col in this.Columns) { str = col.ColumnName; if (str == "PID") { str = "PARENTID"; } PropertyInfo info = tp.GetProperty(str); if (info != null) { try { if (str == "PID") { row["PID"] = Convert.ChangeType(info.GetValue(p_Info, null), info.PropertyType); } else { row[col] = Convert.ChangeType(info.GetValue(p_Info, null), info.PropertyType); } } catch (Exception e) { throw e; } } } if (p_UnId != -1) { row["UnID"] = p_UnId; } if (p_EnID != -1) { row["EnID"] = p_EnID; } row.EndEdit(); this.Rows.Add(row); try { PropertyInfo pi = tp.GetProperty("ID"); if (pi != null) { pi.SetValue(p_Info, ToolKit.ParseInt(row["ID"]), null); } } catch (Exception e) { throw e; } return(ToolKit.ParseInt(row["ID"])); }
/// <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; } }
public int GCLSR() { int flag = 0; if (this.Activitie != null) { if (this.Activitie.Application != null) { flag = ToolKit.ParseInt(this.Activitie.Application.Global.Configuration.Configs["工程量输入方式"]); } } return(flag); }
/// <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; } }
private string GetChdName(DataRow p_row) { DataRow drv = p_row; string name = string.Empty; if (drv != null) { int id = ToolKit.ParseInt(drv["ID"]); name = drv["Number"].ToString(); object count = this.Source.Compute("Count(ID)", string.Format(" ParentID = {0} ", id)); return(string.Format("{0}.{1}", name, (int)count + 1)); } return(string.Empty); }
/// <summary> /// 统计当前的父行计算结果 /// </summary> /// <param name="row"></param> public void SetCurrentParent(DataRow row) { //1.当前父节点是否为0 //2.若不是0统计所有当前父节点的数据求和 //3.赋值给父节点 int id = ToolKit.ParseInt(row["ID"]); DataRow r = this.m_Source.Rows.Find(id); decimal d = ToolKit.ParseDecimal(this.m_Source.Compute("SUM(Price)", string.Format(" ParentID = {0}", id))); r.BeginEdit(); r["Price"] = d; r.EndEdit(); //this.Parent.Statistics.ResultVarable.Set(r["Number"].ToString(), d, r["Remark"].ToString()); this.Parent.Property.Statistics.ResultVarable.Set(row["Feature"].ToString(), d, row["Remark"].ToString()); //SetCurrentParent(r); }
private void SetCurrent(DataRow row) { int id = ToolKit.ParseInt(row["ID"]); DataRow r = this.m_Source.Rows.Find(id); decimal d = 0m; DataRow[] rows = this.m_Source.Select(string.Format(" ParentID = {0}", id)); foreach (DataRow item in rows) { d += ToolKit.ParseDecimal(item["Combinedprice"]); } // ToolKit.ParseDecimal(this.m_Source.Compute("SUM(Combinedprice)", string.Format(" ParentID = {0}", id))); r.BeginEdit(); r["Combinedprice"] = d; r.EndEdit(); }
/// <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; } }
public int AddData(object p_Info) { DataRow row = this.NewRow(); Type tp = p_Info.GetType(); row.BeginEdit(); //循环列添加数据对象 foreach (DataColumn col in this.Columns) { PropertyInfo info = tp.GetProperty(col.ColumnName); if (info != null) { if (info.Name != "ID") { try { row[col] = Convert.ChangeType(info.GetValue(p_Info, null), info.PropertyType); } catch (Exception e) { throw e; } } } } row.EndEdit(); this.Rows.Add(row); try { PropertyInfo pi = tp.GetProperty("ActiviteId"); if (pi != null) { pi.SetValue(p_Info, ToolKit.ParseInt(row["ID"]), null); } } catch (Exception e) { throw e; } return(ToolKit.ParseInt(row["ID"])); }
/// <summary> /// 添加 /// </summary> /// <param name="p_Info"></param> public void Add(DataRow p_Info) { _UserPriceLibraryInfo newinfo = new _UserPriceLibraryInfo(); newinfo.YSBH = p_Info["YSBH"].ToString(); newinfo.YSDW = p_Info["YSDW"].ToString(); newinfo.YSMC = p_Info["YSMC"].ToString(); newinfo.YSXHL = ToolKit.ParseDecimal(p_Info["YSXHL"]); newinfo.ZCLB = p_Info["ZCLB"].ToString(); newinfo.BH = p_Info["BH"].ToString(); newinfo.DEDJ = ToolKit.ParseDecimal(p_Info["DEDJ"]); newinfo.DW = p_Info["DW"].ToString(); newinfo.LB = p_Info["LB"].ToString(); newinfo.MC = p_Info["MC"].ToString(); newinfo.XHL = ToolKit.ParseDecimal(p_Info["XHL"]); newinfo.SCDJ = ToolKit.ParseDecimal(p_Info["SCDJ"]); newinfo.SL = ToolKit.ParseDecimal(p_Info["SL"]); newinfo.SSDWGC = this.Activitie.Name; newinfo.SSKLB = p_Info["SSKLB"].ToString(); newinfo.SSLB = ToolKit.ParseInt(p_Info["SSLB"]); this.m_UserPriceLibraryList.Add(newinfo); }
/// <summary> /// 费率统计计算 /// </summary> /// <param name="row"></param> public void SetRate(DataRow row) { DataRow[] rows = this.m_Source.Select(string.Format("ParentID = {0}", row["ID"])); if (rows.Length > 0) { foreach (DataRow r in rows) { SetRate(r); } if (IsEdit) { int id = ToolKit.ParseInt(row["ID"]); DataRow r = this.m_Source.Rows.Find(id); decimal d = ToolKit.ParseDecimal(this.m_Source.Compute("SUM(Coefficient)", string.Format(" ParentID = {0}", id))); IsEdit = false; r.BeginEdit(); r["Coefficient"] = d; r.EndEdit(); IsEdit = true; } } }
/// <summary> /// 获取当前集合指定行的实体对象 /// </summary> /// <param name="index">集合中行的索引</param> /// <returns>相关的实体对象(没有记录则返回空)</returns> public CEntityQuantityUnitSummary this[int index] { get { //如果前一次执行已经转换过当前索引则直接返回 if (index == this.m_index) { return(this.m_CEntityQuantityUnitSummary); } if (this.Rows.Count > 0) { m_CEntityQuantityUnitSummary = new CEntityQuantityUnitSummary(); m_CEntityQuantityUnitSummary.ID = ToolKit.ParseInt(this.Rows[index][CEntityQuantityUnitSummary.FILED_ID]); m_CEntityQuantityUnitSummary.XID = ToolKit.ParseInt(this.Rows[index][CEntityQuantityUnitSummary.FILED_XID]); m_CEntityQuantityUnitSummary.DXID = ToolKit.ParseInt(this.Rows[index][CEntityQuantityUnitSummary.FILED_DXID]); m_CEntityQuantityUnitSummary.DWID = ToolKit.ParseInt(this.Rows[index][CEntityQuantityUnitSummary.FILED_DWID]); m_CEntityQuantityUnitSummary.QID = ToolKit.ParseInt(this.Rows[index][CEntityQuantityUnitSummary.FILED_QID]); m_CEntityQuantityUnitSummary.ZID = ToolKit.ParseInt(this.Rows[index][CEntityQuantityUnitSummary.FILED_ZID]); m_CEntityQuantityUnitSummary.ZCID = ToolKit.ParseInt(this.Rows[index][CEntityQuantityUnitSummary.FILED_ZCID]); m_CEntityQuantityUnitSummary.ZCLB = ToolKit.ParseInt(this.Rows[index][CEntityQuantityUnitSummary.FILED_ZCLB]); m_CEntityQuantityUnitSummary.CJXXID = ToolKit.ParseInt(this.Rows[index][CEntityQuantityUnitSummary.FILED_CJXXID]); m_CEntityQuantityUnitSummary.YSBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_YSBH]); m_CEntityQuantityUnitSummary.YSMC = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_YSMC]); m_CEntityQuantityUnitSummary.YSDW = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_YSDW]); m_CEntityQuantityUnitSummary.YSXHL = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityQuantityUnitSummary.FILED_YSXHL]); m_CEntityQuantityUnitSummary.DEDJ = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityQuantityUnitSummary.FILED_DEDJ]); m_CEntityQuantityUnitSummary.DEHJ = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityQuantityUnitSummary.FILED_DEHJ]); m_CEntityQuantityUnitSummary.BH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_BH]); m_CEntityQuantityUnitSummary.LB = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_LB]); m_CEntityQuantityUnitSummary.SDCLB = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_SDCLB]); m_CEntityQuantityUnitSummary.SDCXS = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_SDCXS]); m_CEntityQuantityUnitSummary.SDCHJ = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityQuantityUnitSummary.FILED_SDCHJ]); m_CEntityQuantityUnitSummary.MC = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_MC]); m_CEntityQuantityUnitSummary.GGXH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_GGXH]); m_CEntityQuantityUnitSummary.DW = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_DW]); m_CEntityQuantityUnitSummary.SCDJ = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityQuantityUnitSummary.FILED_SCDJ]); m_CEntityQuantityUnitSummary.SCHJ = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityQuantityUnitSummary.FILED_SCHJ]); m_CEntityQuantityUnitSummary.XHL = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityQuantityUnitSummary.FILED_XHL]); m_CEntityQuantityUnitSummary.SL = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityQuantityUnitSummary.FILED_SL]); m_CEntityQuantityUnitSummary.SLH = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityQuantityUnitSummary.FILED_SLH]); m_CEntityQuantityUnitSummary.DJC = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_DJC]); m_CEntityQuantityUnitSummary.HJC = CDataConvert.ConToValue <System.Decimal>(this.Rows[index][CEntityQuantityUnitSummary.FILED_HJC]); m_CEntityQuantityUnitSummary.IFPB = ToolKit.ParseBoolen(this.Rows[index][CEntityQuantityUnitSummary.FILED_IFPB]); m_CEntityQuantityUnitSummary.IFZG = ToolKit.ParseBoolen(this.Rows[index][CEntityQuantityUnitSummary.FILED_IFZG]); m_CEntityQuantityUnitSummary.IFJG = ToolKit.ParseBoolen(this.Rows[index][CEntityQuantityUnitSummary.FILED_IFJG]); m_CEntityQuantityUnitSummary.IFYG = ToolKit.ParseBoolen(this.Rows[index][CEntityQuantityUnitSummary.FILED_IFYG]); m_CEntityQuantityUnitSummary.IFFX = ToolKit.ParseBoolen(this.Rows[index][CEntityQuantityUnitSummary.FILED_IFFX]); m_CEntityQuantityUnitSummary.IFSDSL = ToolKit.ParseBoolen(this.Rows[index][CEntityQuantityUnitSummary.FILED_IFSDSL]); m_CEntityQuantityUnitSummary.IFSDSCDJ = ToolKit.ParseBoolen(this.Rows[index][CEntityQuantityUnitSummary.FILED_IFSDSCDJ]); m_CEntityQuantityUnitSummary.IFSDGLJ = ToolKit.ParseBoolen(this.Rows[index][CEntityQuantityUnitSummary.FILED_IFSDGLJ]); m_CEntityQuantityUnitSummary.SSKLB = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_SSKLB]); m_CEntityQuantityUnitSummary.SSXMLB = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_SSXMLB]); m_CEntityQuantityUnitSummary.SSXM = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_SSXM]); m_CEntityQuantityUnitSummary.GLJBZ = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_GLJBZ]); m_CEntityQuantityUnitSummary.GLJID = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityQuantityUnitSummary.FILED_GLJID]); this.m_index = index; return(m_CEntityQuantityUnitSummary); } return(null); } set { this.Rows[index][CEntityQuantityUnitSummary.FILED_ID] = value.ID; this.Rows[index][CEntityQuantityUnitSummary.FILED_XID] = value.XID; this.Rows[index][CEntityQuantityUnitSummary.FILED_DXID] = value.DXID; this.Rows[index][CEntityQuantityUnitSummary.FILED_DWID] = value.DWID; this.Rows[index][CEntityQuantityUnitSummary.FILED_QID] = value.QID; this.Rows[index][CEntityQuantityUnitSummary.FILED_ZID] = value.ZID; this.Rows[index][CEntityQuantityUnitSummary.FILED_ZCID] = value.ZCID; this.Rows[index][CEntityQuantityUnitSummary.FILED_ZCLB] = value.ZCLB; this.Rows[index][CEntityQuantityUnitSummary.FILED_CJXXID] = value.CJXXID; this.Rows[index][CEntityQuantityUnitSummary.FILED_YSBH] = value.YSBH; this.Rows[index][CEntityQuantityUnitSummary.FILED_YSMC] = value.YSMC; this.Rows[index][CEntityQuantityUnitSummary.FILED_YSDW] = value.YSDW; this.Rows[index][CEntityQuantityUnitSummary.FILED_YSXHL] = value.YSXHL; this.Rows[index][CEntityQuantityUnitSummary.FILED_DEDJ] = value.DEDJ; this.Rows[index][CEntityQuantityUnitSummary.FILED_DEHJ] = value.DEHJ; this.Rows[index][CEntityQuantityUnitSummary.FILED_BH] = value.BH; this.Rows[index][CEntityQuantityUnitSummary.FILED_LB] = value.LB; this.Rows[index][CEntityQuantityUnitSummary.FILED_SDCLB] = value.SDCLB; this.Rows[index][CEntityQuantityUnitSummary.FILED_SDCXS] = value.SDCXS; this.Rows[index][CEntityQuantityUnitSummary.FILED_SDCHJ] = value.SDCHJ; this.Rows[index][CEntityQuantityUnitSummary.FILED_MC] = value.MC; this.Rows[index][CEntityQuantityUnitSummary.FILED_GGXH] = value.GGXH; this.Rows[index][CEntityQuantityUnitSummary.FILED_DW] = value.DW; this.Rows[index][CEntityQuantityUnitSummary.FILED_SCDJ] = value.SCDJ; this.Rows[index][CEntityQuantityUnitSummary.FILED_SCHJ] = value.SCHJ; this.Rows[index][CEntityQuantityUnitSummary.FILED_XHL] = value.XHL; this.Rows[index][CEntityQuantityUnitSummary.FILED_SL] = value.SL; this.Rows[index][CEntityQuantityUnitSummary.FILED_SLH] = value.SLH; this.Rows[index][CEntityQuantityUnitSummary.FILED_DJC] = value.DJC; this.Rows[index][CEntityQuantityUnitSummary.FILED_HJC] = value.HJC; this.Rows[index][CEntityQuantityUnitSummary.FILED_IFPB] = value.IFPB; this.Rows[index][CEntityQuantityUnitSummary.FILED_IFZG] = value.IFZG; this.Rows[index][CEntityQuantityUnitSummary.FILED_IFJG] = value.IFJG; this.Rows[index][CEntityQuantityUnitSummary.FILED_IFYG] = value.IFYG; this.Rows[index][CEntityQuantityUnitSummary.FILED_IFFX] = value.IFFX; this.Rows[index][CEntityQuantityUnitSummary.FILED_IFSDSL] = value.IFSDSL; this.Rows[index][CEntityQuantityUnitSummary.FILED_IFSDSCDJ] = value.IFSDSCDJ; this.Rows[index][CEntityQuantityUnitSummary.FILED_IFSDGLJ] = value.IFSDGLJ; this.Rows[index][CEntityQuantityUnitSummary.FILED_SSKLB] = value.SSKLB; this.Rows[index][CEntityQuantityUnitSummary.FILED_SSXMLB] = value.SSXMLB; this.Rows[index][CEntityQuantityUnitSummary.FILED_SSXM] = value.SSXM; this.Rows[index][CEntityQuantityUnitSummary.FILED_GLJBZ] = value.GLJBZ; this.Rows[index][CEntityQuantityUnitSummary.FILED_GLJID] = value.GLJID; } }
/// <summary> /// 获取当前集合指定行的实体对象 /// </summary> /// <param name="index">集合中行的索引</param> /// <returns>相关的实体对象(没有记录则返回空)</returns> public CEntityStandardConversion this[int index] { get { //如果前一次执行已经转换过当前索引则直接返回 if (index == this.m_index) { return(this.m_CEntityStandardConversion); } if (this.Rows.Count > 0) { m_CEntityStandardConversion = new CEntityStandardConversion(); m_CEntityStandardConversion.ID = ToolKit.ParseInt(this.Rows[index][CEntityStandardConversion.FILED_ID]); m_CEntityStandardConversion.XID = ToolKit.ParseInt(this.Rows[index][CEntityStandardConversion.FILED_XID]); m_CEntityStandardConversion.DID = ToolKit.ParseInt(this.Rows[index][CEntityStandardConversion.FILED_DID]); m_CEntityStandardConversion.QID = ToolKit.ParseInt(this.Rows[index][CEntityStandardConversion.FILED_QID]); m_CEntityStandardConversion.ZID = ToolKit.ParseInt(this.Rows[index][CEntityStandardConversion.FILED_ZID]); m_CEntityStandardConversion.IFXZ = ToolKit.ParseBoolen(this.Rows[index][CEntityStandardConversion.FILED_IFXZ]); m_CEntityStandardConversion.IFHS = ToolKit.ParseBoolen(this.Rows[index][CEntityStandardConversion.FILED_IFHS]); m_CEntityStandardConversion.DINGEH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_DINGEH]); m_CEntityStandardConversion.HUANSLB = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_HUANSLB]); m_CEntityStandardConversion.TISXX = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_TISXX]); m_CEntityStandardConversion.HUANSJS_R = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_HUANSJS_R]); m_CEntityStandardConversion.HUANSDEH_C = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_HUANSDEH_C]); m_CEntityStandardConversion.ZENGL_J = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_ZENGL_J]); m_CEntityStandardConversion.ZC = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_ZC]); m_CEntityStandardConversion.SB = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_SB]); m_CEntityStandardConversion.DJDW = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_DJDW]); m_CEntityStandardConversion.FZ = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_FZ]); m_CEntityStandardConversion.XHLB = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_XHLB]); m_CEntityStandardConversion.THZHC = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_THZHC]); m_CEntityStandardConversion.THWZFC = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_THWZFC]); m_CEntityStandardConversion.HSXI = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityStandardConversion.FILED_HSXI]); this.m_index = index; return(m_CEntityStandardConversion); } return(null); } set { this.Rows[index][CEntityStandardConversion.FILED_ID] = value.ID; this.Rows[index][CEntityStandardConversion.FILED_XID] = value.XID; this.Rows[index][CEntityStandardConversion.FILED_DID] = value.DID; this.Rows[index][CEntityStandardConversion.FILED_QID] = value.QID; this.Rows[index][CEntityStandardConversion.FILED_ZID] = value.ZID; this.Rows[index][CEntityStandardConversion.FILED_IFXZ] = value.IFXZ; this.Rows[index][CEntityStandardConversion.FILED_IFHS] = value.IFHS; this.Rows[index][CEntityStandardConversion.FILED_DINGEH] = value.DINGEH; this.Rows[index][CEntityStandardConversion.FILED_HUANSLB] = value.HUANSLB; this.Rows[index][CEntityStandardConversion.FILED_TISXX] = value.TISXX; this.Rows[index][CEntityStandardConversion.FILED_HUANSJS_R] = value.HUANSJS_R; this.Rows[index][CEntityStandardConversion.FILED_HUANSDEH_C] = value.HUANSDEH_C; this.Rows[index][CEntityStandardConversion.FILED_ZENGL_J] = value.ZENGL_J; this.Rows[index][CEntityStandardConversion.FILED_ZC] = value.ZC; this.Rows[index][CEntityStandardConversion.FILED_SB] = value.SB; this.Rows[index][CEntityStandardConversion.FILED_DJDW] = value.DJDW; this.Rows[index][CEntityStandardConversion.FILED_FZ] = value.FZ; this.Rows[index][CEntityStandardConversion.FILED_XHLB] = value.XHLB; this.Rows[index][CEntityStandardConversion.FILED_THZHC] = value.THZHC; this.Rows[index][CEntityStandardConversion.FILED_THWZFC] = value.THWZFC; this.Rows[index][CEntityStandardConversion.FILED_HSXI] = value.HSXI; } }
public int GetID() { DataRow row = this.m_DataSource.Rows[this.m_DataSource.Rows.Count - 1]; return(ToolKit.ParseInt(row["ID"]) + 1); }
/// <summary> /// 获取当前集合指定行的实体对象 /// </summary> /// <param name="index">集合中行的索引</param> /// <returns>相关的实体对象(没有记录则返回空)</returns> public CEntityLibraryUserPrice this[int index] { get { //如果前一次执行已经转换过当前索引则直接返回 if (index == this.m_index) { return(this.m_CEntityLibraryUserPrice); } if (this.Rows.Count > 0) { m_CEntityLibraryUserPrice = new CEntityLibraryUserPrice(); m_CEntityLibraryUserPrice.ID = ToolKit.ParseInt(this.Rows[index][CEntityLibraryUserPrice.FILED_ID]); m_CEntityLibraryUserPrice.XID = ToolKit.ParseInt(this.Rows[index][CEntityLibraryUserPrice.FILED_XID]); m_CEntityLibraryUserPrice.DID = ToolKit.ParseInt(this.Rows[index][CEntityLibraryUserPrice.FILED_DID]); m_CEntityLibraryUserPrice.QID = ToolKit.ParseInt(this.Rows[index][CEntityLibraryUserPrice.FILED_QID]); m_CEntityLibraryUserPrice.ZID = ToolKit.ParseInt(this.Rows[index][CEntityLibraryUserPrice.FILED_ZID]); m_CEntityLibraryUserPrice.RID = ToolKit.ParseInt(this.Rows[index][CEntityLibraryUserPrice.FILED_RID]); m_CEntityLibraryUserPrice.PID = ToolKit.ParseInt(this.Rows[index][CEntityLibraryUserPrice.FILED_PID]); m_CEntityLibraryUserPrice.CAIJBH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJBH]); m_CEntityLibraryUserPrice.CAIJLB = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJLB]); m_CEntityLibraryUserPrice.CAIJMC = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJMC]); m_CEntityLibraryUserPrice.CAIJXH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJXH]); m_CEntityLibraryUserPrice.CAIJDW = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJDW]); m_CEntityLibraryUserPrice.CAIJDJ = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJDJ]); m_CEntityLibraryUserPrice.CAIJDJH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJDJH]); m_CEntityLibraryUserPrice.CAIJSJ = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJSJ]); m_CEntityLibraryUserPrice.CAIJSJH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJSJH]); m_CEntityLibraryUserPrice.CAIJSDJC = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJSDJC]); m_CEntityLibraryUserPrice.CAIJSHJC = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJSHJC]); m_CEntityLibraryUserPrice.CAIJXHL = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJXHL]); m_CEntityLibraryUserPrice.CAIJXHLH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJXHLH]); m_CEntityLibraryUserPrice.CAIJSLH = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJSLH]); m_CEntityLibraryUserPrice.CAIJIFZG = ToolKit.ParseBoolen(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJIFZG]); m_CEntityLibraryUserPrice.CAIJIFGJ = ToolKit.ParseBoolen(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJIFGJ]); m_CEntityLibraryUserPrice.CAIJIFCJ = ToolKit.ParseBoolen(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJIFCJ]); m_CEntityLibraryUserPrice.CAIJIFSD = ToolKit.ParseBoolen(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJIFSD]); m_CEntityLibraryUserPrice.CAIJBZ = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJBZ]); m_CEntityLibraryUserPrice.LIBRARYTYPE = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_LIBRARYTYPE]); m_CEntityLibraryUserPrice.SOURCE = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_SOURCE]); m_CEntityLibraryUserPrice.ADDTYPE = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_ADDTYPE]); m_CEntityLibraryUserPrice.ADDCOUNT = CDataConvert.ConToValue <System.String>(this.Rows[index][CEntityLibraryUserPrice.FILED_ADDCOUNT]); this.m_index = index; return(m_CEntityLibraryUserPrice); } return(null); } set { this.Rows[index][CEntityLibraryUserPrice.FILED_ID] = value.ID; this.Rows[index][CEntityLibraryUserPrice.FILED_XID] = value.XID; this.Rows[index][CEntityLibraryUserPrice.FILED_DID] = value.DID; this.Rows[index][CEntityLibraryUserPrice.FILED_QID] = value.QID; this.Rows[index][CEntityLibraryUserPrice.FILED_ZID] = value.ZID; this.Rows[index][CEntityLibraryUserPrice.FILED_RID] = value.RID; this.Rows[index][CEntityLibraryUserPrice.FILED_PID] = value.PID; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJBH] = value.CAIJBH; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJLB] = value.CAIJLB; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJMC] = value.CAIJMC; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJXH] = value.CAIJXH; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJDW] = value.CAIJDW; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJDJ] = value.CAIJDJ; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJDJH] = value.CAIJDJH; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJSJ] = value.CAIJSJ; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJSJH] = value.CAIJSJH; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJSDJC] = value.CAIJSDJC; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJSHJC] = value.CAIJSHJC; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJXHL] = value.CAIJXHL; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJXHLH] = value.CAIJXHLH; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJSLH] = value.CAIJSLH; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJIFZG] = value.CAIJIFZG; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJIFGJ] = value.CAIJIFGJ; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJIFCJ] = value.CAIJIFCJ; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJIFSD] = value.CAIJIFSD; this.Rows[index][CEntityLibraryUserPrice.FILED_CAIJBZ] = value.CAIJBZ; this.Rows[index][CEntityLibraryUserPrice.FILED_LIBRARYTYPE] = value.LIBRARYTYPE; this.Rows[index][CEntityLibraryUserPrice.FILED_SOURCE] = value.SOURCE; this.Rows[index][CEntityLibraryUserPrice.FILED_ADDTYPE] = value.ADDTYPE; this.Rows[index][CEntityLibraryUserPrice.FILED_ADDCOUNT] = value.ADDCOUNT; } }