private void execute(object source, ElapsedEventArgs e)
            {
                TMSConverter converter = TMSConverter.GetInstance();

                FillUtil.FillSelect(this.document, "DropDownList5", model.City, converter.Convert("CITY", model.City), true);
                DistrictFiller filler = new DistrictFiller(this.document, this.model);

                filler.Fill();
            }
            private void execute(object source, ElapsedEventArgs e)
            {
                TMSConverter converter = TMSConverter.GetInstance();

                FillUtil.FillSelect(this.document, "DropDownList6", model.District, converter.Convert("DISTRICT", model.District));
                RegisterAddressFiller filler = new RegisterAddressFiller(this.document, this.model);

                filler.Fill();
            }
Example #3
0
        public void Fill(object data)
        {
            StudentModel model     = (StudentModel)data;
            PMSConverter converter = PMSConverter.GetInstance();

            FillUtil.FillTextByName(GetDocument(), "XYJBXXB/XM", converter.Convert("NAME", model.Name));
            FillUtil.FillSelect(GetDocument(), "xb", model.Sex, converter.Convert("SEX", model.Sex));
            FillUtil.FillText(GetDocument(), "birthday", converter.Convert("BIRTHDAY", model.Birthday));
            FillUtil.FillSelect(GetDocument(), "zjmc", model.CertificateType, converter.Convert("CERTIFICATE_TYPE", model.CertificateType));
            FillUtil.FillText(GetDocument(), "sfzmhm", converter.Convert("CERTIFICATE_CODE", model.CertificateCode));
            FillUtil.FillText(GetDocument(), "XYJBXXB/ZZZM", converter.Convert("TEMP_LIVE_CODE", model.TempLiveCode));
            FillUtil.FillSelectByName(GetDocument(), "XYJBXXB/XXLX", model.ApplyType, converter.Convert("APPLY_TYPE", model.ApplyType));
            FillUtil.FillSelect(GetDocument(), "xxcx", model.ApplyCarType, converter.Convert("APPLY_CAR_TYPE", model.ApplyCarType));
            FillUtil.FillSelect(GetDocument(), "xzjcxdh", model.AllowedCarType, converter.Convert("ALLOWED_CAR_TYPE", model.AllowedCarType));
            FillUtil.FillSelectByName(GetDocument(), "XYJBXXB/GJ", model.Nationality, converter.Convert("NATIONNALITY", model.Nationality));
            FillUtil.FillSelectByName(GetDocument(), "XYJBXXB/XYLY", model.CensusRegister, converter.Convert("CENSUS_REGISTER", model.CensusRegister));
            FillUtil.FillTextByName(GetDocument(), "XYJBXXB/LXDH2", converter.Convert("TELEPHONE", model.Telephone));
            FillUtil.FillTextByName(GetDocument(), "XYJBXXB/LXDH1", converter.Convert("MOBILEPHONE", model.Mobilephone));
            FillUtil.FillText(GetDocument(), "dzyx", converter.Convert("EMAIL", model.Email));
            FillUtil.FillText(GetDocument(), "yzbm", converter.Convert("POSTALCODE", model.Postalcode));
            FillUtil.FillText(GetDocument(), "sg", converter.Convert("STATURE", model.Stature));
            FillUtil.FillText(GetDocument(), "zsl", converter.Convert("LEFT_EYESIGHT", model.LeftEyesight));
            FillUtil.FillText(GetDocument(), "ysl", converter.Convert("RIGHT_EYESIGHT", model.RightEyesight));
            FillUtil.FillSelect(GetDocument(), "bsl", model.Distinguish, converter.Convert("DISTINGUISH", model.Distinguish));
            FillUtil.FillSelect(GetDocument(), "tl", model.Audition, converter.Convert("AUDITION", model.Audition));
            FillUtil.FillSelect(GetDocument(), "sz", model.UpperLimb, converter.Convert("UPPER_LIMB", model.UpperLimb));
            FillUtil.FillSelect(GetDocument(), "zxz", model.LeftLowerLimb, converter.Convert("LEFT_LOWER_LIMB", model.LeftLowerLimb));
            FillUtil.FillSelect(GetDocument(), "yxz", model.RightLowerLimb, converter.Convert("RIGHT_LOWER_LIMB", model.RightLowerLimb));
            FillUtil.FillSelect(GetDocument(), "qgjb", model.Neck, converter.Convert("NECK", model.Neck));
            FillUtil.FillText(GetDocument(), "tjrq", converter.Convert("CHECK_TIME", model.CheckTime));
            FillUtil.FillSelect(GetDocument(), "tjyy", model.CheckHospital, converter.Convert("CHECK_HOSPITAL", model.CheckHospital));
            FillUtil.FillTextByName(GetDocument(), "XYJBXXB/BMRQ", converter.Convert("ENROLL_TIME", model.EnrollTime));
            FillUtil.FillSelect(GetDocument(), "ssxq", model.Area, converter.Convert("AREA", model.Area));
            FillUtil.FillSelect(GetDocument(), "aaa", model.Area, converter.Convert("CONTACT_AREA", model.Area));
            FillUtil.FillSelectByName(GetDocument(), "XYJBXXB/BMTJ", model.EnrollType, converter.Convert("ENROLL_TYPE", model.EnrollType));
            FillUtil.FillSelect(GetDocument(), "DJZSXZQH", model.Province, converter.Convert("PROVINCE", model.Province), true);
            FillUtil.FillSelect(GetDocument(), "DJZSXZQH2", model.City, converter.Convert("CITY", model.City), true);
            FillUtil.FillSelect(GetDocument(), "DJZSXZQH3", model.District, converter.Convert("DISTRICT", model.District));
            FillUtil.FillText(GetDocument(), "djzsdz", converter.Convert("REGISTER_ADDRESS", model.RegisterAddress));
            FillUtil.FillText(GetDocument(), "lxdz", converter.Convert("CONTACT_ADDRESS", model.ContactAddress));
            FillUtil.FillTextByName(GetDocument(), "XYJBXXB/TJR", converter.Convert("REFEREE", model.Referee));
        }
        public void Fill(object data)
        {
            StudentModel model     = (StudentModel)data;
            TMSConverter converter = TMSConverter.GetInstance();

            FillUtil.FillText(GetDocument(), "txtXueyh", converter.Convert("CODE", model.Code));
            FillUtil.FillText(GetDocument(), "txtXingming", converter.Convert("NAME", model.Name));
            FillUtil.FillSelect(GetDocument(), "drpXingbie", model.Sex, converter.Convert("SEX", model.Sex));
            FillUtil.FillText(GetDocument(), "txtChusrq", converter.Convert("BIRTHDAY", model.Birthday));
            FillUtil.FillSelect(GetDocument(), "drpZhengjzl", model.CertificateType, converter.Convert("CERTIFICATE_TYPE", model.CertificateType));
            FillUtil.FillText(GetDocument(), "txtShenfhm", converter.Convert("CERTIFICATE_CODE", model.CertificateCode));
            FillUtil.FillText(GetDocument(), "txtZanzzhm", converter.Convert("TEMP_LIVE_CODE", model.TempLiveCode));
            FillUtil.FillSelect(GetDocument(), "drpShenqzl", model.ApplyType, converter.Convert("APPLY_TYPE", model.ApplyType));
            FillUtil.FillSelect(GetDocument(), "drpShenqcx", model.ApplyCarType, converter.Convert("APPLY_CAR_TYPE", model.ApplyCarType));
            FillUtil.FillSelect(GetDocument(), "ddl_ycx", model.AllowedCarType, converter.Convert("ALLOWED_CAR_TYPE", model.AllowedCarType));
            FillUtil.FillSelect(GetDocument(), "drpguoj", model.Nationality, converter.Convert("NATIONNALITY", model.Nationality));
            FillUtil.FillSelect(GetDocument(), "drphuji", model.CensusRegister, converter.Convert("CENSUS_REGISTER", model.CensusRegister));
            FillUtil.FillText(GetDocument(), "txtGuddh", converter.Convert("TELEPHONE", model.Telephone));
            FillUtil.FillText(GetDocument(), "txtDianh", converter.Convert("MOBILEPHONE", model.Mobilephone));
            FillUtil.FillText(GetDocument(), "Textbox1", converter.Convert("EMAIL", model.Email));
            FillUtil.FillText(GetDocument(), "txtYouzbm", converter.Convert("POSTALCODE", model.Postalcode));
            FillUtil.FillText(GetDocument(), "txtshengao", converter.Convert("STATURE", model.Stature));
            FillUtil.FillText(GetDocument(), "txtzuoshil", converter.Convert("LEFT_EYESIGHT", model.LeftEyesight));
            FillUtil.FillText(GetDocument(), "txtyoushil", converter.Convert("RIGHT_EYESIGHT", model.RightEyesight));
            FillUtil.FillSelect(GetDocument(), "drpbiansl", model.Distinguish, converter.Convert("DISTINGUISH", model.Distinguish));
            FillUtil.FillSelect(GetDocument(), "drptingl", model.Audition, converter.Convert("AUDITION", model.Audition));
            FillUtil.FillSelect(GetDocument(), "drpshangz", model.UpperLimb, converter.Convert("UPPER_LIMB", model.UpperLimb));
            FillUtil.FillSelect(GetDocument(), "drpzuoxz", model.LeftLowerLimb, converter.Convert("LEFT_LOWER_LIMB", model.LeftLowerLimb));
            FillUtil.FillSelect(GetDocument(), "drpyouxz", model.RightLowerLimb, converter.Convert("RIGHT_LOWER_LIMB", model.RightLowerLimb));
            FillUtil.FillSelect(GetDocument(), "drpqugjb", model.Neck, converter.Convert("NECK", model.Neck));
            FillUtil.FillText(GetDocument(), "txtriqi1", converter.Convert("CHECK_TIME", model.CheckTime));
            FillUtil.FillSelect(GetDocument(), "drpyiyuan", model.CheckHospital, converter.Convert("CHECK_HOSPITAL", model.CheckHospital));
            FillUtil.FillText(GetDocument(), "txtRiqi", converter.Convert("ENROLL_TIME", model.EnrollTime));
            FillUtil.FillSelect(GetDocument(), "drpbaomd", model.EnrollSite, converter.Convert("ENROLL_SITE", model.EnrollSite));
            FillUtil.FillSelect(GetDocument(), "drpDiqu", model.Area, converter.Convert("AREA", model.Area));
            FillUtil.FillSelect(GetDocument(), "DropDownList4", model.Province, converter.Convert("PROVINCE", model.Province), true);
            CityFiller filler = new CityFiller(GetDocument(), model);

            filler.Fill();
            FillUtil.FillText(GetDocument(), "txtLianxdz", converter.Convert("CONTACT_ADDRESS", model.ContactAddress));
            FillUtil.FillText(GetDocument(), "txtjiesr", converter.Convert("REFEREE", model.Referee));
        }
        public void Fill(object data)
        {
            StudentModel model     = (StudentModel)data;
            DMSConverter converter = DMSConverter.GetInstance();
            string       city      = model.City;

            string value = "320826";

            if ("苏州市".Equals(city))
            {
                value = converter.Convert("DISTRICT", model.District);
            }

            FillUtil.FillSelect(GetDocument(), "djzsxzqh", model.District, value);
            FillUtil.FillText(GetDocument(), "djzsxxdz", converter.Convert("REGISTER_ADDRESS", model.RegisterAddress));
            FillUtil.FillSelect(GetDocument(), "lxzsxzqh", model.Area, converter.Convert("CONTACT_AREA", model.Area));
            FillUtil.FillText(GetDocument(), "lxzsxxdz", converter.Convert("CONTACT_ADDRESS", model.ContactAddress));
            FillUtil.FillText(GetDocument(), "lxdh", converter.Convert("TELEPHONE", model.Telephone));
            FillUtil.FillText(GetDocument(), "sjhm", converter.Convert("MOBILEPHONE", model.Mobilephone));
            FillUtil.FillText(GetDocument(), "tjr", converter.Convert("REFEREE", model.Referee));
        }