Exemple #1
0
        //保存梁识别数据
        public void SaveBeamData(string id, Beam_XRrecord beam)
        {
            Project_Manage project = _HLT.Project_Manage_Tree.Find(x => x.id == id);
            XRecord        record  = _HLT.XRecords.Find(x => x.id == project.xrecord_id);

            record.json = beam;
        }
Exemple #2
0
 private void beam_smart_Load(object sender, EventArgs e)
 {
     select_range.SelectedIndex = 0;
     Line_Get.SelectedIndex     = 0;
     wiff_Get.SelectedIndex     = 0;
     Msg_Get.SelectedIndex      = 0;
     if (this.Tag != null)
     {
         dynamic tag = this.Tag;
         List <Drawing_Manage> ComboSource = ((List <Drawing_Manage>)tag.list).Where(x => x.type == Drawing_type.配置).ToList();
         combox_peizhi.DataSource    = ComboSource;
         combox_peizhi.ValueMember   = "id";
         combox_peizhi.DisplayMember = "name";
         if (tag.json != "null")
         {
             beam = JsonConvert.DeserializeObject <Beam_XRrecord>(tag.json); //tag.json as Beam_XRrecord;
             if (beam.pto != null)
             {
                 select_range.Text = "显示"; transf("Range");
             }
             //if (beam.side_lines != null) Line_Get.Text = "显示";
             //if (beam.dim_texts != null) wiff_Get.Text = "显示";
             //if (beam.seat_lines != null) Msg_Get.Text = "显示";
             combox_Hnt.Text  = beam.Concrete_type;
             combox_Lzj.Text  = beam.Rebar_type;
             combox_Lgj.Text  = beam.Strup_type;
             combox_kzdj.Text = beam.earth_type;
             Drawing_Manage Dlist = ComboSource.Find(x => x.id == beam.Drawing_Manage_id);
             combox_peizhi.Text = Dlist == null ? "" : Dlist.name;
             if (beam.overmm != null)
             {
                 check_gj.Checked = true;
                 over_box.Text    = beam.overmm;
             }
             if (beam.Rebar_overmm != null)
             {
                 combox_Gjcy.Text = beam.Rebar_overmm;
             }
         }
     }
 }