Exemple #1
0
        private DataTable GetItemTable(DrawItemStyle itemStyle)
        {
            ItemFromTableRead itemFrom  = new ItemFromTableRead(ItemID);
            string            tablename = itemFrom.ReturnItemInstance(itemStyle).ToString();

            return(WorkDataManage.WorkDataManage.FindWorkDataTableByName(tablename));
        }
Exemple #2
0
        public override object CurveHasHatchItemOper()
        {
            Dictionary <string, DataTable> curHasHatchDataDic = new Dictionary <string, DataTable>();
            ItemFromTableRead itemFrom  = new ItemFromTableRead(ItemID);
            string            tablename = itemFrom.ReturnItemInstance(DrawItemStyle.CurveHasHatchItem).ToString();

            return(WorkDataManage.WorkDataManage.FindWorkDataTableByName(tablename));
        }
Exemple #3
0
        public override object ImageItemOper()
        {
            //1,根据ID获得需要操作的数据表;
            ItemFromTableRead itemFromTable = new ItemFromTableRead(ItemID);
            string            tablename     = itemFromTable.ReturnItemInstance(DrawItemStyle.ImageItem).ToString();

            //2,根据表名从workdataManage获取相应的表;
            return(WorkDataManage.WorkDataManage.FindWorkDataTableByName(tablename));
        }
Exemple #4
0
        public override object NormalPuTuItemOper()
        {
            Dictionary <string, DataTable> WorkDataDic = new Dictionary <string, DataTable>();
            //1,根据ID获得需要操作的数据表;
            ItemFromTableRead           itemFromTable = new ItemFromTableRead(ItemID);
            Dictionary <string, string> tablenamedic  = (Dictionary <string, string>)itemFromTable.ReturnItemInstance(DrawItemStyle.NormalPuTuItem);

            WorkDataDic.Add("mainTable", WorkDataManage.WorkDataManage.FindWorkDataTableByName(tablenamedic["mainTable"]));
            WorkDataDic.Add("closedAreaTable", WorkDataManage.WorkDataManage.FindWorkDataTableByName(tablenamedic["closedAreaTable"]));
            return(WorkDataDic);
        }