Ejemplo n.º 1
0
 protected void DataBinds()
 {
     LabMS.BLL.Professional Pro = new LabMS.BLL.Professional();
     LabMS.Model.Professional model = new LabMS.Model.Professional();
     model = Pro.GetModel(Convert.ToInt32(QueryStrings));
     tb_Code.Text = model.Pro_Code;
     tb_EngName.Text = model.Pro_Name;
     tb_Name.Text = model.Pro_Name;
 }
Ejemplo n.º 2
0
        protected void Submit_Click(object sender, EventArgs e)
        {
            LabMS.BLL.Professional Pro = new LabMS.BLL.Professional();
            LabMS.Model.Professional model = new LabMS.Model.Professional();
            model = Pro.GetModel(Convert.ToInt32(QueryStrings));
            model.Pro_Name = tb_Name.Text.Trim();
            model.Pro_EnglishName = tb_EngName.Text.Trim();
            model.Pro_Code = tb_Code.Text.Trim();
            try
            {
                Pro.Update(model);
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "", "<script type='text/javascript'>alert('���³ɹ�');window.opener.location.href=window.opener.location.href;self.close();</script>");

            }
            catch
            {
                LabMS.Common.JShelper.JSAlert(this, "���½��", "����ʧ��");
            }
        }
Ejemplo n.º 3
0
        protected void DataBinds()
        {
            tb_Content.Attributes.Add("readonly", "readonly");
            LabMS.BLL.ProfessionalPlan ProPlan = new LabMS.BLL.ProfessionalPlan();
            LabMS.Model.ProfessionalPlan model = new LabMS.Model.ProfessionalPlan();

            model = ProPlan.GetModel(QueryString);
            LabMS.Model.Professional professionalmodel = new LabMS.Model.Professional();
            LabMS.BLL.Professional Profess = new LabMS.BLL.Professional();
            professionalmodel = Profess.GetModel(model.Pro_Professional.Value);

            lb_Pro.Text = professionalmodel.Pro_Name;
            if (model.Pro_Curriculum == 1)
            {
                lb_Term.Text = "��ѧ��";
            }
            else
            {
                lb_Term.Text = "��ѧ��";
            }
            lb_Year.Text = model.Pro_Year.ToString();
            tb_Content.Text = model.Pro_Content;
            hf_ID.Value = QueryString.ToString();
        }