Exemplo n.º 1
0
        public override object HCGZItemOper()
        {
            HCGZItemModel hcgzItem = (HCGZItemModel)HCGZItemDesignManage.hcgzItemManageHt[_iD];
            Dictionary <string, string> tableDic = new Dictionary <string, string>();

            tableDic.Add("mainTable", hcgzItem.Main_Table);
            tableDic.Add("closedAreaTable", hcgzItem.ClosedArea_Table);
            return(tableDic);
        }
Exemplo n.º 2
0
        public override object HCGZItemOper()
        {
            HCGZItemModel hcitem       = (HCGZItemModel)HCGZItemDesignManage.hcgzItemManageHt[_iD];
            DrawItemName  drawItemName = new DrawItemName();

            drawItemName.ItemStyle        = DrawItemStyle.HCGZItem;
            drawItemName.DrawItemShowName = hcitem.ItemShowName;
            drawItemName.ItemSubStyle     = hcitem.ItemSubStyle;
            drawItemName.DrawItemID       = this._iD;
            return(drawItemName);
        }
Exemplo n.º 3
0
 protected override void HCGZItemBuild()
 {
     //HCGZItemModel hcitem = (HCGZItemModel)HCGZItemDesignManage.hcgzItemManageHt[_iD];
     if (null != HCGZItemDesignManage.hcgzItemManageHt && HCGZItemDesignManage.hcgzItemManageHt.Count > 0)
     {
         foreach (DictionaryEntry de in HCGZItemDesignManage.hcgzItemManageHt)
         {
             HCGZItemModel curmodel     = (HCGZItemModel)de.Value;
             DrawItemName  drawItemName = new DrawItemName();
             drawItemName.DrawItemID       = curmodel.ID.Trim();
             drawItemName.DrawItemShowName = curmodel.ItemShowName;
             drawItemName.ItemStyle        = DrawItemStyle.HCGZItem;
             drawItemName.ItemSubStyle     = curmodel.ItemSubStyle;
             DrawItemNamesManage.DrawItemNamesList.Add(drawItemName);
         }
     }
 }
        public HCGZItemDesignClass(HCGZItemModel hcgzItemModel)
        {
            this.ID                    = hcgzItemModel.ID;
            this.ItemShowName          = hcgzItemModel.ItemShowName;
            this.KDLTColor             = StrUtil.StrToInt(hcgzItemModel.KDLTColor, 0, "可动流体颜色为非整数型");
            this.SFLTColor             = StrUtil.StrToInt(hcgzItemModel.SFLTColor, 0, "束缚流体颜色为非整数型");
            this.TitleUnitPosition     = EnumUtil.GetEnumByStr(hcgzItemModel.TitleUnitPosition.Trim(), CJQXUnitPosition.AtRight);
            this.TitleUint             = hcgzItemModel.TitleUint;
            this.Main_GWJSField        = hcgzItemModel.Main_GWJSField.Trim();
            this.Main_T2JZZField       = StrUtil.StrTestNULL(hcgzItemModel.Main_T2JZZField.Trim(), "T2截止值未指定映射字段");
            this.Main_YYWZField        = StrUtil.StrTestNULL(hcgzItemModel.Main_YYWZField, "岩样位置未指定映射字段");
            this.ClosedArea_Feild_Y    = StrUtil.StrTestNULL(hcgzItemModel.ClosedArea_Feild_Y, "封闭区域纵向未设置映射字段");
            this.ClosedArea_Field_X    = StrUtil.StrTestNULL(hcgzItemModel.ClosedArea_Field_X, "时间");
            this.ClosedArea_Field_YYWZ = StrUtil.StrTestNULL(hcgzItemModel.ClosedArea_Field_YYWZ, "封闭区域岩样位置未设置映射字段");
            this.ClosedArea_Table      = StrUtil.StrTestNULL(hcgzItemModel.ClosedArea_Table, "封闭区域未设置映射表");
            this.Main_Table            = StrUtil.StrTestNULL(hcgzItemModel.Main_Table, "主表未设置映射表");

            ItemNameVSKDCHeigh = StrUtil.StrToDouble(hcgzItemModel.ItemNameVSKDCHeigh, 8, "刻度尺与绘图项名称间距为非数值型");
            FirstKDCStartHeigh = StrUtil.StrToDouble(hcgzItemModel.FirstKDCStartHeigh, 2, "刻度尺起始高度为非数值型");
            TitlePosition      = EnumUtil.GetEnumByStr(hcgzItemModel.TitlePosition, ItemTitlePos.Mid); //ItemOper.GetDrawingItemTitlePos(hcgzItemModel.TitlePosition);
        }
Exemplo n.º 5
0
        public override HCGZItemDesignClass GetItemDrawStrucByID(string ItemID)
        {
            HCGZItemModel hcgzItemModel = (HCGZItemModel)HashUtil.FindObjByKey(ItemID, hcgzItemManageHt);

            return(new HCGZItemDesignClass(hcgzItemModel));
        }