Esempio n. 1
0
        // public void 控件

        private void 保存_电机型号管理数据()
        {
            if (_form == null)
            {
                _form = new FormElement();
            }
            _form.SaveTabs(new string[] { "dbo.电机型号管理" });
        }
Esempio n. 2
0
 private void 保存_进口压力仪表数据()
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     _form.SaveTabs(new string[] { "dbo.进口压力仪表" });
 }
Esempio n. 3
0
 private void 保存_液力耦合器数据()
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     _form.SaveTabs(new string[] { "dbo.液力耦合器" });
 }
Esempio n. 4
0
 private void 保存_转速测量数据()
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     _form.SaveTabs(new string[] { "dbo.转速测量" });
 }
Esempio n. 5
0
        private void 保存_试验组数据()
        {
            string[] str      = new string[15];
            string[] strFiled = new string[15];
            string   strTemp  = "";

            if (_form == null)
            {
                _form = new FormElement();
            }
            str[0]       = _form.GetControlElementByInfo("dbo.生成试验组", "试验日期").GetValue();
            strFiled[0]  = "试验日期";
            str[1]       = _form.GetControlElementByInfo("dbo.生成试验组", "试验编号").GetValue();
            strFiled[1]  = "试验编号";
            str[2]       = _form.GetControlElementByInfo("dbo.生成试验组", "试验组名").GetValue();
            strFiled[2]  = "试验组名";
            strTemp      = _form.GetControlElementByInfo("dbo.生成试验组", "被试水泵ID").GetValue();
            strFiled[3]  = "被试水泵ID";
            str[3]       = data_被试水泵.获取ID(strTemp);
            strTemp      = _form.GetControlElementByInfo("dbo.生成试验组", "拖动电机ID").GetValue();
            strFiled[4]  = "拖动电机ID";
            str[4]       = data_拖动电机.获取ID(strTemp);
            strTemp      = _form.GetControlElementByInfo("dbo.生成试验组", "流量仪表ID").GetValue();
            strFiled[5]  = "流量仪表ID";
            str[5]       = data_流量仪表.获取ID(strTemp);
            strTemp      = _form.GetControlElementByInfo("dbo.生成试验组", "转速测量ID").GetValue();
            strFiled[6]  = "转速测量ID";
            str[6]       = data_转速测量.获取ID(strTemp);
            strTemp      = _form.GetControlElementByInfo("dbo.生成试验组", "进口压力仪表ID").GetValue();
            strFiled[7]  = "进口压力仪表ID";
            str[7]       = data_进口压力仪表.获取ID(strTemp);
            strTemp      = _form.GetControlElementByInfo("dbo.生成试验组", "出口压力仪表ID").GetValue();
            strFiled[8]  = "出口压力仪表ID";
            str[8]       = data_出口压力仪表.获取ID(strTemp);
            strTemp      = _form.GetControlElementByInfo("dbo.生成试验组", "功率测量仪表ID").GetValue();
            strFiled[9]  = "功率测量仪表ID";
            str[9]       = data_功率测量仪表.获取ID(strTemp);
            strTemp      = _form.GetControlElementByInfo("dbo.生成试验组", "温度测量仪表ID").GetValue();
            strFiled[10] = "温度测量仪表ID";
            str[10]      = data_温度测量仪表.获取ID(strTemp);
            strTemp      = _form.GetControlElementByInfo("dbo.生成试验组", "液力耦合器ID").GetValue();
            strFiled[11] = "液力耦合器ID";
            str[11]      = data_液力耦合器.获取ID(strTemp);
            //-----------------add室温--------------begin
            strFiled[12] = "室温";
            str[12]      = _form.GetControlElementByInfo("dbo.生成试验组", "室温").GetValue();
            //---------------- add 室温------------end
            strFiled[13] = "水温";
            str[13]      = _form.GetControlElementByInfo("dbo.生成试验组", "水温").GetValue();
            strFiled[14] = "气压";
            str[14]      = _form.GetControlElementByInfo("dbo.生成试验组", "气压").GetValue();
            _form.SaveTabs("dbo.生成试验组", strFiled, str);
        }
Esempio n. 6
0
 private void 保存_水泵型号管理数据()
 {
     if (_form == null)
     {
         _form = new FormElement();
     }
     Decimal[] ID = _form.SaveTabs(new string[] { "dbo.水泵型号管理" });
     foreach (Decimal _ID in ID)
     {
         添加图片ToDB(_ID);
         break;
     }
 }