Ejemplo n.º 1
0
        public static bool InsertStudent(String StudentID, String StudentName)
        {
            OpStudentMngProducer op = new OpStudentMngProducer("P_ADD_ACCOUNT", StudentID, StudentName);

            op.Do();
            if (Convert.ToBoolean(op.ExecuteResult))
            {
                return(true);
            }
            return(false);
        }
Ejemplo n.º 2
0
        public static bool DeleteStudentInfo(String StudentID)
        {
            /*Sql.SqlDeleteStudentInfo exstr = new StundentInfoManagement.Sql.SqlDeleteStudentInfo();
             * exstr.SetSelectedID(StudentID);
             * OpStudentMngExec op = new OpStudentMngExec(exstr);
             * if (!op.Do())
             * {
             *  return false;
             * }
             * Sql.SqlDeleteStudentAccount exs = new StundentInfoManagement.Sql.SqlDeleteStudentAccount();
             * exs.GetId(StudentID);
             * OpStudentMngExec ops = new OpStudentMngExec(exs);
             * ops.Do();*/
            OpStudentMngProducer op = new OpStudentMngProducer("P_DELETE_STUDENT", StudentID);

            op.Do();
            if (Convert.ToBoolean(op.ExecuteResult))
            {
                return(true);
            }
            return(false);
        }
Ejemplo n.º 3
0
        public static bool InsertStudentInfo(
            String strPersonalPhoto,
            String strCollege,
            String iDepartment,
            String iWorkUnit,
            String strStudentID,
            String strStudentName,
            String strOriginalName,
            String iGender,
            String strNativeProvince,
            DateTime dt_BirthDay,
            String strNation,
            String strBirthPlace,
            String strHomeBirth,
            String iPoliticalStatus,
            String strPaperworktype,
            String strPaperworkNum,
            String iMarriage,
            String strConsortName,
            String strConsortPhoneNumber,
            String strConsortWorkingPlace,
            String strEntranceYear,
            String iEntranceSeason,
            String strGrade,
            String strClass,
            String strStudyTime,
            String strWorkingPlaceBeforeSchool,
            String iStudyType,
            String iNowCondition,
            String iContinent,
            String strCountry,
            String strStudentSource,
            String iStudentTyp,
            String iTrainType,
            String iSubsidizeType,
            String strField,
            String strFieldDirection,
            String strTeacher,
            String strHealth,
            String strBloodtype,
            String strGraduation,
            String iGraduationSeason,
            String strGraduationTime,
            String iGraduationType,
            String strTrainArriveDestination,
            String strDormitoryNum,
            String strDormitoryRoom,
            String strDormitoryPhone,
            String strEmailAddress,
            String strQQ,
            String strMSN,
            String strHomePhone,
            String strHomeAddress,
            String strPostCode,
            String strRegisteredResidence,
            String strRegisteredResidenceProperty,
            String strFatherName,
            String strFatherPhone,
            String strFatherWorkingPlace,
            String strMotherName,
            String strMotherPhone,
            String strMotherWorkingPlace)
        {
            OpStudentMngProducer op = new OpStudentMngProducer("P_ADD_STUDENT",
                                                               strPersonalPhoto,
                                                               strCollege,
                                                               Convert.ToInt16(iDepartment),
                                                               Convert.ToInt16(iWorkUnit),
                                                               strStudentID,
                                                               strStudentName,
                                                               strOriginalName,
                                                               BoolChange(iGender),
                                                               strNativeProvince,
                                                               dt_BirthDay,
                                                               strNation,
                                                               strBirthPlace,
                                                               strHomeBirth,
                                                               Convert.ToInt16(iPoliticalStatus),
                                                               strPaperworktype,
                                                               strPaperworkNum,
                                                               BoolChange(iMarriage),
                                                               strConsortName,
                                                               strConsortPhoneNumber,
                                                               strConsortWorkingPlace,
                                                               strEntranceYear,
                                                               BoolChange(iEntranceSeason),
                                                               strGrade,
                                                               strClass,
                                                               strStudyTime,
                                                               strWorkingPlaceBeforeSchool,
                                                               BoolChange(iStudyType),
                                                               BoolChange(iNowCondition),
                                                               Convert.ToInt16(iContinent),
                                                               strCountry,
                                                               strStudentSource,
                                                               Convert.ToInt16(iStudentTyp),
                                                               Convert.ToInt16(iTrainType),
                                                               Convert.ToInt16(iSubsidizeType),
                                                               strField,
                                                               strFieldDirection,
                                                               strTeacher,
                                                               strHealth,
                                                               strBloodtype,
                                                               Convert.ToInt32(strGraduation),
                                                               BoolChange(iGraduationSeason),
                                                               strGraduationTime,
                                                               Convert.ToInt16(iGraduationType),
                                                               strTrainArriveDestination,
                                                               strDormitoryNum,
                                                               strDormitoryRoom,
                                                               strDormitoryPhone,
                                                               strEmailAddress,
                                                               strQQ,
                                                               strMSN,
                                                               strHomePhone,
                                                               strHomeAddress,
                                                               strPostCode,
                                                               strRegisteredResidence,
                                                               strRegisteredResidenceProperty,
                                                               strFatherName,
                                                               strFatherPhone,
                                                               strFatherWorkingPlace,
                                                               strMotherName,
                                                               strMotherPhone,
                                                               strMotherWorkingPlace);

            op.Do();
            if (Convert.ToBoolean(op.ExecuteResult))
            {
                return(true);
            }
            return(false);
        }