示例#1
0
 public void save_bjcl()
 {
     SYS.Model.BJCLXXB model = new SYS.Model.BJCLXXB();
     if (!check_IsRight(out model))
     {
         //MessageBox.Show("带\"*\"项为必填项,请填写完整后再提交", "系统提示");
     }
     else
     {
         if (bjclxx.Have_BjclInDaijian(model.JCCLPH))
         {
             //MessageBox.Show("该车已经在待检序列中,是否要更新该车信息", "系统提示");
             if (MessageBox.Show("该车已经在待检序列中,是否要更新该车信息?", "系统提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)
             {
                 bjclxx.Update(model);
                 MessageBox.Show("更新成功", "系统提示");
             }
         }
         else
         {
             if (bjclxx.Savedate(model))
             {
                 MessageBox.Show("保存成功,检测编号为" + model.JCBH + ".", "系统提示");
             }
         }
     }
 }
示例#2
0
        public void display_vmas(string vmas_jcbh, SYS.Model.BJCLXXB bjcl)
        {
            SYS.Model.VMAS       vmasbjcl   = vmasdal.Get_VMAS(vmas_jcbh);
            SYS.Model.VMAS_JCXXB vmas_jcxxb = vmas_jcxxdal.Get_VMAS_jcxx(vmas_jcbh);
            reportViewer1.LocalReport.ReleaseSandboxAppDomain();
            reportViewer1.LocalReport.Dispose();
            DataSet myds = new DataSet();
            DataSet mydy = new DataSet();

            SqlParameter[] spr =
            {
                new SqlParameter("@jcclph", bjcl.JCCLPH)
            };
            string sql = "select * from BJCLXXB where jcclph=@jcclph";

            myds = DBHelperSQL.GetDataSet(sql, spr);
            reportViewer1.Visible = true;
            try
            {
                ReportParameter[] rptpara =
                {
                    new ReportParameter("ReportParameter_jczmc", vmas_jcxxb.JCZMC),
                    new ReportParameter("ReportParameter_jcczy", vmas_jcxxb.JCCZY),
                    new ReportParameter("ReportParameterjcrq",   vmasbjcl.JCRQ),
                    new ReportParameter("ReportParameterjcrq",   vmas_jcxxb.JCRQ),
                    new ReportParameter("ReportParameter_jcjsy", vmas_jcxxb.JCJSY),
                    new ReportParameter("ReportParameter_sbhzh", vmas_jcxxb.SBRZBH),
                    new ReportParameter("ReportParameter_sbmc",  vmas_jcxxb.SBMC),
                    new ReportParameter("ReportParameter_sbxh",  vmas_jcxxb.SBXH),
                    new ReportParameter("ReportParameter_sbzzc", vmas_jcxxb.SBZZC),
                    new ReportParameter("ReportParameter_dpcgj", vmas_jcxxb.DPCGJ),
                    new ReportParameter("ReportParameter_pqfxy", vmas_jcxxb.PQFXY),
                    new ReportParameter("ReportParameter_wd",    vmasbjcl.WD),
                    new ReportParameter("ReportParameter_sd",    vmasbjcl.SD),
                    new ReportParameter("ReportParameter_dqy",   vmasbjcl.DQY),
                    new ReportParameter("ReportParameter_hcjg",  vmasbjcl.HCZL),
                    new ReportParameter("ReportParameter_cojg",  vmasbjcl.COZL),
                    new ReportParameter("ReportParameter_noxjg", vmasbjcl.NOXZL),
                    new ReportParameter("ReportParameter_coxz",  vmasbjcl.COXZ),
                    new ReportParameter("ReportParameter_hcxz",  vmasbjcl.HCXZ),
                    new ReportParameter("ReportParameter_noxxz", vmasbjcl.NOXXZ),
                    new ReportParameter("ReportParameter_hcpd",  vmasbjcl.HCPD),
                    new ReportParameter("ReportParameter_copd",  vmasbjcl.COPD),
                    new ReportParameter("ReportParameter_noxpd", vmasbjcl.NOXPD),
                    new ReportParameter("ReportParameter_cj",    vmasbjcl.CJ)
                };
                reportViewer1.LocalReport.DataSources.Clear();
                reportViewer1.LocalReport.SetParameters(rptpara);
            }
            catch
            {
                throw;
            }
            //reportViewer1.LocalReport.SetParameters(rptpara);
            ReportDataSource rds = new ReportDataSource("DataSet2", myds.Tables[0]);

            reportViewer1.LocalReport.DataSources.Add(rds);
            reportViewer1.RefreshReport();
        }
示例#3
0
        public void display_zyjs(string zyjs_jcbh, SYS.Model.BJCLXXB bjcl)
        {
            SYS.Model.Zyjs_Btg   zyjsbjcl   = zyjsdal.Get_Zyjs(zyjs_jcbh);
            SYS.Model.ZYJS_JCXXB zyjs_jcxxb = zyjs_jcxxdal.Get_ZYJS_jcxx(zyjs_jcbh);
            reportViewer1.LocalReport.ReleaseSandboxAppDomain();
            reportViewer1.LocalReport.Dispose();
            DataSet myds = new DataSet();
            DataSet mydy = new DataSet();

            SqlParameter[] spr =
            {
                new SqlParameter("@jcclph", bjcl.JCCLPH)
            };
            string sql = "select * from BJCLXXB where jcclph=@jcclph";

            myds = DBHelperSQL.GetDataSet(sql, spr);
            reportViewer1.Visible = true;
            try
            {
                ReportParameter[] rptpara =
                {
                    new ReportParameter("rptParaB",                zyjs_jcxxb.JCZMC),
                    new ReportParameter("ReportParameter_btgxh",   zyjs_jcxxb.CSYQXH),
                    new ReportParameter("ReportParameterjcrq",     zyjsbjcl.JCRQ),
                    new ReportParameter("ReportParameter_wd",      zyjsbjcl.WD),
                    new ReportParameter("ReportParameter_sd",      zyjsbjcl.SD),
                    new ReportParameter("ReportParameter_dqy",     zyjsbjcl.DQY),
                    new ReportParameter("ReportParameter_one",     zyjsbjcl.DYCCLZ),
                    new ReportParameter("ReportParameter_two",     zyjsbjcl.DECCLZ),
                    new ReportParameter("ReportParameter_three",   zyjsbjcl.DSCCLZ),
                    new ReportParameter("ReportParameter_average", zyjsbjcl.PJZ),
                    new ReportParameter("ReportParameter_xz",      zyjsbjcl.BTGXZ),
                    new ReportParameter("ReportParameter_dszs",    " "),
                    new ReportParameter("ReportParameter_cj",      zyjsbjcl.PDJG),
                    new ReportParameter("ReportParameter_jcy",     zyjs_jcxxb.JCY),
                    new ReportParameter("ReportParameter_shy",     zyjs_jcxxb.SHY),
                    new ReportParameter("ReportParameter_pzr",     zyjs_jcxxb.PZR)
                };
                reportViewer1.LocalReport.DataSources.Clear();
                reportViewer1.LocalReport.SetParameters(rptpara);
            }
            catch
            {
                throw;
            }
            ReportDataSource rds = new ReportDataSource("DataSet2", myds.Tables[0]);

            reportViewer1.LocalReport.DataSources.Add(rds);
            reportViewer1.RefreshReport();
        }
示例#4
0
        public bool ref_LoginPanel(string jcclcp)
        {
            SYS.Model.BJCLXXB model = new SYS.Model.BJCLXXB();
            DataTable         dt    = bjclxx.Get_Carxx_byph(jcclcp);

            if (dt.Rows.Count > 0)
            {
                textBoxPlateNumber.Text       = dt.Rows[0]["JCCLPH"].ToString();                            //登记编号
                comboBoxMobileColor.Text      = dt.Rows[0]["PZLX"].ToString();                              //牌照类型
                textBoxMobileNumber.Text      = dt.Rows[0]["CLXHBH"].ToString();                            //车辆型号
                dateEditRegisterData.Text     = dt.Rows[0]["DJRQ"].ToString().Split(new char[] { ' ' })[0]; //车辆登记日期
                textBoxEngineNumber.Text      = dt.Rows[0]["FDJH"].ToString();                              //发动机号
                textBoxFarameNumber.Text      = dt.Rows[0]["CJH"].ToString();                               //车架号
                textBoxOwnerName.Text         = dt.Rows[0]["CZ"].ToString();                                //车主
                textBoxOwnerTel.Text          = dt.Rows[0]["CZDH"].ToString();                              //车主电话
                textBoxOwnerAdd.Text          = dt.Rows[0]["CZDZ"].ToString();                              //车主地址
                textBoxOdometer.Text          = dt.Rows[0]["LCBDS"].ToString();                             //里程表读数
                comboBoxGreenFlag.Text        = dt.Rows[0]["HBBZ"].ToString();                              //环保标志
                comboBoxInUse.Text            = dt.Rows[0]["SYQK"].ToString();                              //使用情况
                comboBoxFuelType.Text         = dt.Rows[0]["RYLX"].ToString();                              //燃油类型
                comboBoxFuelSupplyType.Text   = dt.Rows[0]["GYFF"].ToString();                              //供油方式
                comboBoxGearbox.Text          = dt.Rows[0]["BSXLX"].ToString();                             //变速器类型
                comboBoxMobileType.Text       = dt.Rows[0]["CLLX"].ToString();                              //车辆类型
                textBoxWeight.Text            = dt.Rows[0]["ZBZL"].ToString();                              //基准质量
                textBoxMostWeight.Text        = dt.Rows[0]["ZDZZL"].ToString();                             //最大总质量
                textBoxEnginePlacement.Text   = dt.Rows[0]["FDJPL"].ToString();                             //发动机排量
                textBoxEngineManufacture.Text = dt.Rows[0]["FDJSCS"].ToString();                            //发动机生产商
                textBoxStationNumber.Text     = dt.Rows[0]["JCZH"].ToString();                              //检测站号
                textBoxEnginePower.Text       = dt.Rows[0]["FDJEDGL"].ToString();                           //发动机额定功率
                textBoxEngineSpeed.Text       = dt.Rows[0]["FDJEDZS"].ToString();                           //发动机额定转速
                comboBoxChzhq.Text            = dt.Rows[0]["PFBZ"].ToString();                              //催化器使用情况
                textBoxMobileManufacture.Text = dt.Rows[0]["ZZCS"].ToString();                              //车辆制造厂商
                comboBoxCylinderCount.Text    = dt.Rows[0]["QGS"].ToString();                               //气缸数
                textBoxPneumaticWheel.Text    = dt.Rows[0]["QDLQY"].ToString();                             //驱动轮数量
                textBoxInspectorNumber.Text   = dt.Rows[0]["JCYH"].ToString();                              //检测员工号
                textBoxHdzk.Text           = dt.Rows[0]["HDZK"].ToString();                                 //核定载客数
                textBoxPneumaticWheel.Text = dt.Rows[0]["QDLQY"].ToString();                                //驱动轮气压
                comboBoxDriveStyle.Text    = dt.Rows[0]["QDXS"].ToString();                                 //驱动形式
                comboBoxJqxs.Text          = dt.Rows[0]["JQXS"].ToString();                                 //进气形式
                textBoxGearCount.Text      = dt.Rows[0]["QGS"].ToString();                                  //档位数
                textBoxAxleLoad.Text       = dt.Rows[0]["DCZZ"].ToString();                                 //单车轴重
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#5
0
        public bool ref_LoginPanel(string jcclcp)
        {
            SYS.Model.BJCLXXB model = new SYS.Model.BJCLXXB();
            DataTable         dt    = bjclxx.Get_Carxx_byph(jcclcp);

            if (dt.Rows.Count > 0)
            {
                textBoxPlateNumber.Text       = dt.Rows[0]["JCCLPH"].ToString();                            //登记编号
                comboBoxMobileColor.Text      = dt.Rows[0]["PZLX"].ToString();                              //牌照类型
                textBoxMobileNumber.Text      = dt.Rows[0]["CLXHBH"].ToString();                            //车辆型号
                dateEditRegisterData.Text     = dt.Rows[0]["DJRQ"].ToString().Split(new char[] { ' ' })[0]; //车辆登记日期
                dateEditProductDate.Text      = dt.Rows[0]["CCRQ"].ToString().Split(new char[] { ' ' })[0]; //车辆登记日期
                textBoxEngineNumber.Text      = dt.Rows[0]["FDJH"].ToString();                              //发动机号
                textBoxFarameNumber.Text      = dt.Rows[0]["CJH"].ToString();                               //车架号
                textBoxOwnerName.Text         = dt.Rows[0]["CZ"].ToString();                                //车主
                textBoxOwnerTel.Text          = dt.Rows[0]["CZDH"].ToString();                              //车主电话
                textBoxOwnerAdd.Text          = dt.Rows[0]["CZDZ"].ToString();                              //车主地址
                textBoxOdometer.Text          = dt.Rows[0]["LCBDS"].ToString();                             //里程表读数
                comboBoxInUse.Text            = dt.Rows[0]["SYQK"].ToString();                              //使用情况
                comboBoxMobileType.Text       = dt.Rows[0]["CLLX"].ToString();                              //车辆类型
                textBoxMostWeight.Text        = dt.Rows[0]["ZDZZL"].ToString();                             //最大总质量
                textBoxEnginePlacement.Text   = dt.Rows[0]["FDJPL"].ToString();                             //发动机排量
                textBoxEngineManufacture.Text = dt.Rows[0]["FDJSCS"].ToString();                            //发动机生产商
                textBoxStationNumber.Text     = dt.Rows[0]["JCZH"].ToString();                              //检测站号
                textBoxEnginePower.Text       = dt.Rows[0]["FDJEDGL"].ToString();                           //发动机额定功率
                textBoxEngineSpeed.Text       = dt.Rows[0]["FDJEDZS"].ToString();                           //发动机额定转速
                textBoxMobileManufacture.Text = dt.Rows[0]["ZZCS"].ToString();                              //车辆制造厂商
                comboBoxCylinderCount.Text    = dt.Rows[0]["QGS"].ToString();                               //气缸数
                textBoxInspectorNumber.Text   = dt.Rows[0]["JCYH"].ToString();                              //检测员工号
                comboBoxJqxs.Text             = dt.Rows[0]["JQXS"].ToString();                              //核定载客数
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#6
0
        public void display_sds(string sds_jcbh, SYS.Model.BJCLXXB bjcl)
        {
            SYS.Model.SDS_JCXXB sds_jcxxb = sds_jcxxdal.Get_SDS_jcxx(sds_jcbh);
            SYS.Model.SDS       sdsbjcl   = sdsdal.Get_SDS(sds_jcbh);
            reportViewer1.LocalReport.ReleaseSandboxAppDomain();
            reportViewer1.LocalReport.Dispose();
            DataSet myds = new DataSet();
            DataSet mydy = new DataSet();

            SqlParameter[] spr =
            {
                new SqlParameter("@jcclph", bjcl.JCCLPH)
            };
            string sql = "select * from BJCLXXB where jcclph=@jcclph";

            myds = DBHelperSQL.GetDataSet(sql, spr);
            reportViewer1.Visible = true;
            try
            {
                ReportParameter[] rptpara =
                {
                    new ReportParameter("ReportParameter_jczmc",  sds_jcxxb.JCZMC),
                    new ReportParameter("ReportParameter_jcczy",  sds_jcxxb.JCCZY),
                    new ReportParameter("ReportParameter_jcjsy",  sds_jcxxb.JCJSY),
                    new ReportParameter("ReportParameterjcrq",    sdsbjcl.JCRQ),
                    new ReportParameter("ReportParameter_wd",     sdsbjcl.WD),
                    new ReportParameter("ReportParameter_dqy",    sdsbjcl.DQY),
                    new ReportParameter("ReportParameter_sd",     sdsbjcl.SD),
                    new ReportParameter("ReportParameter_sbhzh",  sds_jcxxb.SBRZBH),
                    new ReportParameter("ReportParameter_sbmc",   sds_jcxxb.SBMC),
                    new ReportParameter("ReportParameter_sbxh",   sds_jcxxb.SBXH),
                    new ReportParameter("ReportParameter_sbzzc",  sds_jcxxb.SBZZC),
                    new ReportParameter("ReportParameter_kqxsjg", sdsbjcl.λ),
                    new ReportParameter("ReportParameter_dcojg",  sdsbjcl.DSCO),
                    new ReportParameter("ReportParameter_dhcjg",  sdsbjcl.DSHC),
                    new ReportParameter("ReportParameter_gcojg",  sdsbjcl.GDSCO),
                    new ReportParameter("ReportParameter_ghcjg",  sdsbjcl.GDSHC),
                    new ReportParameter("ReportParameter_kqxsxz", sdsbjcl.λXZ),
                    new ReportParameter("ReportParameter_dcoxz",  sdsbjcl.DSCOXZ),
                    new ReportParameter("ReportParameter_dhcxz",  sdsbjcl.DSHCXZ),
                    new ReportParameter("ReportParameter_gcoxz",  sdsbjcl.GDSCOXZ),
                    new ReportParameter("ReportParameter_ghcxz",  sdsbjcl.GDSHCXZ),
                    new ReportParameter("ReportParameter_gqxspd", sdsbjcl.λPD),
                    new ReportParameter("ReportParameter_dcopd",  sdsbjcl.DSCOPD),
                    new ReportParameter("ReportParameter_dhcpd",  sdsbjcl.DSHCPD),
                    new ReportParameter("ReportParameter_gcopd",  sdsbjcl.GDSCOPD),
                    new ReportParameter("ReportParameter_ghcpd",  sdsbjcl.GDSHCPD),
                    new ReportParameter("ReportParameter_cj",     sdsbjcl.PDJG)
                };
                reportViewer1.LocalReport.DataSources.Clear();
                reportViewer1.LocalReport.SetParameters(rptpara);
            }
            catch
            {
                throw;
            }
            ReportDataSource rds = new ReportDataSource("DataSet2", myds.Tables[0]);

            reportViewer1.LocalReport.DataSources.Add(rds);
            reportViewer1.RefreshReport();
        }
示例#7
0
        public void display_jzjs(string jzjs_jcbh, SYS.Model.BJCLXXB bjcl)
        {
            SYS.Model.JZJS       jzjs       = jzjsdal.Get_JZJS(jzjs_jcbh);
            SYS.Model.JZJS_JCXXB jzjs_jcxxb = jzjs_jcxxdal.Get_JZJS_jcxx(jzjs_jcbh);
            reportViewer1.LocalReport.ReleaseSandboxAppDomain();
            reportViewer1.LocalReport.Dispose();
            DataSet myds = new DataSet();
            DataSet mydy = new DataSet();

            SqlParameter[] spr =
            {
                new SqlParameter("@jcclph", bjcl.JCCLPH)
            };
            string sql = "select * from BJCLXXB where jcclph=@jcclph";

            myds = DBHelperSQL.GetDataSet(sql, spr);
            reportViewer1.Visible = true;
            try
            {
                ReportParameter[] rptpara =
                {
                    new ReportParameter("rptParaB",                  jzjs_jcxxb.JCZMC),
                    new ReportParameter("rptParaA",                  jzjs.JCBH),
                    new ReportParameter("ReportParameterjcrq",       jzjs.JCRQ),
                    new ReportParameter("ReportParameter_sbhzh",     jzjs_jcxxb.SBHZH),
                    new ReportParameter("ReportParameter_cgjxh",     jzjs_jcxxb.CGJXH),
                    new ReportParameter("ReportParameter_cgjscs",    jzjs_jcxxb.CGJZZC),
                    new ReportParameter("ReportParameter_btgxh",     jzjs_jcxxb.YDJXH),
                    new ReportParameter("ReportParameter_btgscs",    jzjs_jcxxb.YDJZZC),
                    new ReportParameter("ReportParameter_fdjzsjxh",  jzjs_jcxxb.ZSJXH),
                    new ReportParameter("ReportParameter_fdjzsjscs", jzjs_jcxxb.ZSJZZC),
                    new ReportParameter("ReportParameter_hjzxh",     jzjs_jcxxb.HJZXH),
                    new ReportParameter("ReportParameter_hjzscs",    jzjs_jcxxb.HJZZZC),
                    new ReportParameter("ReportParameter_pcxh",      jzjs_jcxxb.PCXH),
                    new ReportParameter("ReportParameter_pcscs",     jzjs_jcxxb.PCZZC),
                    new ReportParameter("ReportParameter_wd",        jzjs.WD),
                    new ReportParameter("ReportParameter_sd",        jzjs.SD),
                    new ReportParameter("ReportParameter_dqy",       jzjs.DQY),
                    new ReportParameter("ReportParameter_hk",        jzjs.HK),
                    new ReportParameter("ReportParameter_nk",        jzjs.NK),
                    new ReportParameter("ReportParameter_ek",        jzjs.EK),
                    new ReportParameter("ReportParameter_edgl",      bjcl.FDJEDGL),
                    new ReportParameter("ReportParameter_lbgl",      jzjs.MAXLBGL),
                    new ReportParameter("ReportParameter_edzs",      bjcl.FDJEDZS),
                    new ReportParameter("ReportParameter_lbzs",      jzjs.MAXLBZS),
                    new ReportParameter("ReportParameter_hkxz",      jzjs.GXXZ),
                    new ReportParameter("ReportParameter_nkxz",      jzjs.GXXZ),
                    new ReportParameter("ReportParameter_ekxz",      jzjs.GXXZ),
                    new ReportParameter("ReportParameter_glxz",      jzjs.GLXZ),
                    new ReportParameter("ReportParameter_zsxz",      bjcl.FDJEDZS),
                    new ReportParameter("ReportParameter_ydjg",      jzjs.PDJG),
                    new ReportParameter("ReportParameter_gljg",      jzjs.GLPD),
                    new ReportParameter("ReportParameter_zsjg",      jzjs.ZSPD),
                    new ReportParameter("ReportParameter_cj",        jzjs.CJ),
                    new ReportParameter("ReportParameter_jcy",       jzjs_jcxxb.JCY),
                    new ReportParameter("ReportParameter_shy",       jzjs_jcxxb.SHY),
                    new ReportParameter("ReportParameter_pzr",       jzjs_jcxxb.PZR),
                    new ReportParameter("ReportParameter_zcy",       jzjs_jcxxb.ZCY)
                };
                reportViewer1.LocalReport.DataSources.Clear();
                reportViewer1.LocalReport.SetParameters(rptpara);
            }
            catch
            {
                throw;
            }
            ReportDataSource rds = new ReportDataSource("DataSet2", myds.Tables[0]);

            reportViewer1.LocalReport.DataSources.Add(rds);
            //reportViewer1.SetDisplayMode(DisplayMode.PrintLayout);
            //reportViewer1.ZoomMode = ZoomMode.Percent;
            //reportViewer1.ZoomPercent = 25;
            reportViewer1.RefreshReport();
        }
示例#8
0
 private bool check_IsRight(out SYS.Model.BJCLXXB model)
 {
     model = new SYS.Model.BJCLXXB();
     if (textBoxPlateNumber.Text == "" || comboBoxMobileType.Text == "" || textBoxFarameNumber.Text == "" || textBoxWeight.Text == "" ||
         textBoxMostWeight.Text == "" || comboBoxFuelType.Text == "" || comboBoxFuelSupplyType.Text == "" || comboBoxGreenFlag.Text == "" || dateEditRegisterData.Text == "")
     {
         MessageBox.Show("车辆基本信息填写不完整,请完整填写", "系统提示");
         return(false);
     }
     else if (dateEditProductDate.Text == "" || comboBoxInUse.Text == "" || textBoxHdzk.Text == "" || textBoxEngineSpeed.Text == "" || comboBoxChzhq.Text == "")
     {
         MessageBox.Show("带*号为必填项,请完整填写", "系统提示");
         return(false);
     }
     else
     {
         model.JCCLPH  = textBoxPlateNumber.Text;        //牌照号码
         model.PZLX    = comboBoxMobileColor.Text;       //牌照颜色
         model.CLLX    = comboBoxMobileType.Text;        //车辆类型
         model.CLXHBH  = textBoxMobileNumber.Text;       //车辆型号
         model.ZZCS    = textBoxMobileManufacture.Text;  //汽车制造商
         model.ZBZL    = textBoxWeight.Text;             //基准质量
         model.ZDZZL   = textBoxMostWeight.Text;         //最大总质量
         model.CJH     = textBoxFarameNumber.Text;       //车架号
         model.FDJH    = textBoxEngineNumber.Text;       //发动机号
         model.FDJPL   = textBoxEnginePlacement.Text;    //发动机排量
         model.RYLX    = comboBoxFuelType.Text;          //燃料类型
         model.FDJEDZS = textBoxEngineSpeed.Text.Trim(); //发动机额定转速
         if (comboBoxCylinderCount.Text != "")
         {
             model.QGS = Convert.ToInt32(comboBoxCylinderCount.Text);//气缸数
         }
         else
         {
             model.QGS = 0;
         }
         model.FDJEDGL = textBoxEnginePower.Text;     //发动机额定功率
         model.GYFF    = comboBoxFuelSupplyType.Text; //供油方式
         model.BSXLX   = comboBoxGearbox.Text;        //变速箱类型
         model.HBBZ    = comboBoxGreenFlag.Text;      //环保标志
         if (textBoxOdometer.Text != "")
         {
             model.LCBDS = Convert.ToInt32(textBoxOdometer.Text);//里程表读数
         }
         else
         {
             model.LCBDS = 0;
         }
         model.CCRQ = Convert.ToDateTime(dateEditProductDate.Text.Replace('/', '-'));//生产日期
         if (textBoxHdzk.Text != "")
         {
             model.HDZK = Convert.ToInt32(textBoxHdzk.Text);//核载人员数
         }
         else
         {
             model.HDZK = 0;
         }
         model.DJRQ   = Convert.ToDateTime(dateEditRegisterData.Text.Replace('/', '-'));                                                         //登记日期
         model.FDJSCS = textBoxEngineManufacture.Text;                                                                                           //发动机制造商
         //车主信息
         model.CZ   = textBoxOwnerName.Text;                                                                                                     //车主
         model.CZDH = textBoxOwnerTel.Text;                                                                                                      //车主电话
         model.CZDZ = textBoxOwnerAdd.Text;                                                                                                      //车主地址
         //检测站信息
         model.JCZH = CarWait.jczxxb.JCZBH;                                                                                                      //检测站编号
         DateTime dt      = DateTime.Now;
         string   nowtime = dt.GetDateTimeFormats('s')[0].ToString().Replace("-", "").Replace("T", "").Replace(" ", "").Replace(":", "").Trim(); //登记编号
         model.JCBH = nowtime;                                                                                                                   //用注册的时间做为被检车辆的编号,检测完了再重新定义检测编号存储到相应的数据库中
         model.JCCS = 0;                                                                                                                         //检测次数
         model.SYQK = comboBoxInUse.Text;                                                                                                        //使用情况
         if (comboBox_detectLine.Text.Trim() != "")                                                                                              //检测线号
         {
             if (comboBox_detectLine.Text.Trim() == "优先")
             {
                 model.JCBJ = "-1";
             }
             else
             {
                 model.JCBJ = comboBox_detectLine.Text.Trim().Split(new string[] { "——" }, StringSplitOptions.RemoveEmptyEntries)[0];
             }
         }//检测线号
         else
         {
             MessageBox.Show("请选择检测线", "系统提示");
             return(false);
         }
         model.JCZT   = "请上测功机检测";                   //检测状态
         model.QRJCFF = "双怠速法";                      //检测方法
         model.PQGSL  = 0;
         model.PFBZ   = comboBoxChzhq.Text;          //催化转化器情况
         model.JCYH   = textBoxInspectorNumber.Text; //检测员工号
         //双怠速法
         model.QDLQY = textBoxPneumaticWheel.Text;   //驱动轮气压
         model.QDXS  = comboBoxDriveStyle.Text;      //驱动形式
         model.JQXS  = comboBoxJqxs.Text;            //进气形式
         if (textBoxGearCount.Text != "")
         {
             model.QGS = Convert.ToInt32(textBoxGearCount.Text);//档位数
         }
         else
         {
             model.QGS = 0;
         }
         model.DCZZ = textBoxAxleLoad.Text;//单车轴重
         return(true);
     }
 }
示例#9
0
        public void init_panel(string jcff, string jcbh, SYS.Model.BJCLXXB bjcl)
        {
            switch (jcff)
            {
            case "加载减速法":
                jzjs_result_panel childjzjspanel = new jzjs_result_panel();
                childjzjspanel.TopLevel        = false;
                childjzjspanel.Dock            = System.Windows.Forms.DockStyle.Fill;
                childjzjspanel.FormBorderStyle = FormBorderStyle.None;
                this.panel_result.Controls.Clear();
                this.panel_result.Controls.Add(childjzjspanel);
                childjzjspanel.Show();
                childjzjspanel.display_jzjs(jcbh, bjcl);
                break;

            case "自由加速法":
                zyjs_result_panel childzyjspanel = new zyjs_result_panel();
                childzyjspanel.TopLevel        = false;
                childzyjspanel.Dock            = System.Windows.Forms.DockStyle.Fill;
                childzyjspanel.FormBorderStyle = FormBorderStyle.None;
                this.panel_result.Controls.Clear();
                this.panel_result.Controls.Add(childzyjspanel);
                childzyjspanel.Show();
                childzyjspanel.display_zyjs(jcbh, bjcl);
                break;

            case "双怠速法":
                sds_result_panel childsdspanel = new sds_result_panel();
                childsdspanel.TopLevel        = false;
                childsdspanel.Dock            = System.Windows.Forms.DockStyle.Fill;
                childsdspanel.FormBorderStyle = FormBorderStyle.None;
                this.panel_result.Controls.Clear();
                this.panel_result.Controls.Add(childsdspanel);
                childsdspanel.Show();
                childsdspanel.display_sds(jcbh, bjcl);
                break;

            case "简易瞬态工况法":
                vmas_result_panel childvmaspanel = new vmas_result_panel();
                childvmaspanel.TopLevel        = false;
                childvmaspanel.Dock            = System.Windows.Forms.DockStyle.Fill;
                childvmaspanel.FormBorderStyle = FormBorderStyle.None;
                this.panel_result.Controls.Clear();
                this.panel_result.Controls.Add(childvmaspanel);
                childvmaspanel.Show();
                childvmaspanel.display_vmas(jcbh, bjcl);
                break;

            case "简易瞬态工况法after":
                vmas_resultafter_panel childvmasafterpanel = new vmas_resultafter_panel();
                childvmasafterpanel.TopLevel        = false;
                childvmasafterpanel.Dock            = System.Windows.Forms.DockStyle.Fill;
                childvmasafterpanel.FormBorderStyle = FormBorderStyle.None;
                this.panel_result.Controls.Clear();
                this.panel_result.Controls.Add(childvmasafterpanel);
                childvmasafterpanel.Show();
                childvmasafterpanel.display_vmas(jcbh, bjcl);
                break;

            default:
                break;
            }
        }