예제 #1
0
        public void GetProcedure(short procedureID)
        {
            DataClassesDataContext db = new DataClassesDataContext();

            T_Procedure t = db.T_Procedures.Single(c => c.ProcedureID == procedureID);

            result.Add(new ProcedureVM()
            {
                ProcedureID   = t.ProcedureID,
                ProcedureName = t.ProcedureName,
                LastUpdate    = t.LastUpdate.ToShortDateString(),
                Note          = t.Note
            });


            this.Context.Response.ContentType = "application/json; charset=utf-8";
            this.Context.Response.Write(new JavaScriptSerializer().Serialize(result));
        }
 partial void DeleteT_Procedure(T_Procedure instance);
 partial void UpdateT_Procedure(T_Procedure instance);
 partial void InsertT_Procedure(T_Procedure instance);