예제 #1
0
        private string insertSchoolFild(string schoolID)
        {
            PR_SchoolFild    oSCFild      = new PR_SchoolFild();
            clsStudentDetail objStdDetail = new clsStudentDetail();

            oSCFild.MyIdFild       = FildData();
            oSCFild.SchoolID       = schoolID;
            oSCFild.lasUpdatedTime = DateTime.Now;
            string returncode = objStdDetail.InsertSchoolFild(oSCFild);

            return(returncode);
        }
        private void insertSchoolFild(string schoolID)
        {
            PR_SchoolFild    oSCFild      = new PR_SchoolFild();
            clsStudentDetail objStdDetail = new clsStudentDetail();

            oSCFild.MyIdFild       = FildData();
            oSCFild.SchoolID       = schoolID;
            oSCFild.lasUpdatedTime = DateTime.Now;
            string returncode = objStdDetail.InsertSchoolFild(oSCFild);

            if (returncode == "1")
            {
                divUnsucrss.Style.Add("display", "none");
                divsucrss.Style.Remove("display");
                ltrSucess.Text = "Data Updated Sucess  ";
            }
            else
            {
                divsucrss.Style.Add("display", "none");
                divUnsucrss.Style.Remove("display");
                ltrNotSucess.Text = "There are some error contact to admin !!";
                return;
            }
        }