public override object MultiHatchCurveItemOper()
        {
            MultiHatchCurveItemModel curItem      = (MultiHatchCurveItemModel)MultiHatchCurveDesignManage.MultiHatchCurveDesignManageHt[_iD];
            DrawItemName             drawItemName = new DrawItemName();

            drawItemName.ItemStyle        = DrawItemStyle.MultiHatchCurveItem;
            drawItemName.DrawItemShowName = curItem.ItemShowName;
            drawItemName.ItemSubStyle     = CommonData.DrawCommonData.StandardStyle;
            drawItemName.DrawItemID       = this._iD;
            return(drawItemName);
        }
 protected override void MultiHatchCurveItemBuild()
 {
     if (null != MultiHatchCurveDesignManage.MultiHatchCurveDesignManageHt && MultiHatchCurveDesignManage.MultiHatchCurveDesignManageHt.Count > 0)
     {
         foreach (DictionaryEntry de in MultiHatchCurveDesignManage.MultiHatchCurveDesignManageHt)
         {
             MultiHatchCurveItemModel curmodel     = (MultiHatchCurveItemModel)de.Value;
             DrawItemName             drawItemName = new DrawItemName();
             drawItemName.DrawItemID       = curmodel.ID.Trim();
             drawItemName.DrawItemShowName = curmodel.ItemShowName;
             drawItemName.ItemStyle        = DrawItemStyle.MultiHatchCurveItem;
             drawItemName.ItemSubStyle     = DrawCommonData.StandardStyle;
             DrawItemNamesManage.DrawItemNamesList.Add(drawItemName);
         }
     }
 }
Esempio n. 3
0
 }                                        //三级填充颜色,最靠线道一侧的填充
 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);
 }
Esempio n. 4
0
        public override MultiHatchCurveDesignClass GetItemDrawStrucByID(string ItemID)
        {
            MultiHatchCurveItemModel mHCurveItemModel = (MultiHatchCurveItemModel)HashUtil.FindObjByKey(ItemID, MultiHatchCurveDesignManageHt);

            return(new MultiHatchCurveDesignClass(mHCurveItemModel));
        }
Esempio n. 5
0
        public override object MultiHatchCurveItemOper()
        {
            MultiHatchCurveItemModel model = (MultiHatchCurveItemModel)MultiHatchCurveDesignManage.MultiHatchCurveDesignManageHt[_iD];

            return(model.ItemFromTable.Trim());
        }