Esempio n. 1
0
 //保存赋值
 public void InsertValue()
 {
     ahievementca.CACommnetLevel = tCACommnetLevel.Text.Trim();
     ahievementca.AchievementID  = ach.FindByAchievementName(tAchievement.Text.Trim());
     ahievementca.CATime         = dCATime.SelectedDate;
     ahievementca.CAUnit         = tCAUnit.Text.Trim();
     ahievementca.ProjectMember  = tMember.Text.Trim();
     ahievementca.SecrecyLevel   = Convert.ToInt32(dSecrecyLevel.SelectedIndex + 1);
 }
 //保存赋值
 public void InsertValue()
 {
     app.ApplyUnit       = tApplyUnit.Text.Trim();
     app.EconomicBenefit = tEconomicBenefit.Text.Trim();
     app.EndTime         = dEndTime.SelectedDate;
     app.StartTime       = dStartTime.SelectedDate;
     app.SecrecyLevel    = Convert.ToInt32(dSecrecyLevel.SelectedIndex + 1);
     app.Use             = tUse.Text.Trim();
     app.AchievementID   = ach.FindByAchievementName(tAchievement.Text.Trim());
     app.Member          = TextAreaMember.Text.Trim();
 }
 //更新赋值
 public void UpdateValue()
 {
     aca.CACommnetLevel = tCACommnetLevel.Text.Trim();
     aca.AchievementID  = ach.FindByAchievementName(tAchievement.Text.Trim());
     aca.CATime         = dCATime.SelectedDate;
     aca.CAUnit         = tCAUnit.Text.Trim();
     aca.ProjectMember  = tProjectMember.Text.Trim();
     //aca.EntryPerson = Session["LoginName"].ToString();
     aca.EntryPerson  = ca.FindAll(Convert.ToInt32(Session["AchievementCAID"])).EntryPerson;
     aca.SecrecyLevel = Convert.ToInt32(dSecrecyLevel.SelectedIndex + 1);
 }
Esempio n. 4
0
        //插入赋值
        public void InsertValue()
        {
            ac.AchievementID = ach.FindByAchievementName(tAchievement.Text.Trim());
            ac.AwardGrade    = tAwardGrade.Text.Trim();
            ac.AwardName     = tAwardName.Text.Trim();
            ac.AwardType     = tAwardType.Text.Trim();
            ac.AwardPeople   = tAwardPeople.Text.Trim();
            ac.AwardUnit     = DropDownListAgency.SelectedText.Trim();

            ac.SecrecyLevel = Convert.ToInt32(dSecrecyLevel.SelectedIndex + 1);

            ac.Member = tMember.Text.Trim();
        }
Esempio n. 5
0
        //更新赋值
        public void UpDateValue()
        {
            achieve.AchievementID = ach.FindByAchievementName(tAchievement.Text.Trim());
            achieve.AwardGrade = tAwardGrade.Text.Trim();
            achieve.AwardName = tAwardName.Text.Trim();
            achieve.AwardType = tAwardType.Text.Trim();
            achieve.AwardPeople = tAwardPeople.Text.Trim();
            achieve.AwardUnit = DropDownListAgency.SelectedText;
            achieve.EntryPerson = award.FindAll(Convert.ToInt32(Session["AchieveAwardID"])).EntryPerson;
            achieve.SecrecyLevel = Convert.ToInt32(dSecrecyLevel.SelectedIndex + 1);

            achieve.Member = tAwardMember.Text.Trim();

        }
 //更新赋值
 public void UpdateValue()
 {
     apply.ApplyUnit       = tApplyUnit.Text.Trim();
     apply.EconomicBenefit = tEconomicBenefit.Text.Trim();
     apply.EndTime         = dEndTime.SelectedDate;
     apply.StartTime       = dStartTime.SelectedDate;
     apply.SecrecyLevel    = Convert.ToInt32(dSecrecyLevel.SelectedIndex + 1);
     //apply.EntryPerson = Session["LoginName"].ToString();
     apply.EntryPerson   = applys.FindAll(Convert.ToInt32(Session["AchievementApplyID"])).EntryPerson;
     apply.Use           = tUse.Text.Trim();
     apply.AchievementID = ach.FindByAchievementName(tAchievement.Text.Trim());
     apply.Member        = TextAreaMember.Text;
     //apply.AttachmentID = pm.UpLoad(filePhoto);
 }
Esempio n. 7
0
        //插入赋值
        public void InsertValue()
        {
            paper.EndPageNum   = Convert.ToInt32(tEndPageNum.Text.Trim());
            paper.ImpactFactor = tImpactFactor.Text.Trim();
            paper.JournalNum   = tJournalNum.Text.Trim();
            paper.PaperRank    = dPaperRank.SelectedValue;
            //paper.WriterIdentity = dPaperIdentity.SelectedText.Trim();
            paper.WriterIdentity = dPaperIdentity.SelectedValue;
            paper.PubliseState   = DropDownList1.SelectedValue;
            //dPaperIdentity
            //paper.PaperRank = tPaperRank.Text.Trim();
            paper.PaperUnit         = DropDownListAgency.SelectedText;
            paper.PublicDate        = dPublicDate.SelectedDate;
            paper.PublicJournalName = tPublicJournalName.Text.Trim();
            paper.QuoteNum          = Convert.ToInt32(tQuoteNum.Text.Trim());
            paper.FirstWriter       = FirstWriter.Text.Trim();
            paper.MessageWriter     = MessageWriter.Text.Trim();
            paper.MWAgency          = MWAgency.Text.Trim();
            paper.Sort = DropDownList_Sort.SelectedText;
            if (tRemark.Text.Trim() != "")
            {
                paper.Remark = tRemark.Text.Trim();
            }
            else
            {
                paper.Remark = "";
            }

            paper.RetrieveSituation = dRetrieveSituation.SelectedText;
            paper.SerialNum         = tSerialNum.Text.Trim();
            paper.StartPageNum      = Convert.ToInt32(tStartPageNum.Text.Trim());
            paper.Subject           = tSubject.Text.Trim();
            paper.VolumesNum        = tVolumesNum.Text.Trim();
            int id = ach.FindByAchievementName(tAchievement.Text.Trim());

            if (id != 0)
            {
                paper.AchievementID = id;
            }
            else
            {
                paper.AchievementID = null;
            }
            paper.IncludeNum   = tIncludeNum.Text.Trim();
            paper.SecrecyLevel = 1;
            paper.HQuoteNum    = Convert.ToInt32(tHQuoteNum.Text.Trim());
            paper.PaperPeople  = PaperPeople.Text.Trim();
        }
Esempio n. 8
0
        //初始化所属成果名称
        public void InitAchievement()
        {
            try
            {
                BLHelper.BLLAchievement            achevement = new BLHelper.BLLAchievement();
                List <Common.Entities.Achievement> list       = achevement.FindAllAchievementName();
                int id = 0;
                List <Common.Entities.Patent> listA = patent.FindAll(Convert.ToInt32(Session["PatentID"]));
                Common.Entities.Patent        pa    = listA.FirstOrDefault();
                for (int i = 0; i < list.Count(); i++)
                {
                    tAchievement.Items.Add(list[i].AchievementName.ToString(), list[i].AchievementID.ToString());
                    if (pa.AchievementID != null)
                    {
                        if (achevement.FindByAchievementName(pa.AchievementID) != 0)
                        {
                            id = -1;
                        }
                    }
                }

                if (pa.AchievementID != null && id == 0)
                {
                    //tAchievement.Text = ach.FindAchieveName(Convert.ToInt32(pa.AchievementID));
                    tAchievement.Items.Add(pa.AchievementID, pa.AchievementID);
                    tAchievement.SelectedValue = pa.AchievementID;
                }
                else if (pa.AchievementID != null && id != 0)
                {
                    tAchievement.SelectedValue = achevement.FindByAchievementNamelist(pa.AchievementID)[0].ToString();
                }
                else
                {
                    tAchievement.SelectedValue = list[0].AchievementID.ToString();
                }
            }
            catch (Exception ex)
            {
                pm.SaveError(ex, this.Request);
            }
        }