//初始化界面
        public void InitData()
        {
            try
            {
                Common.Entities.AchivementApply app = applys.FindAll(Convert.ToInt32(Session["AchievementApplyID"]));

                tApplyUnit.Text = app.ApplyUnit;
                if (app.EconomicBenefit != null)
                {
                    tEconomicBenefit.Text = app.EconomicBenefit;
                }
                else
                {
                    tEconomicBenefit.Text = "";
                }
                dEndTime.SelectedDate       = app.EndTime;
                dStartTime.SelectedDate     = app.StartTime;
                dSecrecyLevel.SelectedIndex = Convert.ToInt32(app.SecrecyLevel - 1);
                app.Use             = tUse.Text = app.Use;
                tAchievement.Text   = ach.FindAchieveName(Convert.ToInt32(app.AchievementID));
                TextAreaMember.Text = applys.FindName(Convert.ToInt32(app.AchivementApplyID));
                //app.AttachmentID = pm.UpLoad(filePhoto);
            }
            catch (Exception ex)
            {
                pm.SaveError(ex, this.Request);
            }
        }
示例#2
0
 //初始化
 public void InitData()
 {
     try
     {
         Common.Entities.UnitInspect ins = inspect.FindInspectInfo(Convert.ToInt32(Session["InspectID"]), true);
         if (!string.IsNullOrEmpty(ins.Duty))
         {
             tDuty.Text = ins.Duty;
         }
         else
         {
             tDuty.Text = "";
         }
         dInspectTime.SelectedDate        = ins.InspectTime;
         tInspectName.Text                = ins.InspectName;
         tWorkPlace.Text                  = ins.WorkPlace;
         tVisitContent.Text               = ins.VisitContent;
         dSecrecyLevel.SelectedIndex      = Convert.ToInt32(ins.SecrecyLevel - 1);
         DropDownListAgency.SelectedValue = agency.FindAgenName(ins.AgencyID.Value);
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
        public void InitData()
        {
            try
            {
                if (Session["ID"].ToString() != "")
                {
                    DFurtherStudy dfu = df.FindByID(Convert.ToInt32(Session["ID"]));

                    tUser.Text                  = user.FindByUserID(dfu.UserInfoID.Value);
                    tStudyPlace.Text            = dfu.StudyPlace;
                    tStudySchool.Text           = dfu.StudySchool;
                    dSecrecyLevel.SelectedValue = (dfu.SecrecyLevel - 1).ToString();
                    tContent.Text               = dfu.StudyContent;
                    tDBegainTime.SelectedDate   = dfu.DBegainTime;
                    if (dfu.DEndTime != null)
                    {
                        tDEndTime.SelectedDate = dfu.DEndTime;
                    }
                    else
                    {
                        tDEndTime.SelectedDate = null;
                    }
                }
                else
                {
                    return;
                }
            }
            catch (Exception ex)
            {
                pm.SaveError(ex, this.Request);
            }
        }
示例#4
0
 public void BindData()
 {
     try
     {
         page = 0;
         List <Common.Entities.LibraryRecord> list = new List <Common.Entities.LibraryRecord>();
         if (Convert.ToInt32(Session["SecrecyLevel"]) == 5)
         {
             list = BLLLibraryRecord.FindAll("合同");
         }
         else
         {
             int UserInfoID = BLLUser.FindID(Session["LoginName"].ToString());
             list = BLLLibraryRecord.FindByBorrowPeopel(UserInfoID, "合同");
         }
         var res = list.Skip(Grid_LibraryRecord_Pact.PageIndex * Grid_LibraryRecord_Pact.PageSize).Take(Grid_LibraryRecord_Pact.PageSize).ToList();
         Grid_LibraryRecord_Pact.RecordCount = list.Count();
         Grid_LibraryRecord_Pact.DataSource  = res;
         Grid_LibraryRecord_Pact.DataBind();
         btnDelete.Enabled = false;
     }
     catch (Exception ex)
     {
         publicMethod.SaveError(ex, this.Request);
     }
 }
示例#5
0
 //初始化
 public void InitData()
 {
     try
     {
         if (Session["FileID"].ToString() != "")
         {
             List <Files> list  = file.FindAll(Convert.ToInt32(Session["FileID"]));
             Files        files = list.FirstOrDefault();
             FileName.Text = files.FileName;
             string fileNames  = files.DocumentCategoryID;
             string AgencyName = agency.FindAgenName(files.AgencyID.Value);
             DropDownListFile.SelectedValue   = fileNames;
             DropDownListAgency.SelectedValue = AgencyName;
             DropDownListLevel.SelectedIndex  = Convert.ToInt32(files.SecrecyLevel - 1);
             LevinTime.SelectedDate           = files.LevinTime;
             LevinUnit.Text     = files.LevinUnit;
             FileRecipient.Text = files.FileRecipient;
         }
         else
         {
             return;
         }
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
示例#6
0
 //保存
 protected void Save_Click(object sender, EventArgs e)
 {
     try
     {
         if (CategoryContent.Text.Trim() == "")
         {
             Alert.ShowInTop("分类内容不能为空!");
             CategoryContent.Text = "";
             return;
         }
         if (bllBasicCode.IsTrue(DropDownListCategoryName.SelectedIndex + 1, DropDownListCategoryName.SelectedItem.Text, CategoryContent.Text))
         {
             basiccode.CategoryID      = DropDownListCategoryName.SelectedIndex + 1;
             basiccode.CategoryName    = DropDownListCategoryName.SelectedItem.Text;
             basiccode.CategoryContent = CategoryContent.Text.Trim();
             bllBasicCode.Insert(basiccode);
             PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideRefreshReference() + Alert.GetShowInTopReference("添加成功!"));
         }
         else
         {
             Alert.ShowInTop("已存在!");
         }
     }
     catch (Exception ex)
     {
         publicmethod.SaveError(ex, this.Request);;
     }
 }
示例#7
0
 //删除
 protected void Delete_Click(object sender, EventArgs e)
 {
     try
     {
         int    id       = Convert.ToInt32(Request.QueryString["id"].ToString());
         int    attachId = ca.FindAttachmentID(id);
         string srcPath  = at.FindPath(attachId);
         if (attachId == 0 || srcPath == "")
         {
             Alert.Show("该成果验收不存在相关文档");
         }
         else
         {
             pm.DeleteFile(attachId, srcPath);
             Common.Entities.AchievementCA caa = ca.FindAll(id);
             caa.AttachmentID = null;
             ca.Update(caa);
             PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideReference() + Alert.GetShowInTopReference("删除成功!"));
         }
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
示例#8
0
 private void DdlBindData()
 {
     //ddl_agencyname.Items.Clear();
     ddl_Level.Items.Clear();
     try
     {
         ////初始化机构下拉框
         //BLHelper.BLLAgency agency = new BLHelper.BLLAgency();
         //List<Common.Entities.Agency> list = agency.FindAllAgencyName();
         //for (int i = 0; i < list.Count(); i++)
         //{
         //    ddl_agencyname.Items.Add(list[i].AgencyName.ToString(), list[i].AgencyName.ToString());
         //}
         //初始化等级下拉框
         string[] SecrecyLevels = new string[] { "四级", "三级", "二级", "一级", "管理员" };
         for (int i = 0; i < Convert.ToInt32(Session["SecrecyLevel"]); i++)
         {
             ddl_Level.Items.Add(SecrecyLevels[i], i.ToString());
         }
         ddl_Level.Items[0].Selected = true;
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
示例#9
0
 public void BindData()
 {
     try
     {
         SocialPartTime social = bllSocial.FindBySocialID(Convert.ToInt32(Session["SocialPartTimeID"]), Convert.ToInt32(Session["SecrecyLevel"]), true);
         UserInfoName.Text = bllUser.FindByUserID(Convert.ToInt32(social.UserInfoID));
         DropDownListLevelName.SelectedValue = social.LevelName;
         //LevelName.Text = social.LevelName;
         PartTimeName.Text     = social.PartTimeName;
         PartTimeUnit.Text     = social.PartUnitName;
         AwardDepartments.Text = social.AwardDepartments;
         Terms.Text            = social.Terms;
         DatePickerApproveTime.SelectedDate = social.ApproveTime;
         tprimaryUnit.Text = social.primaryUnit;
         Remark.Text       = social.Remark;
         DropDownListSecrecyLevel.SelectedIndex = Convert.ToInt32(social.SecrecyLevel - 1);
         if (social.Sort == "社会兼职")
         {
             ddl_sort.SelectedIndex = 0;
         }
         else
         {
             ddl_sort.SelectedIndex = 1;
         }
     }
     catch (Exception ex)
     {
         publicmethod.SaveError(ex, this.Request);
     }
 }
示例#10
0
 //保存
 protected void Save_Click(object sender, EventArgs e)
 {
     try
     {
         if (tUser.Text.Trim() == "")
         {
             Alert.Show("人员姓名不能为空!");
             return;
         }
         if (tStudyPlace.Text.Trim() == "")
         {
             Alert.Show("进修地点不能为空!");
             return;
         }
         if (tStudySchool.Text.Trim() == "")
         {
             Alert.Show("进修学校为空!");
             return;
         }
         if (tContent.Text.Trim() == "")
         {
             Alert.Show("进修内容不能为空!");
             return;
         }
         if (tDEndTime.SelectedDate < tDBegainTime.SelectedDate)
         {
             Alert.ShowInTop("结束时间不能小于开始时间!");
             return;
         }
         string username = user.FindByLoginName(Session["LoginName"].ToString()).UserName;
         furtherstudy.EntryPerson = username;
         if (Convert.ToInt32(Session["SecrecyLevel"]) == 5)
         {
             furtherstudy.IsPass = true;
             InSertValue();
             df.Insert(furtherstudy);
             PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideRefreshReference() + Alert.GetShowInTopReference("保存成功"));
         }
         else
         {
             furtherstudy.IsPass = false;
             InSertValue();
             df.Insert(furtherstudy);
             log.LoginName        = username;
             log.OperationTime    = DateTime.Now;
             log.LoginIP          = " ";
             log.OperationContent = "DFurtherStudy";
             log.OperationType    = "添加";
             log.OperationDataID  = furtherstudy.DFurtherStudyID;
             op.Insert(log);
             PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideRefreshReference() + Alert.GetShowInTopReference("您的数据已提交,请等待确认!"));
         }
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
示例#11
0
        //添加按钮
        protected void Save_Click(object sender, EventArgs e)
        {
            try
            {
                if (MissionName.Text.Trim() == "")
                {
                    Alert.ShowInTop("节点名称不能为空!");
                    MissionName.Text = "";
                    return;
                }
                //一个项目里节点名称是可以重复的,不需要判断
                Important.MissionName = MissionName.Text.Trim();
                Important.ProjectID   = bllProject.SelectProjectID(DropDownListProjectID.SelectedText);
                // Important.Time = DatePickerTime.SelectedDate;
                Important.StartTime = DatePickerStartTime.SelectedDate;
                Important.EndTime   = DatePickerEndTime.SelectedDate;
                Important.CompleteSpecificPerson = CompleteSpecificPerson.Text.Trim();
                //lby ↓
                Important.ResearchCharge = Agency.SelectedText;

                Important.PersonCharge      = txtPersonCharge.Text.Trim();
                Important.ActualComleption  = txtActualComleption.Text.Trim();
                Important.ProjectCompletion = txtProjectCompletion.Text.Trim();
                Important.Remark            = Remark.Text.Trim();
                Important.SecrecyLevel      = DropDownListSecrecyLevel.SelectedIndex + 1;
                Important.EntryPerson       = bllUser.FindByLoginName(Session["LoginName"].ToString()).UserName;
                if (Convert.ToInt32(Session["SecrecyLevel"]) != 5)
                {
                    Important.IsPass = false;
                    bllImportant.insert(Important);
                    OperationLog operate = new OperationLog();
                    operate.LoginName        = bllUser.FindByLoginName(Session["LoginName"].ToString()).UserName;
                    operate.OperationType    = "添加";
                    operate.OperationContent = "ProjectImportantNode";
                    operate.OperationDataID  = bllImportant.FindImportantID(Important.MissionName.ToString(), Convert.ToDateTime(Important.StartTime.ToString()), Session["LoginName"].ToString());
                    operate.LoginIP          = "";
                    operate.OperationTime    = DateTime.Now;
                    bllOperate.Insert(operate);
                    PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideRefreshReference() + Alert.GetShowInTopReference("您的操作已提交审核,请等待!"));
                }
                else
                {
                    Important.IsPass = true;
                    bllImportant.insert(Important);
                    PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideRefreshReference() + Alert.GetShowInTopReference("项目重大节点添加完成!"));
                }
            }
            catch (Exception ex)
            {
                publicmethod.SaveError(ex, this.Request);
            }
        }
示例#12
0
 //部门名称
 protected string getAgencyName(int id)
 {
     try
     {
         Common.Entities.Project pro = blpro.FindProject(id, Convert.ToInt32(Session["SecrecyLevel"])).FirstOrDefault();
         string res = blag.FindAgenName(pro.AgencyID);
         return(res);
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
         return("");
     }
 }
示例#13
0
 //gd_MoneyGive数据绑定
 protected void gd_MoneyGiveData()
 {
     page = 0;
     try
     {
         List <FundInformation> result = fund.FindPaged(Convert.ToInt32(Session["SecrecyLevel"]), true, "支出");
         gd_MoneyGive.RecordCount = result.Count;
         gd_MoneyGive.DataSource  = result.Skip(gd_MoneyGive.PageIndex * gd_MoneyGive.PageSize).Take(gd_MoneyGive.PageSize).ToList();
         gd_MoneyGive.DataBind();
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
示例#14
0
 //初始化
 public void InitData()
 {
     try
     {
         int id = Convert.ToInt32(Request.QueryString["id"].ToString());
         Common.Entities.UnitInspect uni = un.FindInspectInfo(id, true);
         name.Text   = uni.InspectName;
         unit.Text   = uni.WorkPlace;
         agency.Text = agen.FindAgenName(uni.AgencyID);
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
示例#15
0
 //初始化
 public void InitData()
 {
     try
     {
         int id = Convert.ToInt32(Request.QueryString["id"].ToString());
         Common.Entities.Platform platform = BLLPlatform.FindByPlatformID(id);
         PlatformName.Text = platform.PlatformName;
         PlatformRank.Text = platform.PlatformRank;
         AgreeUnit.Text    = platform.AgreeUnit;
     }
     catch (Exception ex)
     {
         publicMethod.SaveError(ex, this.Request);
     }
 }
示例#16
0
 public void BindData()
 {
     try
     {
         List <BasicCode> list  = bllBasicCode.FindByBasicCodeID(Convert.ToInt32(Session["BasicCodeID"]));
         BasicCode        basic = list.FirstOrDefault();
         CategoryName.Text = basic.CategoryName;
         //DropDownListCategoryName.SelectedValue = basic.CategoryName;
         CategoryContent.Text = basic.CategoryContent;
     }
     catch (Exception ex)
     {
         publicmethod.SaveError(ex, this.Request);
     }
 }
示例#17
0
 //绑定数据
 public void BindData()
 {
     try
     {
         List <Common.Entities.Project> ProjectList = bllProject.FindPaged(Convert.ToInt32(Session["SecrecyLevel"]));
         People_Info.RecordCount     = ProjectList.Count;
         this.People_Info.DataSource = ProjectList.Skip(People_Info.PageIndex * People_Info.PageSize).Take(People_Info.PageSize).ToList();
         this.People_Info.DataBind();
         //btnDelete.Enabled = false;
     }
     catch (Exception ex)
     {
         publicmethod.SaveError(ex, this.Request);
     }
 }
示例#18
0
 //初始化获奖等级
 public void InitPatentGrade()
 {
     try
     {
         List <BasicCode> listname = ba.FindByCategoryName("获奖等级");
         for (int i = 0; i < listname.Count(); i++)
         {
             dGrade.Items.Add(listname[i].CategoryContent.ToString(), listname[i].CategoryContent.ToString());
         }
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
示例#19
0
 //初始化
 public void InitData()
 {
     try
     {
         int id = Convert.ToInt32(Request.QueryString["id"].ToString());
         Common.Entities.AchivementApply app = applys.FindAll(id);
         name.Text = ach.FindAchieveName(Convert.ToInt32(app.AchievementID));
         unit.Text = app.ApplyUnit;
         use.Text  = app.Use;
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
示例#20
0
 //初始化第一作者身份
 public void InitdFirstWriterSite()
 {
     try
     {
         List <BasicCode> listname = ba.FindByCategoryName("第一作者身份");
         for (int i = 0; i < listname.Count(); i++)
         {
             dPaperIdentity.Items.Add(listname[i].CategoryContent.ToString(), listname[i].CategoryContent.ToString());
         }
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
示例#21
0
 //初始化
 public void InitData()
 {
     try
     {
         int id = Convert.ToInt32(Request.QueryString["id"].ToString());
         Common.Entities.Achievement caa = ach.FindAll(id);
         name.Text   = caa.AchievementName;
         agency.Text = agen.FindAgenName(caa.AgencyID);
         unit.Text   = caa.AppraisalUnit;
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
示例#22
0
 //初始化
 public void InitData()
 {
     try
     {
         int id = Convert.ToInt32(Request.QueryString["id"].ToString());
         Common.Entities.Paper paper = BllPaper.FindAll(id);
         title.Text          = paper.Subject;
         firstWriter.Text    = paper.FirstWriter;
         writerIdentity.Text = paper.WriterIdentity;
     }
     catch (Exception ex)
     {
         publicMethod.SaveError(ex, this.Request);
     }
 }
示例#23
0
 //初始化
 public void InitData()
 {
     try
     {
         int id = Convert.ToInt32(Request.QueryString["id"].ToString());
         projectFile   = bllProjectFile.FindByProjectFileId(id);
         FileCode.Text = projectFile.FileCode;
         FileName.Text = projectFile.FileName;
         FileType.Text = projectFile.FileType;
     }
     catch (Exception ex)
     {
         publicMethod.SaveError(ex, this.Request);;
     }
 }
示例#24
0
 //初始化等级下拉框
 public void InitSecrecyLevel()
 {
     try
     {
         for (int i = 0; i < Convert.ToInt32(Session["SecrecyLevel"]); i++)
         {
             string[] SecrecyLevels = new string[] { "四级", "三级", "二级", "一级", "管理员" };
             dSecrecyLevel.Items.Add(SecrecyLevels[i], i.ToString());
         }
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }
示例#25
0
 //保存
 protected void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         if (BLLUser.FindByUserName(txtBorrowPeople.Text) == null)
         {
             Alert.ShowInTop("借阅人不存在,请重新输入!");
             return;
         }
         if (DatePicker_BorrowTime.SelectedDate > DatePicker_ReturnTime.SelectedDate)
         {
             Alert.ShowInTop("归还日期应该大于借阅日期!");
             return;
         }
         NewLibraryRecord = FindLibraryRecord();
         if (NewLibraryRecord != null)
         {
             BLLLibraryRecord.Insert(NewLibraryRecord);
             Alert.ShowInTop("保存成功!");
             PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideRefreshReference());
         }
     }
     catch (Exception ex)
     {
         BLCommon.PublicMethod pm = new BLCommon.PublicMethod();
         pm.SaveError(ex, this.Request);
     }
 }
示例#26
0
 //下载
 protected void DownLoad_Click(object sender, EventArgs e)
 {
     try
     {
         int AnnouncementID = Convert.ToInt32(Request.QueryString["id"].ToString());
         Common.Entities.Announcement Announce = BLLAnnounce.Find(AnnouncementID);
         int attachId = BLLAnnounce.FindAttachmentID(AnnouncementID);
         if (attachId != 0)
         {
             string srcPath = BLLAttachment.FindPath(attachId);
             if (srcPath != "")
             {
                 publicMethod.DownloadFile(srcPath);
             }
             else
             {
                 Alert.ShowInTop("无附件可下载!");
             }
         }
         else
         {
             Alert.ShowInTop("无附件可下载!");
         }
     }
     catch (Exception ex)
     {
         BLCommon.PublicMethod pm = new BLCommon.PublicMethod();
         pm.SaveError(ex, this.Request);
         PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHidePostBackReference() + Alert.GetShowInTopReference("附件下载失败,请与管理员联系!"));
         //Alert.ShowInTop("附件下载失败!");
     }
 }
示例#27
0
 //删除
 protected void Delete_Click(object sender, EventArgs e)
 {
     try
     {
         int    id      = Convert.ToInt32(Request.QueryString["id"].ToString());
         int    photoId = BLLAcademic.FindPhotoID(id);
         string srcPath = BLLAttachment.FindPath(photoId);
         if (photoId == 0 || srcPath == "")
         {
             Alert.Show("该学术会议不存在会议照片");
         }
         else
         {
             publicMethod.DeleteFile(photoId, srcPath);
             int MeetingID = Convert.ToInt32(Request.QueryString["id"].ToString());
             Common.Entities.AcademicMeeting meeting = BLLAcademic.FindByAcademicMeetingID(MeetingID, true);
             meeting.AttachmentID = null;
             BLLAcademic.UpdateAttachment(MeetingID);
             //Alert.Show("删除成功!");
             PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHideReference() + Alert.GetShowInTopReference("删除成功!"));
         }
     }
     catch (Exception ex)
     {
         publicMethod.SaveError(ex, this.Request);
     }
 }
示例#28
0
 //初始化
 public void InitData()
 {
     try
     {
         if (Session["PlatformID"].ToString() != "")
         {
             Common.Entities.Platform platform = new Common.Entities.Platform();
             platform             = BLLPlatform.FindByPlatformID(Convert.ToInt32(Session["PlatformID"]));
             txtPlatformName.Text = platform.PlatformName;
             DropDownListPlatformRank.SelectedValue  = platform.PlatformRank;
             DropDownListAgreeUnit.SelectedValue     = platform.AgreeUnit;
             DropDownListPlatformType.SelectedValue  = platform.PlatformType;
             DatePicker_AgreeTime.SelectedDate       = platform.AgreeTime;
             DropDownList_SecrecyLevel.SelectedValue = platform.SecrecyLevel.ToString();
             //lby↓
             txtAgreeNumber.Text        = platform.AgreeNumber;
             txtAgreeExpenditure.Text   = platform.AgreeExpenditure;
             txtPlatformPrincipal.Text  = platform.PlatformPrincipal;
             txtPlatformMember.Text     = platform.PlatformMember;
             txtPlatformManagement.Text = platform.PlatformManagement;
         }
         else
         {
             return;
         }
     }
     catch (Exception ex)
     {
         BLCommon.PublicMethod pm = new BLCommon.PublicMethod();
         pm.SaveError(ex, this.Request);
     }
 }
示例#29
0
 public void BindData()
 {
     try
     {
         ViewState["page"] = 0;
         List <StaffDevote> List = bllStaffDevote.FindAll(Convert.ToInt32(Session["SecrecyLevel"]));
         GridProjectAndPeople.RecordCount     = List.Count();
         this.GridProjectAndPeople.DataSource = List.Skip(GridProjectAndPeople.PageIndex * GridProjectAndPeople.PageSize).Take(GridProjectAndPeople.PageSize).ToList();
         this.GridProjectAndPeople.DataBind();
         btnDelete.Enabled = false;
     }
     catch (Exception ex)
     {
         publicmethod.SaveError(ex, this.Request);
     }
 }
示例#30
0
 //初始化
 public void InitData()
 {
     try
     {
         int id = Convert.ToInt32(Request.QueryString["id"].ToString());
         Common.Entities.Monograph mon = mo.FindAll(id);
         name.Text      = ach.FindAchieveName(Convert.ToInt32(mon.AchievementID));
         monograph.Text = mon.MonographName;
         //agency.Text = mon.MDepartment;
         Publisher.Text = mon.Publisher;
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }