 |
|
[WebMethod]
public System.Data.DataSet SelectReportLeaveHR01ByCompanyAuthenticate(string strEmpId, string strCompany, string strCostCenter, string strMonth, string strYear)
{
System.Data.DataSet ds = new System.Data.DataSet();
System.Data.SqlClient.SqlConnection Conn = new System.Data.SqlClient.SqlConnection(en.B64Decrypt(strConn));
Conn.Open();
System.Data.SqlClient.SqlCommand Comm = new System.Data.SqlClient.SqlCommand("[wfReportLeaveHR01ByCompanyAuthenticate]", Conn);
Comm.CommandType = System.Data.CommandType.StoredProcedure;
Comm.Parameters.Add("@vEmpId", System.Data.SqlDbType.VarChar, 10).Value = strEmpId;
Comm.Parameters.Add("@vCostCenter", System.Data.SqlDbType.VarChar, 10).Value = strCostCenter;
Comm.Parameters.Add("@vCompany", System.Data.SqlDbType.VarChar, 10).Value = strCompany;
Comm.Parameters.Add("@vToMonth", System.Data.SqlDbType.VarChar, 10).Value = strMonth;
Comm.Parameters.Add("@vYear", System.Data.SqlDbType.VarChar, 4).Value = strYear;
System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter(Comm);
da.Fill(ds);
ds.Tables[0].TableName = "tbPMReportHR01";
return ds;
}
มีโค๊ดอย่างนี้ค่ะ คือต่อไม่เป็นว่าจะโค๊ดยังไงเพื่อให้ Export เป็น Excel ช่วยหน่อยค่ะ
Tag : - - - -
|
|
 |
 |
 |
 |
Date :
3 ธ.ค. 2550 17:06:07 |
By :
aa |
View :
1488 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |