예제 #1
0
        public void CommitEvent(object key)
        {
            Guid prjId = new Guid(key.ToString());
            PTPrjMemberService service = new PTPrjMemberService();
            List <string>      list    = (from m in service
                                          where m.PrjGuid.Value == prjId
                                          select m.MemberCode).ToList <string>();
            PTPrjInfoZTBUserService service2 = new PTPrjInfoZTBUserService();

            foreach (string str in list)
            {
                PTPrjInfoZTBUser item = new PTPrjInfoZTBUser {
                    Id       = Guid.NewGuid().ToString(),
                    PrjGuid  = prjId.ToString(),
                    UserCode = str
                };
                service2.Add(item);
            }
        }
예제 #2
0
    protected void btnSave_Click(object sender, System.EventArgs e)
    {
        PTPrjMemberService pTPrjMemberService = new PTPrjMemberService();

        try
        {
            PTPrjMember byId = pTPrjMemberService.GetById(this.hfldPrjMemberID.Value);
            if (byId != null)
            {
                byId.Post                  = this.txtMPost.Text.Trim();
                byId.Technical             = this.txtMTechnical.Text.Trim();
                byId.TrainingInformation   = this.txtMTrainingInformation.Text.Trim();
                byId.PastPerformance       = this.txtMPastPerformance.Text.Trim();
                byId.PostAndCompetency     = this.txtMPostAndCompetency.Text.Trim();
                byId.EducationalBackground = this.txtMEducationalBackground.Text.Trim();
                pTPrjMemberService.Update(byId);
                base.RegisterScript("top.ui.winSuccess({ parentName:'_SetAdjunct'});top.ui.closeWin();top.ui.show('保存成功!');");
            }
        }
        catch
        {
            base.RegisterScript("top.ui.alert('保存失败!');");
        }
    }