Beispiel #1
0
        public override object NormalPuTuItemOper()
        {
            NormalPuTuItemModel         model    = (NormalPuTuItemModel)NormalPuTuDesignManage.NormalPuTuDesignManageHt[_iD];
            Dictionary <string, string> tableDic = new Dictionary <string, string>();

            tableDic.Add("mainTable", model.Main_TableName);
            tableDic.Add("closedAreaTable", model.ClosedArea_Table);
            return(tableDic);
        }
        public override object NormalPuTuItemOper()
        {
            NormalPuTuItemModel curItem      = (NormalPuTuItemModel)NormalPuTuDesignManage.NormalPuTuDesignManageHt[_iD];
            DrawItemName        drawItemName = new DrawItemName();

            drawItemName.ItemStyle        = DrawItemStyle.NormalPuTuItem;
            drawItemName.DrawItemShowName = curItem.ItemShowName;
            drawItemName.ItemSubStyle     = curItem.ItemSubStyle;
            drawItemName.DrawItemID       = this._iD;
            return(drawItemName);
        }
        public NormalPuTuDesignClass(NormalPuTuItemModel nPTModel)
        {
            this.ItemConstructor(nPTModel.ID
                                 , nPTModel.ItemShowName, nPTModel.ItemOrder
                                 , nPTModel.ItemSubStyle, nPTModel.TitlePosition);
            this.Main_GWJSField        = StrUtil.GetNoNullStr(nPTModel.Main_GWJSField);
            this.Main_YYWZField        = StrUtil.GetNoNullStr(nPTModel.Main_YYWZField);
            this.Main_TableName        = StrUtil.GetNoNullStr(nPTModel.Main_TableName);
            this.ClosedArea_Table      = StrUtil.GetNoNullStr(nPTModel.ClosedArea_Table);
            this.ClosedArea_Field_X    = StrUtil.GetNoNullStr(nPTModel.ClosedArea_Field_X);
            this.ClosedArea_Feild_Y    = StrUtil.GetNoNullStr(nPTModel.ClosedArea_Feild_Y);
            this.ClosedArea_Field_YYWZ = StrUtil.GetNoNullStr(nPTModel.ClosedArea_Field_YYWZ);


            this.TitleUint         = StrUtil.GetNoNullStr(nPTModel.TitleUint);
            this.TitleUnitPosition = EnumUtil.GetEnumByStr(nPTModel.TitleUnitPosition, CJQXUnitPosition.MidBottomPos);

            this.ItemNameVSKDCHeigh = StrUtil.StrToDouble(nPTModel.ItemNameVSKDCHeigh, 5, "非数值型");
            this.FirstKDCStartHeigh = StrUtil.StrToDouble(nPTModel.FirstKDCStartHeigh, 3, "非数值型");
            FenJieValueDic          = new Dictionary <int, double>();
            if (!string.IsNullOrEmpty(nPTModel.FenJieValueSet))
            {
                string[] strarr = nPTModel.FenJieValueSet.Split(CommonDeignValue.FenJiValueSplitter);
                if (strarr.Length > 0)
                {
                    for (int i = 0; i < strarr.Length; i++)
                    {
                        if (!string.IsNullOrEmpty(strarr[i]))
                        {
                            double fenji = StrUtil.StrToDouble(strarr[i], -1, "分级设计非数值");
                            FenJieValueDic.Add(i, fenji);
                        }
                    }
                }
            }
            HatchDic = new Dictionary <int, LJJSHatch>();
            if (!string.IsNullOrEmpty(nPTModel.HatchColorSet))
            {
                string[] strarr = nPTModel.HatchColorSet.Split(CommonDeignValue.HatchSplitter);
                if (strarr.Length > 0)
                {
                    for (int i = 0; i < strarr.Length; i++)
                    {
                        if (!string.IsNullOrEmpty(strarr[i]))
                        {
                            LJJSHatch hatch = new LJJSHatch(strarr[i], bool.TrueString);
                            HatchDic.Add(i, hatch);
                        }
                    }
                }
            }
        }
 protected override void NormalPuTuItemBuild()
 {
     if (null != NormalPuTuDesignManage.NormalPuTuDesignManageHt && NormalPuTuDesignManage.NormalPuTuDesignManageHt.Count > 0)
     {
         foreach (DictionaryEntry de in NormalPuTuDesignManage.NormalPuTuDesignManageHt)
         {
             NormalPuTuItemModel curmodel     = (NormalPuTuItemModel)de.Value;
             DrawItemName        drawItemName = new DrawItemName();
             drawItemName.DrawItemID       = curmodel.ID.Trim();
             drawItemName.DrawItemShowName = curmodel.ItemShowName;
             drawItemName.ItemStyle        = DrawItemStyle.NormalPuTuItem;
             drawItemName.ItemSubStyle     = curmodel.ItemSubStyle;
             DrawItemNamesManage.DrawItemNamesList.Add(drawItemName);
         }
     }
 }
Beispiel #5
0
        public override NormalPuTuDesignClass GetItemDrawStrucByID(string ItemID)
        {
            NormalPuTuItemModel mHCurveItemModel = (NormalPuTuItemModel)HashUtil.FindObjByKey(ItemID, NormalPuTuDesignManageHt);

            return(new NormalPuTuDesignClass(mHCurveItemModel));
        }