public string           JsField;            //井深对应的字段;

        public LineItemStruct(CurveItemModel curveItemModel)
        {
            LineItemID        = curveItemModel.ID;
            CurveItemShowName = curveItemModel.CJQXShowName;
            LIFromTableName   = curveItemModel.CJQXFromTableName.Trim();
            LineItemUnit      = curveItemModel.CJQXUnit.Trim();
            LineItemType      = EnumUtil.GetEnumByStr(curveItemModel.CJQXlineClass.Trim(), CJQXLineClass.Continus);// CurveItemDesignClass.GetLineClassByText();

            KDCIfShow       = BoolUtil.GetBoolByBindID(curveItemModel.KDCIfShow, true);
            LIFromFieldName = curveItemModel.CJQXFieldName.Trim();
            JsField         = StandardCurveItemBuilder.depth;
            if (!string.IsNullOrEmpty(curveItemModel.JSField.Trim()))
            {
                JsField = curveItemModel.JSField.Trim();
            }

            FirstKDCStartHeigh = StrUtil.StrToDouble(curveItemModel.CJQXHeaderStartheigh.Trim(), "缺少绘图项顶部起始位置数据", "绘图项顶部起始位置数据非数值型");
            LINameVSKDCHeigh   = StrUtil.StrToDouble(curveItemModel.QXNameVSKDCHeigh.Trim(), 4, "曲线项名称与宽度尺的距离值为非数值型");


            UnitPosition     = EnumUtil.GetEnumByStr(curveItemModel.UnitPosition.Trim(), CJQXUnitPosition.AtRight);
            LineItemTitlePos = EnumUtil.GetEnumByStr(curveItemModel.QXItemTitlePosition, ItemTitlePos.Mid); //ItemOper.GetDrawingItemTitlePos(curveItemModel.QXItemTitlePosition.Trim());
            LineItemChaoJie  = EnumUtil.GetEnumByStr(curveItemModel.CJQXChaoJie.Trim(), CJQXChaoJie.BiaoZhu);
            LiSubClass       = curveItemModel.LIDISubStyle.Trim();
        }
        public override object LineItemOper()
        {
            CurveItemModel cur          = (CurveItemModel)CurveItemDesignManage.CurveItemDesignHt[_iD];
            DrawItemName   drawItemName = new DrawItemName();

            drawItemName.ItemStyle        = DrawItemStyle.LineItem;
            drawItemName.DrawItemShowName = cur.CJQXShowName.Trim();
            drawItemName.ItemSubStyle     = cur.LIDISubStyle.Trim();
            drawItemName.DrawItemID       = this._iD;

            return(drawItemName);
        }
 protected override void CurveItemBuild()
 {
     if (null != CurveItemDesignManage.CurveItemDesignHt && CurveItemDesignManage.CurveItemDesignHt.Count > 0)
     {
         foreach (DictionaryEntry de in CurveItemDesignManage.CurveItemDesignHt)
         {
             CurveItemModel curmodel     = (CurveItemModel)de.Value;
             DrawItemName   drawItemName = new DrawItemName();
             drawItemName.DrawItemID       = curmodel.ID.Trim();
             drawItemName.DrawItemShowName = curmodel.CJQXShowName;
             drawItemName.ItemStyle        = DrawItemStyle.LineItem;
             drawItemName.ItemSubStyle     = curmodel.LIDISubStyle;
             DrawItemNamesManage.DrawItemNamesList.Add(drawItemName);
         }
     }
 }
Esempio n. 4
0
        public override LineItemStruct GetItemDrawStrucByID(string ItemID)
        {
            CurveItemModel curveItemModel = (CurveItemModel)HashUtil.FindObjByKey(ItemID, CurveItemDesignHt);

            return(new LineItemStruct(curveItemModel));
        }
Esempio n. 5
0
        public override object LineItemOper()
        {
            CurveItemModel cur = (CurveItemModel)CurveItemDesignManage.CurveItemDesignHt[_iD];

            return(cur.CJQXFromTableName.Trim());
        }