Beispiel #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.生成试验组");
                }
            }
        }
Beispiel #2
0
        private void grid1_SelectRow(int nline)
        {
            Decimal id = -1;

            id = Convert.ToDecimal(this.grid1.GetFocusedRowCellValue("ID"));
            foreach (DataRow dr in GridDataTabel.Rows)
            {
                if (id == Convert.ToDecimal(dr["ID"]))
                {
                    _form.SetId("dbo.进口压力仪表", id);
                    _form.LoadTabs(new string[] { "dbo.进口压力仪表" }, new decimal[] { id });
                    _form.BindControlAgin("dbo.进口压力仪表");
                }
            }
        }
Beispiel #3
0
        private void grid1_SelectRow(int nline)
        {
            Decimal id = -1;

            id = Convert.ToDecimal(this.grid1.GetFocusedRowCellValue("ID"));
            foreach (DataRow dr in GridDataTabel.Rows)
            {
                if (id == Convert.ToDecimal(dr["ID"]))
                {
                    _form.SetId("dbo.电机型号管理", id);
                    _form.LoadTabs(new string[] { "dbo.电机型号管理" }, new decimal[] { id });
                    _form.BindControlAgin("dbo.电机型号管理");
                    ID号 = id;
                    Sel_功率效率点FromDB(id);
                    Show_ListBox();
                }
            }
        }