| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 离èç³è¯·åå表 æ ¹æ®èåå
ç è·åé¨é¨ä¸å²ä½ |
| | | /// <summary> |
| | | /// è¿å项ç®é¶æ®µå表 |
| | | ///åæ°ï¼string sqlã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | | [Route("HR_EmpDimissionBill/getInfoByHEmpID")] |
| | | [HttpGet] |
| | | public object getInfoByHEmpID(Int64 HEmpID) |
| | | { |
| | | try |
| | | { |
| | | string sql = @"select b.HItemID HDeptID,b.HName HDeptName,c.HItemID HPostID,c.HName HPostName from Gy_Employee AS a |
| | | LEFT OUTER JOIN Gy_Department AS b on a.HDeptID = b.HItemID |
| | | LEFT OUTER JOIN Gy_Post AS c on a.HPostID = c.HItemID |
| | | where a.HItemID = " + HEmpID; |
| | | |
| | | ds = oCN.RunProcReturn(sql, "Gy_EmployeeInfo"); |
| | | |
| | | if(ds==null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æªæ¾å°è¯¥èåè®°å½"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |