예제 #1
0
        private void  择试验组数据()
        {
            Decimal ID = -1;

            ID        = Convert.ToDecimal(this.grid1.GetFocusedRowCellValue("ID"));
            datatable = _form.SelectTabs("dbo.生成试验组");

            foreach (DataRow dr in datatable.Rows)
            {
                if (ID == Convert.ToDecimal(dr["ID"]))
                {
                    _form.SetId("dbo.生成试验组", ID);
                    _form.LoadTabs(new string[] { "dbo.生成试验组" }, new decimal[] { ID });

                    data_被试水泵.ID值   = Convert.ToString(dr["被试水泵ID"]);
                    data_拖动电机.ID值   = Convert.ToString(dr["拖动电机ID"]);
                    data_流量仪表.ID值   = Convert.ToString(dr["流量仪表ID"]);
                    data_转速测量.ID值   = Convert.ToString(dr["转速测量ID"]);
                    data_进口压力仪表.ID值 = Convert.ToString(dr["进口压力仪表ID"]);
                    data_出口压力仪表.ID值 = Convert.ToString(dr["出口压力仪表ID"]);
                    data_功率测量仪表.ID值 = Convert.ToString(dr["功率测量仪表ID"]);
                    data_温度测量仪表.ID值 = Convert.ToString(dr["温度测量仪表ID"]);
                    data_液力耦合器.ID值  = Convert.ToString(dr["液力耦合器ID"]);

                    //    实验方案 = 方案提取.提取方案(ID);
                    _form.BindControlAgin("dbo.生成试验组");
                }
            }
        }
예제 #2
0
 private void 温度测量仪表_Load(object sender, EventArgs e)
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     _form.LoadTabs(new string[] { "dbo.温度测量仪表" }, new decimal[] { -1 });
     _form.AddControlByLayout(this.panel_传感器类型, "dbo.温度测量仪表", "传感器类型");
     _form.AddControlByLayout(this.panel_传感器编号, "dbo.温度测量仪表", "传感器编号");
     查询_温度测量仪表数据();
 }
예제 #3
0
 private void 振动测量仪表_Load(object sender, EventArgs e)
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     _form.LoadTabs(new string[] { "dbo.振动测量仪表" }, new decimal[] { -1 });
     _form.AddControlByLayout(this.panel_仪器名称, "dbo.振动测量仪表", "仪器名称");
     _form.AddControlByLayout(this.panel_仪器型号, "dbo.振动测量仪表", "仪器型号");
     _form.AddControlByLayout(this.panel_检定单位, "dbo.振动测量仪表", "检定单位");
     查询_振动测量仪表数据();
 }
예제 #4
0
 private void 进口压力仪表_Load(object sender, EventArgs e)
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     _form.LoadTabs(new string[] { "dbo.进口压力仪表" }, new decimal[] { -1 });
     _form.AddControlByLayout(this.panel_变送器型号, "dbo.进口压力仪表", "变送器型号");
     _form.AddControlByLayout(this.panel_变送器编号, "dbo.进口压力仪表", "变送器编号");
     _form.AddControlByLayout(this.panel_进口表距, "dbo.进口压力仪表", "进口表距");
     _form.AddControlByLayout(this.panel_量程上限, "dbo.进口压力仪表", "量程上限");
     _form.AddControlByLayout(this.panel_量程下限, "dbo.进口压力仪表", "量程下限");
     _form.AddControlByLayout(this.panel_有效期, "dbo.进口压力仪表", "有效期");
     查询_进口压力仪表数据();
 }
예제 #5
0
 private void 电机型号管理_Load(object sender, EventArgs e)
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     _form.LoadTabs(new string[] { "dbo.电机型号管理" }, new decimal[] { -1 });
     _form.AddControlByLayout(this.panel_电机制造商, "dbo.电机型号管理", "电机制造商");
     _form.AddControlByLayout(this.panel_出厂编号, "dbo.电机型号管理", "出厂编号");
     _form.AddControlByLayout(this.panel_电机型号, "dbo.电机型号管理", "电机型号");
     _form.AddControlByLayout(this.panel_额定电压, "dbo.电机型号管理", "额定电压");
     _form.AddControlByLayout(this.panel_额定电流, "dbo.电机型号管理", "额定电流");
     _form.AddControlByLayout(this.panel_额定功率, "dbo.电机型号管理", "额定功率");
     _form.AddControlByLayout(this.panel_额定效率, "dbo.电机型号管理", "额定效率");
     查询_电机型号管理数据();
 }
예제 #6
0
 private void 功率测量仪表_Load(object sender, EventArgs e)
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     _form.LoadTabs(new string[] { "dbo.功率测量仪表" }, new decimal[] { -1 });
     _form.AddControlByLayout(this.panel_测功方式, "dbo.功率测量仪表", "测功方式");
     _form.AddControlByLayout(this.panel_扭矩传感器规格, "dbo.功率测量仪表", "扭矩传感器规格");
     _form.AddControlByLayout(this.panel_二次仪表编号, "dbo.功率测量仪表", "二次仪表编号");
     _form.AddControlByLayout(this.panel_扭矩传感器编号, "dbo.功率测量仪表", "扭矩传感器编号");
     _form.AddControlByLayout(this.panel_检定有效日期, "dbo.功率测量仪表", "检定有效日期");
     _form.AddControlByLayout(this.panel_电测功电压选择, "dbo.功率测量仪表", "电测功电压选择");
     _form.AddControlByLayout(this.panel_变送器编号, "dbo.功率测量仪表", "变送器编号");
     查询_功率测量仪表数据();
 }
예제 #7
0
 private void 液力耦合器_Load(object sender, EventArgs e)
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     _form.LoadTabs(new string[] { "dbo.液力耦合器" }, new decimal[] { -1 });
     _form.AddControlByLayout(this.panel_耦合器制造商, "dbo.液力耦合器", "耦合器制造商");
     _form.AddControlByLayout(this.panel_耦合器型号, "dbo.液力耦合器", "耦合器型号");
     _form.AddControlByLayout(this.panel_出厂编号, "dbo.液力耦合器", "出厂编号");
     _form.AddControlByLayout(this.panel_传递功率, "dbo.液力耦合器", "传递功率");
     _form.AddControlByLayout(this.panel_传入转速, "dbo.液力耦合器", "传入转速");
     _form.AddControlByLayout(this.panel_传出转速上限, "dbo.液力耦合器", "传出转速上限");
     _form.AddControlByLayout(this.panel_传出转速下限, "dbo.液力耦合器", "传出转速下限");
     _form.AddControlByLayout(this.panel_传递效率, "dbo.液力耦合器", "传递效率");
     查询_水泵型号管理数据();
 }
예제 #8
0
 private void 流量仪表_Load(object sender, EventArgs e)
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     _form.LoadTabs(new string[] { "dbo.流量仪表" }, new decimal[] { -1 });
     _form.AddControlByLayout(this.panel_流量计类型, "dbo.流量仪表", "流量计类型");
     _form.AddControlByLayout(this.panel_传出转速上限, "dbo.流量仪表", "传出转速上限");
     _form.AddControlByLayout(this.panel_流量计编号, "dbo.流量仪表", "流量计编号");
     _form.AddControlByLayout(this.panel_传出转速下限, "dbo.流量仪表", "传出转速下限");
     _form.AddControlByLayout(this.panel_传递功率, "dbo.流量仪表", "传递功率");
     _form.AddControlByLayout(this.panel_流量计规格, "dbo.流量仪表", "流量计规格");
     _form.AddControlByLayout(this.panel_传入转速, "dbo.流量仪表", "传入转速");
     _form.AddControlByLayout(this.panel_传递效率, "dbo.流量仪表", "传递效率");
     查询_流量仪表数据();
 }
예제 #9
0
 private void 水泵型号管理_Load(object sender, EventArgs e)
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     _form.LoadTabs(new string[] { "dbo.水泵型号管理" }, new decimal[] { -1 });
     _form.AddControlByLayout(this.panel_用户名称, "dbo.水泵型号管理", "用户名称");
     _form.AddControlByLayout(this.panel_出厂编号, "dbo.水泵型号管理", "出厂编号");
     _form.AddControlByLayout(this.panel_水泵型号, "dbo.水泵型号管理", "水泵型号");
     _form.AddControlByLayout(this.panel_水泵类型, "dbo.水泵型号管理", "水泵类型");
     _form.AddControlByLayout(this.panel_额定流量, "dbo.水泵型号管理", "额定流量");
     _form.AddControlByLayout(this.panel_额定扬程, "dbo.水泵型号管理", "额定扬程");
     _form.AddControlByLayout(this.panel_额定轴功率, "dbo.水泵型号管理", "额定轴功率");
     _form.AddControlByLayout(this.panel_汽蚀余量, "dbo.水泵型号管理", "汽蚀余量");
     _form.AddControlByLayout(this.panel_进口直径, "dbo.水泵型号管理", "进口直径");
     _form.AddControlByLayout(this.panel_出口直径, "dbo.水泵型号管理", "出口直径");
     _form.AddControlByLayout(this.panel_额定转速, "dbo.水泵型号管理", "额定转速");
     _form.AddControlByLayout(this.panel_工况1_流量, "dbo.水泵型号管理", "工况1_流量");
     _form.AddControlByLayout(this.panel_工况1_扬程, "dbo.水泵型号管理", "工况1_扬程");
     _form.AddControlByLayout(this.panel_工况1_轴功率, "dbo.水泵型号管理", "工况1_轴功率");
     _form.AddControlByLayout(this.panel_工况1_汽蚀余量, "dbo.水泵型号管理", "工况1_汽蚀余量");
     _form.AddControlByLayout(this.panel_工况2_流量, "dbo.水泵型号管理", "工况2_流量");
     _form.AddControlByLayout(this.panel_工况2_扬程, "dbo.水泵型号管理", "工况2_扬程");
     _form.AddControlByLayout(this.panel_工况2_轴功率, "dbo.水泵型号管理", "工况2_轴功率");
     _form.AddControlByLayout(this.panel_工况2_汽蚀余量, "dbo.水泵型号管理", "工况2_汽蚀余量");
     _form.AddControlByLayout(this.panel_工况3_流量, "dbo.水泵型号管理", "工况3_流量");
     _form.AddControlByLayout(this.panel_工况3_扬程, "dbo.水泵型号管理", "工况3_扬程");
     _form.AddControlByLayout(this.panel_工况3_轴功率, "dbo.水泵型号管理", "工况3_轴功率");
     _form.AddControlByLayout(this.panel_工况3_汽蚀余量, "dbo.水泵型号管理", "工况3_汽蚀余量");
     _form.AddControlByLayout(this.panel_工况4_流量, "dbo.水泵型号管理", "工况4_流量");
     _form.AddControlByLayout(this.panel_工况4_扬程, "dbo.水泵型号管理", "工况4_扬程");
     _form.AddControlByLayout(this.panel_工况4_轴功率, "dbo.水泵型号管理", "工况4_轴功率");
     _form.AddControlByLayout(this.panel_工况4_汽蚀余量, "dbo.水泵型号管理", "工况4_汽蚀余量");
     _form.AddControlByLayout(this.panel_工况5_流量, "dbo.水泵型号管理", "工况5_流量");
     _form.AddControlByLayout(this.panel_工况5_扬程, "dbo.水泵型号管理", "工况5_扬程");
     _form.AddControlByLayout(this.panel_工况5_轴功率, "dbo.水泵型号管理", "工况5_轴功率");
     _form.AddControlByLayout(this.panel_工况5_汽蚀余量, "dbo.水泵型号管理", "工况5_汽蚀余量");
     查询_水泵型号管理数据();
 }