Esempio n. 1
0
 /*
 public Office FindOfficeByPID(int PID)
 {
     DataSet Ds = new DataSet();
     List<Office> result = new List<Office>();
     Office res;
     List<SqlParameter> dp = new List<SqlParameter>();
     dp.Add(CreateParam("@PID", SqlDbType.Int, 0, PID, ParameterDirection.Input));
     try
     {
         RunProc("FindOfficeByPID", dp, Ds);
         //TODO
     }
     catch (SqlException ex)
     {
         Console.WriteLine(ex.ToString());
     }
     if (result.Count > 0)
     {
         res = result[0];
         if (res.type == ProblemType.Word)
             return (OfficeWord)res;
         else if (res.type == ProblemType.Excel)
             return (OfficeExcel)res;
         else
             return (OfficePowerPoint)res;
     }
     else
         return null;
 }
 */
 public List<Office> FindAllOffice(string PContent, int Unit, int CourseId, int PLevel, OES.Model.Office.OfficeType Type, int PageIndex, int PageSize)
 {
     List<Office> result = new List<Office>();
     DataSet Ds = new DataSet();
     List<SqlParameter> dp = new List<SqlParameter>();
     dp.Add(CreateParam("@tableName", SqlDbType.VarChar, 50, "Office_Table", ParameterDirection.Input));
     dp.Add(CreateParam("@PContent", SqlDbType.VarChar, 9999, PContent, ParameterDirection.Input));
     dp.Add(CreateParam("@Type", SqlDbType.Int, 0, (int)Type, ParameterDirection.Input));
     dp.Add(CreateParam("@Language", SqlDbType.Int, 0, -1, ParameterDirection.Input));
     dp.Add(CreateParam("@Unit", SqlDbType.Int, 0, Unit, ParameterDirection.Input));
     dp.Add(CreateParam("@CourseId", SqlDbType.Int, 0, CourseId, ParameterDirection.Input));
     dp.Add(CreateParam("@PLevel", SqlDbType.Int, 0, PLevel, ParameterDirection.Input));
     dp.Add(CreateParam("@PageIndex", SqlDbType.Int, 0, PageIndex, ParameterDirection.Input));
     dp.Add(CreateParam("@PageSize", SqlDbType.Int, 0, PageSize, ParameterDirection.Input));
     try
     {
         RunProc("FindItems", dp, Ds);
         result = DataSetToListOffice(Ds);
     }
     catch (SqlException ex)
     {
         Console.WriteLine(ex.ToString());
     }
     return result;
 }
Esempio n. 2
0
 //增加Office类题目,返回PID
 public int AddOffice(string PContent, int Unit, int PLevel, OES.Model.Office.OfficeType Type)
 {
     int PID = -1;
     List<SqlParameter> ddlparam = new List<SqlParameter>();
     ddlparam.Add(CreateParam("@PID", SqlDbType.Int, 0, PID, ParameterDirection.Output));
     ddlparam.Add(CreateParam("@PContent", SqlDbType.VarChar, 500, PContent, ParameterDirection.Input));
     ddlparam.Add(CreateParam("@Unit", SqlDbType.Int, 0, Unit, ParameterDirection.Input));
     ddlparam.Add(CreateParam("@PLevel", SqlDbType.Int, 0, PLevel, ParameterDirection.Input));
     ddlparam.Add(CreateParam("@Type", SqlDbType.Int, 0, Convert.ToInt32(Type), ParameterDirection.Input));
     try
     {
         RunProc("AddOffice",ddlparam);
         PID = Convert.ToInt32(ddlparam[0].Value);
     }
     catch (SqlException e)
     {
         Console.WriteLine(e.ToString());
         return -1;
     }
     return PID;
 }
Esempio n. 3
0
 public partial void PatchParameter([Flow(FlowDirection.In)] OES pname, [Flow(FlowDirection.In)] int value);
 public abstract void ProgramBinary <T0>([Flow(FlowDirection.In)] uint program, [Flow(FlowDirection.In)] OES binaryFormat, [Count(Parameter = "length"), Flow(FlowDirection.In)] Span <T0> binary, [Flow(FlowDirection.In)] int length) where T0 : unmanaged;
Esempio n. 5
0
 public partial void BlendFunc([Flow(FlowDirection.In)] uint buf, [Flow(FlowDirection.In)] BlendingFactor src, [Flow(FlowDirection.In)] OES dst);
Esempio n. 6
0
 public partial void EglimageTargetRenderbufferStorage([Flow(FlowDirection.In)] OES target, [Flow(FlowDirection.In)] IntPtr image);
Esempio n. 7
0
 public partial void Enable([Flow(FlowDirection.In)] OES target, [Flow(FlowDirection.In)] uint index);
Esempio n. 8
0
 public partial void BlendEquation([Flow(FlowDirection.In)] uint buf, [Flow(FlowDirection.In)] OES mode);
Esempio n. 9
0
 public partial void TexStorage3DMultisample([Flow(FlowDirection.In)] TextureTarget target, [Flow(FlowDirection.In)] uint samples, [Flow(FlowDirection.In)] OES internalformat, [Flow(FlowDirection.In)] uint width, [Flow(FlowDirection.In)] uint height, [Flow(FlowDirection.In)] uint depth, [Flow(FlowDirection.In)] bool fixedsamplelocations);
 public static unsafe void GetClipPlane(this OesSinglePrecision thisApi, [Flow(FlowDirection.In)] OES plane, [Count(Count = 4), Flow(FlowDirection.Out)] Span <float> equation)
 {
     // SpanOverloader
     thisApi.GetClipPlane(plane, out equation.GetPinnableReference());
 }
Esempio n. 11
0
 public static unsafe void MultiDrawElementsBaseVertex(this OesDrawElementsBaseVertex thisApi, [Flow(FlowDirection.In)] OES mode, [Count(Computed = "drawcount"), Flow(FlowDirection.In)] uint *count, [Flow(FlowDirection.In)] OES type, [Count(Computed = "drawcount"), Flow(FlowDirection.In)] void **indices, [Flow(FlowDirection.In)] uint drawcount, [Count(Computed = "drawcount"), Flow(FlowDirection.In)] ReadOnlySpan <int> basevertex)
 {
     // SpanOverloader
     thisApi.MultiDrawElementsBaseVertex(mode, count, type, indices, drawcount, in basevertex.GetPinnableReference());
 }
Esempio n. 12
0
 public static unsafe void MultiDrawElementsBaseVertex(this OesDrawElementsBaseVertex thisApi, [Flow(FlowDirection.In)] OES mode, [Count(Computed = "drawcount"), Flow(FlowDirection.In)] uint *count, [Flow(FlowDirection.In)] OES type, [Count(Computed = "drawcount"), Flow(FlowDirection.In)] in void *indices, [Flow(FlowDirection.In)] uint drawcount, [Count(Computed = "drawcount"), Flow(FlowDirection.In)] ReadOnlySpan <int> basevertex)
Esempio n. 13
0
 public static unsafe void DrawRangeElementsBaseVertex <T0>(this OesDrawElementsBaseVertex thisApi, [Flow(FlowDirection.In)] PrimitiveType mode, [Flow(FlowDirection.In)] uint start, [Flow(FlowDirection.In)] uint end, [Flow(FlowDirection.In)] uint count, [Flow(FlowDirection.In)] OES type, [Count(Computed = "count, type"), Flow(FlowDirection.In)] ReadOnlySpan <T0> indices, [Flow(FlowDirection.In)] int basevertex) where T0 : unmanaged
 {
     // SpanOverloader
     thisApi.DrawRangeElementsBaseVertex(mode, start, end, count, type, in indices.GetPinnableReference(), basevertex);
 }
Esempio n. 14
0
 public static unsafe void DrawElementsInstancedBaseVertex <T0>(this OesDrawElementsBaseVertex thisApi, [Flow(FlowDirection.In)] OES mode, [Flow(FlowDirection.In)] uint count, [Flow(FlowDirection.In)] DrawElementsType type, [Count(Computed = "count, type"), Flow(FlowDirection.In)] ReadOnlySpan <T0> indices, [Flow(FlowDirection.In)] uint instancecount, [Flow(FlowDirection.In)] int basevertex) where T0 : unmanaged
 {
     // SpanOverloader
     thisApi.DrawElementsInstancedBaseVertex(mode, count, type, in indices.GetPinnableReference(), instancecount, basevertex);
 }
Esempio n. 15
0
 public partial void FramebufferTexture([Flow(FlowDirection.In)] FramebufferTarget target, [Flow(FlowDirection.In)] OES attachment, [Flow(FlowDirection.In)] uint texture, [Flow(FlowDirection.In)] int level);
Esempio n. 16
0
 public unsafe partial void ProgramBinary([Flow(FlowDirection.In)] uint program, [Flow(FlowDirection.In)] OES binaryFormat, [Count(Parameter = "length"), Flow(FlowDirection.In)] void *binary, [Flow(FlowDirection.In)] int length);
 public unsafe partial void DrawElementsBaseVertex([Flow(FlowDirection.In)] OES mode, [Flow(FlowDirection.In)] uint count, [Flow(FlowDirection.In)] OES type, [Count(Computed = "count, type"), Flow(FlowDirection.In)] void *indices, [Flow(FlowDirection.In)] int basevertex);
Esempio n. 18
0
 public partial void ProgramBinary <T0>([Flow(FlowDirection.In)] uint program, [Flow(FlowDirection.In)] OES binaryFormat, [Count(Parameter = "length"), Flow(FlowDirection.In)] in T0 binary, [Flow(FlowDirection.In)] int length) where T0 : unmanaged;
 public partial void DrawElementsBaseVertex <T0>([Flow(FlowDirection.In)] OES mode, [Flow(FlowDirection.In)] uint count, [Flow(FlowDirection.In)] OES type, [Count(Computed = "count, type"), Flow(FlowDirection.In)] in T0 indices, [Flow(FlowDirection.In)] int basevertex) where T0 : unmanaged;
Esempio n. 20
0
 public partial void CopyImageSubData([Flow(FlowDirection.In)] uint srcName, [Flow(FlowDirection.In)] CopyBufferSubDataTarget srcTarget, [Flow(FlowDirection.In)] int srcLevel, [Flow(FlowDirection.In)] int srcX, [Flow(FlowDirection.In)] int srcY, [Flow(FlowDirection.In)] int srcZ, [Flow(FlowDirection.In)] uint dstName, [Flow(FlowDirection.In)] OES dstTarget, [Flow(FlowDirection.In)] int dstLevel, [Flow(FlowDirection.In)] int dstX, [Flow(FlowDirection.In)] int dstY, [Flow(FlowDirection.In)] int dstZ, [Flow(FlowDirection.In)] uint srcWidth, [Flow(FlowDirection.In)] uint srcHeight, [Flow(FlowDirection.In)] uint srcDepth);
Esempio n. 21
0
 public static unsafe void TexSubImage3D <T0>(this OesTexture3D thisApi, [Flow(FlowDirection.In)] TextureTarget target, [Flow(FlowDirection.In)] int level, [Flow(FlowDirection.In)] int xoffset, [Flow(FlowDirection.In)] int yoffset, [Flow(FlowDirection.In)] int zoffset, [Flow(FlowDirection.In)] uint width, [Flow(FlowDirection.In)] uint height, [Flow(FlowDirection.In)] uint depth, [Flow(FlowDirection.In)] PixelFormat format, [Flow(FlowDirection.In)] OES type, [Count(Computed = "format, type, width, height, depth"), Flow(FlowDirection.In)] ReadOnlySpan <T0> pixels) where T0 : unmanaged
 {
     // SpanOverloader
     thisApi.TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, in pixels.GetPinnableReference());
 }
Esempio n. 22
0
 public partial bool IsEnabled([Flow(FlowDirection.In)] OES target, [Flow(FlowDirection.In)] uint index);
Esempio n. 23
0
 public static unsafe void CompressedTexSubImage3D <T0>(this OesTexture3D thisApi, [Flow(FlowDirection.In)] TextureTarget target, [Flow(FlowDirection.In)] int level, [Flow(FlowDirection.In)] int xoffset, [Flow(FlowDirection.In)] int yoffset, [Flow(FlowDirection.In)] int zoffset, [Flow(FlowDirection.In)] uint width, [Flow(FlowDirection.In)] uint height, [Flow(FlowDirection.In)] uint depth, [Flow(FlowDirection.In)] OES format, [Flow(FlowDirection.In)] uint imageSize, [Count(Parameter = "imageSize"), Flow(FlowDirection.In)] ReadOnlySpan <T0> data) where T0 : unmanaged
 {
     // SpanOverloader
     thisApi.CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, in data.GetPinnableReference());
 }
Esempio n. 24
0
 public partial void BlendEquationSeparate([Flow(FlowDirection.In)] uint buf, [Flow(FlowDirection.In)] BlendEquationModeEXT modeRGB, [Flow(FlowDirection.In)] OES modeAlpha);
Esempio n. 25
0
 public static unsafe void TexImage3D <T0>(this OesTexture3D thisApi, [Flow(FlowDirection.In)] OES target, [Flow(FlowDirection.In)] int level, [Flow(FlowDirection.In)] InternalFormat internalformat, [Flow(FlowDirection.In)] uint width, [Flow(FlowDirection.In)] uint height, [Flow(FlowDirection.In)] uint depth, [Flow(FlowDirection.In)] int border, [Flow(FlowDirection.In)] OES format, [Flow(FlowDirection.In)] PixelType type, [Count(Computed = "format, type, width, height, depth"), Flow(FlowDirection.In)] ReadOnlySpan <T0> pixels) where T0 : unmanaged
 {
     // SpanOverloader
     thisApi.TexImage3D(target, level, internalformat, width, height, depth, border, format, type, in pixels.GetPinnableReference());
 }
Esempio n. 26
0
 public partial void BlendFuncSeparate([Flow(FlowDirection.In)] uint buf, [Flow(FlowDirection.In)] BlendingFactor srcRGB, [Flow(FlowDirection.In)] BlendingFactor dstRGB, [Flow(FlowDirection.In)] BlendingFactor srcAlpha, [Flow(FlowDirection.In)] OES dstAlpha);
Esempio n. 27
0
 //按PID修改Office类题目
 public void UpdateOffice(int PID, string PContent, int Unit, int PLevel, OES.Model.Office.OfficeType Type)
 {
     List<SqlParameter> dp = new List<SqlParameter>();
     dp.Add(CreateParam("@PID", SqlDbType.Int, 0, PID, ParameterDirection.Input));
     dp.Add(CreateParam("@PContent", SqlDbType.VarChar, 9999, PContent, ParameterDirection.Input));
     dp.Add(CreateParam("@Unit", SqlDbType.Int, 0, Unit, ParameterDirection.Input));
     dp.Add(CreateParam("@PLevel", SqlDbType.Int, 0, PLevel, ParameterDirection.Input));
     dp.Add(CreateParam("@Type", SqlDbType.Int, 0, (int)Type, ParameterDirection.Input));
     try
     {
         RunProc("UpdateOffice", dp);
     }
     catch (SqlException ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }
Esempio n. 28
0
 public partial void EglimageTargetTexture2D([Flow(FlowDirection.In)] OES target, [Flow(FlowDirection.In)] IntPtr image);
Esempio n. 29
0
 public unsafe partial void MultiTexCoord1([Flow(FlowDirection.In)] OES texture, [Count(Count = 1), Flow(FlowDirection.In)] sbyte *coords);
Esempio n. 30
0
 public unsafe partial void GetProgramBinary([Flow(FlowDirection.In)] uint program, [Flow(FlowDirection.In)] uint bufSize, [Count(Count = 1), Flow(FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(FlowDirection.Out)] out OES binaryFormat, [Count(Parameter = "bufSize"), Flow(FlowDirection.Out)] void *binary);
Esempio n. 31
0
 public partial void MultiTexCoord1([Flow(FlowDirection.In)] OES texture, [Count(Count = 1), Flow(FlowDirection.In)] in sbyte coords);
Esempio n. 32
0
 public partial void GetProgramBinary <T0>([Flow(FlowDirection.In)] uint program, [Flow(FlowDirection.In)] uint bufSize, [Count(Count = 1), Flow(FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(FlowDirection.Out)] out OES binaryFormat, [Count(Parameter = "bufSize"), Flow(FlowDirection.Out)] out T0 binary) where T0 : unmanaged;
Esempio n. 33
0
 public partial void MultiTexCoord1([Flow(FlowDirection.In)] OES texture, [Flow(FlowDirection.In)] sbyte s);