It is mainly used for example, code tag, etc. If you forget it, record it. # region getlatestjobinfo /// <summary> /// obtain the latest job information /// </Summary> /// <example> /// <code> /// <font face = "> "size = "2"> // [C #] // public class myclass /// {// public void mymethod () /// {// <font color = "green"> // create a web service object </font> // wsjobposition position = new wsjobposition (); ///// <font color = "green"> // obtain the latest information </font> /// <font color = "green"> // The previous parameter table Indicates the number of records obtained. The last parameter indicates the sorting field. "" indicates the order by dtcreate in descending order. </font> // dataset DS = position. getlatestjobinfo (10 ,""); ///// <font color = "green"> // other Code </font> ///} // </font> /// </code> /// </example> /// <Param name = "topnumber"> display the latest number </param> /// <Param name =" orderfield "> in descending order, dtcreate </param> /// <returns> returns the first N records of a field in descending order. </returns> [webmethod] public dataset getlatestjobinfo (INT topnumber, string orderfie LD) {dataset DS = new dataset (); datatable DT; orderfield = ""? "Dtcreate": orderfield; string SQL = "select top {0} * From job_position order by {1} DESC"; SQL = string. format (SQL, topnumber, orderfield); dt = clsfactory. create (). getdatatable (SQL); DS. tables. add (DT); Return DS ;}# endregion
Ndoc generation is described as follows:
Obtain the latest job information
Public dataset getlatestjobinfo (
Int topnumber,
String orderfield
);
Parameters
Topnumber
Display the latest number
Orderfield
Fields in descending order. The default value is dtcreate.
Return Value
Returns the first N records in descending order of a field.
Example
[C #]
Public class myclass
{
Public void mymethod ()
{
// Create a web service object
Wsjobposition position = new wsjobposition ();
// Obtain the latest 10 pieces of information
// The previous parameter indicates the number of records obtained, and the last parameter indicates the sorting field. "" indicates the descending order of dtcreate.
Dataset DS = position. getlatestjobinfo (10 ,"");
// Other code
}
}