Beispiel #1
0
 protected void btnCommit_Click(object sender, EventArgs e)
 {
     DalOperationNorm daln = new DalOperationNorm();
     NormConfirm ncom = new NormConfirm
     {
         teacherNo = Request["teacherNo"].Trim(),
         term = Request["term"].Trim(),
         question = txtproblem.Text,
         type = 1,
         value = Request["value"].Trim(),
         answer = ""
     };
     daln.AddNormConfirm(ncom);
     Javascript.RefreshParentWindow("/Teacher/NormView.aspx", Page);
 }
Beispiel #2
0
        protected void btnConfirm_Click(object sender, EventArgs e)
        {
            UserCookiesInfo UserCookiesInfo = BllOperationAboutUser.GetUserCookiesInfo();
            DalOperationNorm dalOperationNorm = new DalOperationNorm();
            NormConfirm nc = new NormConfirm{
                term=term,
                teacherNo = UserCookiesInfo.userNo,
                question="OK",
                answer="",
                value = GetNormValue(0),
                type = 0,

            };
            dalOperationNorm.AddNormConfirm(nc);
            Javascript.JavaScriptLocationHref("/Teacher/NormView.aspx", Page);
        }