} //三级填充颜色,最靠线道一侧的填充 public MultiHatchCurveDesignClass(MultiHatchCurveItemModel mHatchItem) { this.ItemConstructor(mHatchItem.ID , mHatchItem.ItemShowName, mHatchItem.ItemOrder , "", mHatchItem.ItemShowNamePosition); this.ItemFromTable = StrUtil.GetNoNullStr(mHatchItem.ItemFromTable); this.Xfield = StrUtil.GetNoNullStr(mHatchItem.Xfield); this.Yfield = StandardCurveItemBuilder.GetJSField(mHatchItem.Yfield); this.FenJieValueOne = StrUtil.StrToDouble(mHatchItem.FenJieValueOne, -1, "分界值1为非数值型"); this.FenJieValueTwo = StrUtil.StrToDouble(mHatchItem.FenJieValueTwo, -1, "分界值2为非数值型"); this.ItemUnit = StrUtil.GetNoNullStr(mHatchItem.ItemUnit); this.UnitPosition = EnumUtil.GetEnumByStr(mHatchItem.UnitPosition, CJQXUnitPosition.MidBottomPos); this.KDCIfShow = BoolUtil.GetBoolByBindID(mHatchItem.KDCIfShow, true); this.ShowNameVSKDCHeigh = StrUtil.StrToDouble(mHatchItem.ShowNameVSKDCHeigh, 5, "绘图项题目与刻度尺距离非数值型"); this.ItemHeaderStartheigh = StrUtil.StrToDouble(mHatchItem.ItemHeaderStartheigh, 3, "非数值型"); this.HatchCount = StrUtil.StrToInt(mHatchItem.HatchCount, 1, "填充级数非数值型"); this.HatchOne = new LJJSHatch(mHatchItem.HatchColorOne, bool.FalseString); this.HatchTwo = new LJJSHatch(mHatchItem.HatchColorTwo, bool.FalseString); this.HatchThree = new LJJSHatch(mHatchItem.HatchColorThree, bool.FalseString); }
} //填充位置,左填充,或者右填充 public CurveHasHatchDesignClass(CurveHasHatchItemModel curveHatchModel) { ItemConstructor(curveHatchModel.ID, curveHatchModel.CurveShowName, curveHatchModel.ItemOrder, curveHatchModel.ItemSubStyle, curveHatchModel.ItemTitlePosition); this.JSField = StandardCurveItemBuilder.GetJSField(curveHatchModel.JSField); this.KDCIfShow = curveHatchModel.KDCIfShow; this.XFieldName = curveHatchModel.XFieldName.Trim(); this.CurveFromTableName = curveHatchModel.CurveFromTableName.Trim(); this.CurveUnit = curveHatchModel.CurveUnit.Trim(); this.CurveHeaderStartheigh = StrUtil.StrToDouble(curveHatchModel.CurveHeaderStartheigh, 3, "绘图项起始为非数值型"); this.CurveShowNameVSKDCHeigh = StrUtil.StrToDouble(curveHatchModel.CurveShowNameVSKDCHeigh, 10, "绘图项题目高度设计为非数值型"); this.UnitPosition = EnumUtil.GetEnumByStr(curveHatchModel.UnitPosition, CJQXUnitPosition.RightPos); this.ItemHatch = new LJJSHatch(curveHatchModel.FillMode , curveHatchModel.IsDrawBoundary, curveHatchModel.HatchPenColor , curveHatchModel.HatchPenWidth, curveHatchModel.FillBKColor , curveHatchModel.FillColor, curveHatchModel.HatchPattern , curveHatchModel.HatchScale, curveHatchModel.HatchBlk, "");//不需要图片填充; this.HatchPosition = EnumUtil.GetEnumByStr(curveHatchModel.HatchPosition, MyCurveHatchPos.Left); }