Example #1
0
 protected void bAdmissTypeCode_Click(object sender, EventArgs e)
 {
     try
     {
         CY.GFive.Core.Business.ParentCode pct = CY.GFive.Core.Business.ParentCode.GetInstance("AdmissType");
         if (pct == null)
         {
             CY.GFive.Core.Business.ParentCode pc = new CY.GFive.Core.Business.ParentCode();
             pc.Des = "招生类型";
             pc.PCateCode = "AdmissType";
             pc.PName = "AdmissType";
             pc.Save();
         }
         CY.GFive.Core.Business.CateCode ncc = new CY.GFive.Core.Business.CateCode();
         ncc.CateName = txtAdmissTypeCodeName.Text;
         ncc.CateDes = txtAdmissTypeCodeName.Text;
         ncc.Code = txtAdmissTypeCodeCode.Text;
         ncc.ParentCode = "AdmissType";
         ncc.Save();
         txtAdmissTypeCodeCode.Text = "";
         txtAdmissTypeCodeName.Text = "";
         BindAdmissType();
     }
     catch (Exception ex)
     {
         ErrorMsg.Text = "错误:" + ex.Message;
     }
 }
Example #2
0
 protected void bAddProfessLvl_Click(object sender, EventArgs e)
 {
     try
     {
         CY.GFive.Core.Business.ParentCode pct = CY.GFive.Core.Business.ParentCode.GetInstance("ProfessLvl");
         if (pct == null)
         {
             CY.GFive.Core.Business.ParentCode pc = new CY.GFive.Core.Business.ParentCode();
             pc.Des = "专业级别";
             pc.PCateCode = "ProfessLvl";
             pc.PName = "ProfessLvl";
             pc.Save();
         }
         CY.GFive.Core.Business.CateCode ncc = new CY.GFive.Core.Business.CateCode();
         ncc.CateName = txtProfessLvlName.Text;
         ncc.CateDes = txtProfessLvlName.Text;
         ncc.Code = txtProfessLvlCode.Text;
         ncc.ParentCode = "ProfessLvl";
         ncc.Save();
         txtProfessLvlCode.Text = "";
         txtProfessLvlName.Text = "";
         BindProfessLev();
     }
     catch (Exception ex)
     {
         ErrorMsg.Text = "错误:" + ex.Message;
     }
 }
Example #3
0
 protected void btxtStdStatus_Click(object sender, EventArgs e)
 {
     try
     {
         CY.GFive.Core.Business.ParentCode pct = CY.GFive.Core.Business.ParentCode.GetInstance("StdState");
         if (pct == null)
         {
             CY.GFive.Core.Business.ParentCode pc = new CY.GFive.Core.Business.ParentCode();
             pc.Des = "学生状态";
             pc.PCateCode = "StdState";
             pc.PName = "StdState";
             pc.Save();
         }
         CY.GFive.Core.Business.CateCode ncc = new CY.GFive.Core.Business.CateCode();
         ncc.CateName = txtStdStatusName.Text;
         ncc.CateDes = txtStdStatusName.Text;
         ncc.Code = txtStdStatusCode.Text;
         ncc.ParentCode = "StdState";
         ncc.Save();
         txtStdStatusCode.Text = "";
         txtStdStatusName.Text = "";
         BindStdStatus();
     }
     catch (Exception ex)
     {
         ErrorMsg.Text = "错误:" + ex.Message;
     }
 }
Example #4
0
 protected void bAddEntCate_Click(object sender, EventArgs e)
 {
     try
     {
         CY.GFive.Core.Business.ParentCode pct = CY.GFive.Core.Business.ParentCode.GetInstance("EnterpriseCate");
         if (pct == null)
         {
             CY.GFive.Core.Business.ParentCode pc = new CY.GFive.Core.Business.ParentCode();
             pc.Des = "企业类型";
             pc.PCateCode = "EnterpriseCate";
             pc.PName = "EnterpriseCate";
             pc.Save();
         }
         CY.GFive.Core.Business.CateCode ncc = new CY.GFive.Core.Business.CateCode();
         ncc.CateName = txtAddEntCateName.Text;
         ncc.Code = txtAddEntCateCode.Text.Trim();
         CY.GFive.Core.Business.CateCode anycc = CY.GFive.Core.Business.CateCode.GetInstance(txtAddEntCateCode.Text.Trim());
         if (anycc != null)
         {
             ErrorMsg.Text = "错误,已存在相同的类型码!";
             return;
         }
         ncc.CateDes = txtAddEntCateName.Text;
         ncc.ParentCode = "EnterpriseCate";
         ncc.Save();
         txtAddEntCateName.Text = "";
         txtAddEntCateCode.Text = "";
     }
     catch (Exception ex)
     {
         ErrorMsg.Text = "错误:" + ex.Message.ToString();
     }
     BindEnterpriseCate();
 }
Example #5
0
 protected void bYearNum_Click(object sender, EventArgs e)
 {
     try
     {
         CY.GFive.Core.Business.ParentCode pct = CY.GFive.Core.Business.ParentCode.GetInstance("YearNum");
         if (pct == null)
         {
             CY.GFive.Core.Business.ParentCode pc = new CY.GFive.Core.Business.ParentCode();
             pc.Des = "年级";
             pc.PCateCode = "YearNum";
             pc.PName = "YearNum";
             pc.Save();
         }
         CY.GFive.Core.Business.CateCode ncc = new CY.GFive.Core.Business.CateCode();
         ncc.CateName = txtYearNumName.Text;
         ncc.CateDes = txtYearNumName.Text;
         ncc.Code = txtYearNumCode.Text;
         ncc.ParentCode = "YearNum";
         ncc.Save();
         txtYearNumCode.Text = "";
         txtYearNumName.Text = "";
         BindYearNum();
     }
     catch (Exception ex)
     {
         ErrorMsg.Text = "错误:" + ex.Message;
     }
 }
Example #6
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     try
     {
         CY.GFive.Core.Business.ParentCode pct = CY.GFive.Core.Business.ParentCode.GetInstance("EmployCate");
         if (pct == null)
         {
             CY.GFive.Core.Business.ParentCode pc = new CY.GFive.Core.Business.ParentCode();
             pc.Des = "就业类型";
             pc.PCateCode = "EmployCate";
             pc.PName = "EmployCate";
             pc.Save();
         }
         CY.GFive.Core.Business.CateCode ncc = new CY.GFive.Core.Business.CateCode();
         ncc.Code = txtEmployCateCode.Text.Trim();
         ncc.CateName = txtEmployCateName.Text.Trim();
         ncc.CateDes = txtEmployCateName.Text.Trim();
         ncc.ParentCode = "EmployCate";
         ncc.Save();
         BindEmployCate();
         txtEmployCateName.Text = "";
         txtEmployCateCode.Text = "";
     }
     catch (Exception ex)
     {
         ErrorMsg.Text = "错误:" + ex.Message;
     }
 }