コード例 #1
0
ファイル: TechEmApprove.aspx.cs プロジェクト: xingfudaiyan/OA
        protected void PageInit()
        {
            int             tmsid = Convert.ToInt32(Request["TechEmScoreId"].ToString());
            TechEmScoreInfo tms   = new TechEmScoreInfo(tmsid);

            lblSelfPlan.Text        = tms.SelfPlan.ToString();
            lblSelfWorkTotal.Text   = tms.SelfWorkTotal.ToString();
            lblSelfWorkSpeed.Text   = tms.SelfWorkSpeed.ToString();
            lblSelfCommunicate.Text = tms.SelfCommunicate.ToString();
            lblSelfDescipline.Text  = tms.SelfDescipline.ToString();
            lblSelfExecute.Text     = tms.SelfExecute.ToString();
            lblSelfRoute.Text       = tms.SelfRoute.ToString();
            lblSelfProfession.Text  = tms.SelfProfession.ToString();
            lblSelfAttitude.Text    = tms.SelfAttitude.ToString();
            lblSelfComplex.Text     = tms.SelfComplex.ToString();
            lblSelfSpeciality.Text  = tms.SelfSpeciality.ToString();

            //ddlYear.SelectedValue = tms.YearId.ToString();
            //ddlMonth.SelectedValue = tms.MonthId.ToString();

            YearInfo  year  = new YearInfo(Convert.ToInt32(tms.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(tms.MonthId));

            lblDate.Text = year.YearName + "年" + month.MonthNames + "月";

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(tms.EmployeeId));

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(Convert.ToInt32(em.PositionId)));

            lblPosition.Text          = position.PositionName;
            rblAddScore.SelectedValue = "0";
        }
コード例 #2
0
        protected void PageInit()
        {
            int             tmsid = Convert.ToInt32(Request["TechMaScoreId"].ToString());
            TechMaScoreInfo tms   = new TechMaScoreInfo(tmsid);

            lblSelfProject1.Text  = tms.SelfScore1.ToString();
            lblSelfProject2.Text  = tms.SelfScore2.ToString();
            lblSelfProject3.Text  = tms.SelfScore3.ToString();
            lblSelfProject4.Text  = tms.SelfScore4.ToString();
            lblSelfProject5.Text  = tms.SelfScore5.ToString();
            lblSelfProject6.Text  = tms.SelfScore6.ToString();
            lblSelfProject7.Text  = tms.SelfScore7.ToString();
            lblSelfProject8.Text  = tms.SelfScore8.ToString();
            lblSelfProject9.Text  = tms.SelfScore9.ToString();
            lblSelfProject10.Text = tms.SelfScore10.ToString();
            lblSelfProject11.Text = tms.SelfScore11.ToString();
            lblSelfProject12.Text = tms.SelfScore12.ToString();
            lblSelfProject13.Text = tms.SelfScore13.ToString();

            //ddlYear.SelectedValue = tms.YearId.ToString();
            //ddlMonth.SelectedValue = tms.MonthId.ToString();

            YearInfo  year  = new YearInfo(Convert.ToInt32(tms.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(tms.MonthId));

            lblDate.Text = year.YearName + "年" + month.MonthNames + "月";

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(tms.EmployeeId));

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(Convert.ToInt32(em.PositionId)));

            lblPosition.Text = position.PositionName;
        }
コード例 #3
0
 /// <summary>
 /// Fetches the start of the year from the cache, or calculates
 /// and caches it.
 /// </summary>
 internal virtual long GetYearTicks(int year)
 {
     Preconditions.CheckArgumentRange("year", year, MinYear, MaxYear);
     lock (yearCache)
     {
         YearInfo info = yearCache[year & YearCacheMask];
         if (info.Year != year)
         {
             info = new YearInfo(year, CalculateYearTicks(year));
             yearCache[year & YearCacheMask] = info;
         }
         return(info.StartOfYearTicks);
     }
 }
コード例 #4
0
ファイル: YearInfoController.cs プロジェクト: xingfudaiyan/OA
        public YearInfo GetYearInfoById(int YearId)
        {
            YearInfo yearInfo  = null;//
            try
            {
                 yearInfo = new YearInfo(YearId);

            }
            catch (AppException)
            {
                return null;
            }

            return  yearInfo;
        }
コード例 #5
0
 protected YearMonthDayCalculator(int minYear, int maxYear, int monthsInYear,
                                  long ticksInNonLeapYear, long averageTicksPerYear, long ticksAtStartOfYear1, IList <Era> eras)
 {
     this.minYear             = minYear;
     this.maxYear             = maxYear;
     this.monthsInYear        = monthsInYear;
     this.eras                = eras;
     this.averageTicksPerYear = averageTicksPerYear;
     this.ticksAtStartOfYear1 = ticksAtStartOfYear1;
     this.ticksInNonLeapYear  = ticksInNonLeapYear;
     this.ticksInLeapYear     = ticksInNonLeapYear + NodaConstants.TicksPerStandardDay;
     // Effectively invalidate the first cache entry.
     // Every other cache entry will automatically be invalid,
     // by having year 0.
     yearCache[0] = new YearInfo(1, LocalInstant.LocalUnixEpoch.Ticks);
 }
コード例 #6
0
        protected void PageInit()
        {
            int             dsid = Convert.ToInt32(Request["DriverScoreId"].ToString());
            DriverScoreInfo ds   = new DriverScoreInfo(dsid);
            EmployeeInfo    em   = new EmployeeInfo(Convert.ToInt32(ds.EmployeeId));

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));

            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));

            lblDepart.Text = depart.DepartName.ToString();

            //ddlYear.SelectedValue = ds.YearId.ToString();
            //ddlMonth.SelectedValue = ds.MonthId.ToString();

            YearInfo  year  = new YearInfo(Convert.ToInt32(ds.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(ds.MonthId));

            lblDate.Text = year.YearName + "年" + month.MonthNames + "月";

            lblSelfds1.Text  = ds.Selfds1.ToString();
            lblSelfds2.Text  = ds.Selfds2.ToString();
            lblSelfds3.Text  = ds.Selfds3.ToString();
            lblSelfds4.Text  = ds.Selfds4.ToString();
            lblSelfds5.Text  = ds.Selfds5.ToString();
            lblSelfds6.Text  = ds.Selfds6.ToString();
            lblSelfds7.Text  = ds.Selfds7.ToString();
            lblSelfds8.Text  = ds.Selfds8.ToString();
            lblSelfds9.Text  = ds.Selfds9.ToString();
            lblSelfds10.Text = ds.Selfds10.ToString();
            lblSelfds11.Text = ds.Selfds11.ToString();
            lblSelfds12.Text = ds.Selfds12.ToString();
            lblSelfds13.Text = ds.Selfds13.ToString();
            lblSelfds14.Text = ds.Selfds14.ToString();
            lblSelfds15.Text = ds.Selfds15.ToString();
            lblSelfds16.Text = ds.Selfds16.ToString();
            lblSelfds17.Text = ds.Selfds17.ToString();
            lblSelfds18.Text = ds.Selfds18.ToString();
            lblSelfds19.Text = ds.Selfds19.ToString();
            lblSelfds20.Text = ds.Selfds20.ToString();
            lblSelfds21.Text = ds.Selfds21.ToString();
            lblSelfds22.Text = ds.Selfds22.ToString();
            lblSelfds23.Text = ds.Selfds23.ToString();
        }
コード例 #7
0
        protected void PageInit()
        {
            int             msid = Convert.ToInt32(Request["MarketScoreId"].ToString());
            MarketScoreInfo ms   = new MarketScoreInfo(msid);
            EmployeeInfo    em   = new EmployeeInfo(Convert.ToInt32(ms.EmployeeId));

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));

            lblPosition.Text = position.PositionName.ToString();


            //ddlYear.SelectedValue = ms.YearId.ToString();
            //ddlMonth.SelectedValue = ms.MonthId.ToString();

            YearInfo  year  = new YearInfo(Convert.ToInt32(ms.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(ms.MonthId));

            lblDate.Text = year.YearName + "年" + month.MonthNames + "月";

            lblSelfms1.Text  = ms.Selfms1.ToString();
            lblSelfms2.Text  = ms.Selfms2.ToString();
            lblSelfms3.Text  = ms.Selfms3.ToString();
            lblSelfms4.Text  = ms.Selfms4.ToString();
            lblSelfms5.Text  = ms.Selfms5.ToString();
            lblSelfms6.Text  = ms.Selfms6.ToString();
            lblSelfms7.Text  = ms.Selfms7.ToString();
            lblSelfms8.Text  = ms.Selfms8.ToString();
            lblSelfms9.Text  = ms.Selfms9.ToString();
            lblSelfms10.Text = ms.Selfms10.ToString();
            lblSelfms11.Text = ms.Selfms11.ToString();
            lblSelfms12.Text = ms.Selfms12.ToString();
            lblSelfms13.Text = ms.Selfms13.ToString();
            lblSelfms14.Text = ms.Selfms14.ToString();
            lblSelfms15.Text = ms.Selfms15.ToString();
            lblSelfms16.Text = ms.Selfms16.ToString();
            lblSelfms17.Text = ms.Selfms17.ToString();
            lblSelfms18.Text = ms.Selfms18.ToString();
            lblSelfms19.Text = ms.Selfms19.ToString();
            lblSelfms20.Text = ms.Selfms20.ToString();
            lblSelfms21.Text = ms.Selfms21.ToString();
            lblSelfms22.Text = ms.Selfms22.ToString();
            lblSelfms23.Text = ms.Selfms23.ToString();
            lblSelfms24.Text = ms.Selfms24.ToString();
        }
コード例 #8
0
ファイル: BASEmApprove.aspx.cs プロジェクト: xingfudaiyan/OA
        protected void PageInit()
        {
            int            basid = Convert.ToInt32(Request["BasEmScoreId"].ToString());
            BasEmScoreInfo bas   = new BasEmScoreInfo(basid);
            EmployeeInfo   em    = new EmployeeInfo(Convert.ToInt32(bas.EmployeeId));

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));

            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));

            lblDepart.Text = depart.DepartName.ToString();

            //ddlYear.SelectedValue = bas.YearId.ToString();
            //ddlMonth.SelectedValue = bas.MonthId.ToString();

            YearInfo  year  = new YearInfo(Convert.ToInt32(bas.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(bas.MonthId));

            lblDate.Text = year.YearName + "年" + month.MonthNames + "月";

            lblSelfbas1.Text  = bas.Selfbas1.ToString();
            lblSelfbas2.Text  = bas.Selfbas2.ToString();
            lblSelfbas3.Text  = bas.Selfbas3.ToString();
            lblSelfbas4.Text  = bas.Selfbas4.ToString();
            lblSelfbas5.Text  = bas.Selfbas5.ToString();
            lblSelfbas6.Text  = bas.Selfbas6.ToString();
            lblSelfbas7.Text  = bas.Selfbas7.ToString();
            lblSelfbas8.Text  = bas.Selfbas8.ToString();
            lblSelfbas9.Text  = bas.Selfbas9.ToString();
            lblSelfbas10.Text = bas.Selfbas10.ToString();
            lblSelfbas11.Text = bas.Selfbas11.ToString();
            lblSelfbas12.Text = bas.Selfbas12.ToString();
            lblSelfbas13.Text = bas.Selfbas13.ToString();
            lblSelfbas14.Text = bas.Selfbas14.ToString();
            lblSelfbas15.Text = bas.Selfbas15.ToString();
            lblSelfbas16.Text = bas.Selfbas16.ToString();
            lblSelfbas17.Text = bas.Selfbas17.ToString();
        }
コード例 #9
0
        protected void PageInit()
        {
            int asid = Convert.ToInt32(Request["AssistantScoreId"].ToString());
            AssistantScoreInfo at = new AssistantScoreInfo(asid);
            EmployeeInfo       em = new EmployeeInfo(Convert.ToInt32(at.EmployeeId));

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));

            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));

            lblDepart.Text = depart.DepartName.ToString();

            YearInfo  year  = new YearInfo(Convert.ToInt32(at.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(at.MonthId));

            lblDate.Text = year.YearName + "年" + month.MonthNames + "月";

            lblSelfas1.Text  = at.Selfas1.ToString();
            lblSelfas2.Text  = at.Selfas2.ToString();
            lblSelfas3.Text  = at.Selfas3.ToString();
            lblSelfas4.Text  = at.Selfas4.ToString();
            lblSelfas5.Text  = at.Selfas5.ToString();
            lblSelfas6.Text  = at.Selfas6.ToString();
            lblSelfas7.Text  = at.Selfas7.ToString();
            lblSelfas8.Text  = at.Selfas8.ToString();
            lblSelfas9.Text  = at.Selfas9.ToString();
            lblSelfas10.Text = at.Selfas10.ToString();
            lblSelfas11.Text = at.Selfas11.ToString();
            lblSelfas12.Text = at.Selfas12.ToString();
            lblSelfas13.Text = at.Selfas13.ToString();
            lblSelfas14.Text = at.Selfas14.ToString();
            lblSelfas15.Text = at.Selfas15.ToString();
            lblSelfas16.Text = at.Selfas16.ToString();
            lblSelfas17.Text = at.Selfas17.ToString();
            lblSelfas18.Text = at.Selfas18.ToString();
            lblSelfas19.Text = at.Selfas19.ToString();
        }
コード例 #10
0
        public void StoreConfig()
        {
            TermData T1 = new TermData(DTT1S.Value, DTT1E.Value, NuSFT1Grant.Value, NuSFT1Loan.Value,
                DTSFP1.Value, NUBT1.Value, DTBT1.Value);
            TermData T2 = new TermData(DTT2S.Value, DTT2E.Value, NuSFT2Grant.Value, NuSFT2Loan.Value,
                DTSFP2.Value, NUBT2.Value, DTBT2.Value);
            TermData T3 = new TermData(DTT3S.Value, DTT3E.Value, NuSFT3Grant.Value, NuSFT3Loan.Value,
                DTSFP3.Value, NUBT3.Value, DTBT3.Value);

            YearInfo YI = new YearInfo(CBYII.Checked, T1 , T2, T3);
            MessageBox.Show(RC.YearInfo.Count.ToString());
            //int year = (int) NUYear.Value - 1;  //0 based index
            //MessageBox.Show(year.ToString() + "is year\n" + YearRecords.Count.ToString());
            //if ( YearRecords.Count > 0 && year <= YearRecords.Count)
            //    // List populated && Year in existing range
            //{
            //    //if (YearRecords.Count >= year)
            //    YearRecords[year] = YI;
            //}
            // else
            YearRecords.Add(YI);   //PoulateEmpty | append

            RC = new Configuration(NUYear.Value, YearRecords);
            XmlSerializer XSR = new XmlSerializer(typeof(Configuration));
            FileStream ConfigStream = new FileStream("Finances.rc", FileMode.Create);
            try
            {
                XSR.Serialize(ConfigStream, RC);
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.GetBaseException().ToString());
            }
            ConfigStream.Close();
            LoadConfig();
            MessageBox.Show("Configurations recorded");
            MessageBox.Show(YearRecords.Count.ToString());
        }
コード例 #11
0
        protected void PageInit()
        {
            int             TesId = Convert.ToInt32(Request["TechEmScoreId"].ToString());
            TechEmScoreInfo tes   = new TechEmScoreInfo(TesId);

            lblSelfPlan.Text        = tes.SelfPlan.ToString();
            lblSelfWorkTotal.Text   = tes.SelfWorkTotal.ToString();
            lblSelfWorkSpeed.Text   = tes.SelfWorkSpeed.ToString();
            lblSelfCommunicate.Text = tes.SelfCommunicate.ToString();
            lblSelfDescipline.Text  = tes.SelfDescipline.ToString();
            lblSelfExecute.Text     = tes.SelfExecute.ToString();
            lblSelfRoute.Text       = tes.SelfRoute.ToString();
            lblSelfProfession.Text  = tes.SelfProfession.ToString();
            lblSelfAttitude.Text    = tes.SelfAttitude.ToString();
            lblSelfComplex.Text     = tes.SelfComplex.ToString();
            lblSelfSpeciality.Text  = tes.SelfSpeciality.ToString();

            lblUpPlan.Text        = tes.UpPlan.ToString();
            lblUpWorkTotal.Text   = tes.UpWorkTotal.ToString();
            lblUpWorkSpeed.Text   = tes.UpWorkSpeed.ToString();
            lblUpCommunicate.Text = tes.UpCommunicate.ToString();
            lblUpDescipline.Text  = tes.UpDescipline.ToString();
            lblUpExecute.Text     = tes.UpExecute.ToString();
            lblUpRoute.Text       = tes.UpRoute.ToString();
            lblUpProfession.Text  = tes.UpProfession.ToString();
            lblUpAttitude.Text    = tes.UpAttitude.ToString();
            lblUpComplex.Text     = tes.UpComplex.ToString();
            lblUpSpeciality.Text  = tes.UpSpeciality.ToString();

            lblSecPlan.Text        = tes.SectPlan.ToString();
            lblSecWorkTotal.Text   = tes.SectWorkTotal.ToString();
            lblSecWorkSpeed.Text   = tes.SectWorkSpeed.ToString();
            lblSecCommunicate.Text = tes.SectCommunicate.ToString();
            lblSecDescipline.Text  = tes.SectDescipline.ToString();
            lblSecExecute.Text     = tes.SectExecute.ToString();
            lblSecRoute.Text       = tes.SectRoute.ToString();
            lblSecProfession.Text  = tes.SectProfession.ToString();
            lblSecAttitude.Text    = tes.SectAttitude.ToString();
            lblSecComplex.Text     = tes.SectComplex.ToString();
            lblSecSpeciality.Text  = tes.SectSpeciality.ToString();

            //ddlYear.SelectedValue = tes.YearId.ToString();
            //ddlMonth.SelectedValue = tes.MonthId.ToString();

            YearInfo  year  = new YearInfo(Convert.ToInt32(tes.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(tes.MonthId));

            lblDate.Text = year.YearName + "Äê" + month.MonthNames + "ÔÂ";

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(tes.EmployeeId));

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(Convert.ToInt32(em.PositionId)));

            lblPosition.Text = position.PositionName;

            lblReason.Text        = tes.Reason.ToString();
            lblAddMinusScore.Text = tes.AddMinusSocre.ToString();
            lblSumScore.Text      = tes.TotalScore.ToString();
            lblViews.Text         = tes.UpViews.ToString();
            EvaluateLevelInfo el = new EvaluateLevelInfo(Convert.ToInt32(tes.EvaluateLevelId));

            lblLevels.Text = el.EvaluateName.ToString();

            lblPlan.Text    = tes.PlanFinish.ToString();
            lblActual.Text  = tes.ActualFinish.ToString();
            lblPercent.Text = tes.FinishRate.ToString();
            lblUp.Text      = tes.FinishScore.ToString();
            lblUp1.Text     = tes.FinishScore.ToString();
        }
コード例 #12
0
        protected void PageInit()
        {
            EmployeeInfo em = (EmployeeInfo)Session["Employee"];
            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));
            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));
            lblDepart.Text = depart.DepartName.ToString();

            int basid = Convert.ToInt32(Request["BasEmScoreId"].ToString());
            BasEmScoreInfo bas = new BasEmScoreInfo(basid);

            YearInfo year = new YearInfo(Convert.ToInt32(bas.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(bas.MonthId));
            lblDate.Text = year.YearName + "Äê" + month.MonthNames + "ÔÂ";

            lblSelfbas1.Text = bas.Selfbas1.ToString();
            lblSelfbas2.Text = bas.Selfbas2.ToString();
            lblSelfbas3.Text = bas.Selfbas3.ToString();
            lblSelfbas4.Text = bas.Selfbas4.ToString();
            lblSelfbas5.Text = bas.Selfbas5.ToString();
            lblSelfbas6.Text = bas.Selfbas6.ToString();
            lblSelfbas7.Text = bas.Selfbas7.ToString();
            lblSelfbas8.Text = bas.Selfbas8.ToString();
            lblSelfbas9.Text = bas.Selfbas9.ToString();
            lblSelfbas10.Text = bas.Selfbas10.ToString();
            lblSelfbas11.Text = bas.Selfbas11.ToString();
            lblSelfbas12.Text = bas.Selfbas12.ToString();
            lblSelfbas13.Text = bas.Selfbas13.ToString();
            lblSelfbas14.Text = bas.Selfbas14.ToString();
            lblSelfbas15.Text = bas.Selfbas15.ToString();
            lblSelfbas16.Text = bas.Selfbas16.ToString();
            lblSelfbas17.Text = bas.Selfbas17.ToString();

            lblUpbas1.Text = bas.Upbas1.ToString();
            lblUpbas2.Text = bas.Upbas2.ToString();
            lblUpbas3.Text = bas.Upbas3.ToString();
            lblUpbas4.Text = bas.Upbas4.ToString();
            lblUpbas5.Text = bas.Upbas5.ToString();
            lblUpbas6.Text = bas.Upbas6.ToString();
            lblUpbas7.Text = bas.Upbas7.ToString();
            lblUpbas8.Text = bas.Upbas8.ToString();
            lblUpbas9.Text = bas.Upbas9.ToString();
            lblUpbas10.Text = bas.Upbas10.ToString();
            lblUpbas11.Text = bas.Upbas11.ToString();
            lblUpbas12.Text = bas.Upbas12.ToString();
            lblUpbas13.Text = bas.Upbas13.ToString();
            lblUpbas14.Text = bas.Upbas14.ToString();
            lblUpbas15.Text = bas.Upbas15.ToString();
            lblUpbas16.Text = bas.Upbas16.ToString();
            lblUpbas17.Text = bas.Upbas17.ToString();

            lblSecbas1.Text = bas.Secbas1.ToString();
            lblSecbas2.Text = bas.Secbas2.ToString();
            lblSecbas3.Text = bas.Secbas3.ToString();
            lblSecbas4.Text = bas.Secbas4.ToString();
            lblSecbas5.Text = bas.Secbas5.ToString();
            lblSecbas6.Text = bas.Secbas6.ToString();
            lblSecbas7.Text = bas.Secbas7.ToString();
            lblSecbas8.Text = bas.Secbas8.ToString();
            lblSecbas9.Text = bas.Secbas9.ToString();
            lblSecbas10.Text = bas.Secbas10.ToString();
            lblSecbas11.Text = bas.Secbas11.ToString();
            lblSecbas12.Text = bas.Secbas12.ToString();
            lblSecbas13.Text = bas.Secbas13.ToString();
            lblSecbas14.Text = bas.Secbas14.ToString();
            lblSecbas15.Text = bas.Secbas15.ToString();
            lblSecbas16.Text = bas.Secbas16.ToString();
            lblSecbas17.Text = bas.Secbas17.ToString();

            lblTotalScore.Text = bas.TotalScore.ToString();
            if (bas.EvaluateLevelId.ToString() != "")
            {
                EvaluateLevelInfo le = new EvaluateLevelInfo(Convert.ToInt32(bas.EvaluateLevelId));
                lblLevel.Text = le.EvaluateName.ToString();
            }
            else
            {
                lblLevel.Text = "";
            }
            lblViews.Text = bas.UpViews.ToString();
        }
コード例 #13
0
ファイル: YearInfoController.cs プロジェクト: xingfudaiyan/OA
 public void DeleteById(YearInfo pYearInfo)
 {
     YearInfo yearInfo = new YearInfo(pYearInfo.YearId);
     yearInfo.Delete();
 }
コード例 #14
0
        protected void PageInit()
        {
            int TesId = Convert.ToInt32(Request["TechMaScoreId"].ToString());
            TechMaScoreInfo tms = new TechMaScoreInfo(TesId);
            lblSelfScore1.Text = tms.SelfScore1.ToString();
            lblSelfScore2.Text = tms.SelfScore2.ToString();
            lblSelfScore3.Text = tms.SelfScore3.ToString();
            lblSelfScore4.Text = tms.SelfScore4.ToString();
            lblSelfScore5.Text = tms.SelfScore5.ToString();
            lblSelfScore6.Text = tms.SelfScore6.ToString();
            lblSelfScore7.Text = tms.SelfScore7.ToString();
            lblSelfScore8.Text = tms.SelfScore8.ToString();
            lblSelfScore9.Text = tms.SelfScore9.ToString();
            lblSelfScore10.Text = tms.SelfScore10.ToString();
            lblSelfScore11.Text = tms.SelfScore11.ToString();
            lblSelfScore12.Text = tms.SelfScore12.ToString();
            lblSelfScore13.Text = tms.SelfScore13.ToString();

            lblUpScore1.Text = tms.UpScore1.ToString();
            lblUpScore2.Text = tms.UpScore2.ToString();
            lblUpScore3.Text = tms.UpScore3.ToString();
            lblUpScore4.Text = tms.UpScore4.ToString();
            lblUpScore5.Text = tms.UpScore5.ToString();
            lblUpScore6.Text = tms.UpScore6.ToString();
            lblUpScore7.Text = tms.UpScore7.ToString();
            lblUpScore8.Text = tms.UpScore8.ToString();
            lblUpScore9.Text = tms.UpScore9.ToString();
            lblUpScore10.Text = tms.UpScore10.ToString();
            lblUpScore11.Text = tms.UpScore11.ToString();
            lblUpScore12.Text = tms.UpScore12.ToString();
            lblUpScore13.Text = tms.UpScore13.ToString();

            lblSectScore1.Text = tms.SectScore1.ToString();
            lblSectScore2.Text = tms.SectScore2.ToString();
            lblSectScore3.Text = tms.SectScore3.ToString();
            lblSectScore4.Text = tms.SectScore4.ToString();
            lblSectScore5.Text = tms.SectScore5.ToString();
            lblSectScore6.Text = tms.SectScore6.ToString();
            lblSectScore7.Text = tms.SectScore7.ToString();
            lblSectScore8.Text = tms.SectScore8.ToString();
            lblSectScore9.Text = tms.SectScore9.ToString();
            lblSectScore10.Text = tms.SectScore10.ToString();
            lblSectScore11.Text = tms.SectScore11.ToString();
            lblSectScore12.Text = tms.SectScore12.ToString();
            lblSectScore13.Text = tms.SectScore13.ToString();

            //ddlYear.SelectedValue = tms.YearId.ToString();
            //ddlMonth.SelectedValue = tms.MonthId.ToString();

            YearInfo year = new YearInfo(Convert.ToInt32(tms.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(tms.MonthId));
            lblDate.Text = year.YearName + "Äê" + month.MonthNames + "ÔÂ";

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(tms.EmployeeId));
            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(Convert.ToInt32(em.PositionId)));
            lblPosition.Text = position.PositionName;

            lblSumScore.Text = tms.TotalScore.ToString();
            lblViews.Text = tms.UpView.ToString();
            if (tms.EvaluateLevelId.ToString() != "")
            {
                EvaluateLevelInfo ev = new EvaluateLevelInfo(Convert.ToInt32(tms.EvaluateLevelId));
                lblLevel.Text = ev.EvaluateName.ToString();
            }
            else
            {
                lblLevel.Text = "";
            }
        }
コード例 #15
0
        protected void PageInit()
        {
            int asid = Convert.ToInt32(Request["AssistantScoreId"].ToString());
            AssistantScoreInfo at = new AssistantScoreInfo(asid);
            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(at.EmployeeId));
            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));
            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));
            lblDepart.Text = depart.DepartName.ToString();

            YearInfo year = new YearInfo(Convert.ToInt32(at.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(at.MonthId));
            lblDate.Text = year.YearName + "��" + month.MonthNames + "��";

            lblSelfas1.Text = at.Selfas1.ToString();
            lblSelfas2.Text = at.Selfas2.ToString();
            lblSelfas3.Text = at.Selfas3.ToString();
            lblSelfas4.Text = at.Selfas4.ToString();
            lblSelfas5.Text = at.Selfas5.ToString();
            lblSelfas6.Text = at.Selfas6.ToString();
            lblSelfas7.Text = at.Selfas7.ToString();
            lblSelfas8.Text = at.Selfas8.ToString();
            lblSelfas9.Text = at.Selfas9.ToString();
            lblSelfas10.Text = at.Selfas10.ToString();
            lblSelfas11.Text = at.Selfas11.ToString();
            lblSelfas12.Text = at.Selfas12.ToString();
            lblSelfas13.Text = at.Selfas13.ToString();
            lblSelfas14.Text = at.Selfas14.ToString();
            lblSelfas15.Text = at.Selfas15.ToString();
            lblSelfas16.Text = at.Selfas16.ToString();
            lblSelfas17.Text = at.Selfas17.ToString();
            lblSelfas18.Text = at.Selfas18.ToString();
            lblSelfas19.Text = at.Selfas19.ToString();
        }
コード例 #16
0
        protected void PageInit()
        {
            int asid = Convert.ToInt32(Request["AssistantScoreId"].ToString());
            AssistantScoreInfo at = new AssistantScoreInfo(asid);

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(at.EmployeeId));

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));

            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));

            lblDepart.Text = depart.DepartName.ToString();

            //ddlYear.SelectedValue = at.YearId.ToString();
            //ddlMonth.SelectedValue = at.MonthId.ToString();

            YearInfo  year  = new YearInfo(Convert.ToInt32(at.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(at.MonthId));

            lblDate.Text = year.YearName + "Äê" + month.MonthNames + "ÔÂ";

            lblSelfas1.Text  = at.Selfas1.ToString();
            lblSelfas2.Text  = at.Selfas2.ToString();
            lblSelfas3.Text  = at.Selfas3.ToString();
            lblSelfas4.Text  = at.Selfas4.ToString();
            lblSelfas5.Text  = at.Selfas5.ToString();
            lblSelfas6.Text  = at.Selfas6.ToString();
            lblSelfas7.Text  = at.Selfas7.ToString();
            lblSelfas8.Text  = at.Selfas8.ToString();
            lblSelfas9.Text  = at.Selfas9.ToString();
            lblSelfas10.Text = at.Selfas10.ToString();
            lblSelfas11.Text = at.Selfas11.ToString();
            lblSelfas12.Text = at.Selfas12.ToString();
            lblSelfas13.Text = at.Selfas13.ToString();
            lblSelfas14.Text = at.Selfas14.ToString();
            lblSelfas15.Text = at.Selfas15.ToString();
            lblSelfas16.Text = at.Selfas16.ToString();
            lblSelfas17.Text = at.Selfas17.ToString();
            lblSelfas18.Text = at.Selfas18.ToString();
            lblSelfas19.Text = at.Selfas19.ToString();

            lblUpas1.Text  = at.Upas1.ToString();
            lblUpas2.Text  = at.Upas2.ToString();
            lblUpas3.Text  = at.Upas3.ToString();
            lblUpas4.Text  = at.Upas4.ToString();
            lblUpas5.Text  = at.Upas5.ToString();
            lblUpas6.Text  = at.Upas6.ToString();
            lblUpas7.Text  = at.Upas7.ToString();
            lblUpas8.Text  = at.Upas8.ToString();
            lblUpas9.Text  = at.Upas9.ToString();
            lblUpas10.Text = at.Upas10.ToString();
            lblUpas11.Text = at.Upas11.ToString();
            lblUpas12.Text = at.Upas12.ToString();
            lblUpas13.Text = at.Upas13.ToString();
            lblUpas14.Text = at.Upas14.ToString();
            lblUpas15.Text = at.Upas15.ToString();
            lblUpas16.Text = at.Upas16.ToString();
            lblUpas17.Text = at.Upas17.ToString();
            lblUpas18.Text = at.Upas18.ToString();
            lblUpas19.Text = at.Upas19.ToString();

            lblSecas1.Text  = at.Secas1.ToString();
            lblSecas2.Text  = at.Secas2.ToString();
            lblSecas3.Text  = at.Secas3.ToString();
            lblSecas4.Text  = at.Secas4.ToString();
            lblSecas5.Text  = at.Secas5.ToString();
            lblSecas6.Text  = at.Secas6.ToString();
            lblSecas7.Text  = at.Secas7.ToString();
            lblSecas8.Text  = at.Secas8.ToString();
            lblSecas9.Text  = at.Secas9.ToString();
            lblSecas10.Text = at.Secas10.ToString();
            lblSecas11.Text = at.Secas11.ToString();
            lblSecas12.Text = at.Secas12.ToString();
            lblSecas13.Text = at.Secas13.ToString();
            lblSecas14.Text = at.Secas14.ToString();
            lblSecas15.Text = at.Secas15.ToString();
            lblSecas16.Text = at.Secas16.ToString();
            lblSecas17.Text = at.Secas17.ToString();
            lblSecas18.Text = at.Secas18.ToString();
            lblSecas19.Text = at.Secas19.ToString();

            lblTotalScore.Text = at.TotalScore.ToString();
            if (at.EvaluateLevelId.ToString() != "")
            {
                EvaluateLevelInfo le = new EvaluateLevelInfo(Convert.ToInt32(at.EvaluateLevelId));
                lblLevel.Text = le.EvaluateName.ToString();
            }
            else
            {
                lblLevel.Text = "";
            }
            lblViews.Text = at.UpViews.ToString();
        }
コード例 #17
0
        protected void PageInit()
        {
            int tmsid = Convert.ToInt32(Request["TechMaScoreId"].ToString());
            TechMaScoreInfo tms = new TechMaScoreInfo(tmsid);

            lblSelfProject1.Text = tms.SelfScore1.ToString();
            lblSelfProject2.Text = tms.SelfScore2.ToString();
            lblSelfProject3.Text = tms.SelfScore3.ToString();
            lblSelfProject4.Text = tms.SelfScore4.ToString();
            lblSelfProject5.Text = tms.SelfScore5.ToString();
            lblSelfProject6.Text = tms.SelfScore6.ToString();
            lblSelfProject7.Text = tms.SelfScore7.ToString();
            lblSelfProject8.Text = tms.SelfScore8.ToString();
            lblSelfProject9.Text = tms.SelfScore9.ToString();
            lblSelfProject10.Text = tms.SelfScore10.ToString();
            lblSelfProject11.Text = tms.SelfScore11.ToString();
            lblSelfProject12.Text = tms.SelfScore12.ToString();
            lblSelfProject13.Text = tms.SelfScore13.ToString();

            //ddlYear.SelectedValue = tms.YearId.ToString();
            //ddlMonth.SelectedValue = tms.MonthId.ToString();

            YearInfo year = new YearInfo(Convert.ToInt32(tms.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(tms.MonthId));
            lblDate.Text = year.YearName + "��" + month.MonthNames + "��";

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(tms.EmployeeId));
            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(Convert.ToInt32(em.PositionId)));
            lblPosition.Text = position.PositionName;
        }
コード例 #18
0
 /// <summary>
 /// Fetches the start of the year from the cache, or calculates
 /// and caches it.
 /// </summary>
 internal long GetYearTicks(int year)
 {
     YearInfo info = yearCache[year & YearCacheMask];
     if (info.Year != year)
     {
         info = new YearInfo(year, CalculateStartOfYear(year).Ticks);
         // TODO: Check thread safety of this; write won't be atomic...
         yearCache[year & YearCacheMask] = info;
     }
     return info.StartOfYearTicks;
 }
コード例 #19
0
        protected void PageInit()
        {
            EmployeeInfo em = (EmployeeInfo)Session["Employee"];

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));

            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));

            lblDepart.Text = depart.DepartName.ToString();

            int            basid = Convert.ToInt32(Request["BasEmScoreId"].ToString());
            BasEmScoreInfo bas   = new BasEmScoreInfo(basid);


            YearInfo  year  = new YearInfo(Convert.ToInt32(bas.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(bas.MonthId));

            lblDate.Text = year.YearName + "Äê" + month.MonthNames + "ÔÂ";

            lblSelfbas1.Text  = bas.Selfbas1.ToString();
            lblSelfbas2.Text  = bas.Selfbas2.ToString();
            lblSelfbas3.Text  = bas.Selfbas3.ToString();
            lblSelfbas4.Text  = bas.Selfbas4.ToString();
            lblSelfbas5.Text  = bas.Selfbas5.ToString();
            lblSelfbas6.Text  = bas.Selfbas6.ToString();
            lblSelfbas7.Text  = bas.Selfbas7.ToString();
            lblSelfbas8.Text  = bas.Selfbas8.ToString();
            lblSelfbas9.Text  = bas.Selfbas9.ToString();
            lblSelfbas10.Text = bas.Selfbas10.ToString();
            lblSelfbas11.Text = bas.Selfbas11.ToString();
            lblSelfbas12.Text = bas.Selfbas12.ToString();
            lblSelfbas13.Text = bas.Selfbas13.ToString();
            lblSelfbas14.Text = bas.Selfbas14.ToString();
            lblSelfbas15.Text = bas.Selfbas15.ToString();
            lblSelfbas16.Text = bas.Selfbas16.ToString();
            lblSelfbas17.Text = bas.Selfbas17.ToString();

            lblUpbas1.Text  = bas.Upbas1.ToString();
            lblUpbas2.Text  = bas.Upbas2.ToString();
            lblUpbas3.Text  = bas.Upbas3.ToString();
            lblUpbas4.Text  = bas.Upbas4.ToString();
            lblUpbas5.Text  = bas.Upbas5.ToString();
            lblUpbas6.Text  = bas.Upbas6.ToString();
            lblUpbas7.Text  = bas.Upbas7.ToString();
            lblUpbas8.Text  = bas.Upbas8.ToString();
            lblUpbas9.Text  = bas.Upbas9.ToString();
            lblUpbas10.Text = bas.Upbas10.ToString();
            lblUpbas11.Text = bas.Upbas11.ToString();
            lblUpbas12.Text = bas.Upbas12.ToString();
            lblUpbas13.Text = bas.Upbas13.ToString();
            lblUpbas14.Text = bas.Upbas14.ToString();
            lblUpbas15.Text = bas.Upbas15.ToString();
            lblUpbas16.Text = bas.Upbas16.ToString();
            lblUpbas17.Text = bas.Upbas17.ToString();

            lblSecbas1.Text  = bas.Secbas1.ToString();
            lblSecbas2.Text  = bas.Secbas2.ToString();
            lblSecbas3.Text  = bas.Secbas3.ToString();
            lblSecbas4.Text  = bas.Secbas4.ToString();
            lblSecbas5.Text  = bas.Secbas5.ToString();
            lblSecbas6.Text  = bas.Secbas6.ToString();
            lblSecbas7.Text  = bas.Secbas7.ToString();
            lblSecbas8.Text  = bas.Secbas8.ToString();
            lblSecbas9.Text  = bas.Secbas9.ToString();
            lblSecbas10.Text = bas.Secbas10.ToString();
            lblSecbas11.Text = bas.Secbas11.ToString();
            lblSecbas12.Text = bas.Secbas12.ToString();
            lblSecbas13.Text = bas.Secbas13.ToString();
            lblSecbas14.Text = bas.Secbas14.ToString();
            lblSecbas15.Text = bas.Secbas15.ToString();
            lblSecbas16.Text = bas.Secbas16.ToString();
            lblSecbas17.Text = bas.Secbas17.ToString();

            lblTotalScore.Text = bas.TotalScore.ToString();
            if (bas.EvaluateLevelId.ToString() != "")
            {
                EvaluateLevelInfo le = new EvaluateLevelInfo(Convert.ToInt32(bas.EvaluateLevelId));
                lblLevel.Text = le.EvaluateName.ToString();
            }
            else
            {
                lblLevel.Text = "";
            }
            lblViews.Text = bas.UpViews.ToString();
        }
コード例 #20
0
ファイル: BASEmApprove.aspx.cs プロジェクト: xingfudaiyan/OA
        protected void PageInit()
        {
            int basid = Convert.ToInt32(Request["BasEmScoreId"].ToString());
            BasEmScoreInfo bas = new BasEmScoreInfo(basid);
            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(bas.EmployeeId));
            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));
            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));
            lblDepart.Text = depart.DepartName.ToString();

            //ddlYear.SelectedValue = bas.YearId.ToString();
            //ddlMonth.SelectedValue = bas.MonthId.ToString();

            YearInfo year = new YearInfo(Convert.ToInt32(bas.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(bas.MonthId));
            lblDate.Text = year.YearName + "��" + month.MonthNames + "��";

            lblSelfbas1.Text = bas.Selfbas1.ToString();
            lblSelfbas2.Text = bas.Selfbas2.ToString();
            lblSelfbas3.Text = bas.Selfbas3.ToString();
            lblSelfbas4.Text = bas.Selfbas4.ToString();
            lblSelfbas5.Text = bas.Selfbas5.ToString();
            lblSelfbas6.Text = bas.Selfbas6.ToString();
            lblSelfbas7.Text = bas.Selfbas7.ToString();
            lblSelfbas8.Text = bas.Selfbas8.ToString();
            lblSelfbas9.Text = bas.Selfbas9.ToString();
            lblSelfbas10.Text = bas.Selfbas10.ToString();
            lblSelfbas11.Text = bas.Selfbas11.ToString();
            lblSelfbas12.Text = bas.Selfbas12.ToString();
            lblSelfbas13.Text = bas.Selfbas13.ToString();
            lblSelfbas14.Text = bas.Selfbas14.ToString();
            lblSelfbas15.Text = bas.Selfbas15.ToString();
            lblSelfbas16.Text = bas.Selfbas16.ToString();
            lblSelfbas17.Text = bas.Selfbas17.ToString();
        }
コード例 #21
0
ファイル: TechEmApprove.aspx.cs プロジェクト: xingfudaiyan/OA
        protected void PageInit()
        {
            int tmsid = Convert.ToInt32(Request["TechEmScoreId"].ToString());
            TechEmScoreInfo tms = new TechEmScoreInfo(tmsid);
            lblSelfPlan.Text = tms.SelfPlan.ToString();
            lblSelfWorkTotal.Text = tms.SelfWorkTotal.ToString();
            lblSelfWorkSpeed.Text = tms.SelfWorkSpeed.ToString();
            lblSelfCommunicate.Text = tms.SelfCommunicate.ToString();
            lblSelfDescipline.Text = tms.SelfDescipline.ToString();
            lblSelfExecute.Text = tms.SelfExecute.ToString();
            lblSelfRoute.Text = tms.SelfRoute.ToString();
            lblSelfProfession.Text = tms.SelfProfession.ToString();
            lblSelfAttitude.Text = tms.SelfAttitude.ToString();
            lblSelfComplex.Text = tms.SelfComplex.ToString();
            lblSelfSpeciality.Text = tms.SelfSpeciality.ToString();

            //ddlYear.SelectedValue = tms.YearId.ToString();
            //ddlMonth.SelectedValue = tms.MonthId.ToString();

            YearInfo year = new YearInfo(Convert.ToInt32(tms.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(tms.MonthId));
            lblDate.Text = year.YearName + "��" + month.MonthNames + "��";

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(tms.EmployeeId));
            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(Convert.ToInt32(em.PositionId)));
            lblPosition.Text = position.PositionName;
            rblAddScore.SelectedValue = "0";
        }
コード例 #22
0
        protected void PageInit()
        {
            int dsid=Convert.ToInt32(Request["DriverScoreId"].ToString());
            DriverScoreInfo ds=new DriverScoreInfo(dsid);

            EmployeeInfo em=new EmployeeInfo(Convert.ToInt32(ds.EmployeeId));
            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));
            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));
            lblDepart.Text = depart.DepartName.ToString();

            //ddlYear.SelectedValue=ds.YearId.ToString();
            //ddlMonth.SelectedValue=ds.MonthId.ToString();

            YearInfo year = new YearInfo(Convert.ToInt32(ds.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(ds.MonthId));
            lblDate.Text = year.YearName + "Äê" + month.MonthNames + "ÔÂ";

            lblSelfds1.Text=ds.Selfds1.ToString();
            lblSelfds2.Text=ds.Selfds2.ToString();
            lblSelfds3.Text=ds.Selfds3.ToString();
            lblSelfds4.Text=ds.Selfds4.ToString();
            lblSelfds5.Text=ds.Selfds5.ToString();
            lblSelfds6.Text=ds.Selfds6.ToString();
            lblSelfds7.Text=ds.Selfds7.ToString();
            lblSelfds8.Text=ds.Selfds8.ToString();
            lblSelfds9.Text=ds.Selfds9.ToString();
            lblSelfds10.Text=ds.Selfds10.ToString();
            lblSelfds11.Text=ds.Selfds11.ToString();
            lblSelfds12.Text=ds.Selfds12.ToString();
            lblSelfds13.Text=ds.Selfds13.ToString();
            lblSelfds14.Text=ds.Selfds14.ToString();
            lblSelfds15.Text=ds.Selfds15.ToString();
            lblSelfds16.Text=ds.Selfds16.ToString();
            lblSelfds17.Text=ds.Selfds17.ToString();
            lblSelfds18.Text=ds.Selfds18.ToString();
            lblSelfds19.Text=ds.Selfds19.ToString();
            lblSelfds20.Text=ds.Selfds20.ToString();
            lblSelfds21.Text=ds.Selfds21.ToString();
            lblSelfds22.Text=ds.Selfds22.ToString();
            lblSelfds23.Text=ds.Selfds23.ToString();

            lblUpds1.Text=ds.Upds1.ToString();
            lblUpds2.Text=ds.Upds2.ToString();
            lblUpds3.Text=ds.Upds3.ToString();
            lblUpds4.Text=ds.Upds4.ToString();
            lblUpds5.Text=ds.Upds5.ToString();
            lblUpds6.Text=ds.Upds6.ToString();
            lblUpds7.Text=ds.Upds7.ToString();
            lblUpds8.Text=ds.Upds8.ToString();
            lblUpds9.Text=ds.Upds9.ToString();
            lblUpds10.Text=ds.Upds10.ToString();
            lblUpds11.Text=ds.Upds11.ToString();
            lblUpds12.Text=ds.Upds12.ToString();
            lblUpds13.Text=ds.Upds13.ToString();
            lblUpds14.Text=ds.Upds14.ToString();
            lblUpds15.Text=ds.Upds15.ToString();
            lblUpds16.Text=ds.Upds16.ToString();
            lblUpds17.Text=ds.Upds17.ToString();
            lblUpds18.Text=ds.Upds18.ToString();
            lblUpds19.Text=ds.Upds19.ToString();
            lblUpds20.Text=ds.Upds20.ToString();
            lblUpds21.Text=ds.Upds21.ToString();
            lblUpds22.Text=ds.Upds22.ToString();
            lblUpds23.Text=ds.Upds23.ToString();

            lblSectds1.Text=ds.Secds1.ToString();
            lblSectds2.Text=ds.Secds2.ToString();
            lblSectds3.Text=ds.Secds3.ToString();
            lblSectds4.Text=ds.Secds4.ToString();
            lblSectds5.Text=ds.Secds5.ToString();
            lblSectds6.Text=ds.Secds6.ToString();
            lblSectds7.Text=ds.Secds7.ToString();
            lblSectds8.Text=ds.Secds8.ToString();
            lblSectds9.Text=ds.Secds9.ToString();
            lblSectds10.Text=ds.Secds10.ToString();
            lblSectds11.Text=ds.Secds11.ToString();
            lblSectds12.Text=ds.Secds12.ToString();
            lblSectds13.Text=ds.Secds13.ToString();
            lblSectds14.Text=ds.Secds14.ToString();
            lblSectds15.Text=ds.Secds15.ToString();
            lblSectds16.Text=ds.Secds16.ToString();
            lblSectds17.Text=ds.Secds17.ToString();
            lblSectds18.Text=ds.Secds18.ToString();
            lblSectds19.Text=ds.Secds19.ToString();
            lblSectds20.Text=ds.Secds20.ToString();
            lblSectds21.Text=ds.Secds21.ToString();
            lblSectds22.Text=ds.Secds22.ToString();
            lblSectds23.Text=ds.Secds23.ToString();

            lblTotalScore.Text = ds.TotalScore.ToString();
        }
コード例 #23
0
ファイル: YearInfoController.cs プロジェクト: xingfudaiyan/OA
 public object SaveYearInfo(YearInfo yearInfo)
 {
     yearInfo.Save();
     return yearInfo . YearId;
 }
コード例 #24
0
        protected void PageInit()
        {
            int             TesId = Convert.ToInt32(Request["TechMaScoreId"].ToString());
            TechMaScoreInfo tms   = new TechMaScoreInfo(TesId);

            lblSelfScore1.Text  = tms.SelfScore1.ToString();
            lblSelfScore2.Text  = tms.SelfScore2.ToString();
            lblSelfScore3.Text  = tms.SelfScore3.ToString();
            lblSelfScore4.Text  = tms.SelfScore4.ToString();
            lblSelfScore5.Text  = tms.SelfScore5.ToString();
            lblSelfScore6.Text  = tms.SelfScore6.ToString();
            lblSelfScore7.Text  = tms.SelfScore7.ToString();
            lblSelfScore8.Text  = tms.SelfScore8.ToString();
            lblSelfScore9.Text  = tms.SelfScore9.ToString();
            lblSelfScore10.Text = tms.SelfScore10.ToString();
            lblSelfScore11.Text = tms.SelfScore11.ToString();
            lblSelfScore12.Text = tms.SelfScore12.ToString();
            lblSelfScore13.Text = tms.SelfScore13.ToString();

            lblUpScore1.Text  = tms.UpScore1.ToString();
            lblUpScore2.Text  = tms.UpScore2.ToString();
            lblUpScore3.Text  = tms.UpScore3.ToString();
            lblUpScore4.Text  = tms.UpScore4.ToString();
            lblUpScore5.Text  = tms.UpScore5.ToString();
            lblUpScore6.Text  = tms.UpScore6.ToString();
            lblUpScore7.Text  = tms.UpScore7.ToString();
            lblUpScore8.Text  = tms.UpScore8.ToString();
            lblUpScore9.Text  = tms.UpScore9.ToString();
            lblUpScore10.Text = tms.UpScore10.ToString();
            lblUpScore11.Text = tms.UpScore11.ToString();
            lblUpScore12.Text = tms.UpScore12.ToString();
            lblUpScore13.Text = tms.UpScore13.ToString();


            lblSectScore1.Text  = tms.SectScore1.ToString();
            lblSectScore2.Text  = tms.SectScore2.ToString();
            lblSectScore3.Text  = tms.SectScore3.ToString();
            lblSectScore4.Text  = tms.SectScore4.ToString();
            lblSectScore5.Text  = tms.SectScore5.ToString();
            lblSectScore6.Text  = tms.SectScore6.ToString();
            lblSectScore7.Text  = tms.SectScore7.ToString();
            lblSectScore8.Text  = tms.SectScore8.ToString();
            lblSectScore9.Text  = tms.SectScore9.ToString();
            lblSectScore10.Text = tms.SectScore10.ToString();
            lblSectScore11.Text = tms.SectScore11.ToString();
            lblSectScore12.Text = tms.SectScore12.ToString();
            lblSectScore13.Text = tms.SectScore13.ToString();

            //ddlYear.SelectedValue = tms.YearId.ToString();
            //ddlMonth.SelectedValue = tms.MonthId.ToString();

            YearInfo  year  = new YearInfo(Convert.ToInt32(tms.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(tms.MonthId));

            lblDate.Text = year.YearName + "Äê" + month.MonthNames + "ÔÂ";

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(tms.EmployeeId));

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(Convert.ToInt32(em.PositionId)));

            lblPosition.Text = position.PositionName;


            lblSumScore.Text = tms.TotalScore.ToString();
            lblViews.Text    = tms.UpView.ToString();
            if (tms.EvaluateLevelId.ToString() != "")
            {
                EvaluateLevelInfo ev = new EvaluateLevelInfo(Convert.ToInt32(tms.EvaluateLevelId));
                lblLevel.Text = ev.EvaluateName.ToString();
            }
            else
            {
                lblLevel.Text = "";
            }
        }
コード例 #25
0
        protected void PageInit()
        {
            int TesId = Convert.ToInt32(Request["TechEmScoreId"].ToString());
            TechEmScoreInfo tes = new TechEmScoreInfo(TesId);
            lblSelfPlan.Text=tes.SelfPlan.ToString();
            lblSelfWorkTotal.Text = tes.SelfWorkTotal.ToString();
            lblSelfWorkSpeed.Text = tes.SelfWorkSpeed.ToString();
            lblSelfCommunicate.Text = tes.SelfCommunicate.ToString();
            lblSelfDescipline.Text = tes.SelfDescipline.ToString();
            lblSelfExecute.Text = tes.SelfExecute.ToString();
            lblSelfRoute.Text = tes.SelfRoute.ToString();
            lblSelfProfession.Text = tes.SelfProfession.ToString();
            lblSelfAttitude.Text = tes.SelfAttitude.ToString();
            lblSelfComplex.Text = tes.SelfComplex.ToString();
            lblSelfSpeciality.Text = tes.SelfSpeciality.ToString();

            lblUpPlan.Text = tes.UpPlan.ToString();
            lblUpWorkTotal.Text = tes.UpWorkTotal.ToString();
            lblUpWorkSpeed.Text = tes.UpWorkSpeed.ToString();
            lblUpCommunicate.Text = tes.UpCommunicate.ToString();
            lblUpDescipline.Text = tes.UpDescipline.ToString();
            lblUpExecute.Text = tes.UpExecute.ToString();
            lblUpRoute.Text = tes.UpRoute.ToString();
            lblUpProfession.Text = tes.UpProfession.ToString();
            lblUpAttitude.Text = tes.UpAttitude.ToString();
            lblUpComplex.Text = tes.UpComplex.ToString();
            lblUpSpeciality.Text = tes.UpSpeciality.ToString();

            lblSecPlan.Text = tes.SectPlan.ToString();
            lblSecWorkTotal.Text = tes.SectWorkTotal.ToString();
            lblSecWorkSpeed.Text = tes.SectWorkSpeed.ToString();
            lblSecCommunicate.Text = tes.SectCommunicate.ToString();
            lblSecDescipline.Text = tes.SectDescipline.ToString();
            lblSecExecute.Text = tes.SectExecute.ToString();
            lblSecRoute.Text = tes.SectRoute.ToString();
            lblSecProfession.Text = tes.SectProfession.ToString();
            lblSecAttitude.Text = tes.SectAttitude.ToString();
            lblSecComplex.Text = tes.SectComplex.ToString();
            lblSecSpeciality.Text = tes.SectSpeciality.ToString();

            //ddlYear.SelectedValue = tes.YearId.ToString();
            //ddlMonth.SelectedValue = tes.MonthId.ToString();

            YearInfo year = new YearInfo(Convert.ToInt32(tes.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(tes.MonthId));
            lblDate.Text = year.YearName + "Äê" + month.MonthNames + "ÔÂ";

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(tes.EmployeeId));
            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(Convert.ToInt32(em.PositionId)));
            lblPosition.Text = position.PositionName;

            lblReason.Text = tes.Reason.ToString();
            lblAddMinusScore.Text = tes.AddMinusSocre.ToString();
            lblSumScore.Text = tes.TotalScore.ToString();
            lblViews.Text = tes.UpViews.ToString();
            EvaluateLevelInfo el = new EvaluateLevelInfo(Convert.ToInt32(tes.EvaluateLevelId));
            lblLevels.Text = el.EvaluateName.ToString();

            lblPlan.Text = tes.PlanFinish.ToString();
            lblActual.Text = tes.ActualFinish.ToString();
            lblPercent.Text = tes.FinishRate.ToString();
            lblUp.Text = tes.FinishScore.ToString();
            lblUp1.Text = tes.FinishScore.ToString();
        }
コード例 #26
0
 protected BasicCalendarSystem(string name, int minDaysInFirstWeek, FieldAssembler assembler, IEnumerable<Era> eras)
     : base(name, AssembleFields + assembler, eras)
 {
     if (minDaysInFirstWeek < 1 || minDaysInFirstWeek > 7)
     {
         throw new ArgumentOutOfRangeException("minDaysInFirstWeek", "Minimum days in first week must be between 1 and 7 inclusive");
     }
     this.minDaysInFirstWeek = minDaysInFirstWeek;
     // Effectively invalidate the first cache entry.
     // Every other cache entry will automatically be invalid,
     // by having year 0.
     yearCache[0] = new YearInfo(1, LocalInstant.LocalUnixEpoch.Ticks);
 }
コード例 #27
0
        protected void PageInit()
        {
            int            nsid = Convert.ToInt32(Request["NurseScoreId"].ToString());
            NurseScoreInfo ns   = new NurseScoreInfo(nsid);

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(ns.EmployeeId));

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));

            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));

            lblDepart.Text = depart.DepartName.ToString();


            //ddlYear.SelectedValue = ns.YearId.ToString();
            //ddlMonth.SelectedValue = ns.MonthId.ToString();

            YearInfo  year  = new YearInfo(Convert.ToInt32(ns.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(ns.MonthId));

            lblDate.Text = year.YearName + "Äê" + month.MonthNames + "ÔÂ";

            lblSelfns1.Text  = ns.Selfns1.ToString();
            lblSelfns2.Text  = ns.Selfns2.ToString();
            lblSelfns3.Text  = ns.Selfns3.ToString();
            lblSelfns4.Text  = ns.Selfns4.ToString();
            lblSelfns5.Text  = ns.Selfns5.ToString();
            lblSelfns6.Text  = ns.Selfns6.ToString();
            lblSelfns7.Text  = ns.Selfns7.ToString();
            lblSelfns8.Text  = ns.Selfns8.ToString();
            lblSelfns9.Text  = ns.Selfns9.ToString();
            lblSelfns10.Text = ns.Selfns10.ToString();
            lblSelfns11.Text = ns.Selfns11.ToString();
            lblSelfns12.Text = ns.Selfns12.ToString();
            lblSelfns13.Text = ns.Selfns13.ToString();
            lblSelfns14.Text = ns.Selfns14.ToString();
            lblSelfns15.Text = ns.Selfns15.ToString();
            lblSelfns16.Text = ns.Selfns16.ToString();
            lblSelfns17.Text = ns.Selfns17.ToString();
            lblSelfns18.Text = ns.Selfns18.ToString();
            lblSelfns19.Text = ns.Selfns19.ToString();
            lblSelfns20.Text = ns.Selfns20.ToString();
            lblSelfns21.Text = ns.Selfns21.ToString();
            lblSelfns22.Text = ns.Selfns22.ToString();
            lblSelfns23.Text = ns.Selfns23.ToString();

            lblUpns1.Text  = ns.Upns1.ToString();
            lblUpns2.Text  = ns.Upns2.ToString();
            lblUpns3.Text  = ns.Upns3.ToString();
            lblUpns4.Text  = ns.Upns4.ToString();
            lblUpns5.Text  = ns.Upns5.ToString();
            lblUpns6.Text  = ns.Upns6.ToString();
            lblUpns7.Text  = ns.Upns7.ToString();
            lblUpns8.Text  = ns.Upns8.ToString();
            lblUpns9.Text  = ns.Upns9.ToString();
            lblUpns10.Text = ns.Upns10.ToString();
            lblUpns11.Text = ns.Upns11.ToString();
            lblUpns12.Text = ns.Upns12.ToString();
            lblUpns13.Text = ns.Upns13.ToString();
            lblUpns14.Text = ns.Upns14.ToString();
            lblUpns15.Text = ns.Upns15.ToString();
            lblUpns16.Text = ns.Upns16.ToString();
            lblUpns17.Text = ns.Upns17.ToString();
            lblUpns18.Text = ns.Upns18.ToString();
            lblUpns19.Text = ns.Upns19.ToString();
            lblUpns20.Text = ns.Upns20.ToString();
            lblUpns21.Text = ns.Upns21.ToString();
            lblUpns22.Text = ns.Upns22.ToString();
            lblUpns23.Text = ns.Upns23.ToString();

            lblSectns1.Text  = ns.Secns1.ToString();
            lblSectns2.Text  = ns.Secns2.ToString();
            lblSectns3.Text  = ns.Secns3.ToString();
            lblSectns4.Text  = ns.Secns4.ToString();
            lblSectns5.Text  = ns.Secns5.ToString();
            lblSectns6.Text  = ns.Secns6.ToString();
            lblSectns7.Text  = ns.Secns7.ToString();
            lblSectns8.Text  = ns.Secns8.ToString();
            lblSectns9.Text  = ns.Secns9.ToString();
            lblSectns10.Text = ns.Secns10.ToString();
            lblSectns11.Text = ns.Secns11.ToString();
            lblSectns12.Text = ns.Secns12.ToString();
            lblSectns13.Text = ns.Secns13.ToString();
            lblSectns14.Text = ns.Secns14.ToString();
            lblSectns15.Text = ns.Secns15.ToString();
            lblSectns16.Text = ns.Secns16.ToString();
            lblSectns17.Text = ns.Secns17.ToString();
            lblSectns18.Text = ns.Secns18.ToString();
            lblSectns19.Text = ns.Secns19.ToString();
            lblSectns20.Text = ns.Secns20.ToString();
            lblSectns21.Text = ns.Secns21.ToString();
            lblSectns22.Text = ns.Secns22.ToString();
            lblSectns23.Text = ns.Secns23.ToString();

            lblTotalScore.Text = ns.TotalScore.ToString();
        }
コード例 #28
0
        protected void PageInit()
        {
            int asid = Convert.ToInt32(Request["AssistantScoreId"].ToString());
            AssistantScoreInfo at = new AssistantScoreInfo(asid);

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(at.EmployeeId));
            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));
            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));
            lblDepart.Text = depart.DepartName.ToString();

            //ddlYear.SelectedValue = at.YearId.ToString();
            //ddlMonth.SelectedValue = at.MonthId.ToString();

            YearInfo year = new YearInfo(Convert.ToInt32(at.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(at.MonthId));
            lblDate.Text = year.YearName + "Äê" + month.MonthNames + "ÔÂ";

            lblSelfas1.Text = at.Selfas1.ToString();
            lblSelfas2.Text = at.Selfas2.ToString();
            lblSelfas3.Text = at.Selfas3.ToString();
            lblSelfas4.Text = at.Selfas4.ToString();
            lblSelfas5.Text = at.Selfas5.ToString();
            lblSelfas6.Text = at.Selfas6.ToString();
            lblSelfas7.Text = at.Selfas7.ToString();
            lblSelfas8.Text = at.Selfas8.ToString();
            lblSelfas9.Text = at.Selfas9.ToString();
            lblSelfas10.Text = at.Selfas10.ToString();
            lblSelfas11.Text = at.Selfas11.ToString();
            lblSelfas12.Text = at.Selfas12.ToString();
            lblSelfas13.Text = at.Selfas13.ToString();
            lblSelfas14.Text = at.Selfas14.ToString();
            lblSelfas15.Text = at.Selfas15.ToString();
            lblSelfas16.Text = at.Selfas16.ToString();
            lblSelfas17.Text = at.Selfas17.ToString();
            lblSelfas18.Text = at.Selfas18.ToString();
            lblSelfas19.Text = at.Selfas19.ToString();

            lblUpas1.Text = at.Upas1.ToString();
            lblUpas2.Text = at.Upas2.ToString();
            lblUpas3.Text = at.Upas3.ToString();
            lblUpas4.Text = at.Upas4.ToString();
            lblUpas5.Text = at.Upas5.ToString();
            lblUpas6.Text = at.Upas6.ToString();
            lblUpas7.Text = at.Upas7.ToString();
            lblUpas8.Text = at.Upas8.ToString();
            lblUpas9.Text = at.Upas9.ToString();
            lblUpas10.Text = at.Upas10.ToString();
            lblUpas11.Text = at.Upas11.ToString();
            lblUpas12.Text = at.Upas12.ToString();
            lblUpas13.Text = at.Upas13.ToString();
            lblUpas14.Text = at.Upas14.ToString();
            lblUpas15.Text = at.Upas15.ToString();
            lblUpas16.Text = at.Upas16.ToString();
            lblUpas17.Text = at.Upas17.ToString();
            lblUpas18.Text = at.Upas18.ToString();
            lblUpas19.Text = at.Upas19.ToString();

            lblSecas1.Text = at.Secas1.ToString();
            lblSecas2.Text = at.Secas2.ToString();
            lblSecas3.Text = at.Secas3.ToString();
            lblSecas4.Text = at.Secas4.ToString();
            lblSecas5.Text = at.Secas5.ToString();
            lblSecas6.Text = at.Secas6.ToString();
            lblSecas7.Text = at.Secas7.ToString();
            lblSecas8.Text = at.Secas8.ToString();
            lblSecas9.Text = at.Secas9.ToString();
            lblSecas10.Text = at.Secas10.ToString();
            lblSecas11.Text = at.Secas11.ToString();
            lblSecas12.Text = at.Secas12.ToString();
            lblSecas13.Text = at.Secas13.ToString();
            lblSecas14.Text = at.Secas14.ToString();
            lblSecas15.Text = at.Secas15.ToString();
            lblSecas16.Text = at.Secas16.ToString();
            lblSecas17.Text = at.Secas17.ToString();
            lblSecas18.Text = at.Secas18.ToString();
            lblSecas19.Text = at.Secas19.ToString();

            lblTotalScore.Text = at.TotalScore.ToString();
            if (at.EvaluateLevelId.ToString() != "")
            {
                EvaluateLevelInfo le = new EvaluateLevelInfo(Convert.ToInt32(at.EvaluateLevelId));
                lblLevel.Text = le.EvaluateName.ToString();
            }
            else
            {
                lblLevel.Text = "";
            }
            lblViews.Text = at.UpViews.ToString();
        }
コード例 #29
0
        protected void PageInit()
        {
            int fsid = Convert.ToInt32(Request["FrontScoreId"].ToString());
            FrontScoreInfo fs = new FrontScoreInfo(fsid);
            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(fs.EmployeeId));
            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));
            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));
            lblDepart.Text = depart.DepartName.ToString();

            //ddlYear.SelectedValue = fs.YearId.ToString();
            //ddlMonth.SelectedValue = fs.MonthId.ToString();

            YearInfo year = new YearInfo(Convert.ToInt32(fs.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(fs.MonthId));
            lblDate.Text = year.YearName + "��" + month.MonthNames + "��";

            lblSelffs1.Text = fs.Selffs1.ToString();
            lblSelffs2.Text = fs.Selffs2.ToString();
            lblSelffs3.Text = fs.Selffs3.ToString();
            lblSelffs4.Text = fs.Selffs4.ToString();
            lblSelffs5.Text = fs.Selffs5.ToString();
            lblSelffs6.Text = fs.Selffs6.ToString();
            lblSelffs7.Text = fs.Selffs7.ToString();

            lblSelffs9.Text = fs.Selffs9.ToString();
            lblSelffs10.Text = fs.Selffs10.ToString();
            lblSelffs11.Text = fs.Selffs11.ToString();
            lblSelffs12.Text = fs.Selffs12.ToString();
            lblSelffs13.Text = fs.Selffs13.ToString();
            lblSelffs14.Text = fs.Selffs14.ToString();
            lblSelffs15.Text = fs.Selffs15.ToString();
            lblSelffs16.Text = fs.Selffs16.ToString();
            lblSelffs17.Text = fs.Selffs17.ToString();
            lblSelffs18.Text = fs.Selffs18.ToString();
            lblSelffs19.Text = fs.Selffs19.ToString();
            lblSelffs20.Text = fs.Selffs20.ToString();
            lblSelffs21.Text = fs.Selffs21.ToString();
        }
コード例 #30
0
        protected void PageInit()
        {
            int msid = Convert.ToInt32(Request["MarketScoreId"].ToString());
            MarketScoreInfo ms = new MarketScoreInfo(msid);
            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(ms.EmployeeId));
            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));
            lblPosition.Text = position.PositionName.ToString();

            //ddlYear.SelectedValue = ms.YearId.ToString();
            //ddlMonth.SelectedValue = ms.MonthId.ToString();

            YearInfo year = new YearInfo(Convert.ToInt32(ms.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(ms.MonthId));
            lblDate.Text = year.YearName + "��" + month.MonthNames + "��";

            lblSelfms1.Text = ms.Selfms1.ToString();
            lblSelfms2.Text = ms.Selfms2.ToString();
            lblSelfms3.Text = ms.Selfms3.ToString();
            lblSelfms4.Text = ms.Selfms4.ToString();
            lblSelfms5.Text = ms.Selfms5.ToString();
            lblSelfms6.Text = ms.Selfms6.ToString();
            lblSelfms7.Text = ms.Selfms7.ToString();
            lblSelfms8.Text = ms.Selfms8.ToString();
            lblSelfms9.Text = ms.Selfms9.ToString();
            lblSelfms10.Text = ms.Selfms10.ToString();
            lblSelfms11.Text = ms.Selfms11.ToString();
            lblSelfms12.Text = ms.Selfms12.ToString();
            lblSelfms13.Text = ms.Selfms13.ToString();
            lblSelfms14.Text = ms.Selfms14.ToString();
            lblSelfms15.Text = ms.Selfms15.ToString();
            lblSelfms16.Text = ms.Selfms16.ToString();
            lblSelfms17.Text = ms.Selfms17.ToString();
            lblSelfms18.Text = ms.Selfms18.ToString();
            lblSelfms19.Text = ms.Selfms19.ToString();
            lblSelfms20.Text = ms.Selfms20.ToString();
            lblSelfms21.Text = ms.Selfms21.ToString();
            lblSelfms22.Text = ms.Selfms22.ToString();
            lblSelfms23.Text = ms.Selfms23.ToString();
            lblSelfms24.Text = ms.Selfms24.ToString();
        }
コード例 #31
0
        //protected void ddlDataBind()
        //{
        //    DataTable dt = TechEmScoreInfo.getYearddl();
        //    ddlYear.DataSource = dt;
        //    ddlYear.DataTextField = "YearName";
        //    ddlYear.DataValueField = "YearId";
        //    DataRow row = dt.NewRow();
        //    row["YearName"] = "请选择年份";
        //    dt.Rows.InsertAt(row, 0);
        //    ddlYear.DataBind();

        //    DataTable dt1 = TechEmScoreInfo.getMonthddl();
        //    ddlMonth.DataSource = dt1;
        //    ddlMonth.DataTextField = "MonthNames";
        //    ddlMonth.DataValueField = "MonthId";
        //    DataRow row1 = dt1.NewRow();
        //    row1["MonthNames"] = "请选择月份";
        //    dt1.Rows.InsertAt(row1, 0);
        //    ddlMonth.DataBind();
        //}

        protected void PageInit()
        {
            int            fsid = Convert.ToInt32(Request["FrontScoreId"].ToString());
            FrontScoreInfo fs   = new FrontScoreInfo(fsid);

            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(fs.EmployeeId));

            lblName.Text = em.EmployeeName.ToString();
            PositionInfo position = new PositionInfo(Convert.ToInt32(em.PositionId));

            lblPosition.Text = position.PositionName.ToString();
            DepartInfo depart = new DepartInfo(Convert.ToInt32(em.DepartId));

            lblDepart.Text = depart.DepartName.ToString();

            //ddlYear.SelectedValue = fs.YearId.ToString();
            //ddlMonth.SelectedValue = fs.MonthId.ToString();

            YearInfo  year  = new YearInfo(Convert.ToInt32(fs.YearId));
            MonthInfo month = new MonthInfo(Convert.ToInt32(fs.MonthId));

            lblDate.Text = year.YearName + "年" + month.MonthNames + "月";

            lblSelffs1.Text = fs.Selffs1.ToString();
            lblSelffs2.Text = fs.Selffs2.ToString();
            lblSelffs3.Text = fs.Selffs3.ToString();
            lblSelffs4.Text = fs.Selffs4.ToString();
            lblSelffs5.Text = fs.Selffs5.ToString();
            lblSelffs6.Text = fs.Selffs6.ToString();
            lblSelffs7.Text = fs.Selffs7.ToString();

            lblSelffs9.Text  = fs.Selffs9.ToString();
            lblSelffs10.Text = fs.Selffs10.ToString();
            lblSelffs11.Text = fs.Selffs11.ToString();
            lblSelffs12.Text = fs.Selffs12.ToString();
            lblSelffs13.Text = fs.Selffs13.ToString();
            lblSelffs14.Text = fs.Selffs14.ToString();
            lblSelffs15.Text = fs.Selffs15.ToString();
            lblSelffs16.Text = fs.Selffs16.ToString();
            lblSelffs17.Text = fs.Selffs17.ToString();
            lblSelffs18.Text = fs.Selffs18.ToString();
            lblSelffs19.Text = fs.Selffs19.ToString();
            lblSelffs20.Text = fs.Selffs20.ToString();
            lblSelffs21.Text = fs.Selffs21.ToString();


            lblUpfs1.Text = fs.Upfs1.ToString();
            lblUpfs2.Text = fs.Upfs2.ToString();
            lblUpfs3.Text = fs.Upfs3.ToString();
            lblUpfs4.Text = fs.Upfs4.ToString();
            lblUpfs5.Text = fs.Upfs5.ToString();
            lblUpfs6.Text = fs.Upfs6.ToString();
            lblUpfs7.Text = fs.Upfs7.ToString();

            lblUpfs9.Text  = fs.Upfs9.ToString();
            lblUpfs10.Text = fs.Upfs10.ToString();
            lblUpfs11.Text = fs.Upfs11.ToString();
            lblUpfs12.Text = fs.Upfs12.ToString();
            lblUpfs13.Text = fs.Upfs13.ToString();
            lblUpfs14.Text = fs.Upfs14.ToString();
            lblUpfs15.Text = fs.Upfs15.ToString();
            lblUpfs16.Text = fs.Upfs16.ToString();
            lblUpfs17.Text = fs.Upfs17.ToString();
            lblUpfs18.Text = fs.Upfs18.ToString();
            lblUpfs19.Text = fs.Upfs19.ToString();
            lblUpfs20.Text = fs.Upfs20.ToString();
            lblUpfs21.Text = fs.Upfs21.ToString();


            lblSectfs1.Text = fs.Secfs1.ToString();
            lblSectfs2.Text = fs.Secfs2.ToString();
            lblSectfs3.Text = fs.Secfs3.ToString();
            lblSectfs4.Text = fs.Secfs4.ToString();
            lblSectfs5.Text = fs.Secfs5.ToString();
            lblSectfs6.Text = fs.Secfs6.ToString();
            lblSectfs7.Text = fs.Secfs7.ToString();

            lblSectfs9.Text  = fs.Secfs9.ToString();
            lblSectfs10.Text = fs.Secfs10.ToString();
            lblSectfs11.Text = fs.Secfs11.ToString();
            lblSectfs12.Text = fs.Secfs12.ToString();
            lblSectfs13.Text = fs.Secfs13.ToString();
            lblSectfs14.Text = fs.Secfs14.ToString();
            lblSectfs15.Text = fs.Secfs15.ToString();
            lblSectfs16.Text = fs.Secfs16.ToString();
            lblSectfs17.Text = fs.Secfs17.ToString();
            lblSectfs18.Text = fs.Secfs18.ToString();
            lblSectfs19.Text = fs.Secfs19.ToString();
            lblSectfs20.Text = fs.Secfs20.ToString();
            lblSectfs21.Text = fs.Secfs21.ToString();

            lblTotalScore.Text = fs.TotalScore.ToString();


            if (fs.EvaluateLevelId.ToString() != "")
            {
                EvaluateLevelInfo le = new EvaluateLevelInfo(Convert.ToInt32(fs.EvaluateLevelId));
                lblLevel.Text = le.EvaluateName.ToString();
            }
            else
            {
                lblLevel.Text = "";
            }
            lblViews.Text = fs.UpViews.ToString();
        }
コード例 #32
0
ファイル: DTC.cs プロジェクト: bilginesme/WebApiAzure
            public static void GetNextPrevDates(DTC.RangeEnum range, DateTime date, NextPrevEnum np, out DateTime startDate, out DateTime endDate)
            {
                startDate = DateTime.Today;
                endDate   = DateTime.Today;

                if (range == DTC.RangeEnum.Day)
                {
                    if (np == NextPrevEnum.Next)
                    {
                        startDate = date.AddDays(1);
                        endDate   = startDate;
                    }
                    if (np == NextPrevEnum.Previous)
                    {
                        startDate = date.AddDays(-1);
                        endDate   = startDate;
                    }
                    if (np == NextPrevEnum.Today)
                    {
                        startDate = date;
                        endDate   = startDate;
                    }
                }
                else if (range == DTC.RangeEnum.Week)
                {
                    WeekInfo week = new WeekInfo(date);

                    if (np == NextPrevEnum.Next)
                    {
                        startDate = GetNextWeek(week).StartDate;
                        endDate   = GetNextWeek(week).EndDate;
                    }
                    if (np == NextPrevEnum.Previous)
                    {
                        startDate = GetPreviousWeek(week).StartDate;
                        endDate   = GetPreviousWeek(week).EndDate;
                    }
                    if (np == NextPrevEnum.Today)
                    {
                        startDate = week.StartDate;
                        endDate   = week.EndDate;
                    }
                }
                else if (range == DTC.RangeEnum.Month)
                {
                    MonthInfo month = new MonthInfo(date);

                    if (np == NextPrevEnum.Next)
                    {
                        startDate = GetNextMonth(month).StartDate;
                        endDate   = GetNextMonth(month).EndDate;
                    }
                    if (np == NextPrevEnum.Previous)
                    {
                        startDate = GetPreviousMonth(month).StartDate;
                        endDate   = GetPreviousMonth(month).EndDate;
                    }
                    if (np == NextPrevEnum.Today)
                    {
                        startDate = month.StartDate;
                        endDate   = month.EndDate;
                    }
                }
                else if (range == DTC.RangeEnum.Quarter)
                {
                    QuarterInfo quarter = new QuarterInfo(date);

                    if (np == NextPrevEnum.Next)
                    {
                        startDate = GetNextQuarter(quarter).StartDate;
                        endDate   = GetNextQuarter(quarter).EndDate;
                    }
                    if (np == NextPrevEnum.Previous)
                    {
                        startDate = GetPreviousQuarter(quarter).StartDate;
                        endDate   = GetPreviousQuarter(quarter).EndDate;
                    }
                    if (np == NextPrevEnum.Today)
                    {
                        startDate = quarter.StartDate;
                        endDate   = quarter.EndDate;
                    }
                }
                else if (range == DTC.RangeEnum.Year)
                {
                    if (np == NextPrevEnum.Next)
                    {
                        startDate = new YearInfo(date.Year + 1).StartDate;
                        endDate   = new YearInfo(date.Year + 1).EndDate;
                    }
                    if (np == NextPrevEnum.Previous)
                    {
                        startDate = new YearInfo(date.Year - 1).StartDate;
                        endDate   = new YearInfo(date.Year - 1).EndDate;
                    }
                    if (np == NextPrevEnum.Today)
                    {
                        startDate = new YearInfo(date.Year).StartDate;
                        endDate   = new YearInfo(date.Year).EndDate;
                    }
                }
            }